From 2874f33af1fb62ff9618ffe2cb16edfb0230ab50 Mon Sep 17 00:00:00 2001 From: Martin Ndegwa Date: Tue, 5 Feb 2019 16:57:18 +0300 Subject: [PATCH] Clean up unwanted files --- .../org/opensrp/api/domain/AddressTest.java | 245 --- .../opensrp/api/domain/BaseEntityTest.java | 109 -- .../org/opensrp/api/domain/ClientTest.java | 103 - .../org/opensrp/api/domain/EventTest.java | 158 -- .../org/opensrp/api/domain/LocationTest.java | 79 - .../java/org/opensrp/api/domain/ObsTest.java | 101 - .../org/opensrp/api/domain/PhotoTest.java | 45 - .../org/opensrp/api/domain/ProviderTest.java | 49 - .../java/org/opensrp/api/domain/TimeTest.java | 44 - .../java/org/opensrp/api/domain/UserTest.java | 173 -- .../org/opensrp/api/util/LocationTest.java | 107 -- .../org/opensrp/api/util/TreeNodeTest.java | 103 - .../java/org/opensrp/api/util/TreeTest.java | 153 -- .../common/audit/AuditMessageTest.java | 52 - .../common/audit/AuditMessageTypeTest.java | 19 - .../org/opensrp/common/audit/AuditorTest.java | 189 -- .../domain/ANMIndicatorSummaryTest.java | 50 - .../opensrp/common/domain/ANMReportTest.java | 70 - .../opensrp/common/domain/LocationTest.java | 25 - .../common/domain/MonthSummeryTest.java | 54 - .../domain/ReportDataDeleteRequestTest.java | 65 - .../domain/ReportDataUpdateRequestTest.java | 62 - .../common/domain/ReportMonthTest.java | 124 -- .../common/domain/ReportingDataTest.java | 61 - .../opensrp/common/domain/UserDetailTest.java | 26 - .../opensrp/common/monitor/MonitorTest.java | 83 - .../opensrp/common/util/ComparableTester.java | 78 - .../common/util/ComparableVerifier.java | 52 - .../opensrp/common/util/DateTimeUtilTest.java | 37 - .../org/opensrp/common/util/DateUtilTest.java | 103 - .../opensrp/common/util/DoubleUtilTest.java | 28 - .../org/opensrp/common/util/EasyMapTest.java | 53 - .../opensrp/common/util/HttpResponseTest.java | 34 - .../common/util/HttpUtilIntegrationTest.java | 317 --- .../opensrp/common/util/IntegerUtilTest.java | 54 - .../SpringApplicationContextProvider.java | 23 - .../atomfeed/domain/FailedEventTest.java | 67 - .../connector/atomfeed/domain/MarkerTest.java | 47 - .../it/AllFailedEventsCouchImplTest.java | 128 -- .../atomfeed/it/AllMarkersCouchImplTest.java | 102 - .../connector/atomfeed/it/AtomFeedTest.java | 179 -- .../connector/dhis2/DHIS2DatasetPushTest.java | 196 -- .../dhis2/it/DHIS2AggregateConnectorTest.java | 218 --- .../dhis2/it/DHIS2SyncerListenerTest.java | 129 -- .../connector/it/MultipartHttpUtilTest.java | 84 - .../openmrs/AllMarkerIntegrationTest.java | 5 - .../connector/openmrs/AtomFeedTest.java | 59 - .../openmrs/service/EncounterTest.java | 518 ----- .../openmrs/service/HouseHoldTest.java | 163 -- .../openmrs/service/OpenmrsLocationTest.java | 40 - .../service/OpenmrsSchedulerServiceTest.java | 198 -- .../service/OpenmrsUserServiceTest.java | 51 - .../openmrs/service/PatientTest.java | 47 - .../openmrs/service/TestResourceLoader.java | 84 - .../openmrs/service/it/EventClient.java | 137 -- .../service/it/HouseHoldServiceTest.java | 218 --- .../openmrs/service/it/OpenmrsApiService.java | 231 --- .../service/it/OpenmrsLocationTest.java | 193 -- .../service/it/OpenmrsSyncerListenerTest.java | 180 -- .../service/it/OpenmrsUserServiceTest.java | 85 - .../service/it/PatientaServiceTest.java | 86 - .../service/it/TestLoggerAppender.java | 31 - .../test/resources/form/basic_reg/form.json | 653 ------- .../test/resources/form/basic_reg/form.xml | 287 --- .../form/basic_reg/form_definition.json | 249 --- .../form/basic_reg/form_submission.json | 258 --- .../test/resources/form/basic_reg/model.xml | 80 - .../resources/form/child_enrollment/form.json | 1 - .../resources/form/child_enrollment/form.xml | 1699 ----------------- .../child_enrollment/form_definition.json | 346 ---- .../child_enrollment/form_submission.json | 639 ------- .../resources/form/child_enrollment/model.xml | 1691 ---------------- .../resources/form/child_followup/form.json | 1 - .../resources/form/child_followup/form.xml | 1555 --------------- .../form/child_followup/form_definition.json | 466 ----- .../resources/form/child_followup/model.xml | 1685 ---------------- .../form/new_household_registration/form.json | 655 ------- .../form/new_household_registration/form.xml | 26 - .../form_definition.json | 166 -- .../form_submission1.json | 228 --- .../form_submission2.json | 207 -- .../form_submission3.json | 208 -- .../form_submission4.json | 208 -- .../form_submission5.json | 209 -- .../form_submission6.json | 216 --- .../form_submission7.json | 216 --- .../form_submission8.json | 211 -- .../form/new_household_registration/model.xml | 49 - .../form.json | 1100 ----------- .../form.xml | 31 - .../form_definition.json | 290 --- .../form_submission1.json | 363 ---- .../model.xml | 83 - .../form/offsite_child_followup/form.json | 1 - .../form/offsite_child_followup/form.xml | 1560 --------------- .../form_definition.json | 466 ----- .../form/offsite_child_followup/model.xml | 1685 ---------------- .../form/offsite_woman_followup/form.json | 1 - .../form/offsite_woman_followup/form.xml | 1439 -------------- .../form_definition.json | 372 ---- .../form/offsite_woman_followup/model.xml | 1643 ---------------- .../form/pnc_1st_registration/form.json | 373 ---- .../form/pnc_1st_registration/form.xml | 29 - .../pnc_1st_registration/form_definition.json | 89 - .../pnc_1st_registration/form_submission.json | 135 -- .../form/pnc_1st_registration/model.xml | 31 - .../test/resources/form/psrf_form/form.json | 1 - .../form/psrf_form/form_definition.json | 289 --- .../form/psrf_form/form_submission.json | 344 ---- .../test/resources/form/psrf_form/model.xml | 83 - .../test/resources/form/repeatform/form.json | 1381 -------------- .../form/repeatform/form_definition.json | 315 --- .../form/repeatform/form_submission.json | 452 ----- .../test/resources/form/repeatform/model.xml | 91 - .../form/vaccine_stock_position/form.json | 1 - .../form/vaccine_stock_position/form.xml | 381 ---- .../form_definition.json | 186 -- .../form/vaccine_stock_position/model.xml | 68 - .../resources/form/woman_enrollment/form.json | 1 - .../resources/form/woman_enrollment/form.xml | 1550 --------------- .../woman_enrollment/form_definition.json | 311 --- .../woman_enrollment/form_submission.json | 580 ------ .../resources/form/woman_enrollment/model.xml | 1659 ---------------- .../resources/form/woman_followup/form.json | 1 - .../resources/form/woman_followup/form.xml | 1435 -------------- .../form/woman_followup/form_definition.json | 384 ---- .../resources/form/woman_followup/model.xml | 1643 ---------------- ...t-applicationContext-opensrp-connector.xml | 87 - .../org/opensrp/form/domain/FormDataTest.java | 81 - .../opensrp/form/domain/FormFieldTest.java | 17 - .../opensrp/form/domain/FormInstanceTest.java | 40 - .../form/domain/FormSubmissionTest.java | 78 - .../it/AllSubmissionsIntegrationTest.java | 127 -- .../repository/it/TestDatabaseConfig.java | 63 - .../form/service/FormAttributeParserTest.java | 488 ----- .../form/service/FormFieldMapTest.java | 37 - .../service/FormSubmissionConverterTest.java | 38 - .../service/FormSubmissionServiceTest.java | 108 -- .../opensrp/form/service/SubformMapTest.java | 41 - .../form/service/TestResourceLoader.java | 32 - .../service/it/FormSubmissionServiceTest.java | 108 -- .../test/resources/form/basic_reg/form.json | 653 ------- .../test/resources/form/basic_reg/form.xml | 287 --- .../form/basic_reg/form_definition.json | 245 --- .../form/basic_reg/form_submission.json | 254 --- .../test/resources/form/basic_reg/model.xml | 79 - .../form/new_household_registration/form.json | 655 ------- .../form/new_household_registration/form.xml | 26 - .../form_definition.json | 166 -- .../form_submission1.json | 228 --- .../form_submission2.json | 207 -- .../form_submission3.json | 208 -- .../form_submission4.json | 208 -- .../form_submission5.json | 209 -- .../form_submission6.json | 216 --- .../form_submission7.json | 216 --- .../form_submission8.json | 211 -- .../form/new_household_registration/model.xml | 49 - .../form.json | 1100 ----------- .../form.xml | 31 - .../form_definition.json | 290 --- .../form_submission1.json | 363 ---- .../model.xml | 83 - .../form/pnc_1st_registration/form.json | 373 ---- .../form/pnc_1st_registration/form.xml | 29 - .../pnc_1st_registration/form_definition.json | 89 - .../pnc_1st_registration/form_submission.json | 135 -- .../form/pnc_1st_registration/model.xml | 31 - .../test/resources/form/repeatform/form.json | 1381 -------------- .../form/repeatform/form_definition.json | 315 --- .../form/repeatform/form_submission.json | 452 ----- .../test/resources/form/repeatform/model.xml | 91 - .../test/java/org.opensrp.dto/ANMDTOTest.java | 35 - .../java/org.opensrp.dto/ActionDataTest.java | 103 - .../test/java/org.opensrp.dto/ActionTest.java | 43 - .../MonthSummaryDatumTest.java | 41 - .../java/org.opensrp.dto/VillagesDTOTest.java | 39 - .../AggregatorResponseDTOTest.java | 35 - .../form/FormSubmissionDTOTest.java | 36 - .../form/MultimediaDTOTest.java | 35 - .../register/ANCRegisterDTOTest.java | 34 - .../register/ANCRegisterEntryDTOTest.java | 90 - .../register/ANMDetailDTOTest.java | 33 - .../register/ANMDetailsDTOTest.java | 41 - .../register/ChildRegisterDTOTest.java | 39 - .../register/ChildRegisterEntryDTOTest.java | 50 - .../register/CondomFPDetailsDTOTest.java | 40 - .../register/CondomRegisterEntryDTOTest.java | 53 - .../register/ECRegisterDTOTest.java | 36 - .../register/ECRegisterEntryDTOTest.java | 60 - .../register/EntityDetailDTOTest.java | 36 - .../register/FPRegisterDTOTest.java | 46 - .../FemaleSterilizationFPDetailsDTOTest.java | 36 - ...maleSterilizationRegisterEntryDTOTest.java | 56 - .../register/IUDFPDetailsDTOTest.java | 30 - .../register/IUDRegisterEntryDTOTest.java | 54 - .../MaleSterilizationFPDetailsDTOTest.java | 36 - ...MaleSterilizationRegisterEntryDTOTest.java | 56 - .../register/OCPFPDetailsDTOTest.java | 43 - .../register/OCPRegisterEntryDTOTest.java | 63 - .../register/PNCRegisterDTOTest.java | 36 - .../register/PNCRegisterEntryDTOTest.java | 55 - .../register/PNCVisitDTOTest.java | 46 - .../report/AggregatedReportsDTOTest.java | 38 - .../report/ServiceProvidedReportDTOTest.java | 41 - .../org.opensrp.dto/utils/PojoTestUtils.java | 21 - .../register/it/CreateFormSubmissions.java | 195 -- .../handler/ANCScheduleHandlerTest.java | 74 - .../handler/BNFScheduleHandlerTest.java | 71 - .../handler/BaseScheduleHandlerTest.java | 100 - .../handler/ChildScheduleHandlerTest.java | 88 - .../handler/ElcoScheduleHandlerTest.java | 80 - .../handler/HHScheduleHandlerTest.java | 76 - .../handler/PNCScheduleHandlerTest.java | 123 -- .../service/handler/TestResourceLoader.java | 226 --- .../handler/VaccinesScheduleHandlerTest.java | 250 --- .../AnteNatalCareSchedulesServiceTest.java | 71 - .../scheduling/BNFSchedulesServiceTest.java | 52 - .../scheduling/ENCCSchedulesServiceTest.java | 72 - .../scheduling/ElcoSchedulesServiceTest.java | 83 - .../scheduling/HHSchedulesServiceTest.java | 56 - .../scheduling/PNCSchedulesServiceTest.java | 72 - .../java/org/opensrp/register/util/Event.java | 7 - .../opensrp/register/util/EventBuilder.java | 78 - .../register/util/FormSubmissionBuilder.java | 78 - .../org/opensrp/register/util/Matcher.java | 27 - .../resources/form/child_enrollment/form.json | 1 - .../resources/form/child_enrollment/form.xml | 1699 ----------------- .../child_enrollment/form_definition.json | 343 ---- .../resources/form/child_enrollment/model.xml | 1690 ---------------- .../resources/form/child_followup/form.json | 1 - .../resources/form/child_followup/form.xml | 1689 ---------------- .../form/child_followup/form_definition.json | 459 ----- .../resources/form/child_followup/model.xml | 1697 ---------------- .../form/offsite_child_followup/form.json | 1 - .../form/offsite_child_followup/form.xml | 1694 ---------------- .../form_definition.json | 459 ----- .../form/offsite_child_followup/model.xml | 1697 ---------------- .../form/offsite_woman_followup/form.json | 1 - .../form/offsite_woman_followup/form.xml | 1500 --------------- .../form_definition.json | 377 ---- .../form/offsite_woman_followup/model.xml | 1645 ---------------- .../form/vaccine_stock_position/form.json | 1 - .../form/vaccine_stock_position/form.xml | 385 ---- .../form_definition.json | 189 -- .../form/vaccine_stock_position/model.xml | 68 - .../resources/form/woman_enrollment/form.json | 1 - .../resources/form/woman_enrollment/form.xml | 1559 --------------- .../woman_enrollment/form_definition.json | 308 --- .../resources/form/woman_enrollment/model.xml | 1658 ---------------- .../resources/form/woman_followup/form.json | 1 - .../resources/form/woman_followup/form.xml | 1495 --------------- .../form/woman_followup/form_definition.json | 377 ---- .../resources/form/woman_followup/model.xml | 1645 ---------------- .../test/resources/schedules/child-bcg.json | 35 - .../test/resources/schedules/child-ipv.json | 41 - .../resources/schedules/child-measles1.json | 41 - .../resources/schedules/child-measles2.json | 41 - .../test/resources/schedules/child-opv0.json | 35 - .../test/resources/schedules/child-opv1.json | 41 - .../test/resources/schedules/child-opv2.json | 41 - .../test/resources/schedules/child-opv3.json | 41 - .../test/resources/schedules/child-pcv1.json | 41 - .../test/resources/schedules/child-pcv2.json | 41 - .../test/resources/schedules/child-pcv3.json | 41 - .../schedules/child-pentavalent1.json | 41 - .../schedules/child-pentavalent2.json | 41 - .../schedules/child-pentavalent3.json | 41 - .../resources/schedules/schedule-config.xls | Bin 24064 -> 0 bytes .../test/resources/schedules/woman-tt2.json | 35 - .../test/resources/schedules/woman-tt3.json | 35 - .../test/resources/schedules/woman-tt4.json | 36 - .../test/resources/schedules/woman-tt5.json | 36 - ...st-applicationContext-opensrp-register.xml | 63 - .../AggregateReportsSchedulerTest.java | 52 - .../controller/ANMControllerTest.java | 75 - .../AggregatedReportControllerTest.java | 51 - .../controller/LocationControllerTest.java | 54 - .../controller/PHCUserDetailsFetcherTest.java | 31 - .../controller/ReportDataControllerTest.java | 191 -- .../controller/SCUserDetailsFetcherTest.java | 31 - .../factory/DetailsFetcherFactoryTest.java | 41 - .../repository/ANMReportsRepositoryTest.java | 325 ---- .../ServicesProvidedRepositoryTest.java | 183 -- .../TestANMReportDataAccessTemplate.java | 18 - ...TestServiceProvidedDataAccessTemplate.java | 18 - .../cache/ReadOnlyCachingRepositoryTest.java | 82 - .../it/ANMReportDataIntegrationTest.java | 168 -- .../it/ANMReportsIntegrationTestBase.java | 20 - .../it/AllANMsRepositoryIntegrationTest.java | 32 - ...nnualTargetsRepositoryIntegrationTest.java | 69 - ...llIndicatorsRepositoryIntegrationTest.java | 48 - ...AllLocationsRepositoryIntegrationTest.java | 101 - .../AllSP_ANMsRepositoryIntegrationTest.java | 77 - ...iceProvidersRepositoryIntegrationTest.java | 63 - .../AllServicesProvidedIntegrationTest.java | 229 --- .../it/AllTokenRepositoryIntegrationTest.java | 52 - .../ServicesProvidedIntegrationTestBase.java | 20 - .../service/AggregateReportsServiceTest.java | 105 - ...licationContext-opensrp-reporting-test.xml | 46 - ...ationContext-reporting-repository-test.xml | 91 - .../org/opensrp/fixtures/csv_to_import.csv | 3 - .../integration/ChildImmunizationFields.java | 41 - .../ScheduleTrackingSchedulesJSONTest.java | 13 - .../SpringApplicationContextProvider.java | 23 - .../opensrp/web/AuthenticationFilterTest.java | 35 - .../AuditMessageControllerTest.java | 81 - .../web/controller/FormDownloadTest.java | 24 - .../web/controller/OpenmrsReportingTest.java | 48 - .../web/controller/UserControllerTest.java | 88 - .../XlsDataImportControllerTest.java | 76 - .../controller/it/ActionControllerTest.java | 158 -- ...AuditMessageControllerIntegrationTest.java | 48 - .../ErrorTraceControllerIntegrationTest.java | 193 -- .../it/FormDownloadIntegrationTest.java | 54 - .../it/FormSubmissionIntegrationTest.java | 136 -- .../it/UserControllerIntegrationTest.java | 57 - .../web/it/AtomFeedIntegrationTest.java | 98 - .../web/it/DrishtiScheduleConstants.java | 71 - .../it/DrishtiSchedulesIntegrationTest.java | 585 ------ .../org/opensrp/web/it/RulesFactoryTest.java | 174 -- .../web/it/listener/ClientListenerTest.java | 125 -- .../web/it/listener/CreateNewCamp.java | 75 - .../opensrp/web/rest/it/BaseResourceTest.java | 160 -- .../web/rest/it/ClientResourceTest.java | 449 ----- .../web/rest/it/EventResourceTest.java | 505 ----- .../rest/it/FormSubmissionResourceTest.java | 143 -- .../web/rest/it/ProviderResourceTest.java | 82 - .../web/rest/it/ReportResourceTest.java | 71 - .../web/rest/it/ResourceTestUtility.java | 43 - .../web/rest/it/SearchResourceTest.java | 196 -- .../web/rest/it/StockResourceTest.java | 216 --- .../web/rest/it/TestWebContextLoader.java | 68 - .../DrishtiAuthenticationProviderTest.java | 76 - .../opensrp/web/utils/OpenmrsHttpUtil.java | 8 - .../org/opensrp/web/utils/PdfUtilTest.java | 20 - .../org/opensrp/web/utils/RestUtilsTest.java | 19 - .../opensrp/web/utils/TestResourceLoader.java | 101 - opensrp-web/src/test/js/auditmessage_spec.js | 95 - .../resources/form/child_enrollment/form.json | 1 - .../resources/form/child_enrollment/form.xml | 1699 ----------------- .../child_enrollment/form_definition.json | 343 ---- .../resources/form/child_enrollment/model.xml | 1690 ---------------- .../resources/form/child_followup/form.json | 1 - .../resources/form/child_followup/form.xml | 1689 ---------------- .../form/child_followup/form_definition.json | 459 ----- .../resources/form/child_followup/model.xml | 1697 ---------------- .../resources/form/entity_relationship.json | 35 - .../form/new_household_registration/form.json | 655 ------- .../form/new_household_registration/form.xml | 26 - .../form_definition.json | 166 -- .../form_submission1.json | 228 --- .../form_submission10.json | 248 --- .../form_submission2.json | 207 -- .../form_submission3.json | 208 -- .../form_submission4.json | 208 -- .../form_submission5.json | 209 -- .../form_submission6.json | 216 --- .../form_submission7.json | 216 --- .../form_submission8.json | 211 -- .../form_submission9.json | 206 -- .../form/new_household_registration/model.xml | 49 - .../form/offsite_child_followup/form.json | 1 - .../form/offsite_child_followup/form.xml | 1694 ---------------- .../form_definition.json | 459 ----- .../form/offsite_child_followup/model.xml | 1697 ---------------- .../form/offsite_woman_followup/form.json | 1 - .../form/offsite_woman_followup/form.xml | 1500 --------------- .../form_definition.json | 377 ---- .../form/offsite_woman_followup/model.xml | 1645 ---------------- .../form/vaccine_stock_position/form.json | 1 - .../form/vaccine_stock_position/form.xml | 385 ---- .../form_definition.json | 189 -- .../form/vaccine_stock_position/model.xml | 68 - .../resources/form/woman_enrollment/form.json | 1 - .../resources/form/woman_enrollment/form.xml | 1559 --------------- .../woman_enrollment/form_definition.json | 308 --- .../resources/form/woman_enrollment/model.xml | 1658 ---------------- .../resources/form/woman_followup/form.json | 1 - .../resources/form/woman_followup/form.xml | 1495 --------------- .../form/woman_followup/form_definition.json | 377 ---- .../resources/form/woman_followup/model.xml | 1645 ---------------- .../test/resources/schedules/child-bcg.json | 35 - .../schedules/child-dpt-booster1.json | 35 - .../schedules/child-dpt-booster2.json | 22 - .../test/resources/schedules/child-ipv.json | 41 - .../resources/schedules/child-measles1.json | 41 - .../resources/schedules/child-measles2.json | 41 - .../schedules/child-opv-booster.json | 29 - .../test/resources/schedules/child-opv0.json | 35 - .../test/resources/schedules/child-opv1.json | 41 - .../test/resources/schedules/child-opv2.json | 41 - .../test/resources/schedules/child-opv3.json | 41 - .../test/resources/schedules/child-pcv1.json | 41 - .../test/resources/schedules/child-pcv2.json | 41 - .../test/resources/schedules/child-pcv3.json | 41 - .../schedules/child-pentavalent1.json | 41 - .../schedules/child-pentavalent2.json | 41 - .../schedules/child-pentavalent3.json | 41 - .../resources/schedules/delivery-plan.json | 35 - .../resources/schedules/ec-condom-refill.json | 29 - .../schedules/ec-dmpa-injectable-refill.json | 35 - .../ec-female-sterilization-followup.json | 75 - .../resources/schedules/ec-fp-followup.json | 35 - .../schedules/ec-fp-referral-followup.json | 35 - .../resources/schedules/ec-iud-followup.json | 58 - .../ec-male-sterilization-followup.json | 52 - .../resources/schedules/ec-ocp-refill.json | 29 - .../test/resources/schedules/fw-census.json | 35 - .../schedules/mother-anc-normal.json | 104 - .../schedules/mother-auto-close-pnc.json | 20 - .../mother-expected-date-of-delivery.json | 35 - .../schedules/mother-hb-followup-test.json | 35 - .../resources/schedules/mother-hb-test-1.json | 29 - .../resources/schedules/mother-hb-test-2.json | 29 - .../resources/schedules/mother-ifa-1.json | 35 - .../resources/schedules/mother-ifa-2.json | 35 - .../resources/schedules/mother-ifa-3.json | 35 - .../schedules/mother-lab-reminder.json | 29 - .../resources/schedules/schedule-config.xls | Bin 24064 -> 0 bytes .../test/resources/schedules/woman-tt2.json | 35 - .../test/resources/schedules/woman-tt3.json | 35 - .../test/resources/schedules/woman-tt4.json | 36 - .../test/resources/schedules/woman-tt5.json | 36 - 424 files changed, 110760 deletions(-) delete mode 100644 opensrp-api/src/test/java/org/opensrp/api/domain/AddressTest.java delete mode 100644 opensrp-api/src/test/java/org/opensrp/api/domain/BaseEntityTest.java delete mode 100644 opensrp-api/src/test/java/org/opensrp/api/domain/ClientTest.java delete mode 100644 opensrp-api/src/test/java/org/opensrp/api/domain/EventTest.java delete mode 100644 opensrp-api/src/test/java/org/opensrp/api/domain/LocationTest.java delete mode 100644 opensrp-api/src/test/java/org/opensrp/api/domain/ObsTest.java delete mode 100644 opensrp-api/src/test/java/org/opensrp/api/domain/PhotoTest.java delete mode 100644 opensrp-api/src/test/java/org/opensrp/api/domain/ProviderTest.java delete mode 100644 opensrp-api/src/test/java/org/opensrp/api/domain/TimeTest.java delete mode 100644 opensrp-api/src/test/java/org/opensrp/api/domain/UserTest.java delete mode 100644 opensrp-api/src/test/java/org/opensrp/api/util/LocationTest.java delete mode 100644 opensrp-api/src/test/java/org/opensrp/api/util/TreeNodeTest.java delete mode 100644 opensrp-api/src/test/java/org/opensrp/api/util/TreeTest.java delete mode 100644 opensrp-common/src/test/java/org/opensrp/common/audit/AuditMessageTest.java delete mode 100644 opensrp-common/src/test/java/org/opensrp/common/audit/AuditMessageTypeTest.java delete mode 100644 opensrp-common/src/test/java/org/opensrp/common/audit/AuditorTest.java delete mode 100644 opensrp-common/src/test/java/org/opensrp/common/domain/ANMIndicatorSummaryTest.java delete mode 100644 opensrp-common/src/test/java/org/opensrp/common/domain/ANMReportTest.java delete mode 100644 opensrp-common/src/test/java/org/opensrp/common/domain/LocationTest.java delete mode 100644 opensrp-common/src/test/java/org/opensrp/common/domain/MonthSummeryTest.java delete mode 100644 opensrp-common/src/test/java/org/opensrp/common/domain/ReportDataDeleteRequestTest.java delete mode 100644 opensrp-common/src/test/java/org/opensrp/common/domain/ReportDataUpdateRequestTest.java delete mode 100644 opensrp-common/src/test/java/org/opensrp/common/domain/ReportMonthTest.java delete mode 100644 opensrp-common/src/test/java/org/opensrp/common/domain/ReportingDataTest.java delete mode 100644 opensrp-common/src/test/java/org/opensrp/common/domain/UserDetailTest.java delete mode 100644 opensrp-common/src/test/java/org/opensrp/common/monitor/MonitorTest.java delete mode 100644 opensrp-common/src/test/java/org/opensrp/common/util/ComparableTester.java delete mode 100644 opensrp-common/src/test/java/org/opensrp/common/util/ComparableVerifier.java delete mode 100644 opensrp-common/src/test/java/org/opensrp/common/util/DateTimeUtilTest.java delete mode 100644 opensrp-common/src/test/java/org/opensrp/common/util/DateUtilTest.java delete mode 100644 opensrp-common/src/test/java/org/opensrp/common/util/DoubleUtilTest.java delete mode 100644 opensrp-common/src/test/java/org/opensrp/common/util/EasyMapTest.java delete mode 100644 opensrp-common/src/test/java/org/opensrp/common/util/HttpResponseTest.java delete mode 100644 opensrp-common/src/test/java/org/opensrp/common/util/HttpUtilIntegrationTest.java delete mode 100644 opensrp-common/src/test/java/org/opensrp/common/util/IntegerUtilTest.java delete mode 100644 opensrp-connector/src/test/java/org/opensrp/connector/SpringApplicationContextProvider.java delete mode 100644 opensrp-connector/src/test/java/org/opensrp/connector/atomfeed/domain/FailedEventTest.java delete mode 100644 opensrp-connector/src/test/java/org/opensrp/connector/atomfeed/domain/MarkerTest.java delete mode 100644 opensrp-connector/src/test/java/org/opensrp/connector/atomfeed/it/AllFailedEventsCouchImplTest.java delete mode 100644 opensrp-connector/src/test/java/org/opensrp/connector/atomfeed/it/AllMarkersCouchImplTest.java delete mode 100644 opensrp-connector/src/test/java/org/opensrp/connector/atomfeed/it/AtomFeedTest.java delete mode 100644 opensrp-connector/src/test/java/org/opensrp/connector/dhis2/DHIS2DatasetPushTest.java delete mode 100644 opensrp-connector/src/test/java/org/opensrp/connector/dhis2/it/DHIS2AggregateConnectorTest.java delete mode 100644 opensrp-connector/src/test/java/org/opensrp/connector/dhis2/it/DHIS2SyncerListenerTest.java delete mode 100644 opensrp-connector/src/test/java/org/opensrp/connector/it/MultipartHttpUtilTest.java delete mode 100644 opensrp-connector/src/test/java/org/opensrp/connector/openmrs/AllMarkerIntegrationTest.java delete mode 100644 opensrp-connector/src/test/java/org/opensrp/connector/openmrs/AtomFeedTest.java delete mode 100644 opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/EncounterTest.java delete mode 100644 opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/HouseHoldTest.java delete mode 100644 opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/OpenmrsLocationTest.java delete mode 100644 opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/OpenmrsSchedulerServiceTest.java delete mode 100644 opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/OpenmrsUserServiceTest.java delete mode 100644 opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/PatientTest.java delete mode 100644 opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/TestResourceLoader.java delete mode 100644 opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/it/EventClient.java delete mode 100644 opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/it/HouseHoldServiceTest.java delete mode 100644 opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/it/OpenmrsApiService.java delete mode 100644 opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/it/OpenmrsLocationTest.java delete mode 100644 opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/it/OpenmrsSyncerListenerTest.java delete mode 100644 opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/it/OpenmrsUserServiceTest.java delete mode 100644 opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/it/PatientaServiceTest.java delete mode 100644 opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/it/TestLoggerAppender.java delete mode 100644 opensrp-connector/src/test/resources/form/basic_reg/form.json delete mode 100644 opensrp-connector/src/test/resources/form/basic_reg/form.xml delete mode 100644 opensrp-connector/src/test/resources/form/basic_reg/form_definition.json delete mode 100644 opensrp-connector/src/test/resources/form/basic_reg/form_submission.json delete mode 100644 opensrp-connector/src/test/resources/form/basic_reg/model.xml delete mode 100644 opensrp-connector/src/test/resources/form/child_enrollment/form.json delete mode 100644 opensrp-connector/src/test/resources/form/child_enrollment/form.xml delete mode 100644 opensrp-connector/src/test/resources/form/child_enrollment/form_definition.json delete mode 100644 opensrp-connector/src/test/resources/form/child_enrollment/form_submission.json delete mode 100644 opensrp-connector/src/test/resources/form/child_enrollment/model.xml delete mode 100644 opensrp-connector/src/test/resources/form/child_followup/form.json delete mode 100644 opensrp-connector/src/test/resources/form/child_followup/form.xml delete mode 100644 opensrp-connector/src/test/resources/form/child_followup/form_definition.json delete mode 100644 opensrp-connector/src/test/resources/form/child_followup/model.xml delete mode 100644 opensrp-connector/src/test/resources/form/new_household_registration/form.json delete mode 100644 opensrp-connector/src/test/resources/form/new_household_registration/form.xml delete mode 100644 opensrp-connector/src/test/resources/form/new_household_registration/form_definition.json delete mode 100644 opensrp-connector/src/test/resources/form/new_household_registration/form_submission1.json delete mode 100644 opensrp-connector/src/test/resources/form/new_household_registration/form_submission2.json delete mode 100644 opensrp-connector/src/test/resources/form/new_household_registration/form_submission3.json delete mode 100644 opensrp-connector/src/test/resources/form/new_household_registration/form_submission4.json delete mode 100644 opensrp-connector/src/test/resources/form/new_household_registration/form_submission5.json delete mode 100644 opensrp-connector/src/test/resources/form/new_household_registration/form_submission6.json delete mode 100644 opensrp-connector/src/test/resources/form/new_household_registration/form_submission7.json delete mode 100644 opensrp-connector/src/test/resources/form/new_household_registration/form_submission8.json delete mode 100644 opensrp-connector/src/test/resources/form/new_household_registration/model.xml delete mode 100644 opensrp-connector/src/test/resources/form/new_household_registration_with_grouped_subform_data/form.json delete mode 100644 opensrp-connector/src/test/resources/form/new_household_registration_with_grouped_subform_data/form.xml delete mode 100644 opensrp-connector/src/test/resources/form/new_household_registration_with_grouped_subform_data/form_definition.json delete mode 100644 opensrp-connector/src/test/resources/form/new_household_registration_with_grouped_subform_data/form_submission1.json delete mode 100644 opensrp-connector/src/test/resources/form/new_household_registration_with_grouped_subform_data/model.xml delete mode 100644 opensrp-connector/src/test/resources/form/offsite_child_followup/form.json delete mode 100644 opensrp-connector/src/test/resources/form/offsite_child_followup/form.xml delete mode 100644 opensrp-connector/src/test/resources/form/offsite_child_followup/form_definition.json delete mode 100644 opensrp-connector/src/test/resources/form/offsite_child_followup/model.xml delete mode 100644 opensrp-connector/src/test/resources/form/offsite_woman_followup/form.json delete mode 100644 opensrp-connector/src/test/resources/form/offsite_woman_followup/form.xml delete mode 100644 opensrp-connector/src/test/resources/form/offsite_woman_followup/form_definition.json delete mode 100644 opensrp-connector/src/test/resources/form/offsite_woman_followup/model.xml delete mode 100644 opensrp-connector/src/test/resources/form/pnc_1st_registration/form.json delete mode 100644 opensrp-connector/src/test/resources/form/pnc_1st_registration/form.xml delete mode 100644 opensrp-connector/src/test/resources/form/pnc_1st_registration/form_definition.json delete mode 100644 opensrp-connector/src/test/resources/form/pnc_1st_registration/form_submission.json delete mode 100644 opensrp-connector/src/test/resources/form/pnc_1st_registration/model.xml delete mode 100644 opensrp-connector/src/test/resources/form/psrf_form/form.json delete mode 100644 opensrp-connector/src/test/resources/form/psrf_form/form_definition.json delete mode 100644 opensrp-connector/src/test/resources/form/psrf_form/form_submission.json delete mode 100644 opensrp-connector/src/test/resources/form/psrf_form/model.xml delete mode 100644 opensrp-connector/src/test/resources/form/repeatform/form.json delete mode 100644 opensrp-connector/src/test/resources/form/repeatform/form_definition.json delete mode 100644 opensrp-connector/src/test/resources/form/repeatform/form_submission.json delete mode 100644 opensrp-connector/src/test/resources/form/repeatform/model.xml delete mode 100644 opensrp-connector/src/test/resources/form/vaccine_stock_position/form.json delete mode 100644 opensrp-connector/src/test/resources/form/vaccine_stock_position/form.xml delete mode 100644 opensrp-connector/src/test/resources/form/vaccine_stock_position/form_definition.json delete mode 100644 opensrp-connector/src/test/resources/form/vaccine_stock_position/model.xml delete mode 100644 opensrp-connector/src/test/resources/form/woman_enrollment/form.json delete mode 100644 opensrp-connector/src/test/resources/form/woman_enrollment/form.xml delete mode 100644 opensrp-connector/src/test/resources/form/woman_enrollment/form_definition.json delete mode 100644 opensrp-connector/src/test/resources/form/woman_enrollment/form_submission.json delete mode 100644 opensrp-connector/src/test/resources/form/woman_enrollment/model.xml delete mode 100644 opensrp-connector/src/test/resources/form/woman_followup/form.json delete mode 100644 opensrp-connector/src/test/resources/form/woman_followup/form.xml delete mode 100644 opensrp-connector/src/test/resources/form/woman_followup/form_definition.json delete mode 100644 opensrp-connector/src/test/resources/form/woman_followup/model.xml delete mode 100644 opensrp-connector/src/test/resources/test-applicationContext-opensrp-connector.xml delete mode 100644 opensrp-form/src/test/java/org/opensrp/form/domain/FormDataTest.java delete mode 100644 opensrp-form/src/test/java/org/opensrp/form/domain/FormFieldTest.java delete mode 100644 opensrp-form/src/test/java/org/opensrp/form/domain/FormInstanceTest.java delete mode 100644 opensrp-form/src/test/java/org/opensrp/form/domain/FormSubmissionTest.java delete mode 100644 opensrp-form/src/test/java/org/opensrp/form/repository/it/AllSubmissionsIntegrationTest.java delete mode 100644 opensrp-form/src/test/java/org/opensrp/form/repository/it/TestDatabaseConfig.java delete mode 100644 opensrp-form/src/test/java/org/opensrp/form/service/FormAttributeParserTest.java delete mode 100644 opensrp-form/src/test/java/org/opensrp/form/service/FormFieldMapTest.java delete mode 100644 opensrp-form/src/test/java/org/opensrp/form/service/FormSubmissionConverterTest.java delete mode 100644 opensrp-form/src/test/java/org/opensrp/form/service/FormSubmissionServiceTest.java delete mode 100644 opensrp-form/src/test/java/org/opensrp/form/service/SubformMapTest.java delete mode 100644 opensrp-form/src/test/java/org/opensrp/form/service/TestResourceLoader.java delete mode 100644 opensrp-form/src/test/java/org/opensrp/form/service/it/FormSubmissionServiceTest.java delete mode 100644 opensrp-form/src/test/resources/form/basic_reg/form.json delete mode 100644 opensrp-form/src/test/resources/form/basic_reg/form.xml delete mode 100644 opensrp-form/src/test/resources/form/basic_reg/form_definition.json delete mode 100644 opensrp-form/src/test/resources/form/basic_reg/form_submission.json delete mode 100644 opensrp-form/src/test/resources/form/basic_reg/model.xml delete mode 100644 opensrp-form/src/test/resources/form/new_household_registration/form.json delete mode 100644 opensrp-form/src/test/resources/form/new_household_registration/form.xml delete mode 100644 opensrp-form/src/test/resources/form/new_household_registration/form_definition.json delete mode 100644 opensrp-form/src/test/resources/form/new_household_registration/form_submission1.json delete mode 100644 opensrp-form/src/test/resources/form/new_household_registration/form_submission2.json delete mode 100644 opensrp-form/src/test/resources/form/new_household_registration/form_submission3.json delete mode 100644 opensrp-form/src/test/resources/form/new_household_registration/form_submission4.json delete mode 100644 opensrp-form/src/test/resources/form/new_household_registration/form_submission5.json delete mode 100644 opensrp-form/src/test/resources/form/new_household_registration/form_submission6.json delete mode 100644 opensrp-form/src/test/resources/form/new_household_registration/form_submission7.json delete mode 100644 opensrp-form/src/test/resources/form/new_household_registration/form_submission8.json delete mode 100644 opensrp-form/src/test/resources/form/new_household_registration/model.xml delete mode 100644 opensrp-form/src/test/resources/form/new_household_registration_with_grouped_subform_data/form.json delete mode 100644 opensrp-form/src/test/resources/form/new_household_registration_with_grouped_subform_data/form.xml delete mode 100644 opensrp-form/src/test/resources/form/new_household_registration_with_grouped_subform_data/form_definition.json delete mode 100644 opensrp-form/src/test/resources/form/new_household_registration_with_grouped_subform_data/form_submission1.json delete mode 100644 opensrp-form/src/test/resources/form/new_household_registration_with_grouped_subform_data/model.xml delete mode 100644 opensrp-form/src/test/resources/form/pnc_1st_registration/form.json delete mode 100644 opensrp-form/src/test/resources/form/pnc_1st_registration/form.xml delete mode 100644 opensrp-form/src/test/resources/form/pnc_1st_registration/form_definition.json delete mode 100644 opensrp-form/src/test/resources/form/pnc_1st_registration/form_submission.json delete mode 100644 opensrp-form/src/test/resources/form/pnc_1st_registration/model.xml delete mode 100644 opensrp-form/src/test/resources/form/repeatform/form.json delete mode 100644 opensrp-form/src/test/resources/form/repeatform/form_definition.json delete mode 100644 opensrp-form/src/test/resources/form/repeatform/form_submission.json delete mode 100644 opensrp-form/src/test/resources/form/repeatform/model.xml delete mode 100644 opensrp-interface/src/test/java/org.opensrp.dto/ANMDTOTest.java delete mode 100644 opensrp-interface/src/test/java/org.opensrp.dto/ActionDataTest.java delete mode 100644 opensrp-interface/src/test/java/org.opensrp.dto/ActionTest.java delete mode 100644 opensrp-interface/src/test/java/org.opensrp.dto/MonthSummaryDatumTest.java delete mode 100644 opensrp-interface/src/test/java/org.opensrp.dto/VillagesDTOTest.java delete mode 100644 opensrp-interface/src/test/java/org.opensrp.dto/aggregatorResponse/AggregatorResponseDTOTest.java delete mode 100644 opensrp-interface/src/test/java/org.opensrp.dto/form/FormSubmissionDTOTest.java delete mode 100644 opensrp-interface/src/test/java/org.opensrp.dto/form/MultimediaDTOTest.java delete mode 100644 opensrp-interface/src/test/java/org.opensrp.dto/register/ANCRegisterDTOTest.java delete mode 100644 opensrp-interface/src/test/java/org.opensrp.dto/register/ANCRegisterEntryDTOTest.java delete mode 100644 opensrp-interface/src/test/java/org.opensrp.dto/register/ANMDetailDTOTest.java delete mode 100644 opensrp-interface/src/test/java/org.opensrp.dto/register/ANMDetailsDTOTest.java delete mode 100644 opensrp-interface/src/test/java/org.opensrp.dto/register/ChildRegisterDTOTest.java delete mode 100644 opensrp-interface/src/test/java/org.opensrp.dto/register/ChildRegisterEntryDTOTest.java delete mode 100644 opensrp-interface/src/test/java/org.opensrp.dto/register/CondomFPDetailsDTOTest.java delete mode 100644 opensrp-interface/src/test/java/org.opensrp.dto/register/CondomRegisterEntryDTOTest.java delete mode 100644 opensrp-interface/src/test/java/org.opensrp.dto/register/ECRegisterDTOTest.java delete mode 100644 opensrp-interface/src/test/java/org.opensrp.dto/register/ECRegisterEntryDTOTest.java delete mode 100644 opensrp-interface/src/test/java/org.opensrp.dto/register/EntityDetailDTOTest.java delete mode 100644 opensrp-interface/src/test/java/org.opensrp.dto/register/FPRegisterDTOTest.java delete mode 100644 opensrp-interface/src/test/java/org.opensrp.dto/register/FemaleSterilizationFPDetailsDTOTest.java delete mode 100644 opensrp-interface/src/test/java/org.opensrp.dto/register/FemaleSterilizationRegisterEntryDTOTest.java delete mode 100644 opensrp-interface/src/test/java/org.opensrp.dto/register/IUDFPDetailsDTOTest.java delete mode 100644 opensrp-interface/src/test/java/org.opensrp.dto/register/IUDRegisterEntryDTOTest.java delete mode 100644 opensrp-interface/src/test/java/org.opensrp.dto/register/MaleSterilizationFPDetailsDTOTest.java delete mode 100644 opensrp-interface/src/test/java/org.opensrp.dto/register/MaleSterilizationRegisterEntryDTOTest.java delete mode 100644 opensrp-interface/src/test/java/org.opensrp.dto/register/OCPFPDetailsDTOTest.java delete mode 100644 opensrp-interface/src/test/java/org.opensrp.dto/register/OCPRegisterEntryDTOTest.java delete mode 100644 opensrp-interface/src/test/java/org.opensrp.dto/register/PNCRegisterDTOTest.java delete mode 100644 opensrp-interface/src/test/java/org.opensrp.dto/register/PNCRegisterEntryDTOTest.java delete mode 100644 opensrp-interface/src/test/java/org.opensrp.dto/register/PNCVisitDTOTest.java delete mode 100644 opensrp-interface/src/test/java/org.opensrp.dto/report/AggregatedReportsDTOTest.java delete mode 100644 opensrp-interface/src/test/java/org.opensrp.dto/report/ServiceProvidedReportDTOTest.java delete mode 100644 opensrp-interface/src/test/java/org.opensrp.dto/utils/PojoTestUtils.java delete mode 100644 opensrp-register/src/test/java/org/opensrp/register/it/CreateFormSubmissions.java delete mode 100644 opensrp-register/src/test/java/org/opensrp/register/service/handler/ANCScheduleHandlerTest.java delete mode 100644 opensrp-register/src/test/java/org/opensrp/register/service/handler/BNFScheduleHandlerTest.java delete mode 100644 opensrp-register/src/test/java/org/opensrp/register/service/handler/BaseScheduleHandlerTest.java delete mode 100644 opensrp-register/src/test/java/org/opensrp/register/service/handler/ChildScheduleHandlerTest.java delete mode 100644 opensrp-register/src/test/java/org/opensrp/register/service/handler/ElcoScheduleHandlerTest.java delete mode 100644 opensrp-register/src/test/java/org/opensrp/register/service/handler/HHScheduleHandlerTest.java delete mode 100644 opensrp-register/src/test/java/org/opensrp/register/service/handler/PNCScheduleHandlerTest.java delete mode 100644 opensrp-register/src/test/java/org/opensrp/register/service/handler/TestResourceLoader.java delete mode 100644 opensrp-register/src/test/java/org/opensrp/register/service/handler/VaccinesScheduleHandlerTest.java delete mode 100644 opensrp-register/src/test/java/org/opensrp/register/service/scheduling/AnteNatalCareSchedulesServiceTest.java delete mode 100644 opensrp-register/src/test/java/org/opensrp/register/service/scheduling/BNFSchedulesServiceTest.java delete mode 100644 opensrp-register/src/test/java/org/opensrp/register/service/scheduling/ENCCSchedulesServiceTest.java delete mode 100644 opensrp-register/src/test/java/org/opensrp/register/service/scheduling/ElcoSchedulesServiceTest.java delete mode 100644 opensrp-register/src/test/java/org/opensrp/register/service/scheduling/HHSchedulesServiceTest.java delete mode 100644 opensrp-register/src/test/java/org/opensrp/register/service/scheduling/PNCSchedulesServiceTest.java delete mode 100644 opensrp-register/src/test/java/org/opensrp/register/util/Event.java delete mode 100644 opensrp-register/src/test/java/org/opensrp/register/util/EventBuilder.java delete mode 100644 opensrp-register/src/test/java/org/opensrp/register/util/FormSubmissionBuilder.java delete mode 100644 opensrp-register/src/test/java/org/opensrp/register/util/Matcher.java delete mode 100644 opensrp-register/src/test/resources/form/child_enrollment/form.json delete mode 100644 opensrp-register/src/test/resources/form/child_enrollment/form.xml delete mode 100644 opensrp-register/src/test/resources/form/child_enrollment/form_definition.json delete mode 100644 opensrp-register/src/test/resources/form/child_enrollment/model.xml delete mode 100644 opensrp-register/src/test/resources/form/child_followup/form.json delete mode 100644 opensrp-register/src/test/resources/form/child_followup/form.xml delete mode 100644 opensrp-register/src/test/resources/form/child_followup/form_definition.json delete mode 100644 opensrp-register/src/test/resources/form/child_followup/model.xml delete mode 100644 opensrp-register/src/test/resources/form/offsite_child_followup/form.json delete mode 100644 opensrp-register/src/test/resources/form/offsite_child_followup/form.xml delete mode 100644 opensrp-register/src/test/resources/form/offsite_child_followup/form_definition.json delete mode 100644 opensrp-register/src/test/resources/form/offsite_child_followup/model.xml delete mode 100644 opensrp-register/src/test/resources/form/offsite_woman_followup/form.json delete mode 100644 opensrp-register/src/test/resources/form/offsite_woman_followup/form.xml delete mode 100644 opensrp-register/src/test/resources/form/offsite_woman_followup/form_definition.json delete mode 100644 opensrp-register/src/test/resources/form/offsite_woman_followup/model.xml delete mode 100644 opensrp-register/src/test/resources/form/vaccine_stock_position/form.json delete mode 100644 opensrp-register/src/test/resources/form/vaccine_stock_position/form.xml delete mode 100644 opensrp-register/src/test/resources/form/vaccine_stock_position/form_definition.json delete mode 100644 opensrp-register/src/test/resources/form/vaccine_stock_position/model.xml delete mode 100644 opensrp-register/src/test/resources/form/woman_enrollment/form.json delete mode 100644 opensrp-register/src/test/resources/form/woman_enrollment/form.xml delete mode 100644 opensrp-register/src/test/resources/form/woman_enrollment/form_definition.json delete mode 100644 opensrp-register/src/test/resources/form/woman_enrollment/model.xml delete mode 100644 opensrp-register/src/test/resources/form/woman_followup/form.json delete mode 100644 opensrp-register/src/test/resources/form/woman_followup/form.xml delete mode 100644 opensrp-register/src/test/resources/form/woman_followup/form_definition.json delete mode 100644 opensrp-register/src/test/resources/form/woman_followup/model.xml delete mode 100644 opensrp-register/src/test/resources/schedules/child-bcg.json delete mode 100644 opensrp-register/src/test/resources/schedules/child-ipv.json delete mode 100644 opensrp-register/src/test/resources/schedules/child-measles1.json delete mode 100644 opensrp-register/src/test/resources/schedules/child-measles2.json delete mode 100644 opensrp-register/src/test/resources/schedules/child-opv0.json delete mode 100644 opensrp-register/src/test/resources/schedules/child-opv1.json delete mode 100644 opensrp-register/src/test/resources/schedules/child-opv2.json delete mode 100644 opensrp-register/src/test/resources/schedules/child-opv3.json delete mode 100644 opensrp-register/src/test/resources/schedules/child-pcv1.json delete mode 100644 opensrp-register/src/test/resources/schedules/child-pcv2.json delete mode 100644 opensrp-register/src/test/resources/schedules/child-pcv3.json delete mode 100644 opensrp-register/src/test/resources/schedules/child-pentavalent1.json delete mode 100644 opensrp-register/src/test/resources/schedules/child-pentavalent2.json delete mode 100644 opensrp-register/src/test/resources/schedules/child-pentavalent3.json delete mode 100644 opensrp-register/src/test/resources/schedules/schedule-config.xls delete mode 100644 opensrp-register/src/test/resources/schedules/woman-tt2.json delete mode 100644 opensrp-register/src/test/resources/schedules/woman-tt3.json delete mode 100644 opensrp-register/src/test/resources/schedules/woman-tt4.json delete mode 100644 opensrp-register/src/test/resources/schedules/woman-tt5.json delete mode 100644 opensrp-register/src/test/resources/test-applicationContext-opensrp-register.xml delete mode 100644 opensrp-reporting/src/test/java/org/opensrp/reporting/AggregateReportsSchedulerTest.java delete mode 100644 opensrp-reporting/src/test/java/org/opensrp/reporting/controller/ANMControllerTest.java delete mode 100644 opensrp-reporting/src/test/java/org/opensrp/reporting/controller/AggregatedReportControllerTest.java delete mode 100644 opensrp-reporting/src/test/java/org/opensrp/reporting/controller/LocationControllerTest.java delete mode 100644 opensrp-reporting/src/test/java/org/opensrp/reporting/controller/PHCUserDetailsFetcherTest.java delete mode 100644 opensrp-reporting/src/test/java/org/opensrp/reporting/controller/ReportDataControllerTest.java delete mode 100644 opensrp-reporting/src/test/java/org/opensrp/reporting/controller/SCUserDetailsFetcherTest.java delete mode 100644 opensrp-reporting/src/test/java/org/opensrp/reporting/factory/DetailsFetcherFactoryTest.java delete mode 100644 opensrp-reporting/src/test/java/org/opensrp/reporting/repository/ANMReportsRepositoryTest.java delete mode 100644 opensrp-reporting/src/test/java/org/opensrp/reporting/repository/ServicesProvidedRepositoryTest.java delete mode 100644 opensrp-reporting/src/test/java/org/opensrp/reporting/repository/TestANMReportDataAccessTemplate.java delete mode 100644 opensrp-reporting/src/test/java/org/opensrp/reporting/repository/TestServiceProvidedDataAccessTemplate.java delete mode 100644 opensrp-reporting/src/test/java/org/opensrp/reporting/repository/cache/ReadOnlyCachingRepositoryTest.java delete mode 100644 opensrp-reporting/src/test/java/org/opensrp/reporting/repository/it/ANMReportDataIntegrationTest.java delete mode 100644 opensrp-reporting/src/test/java/org/opensrp/reporting/repository/it/ANMReportsIntegrationTestBase.java delete mode 100644 opensrp-reporting/src/test/java/org/opensrp/reporting/repository/it/AllANMsRepositoryIntegrationTest.java delete mode 100644 opensrp-reporting/src/test/java/org/opensrp/reporting/repository/it/AllAnnualTargetsRepositoryIntegrationTest.java delete mode 100644 opensrp-reporting/src/test/java/org/opensrp/reporting/repository/it/AllIndicatorsRepositoryIntegrationTest.java delete mode 100644 opensrp-reporting/src/test/java/org/opensrp/reporting/repository/it/AllLocationsRepositoryIntegrationTest.java delete mode 100644 opensrp-reporting/src/test/java/org/opensrp/reporting/repository/it/AllSP_ANMsRepositoryIntegrationTest.java delete mode 100644 opensrp-reporting/src/test/java/org/opensrp/reporting/repository/it/AllServiceProvidersRepositoryIntegrationTest.java delete mode 100644 opensrp-reporting/src/test/java/org/opensrp/reporting/repository/it/AllServicesProvidedIntegrationTest.java delete mode 100644 opensrp-reporting/src/test/java/org/opensrp/reporting/repository/it/AllTokenRepositoryIntegrationTest.java delete mode 100644 opensrp-reporting/src/test/java/org/opensrp/reporting/repository/it/ServicesProvidedIntegrationTestBase.java delete mode 100644 opensrp-reporting/src/test/java/org/opensrp/reporting/service/AggregateReportsServiceTest.java delete mode 100644 opensrp-reporting/src/test/resources/spring/applicationContext-opensrp-reporting-test.xml delete mode 100644 opensrp-reporting/src/test/resources/spring/applicationContext-reporting-repository-test.xml delete mode 100644 opensrp-web/src/test/java/org/opensrp/fixtures/csv_to_import.csv delete mode 100644 opensrp-web/src/test/java/org/opensrp/integration/ChildImmunizationFields.java delete mode 100644 opensrp-web/src/test/java/org/opensrp/integration/ScheduleTrackingSchedulesJSONTest.java delete mode 100644 opensrp-web/src/test/java/org/opensrp/integration/SpringApplicationContextProvider.java delete mode 100644 opensrp-web/src/test/java/org/opensrp/web/AuthenticationFilterTest.java delete mode 100644 opensrp-web/src/test/java/org/opensrp/web/controller/AuditMessageControllerTest.java delete mode 100644 opensrp-web/src/test/java/org/opensrp/web/controller/FormDownloadTest.java delete mode 100644 opensrp-web/src/test/java/org/opensrp/web/controller/OpenmrsReportingTest.java delete mode 100644 opensrp-web/src/test/java/org/opensrp/web/controller/UserControllerTest.java delete mode 100644 opensrp-web/src/test/java/org/opensrp/web/controller/XlsDataImportControllerTest.java delete mode 100644 opensrp-web/src/test/java/org/opensrp/web/controller/it/ActionControllerTest.java delete mode 100644 opensrp-web/src/test/java/org/opensrp/web/controller/it/AuditMessageControllerIntegrationTest.java delete mode 100644 opensrp-web/src/test/java/org/opensrp/web/controller/it/ErrorTraceControllerIntegrationTest.java delete mode 100644 opensrp-web/src/test/java/org/opensrp/web/controller/it/FormDownloadIntegrationTest.java delete mode 100644 opensrp-web/src/test/java/org/opensrp/web/controller/it/FormSubmissionIntegrationTest.java delete mode 100644 opensrp-web/src/test/java/org/opensrp/web/controller/it/UserControllerIntegrationTest.java delete mode 100644 opensrp-web/src/test/java/org/opensrp/web/it/AtomFeedIntegrationTest.java delete mode 100644 opensrp-web/src/test/java/org/opensrp/web/it/DrishtiScheduleConstants.java delete mode 100644 opensrp-web/src/test/java/org/opensrp/web/it/DrishtiSchedulesIntegrationTest.java delete mode 100644 opensrp-web/src/test/java/org/opensrp/web/it/RulesFactoryTest.java delete mode 100644 opensrp-web/src/test/java/org/opensrp/web/it/listener/ClientListenerTest.java delete mode 100644 opensrp-web/src/test/java/org/opensrp/web/it/listener/CreateNewCamp.java delete mode 100644 opensrp-web/src/test/java/org/opensrp/web/rest/it/BaseResourceTest.java delete mode 100644 opensrp-web/src/test/java/org/opensrp/web/rest/it/ClientResourceTest.java delete mode 100644 opensrp-web/src/test/java/org/opensrp/web/rest/it/EventResourceTest.java delete mode 100644 opensrp-web/src/test/java/org/opensrp/web/rest/it/FormSubmissionResourceTest.java delete mode 100644 opensrp-web/src/test/java/org/opensrp/web/rest/it/ProviderResourceTest.java delete mode 100644 opensrp-web/src/test/java/org/opensrp/web/rest/it/ReportResourceTest.java delete mode 100644 opensrp-web/src/test/java/org/opensrp/web/rest/it/ResourceTestUtility.java delete mode 100644 opensrp-web/src/test/java/org/opensrp/web/rest/it/SearchResourceTest.java delete mode 100644 opensrp-web/src/test/java/org/opensrp/web/rest/it/StockResourceTest.java delete mode 100644 opensrp-web/src/test/java/org/opensrp/web/rest/it/TestWebContextLoader.java delete mode 100644 opensrp-web/src/test/java/org/opensrp/web/security/DrishtiAuthenticationProviderTest.java delete mode 100644 opensrp-web/src/test/java/org/opensrp/web/utils/OpenmrsHttpUtil.java delete mode 100644 opensrp-web/src/test/java/org/opensrp/web/utils/PdfUtilTest.java delete mode 100644 opensrp-web/src/test/java/org/opensrp/web/utils/RestUtilsTest.java delete mode 100644 opensrp-web/src/test/java/org/opensrp/web/utils/TestResourceLoader.java delete mode 100644 opensrp-web/src/test/js/auditmessage_spec.js delete mode 100644 opensrp-web/src/test/resources/form/child_enrollment/form.json delete mode 100644 opensrp-web/src/test/resources/form/child_enrollment/form.xml delete mode 100644 opensrp-web/src/test/resources/form/child_enrollment/form_definition.json delete mode 100644 opensrp-web/src/test/resources/form/child_enrollment/model.xml delete mode 100644 opensrp-web/src/test/resources/form/child_followup/form.json delete mode 100644 opensrp-web/src/test/resources/form/child_followup/form.xml delete mode 100644 opensrp-web/src/test/resources/form/child_followup/form_definition.json delete mode 100644 opensrp-web/src/test/resources/form/child_followup/model.xml delete mode 100644 opensrp-web/src/test/resources/form/entity_relationship.json delete mode 100644 opensrp-web/src/test/resources/form/new_household_registration/form.json delete mode 100644 opensrp-web/src/test/resources/form/new_household_registration/form.xml delete mode 100644 opensrp-web/src/test/resources/form/new_household_registration/form_definition.json delete mode 100644 opensrp-web/src/test/resources/form/new_household_registration/form_submission1.json delete mode 100644 opensrp-web/src/test/resources/form/new_household_registration/form_submission10.json delete mode 100644 opensrp-web/src/test/resources/form/new_household_registration/form_submission2.json delete mode 100644 opensrp-web/src/test/resources/form/new_household_registration/form_submission3.json delete mode 100644 opensrp-web/src/test/resources/form/new_household_registration/form_submission4.json delete mode 100644 opensrp-web/src/test/resources/form/new_household_registration/form_submission5.json delete mode 100644 opensrp-web/src/test/resources/form/new_household_registration/form_submission6.json delete mode 100644 opensrp-web/src/test/resources/form/new_household_registration/form_submission7.json delete mode 100644 opensrp-web/src/test/resources/form/new_household_registration/form_submission8.json delete mode 100644 opensrp-web/src/test/resources/form/new_household_registration/form_submission9.json delete mode 100644 opensrp-web/src/test/resources/form/new_household_registration/model.xml delete mode 100644 opensrp-web/src/test/resources/form/offsite_child_followup/form.json delete mode 100644 opensrp-web/src/test/resources/form/offsite_child_followup/form.xml delete mode 100644 opensrp-web/src/test/resources/form/offsite_child_followup/form_definition.json delete mode 100644 opensrp-web/src/test/resources/form/offsite_child_followup/model.xml delete mode 100644 opensrp-web/src/test/resources/form/offsite_woman_followup/form.json delete mode 100644 opensrp-web/src/test/resources/form/offsite_woman_followup/form.xml delete mode 100644 opensrp-web/src/test/resources/form/offsite_woman_followup/form_definition.json delete mode 100644 opensrp-web/src/test/resources/form/offsite_woman_followup/model.xml delete mode 100644 opensrp-web/src/test/resources/form/vaccine_stock_position/form.json delete mode 100644 opensrp-web/src/test/resources/form/vaccine_stock_position/form.xml delete mode 100644 opensrp-web/src/test/resources/form/vaccine_stock_position/form_definition.json delete mode 100644 opensrp-web/src/test/resources/form/vaccine_stock_position/model.xml delete mode 100644 opensrp-web/src/test/resources/form/woman_enrollment/form.json delete mode 100644 opensrp-web/src/test/resources/form/woman_enrollment/form.xml delete mode 100644 opensrp-web/src/test/resources/form/woman_enrollment/form_definition.json delete mode 100644 opensrp-web/src/test/resources/form/woman_enrollment/model.xml delete mode 100644 opensrp-web/src/test/resources/form/woman_followup/form.json delete mode 100644 opensrp-web/src/test/resources/form/woman_followup/form.xml delete mode 100644 opensrp-web/src/test/resources/form/woman_followup/form_definition.json delete mode 100644 opensrp-web/src/test/resources/form/woman_followup/model.xml delete mode 100644 opensrp-web/src/test/resources/schedules/child-bcg.json delete mode 100644 opensrp-web/src/test/resources/schedules/child-dpt-booster1.json delete mode 100644 opensrp-web/src/test/resources/schedules/child-dpt-booster2.json delete mode 100644 opensrp-web/src/test/resources/schedules/child-ipv.json delete mode 100644 opensrp-web/src/test/resources/schedules/child-measles1.json delete mode 100644 opensrp-web/src/test/resources/schedules/child-measles2.json delete mode 100644 opensrp-web/src/test/resources/schedules/child-opv-booster.json delete mode 100644 opensrp-web/src/test/resources/schedules/child-opv0.json delete mode 100644 opensrp-web/src/test/resources/schedules/child-opv1.json delete mode 100644 opensrp-web/src/test/resources/schedules/child-opv2.json delete mode 100644 opensrp-web/src/test/resources/schedules/child-opv3.json delete mode 100644 opensrp-web/src/test/resources/schedules/child-pcv1.json delete mode 100644 opensrp-web/src/test/resources/schedules/child-pcv2.json delete mode 100644 opensrp-web/src/test/resources/schedules/child-pcv3.json delete mode 100644 opensrp-web/src/test/resources/schedules/child-pentavalent1.json delete mode 100644 opensrp-web/src/test/resources/schedules/child-pentavalent2.json delete mode 100644 opensrp-web/src/test/resources/schedules/child-pentavalent3.json delete mode 100644 opensrp-web/src/test/resources/schedules/delivery-plan.json delete mode 100644 opensrp-web/src/test/resources/schedules/ec-condom-refill.json delete mode 100644 opensrp-web/src/test/resources/schedules/ec-dmpa-injectable-refill.json delete mode 100644 opensrp-web/src/test/resources/schedules/ec-female-sterilization-followup.json delete mode 100644 opensrp-web/src/test/resources/schedules/ec-fp-followup.json delete mode 100644 opensrp-web/src/test/resources/schedules/ec-fp-referral-followup.json delete mode 100644 opensrp-web/src/test/resources/schedules/ec-iud-followup.json delete mode 100644 opensrp-web/src/test/resources/schedules/ec-male-sterilization-followup.json delete mode 100644 opensrp-web/src/test/resources/schedules/ec-ocp-refill.json delete mode 100644 opensrp-web/src/test/resources/schedules/fw-census.json delete mode 100644 opensrp-web/src/test/resources/schedules/mother-anc-normal.json delete mode 100644 opensrp-web/src/test/resources/schedules/mother-auto-close-pnc.json delete mode 100644 opensrp-web/src/test/resources/schedules/mother-expected-date-of-delivery.json delete mode 100644 opensrp-web/src/test/resources/schedules/mother-hb-followup-test.json delete mode 100644 opensrp-web/src/test/resources/schedules/mother-hb-test-1.json delete mode 100644 opensrp-web/src/test/resources/schedules/mother-hb-test-2.json delete mode 100644 opensrp-web/src/test/resources/schedules/mother-ifa-1.json delete mode 100644 opensrp-web/src/test/resources/schedules/mother-ifa-2.json delete mode 100644 opensrp-web/src/test/resources/schedules/mother-ifa-3.json delete mode 100644 opensrp-web/src/test/resources/schedules/mother-lab-reminder.json delete mode 100644 opensrp-web/src/test/resources/schedules/schedule-config.xls delete mode 100644 opensrp-web/src/test/resources/schedules/woman-tt2.json delete mode 100644 opensrp-web/src/test/resources/schedules/woman-tt3.json delete mode 100644 opensrp-web/src/test/resources/schedules/woman-tt4.json delete mode 100644 opensrp-web/src/test/resources/schedules/woman-tt5.json diff --git a/opensrp-api/src/test/java/org/opensrp/api/domain/AddressTest.java b/opensrp-api/src/test/java/org/opensrp/api/domain/AddressTest.java deleted file mode 100644 index 98d53e744a..0000000000 --- a/opensrp-api/src/test/java/org/opensrp/api/domain/AddressTest.java +++ /dev/null @@ -1,245 +0,0 @@ -package org.opensrp.api.domain; - -import org.joda.time.DateTime; -import org.junit.Test; -import org.opensrp.api.domain.Address; -import org.opensrp.common.AddressField; - -import com.openpojo.reflection.PojoClass; -import com.openpojo.reflection.impl.PojoClassFactory; -import com.openpojo.validation.Validator; -import com.openpojo.validation.ValidatorBuilder; -import com.openpojo.validation.rule.impl.GetterMustExistRule; -import com.openpojo.validation.rule.impl.SetterMustExistRule; -import com.openpojo.validation.test.impl.GetterTester; -import com.openpojo.validation.test.impl.SetterTester; - -import java.util.Date; -import java.util.HashMap; -import java.util.Map; - -import junit.framework.Assert; - -import static org.junit.Assert.*; - -public class AddressTest { - - public static final String NO_MATCH_ADDRESS_FIELD_MESSAGE = "No match. Should return NULL value."; - - @Test - public void testAddressActivity() { - Address address = new Address(); - - assertTrue("Address should be ACTIVE when no endDate provided", address.isActive()); - - DateTime currentDate = new DateTime(); - DateTime currentDatePlusOneDay = currentDate.plusDays(1); - address.setEndDate(currentDatePlusOneDay.toDate()); - - assertTrue("Address should be ACTIVE when endDate is greater than currentDate", address.isActive()); - - - address.setEndDate(new Date()); - assertFalse("Address should be IN-ACTIVE when endDate less than current date", address.isActive()); - - } - - @Test - public void testInvalidDurationForNoStartDateTime() { - Address address = new Address(); - assertTrue("Duration of Address should be -1 for no startDate", address.durationInDays()==-1); - assertTrue("Duration of Address should be -1 for no startDate", address.durationInWeeks()==-1); - assertTrue("Duration of Address should be -1 for no startDate", address.durationInMonths()==-1); - assertTrue("Duration of Address should be -1 for no startDate", address.durationInYears()==-1); - - } - - @Test - public void testDurationIfNoEndDatePresent() { - Address address = new Address(); - address.setStartDate(new Date()); - int days = address.durationInDays(); - System.out.println(days); - boolean isLessThanADay = 0 == days; - assertTrue("Duration will be less than a day, if start date is set to current date time.", isLessThanADay); - } - - @Test - public void testDurationWithBothStartDateAndEndDate() { - DateTime currentDate = new DateTime(); - DateTime currentDatePlusOneYear = currentDate.plusYears(1); - - Address address = new Address(); - address.setStartDate(currentDate.toDate()); - address.setEndDate(currentDatePlusOneYear.toDate()); - - assertEquals(1, address.durationInYears()); - assertEquals(12, address.durationInMonths()); - assertEquals(52, address.durationInWeeks()); - assertEquals(365, address.durationInDays()); - } - - @Test - public void testAddressCreationWithConstructor(){ - Address address = new Address("Birthplace", new Date(), null, null, "2.222", "3.333", "75210", "Sindh", "Pakistan"); - - assertEquals("Address type invalid", address.getAddressType(), "Birthplace"); - assertEquals("Lat value invalid", address.getLatitude(), "2.222"); - assertEquals("Long value invalid", address.getLongitute(), "3.333"); - assertEquals("Postcode value invalid", address.getPostalCode(), "75210"); - assertEquals("State value invalid", address.getState(), "Sindh"); - assertEquals("Country value invalid", address.getCountry(), "Pakistan"); - - } - - @Test - public void testAddressCreationgWithSetter(){ - Date sd = new Date(); - Date ed = new Date(); - Address address = new Address(); - address.withAddressType("Deathplace"); - address.withCountry("Pakistan"); - address.withState("Punjab"); - address.withPostalCode("75290"); - address.withLatitude("2.222"); - address.withLongitute("3.333"); - address.withStartDate(sd); - address.withEndDate(ed); - - assertEquals("Address type invalid", address.getAddressType(), "Deathplace"); - assertEquals("Postcode value invalid", address.getPostalCode(), "75290"); - assertEquals("State value invalid", address.getState(), "Punjab"); - assertEquals("Country value invalid", address.getCountry(), "Pakistan"); - assertEquals("Lat value invalid", address.getLatitude(), "2.222"); - assertEquals("Long value invalid", address.getLongitute(), "3.333"); - assertEquals("StartDate invalid", address.getStartDate(), sd); - assertEquals("EndDate invalid", address.getStartDate(), ed); - } - - - @Test - public void testGettingAddressFiledByRegex() { - String stringVal = "areaVal"; - String integerVal = "1"; - String noRegexMatch = ""; - String allRegexMatch = "\\D*"; - Map addressFields = new HashMap<>(); - addressFields.put(AddressField.AREA.name(), stringVal); - - - Address address = new Address(); - address.setAddressFields(addressFields); - address.addAddressField(AddressField.HOUSE_NUMBER.name(), integerVal); - - - String invalidAddressValue = address.getAddressFieldMatchingRegex(noRegexMatch); - assertNull(NO_MATCH_ADDRESS_FIELD_MESSAGE, invalidAddressValue); - - String validAddressValue1 = address.getAddressFieldMatchingRegex(allRegexMatch); - assertEquals(integerVal, validAddressValue1); - - String numberAddressVAlue = address.getAddressFieldMatchingRegex(AddressField.AREA.name()); - assertEquals(stringVal, numberAddressVAlue); - - } - - @Test - public void testGettingSpecificAddressField() { - String stringVal = "areaVal"; - String noFieldMatch = ""; - String lowerCaseFieldName = "area"; - String upperCaseFieldName = "AREA"; - - Map addressFields = new HashMap<>(); - addressFields.put(AddressField.AREA.name(), stringVal); - - - Address address = new Address(); - address.setAddressFields(addressFields); - - String nullAddressValue = address.getAddressField(noFieldMatch); - assertNull(NO_MATCH_ADDRESS_FIELD_MESSAGE, nullAddressValue); - - String invalidAddressValue = address.getAddressField(AddressField.HOUSE_NUMBER); - assertNull(NO_MATCH_ADDRESS_FIELD_MESSAGE, invalidAddressValue); - - String validValueWithEnum = address.getAddressField(AddressField.AREA); - assertEquals(stringVal, validValueWithEnum); - - String validValueWithLowerCase = address.getAddressField(lowerCaseFieldName); - assertEquals(stringVal, validValueWithLowerCase); - - String validValueWithUpperCase = address.getAddressField(upperCaseFieldName); - assertEquals(stringVal, validValueWithUpperCase); - - } - - @Test - public void testRemovingAddressField() { - String stringVal = "areaVal"; - String lowerCaseFieldName = "area"; - String upperCaseFieldName = "AREA"; - - - Map addressFields = new HashMap<>(); - addressFields.put(AddressField.AREA.name(), stringVal); - Address address = new Address(); - address.setAddressFields(addressFields); - - address.removeAddressField(AddressField.HOUSE_NUMBER); - assertEquals(1, address.getAddressFields().size()); - assertNotNull(address.getAddressField(AddressField.AREA)); - - address.removeAddressField(AddressField.AREA); - assertEquals(0, address.getAddressFields().size()); - assertNull(address.getAddressField(AddressField.AREA)); - - - - address.addAddressField(AddressField.AREA, stringVal); - - address.removeAddressField(""); - assertEquals(1, address.getAddressFields().size()); - assertNotNull(address.getAddressField(AddressField.AREA)); - - address.removeAddressField(lowerCaseFieldName); - assertEquals(0, address.getAddressFields().size()); - assertNull(address.getAddressField(AddressField.AREA)); - - - - - address.addAddressField(AddressField.AREA, stringVal); - address.removeAddressField(upperCaseFieldName); - assertEquals(0, address.getAddressFields().size()); - assertNull(address.getAddressField(AddressField.AREA)); - - } - - @Test - public void testAddressField(){ - Address address = new Address(); - address.setAddressType("usual_residence"); - Assert.assertEquals("usual_residence", address.getAddressType()); - Assert.assertNotSame("usual_residence_1", address.getAddressType()); - address.withAddressField("address3", "Dambwa_Central"); - Map addressFields = new HashMap<>(); - addressFields.put("address2", "morelight c566"); - address.withAddressFields(addressFields); - address.withAddressField(AddressField.AREA, "Ares"); - Assert.assertEquals("morelight c566", address.getAddressField("address2")); - Assert.assertNotSame("morelight c5666", address.getAddressField("address2")); - } - @Test - public void shouldTestSetterAndGetter() { - PojoClass pojoClass = PojoClassFactory.getPojoClass(Address.class); - Validator pojoValidator = ValidatorBuilder.create() - .with(new SetterMustExistRule()) - .with(new GetterMustExistRule()) - .with(new GetterTester()) - .with(new SetterTester()) - .build(); - - pojoValidator.validate(pojoClass); - } -} diff --git a/opensrp-api/src/test/java/org/opensrp/api/domain/BaseEntityTest.java b/opensrp-api/src/test/java/org/opensrp/api/domain/BaseEntityTest.java deleted file mode 100644 index 156a3bdb20..0000000000 --- a/opensrp-api/src/test/java/org/opensrp/api/domain/BaseEntityTest.java +++ /dev/null @@ -1,109 +0,0 @@ -package org.opensrp.api.domain; - -import java.util.ArrayList; -import java.util.Calendar; -import java.util.Date; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import junit.framework.Assert; - -import org.junit.Test; -import org.opensrp.common.Gender; - -import com.openpojo.reflection.PojoClass; -import com.openpojo.reflection.construct.InstanceFactory; -import com.openpojo.reflection.impl.PojoClassFactory; -import com.openpojo.validation.Validator; -import com.openpojo.validation.ValidatorBuilder; -import com.openpojo.validation.affirm.Affirm; -import com.openpojo.validation.rule.impl.GetterMustExistRule; -import com.openpojo.validation.rule.impl.SetterMustExistRule; -import com.openpojo.validation.test.impl.GetterTester; -import com.openpojo.validation.test.impl.SetterTester; - -public class BaseEntityTest { - - - @Test - public void shouldTestBaseEntity(){ - BaseEntity baseEntity = new BaseEntity(); - Assert.assertNull(baseEntity.getIdentifier(null)); - Assert.assertNull(baseEntity.getAttribute(null)); - BaseEntity baseEntity1= new BaseEntity("oioi-ojhghhg-88777ddd"); - Map identifiers = new HashMap<>(); - identifiers.put("identifier", "value"); - BaseEntity baseEntity2 = new BaseEntity("oioi-ojhghhg-88777ddd", identifiers); - Map attributes = new HashMap<>(); - attributes.put("Home_Facility", "5bf3b4ca-9482-4e85-ab7a-0c44e4edb329"); - BaseEntity baseEntity3 = new BaseEntity("oioi-ojhghhg-88777ddd", identifiers, attributes); - List
addresses = new ArrayList<>(); - Address address = new Address(); - address.setAddressType("usual_residence"); - addresses.add(address); - BaseEntity baseEntity4 = new BaseEntity("oioi-ojhghhg-88777ddd", identifiers, attributes, addresses); - - baseEntity.addAttribute("CHW_Phone_Number", "0193456667"); - baseEntity.addAddress(address); - - Assert.assertEquals("0193456667", baseEntity.getAttribute("CHW_Phone_Number")); - Assert.assertNull(baseEntity.getAttribute(null)); - baseEntity.removeAttribute("CHW_Phone_Number"); - baseEntity.addIdentifier("ZEIR_ID", "101304-4"); - Assert.assertEquals("101304-4", baseEntity.getIdentifier("ZEIR_ID")); - Assert.assertEquals("101304-4", baseEntity.getIdentifierMatchingRegex("ZEIR_ID")); - baseEntity.removeIdentifier("ZEIR_ID"); - baseEntity.withBaseEntityId("fff-uuur-8utt"); - - } - - @Test - public void shouldTestIdentifier(){ - BaseEntity baseEntity = new BaseEntity(); - baseEntity.withIdentifier("Zeir", "1234"); - Assert.assertEquals("1234", baseEntity.getIdentifier("Zeir")); - Assert.assertNotSame("1234s", baseEntity.getIdentifier("Zeir")); - - Map identifiers = new HashMap<>(); - identifiers.put("ZEIR_ID", "101304-4"); - baseEntity.withIdentifiers(identifiers); - Assert.assertEquals("101304-4", baseEntity.getIdentifier("ZEIR_ID")); - Assert.assertNotSame("1234s", baseEntity.getIdentifier("ZEIR_ID")); - - } - @Test - public void shouldTestAttributeAndAttribute(){ - BaseEntity baseEntity = new BaseEntity(); - List
addresses = new ArrayList<>(); - Address address = new Address(); - address.setAddressType("usual_residence"); - addresses.add(address); - baseEntity.withAddress(address); - Assert.assertEquals(addresses, baseEntity.getAddresses()); - baseEntity.withAddresses(addresses); - BaseEntity baseEntityForAttribute = new BaseEntity(); - baseEntityForAttribute.withAttribute("CHW_Phone_Number", "n/a"); - - Assert.assertEquals("n/a", baseEntityForAttribute.getAttribute("CHW_Phone_Number")); - Assert.assertNotSame("n/aa", baseEntityForAttribute.getAttribute("CHW_Phone_Number")); - Map attributes = new HashMap<>(); - attributes.put("CHW_Phone_Number", "1234"); - baseEntityForAttribute.withAttributes(attributes); - Assert.assertEquals("1234", baseEntityForAttribute.getAttribute("CHW_Phone_Number")); - - } - @Test - public void shouldTestSetterAndGetter() { - PojoClass pojoClass = PojoClassFactory.getPojoClass(BaseEntity.class); - Validator pojoValidator = ValidatorBuilder.create() - .with(new SetterMustExistRule()) - .with(new GetterMustExistRule()) - .with(new GetterTester()) - .with(new SetterTester()) - .build(); - - pojoValidator.validate(pojoClass); - } - -} diff --git a/opensrp-api/src/test/java/org/opensrp/api/domain/ClientTest.java b/opensrp-api/src/test/java/org/opensrp/api/domain/ClientTest.java deleted file mode 100644 index 58ba4da4a6..0000000000 --- a/opensrp-api/src/test/java/org/opensrp/api/domain/ClientTest.java +++ /dev/null @@ -1,103 +0,0 @@ -package org.opensrp.api.domain; - -import java.util.ArrayList; -import java.util.Calendar; -import java.util.Date; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import org.junit.Test; -import org.opensrp.common.Gender; - -import com.openpojo.reflection.PojoClass; -import com.openpojo.reflection.construct.InstanceFactory; -import com.openpojo.reflection.impl.PojoClassFactory; -import com.openpojo.validation.Validator; -import com.openpojo.validation.ValidatorBuilder; -import com.openpojo.validation.affirm.Affirm; -import com.openpojo.validation.rule.impl.GetterMustExistRule; -import com.openpojo.validation.rule.impl.SetterMustExistRule; -import com.openpojo.validation.test.impl.GetterTester; -import com.openpojo.validation.test.impl.SetterTester; - -import junit.framework.Assert; - -public class ClientTest { - - @Test - @SuppressWarnings("RedundantArrayCreation") - public void shouldTestConstructor() { - List
addresses = new ArrayList<>(); - Map identifiers = new HashMap<>(); - Map attributes = new HashMap<>(); - final Class clazz = Client.class; - final Object obj1 = getInstance(clazz, "ooo-02we-98","lieo","daow","sonn",new Date(),new Date(), - true, true,"Male","identifierType","identifier"); - Affirm.affirmNotNull("Should have created an object", obj1); - final Object obj3 = getInstance(clazz,"ooo-02we-98","lieo","daow","sonn",new Date(),new Date(), - true, true,"Male",addresses,identifiers,attributes); - Affirm.affirmTrue("Should have created a different object", obj1 != obj3); - Affirm.affirmNotNull("Should have created an object", obj3); - final Object obj4 = getInstance(clazz,"ooo-02we-98","lieo","daow","sonn",new Date(),new Date(), - true, true,"Male"); - Affirm.affirmNotNull("Should have created an object", obj4); - } - - @Test - public void shouldTestEvent(){ - Client Client1 = new Client(); - Client1.withFirstName("robina"); - Assert.assertEquals("robina", Client1.getFirstName()); - Assert.assertNotSame("Not Same", "robin", Client1.getFirstName()); - Client1.withMiddleName("jack"); - Assert.assertEquals("jack", Client1.getMiddleName()); - Assert.assertNotSame("Not Same", "robin", Client1.getMiddleName()); - Client1.withLastName("mona"); - Assert.assertEquals("mona", Client1.getLastName()); - Assert.assertNotSame("Not Same", "robin", Client1.getLastName()); - Client1.withName("Robin", "jack", "mon"); - - Assert.assertEquals("Robin", Client1.getFirstName()); - Assert.assertNotSame("Not Same", "robins", Client1.getFirstName()); - - Date now=new Date(); - Client1.withBirthdate(now,true); - Assert.assertEquals(now, Client1.getBirthdate()); - Date dt = new Date(); - Calendar c = Calendar.getInstance(); - c.setTime(dt); - c.add(Calendar.DATE, 1); - dt = c.getTime(); - Assert.assertNotSame("Not Same", dt, Client1.getBirthdate()); - - Client1.withDeathdate(now, true); - - Assert.assertEquals(now, Client1.getDeathdate()); - Assert.assertNotSame("Not Same", dt, Client1.getDeathdate()); - Client1.withGender("Male"); - Assert.assertEquals("Male", Client1.getGender()); - Assert.assertNotSame("FEMALE", dt, Client1.getGender()); - Client1.withGender(Gender.FEMALE); - Assert.assertEquals("FEMALE", Client1.getGender()); - Assert.assertNotSame("male", dt, Client1.getGender()); - - } - @Test - public void shouldTestSetterAndGetter() { - PojoClass pojoClass = PojoClassFactory.getPojoClass(Client.class); - Validator pojoValidator = ValidatorBuilder.create() - .with(new SetterMustExistRule()) - .with(new GetterMustExistRule()) - .with(new GetterTester()) - .with(new SetterTester()) - .build(); - - pojoValidator.validate(pojoClass); - } - private Object getInstance(final Class clazz, final Object... parameters) { - final PojoClass pojoClass = PojoClassFactory.getPojoClass(clazz); - return InstanceFactory.getInstance(pojoClass, parameters); - } - -} diff --git a/opensrp-api/src/test/java/org/opensrp/api/domain/EventTest.java b/opensrp-api/src/test/java/org/opensrp/api/domain/EventTest.java deleted file mode 100644 index 2159efa13c..0000000000 --- a/opensrp-api/src/test/java/org/opensrp/api/domain/EventTest.java +++ /dev/null @@ -1,158 +0,0 @@ -package org.opensrp.api.domain; - -import java.util.ArrayList; -import java.util.Calendar; -import java.util.Date; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import org.joda.time.DateTime; -import org.junit.Test; - -import junit.framework.Assert; - -public class EventTest { - - @Test - public void shouldTestEvent(){ - Event firstEvent = new Event(); - firstEvent.withLocationId("locationId2"); - firstEvent.withEventDate(new DateTime()); - firstEvent.withEntityType("entityType"); - firstEvent.withFormSubmissionId("formSubmissionId"); - firstEvent.withEventType("eventType"); - firstEvent.withProviderId("providerId"); - firstEvent.withIdentifier("ff", "dd"); - firstEvent.getIdentifiers(); - firstEvent.getIdentifier(""); - firstEvent.getIdentifierMatchingRegex(""); - Event secondEvent = new Event("baseEntityId", "eventType", new DateTime(), "entityType", "providerId", "locationId", "formSubmissionId"); - firstEvent.setBaseEntityId("baseEntityId"); - Assert.assertEquals(firstEvent.getBaseEntityId(), "baseEntityId"); - firstEvent.withBaseEntityId("baseEntityId"); - firstEvent.setEntityType("entityType"); - Assert.assertEquals(firstEvent.getEntityType(), "entityType"); - DateTime now =new DateTime(); - firstEvent.setEventDate(now); - Assert.assertEquals(firstEvent.getEventDate(),now); - firstEvent.setEventType("eventType"); - Assert.assertEquals(firstEvent.getEventType(),"eventType"); - firstEvent.setProviderId("providerId"); - Assert.assertEquals(firstEvent.getProviderId(),"providerId"); - Obs obs = new Obs(); - obs.setFieldCode("1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"); - obs.setFieldDataType("calculate"); - obs.setFieldType("concept"); - obs.setParentCode("783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"); - obs.setFormSubmissionField("opv1_dose"); - List value = new ArrayList<>(); - value.add("1"); - obs.setValues(value); - List observations = new ArrayList<>(); - firstEvent.withObs(obs); - observations.add(obs); - firstEvent.withObs(observations); - - firstEvent.setObs(null); - firstEvent.addObs(obs); - - firstEvent.setObs(observations); - Assert.assertEquals(firstEvent.getObs(), observations); - - Map identifiers = new HashMap<>(); - identifiers.put("identifier1", "identifier"); - - firstEvent.withIdentifier("identifier2", "identifier2"); - firstEvent.setIdentifiers(identifiers); - Assert.assertEquals(firstEvent.getIdentifiers(), identifiers); - Assert.assertEquals(firstEvent.getIdentifier("identifier1"), "identifier"); - Assert.assertEquals(firstEvent.getIdentifierMatchingRegex("identifier1"), "identifier"); - firstEvent.setIdentifiers(null); - firstEvent.addIdentifier("identifierType", "identifier"); - firstEvent.removeIdentifier("identifierType"); - firstEvent.withIdentifiers(identifiers); - Assert.assertNull(firstEvent.getIdentifier("identifierType")); - firstEvent.setLocationId("locationId"); - Assert.assertEquals(firstEvent.getLocationId(), "locationId"); - firstEvent.setFormSubmissionId("formSubmissionId"); - Assert.assertEquals(firstEvent.getFormSubmissionId(), "formSubmissionId"); - firstEvent.addDetails("key1", "value1"); - - Map details = new HashMap<>(); - details.put("key", "value"); - firstEvent.setDetails(details); - Assert.assertEquals(firstEvent.getDetails(), details); - firstEvent.setVersion(0L); - Assert.assertEquals(firstEvent.getVersion(), 0l); - - } - - @Test - public void shouldTestParentClassBaseObject(){ - Event event = new Event(); - User user = new User("oooo-r34444-jgu45"); - User user1 = new User("oooo-r34444-jgu45"); - event.setCreator(user); - Assert.assertEquals(user, event.getCreator()); - Assert.assertNotSame(user1, event.getCreator()); - - user.setDateCreated(new Date()); - Assert.assertEquals(new Date(), user.getDateCreated()); - - User editor = new User("oooo-r34444-jgu45"); - editor.setEditor(editor); - user.setEditor(editor); - User editor1 = new User("oooo-r34444-jgu45"); - Assert.assertEquals(editor, user.getEditor()); - Assert.assertNotSame(editor1, user.getEditor()); - Date now =new Date(); - event.setDateEdited(now); - Assert.assertEquals(now, event.getDateEdited()); - Date dt = new Date(); - Calendar c = Calendar.getInstance(); - c.setTime(dt); - c.add(Calendar.DATE, 1); - dt = c.getTime(); - Assert.assertNotSame(dt, event.getDateEdited()); - - event.setVoided(true); - Assert.assertTrue(event.getVoided()); - Assert.assertFalse(!event.getVoided()); - - event.setDateVoided(now); - Assert.assertEquals(now, event.getDateVoided()); - - event.setVoider(user); - Assert.assertEquals(user, event.getVoider()); - Assert.assertNotSame(user1, event.getVoider()); - - event.setVoidReason("fake data"); - Assert.assertEquals("fake data", event.getVoidReason()); - Assert.assertNotSame("fakes data", event.getVoidReason()); - - event.withCreator(user); - Assert.assertEquals(user, event.getCreator()); - Assert.assertNotSame(user1, event.getCreator()); - - event.withDateCreated(new Date()); - event.withEditor(user); - Assert.assertEquals(editor, user.getEditor()); - Assert.assertNotSame(editor1, user.getEditor()); - event.withDateEdited(new Date()); - event.withVoided(true); - Assert.assertTrue(event.getVoided()); - Assert.assertFalse(!event.getVoided()); - - event.withDateVoided(new Date()); - event.withVoider(editor); - Assert.assertEquals(editor, user.getEditor()); - Assert.assertNotSame(editor1, user.getEditor()); - event.withVoidReason("fake data"); - Assert.assertEquals("fake data", event.getVoidReason()); - Assert.assertNotSame("fakes data", event.getVoidReason()); - - - } - -} diff --git a/opensrp-api/src/test/java/org/opensrp/api/domain/LocationTest.java b/opensrp-api/src/test/java/org/opensrp/api/domain/LocationTest.java deleted file mode 100644 index dc4ddc3aba..0000000000 --- a/opensrp-api/src/test/java/org/opensrp/api/domain/LocationTest.java +++ /dev/null @@ -1,79 +0,0 @@ -package org.opensrp.api.domain; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; -import java.util.Set; - -import junit.framework.Assert; - -import org.junit.Test; - -import com.openpojo.reflection.PojoClass; -import com.openpojo.reflection.construct.InstanceFactory; -import com.openpojo.reflection.impl.PojoClassFactory; -import com.openpojo.validation.Validator; -import com.openpojo.validation.ValidatorBuilder; -import com.openpojo.validation.affirm.Affirm; -import com.openpojo.validation.rule.impl.GetterMustExistRule; -import com.openpojo.validation.rule.impl.SetterMustExistRule; -import com.openpojo.validation.test.impl.GetterTester; -import com.openpojo.validation.test.impl.SetterTester; - -public class LocationTest { - - @Test - @SuppressWarnings("RedundantArrayCreation") - public void shouldTestConstructorUsingDefaultConstructor() { - String locationId = "locationId"; - String name = "name"; - Address address = new Address(); - Location parentLocation = new Location(); - Map identifiers = new HashMap<>(); - Set tags = new HashSet<>(); - Map attributes = new HashMap<>(); - final Class clazz = Location.class; - final Object obj1 = getInstance(clazz, locationId,name,address,identifiers,parentLocation,tags,attributes); - Affirm.affirmNotNull("Should have created an object", obj1); - final Location obj2 = (Location) getInstance(clazz,locationId,name,address,identifiers,parentLocation,tags,attributes); - final Object obj3 = getInstance(clazz,locationId,name,address,parentLocation); - Affirm.affirmTrue("Should have created a different object", obj1 != obj3); - obj2.removeAttribute("name"); - obj2.setAttributes(null); - obj2.addAttribute("name", "value"); - Assert.assertEquals(obj2.getAttribute("name"), "value"); - obj2.setIdentifiers(null); - obj2.addIdentifier("identifierType", "identifier"); - Assert.assertEquals(obj2.getIdentifier("identifierType"), "identifier"); - obj2.removeIdentifier("identifierType"); - obj2.setTags(null); - obj2.addTag("tag"); - Assert.assertEquals(obj2.getTags().size(), 1); - obj2.removeTag("tag"); - obj2.withAddress(address); - obj2.withIdentifiers(identifiers); - obj2.withTags(tags); - obj2.withAttributes(attributes); - Assert.assertEquals(obj2.getAttributes(), new HashMap<>()); - - } - - @Test - public void shouldTestSetterAndGetter() { - PojoClass pojoClass = PojoClassFactory.getPojoClass(Location.class); - Validator pojoValidator = ValidatorBuilder.create() - .with(new SetterMustExistRule()) - .with(new GetterMustExistRule()) - .with(new GetterTester()) - .with(new SetterTester()) - .build(); - - pojoValidator.validate(pojoClass); - } - - private Object getInstance(final Class clazz, final Object... parameters) { - final PojoClass pojoClass = PojoClassFactory.getPojoClass(clazz); - return InstanceFactory.getInstance(pojoClass, parameters); - } - -} diff --git a/opensrp-api/src/test/java/org/opensrp/api/domain/ObsTest.java b/opensrp-api/src/test/java/org/opensrp/api/domain/ObsTest.java deleted file mode 100644 index 1eba3fad5e..0000000000 --- a/opensrp-api/src/test/java/org/opensrp/api/domain/ObsTest.java +++ /dev/null @@ -1,101 +0,0 @@ -package org.opensrp.api.domain; - -import java.util.ArrayList; -import java.util.List; - -import junit.framework.Assert; - -import org.junit.Test; - -import com.openpojo.reflection.PojoClass; -import com.openpojo.reflection.construct.InstanceFactory; -import com.openpojo.reflection.impl.PojoClassFactory; -import com.openpojo.validation.Validator; -import com.openpojo.validation.ValidatorBuilder; -import com.openpojo.validation.affirm.Affirm; -import com.openpojo.validation.rule.impl.GetterMustExistRule; -import com.openpojo.validation.rule.impl.SetterMustExistRule; -import com.openpojo.validation.test.impl.GetterTester; -import com.openpojo.validation.test.impl.SetterTester; - -public class ObsTest { - @Test - @SuppressWarnings("RedundantArrayCreation") - public void shouldTestConstructor() { - List values = new ArrayList<>(); - final Class clazz = Obs.class; - final Object obj1 = getInstance(clazz, "concept","163137AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "daow","886AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",values,"no comments","start"); - Affirm.affirmNotNull("Should have created an object", obj1); - Obs ob = (Obs) obj1; - Assert.assertNull(ob.getValue()); - } - - @Test(expected=Exception.class) - public void shouldReturnNullForgetValue(){ - Obs obs = new Obs(); - obs.getValue(); - } - - @Test(expected=RuntimeException.class) - public void shouldReturnRuntimeExceptionForgetValue(){ - Obs obs = new Obs(); - List values = new ArrayList<>(); - values.add(1); - values.add(2); - values.add(4); - obs.withValues(values); - obs.getValue(); - } - @Test - public void shouldTestObs(){ - Obs obs = new Obs(); - obs.withFieldType("concept"); - Assert.assertEquals("concept", obs.getFieldType()); - Assert.assertNotSame("concept1", obs.getFieldType()); - obs.withFieldCode("1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"); - Assert.assertEquals("1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", obs.getFieldCode()); - Assert.assertNotSame("1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB", obs.getFieldCode()); - obs.withFieldDataType("date"); - Assert.assertEquals("date", obs.getFieldDataType()); - Assert.assertNotSame("concept", obs.getFieldDataType()); - obs.withParentCode("162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"); - Assert.assertEquals("162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", obs.getParentCode()); - Assert.assertNotSame("162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAB", obs.getParentCode()); - List values = new ArrayList<>(); - values.add(1); - obs.withValues(values); - Assert.assertEquals(1,obs.getValue()); - obs.withComments("No Comments"); - obs.withFormSubmissionField("pcv1_retro"); - Assert.assertEquals("pcv1_retro", obs.getFormSubmissionField()); - Assert.assertNotSame("pcv1_retro1", obs.getFormSubmissionField()); - obs.setValue(4); - } - - @Test - public void shouldTestAddToValueList(){ - Obs obs = new Obs(); - obs.withValue(null); - Assert.assertNull(obs.getValue()); - - - } - @Test - public void shouldTestSetterAndGetter() { - PojoClass pojoClass = PojoClassFactory.getPojoClass(Obs.class); - Validator pojoValidator = ValidatorBuilder.create() - .with(new SetterMustExistRule()) - .with(new GetterMustExistRule()) - .with(new GetterTester()) - .with(new SetterTester()) - .build(); - - pojoValidator.validate(pojoClass); - } - private Object getInstance(final Class clazz, final Object... parameters) { - final PojoClass pojoClass = PojoClassFactory.getPojoClass(clazz); - return InstanceFactory.getInstance(pojoClass, parameters); - } - -} diff --git a/opensrp-api/src/test/java/org/opensrp/api/domain/PhotoTest.java b/opensrp-api/src/test/java/org/opensrp/api/domain/PhotoTest.java deleted file mode 100644 index a0340b3bf0..0000000000 --- a/opensrp-api/src/test/java/org/opensrp/api/domain/PhotoTest.java +++ /dev/null @@ -1,45 +0,0 @@ -package org.opensrp.api.domain; - -import org.junit.Test; - -import com.openpojo.reflection.PojoClass; -import com.openpojo.reflection.construct.InstanceFactory; -import com.openpojo.reflection.impl.PojoClassFactory; -import com.openpojo.validation.Validator; -import com.openpojo.validation.ValidatorBuilder; -import com.openpojo.validation.affirm.Affirm; -import com.openpojo.validation.rule.impl.GetterMustExistRule; -import com.openpojo.validation.rule.impl.SetterMustExistRule; -import com.openpojo.validation.test.impl.GetterTester; -import com.openpojo.validation.test.impl.SetterTester; - -public class PhotoTest { - - @Test - @SuppressWarnings("RedundantArrayCreation") - public void shouldTestConstructorUsingDefaultConstructor() { - final Class clazz = Photo.class; - final Object obj1 = getInstance(clazz); - Affirm.affirmNotNull("Should have created an object", obj1); - - } - - @Test - public void shouldTestSetterAndGetter() { - PojoClass pojoClass = PojoClassFactory.getPojoClass(Photo.class); - Validator pojoValidator = ValidatorBuilder.create() - .with(new SetterMustExistRule()) - .with(new GetterMustExistRule()) - .with(new GetterTester()) - .with(new SetterTester()) - .build(); - - pojoValidator.validate(pojoClass); - } - - private Object getInstance(final Class clazz, final Object... parameters) { - final PojoClass pojoClass = PojoClassFactory.getPojoClass(clazz); - return InstanceFactory.getInstance(pojoClass, parameters); - } - -} diff --git a/opensrp-api/src/test/java/org/opensrp/api/domain/ProviderTest.java b/opensrp-api/src/test/java/org/opensrp/api/domain/ProviderTest.java deleted file mode 100644 index 7c7763e552..0000000000 --- a/opensrp-api/src/test/java/org/opensrp/api/domain/ProviderTest.java +++ /dev/null @@ -1,49 +0,0 @@ -package org.opensrp.api.domain; - -import nl.jqno.equalsverifier.EqualsVerifier; -import nl.jqno.equalsverifier.Warning; - -import org.junit.Test; - -import com.openpojo.reflection.PojoClass; -import com.openpojo.reflection.construct.InstanceFactory; -import com.openpojo.reflection.impl.PojoClassFactory; -import com.openpojo.validation.Validator; -import com.openpojo.validation.ValidatorBuilder; -import com.openpojo.validation.affirm.Affirm; -import com.openpojo.validation.rule.impl.GetterMustExistRule; -import com.openpojo.validation.rule.impl.SetterMustExistRule; -import com.openpojo.validation.test.impl.GetterTester; -import com.openpojo.validation.test.impl.SetterTester; - -public class ProviderTest { - - @Test - @SuppressWarnings("RedundantArrayCreation") - public void shouldTestConstructorUsing() { - final Class clazz = Provider.class; - final Object obj1 = getInstance(clazz, "baseEntityId"); - Affirm.affirmNotNull("Should have created an object", obj1); - final Object obj3 = getInstance(clazz,"baseEntityId","fullname"); - Affirm.affirmTrue("Should have created a different object", obj1 != obj3); - } - - @Test - public void shouldTestSetterAndGetter() { - PojoClass pojoClass = PojoClassFactory.getPojoClass(Provider.class); - Validator pojoValidator = ValidatorBuilder.create() - .with(new SetterMustExistRule()) - .with(new GetterMustExistRule()) - .with(new GetterTester()) - .with(new SetterTester()) - .build(); - - pojoValidator.validate(pojoClass); - } - - private Object getInstance(final Class clazz, final Object... parameters) { - final PojoClass pojoClass = PojoClassFactory.getPojoClass(clazz); - return InstanceFactory.getInstance(pojoClass, parameters); - } - -} diff --git a/opensrp-api/src/test/java/org/opensrp/api/domain/TimeTest.java b/opensrp-api/src/test/java/org/opensrp/api/domain/TimeTest.java deleted file mode 100644 index 2118f70b58..0000000000 --- a/opensrp-api/src/test/java/org/opensrp/api/domain/TimeTest.java +++ /dev/null @@ -1,44 +0,0 @@ -package org.opensrp.api.domain; - -import java.text.SimpleDateFormat; -import java.util.Date; -import java.util.TimeZone; - -import junit.framework.Assert; - -import nl.jqno.equalsverifier.EqualsVerifier; -import nl.jqno.equalsverifier.Warning; - -import org.junit.Test; - -import com.openpojo.reflection.PojoClass; -import com.openpojo.reflection.construct.InstanceFactory; -import com.openpojo.reflection.impl.PojoClassFactory; -import com.openpojo.validation.Validator; -import com.openpojo.validation.ValidatorBuilder; -import com.openpojo.validation.affirm.Affirm; -import com.openpojo.validation.rule.impl.GetterMustExistRule; -import com.openpojo.validation.rule.impl.SetterMustExistRule; -import com.openpojo.validation.test.impl.GetterTester; -import com.openpojo.validation.test.impl.SetterTester; - -public class TimeTest { - - private static final SimpleDateFormat DATE_FORMAT = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); - @Test - @SuppressWarnings("RedundantArrayCreation") - public void shouldTestConstructorUsingDefaultConstructor() { - final Class clazz = Time.class; - final Object obj1 = getInstance(clazz, new Date(),TimeZone.getTimeZone("BDT")); - Affirm.affirmNotNull("Should have created an object", obj1); - final Time time = (Time) getInstance(clazz, new Date(),TimeZone.getTimeZone("BDT")); - Assert.assertEquals(DATE_FORMAT.format(new Date()),time.getTime()); - } - - - private Object getInstance(final Class clazz, final Object... parameters) { - final PojoClass pojoClass = PojoClassFactory.getPojoClass(clazz); - return InstanceFactory.getInstance(pojoClass, parameters); - } - -} diff --git a/opensrp-api/src/test/java/org/opensrp/api/domain/UserTest.java b/opensrp-api/src/test/java/org/opensrp/api/domain/UserTest.java deleted file mode 100644 index 7a2026db4b..0000000000 --- a/opensrp-api/src/test/java/org/opensrp/api/domain/UserTest.java +++ /dev/null @@ -1,173 +0,0 @@ -package org.opensrp.api.domain; - -import static java.util.Arrays.asList; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNull; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import junit.framework.Assert; - -import org.junit.Test; - -import com.openpojo.reflection.PojoClass; -import com.openpojo.reflection.construct.InstanceFactory; -import com.openpojo.reflection.impl.PojoClassFactory; -import com.openpojo.validation.Validator; -import com.openpojo.validation.ValidatorBuilder; -import com.openpojo.validation.affirm.Affirm; -import com.openpojo.validation.rule.impl.GetterMustExistRule; -import com.openpojo.validation.rule.impl.SetterMustExistRule; -import com.openpojo.validation.test.impl.GetterTester; -import com.openpojo.validation.test.impl.SetterTester; - -public class UserTest { - - @Test - @SuppressWarnings("RedundantArrayCreation") - public void shouldTestConstructor() { - List
addresses = new ArrayList<>(); - Map identifiers = new HashMap<>(); - Map attributes = new HashMap<>(); - final Class clazz = User.class; - final Object user1 = getInstance(clazz, "ooo-02we-98","lieo","daow","sonn"); - Affirm.affirmNotNull("Should have created an object", user1); - List roles = new ArrayList<>(); - roles.add("Admin"); - List permissions = new ArrayList<>(); - permissions.add("Login"); - final Object user2 = getInstance(clazz, "ooo-02we-98","lieo","userpassword","sonn","Active",roles,permissions); - Affirm.affirmNotNull("Should have created an object", user2); - final Object user3 = getInstance(clazz, "ooo-02we-98","lieo","preferredName","password","sonn","Active",roles,permissions); - Affirm.affirmNotNull("Should have created an object", user3); - - } - @Test - public void testUserAttributes(){ - User u = new User("entity id 1"); - u.withAttribute("attr1", "strval") - .withAttribute("attr2", 2) - .withAttribute("attr3", true); - - assertEquals("strval", (String)u.getAttribute("attr1")); - assertEquals(2, (int)u.getAttribute("attr2")); - assertEquals(true, (boolean)u.getAttribute("attr3")); - assertNull(u.getAttribute("attr8")); - u.removeAttribute("attr3"); - assertNull(u.getAttribute("attr3")); - - User newUser =new User(); - List roles = new ArrayList<>(); - roles.add("Admin"); - roles.add("FWA"); - newUser.withRoles(roles); - Assert.assertEquals(roles, newUser.getRoles()); - User newUser1 =new User(); - List permissions = new ArrayList<>(); - permissions.add("Login"); - permissions.add("user creation"); - newUser1.withPermissions(permissions); - Assert.assertEquals(permissions, newUser1.getPermissions()); - u.withPassword("12345678"); - Assert.assertEquals("12345678", u.getPassword()); - Assert.assertNotSame("12345679", u.getPassword()); - u.withSalt("saltValue"); - Assert.assertEquals("saltValue", u.getSalt()); - Assert.assertNotSame("12345679", u.getSalt()); - - } - - @Test - public void shouldTestSetterAndGetter() { - PojoClass pojoClass = PojoClassFactory.getPojoClass(User.class); - Validator pojoValidator = ValidatorBuilder.create() - .with(new SetterMustExistRule()) - .with(new GetterMustExistRule()) - .with(new GetterTester()) - .with(new SetterTester()) - .build(); - - pojoValidator.validate(pojoClass); - } - - @Test - public void testUserPermissions() { - User user = new User("entity id 1") - .withUsername("username11") - .withPermission("view") - .withPermission("edit") - .withPermission("add") - .withPermission("delete"); - - assertEquals(true, user.hasPermission("view")); - assertEquals(true, user.hasPermission("edit")); - assertEquals(true, user.hasPermission("add")); - assertEquals(true, user.hasPermission("delete")); - - user.removePermission("delete"); - user.removePermission("dsfda"); - - assertEquals(false, user.hasPermission("delete")); - } - - @Test - public void testUserRole() { - User user = new User("entity id 1") - .withUsername("username11") - .withRole("r1") - .withRole("r2"); - - assertEquals(true, user.hasRole("r1")); - assertEquals(true, user.hasRole("r2")); - assertEquals(false, user.hasRole("r4")); - assertEquals(false, user.hasAdminRights()); - assertEquals(false, user.isDefaultAdmin()); - - user.addRole("admin"); - assertEquals(true, user.hasAdminRights()); - assertEquals(false, user.isDefaultAdmin()); - - user.addRole("administrator"); - assertEquals(true, user.hasAdminRights()); - assertEquals(false, user.isDefaultAdmin()); - - user.removeRole("admin"); - user.setUsername("admin"); - assertEquals(true, user.hasAdminRights()); - assertEquals(true, user.isDefaultAdmin()); - - user.removeRole("administrator"); - assertEquals(false, user.hasAdminRights()); - assertEquals(false, user.isDefaultAdmin()); - User newUser = new User(); - newUser.addRole("newRole"); - Assert.assertEquals(asList("newRole"), newUser.getRoles()); - User newUser1 = new User(); - newUser1.addPermission("Login"); - Assert.assertEquals(asList("Login"), newUser1.getPermissions()); - } - - @Test - public void testUserActiveness() { - User user = new User("entity id 1") - .withStatus("active"); - assertEquals("active", user.getStatus() ); - user.setStatus("inactive"); - assertEquals("inactive", user.getStatus()); - - } - - @Test - public void shouldAddPermission(){ - - - } - private Object getInstance(final Class clazz, final Object... parameters) { - final PojoClass pojoClass = PojoClassFactory.getPojoClass(clazz); - return InstanceFactory.getInstance(pojoClass, parameters); - } - -} diff --git a/opensrp-api/src/test/java/org/opensrp/api/util/LocationTest.java b/opensrp-api/src/test/java/org/opensrp/api/util/LocationTest.java deleted file mode 100644 index ded8c41497..0000000000 --- a/opensrp-api/src/test/java/org/opensrp/api/util/LocationTest.java +++ /dev/null @@ -1,107 +0,0 @@ -package org.opensrp.api.util; - -import static org.junit.Assert.*; - -import java.util.ArrayList; -import java.util.List; - -import org.junit.Test; -import org.opensrp.api.domain.Location; -import org.opensrp.api.util.LocationTree; - -public class LocationTest { - - @Test - public void testLocations(){ - Location l = new Location() - .withLocationId("l1") - .withAttribute("l1at", "latval") - .withIdentifier("lid1", "iiii") - .withName("location1") - .withTag("HOSPITAL"); - - assertEquals("", l.getLocationId(), "l1"); - assertEquals("", l.getAttribute("l1at"), "latval"); - assertEquals("", l.getIdentifier("lid1"), "iiii"); - assertEquals("", l.getName(), "location1"); - assertTrue("", l.hasTag("HOSPITAL")); - } - - @Test - public void testLocationTree2(){ - List ll = new ArrayList(); - ll.add(new Location("1", "l1", null, null, null, null, null)); - ll.add(new Location("2", "l2", null, null, null, null, null).withParentLocation(ll.get(0))); - ll.add(new Location("3", "l3", null, null, null, null, null).withParentLocation(ll.get(0))); - ll.add(new Location("4", "l4", null, null, null, null, null).withParentLocation(ll.get(0))); - - ll.add(new Location("5", "l5", null, null, null, null, null)); - ll.add(new Location("6", "l6", null, null, null, null, null).withParentLocation(ll.get(4))); - ll.add(new Location("7", "l7", null, null, null, null, null).withParentLocation(ll.get(4))); - ll.add(new Location("8", "l8", null, null, null, null, null).withParentLocation(ll.get(4))); - - ll.add(new Location("9", "l9", null, null, null, null, null)); - ll.add(new Location("10", "l10", null, null, null, null, null).withParentLocation(ll.get(8))); - ll.add(new Location("11", "l11", null, null, null, null, null).withParentLocation(ll.get(8))); - ll.add(new Location("12", "l12", null, null, null, null, null).withParentLocation(ll.get(8))); - - ll.add(new Location("13", "l13", null, null, null, null, null).withParentLocation(ll.get(5))); - ll.add(new Location("14", "l14", null, null, null, null, null).withParentLocation(ll.get(5))); - ll.add(new Location("15", "l15", null, null, null, null, null).withParentLocation(ll.get(5))); - - ll.add(new Location("16", "l16", null, null, null, null, null).withParentLocation(ll.get(10))); - ll.add(new Location("17", "l17", null, null, null, null, null).withParentLocation(ll.get(10))); - ll.add(new Location("18", "l18", null, null, null, null, null).withParentLocation(ll.get(10))); - - ll.add(new Location("19", "l19", null, null, null, null, null).withParentLocation(ll.get(16))); - ll.add(new Location("20", "l20", null, null, null, null, null).withParentLocation(ll.get(17))); - - LocationTree ltree = new LocationTree(); - for (Location location : ll) { - ltree.addLocation(location); - } - - assertEquals("", ltree.findLocation("7"), ll.get(6)); - assertTrue("", ltree.hasLocation("7")); - assertEquals("", ltree.findLocation("7").getParentLocation(), ll.get(6).getParentLocation()); - assertTrue("", ltree.hasChildLocation("18", "20")); - } - - @Test - public void testLocationTree3(){ - List ll = new ArrayList(); - ll.add(new Location("1", "l1", null, null, null, null, null)); - ll.add(new Location("2", "l2", null, null, null, null, null).withParentLocation(ll.get(0))); - ll.add(new Location("3", "l3", null, null, null, null, null).withParentLocation(ll.get(0))); - ll.add(new Location("4", "l4", null, null, null, null, null).withParentLocation(ll.get(0))); - - ll.add(new Location("5", "l5", null, null, null, null, null)); - ll.add(new Location("6", "l6", null, null, null, null, null).withParentLocation(ll.get(4))); - ll.add(new Location("7", "l7", null, null, null, null, null).withParentLocation(ll.get(4))); - ll.add(new Location("8", "l8", null, null, null, null, null).withParentLocation(ll.get(4))); - - ll.add(new Location("9", "l9", null, null, null, null, null)); - ll.add(new Location("10", "l10", null, null, null, null, null).withParentLocation(ll.get(8))); - ll.add(new Location("11", "l11", null, null, null, null, null).withParentLocation(ll.get(8))); - ll.add(new Location("12", "l12", null, null, null, null, null).withParentLocation(ll.get(8))); - - ll.add(new Location("13", "l13", null, null, null, null, null).withParentLocation(ll.get(5))); - ll.add(new Location("14", "l14", null, null, null, null, null).withParentLocation(ll.get(5))); - ll.add(new Location("15", "l15", null, null, null, null, null).withParentLocation(ll.get(5))); - - ll.add(new Location("16", "l16", null, null, null, null, null).withParentLocation(ll.get(10))); - ll.add(new Location("17", "l17", null, null, null, null, null).withParentLocation(ll.get(10))); - ll.add(new Location("18", "l18", null, null, null, null, null).withParentLocation(ll.get(10))); - - ll.add(new Location("19", "l19", null, null, null, null, null).withParentLocation(ll.get(16))); - ll.add(new Location("20", "l20", null, null, null, null, null).withParentLocation(ll.get(17))); - - LocationTree ltree = new LocationTree(); - ltree.buildTreeFromList(ll); - - assertEquals("", ltree.findLocation("7"), ll.get(6)); - assertTrue("", ltree.hasLocation("7")); - assertEquals("", ltree.findLocation("7").getParentLocation(), ll.get(6).getParentLocation()); - assertTrue("", ltree.hasChildLocation("18", "20")); - } -} diff --git a/opensrp-api/src/test/java/org/opensrp/api/util/TreeNodeTest.java b/opensrp-api/src/test/java/org/opensrp/api/util/TreeNodeTest.java deleted file mode 100644 index 544e01cb58..0000000000 --- a/opensrp-api/src/test/java/org/opensrp/api/util/TreeNodeTest.java +++ /dev/null @@ -1,103 +0,0 @@ -package org.opensrp.api.util; - - -import org.junit.Test; - -import java.util.HashMap; -import java.util.Map; - -import static junit.framework.Assert.assertEquals; -import static junit.framework.Assert.assertNull; - -public class TreeNodeTest { - int rootId = 1; - int childId = 2; - int grandChildId = 3; - - @Test - public void testChildCreationUsingConstructor() { - TreeNode childNode = new TreeNode(childId,"t1", 1, rootId); - Map> children = new HashMap<>(); - children.put(1, childNode); - - TreeNode rootNode = new TreeNode(rootId, "t2",2, null, children); - - assertEquals(childId, (int)rootNode.findChild(childId).getId()); - assertEquals(rootId, (int)rootNode.findChild(childId).getParent()); - } - - @Test - public void testAddingChild() { - - TreeNode rootNode = new TreeNode(rootId, "root",2, null); - TreeNode childNode = new TreeNode(childId,"child", 1, rootId); - rootNode.addChild(childNode); - - assertEquals(childId, (int)rootNode.findChild(childId).getId()); - assertEquals(rootId, (int)rootNode.findChild(childId).getParent()); - } - - @Test - public void findValidGrandChildren() { - TreeNode rootNode = new TreeNode(rootId, "root",1, null); - TreeNode childNode = new TreeNode(childId,"child", 2, rootId); - TreeNode grandChildNode = new TreeNode(grandChildId,"grandChild", 3, childId); - rootNode.addChild(childNode); - childNode.addChild(grandChildNode); - - assertEquals(childId, (int)rootNode.findChild(childId).getId()); - assertEquals(rootId, (int)rootNode.findChild(childId).getParent()); - - assertEquals(grandChildId, (int)rootNode.findChild(grandChildId).getId()); - assertEquals(childId, (int)rootNode.findChild(grandChildId).getParent()); - } - - @Test - public void findInvalidChildren() { - TreeNode rootNode = new TreeNode(rootId, "root",1, null); - assertNull(rootNode.getChildren()); - assertNull(rootNode.findChild(childId)); - } - - @Test - public void testRemoveValidChild() { - TreeNode rootNode = new TreeNode(rootId, "root",2, null); - TreeNode childNode = new TreeNode(childId,"child", 1, rootId); - rootNode.addChild(childNode); - - assertEquals(childId, (int)rootNode.findChild(childId).getId()); - - TreeNode removedNode = rootNode.removeChild(childId); - - assertEquals(childId, (int)removedNode.getId()); - assertNull(rootNode.findChild(childId)); - } - - @Test - public void testRemoveValidGrandChild() { - TreeNode rootNode = new TreeNode(rootId, "root",1, null); - TreeNode childNode = new TreeNode(childId,"child", 2, rootId); - TreeNode grandChildNode = new TreeNode(grandChildId,"grandChild", 3, childId); - rootNode.addChild(childNode); - childNode.addChild(grandChildNode); - - assertEquals(childId, (int)rootNode.findChild(childId).getId()); - assertEquals(grandChildId, (int)rootNode.findChild(grandChildId).getId()); - - TreeNode removedNode = rootNode.removeChild(grandChildId); - - assertEquals(grandChildId, (int)removedNode.getId()); - assertNull(rootNode.findChild(grandChildId)); - } - - @Test - public void testRemoveInvalidChild() { - TreeNode rootNode = new TreeNode(rootId, "root",1, null); - TreeNode childNode = new TreeNode(childId,"child", 2, rootId); - TreeNode grandChildNode = new TreeNode(grandChildId,"grandChild", 3, childId); - rootNode.addChild(childNode); - childNode.addChild(grandChildNode); - - assertNull(rootNode.removeChild(4)); - } -} diff --git a/opensrp-api/src/test/java/org/opensrp/api/util/TreeTest.java b/opensrp-api/src/test/java/org/opensrp/api/util/TreeTest.java deleted file mode 100644 index 3fdf96b073..0000000000 --- a/opensrp-api/src/test/java/org/opensrp/api/util/TreeTest.java +++ /dev/null @@ -1,153 +0,0 @@ -package org.opensrp.api.util; - - -import org.junit.Test; - -import java.util.HashSet; -import java.util.Map; -import java.util.Set; - -import static junit.framework.Assert.assertEquals; -import static junit.framework.Assert.assertNull; -import static org.junit.Assert.assertNotNull; - - -public class TreeTest { - - @Test - public void testAddingNodeWithOutParent() { - Tree tree = new Tree<>(); - tree.addNode(1, "test", 2, null); - - TreeNode node = tree.getNode(1); - - assertEquals(1, (int) node.getId()); - assertEquals("test", (String) node.getLabel()); - assertEquals(2, (int) node.getNode()); - assertNull(node.getParent()); - } - - @Test(expected = IllegalArgumentException.class) - public void testCannotReAddExistingNode() { - Tree tree = new Tree<>(); - tree.addNode(1, "test", 2, null); - tree.addNode(1, "test", 2, null); - } - - @Test - public void testAddingNodeWithValidParent() { - Tree tree = new Tree<>(); - tree.addNode(1, "test", 1, null); - tree.addNode(2, "test2", 2, 1); - - TreeNode childNode = tree.getNode(2); - - assertEquals(2, (int) childNode.getId()); - assertEquals("test2", (String) childNode.getLabel()); - assertEquals(2, (int) childNode.getNode()); - - assertNotNull(childNode.getParent()); - - int parentNodeId = childNode.getParent(); - - assertEquals(1, parentNodeId); - } - - @Test - public void testAddingNodeWithInvalidParent() { - Tree tree = new Tree<>(); - tree.addNode(2, "test2", 2, 1); - - TreeNode childNode = tree.getNode(2); - - assertEquals(2, (int) childNode.getId()); - assertEquals("test2", (String) childNode.getLabel()); - assertEquals(2, (int) childNode.getNode()); - - assertNodeIsRoot(tree, childNode); - } - - @Test - public void testAddingNodeFirstChildThenParent() { - Tree tree = new Tree<>(); - tree.addNode(2, "test2", 2, 1); - tree.addNode(3, "test3", 3, 1); - - tree.addNode(1, "test1", 1, null); - - TreeNode rootNode = tree.getNode(1); - assertNodeIsRoot(tree, rootNode); - assertNull(rootNode.getParent()); - - Map> childNodes = rootNode.getChildren(); - - assertEquals(2, (int) childNodes.get(2).getId()); - assertEquals(3, (int) childNodes.get(3).getId()); - - Map> childParentList = tree.getChildParent(); - assertEquals(2, childParentList.get(1).size()); - - } - - @Test - public void testRemoveRootNode() { - Tree tree = new Tree<>(); - tree.addNode(2, "test2", 2, null); - tree.addNode(3, "test3", 3, null); - - TreeNode nodeToRemove = tree.removeNode(2); - TreeNode nodeToRemoveSecond = tree.removeNode(3); - - assertEquals(2, (int) nodeToRemove.getId()); - assertNull(tree.getNode(2)); - - assertEquals(3, (int) nodeToRemoveSecond.getId()); - assertNull(tree.getNode(3)); - } - - @Test - public void testRemovingChildNode() { - Tree tree = new Tree<>(); - tree.addNode(2, "test2", 2, 1); - tree.addNode(3, "test3", 3, 1); - tree.addNode(1, "test1", 1, null); - - TreeNode nodeToRemove = tree.removeNode(2); - TreeNode nodeToRemoveSecond = tree.removeNode(3); - - TreeNode rootNode = tree.getNode(1); - - assertEquals(0, rootNode.getChildren().size()); - } - - @Test - public void testRemoveInvalidNode() { - Tree tree = new Tree<>(); - tree.addNode(2, "test2", 2, 1); - - TreeNode nodeToRemove = tree.removeNode(5); - assertNull(nodeToRemove); - } - - @Test(expected = UnsupportedOperationException.class) - public void testUnmodifiableMemberThroughSetter() { - Tree tree = new Tree<>(); - tree.addNode(2, "test2", 2, null); - tree.addNode(3, "test3", 3, null); - - Map> nodesMap = tree.getTree(); - Map> childParentList = tree.getChildParent(); - - assertEquals(2, (int) nodesMap.get(2).getId()); - - nodesMap.remove(2); - childParentList.put(1, new HashSet() { - }); - } - - private void assertNodeIsRoot(Tree tree, TreeNode node) { - assertEquals(1, tree.map.size()); - assertEquals((int) node.getId(), (int) tree.map.get(node.getId()).getId()); - } - -} diff --git a/opensrp-common/src/test/java/org/opensrp/common/audit/AuditMessageTest.java b/opensrp-common/src/test/java/org/opensrp/common/audit/AuditMessageTest.java deleted file mode 100644 index 0411339713..0000000000 --- a/opensrp-common/src/test/java/org/opensrp/common/audit/AuditMessageTest.java +++ /dev/null @@ -1,52 +0,0 @@ -package org.opensrp.common.audit; - - -import nl.jqno.equalsverifier.EqualsVerifier; -import org.joda.time.DateTime; -import org.junit.Test; -import org.opensrp.common.util.ComparableTester; -import org.opensrp.common.util.ComparableVerifier; - -import java.util.HashMap; -import java.util.Map; - -import static junit.framework.Assert.assertEquals; - -public class AuditMessageTest { - - @Test - public void constructorTest() { - DateTime dateTime = new DateTime(2020,12,12,12,12,12); - long messageIndex = 200l; - AuditMessageType messageType = AuditMessageType.NORMAL; - Map extraData = new HashMap<>(); - extraData.put("a", "1"); - extraData.put("b", "2"); - - AuditMessage auditMessage = new AuditMessage(dateTime, messageIndex, messageType, extraData); - - assertEquals(dateTime, auditMessage.time()); - assertEquals(messageIndex, auditMessage.index()); - assertEquals(messageType, auditMessage.type()); - assertEquals(extraData, auditMessage.data()); - } - - @Test - public void equalsContract() { - EqualsVerifier.forClass(AuditMessage.class) - .usingGetClass() - .withOnlyTheseFields("messageIndex") - .verify(); - } - - @Test - public void testComparableContract() { - AuditMessage one = new AuditMessage(null, 123l, null, null); - AuditMessage two = new AuditMessage(null, 300l, null, null); - AuditMessage third = new AuditMessage(null, 321l, null, null); - - new ComparableVerifier<>(AuditMessage.class, one, two, third).verify(); - - } - -} diff --git a/opensrp-common/src/test/java/org/opensrp/common/audit/AuditMessageTypeTest.java b/opensrp-common/src/test/java/org/opensrp/common/audit/AuditMessageTypeTest.java deleted file mode 100644 index 2c9df82f72..0000000000 --- a/opensrp-common/src/test/java/org/opensrp/common/audit/AuditMessageTypeTest.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.opensrp.common.audit; - -import org.junit.Test; - -import static org.hamcrest.core.Is.is; -import static org.junit.Assert.assertThat; -import static org.opensrp.common.audit.AuditMessageType.NORMAL; -import static org.opensrp.common.audit.AuditMessageType.SMS; - -public class AuditMessageTypeTest { - @Test - public void shouldKnowWhichFieldsAreSupportedByAGivenTypeOfMessage() { - assertThat(SMS.supports("message"), is(true)); - assertThat(SMS.supports("someRandomField"), is(false)); - - assertThat(NORMAL.supports("data"), is(true)); - assertThat(NORMAL.supports("someOtherField"), is(false)); - } -} diff --git a/opensrp-common/src/test/java/org/opensrp/common/audit/AuditorTest.java b/opensrp-common/src/test/java/org/opensrp/common/audit/AuditorTest.java deleted file mode 100644 index c844087308..0000000000 --- a/opensrp-common/src/test/java/org/opensrp/common/audit/AuditorTest.java +++ /dev/null @@ -1,189 +0,0 @@ -package org.opensrp.common.audit; - -import org.hamcrest.Matcher; -import org.joda.time.DateTime; -import org.junit.Test; -import org.motechproject.testing.utils.BaseUnitTest; -import org.opensrp.common.audit.AuditMessage; -import org.opensrp.common.audit.Auditor; -import org.opensrp.common.audit.ForbiddenFieldInAuditMessage; - -import java.util.ArrayList; -import java.util.List; - -import static org.hamcrest.CoreMatchers.is; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertThat; -import static org.opensrp.common.audit.AuditMessageType.NORMAL; - -public class AuditorTest extends BaseUnitTest { - @Test - public void shouldHaveOnlyAsManyMessagesAsTheSizeOfTheAuditorLog() { - Auditor auditor = new Auditor(2); - audit(auditor, "Message 1"); - audit(auditor, "Message 2"); - audit(auditor, "Message 3"); - - assertThat(auditor.messagesSince(0).size(), is(2)); - } - - @Test - public void shouldKeepOnlyTheNewestMessagesWhenRemovingMessagesWhichOverflow() { - Auditor auditor = new Auditor(2); - audit(auditor, "Message 1"); - audit(auditor, "Message 2"); - audit(auditor, "Message 3"); - - List messages = auditor.messagesSince(0); - assertData(messages.get(0), is("Message 2")); - assertData(messages.get(1), is("Message 3")); - } - - @Test - public void shouldGiveAllMessageWhenMessageIndexBeingSearchedForIsZeroOrNegative() { - Auditor auditor = new Auditor(3); - audit(auditor, "Message 1"); - audit(auditor, "Message 2"); - audit(auditor, "Message 3"); - audit(auditor, "Message 4"); - audit(auditor, "Message 5"); - - List messages = auditor.messagesSince(0); - assertThat(messages.size(), is(3)); - assertData(messages.get(0), is("Message 3")); - assertData(messages.get(1), is("Message 4")); - assertData(messages.get(2), is("Message 5")); - - messages = auditor.messagesSince(-10); - assertThat(messages.size(), is(3)); - assertData(messages.get(0), is("Message 3")); - assertData(messages.get(1), is("Message 4")); - assertData(messages.get(2), is("Message 5")); - } - - @Test - public void shouldBeAbleToFindMessagesSubmittedSinceAGivenIndex() throws Exception { - Auditor auditor = new Auditor(3); - audit(auditor, "Message 1"); - audit(auditor, "Message 2"); - audit(auditor, "Message 3"); - - long messageIndexOfLastMessage = auditor.messagesSince(0).get(2).index(); - - audit(auditor, "Message 4"); - audit(auditor, "Message 5"); - - List newMessages = auditor.messagesSince(messageIndexOfLastMessage); - assertThat(newMessages.size(), is(2)); - assertData(newMessages.get(0), is("Message 4")); - assertData(newMessages.get(1), is("Message 5")); - } - - @Test - public void shouldBeAbleToSearchForMessagesByIndexEvenIfThereHaveBeenManyMessagesInBetween() { - Auditor auditor = new Auditor(3); - audit(auditor, "Message 1"); - - long messageIndexOfLastMessage = auditor.messagesSince(0).get(0).index(); - - audit(auditor, "Message 2"); - audit(auditor, "Message 3"); - audit(auditor, "Message 4"); - audit(auditor, "Message 5"); - audit(auditor, "Message 6"); - audit(auditor, "Message 7"); - - List messages = auditor.messagesSince(messageIndexOfLastMessage); - assertThat(messages.size(), is(3)); - assertData(messages.get(0), is("Message 5")); - assertData(messages.get(1), is("Message 6")); - assertData(messages.get(2), is("Message 7")); - } - - @Test - public void shouldNotFindAnyMessagesIfAllMessagesHaveAlreadyBeenSeen() { - Auditor auditor = new Auditor(3); - audit(auditor, "Message 1"); - audit(auditor, "Message 2"); - audit(auditor, "Message 3"); - - long messageIndexOfLastMessage = auditor.messagesSince(0).get(2).index(); - - List newMessages = auditor.messagesSince(messageIndexOfLastMessage); - assertThat(newMessages.size(), is(0)); - } - - @Test - public void shouldNotFindAnyMessagesWhenAWrongMessageIndexIfProvided() { - Auditor auditor = new Auditor(3); - audit(auditor, "Message 1"); - audit(auditor, "Message 2"); - audit(auditor, "Message 3"); - - long messageIndexOfLastMessage = auditor.messagesSince(0).get(2).index(); - - List newMessages = auditor.messagesSince(messageIndexOfLastMessage + 10); - assertThat(newMessages.size(), is(0)); - } - - @Test - public void shouldNotAllowTwoMessagesToHaveTheSameIndexEvenIfTheyAreAddedInTheSameMillisecond() { - DateTime timeNow = DateTime.now(); - - Auditor auditor = new Auditor(3); - - mockCurrentDate(timeNow); - audit(auditor, "Message 1 - Same timestamp as Messages 2 and 3"); - audit(auditor, "Message 2 - Same timestamp as Messages 1 and 3"); - audit(auditor, "Message 3 - Same timestamp as Messages 1 and 2"); - - resetDateTimeSource(); - - long messageIndexOfLastMessage = auditor.messagesSince(0).get(2).index(); - - List newMessages = auditor.messagesSince(messageIndexOfLastMessage); - assertThat(newMessages.size(), is(0)); - } - - @Test(expected = ForbiddenFieldInAuditMessage.class) - public void shouldNotAllowAddingOfFieldsWhichAreNotSupportedByTheAuditMessageTypeUsed() { - Auditor auditor = new Auditor(3); - auditor.audit(NORMAL).with("SOMETHING_OTHER_THAN_data", "Message 1").done(); - } - - @Test - public void shouldCaptureAllAuditMessagesEvenIfCalledFromMultipleThreads() throws Exception { - final Auditor auditor = new Auditor(10000); - List threads = new ArrayList(); - - for (int i = 0; i < 10; i++) { - Thread thread = new Thread(new Runnable() { - @Override - public void run() { - for (int i = 0; i < 1000; i++) { - auditor.audit(NORMAL).with("data", "abc + " + i + " " + Thread.currentThread().getId()).done(); - } - } - }); - threads.add(thread); - } - - for (int i = 0; i < 10; i++) { - threads.get(i).start(); - } - - for (int i = 0; i < 10; i++) { - threads.get(i).join(); - } - - assertEquals(10000, auditor.messagesSince(0).size()); - } - - private void assertData(AuditMessage message, Matcher expectedDataMatcher) { - assertThat(message.data().get("data"), expectedDataMatcher); - } - - private void audit(Auditor auditor, String value) { - auditor.audit(NORMAL).with("data", value).done(); - } -} diff --git a/opensrp-common/src/test/java/org/opensrp/common/domain/ANMIndicatorSummaryTest.java b/opensrp-common/src/test/java/org/opensrp/common/domain/ANMIndicatorSummaryTest.java deleted file mode 100644 index 6a95af326b..0000000000 --- a/opensrp-common/src/test/java/org/opensrp/common/domain/ANMIndicatorSummaryTest.java +++ /dev/null @@ -1,50 +0,0 @@ -package org.opensrp.common.domain; - -import nl.jqno.equalsverifier.EqualsVerifier; -import org.junit.Test; - -import java.util.ArrayList; -import java.util.List; - -import static org.junit.Assert.*; - -/** - * Created by real on 10/07/17. - */ -public class ANMIndicatorSummaryTest { - - - @Test - public void testMonthlySummaries() { - List externalIDs = new ArrayList<>(); - externalIDs.add("1"); - MonthSummary monthSummary, monthSummary2; - monthSummary = new MonthSummary("July", "2017", "73%", - "47%", externalIDs); - List monthSummaryList = new ArrayList<>(); - monthSummaryList.add(monthSummary); - ANMIndicatorSummary anmIndicatorSummary = new ANMIndicatorSummary("11", "11111", monthSummaryList); - assertEquals(monthSummaryList, anmIndicatorSummary.monthlySummaries()); - - assertTrue(anmIndicatorSummary.toString().contains("indicator=11")); - assertFalse(anmIndicatorSummary.toString().contains("annualTarget=2222")); - - assertEquals("11111", anmIndicatorSummary.annualTarget()); - assertNotSame("11112", anmIndicatorSummary.annualTarget()); - - assertEquals("11", anmIndicatorSummary.indicator()); - assertNotSame("12", anmIndicatorSummary.indicator()); - - monthSummary2 = new MonthSummary("august", "2015", "63%", - "74%", externalIDs); - List monthSummaryList2 = new ArrayList<>(); - monthSummaryList2.add(monthSummary2); - ANMIndicatorSummary anmIndicatorSummary2 = new ANMIndicatorSummary("11", "11111", monthSummaryList); - assertNotSame(monthSummaryList2, anmIndicatorSummary2.monthlySummaries()); - } - - @Test - public void testEqualsAndHashCode() { - EqualsVerifier.forClass(ANMIndicatorSummary.class).verify(); - } -} diff --git a/opensrp-common/src/test/java/org/opensrp/common/domain/ANMReportTest.java b/opensrp-common/src/test/java/org/opensrp/common/domain/ANMReportTest.java deleted file mode 100644 index eff05040cd..0000000000 --- a/opensrp-common/src/test/java/org/opensrp/common/domain/ANMReportTest.java +++ /dev/null @@ -1,70 +0,0 @@ -package org.opensrp.common.domain; - -import nl.jqno.equalsverifier.EqualsVerifier; -import org.junit.Test; - -import java.util.ArrayList; -import java.util.List; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotSame; - -/** - * Created by real on 10/07/17. - */ -public class ANMReportTest { - @Test - public void testConstructorsAndGetters() { - - List externalIDs = new ArrayList<>(); - externalIDs.add("1"); - MonthSummary monthSummary, monthSummary2; - monthSummary = new MonthSummary("July", "2017", "73%", - "47%", externalIDs); - List monthSummaryList = new ArrayList<>(); - monthSummaryList.add(monthSummary); - - ANMIndicatorSummary anmIndicatorSummary, anmIndicatorSummary2; - anmIndicatorSummary = new ANMIndicatorSummary("11", "1111", monthSummaryList); - anmIndicatorSummary2 = new ANMIndicatorSummary("22", "2222", monthSummaryList); - - List summuriesList = new ArrayList<>(); - summuriesList.add(anmIndicatorSummary); - - List summuriesList2 = new ArrayList<>(); - summuriesList.add(anmIndicatorSummary2); - - ANMReport anmReport = new ANMReport("1234", summuriesList); - assertEquals(summuriesList, anmReport.summaries()); - assertNotSame(summuriesList2, anmReport.summaries()); - - assertEquals("1234", anmReport.anmIdentifier()); - assertNotSame("4321", anmReport.anmIdentifier()); - } - - @Test - public void testEqualsAndHashCode() { - EqualsVerifier.forClass(ANMReport.class).verify(); - } - - @Test - public void testToString() { - ANMReport anmReport = new ANMReport(); - assertNotSame("", anmReport.toString()); - - List externalIDs = new ArrayList<>(); - externalIDs.add("1"); - MonthSummary monthSummary, monthSummary2; - monthSummary = new MonthSummary("July", "2017", "73%", - "47%", externalIDs); - List monthSummaryList = new ArrayList<>(); - monthSummaryList.add(monthSummary); - ANMIndicatorSummary anmIndicatorSummary, anmIndicatorSummary2; - anmIndicatorSummary = new ANMIndicatorSummary("11", "1111", monthSummaryList); - List summuriesList = new ArrayList<>(); - summuriesList.add(anmIndicatorSummary); - ANMReport anmReport2 = new ANMReport("1234", summuriesList); - assertEquals("1234", anmReport2.anmIdentifier().toString()); - - } -} diff --git a/opensrp-common/src/test/java/org/opensrp/common/domain/LocationTest.java b/opensrp-common/src/test/java/org/opensrp/common/domain/LocationTest.java deleted file mode 100644 index 30ba7b8dca..0000000000 --- a/opensrp-common/src/test/java/org/opensrp/common/domain/LocationTest.java +++ /dev/null @@ -1,25 +0,0 @@ -package org.opensrp.common.domain; - -import org.junit.Test; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotSame; - -/** - * Created by real on 11/07/17. - */ -public class LocationTest { - @Test - public void testConstructorAndGetters() { - Location location = new Location("Nandanpur", "gangapur", "house"); - assertEquals("Nandanpur", location.village()); - assertNotSame("PalerHut", location.village()); - - assertEquals("gangapur", location.subCenter()); - assertNotSame("postOffice", location.subCenter()); - - assertEquals("house", location.phc()); - assertNotSame("PalerHut", location.phc()); - - } -} diff --git a/opensrp-common/src/test/java/org/opensrp/common/domain/MonthSummeryTest.java b/opensrp-common/src/test/java/org/opensrp/common/domain/MonthSummeryTest.java deleted file mode 100644 index 4f0bd0d91d..0000000000 --- a/opensrp-common/src/test/java/org/opensrp/common/domain/MonthSummeryTest.java +++ /dev/null @@ -1,54 +0,0 @@ -package org.opensrp.common.domain; - - -import nl.jqno.equalsverifier.EqualsVerifier; -import org.junit.Test; -import org.opensrp.common.audit.AuditMessage; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - -import static org.junit.Assert.*; - -public class MonthSummeryTest { - - @Test - public void testForConstructorAndGettersOfMonthSummery() { - List externalIDs = new ArrayList<>(); - externalIDs.add("hi"); - externalIDs.add("hello"); - MonthSummary monthSummary, monthSummary2, monthSummary3; - monthSummary = new MonthSummary("July", "2017", "73%", - "47%", externalIDs); - monthSummary2 = new MonthSummary("august", "2018", "63%", - "37%", externalIDs); - monthSummary3 = monthSummary; - - assertEquals("July", monthSummary.month()); - assertNotSame("June", monthSummary.month()); - - assertEquals("2017", monthSummary.year()); - assertNotSame("2018", monthSummary.year()); - - assertEquals("73%", monthSummary.currentProgress()); - assertNotSame("83%", monthSummary.currentProgress()); - - assertEquals("47%", monthSummary.aggregatedProgress()); - assertNotSame("74%", monthSummary.aggregatedProgress()); - - assertEquals(externalIDs, monthSummary.externalIDs()); - assertNotSame("hi", monthSummary.externalIDs().get(1)); - - assertEquals(monthSummary.toString(), monthSummary3.toString()); - assertNotSame(monthSummary.toString(), monthSummary2.toString()); - - } - - @Test - public void equalsContract() { - EqualsVerifier.forClass(MonthSummary.class) - .verify(); - } - -} diff --git a/opensrp-common/src/test/java/org/opensrp/common/domain/ReportDataDeleteRequestTest.java b/opensrp-common/src/test/java/org/opensrp/common/domain/ReportDataDeleteRequestTest.java deleted file mode 100644 index 078c5eaae1..0000000000 --- a/opensrp-common/src/test/java/org/opensrp/common/domain/ReportDataDeleteRequestTest.java +++ /dev/null @@ -1,65 +0,0 @@ -package org.opensrp.common.domain; - -import nl.jqno.equalsverifier.EqualsVerifier; -import org.apache.commons.lang.StringUtils; -import org.junit.Test; - -import static org.junit.Assert.*; - -/** - * Created by real on 11/07/17. - */ -public class ReportDataDeleteRequestTest { - - @Test - public void testConstructorNGetters() { - ReportDataDeleteRequest reportDataDeleteRequest1, reportDataDeleteRequest2, reportDataDeleteRequest3; - reportDataDeleteRequest1 = new ReportDataDeleteRequest(); - reportDataDeleteRequest2 = new ReportDataDeleteRequest(); - - reportDataDeleteRequest1.withType("java"); - assertEquals("java", reportDataDeleteRequest1.type()); - assertNotSame("c++", reportDataDeleteRequest1.type()); - - reportDataDeleteRequest2.withDristhiEntityId("1234"); - assertEquals("1234", reportDataDeleteRequest2.dristhiEntityId()); - assertNotSame("4321", reportDataDeleteRequest2.dristhiEntityId()); - - reportDataDeleteRequest3 = new ReportDataDeleteRequest("python"); - assertEquals("python", reportDataDeleteRequest3.type()); - assertNotSame("c++", reportDataDeleteRequest3.type()); - } - - @Test - public void equalsContract() { - EqualsVerifier.forClass(ReportDataDeleteRequest.class) - .verify(); - } - - @Test - public void testToStringOfReportDataDeleteRequest() { - ReportDataDeleteRequest reportDataDeleteRequest = new ReportDataDeleteRequest("java"); - assertTrue(reportDataDeleteRequest.toString().contains("java")); - assertFalse(reportDataDeleteRequest.toString().contains("c++")); - } - - @Test - public void testServiceProvidedDataDeleteRequest() { - ReportDataDeleteRequest reportDataDeleteRequest = ReportDataDeleteRequest.serviceProvidedDataDeleteRequest("abc"); - assertEquals("serviceProvided", reportDataDeleteRequest.type()); - assertNotSame("provider", reportDataDeleteRequest.type()); - assertEquals("abc", reportDataDeleteRequest.dristhiEntityId()); - assertNotSame("cba", reportDataDeleteRequest.dristhiEntityId()); - } - - @Test - public void testAnmReportDataDeleteRequest() { - ReportDataDeleteRequest reportDataDeleteRequest = ReportDataDeleteRequest.anmReportDataDeleteRequest("abc"); - assertEquals("anmReportData", reportDataDeleteRequest.type()); - assertNotSame("provider", reportDataDeleteRequest.type()); - assertEquals("abc", reportDataDeleteRequest.dristhiEntityId()); - assertNotSame("cba", reportDataDeleteRequest.dristhiEntityId()); - } - - -} diff --git a/opensrp-common/src/test/java/org/opensrp/common/domain/ReportDataUpdateRequestTest.java b/opensrp-common/src/test/java/org/opensrp/common/domain/ReportDataUpdateRequestTest.java deleted file mode 100644 index f6b711a423..0000000000 --- a/opensrp-common/src/test/java/org/opensrp/common/domain/ReportDataUpdateRequestTest.java +++ /dev/null @@ -1,62 +0,0 @@ -package org.opensrp.common.domain; - -import nl.jqno.equalsverifier.EqualsVerifier; -import org.junit.Test; - -import java.util.ArrayList; -import java.util.List; - -import static org.junit.Assert.*; - -/** - * Created by real on 11/07/17. - */ -public class ReportDataUpdateRequestTest { - @Test - public void testConstructorNGettersOfReportDataUpdateRequest() { - ReportDataUpdateRequest reportDataUpdateRequest, reportDataUpdateRequest2, reportDataUpdateRequest3; - reportDataUpdateRequest = new ReportDataUpdateRequest(); - - reportDataUpdateRequest.withIndicator("gogo"); - assertEquals("gogo", reportDataUpdateRequest.indicator()); - assertNotSame("nono", reportDataUpdateRequest.indicator()); - - reportDataUpdateRequest.withStartDate("2017-07-11"); - assertEquals("2017-07-11", reportDataUpdateRequest.startDate()); - assertNotSame("nono", reportDataUpdateRequest.startDate()); - - reportDataUpdateRequest.withEndDate("2017-12-11"); - assertEquals("2017-12-11", reportDataUpdateRequest.endDate()); - assertNotSame("nono", reportDataUpdateRequest.endDate()); - - reportDataUpdateRequest.withType("easy"); - assertEquals("easy", reportDataUpdateRequest.type()); - assertNotSame("nono", reportDataUpdateRequest.type()); - - List reportingDataList = new ArrayList<>(); - ReportingData reportingData1 = new ReportingData("report"); - reportingDataList.add(reportingData1); - reportDataUpdateRequest.withReportingData(reportingDataList); - assertTrue(reportDataUpdateRequest.reportingData().get(0).toString().contains("type=report")); - assertFalse(reportDataUpdateRequest.reportingData().get(0).toString().contains("no report")); - - reportDataUpdateRequest2 = new ReportDataUpdateRequest("new report"); - assertEquals("new report", reportDataUpdateRequest2.type()); - assertNotSame("no report found", reportDataUpdateRequest2.type()); - System.out.println(reportDataUpdateRequest2.toString()); - assertTrue(reportDataUpdateRequest2.toString().contains("type=new report")); - assertFalse(reportDataUpdateRequest2.toString().contains("type=null")); - - reportDataUpdateRequest3 = ReportDataUpdateRequest.buildReportDataRequest("file", Indicator.ANC, - "2017-07-11", "2017-12-11", reportingDataList); - assertEquals("ANC", reportDataUpdateRequest3.indicator()); - assertNotSame("PNC", reportDataUpdateRequest3.indicator()); - } - - - @Test - public void equalsContract() { - EqualsVerifier.forClass(ReportDataUpdateRequest.class) - .verify(); - } -} diff --git a/opensrp-common/src/test/java/org/opensrp/common/domain/ReportMonthTest.java b/opensrp-common/src/test/java/org/opensrp/common/domain/ReportMonthTest.java deleted file mode 100644 index 9f3f1ad5bc..0000000000 --- a/opensrp-common/src/test/java/org/opensrp/common/domain/ReportMonthTest.java +++ /dev/null @@ -1,124 +0,0 @@ -package org.opensrp.common.domain; - -import org.joda.time.DateTime; -import org.joda.time.LocalDate; -import org.junit.Ignore; -import org.junit.Test; -import org.opensrp.common.domain.ReportMonth; -import org.opensrp.common.util.DateUtil; - -import java.text.SimpleDateFormat; -import java.util.Calendar; -import java.util.Date; - -import static org.junit.Assert.*; - -public class ReportMonthTest { - - private final ReportMonth reportMonth = new ReportMonth(); - - @Test - public void shouldCalculateStartOfCurrentReportMonth() throws Exception { - assertEquals(LocalDate.parse("2011-11-26"), reportMonth.startOfCurrentReportMonth(LocalDate.parse("2011-11-28"))); - assertEquals(LocalDate.parse("2011-12-26"), reportMonth.startOfCurrentReportMonth(LocalDate.parse("2011-12-26"))); - assertEquals(LocalDate.parse("2011-12-26"), reportMonth.startOfCurrentReportMonth(LocalDate.parse("2011-12-27"))); - assertEquals(LocalDate.parse("2011-12-26"), reportMonth.startOfCurrentReportMonth(LocalDate.parse("2012-01-01"))); - - assertEquals(LocalDate.parse("2012-01-26"), reportMonth.startOfCurrentReportMonth(LocalDate.parse("2012-01-26"))); - assertEquals(LocalDate.parse("2012-01-26"), reportMonth.startOfCurrentReportMonth(LocalDate.parse("2012-01-27"))); - - assertEquals(LocalDate.parse("2012-01-26"), reportMonth.startOfCurrentReportMonth(LocalDate.parse("2012-02-01"))); - assertEquals(LocalDate.parse("2012-03-26"), reportMonth.startOfCurrentReportMonth(LocalDate.parse("2012-03-31"))); - - assertEquals(LocalDate.parse("2012-01-26"), reportMonth.startOfCurrentReportMonth(LocalDate.parse("2012-02-25"))); - - assertEquals(LocalDate.parse("2012-02-26"), reportMonth.startOfCurrentReportMonth(LocalDate.parse("2012-02-26"))); - assertEquals(LocalDate.parse("2012-02-26"), reportMonth.startOfCurrentReportMonth(LocalDate.parse("2012-02-27"))); - } - - @Test - public void shouldCalculateStartOfNextReportMonth() throws Exception { - assertEquals(LocalDate.parse("2012-01-26"), reportMonth.startDateOfNextReportingMonth(LocalDate.parse("2012-01-01"))); - assertEquals(LocalDate.parse("2012-02-26"), reportMonth.startDateOfNextReportingMonth(LocalDate.parse("2012-01-26"))); - assertEquals(LocalDate.parse("2012-02-26"), reportMonth.startDateOfNextReportingMonth(LocalDate.parse("2012-01-27"))); - - assertEquals(LocalDate.parse("2011-12-26"), reportMonth.startDateOfNextReportingMonth(LocalDate.parse("2011-11-28"))); - - assertEquals(LocalDate.parse("2011-12-26"), reportMonth.startDateOfNextReportingMonth(LocalDate.parse("2011-12-25"))); - assertEquals(LocalDate.parse("2012-01-26"), reportMonth.startDateOfNextReportingMonth(LocalDate.parse("2011-12-26"))); - assertEquals(LocalDate.parse("2012-01-26"), reportMonth.startDateOfNextReportingMonth(LocalDate.parse("2011-12-27"))); - } - - @Test - public void shouldCalculateEndDateOfReportMonth() throws Exception { - assertEquals(LocalDate.parse("2012-02-25"), reportMonth.endDateOfReportingMonthGivenStartDate(LocalDate.parse("2012-01-26"))); - assertEquals(LocalDate.parse("2012-12-25"), reportMonth.endDateOfReportingMonthGivenStartDate(LocalDate.parse("2012-11-26"))); - assertEquals(LocalDate.parse("2013-01-25"), reportMonth.endDateOfReportingMonthGivenStartDate(LocalDate.parse("2012-12-26"))); - } - - @Test - public void shouldCalculateEndDateOfCurrentReportMonth() throws Exception { - assertEquals(LocalDate.parse("2013-01-25"), reportMonth.endOfCurrentReportMonth(LocalDate.parse("2012-12-26"))); - assertEquals(LocalDate.parse("2013-01-25"), reportMonth.endOfCurrentReportMonth(LocalDate.parse("2012-12-30"))); - - assertEquals(LocalDate.parse("2013-01-25"), reportMonth.endOfCurrentReportMonth(LocalDate.parse("2013-01-01"))); - - assertEquals(LocalDate.parse("2013-02-25"), reportMonth.endOfCurrentReportMonth(LocalDate.parse("2013-01-26"))); - assertEquals(LocalDate.parse("2013-01-25"), reportMonth.endOfCurrentReportMonth(LocalDate.parse("2013-01-25"))); - } - - @Test - public void shouldCheckWhetherTheDateIsWithInTheReportingMonth() throws Exception { - DateUtil.fakeIt(LocalDate.parse("2013-01-26")); - assertTrue(reportMonth.isDateWithinCurrentReportMonth(LocalDate.parse("2013-01-26"))); - assertTrue(reportMonth.isDateWithinCurrentReportMonth(LocalDate.parse("2013-02-01"))); - assertTrue(reportMonth.isDateWithinCurrentReportMonth(LocalDate.parse("2013-02-25"))); - assertFalse(reportMonth.isDateWithinCurrentReportMonth(LocalDate.parse("2013-01-25"))); - assertFalse(reportMonth.isDateWithinCurrentReportMonth(LocalDate.parse("2013-02-26"))); - - DateUtil.fakeIt(LocalDate.parse("2012-12-26")); - assertTrue(reportMonth.isDateWithinCurrentReportMonth(LocalDate.parse("2013-01-01"))); - assertTrue(reportMonth.isDateWithinCurrentReportMonth(LocalDate.parse("2013-01-25"))); - } - - @Test - public void shouldCheckWhetherBothTheDatesAreWithinSameReportingMonth() { - assertTrue(reportMonth.areDatesBelongToSameReportingMonth(LocalDate.parse("2013-01-26"), LocalDate.parse("2013-01-26"))); - assertTrue(reportMonth.areDatesBelongToSameReportingMonth(LocalDate.parse("2013-02-01"), LocalDate.parse("2013-02-15"))); - assertTrue(reportMonth.areDatesBelongToSameReportingMonth(LocalDate.parse("2013-02-01"), LocalDate.parse("2013-02-25"))); - assertTrue(reportMonth.areDatesBelongToSameReportingMonth(LocalDate.parse("2013-02-25"), LocalDate.parse("2013-02-25"))); - assertTrue(reportMonth.areDatesBelongToSameReportingMonth(LocalDate.parse("2012-12-26"), LocalDate.parse("2013-01-01"))); - assertTrue(reportMonth.areDatesBelongToSameReportingMonth(LocalDate.parse("2012-12-26"), LocalDate.parse("2013-01-25"))); - - assertFalse(reportMonth.areDatesBelongToSameReportingMonth(LocalDate.parse("2013-01-25"), LocalDate.parse("2013-01-26"))); - assertFalse(reportMonth.areDatesBelongToSameReportingMonth(LocalDate.parse("2013-01-26"), LocalDate.parse("2013-02-26"))); - } - - @Test - public void testStartDateOfReportingYear() { - ReportMonth reportMonth2 = new ReportMonth(); - Date date = reportMonth2.startDateOfReportingYear(); - LocalDate localDate = LocalDate.parse(new SimpleDateFormat("yyyy-MM-dd").format(date)); - System.out.println(localDate); - //assertEquals("2017-03-26", localDate.toString()); - assertNotSame("2017-07-26", localDate.toString()); - } - - @Ignore - @Test - public void testReportingMonth() { - int currentMonth = reportMonth.reportingMonth(new LocalDate()); - int expectedMonth = new LocalDate().getMonthOfYear(); - assertEquals(expectedMonth, currentMonth); - assertNotSame(9, currentMonth); - } - - @Test - public void testReportingYear() { - int currentYear = reportMonth.reportingYear(new LocalDate()); - int expectedYear = new LocalDate().getYear(); - assertEquals(expectedYear, currentYear); - assertNotSame(2016, currentYear); - } - -} diff --git a/opensrp-common/src/test/java/org/opensrp/common/domain/ReportingDataTest.java b/opensrp-common/src/test/java/org/opensrp/common/domain/ReportingDataTest.java deleted file mode 100644 index 9257dcc627..0000000000 --- a/opensrp-common/src/test/java/org/opensrp/common/domain/ReportingDataTest.java +++ /dev/null @@ -1,61 +0,0 @@ -package org.opensrp.common.domain; - -import com.sun.org.apache.regexp.internal.RE; -import nl.jqno.equalsverifier.EqualsVerifier; -import org.junit.Test; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.Map; - -import static org.junit.Assert.*; - -/** - * Created by real on 12/07/17. - */ -public class ReportingDataTest { - @Test - public void testConstructorNGettersOfReportingData() { - Map data = new HashMap<>(); - data.put("quantity", "open"); - ReportingData reportingData1, reportingData2, reportingData3, reportingData4, reportingData5; - reportingData1 = new ReportingData("new data"); - - assertEquals("new data", reportingData1.type()); - assertNotSame("no data", reportingData1.type()); - - reportingData3 = ReportingData.anmReportData("anmIdentifier", "", Indicator.ANC, ""); - ArrayList missingList = reportingData3.getMissingReportDataForANMReport(); - ArrayList missingListExpected = new ArrayList(); - missingListExpected.add("externalId"); - missingListExpected.add("date"); - assertTrue(missingList.equals(missingListExpected)); - missingListExpected.add("anmIdentifier"); - assertFalse(missingList.equals(missingListExpected)); - - Location location = new Location("Nandanpur", "gangapur", "house"); - reportingData4 = ReportingData.serviceProvidedData("anmIdentifier", "externalId", Indicator.ANC4, - "date", location, ""); - ArrayList missingReportDataForServiceProvidedList = reportingData4.getMissingReportDataForServiceProvided(); - ArrayList expectedMissingReportDataForServiceProvidedList = new ArrayList(); - expectedMissingReportDataForServiceProvidedList.add("dristhiEntityId"); - assertTrue(missingReportDataForServiceProvidedList.equals(expectedMissingReportDataForServiceProvidedList)); - expectedMissingReportDataForServiceProvidedList.add("anmIdentifier"); - assertFalse(missingReportDataForServiceProvidedList.equals(expectedMissingReportDataForServiceProvidedList)); - - reportingData2 = new ReportingData("anc report", data); - assertTrue(reportingData2.toString().contains("type=anc")); - assertFalse(reportingData2.toString().contains("type-anc4")); - - reportingData2.withQuantity("better"); - System.out.println(reportingData2.toString()); - assertTrue(reportingData2.toString().contains("quantity=better")); - assertFalse(reportingData2.toString().contains("quantity=close")); - } - - @Test - public void equalsContract() { - EqualsVerifier.forClass(ReportingData.class) - .verify(); - } -} diff --git a/opensrp-common/src/test/java/org/opensrp/common/domain/UserDetailTest.java b/opensrp-common/src/test/java/org/opensrp/common/domain/UserDetailTest.java deleted file mode 100644 index e8c7316379..0000000000 --- a/opensrp-common/src/test/java/org/opensrp/common/domain/UserDetailTest.java +++ /dev/null @@ -1,26 +0,0 @@ -package org.opensrp.common.domain; - -import org.junit.Test; - -import java.util.ArrayList; -import java.util.List; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotSame; - -/** - * Created by real on 12/07/17. - */ -public class UserDetailTest { - @Test - public void testConstructorNGetters() { - List rolesList = new ArrayList<>(); - rolesList.add("TLI"); - rolesList.add("FD"); - UserDetail userDetail = new UserDetail("real", rolesList); - assertEquals("real", userDetail.userName()); - assertNotSame("peal", userDetail.userName()); - assertEquals("TLI", userDetail.roles().get(0)); - assertNotSame("TLI", userDetail.roles().get(1)); - } -} diff --git a/opensrp-common/src/test/java/org/opensrp/common/monitor/MonitorTest.java b/opensrp-common/src/test/java/org/opensrp/common/monitor/MonitorTest.java deleted file mode 100644 index 6cd31c905a..0000000000 --- a/opensrp-common/src/test/java/org/opensrp/common/monitor/MonitorTest.java +++ /dev/null @@ -1,83 +0,0 @@ -package org.opensrp.common.monitor; - -import org.apache.log4j.AppenderSkeleton; -import org.apache.log4j.Level; -import org.apache.log4j.Logger; -import org.apache.log4j.spi.LoggingEvent; -import org.junit.Before; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.mockito.BDDMockito; -import org.powermock.api.mockito.PowerMockito; -import org.powermock.core.classloader.annotations.PrepareForTest; -import org.powermock.modules.junit4.PowerMockRunner; - -import java.util.ArrayList; -import java.util.List; - -import static junit.framework.Assert.assertEquals; -import static org.junit.Assert.assertTrue; - - -@RunWith(PowerMockRunner.class) -@PrepareForTest({Probe.class}) -public class MonitorTest { - - @Before - public void setUp() { - PowerMockito.mockStatic(System.class); - } - - @Test - public void probeTest() { - BDDMockito.given(System.nanoTime()).willReturn(100l, 150l); - Monitor monitor = new Monitor(); - Probe probe = monitor.start(Metric.REPORTING_ANM_REPORTS_CACHE_TIME); - long value = probe.value(); - assertEquals(50, value); - } - - - @Test - public void monitorLoggingTest() { - final TestAppender appender = new TestAppender(); - final Logger logger = Logger.getLogger(Monitor.LOGGER_NAME); - logger.addAppender(appender); - try { - BDDMockito.given(System.nanoTime()).willReturn(100l, 150l); - Monitor monitor = new Monitor(); - Probe probe = monitor.start(Metric.REPORTING_ANM_REPORTS_CACHE_TIME); - monitor.end(probe); - } finally { - logger.removeAppender(appender); - } - - final List log = appender.getLog(); - final LoggingEvent firstLogEntry = log.get(0); - assertEquals(firstLogEntry.getLevel(), Level.INFO); - assertTrue(firstLogEntry.getRenderedMessage().contains("50")); - assertTrue(firstLogEntry.getRenderedMessage().contains(Metric.REPORTING_ANM_REPORTS_CACHE_TIME.name())); - } -} - -class TestAppender extends AppenderSkeleton { - private final List log = new ArrayList(); - - @Override - public boolean requiresLayout() { - return false; - } - - @Override - protected void append(final LoggingEvent loggingEvent) { - log.add(loggingEvent); - } - - @Override - public void close() { - } - - public List getLog() { - return new ArrayList(log); - } -} diff --git a/opensrp-common/src/test/java/org/opensrp/common/util/ComparableTester.java b/opensrp-common/src/test/java/org/opensrp/common/util/ComparableTester.java deleted file mode 100644 index afe539416d..0000000000 --- a/opensrp-common/src/test/java/org/opensrp/common/util/ComparableTester.java +++ /dev/null @@ -1,78 +0,0 @@ -package org.opensrp.common.util; - - -import static java.lang.Integer.signum; -import static junit.framework.Assert.assertEquals; -import static org.junit.Assert.assertTrue; -import static org.junit.Assert.fail; - -/** - * This is a utility class to easily test compare method. - * - * @see Source - */ -public class ComparableTester { - - /** - * ensure sgn(x.compareTo(y)) == -sgn(y.compareTo(x)) for all x and y. - * (This implies that x.compareTo(y) must throw an exception iff y.compareTo(x) throws an exception.) - * - * @param - * @param o1 - * @param o2 - */ - public static void assertComparisonReversal(Comparable o1, Comparable o2) { - assertTrue("Comparison reversal should apply: sgn(o1.compareTo(o2)) == -sgn(o2.compareTo(o1)). ", signum(o1.compareTo((T) o2)) == -signum(o2.compareTo((T) o1))); - } - - /** - * comparator should be consistent with equals if and only if e1.compareTo(e2) == 0 has the same boolean value as - * e1.equals(e2) for every e1 and e2 of class C - * - * @param o1 - * @param o2 - */ - public static void assertConsistencyWithEqual(Comparable o1, Comparable o2) { - assertEquals("o1 and o2 should be equal. Before testing comparison. ", o1, o2); - - assertTrue("since o1 and o2 are equals, o1.compareTo(o2) should return zero!", o1.compareTo((T) o2) == 0); - } - - /** - * e.compareTo(null) should throw a NullPointerException - * - * @param o1 - */ - - public static void assertNullPointerException(Comparable o1) { - try { - o1.compareTo(null); - }catch (Exception e) { - if(!NullPointerException.class.isInstance(e)){ - throw e; - } - } - } - - /** - * (o3.compareTo(o2)>0 && o2.compareTo(o1)>0) implies o3.compareTo(o1)>0. - * - * @param o1 - * @param o2 - * @param o3 - */ - public static void assertTransitivity(Comparable o1, Comparable o2, Comparable o3) { - assertTrue("(" + o3 + ".compareTo(" + o2 + ") > 0) && (" + o2 + ".compareTo(" + o1 + ") > 0 ) && ( " + o3 + ".compareTo(" + o1 + ") > 0 )", (o3.compareTo((T) o2) > 0) && (o2.compareTo((T) o1) > 0) && (o3.compareTo((T) o1) > 0)); - } - - /** - * ensure that twinO1.compareTo(twinO2)==0 implies that sgn(twinO1.compareTo(differentO3)) == sgn(twinO2.compareTo(differentO3)), for all z. - * - * @param twinO1 - * @param twinO2 - * @param differentO3 - */ - public static void assertConsistency(Comparable twinO1, Comparable twinO2, Comparable differentO3) { - assertTrue((twinO1.compareTo((T) twinO2) == 0) && (signum(twinO1.compareTo((T) differentO3)) == signum(twinO2.compareTo((T) differentO3)))); - } -} diff --git a/opensrp-common/src/test/java/org/opensrp/common/util/ComparableVerifier.java b/opensrp-common/src/test/java/org/opensrp/common/util/ComparableVerifier.java deleted file mode 100644 index a9d0003011..0000000000 --- a/opensrp-common/src/test/java/org/opensrp/common/util/ComparableVerifier.java +++ /dev/null @@ -1,52 +0,0 @@ -package org.opensrp.common.util; - - -public class ComparableVerifier { - - Class classToTest; - Comparable smallOne; - Comparable mediumOne; - Comparable biggestOne; - - public ComparableVerifier (Class classToTest, Comparable smallOne, Comparable mediumOne, Comparable biggestOne) { - this.classToTest = classToTest; - this.smallOne = smallOne; - this.mediumOne = mediumOne; - this.biggestOne = biggestOne; - } - - public boolean verify() { - testComparisonConsistency(); - testComparisonConsistencyWithEqual(); - testComparisonNullPointerException(); - testComparisonReversal(); - testComparisonTransitivity(); - return false; - } - - private void testComparisonReversal() { - ComparableTester.assertComparisonReversal(smallOne, smallOne); - ComparableTester.assertComparisonReversal(smallOne, mediumOne); - ComparableTester.assertComparisonReversal(smallOne, mediumOne); - } - - private void testComparisonConsistencyWithEqual() { - Comparable sameAsOne = smallOne; - ComparableTester.assertConsistencyWithEqual(smallOne, sameAsOne); - } - - - private void testComparisonNullPointerException(){ - ComparableTester.assertNullPointerException(smallOne); - } - - private void testComparisonTransitivity() { - ComparableTester.assertTransitivity(smallOne, mediumOne, biggestOne); - } - - - private void testComparisonConsistency() { - Comparable sameAsOne = smallOne; - ComparableTester.assertConsistency(smallOne, sameAsOne, mediumOne); - } -} diff --git a/opensrp-common/src/test/java/org/opensrp/common/util/DateTimeUtilTest.java b/opensrp-common/src/test/java/org/opensrp/common/util/DateTimeUtilTest.java deleted file mode 100644 index 7430fdd43b..0000000000 --- a/opensrp-common/src/test/java/org/opensrp/common/util/DateTimeUtilTest.java +++ /dev/null @@ -1,37 +0,0 @@ -package org.opensrp.common.util; - -import org.joda.time.LocalDateTime; -import org.junit.Test; - -import java.lang.reflect.Constructor; -import java.lang.reflect.InvocationTargetException; -import java.lang.reflect.Modifier; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotSame; -import static org.junit.Assert.assertTrue; - - -public class DateTimeUtilTest { - @Test - public void testConstructorIsPrivate() throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException { - Constructor constructor = DateTimeUtil.class.getDeclaredConstructor(); - assertTrue(Modifier.isPrivate(constructor.getModifiers())); - constructor.setAccessible(true); - constructor.newInstance(); - } - - @Test - public void nowTestOfMockDateTime() throws Exception { - LocalDateTime localDateTime = DateTimeUtil.now(); - MockDateTime mockDateTime = new MockDateTime(localDateTime); - assertEquals(localDateTime, mockDateTime.now()); - - RealDateTime realDateTime = new RealDateTime(); - assertNotSame(localDateTime, realDateTime.now()); - - DateTimeUtil.fakeIt(localDateTime); - } - - -} diff --git a/opensrp-common/src/test/java/org/opensrp/common/util/DateUtilTest.java b/opensrp-common/src/test/java/org/opensrp/common/util/DateUtilTest.java deleted file mode 100644 index bd43307fe6..0000000000 --- a/opensrp-common/src/test/java/org/opensrp/common/util/DateUtilTest.java +++ /dev/null @@ -1,103 +0,0 @@ -package org.opensrp.common.util; - -import org.joda.time.DateTime; -import org.joda.time.LocalDate; -import org.joda.time.Period; -import org.junit.Test; - -import java.lang.reflect.Constructor; -import java.lang.reflect.InvocationTargetException; -import java.lang.reflect.Modifier; -import java.text.ParseException; -import java.text.SimpleDateFormat; -import java.util.Date; -import java.util.TimeZone; - -import static org.junit.Assert.*; - -public class DateUtilTest { - - DateUtil dateUtil; - - @Test - public void testConstructorIsPrivate() - throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException { - Constructor constructor = DateUtil.class.getDeclaredConstructor(); - assertTrue(Modifier.isPrivate(constructor.getModifiers())); - constructor.setAccessible(true); - constructor.newInstance(); - } - - @Test - public void testMillis() throws Exception { - LocalDate today = LocalDate.now(); - long expected = today.toDate().getTime(); - long localDate = DateUtil.millis(); - assertNotSame(expected, localDate); - } - - @Test - public void testMillisFromMockDate() throws Exception { - LocalDate today = LocalDate.now(); - long expectedTime = today.toDate().getTime(); - MockDate mockDate = new MockDate(today); - long localDate = mockDate.millis(); - - assertEquals(expectedTime, localDate); - } - - @Test - public void testIsDateWithinGivenPeriodBeforeToday() throws Exception { - LocalDate referenceDateForSchedule = LocalDate.parse("2017-05-27"); - Period period = Period.days(3); - assertEquals(false, DateUtil.isDateWithinGivenPeriodBeforeToday(referenceDateForSchedule, period)); - } - - @Test - public void testParseDate() throws Exception { - String yyyyMMdd = "2017-05-30"; - String yyyyMMddHHmmss = "2012-07-10 14:58:00"; - String yyyyMMddTHHmmssSSSZ = "2017-06-01T14:29:27.845+0000"; - - assertEquals(yyyyMMdd, DateUtil.yyyyMMdd.format(DateUtil.parseDate(yyyyMMdd).toDate())); - assertEquals(yyyyMMddHHmmss, DateUtil.yyyyMMddHHmmss.format(DateUtil.parseDate(yyyyMMddHHmmss).toDate())); - - DateTime dateInSystemTimeZone = DateUtil.parseDate(yyyyMMddTHHmmssSSSZ); - DateUtil.yyyyMMddTHHmmssSSSZ.setTimeZone(TimeZone.getTimeZone("GMT")); - assertEquals(yyyyMMddTHHmmssSSSZ, DateUtil.yyyyMMddTHHmmssSSSZ.format(dateInSystemTimeZone.toDate())); - - } - - @Test(expected = ParseException.class) - public void testParseInvalidDate() throws Exception { - String invalidDate = "dfasfasdfas"; - DateUtil.parseDate(invalidDate); - } - - @Test - public void testGetTodayAsString() throws Exception { - LocalDate today = LocalDate.now(); - String formattedDate = today.toString("yyyy-MM-dd"); - assertEquals(formattedDate, DateUtil.getTodayAsString()); - } - - @Test - public void testTryParse() { - String value = "1994-04-03"; - LocalDate tested = LocalDate.parse(value); - LocalDate defaultvalue = LocalDate.now(); - assertEquals(tested, DateUtil.tryParse(value, defaultvalue)); - assertNotSame(tested, DateUtil.tryParse("x", defaultvalue)); - } - - @Test - public void testGetDateFromString() throws Exception { - SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ"); - String dateString = "2017-05-30T14:19:01.232+0600"; - String temp = formatter.format(new Date()); - Date date = null; - date = formatter.parse(dateString); - assertEquals(date, DateUtil.getDateFromString(dateString)); - - } -} diff --git a/opensrp-common/src/test/java/org/opensrp/common/util/DoubleUtilTest.java b/opensrp-common/src/test/java/org/opensrp/common/util/DoubleUtilTest.java deleted file mode 100644 index 124fd43ac7..0000000000 --- a/opensrp-common/src/test/java/org/opensrp/common/util/DoubleUtilTest.java +++ /dev/null @@ -1,28 +0,0 @@ -package org.opensrp.common.util; - -import org.junit.Assert; -import org.junit.Test; - -import java.lang.reflect.Constructor; -import java.lang.reflect.InvocationTargetException; -import java.lang.reflect.Modifier; - -import static org.junit.Assert.assertTrue; - -public class DoubleUtilTest { - @Test - public void testConstructorIsPrivate() throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException { - Constructor constructor = DoubleUtil.class.getDeclaredConstructor(); - assertTrue(Modifier.isPrivate(constructor.getModifiers())); - constructor.setAccessible(true); - constructor.newInstance(); - } - - @Test - public void shouldParseIntSafely() throws Exception { - Assert.assertEquals(0.1D, DoubleUtil.tryParse("", 0.1D), 0D); - Assert.assertEquals(2.0D, DoubleUtil.tryParse(null, 2.0D), 0D); - Assert.assertEquals(0D, DoubleUtil.tryParse("0", 1.1D), 0D); - Assert.assertEquals(3D, DoubleUtil.tryParse("3", 3.2D), 0D); - } -} diff --git a/opensrp-common/src/test/java/org/opensrp/common/util/EasyMapTest.java b/opensrp-common/src/test/java/org/opensrp/common/util/EasyMapTest.java deleted file mode 100644 index 1e255d9886..0000000000 --- a/opensrp-common/src/test/java/org/opensrp/common/util/EasyMapTest.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.opensrp.common.util; - - -import org.junit.Test; - -import java.util.Map; -import java.util.TreeMap; - -import static junit.framework.Assert.assertEquals; -import static junit.framework.Assert.assertNull; -import static org.junit.Assert.assertTrue; - -public class EasyMapTest { - - @Test - public void basicTest() { - EasyMap easyMap = new EasyMap<>(); - - assertTrue(easyMap.map().isEmpty()); - assertNull(easyMap.map().get(1)); - - easyMap.put("a",1); - - assertEquals(1, (int)easyMap.map().get("a")); - - Map map = new TreeMap<>(); - map.put("b", 2); - map.put("c", 3); - map.put("d", 4); - - easyMap.putAll(map); - - assertEquals(2, (int)easyMap.map().get("b")); - assertEquals(3, (int)easyMap.map().get("c")); - - } - - @Test - public void constructorTestForMapOfMethod() { - Map easyMap = EasyMap.mapOf("a", 1); - assertEquals(1, easyMap.size()); - assertEquals(1, (int) easyMap.get("a")); - assertNull(easyMap.get("s")); - } - - @Test - public void constructorTestForCreateMethod() { - EasyMap easyMap2 = EasyMap.create("b", 2); - assertEquals(1, easyMap2.map().size()); - assertEquals(2, (int) easyMap2.map().get("b")); - assertNull(easyMap2.map().get("s")); - } -} diff --git a/opensrp-common/src/test/java/org/opensrp/common/util/HttpResponseTest.java b/opensrp-common/src/test/java/org/opensrp/common/util/HttpResponseTest.java deleted file mode 100644 index 821d7b72ab..0000000000 --- a/opensrp-common/src/test/java/org/opensrp/common/util/HttpResponseTest.java +++ /dev/null @@ -1,34 +0,0 @@ -package org.opensrp.common.util; - -import org.junit.Test; - -import static org.junit.Assert.assertEquals; - - -public class HttpResponseTest { - - @Test - public void isSuccessTest() throws Exception { - boolean isSuccess = true; - String body = "hi"; - HttpResponse httpResponse = new HttpResponse(isSuccess, body); - assertEquals(true, httpResponse.isSuccess()); - } - - @Test - public void bodyTest() throws Exception { - boolean isSuccess = true; - String body = "hi"; - HttpResponse httpResponse = new HttpResponse(isSuccess, body); - assertEquals("hi", httpResponse.body()); - } - - @Test - public void statusCode() throws Exception { - boolean isSuccess = true; - String body = "hi"; - Integer statusCode = 11111; - HttpResponse httpResponse = new HttpResponse(isSuccess, 11111, body); - assertEquals(statusCode, httpResponse.statusCode()); - } -} diff --git a/opensrp-common/src/test/java/org/opensrp/common/util/HttpUtilIntegrationTest.java b/opensrp-common/src/test/java/org/opensrp/common/util/HttpUtilIntegrationTest.java deleted file mode 100644 index b2122d9dee..0000000000 --- a/opensrp-common/src/test/java/org/opensrp/common/util/HttpUtilIntegrationTest.java +++ /dev/null @@ -1,317 +0,0 @@ -package org.opensrp.common.util; - - -import org.apache.http.Header; -import org.apache.http.client.methods.HttpRequestBase; -import org.junit.Assert; -import org.junit.Test; -import sun.misc.BASE64Encoder; - -import java.lang.reflect.Constructor; -import java.lang.reflect.InvocationTargetException; -import java.lang.reflect.Modifier; -import java.net.URISyntaxException; - -import static junit.framework.Assert.assertEquals; -import static junit.framework.Assert.assertFalse; -import static junit.framework.Assert.assertTrue; -import static org.opensrp.common.util.HttpUtil.*; - -public class HttpUtilIntegrationTest { - @Test - public void testConstructorIsPrivate() throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException { - Constructor constructor = HttpUtil.class.getDeclaredConstructor(); - Assert.assertTrue(Modifier.isPrivate(constructor.getModifiers())); - constructor.setAccessible(true); - constructor.newInstance(); - } - - @Test - public void testRemovingTrailingSlashes() { - String inputStringWithOneSlash = "/inputString"; - String expectedOutputStringForOneSlash = "inputString"; - - String outputStringForOneSlash = HttpUtil.removeTrailingSlash(inputStringWithOneSlash); - - assertEquals(expectedOutputStringForOneSlash, outputStringForOneSlash); - } - - @Test - public void testRemoveEndingSlashes() { - String inputStringWithOneSlash = "inputString/"; - String expectedOutputStringForOneSlash = "inputString"; - - String outputStringForOneSlash = HttpUtil.removeEndingSlash(inputStringWithOneSlash); - - assertEquals(expectedOutputStringForOneSlash, outputStringForOneSlash); - } - - @Test(expected = URISyntaxException.class) - public void testMakeConnectionThorowsUriSyntaxException() throws URISyntaxException { - String invalidUrl = "http://invalidURL^$&%$&^"; - makeConnection(invalidUrl, "", RequestMethod.DELETE, HttpUtil.AuthType.BASIC, ""); - } - - @Test - public void testMakingConnectionWithTrailingSlashes() throws URISyntaxException { - String url = "www.google.com/"; - String expectedUrl = "www.google.com"; - String payLoad = ""; - RequestMethod method = RequestMethod.GET; - HttpUtil.AuthType authType = HttpUtil.AuthType.NONE; - - HttpRequestBase requestBase = makeConnection(url, payLoad, method, authType, ""); - - assertEquals(expectedUrl, requestBase.getURI().toString()); - assertEquals(method.name(), requestBase.getMethod()); - } - - @Test - public void testMakingValidConnectionWithoutPayload() throws URISyntaxException { - String url = "www.google.com"; - String payLoad = ""; - RequestMethod method = RequestMethod.GET; - HttpUtil.AuthType authType = HttpUtil.AuthType.NONE; - - HttpRequestBase requestBase = makeConnection(url, payLoad, method, authType, ""); - - assertEquals(url, requestBase.getURI().toString()); - assertEquals(method.name(), requestBase.getMethod()); - } - - @Test - public void testMakingConnectionWithPayload() throws URISyntaxException { - String url = "www.google.com"; - String payLoad = "payload"; - String expectedUrl = url + "?" + payLoad; - RequestMethod method = RequestMethod.GET; - HttpUtil.AuthType authType = HttpUtil.AuthType.NONE; - - HttpRequestBase requestBase = makeConnection(url, payLoad, method, authType, ""); - - assertEquals(expectedUrl, requestBase.getURI().toString()); - assertEquals(method.name(), requestBase.getMethod()); - } - - @Test - public void testMakingConnectionWithPostMethod() throws URISyntaxException { - String url = "www.google.com"; - String payLoad = "payload"; - String expectedUrl = url + "?" + payLoad; - RequestMethod method = RequestMethod.POST; - HttpUtil.AuthType authType = HttpUtil.AuthType.NONE; - - HttpRequestBase requestBase = makeConnection(url, payLoad, method, authType, ""); - - assertEquals(expectedUrl, requestBase.getURI().toString()); - assertEquals(method.name(), requestBase.getMethod()); - } - - @Test - public void testMakingConnectionWithDeleteMethod() throws URISyntaxException { - String url = "www.google.com"; - String payLoad = "payload"; - String expectedUrl = url + "?" + payLoad; - RequestMethod method = RequestMethod.DELETE; - HttpUtil.AuthType authType = HttpUtil.AuthType.NONE; - - HttpRequestBase requestBase = makeConnection(url, payLoad, method, authType, ""); - - assertEquals(expectedUrl, requestBase.getURI().toString()); - assertEquals(method.name(), requestBase.getMethod()); - } - - @Test - public void testMakingConnectionWithPutMethod() throws URISyntaxException { - String url = "www.google.com"; - String payLoad = "payload"; - String expectedUrl = url + "?" + payLoad; - RequestMethod method = RequestMethod.PUT; - HttpUtil.AuthType authType = HttpUtil.AuthType.NONE; - - HttpRequestBase requestBase = makeConnection(url, payLoad, method, authType, ""); - - assertEquals(expectedUrl, requestBase.getURI().toString()); - assertEquals(method.name(), requestBase.getMethod()); - } - - @Test(expected = NullPointerException.class) - public void testMakingConnectionWithNullMethod() throws URISyntaxException { - String url = "www.google.com"; - String payLoad = "payload"; - String expectedUrl = url + "?" + payLoad; - RequestMethod method = null; - HttpUtil.AuthType authType = HttpUtil.AuthType.NONE; - - HttpRequestBase requestBase = makeConnection(url, payLoad, method, authType, ""); - - assertEquals(expectedUrl, requestBase.getURI().toString()); - assertEquals(method.name(), requestBase.getMethod()); - } - - @Test - public void testMakingConnectionWithBasicAuthType() throws URISyntaxException { - String url = "www.google.com"; - RequestMethod method = RequestMethod.PUT; - HttpUtil.AuthType authType = HttpUtil.AuthType.BASIC; - String authString = "userName:pass"; - String expectedAuthString = "Basic " + new BASE64Encoder().encode(authString.getBytes()); - - HttpRequestBase requestBase = makeConnection(url, "", method, authType, authString); - Header[] headers = requestBase.getHeaders("Authorization"); - String outputAuthString = headers[0].getValue(); - - assertEquals(url, requestBase.getURI().toString()); - assertEquals(method.name(), requestBase.getMethod()); - assertEquals(expectedAuthString, outputAuthString); - } - - @Test - public void testMakingConnectionWithToken() throws URISyntaxException { - String url = "www.google.com"; - RequestMethod method = RequestMethod.PUT; - HttpUtil.AuthType authType = HttpUtil.AuthType.TOKEN; - String authString = "userName:pass"; - String expectedAuthString = "Token " + authString; - - HttpRequestBase requestBase = makeConnection(url, "", method, authType, authString); - Header[] headers = requestBase.getHeaders("Authorization"); - String outputAuthString = headers[0].getValue(); - - assertEquals(url, requestBase.getURI().toString()); - assertEquals(method.name(), requestBase.getMethod()); - assertEquals(expectedAuthString, outputAuthString); - } - - @Test - public void testSuccessfulDeleteMethod() { - String url = "http://httpbin.org/delete"; - String payLoad = "payload"; - HttpUtil.AuthType authType = HttpUtil.AuthType.NONE; - - HttpResponse response = delete(url, payLoad, authType, ""); - - assertEquals(200, response.statusCode().intValue()); - assertTrue(response.isSuccess()); - } - - @Test - public void testUnsuccessfulDeleteMethod() { - String url = "http://httpbin.org"; - String payLoad = "payload"; - HttpUtil.AuthType authType = HttpUtil.AuthType.NONE; - - HttpResponse response = delete(url, payLoad, authType, ""); - - assertEquals(405, response.statusCode().intValue()); - assertFalse(response.isSuccess()); - } - - @Test(expected = RuntimeException.class) - public void testDeleteMethodForException() { - delete(null, null, "", null); - } - - @Test - public void testSuccessfulGetMethod() { - String url = "http://httpbin.org/get"; - HttpUtil.AuthType authType = HttpUtil.AuthType.NONE; - - HttpResponse response = get(url, "", authType, ""); - assertEquals(200, response.statusCode().intValue()); - assertTrue(response.isSuccess()); - - HttpResponse response2 = get(url, ""); - assertEquals(200, response.statusCode().intValue()); - assertTrue(response.isSuccess()); - - HttpResponse response3 = getWithToken(url, "", ""); - assertEquals(200, response.statusCode().intValue()); - assertTrue(response.isSuccess()); - } - - @Test - public void testSuccessfulGetMethodWithNoContent() { - String url = "http://httpstat.us/204"; - HttpUtil.AuthType authType = HttpUtil.AuthType.NONE; - - HttpResponse response = get(url, "", authType, ""); - - assertEquals(204, response.statusCode().intValue()); - assertTrue(response.isSuccess()); - } - - @Test - public void testUnsuccessfulGetMethod() { - String url = "http://httpbin.org/delete"; - String payLoad = "payload"; - HttpUtil.AuthType authType = HttpUtil.AuthType.NONE; - - HttpResponse response = get(url, payLoad, authType, ""); - - assertEquals(405, response.statusCode().intValue()); - assertFalse(response.isSuccess()); - } - - @Test(expected = RuntimeException.class) - public void testGetMethodForException() { - get(null, null, "", null); - } - - - @Test - public void testSuccessfulPostMethod() { - String url = "http://httpbin.org/post"; - HttpUtil.AuthType authType = HttpUtil.AuthType.NONE; - - HttpResponse response = post(url, "", "", "text", authType, ""); - - assertEquals(200, response.statusCode().intValue()); - assertTrue(response.isSuccess()); - - HttpResponse response2 = post(url, "", ""); - assertEquals(200, response.statusCode().intValue()); - assertTrue(response.isSuccess()); - } - - @Test - public void testPostWithToken() { - String url = "http://httpbin.org/post"; - HttpUtil.AuthType authType = HttpUtil.AuthType.NONE; - - HttpResponse response = postWithToken(url, "", "", ""); - assertEquals(200, response.statusCode().intValue()); - assertTrue(response.isSuccess()); - } - - @Test - public void testSuccessfulPostMethodWithNoContent() { - String url = "http://httpstat.us/204"; - HttpUtil.AuthType authType = HttpUtil.AuthType.NONE; - - HttpResponse response = post(url, "", "", "", authType, ""); - - assertEquals(204, response.statusCode().intValue()); - assertTrue(response.isSuccess()); - } - - @Test - public void testUnsuccessfulPostMethod() { - String url = "http://httpbin.org/get"; - String payLoad = "payload"; - HttpUtil.AuthType authType = HttpUtil.AuthType.NONE; - - HttpResponse response = post(url, "", "", "", authType, ""); - - assertEquals(405, response.statusCode().intValue()); - assertFalse(response.isSuccess()); - } - - @Test - public void testCheckHttpCallSuccessBasedOnReturnCode() { - assertTrue(checkSuccessBasedOnHttpCode(200)); - assertTrue(checkSuccessBasedOnHttpCode(303)); - assertFalse(checkSuccessBasedOnHttpCode(404)); - assertFalse(checkSuccessBasedOnHttpCode(505)); - } -} diff --git a/opensrp-common/src/test/java/org/opensrp/common/util/IntegerUtilTest.java b/opensrp-common/src/test/java/org/opensrp/common/util/IntegerUtilTest.java deleted file mode 100644 index bab1d45fd0..0000000000 --- a/opensrp-common/src/test/java/org/opensrp/common/util/IntegerUtilTest.java +++ /dev/null @@ -1,54 +0,0 @@ -package org.opensrp.common.util; - -import org.junit.Test; - -import java.lang.reflect.Constructor; -import java.lang.reflect.InvocationTargetException; -import java.lang.reflect.Modifier; - -import static org.junit.Assert.*; - -public class IntegerUtilTest { - IntegerUtil integerUtil; - - @Test - public void shouldParseIntSafely() throws Exception { - assertEquals(0, integerUtil.tryParse("", 0)); - assertEquals(2, integerUtil.tryParse(null, 2)); - assertEquals(0, integerUtil.tryParse("0", 1)); - assertEquals(3, integerUtil.tryParse("3", 3)); - } - - @Test - public void testConstructorIsPrivate() throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException { - Constructor constructor = IntegerUtil.class.getDeclaredConstructor(); - assertTrue(Modifier.isPrivate(constructor.getModifiers())); - constructor.setAccessible(true); - constructor.newInstance(); - } - - @Test - public void isIntegerTestForValidInteger() throws Exception { - assertTrue(integerUtil.isInteger("2")); - } - - @Test - public void isIntegerTestForInvalidInteger() throws Exception { - assertFalse(integerUtil.isInteger("hi")); - } - - @Test - public void forValidIntergers() throws Exception { - String x = integerUtil.parseValidIntegersAndDefaultInvalidOnesToEmptyString("hi"); - assertEquals("", x); - } - - @Test - public void forInvalidIntegers() throws Exception { - String y = integerUtil.parseValidIntegersAndDefaultInvalidOnesToEmptyString("9"); - assertEquals("9", y); - - } - - -} diff --git a/opensrp-connector/src/test/java/org/opensrp/connector/SpringApplicationContextProvider.java b/opensrp-connector/src/test/java/org/opensrp/connector/SpringApplicationContextProvider.java deleted file mode 100644 index f820679aac..0000000000 --- a/opensrp-connector/src/test/java/org/opensrp/connector/SpringApplicationContextProvider.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.opensrp.connector; - -import org.junit.runner.RunWith; -import org.springframework.context.ApplicationContext; -import org.springframework.test.context.ContextConfiguration; -import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; - -@RunWith(SpringJUnit4ClassRunner.class) -@ContextConfiguration("classpath:test-applicationContext-opensrp-connector.xml") -public class SpringApplicationContextProvider { - - public static ApplicationContext context; - - public static ApplicationContext getContext() { - return context; - } - - public static void setContext(ApplicationContext context) { - SpringApplicationContextProvider.context = context; - } - - -} diff --git a/opensrp-connector/src/test/java/org/opensrp/connector/atomfeed/domain/FailedEventTest.java b/opensrp-connector/src/test/java/org/opensrp/connector/atomfeed/domain/FailedEventTest.java deleted file mode 100644 index 8641f10838..0000000000 --- a/opensrp-connector/src/test/java/org/opensrp/connector/atomfeed/domain/FailedEventTest.java +++ /dev/null @@ -1,67 +0,0 @@ -package org.opensrp.connector.atomfeed.domain; - -import static junit.framework.Assert.assertEquals; -import static junit.framework.Assert.assertNotNull; -import static org.mockito.MockitoAnnotations.initMocks; - -import org.ict4h.atomfeed.client.domain.Event; -import org.junit.Before; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.powermock.core.classloader.annotations.PowerMockIgnore; -import org.powermock.modules.junit4.PowerMockRunner; - -@RunWith(PowerMockRunner.class) -@PowerMockIgnore({ "org.apache.log4j.*", "org.apache.commons.logging.*" }) -public class FailedEventTest { - - @Before - public void setUp() throws Exception { - initMocks(this); - - } - - @Test - public void testConstructorSetetrAndGetter() { - String feedUri = "api/feed/patient"; - Event event = new Event("entry", "/api/v2/some"); - String errorMessage = "error"; - int retries = 0; - org.ict4h.atomfeed.client.domain.FailedEvent fEvent = new org.ict4h.atomfeed.client.domain.FailedEvent(feedUri, - event, errorMessage, retries); - FailedEvent failedEvent = new FailedEvent(feedUri, fEvent, errorMessage, retries); - assertNotNull(failedEvent); - String expectedErrorMessage = "errorMessage"; - failedEvent.setErrorMessage(expectedErrorMessage); - assertEquals(expectedErrorMessage, failedEvent.getErrorMessage()); - int exoectedErrorHashCode = 400; - failedEvent.setErrorHashCode(exoectedErrorHashCode); - assertEquals(exoectedErrorHashCode, failedEvent.getErrorHashCode()); - - String expectedTitle = "Failed Event"; - failedEvent.setTitle(expectedTitle); - assertEquals(expectedTitle, failedEvent.getTitle()); - - String expectedEventId = "eventId"; - failedEvent.setEventId(expectedEventId); - assertEquals(expectedEventId, failedEvent.getEventId()); - - int expectedRetries = 0; - failedEvent.setRetries(expectedRetries); - assertEquals(expectedRetries, failedEvent.getRetries()); - - String expectedCventContent = "eventContent"; - failedEvent.setEventContent(expectedCventContent); - assertEquals(expectedCventContent, failedEvent.getEventContent()); - - String expectedFeedUri = "/api/feed/aptient"; - failedEvent.setFeedUri(expectedFeedUri); - assertEquals(expectedFeedUri, failedEvent.getFeedUri()); - - long expectedFailedAt = 0; - failedEvent.setFailedAt(expectedFailedAt); - assertEquals(expectedFailedAt, failedEvent.getFailedAt()); - failedEvent.toFailedEvent(); - - } -} diff --git a/opensrp-connector/src/test/java/org/opensrp/connector/atomfeed/domain/MarkerTest.java b/opensrp-connector/src/test/java/org/opensrp/connector/atomfeed/domain/MarkerTest.java deleted file mode 100644 index 5b894c8d37..0000000000 --- a/opensrp-connector/src/test/java/org/opensrp/connector/atomfeed/domain/MarkerTest.java +++ /dev/null @@ -1,47 +0,0 @@ -package org.opensrp.connector.atomfeed.domain; - -import static junit.framework.Assert.assertEquals; -import static junit.framework.Assert.assertNotNull; -import static org.mockito.MockitoAnnotations.initMocks; - -import java.net.URI; -import java.net.URISyntaxException; - -import org.junit.Before; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.powermock.core.classloader.annotations.PowerMockIgnore; -import org.powermock.modules.junit4.PowerMockRunner; - -@RunWith(PowerMockRunner.class) -@PowerMockIgnore({ "org.apache.log4j.*", "org.apache.commons.logging.*" }) -public class MarkerTest { - - @Before - public void setUp() throws Exception { - initMocks(this); - - } - - @Test - public void testConstructorSetetrAndGetter() throws URISyntaxException { - URI feedUri = new URI("/ddd/ddd"); - String lastReadEntryId = "qwewewe-it-23243"; - URI feedURIForLastReadEntry = new URI("dff/ggg"); - org.ict4h.atomfeed.client.domain.Marker marker = new org.ict4h.atomfeed.client.domain.Marker(feedUri, - lastReadEntryId, feedURIForLastReadEntry); - Marker m = new Marker(marker); - assertNotNull(m); - String expectedFeedURI = "api/v1/marker"; - m.setFeedUri(expectedFeedURI); - String expectedFeedURIForLastReadEntry = "weerrt-44555-6666"; - m.setFeedURIForLastReadEntry(expectedFeedURIForLastReadEntry); - String expectedLastReadEntryId = "3456-mjui-hyyy"; - m.toMarker(); - m.setLastReadEntryId(expectedLastReadEntryId); - assertEquals(expectedFeedURIForLastReadEntry, m.getFeedURIForLastReadEntry()); - assertEquals(expectedLastReadEntryId, m.getLastReadEntryId()); - assertEquals(expectedFeedURI, m.getFeedUri()); - - } -} diff --git a/opensrp-connector/src/test/java/org/opensrp/connector/atomfeed/it/AllFailedEventsCouchImplTest.java b/opensrp-connector/src/test/java/org/opensrp/connector/atomfeed/it/AllFailedEventsCouchImplTest.java deleted file mode 100644 index fc579f5ab2..0000000000 --- a/opensrp-connector/src/test/java/org/opensrp/connector/atomfeed/it/AllFailedEventsCouchImplTest.java +++ /dev/null @@ -1,128 +0,0 @@ -package org.opensrp.connector.atomfeed.it; - -import static junit.framework.Assert.assertEquals; - -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import org.ektorp.CouchDbInstance; -import org.ektorp.http.HttpClient; -import org.ektorp.http.StdHttpClient; -import org.ektorp.impl.StdCouchDbConnector; -import org.ektorp.impl.StdCouchDbInstance; -import org.ektorp.impl.StdObjectMapperFactory; -import org.ict4h.atomfeed.client.domain.Event; -import org.ict4h.atomfeed.client.domain.FailedEvent; -import org.junit.Before; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.opensrp.connector.atomfeed.AllFailedEventsCouchImpl; -import org.opensrp.connector.openmrs.service.TestResourceLoader; -import org.springframework.test.context.ContextConfiguration; -import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; - -@RunWith(SpringJUnit4ClassRunner.class) -@ContextConfiguration("classpath:test-applicationContext-opensrp-connector.xml") -public class AllFailedEventsCouchImplTest extends TestResourceLoader { - - private AllFailedEventsCouchImpl allFailedEventsCouchImpl; - - private CouchDbInstance dbInstance; - - private StdCouchDbConnector stdCouchDbConnector; - - String feedUri = "feedUri"; - - String feedUriId = "feedUriId"; - - String entryId = "entry"; - - public AllFailedEventsCouchImplTest() throws IOException { - super(); - // TODO Auto-generated constructor stub - } - - @Before - public void setup() { - HttpClient httpClient = new StdHttpClient.Builder().host("localhost").port(5984).username(couchDBUserName) - .password(couchDBPassword).socketTimeout(1000).build(); - dbInstance = new StdCouchDbInstance(httpClient); - - stdCouchDbConnector = new StdCouchDbConnector("atomfeed", dbInstance, new StdObjectMapperFactory()); - - stdCouchDbConnector.createDatabaseIfNotExists(); - allFailedEventsCouchImpl = new AllFailedEventsCouchImpl(1, stdCouchDbConnector); - - } - - @Test - public void testAddOrUpdate() { - String feedUri = "apis/feed/patient"; - Event event = new Event(entryId, "/apis/v2/some"); - String errorMessage = "error"; - int retries = 0; - org.ict4h.atomfeed.client.domain.FailedEvent expectedFailedEvent = new org.ict4h.atomfeed.client.domain.FailedEvent( - feedUri, event, errorMessage, retries); - - allFailedEventsCouchImpl.addOrUpdate(expectedFailedEvent); - allFailedEventsCouchImpl.addOrUpdate(expectedFailedEvent); - org.ict4h.atomfeed.client.domain.FailedEvent actualFailedEvent = allFailedEventsCouchImpl - .get(feedUri, event.getId()); - - allFailedEventsCouchImpl.remove(expectedFailedEvent); - assertEquals(expectedFailedEvent.toString(), actualFailedEvent.toString()); - } - - @Test(expected = NullPointerException.class) - public void testGetNullPointerException() { - - org.ict4h.atomfeed.client.domain.FailedEvent actualFailedEvent = allFailedEventsCouchImpl.get(feedUri, feedUriId); - - } - - @Test(expected = RuntimeException.class) - public void testRemove() { - allFailedEventsCouchImpl.remove(null); - - } - - @Test - public void testGetOldestNFailedEvents() { - - String feedUri = "apis/feed/patient"; - Event event = new Event(entryId, "/apis/v2/somes"); - String errorMessage = "error"; - int retries = 0; - org.ict4h.atomfeed.client.domain.FailedEvent failedEvent = new org.ict4h.atomfeed.client.domain.FailedEvent(feedUri, - event, errorMessage, retries); - - allFailedEventsCouchImpl.addOrUpdate(failedEvent); - allFailedEventsCouchImpl.addOrUpdate(failedEvent); - List expectedFailedEvent = new ArrayList<>(); - expectedFailedEvent.add(failedEvent); - - List actualFailedEvent = allFailedEventsCouchImpl.getOldestNFailedEvents(feedUri, 10, 10); - - assertEquals(expectedFailedEvent.toString(), actualFailedEvent.toString()); - allFailedEventsCouchImpl.remove(failedEvent); - - } - - @Test - public void testGetNumberOfFailedEvents() { - String feedUri = "apis/feed/patient"; - Event event = new Event(entryId, "/apis/v2/somes"); - String errorMessage = "error"; - int retries = 0; - org.ict4h.atomfeed.client.domain.FailedEvent failedEvent = new org.ict4h.atomfeed.client.domain.FailedEvent(feedUri, - event, errorMessage, retries); - - allFailedEventsCouchImpl.addOrUpdate(failedEvent); - allFailedEventsCouchImpl.addOrUpdate(failedEvent); - int expectedCount = 1; - int actualCount = allFailedEventsCouchImpl.getNumberOfFailedEvents(feedUri); - assertEquals(expectedCount, actualCount); - allFailedEventsCouchImpl.remove(failedEvent); - } -} diff --git a/opensrp-connector/src/test/java/org/opensrp/connector/atomfeed/it/AllMarkersCouchImplTest.java b/opensrp-connector/src/test/java/org/opensrp/connector/atomfeed/it/AllMarkersCouchImplTest.java deleted file mode 100644 index 32d6115033..0000000000 --- a/opensrp-connector/src/test/java/org/opensrp/connector/atomfeed/it/AllMarkersCouchImplTest.java +++ /dev/null @@ -1,102 +0,0 @@ -package org.opensrp.connector.atomfeed.it; - -import static junit.framework.Assert.assertEquals; -import static junit.framework.Assert.assertNotSame; - -import java.io.IOException; -import java.net.URI; -import java.net.URISyntaxException; -import java.util.List; - -import org.ektorp.CouchDbInstance; -import org.ektorp.http.HttpClient; -import org.ektorp.http.StdHttpClient; -import org.ektorp.impl.StdCouchDbConnector; -import org.ektorp.impl.StdCouchDbInstance; -import org.ektorp.impl.StdObjectMapperFactory; -import org.junit.Before; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.opensrp.connector.atomfeed.AllMarkersCouchImpl; -import org.opensrp.connector.atomfeed.domain.Marker; -import org.opensrp.connector.openmrs.service.TestResourceLoader; -import org.springframework.test.context.ContextConfiguration; -import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; - -@RunWith(SpringJUnit4ClassRunner.class) -@ContextConfiguration("classpath:test-applicationContext-opensrp-connector.xml") -public class AllMarkersCouchImplTest extends TestResourceLoader { - - public AllMarkersCouchImplTest() throws IOException { - super(); - // TODO Auto-generated constructor stub - } - - private AllMarkersCouchImpl allMarkersCouchImpl; - - private CouchDbInstance dbInstance; - - private StdCouchDbConnector stdCouchDbConnector; - - String str = "2233-fhghghg-888"; - - @Before - public void setup() throws URISyntaxException { - HttpClient httpClient = new StdHttpClient.Builder().host("localhost").port(5984).username(couchDBUserName) - .password(couchDBPassword).socketTimeout(1000).build(); - dbInstance = new StdCouchDbInstance(httpClient); - - stdCouchDbConnector = new StdCouchDbConnector("atomfeed", dbInstance, new StdObjectMapperFactory()); - - stdCouchDbConnector.createDatabaseIfNotExists(); - allMarkersCouchImpl = new AllMarkersCouchImpl(1, stdCouchDbConnector); - - } - - @Test - public void testFindByfeedUri() throws URISyntaxException { - URI feedUri = new URI("/apis/patient"); - String expectedEntryId = "qwewewse-fgg-hhhh"; - URI expectedFeedURIForLastReadEntry = new URI(str); - - allMarkersCouchImpl.put(feedUri, expectedEntryId, expectedFeedURIForLastReadEntry); - allMarkersCouchImpl.put(feedUri, expectedEntryId, expectedFeedURIForLastReadEntry); - String expectedFeedUri = "/apis/patient"; - Marker marker = allMarkersCouchImpl.findByfeedUri(expectedFeedUri); - assertEquals(expectedFeedUri, marker.getFeedUri()); - assertEquals(expectedEntryId, marker.getLastReadEntryId()); - assertNotSame("expectedEntryId", marker.getLastReadEntryId()); - allMarkersCouchImpl.removeAll(); - } - - @Test - public void testGet() throws URISyntaxException { - URI feedUri = new URI("/apis/patient"); - String expectedEntryId = "qweweswe-fgg-hhhh"; - URI expectedFeedURIForLastReadEntry = new URI(str); - - allMarkersCouchImpl.put(feedUri, expectedEntryId, expectedFeedURIForLastReadEntry); - allMarkersCouchImpl.put(feedUri, expectedEntryId, expectedFeedURIForLastReadEntry); - org.ict4h.atomfeed.client.domain.Marker marker = allMarkersCouchImpl.get(feedUri); - assertEquals(feedUri, marker.getFeedUri()); - assertEquals(expectedEntryId, marker.getLastReadEntryId()); - assertNotSame("expectedEntryId", marker.getLastReadEntryId()); - allMarkersCouchImpl.removeAll(); - } - - @Test - public void testFindAllMarkers() throws URISyntaxException { - URI feedUri = new URI("/apis/patient"); - String expectedEntryId = "qwewegwe-fgg-hhhh"; - URI expectedFeedURIForLastReadEntry = new URI(str); - - allMarkersCouchImpl.put(feedUri, expectedEntryId, expectedFeedURIForLastReadEntry); - allMarkersCouchImpl.put(feedUri, expectedEntryId, expectedFeedURIForLastReadEntry); - List marker = allMarkersCouchImpl.findAllMarkers(); - int expectedSize = 1; - assertEquals(expectedSize, marker.size()); - expectedSize = -2; - assertNotSame(expectedSize, marker.size()); - allMarkersCouchImpl.removeAll(); - } -} diff --git a/opensrp-connector/src/test/java/org/opensrp/connector/atomfeed/it/AtomFeedTest.java b/opensrp-connector/src/test/java/org/opensrp/connector/atomfeed/it/AtomFeedTest.java deleted file mode 100644 index c7202874f3..0000000000 --- a/opensrp-connector/src/test/java/org/opensrp/connector/atomfeed/it/AtomFeedTest.java +++ /dev/null @@ -1,179 +0,0 @@ -package org.opensrp.connector.atomfeed.it; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; - -import java.io.IOException; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.UUID; - -import org.joda.time.DateTime; -import org.joda.time.DateTimeZone; -import org.json.JSONObject; -import org.junit.Before; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.mockito.MockitoAnnotations; -import org.opensrp.connector.atomfeed.AllFailedEventsInMemoryImpl; -import org.opensrp.connector.atomfeed.AllMarkersInMemoryImpl; -import org.opensrp.connector.dhis2.it.DHIS2AggregateConnectorTest; -import org.opensrp.connector.openmrs.EncounterAtomfeed; -import org.opensrp.connector.openmrs.PatientAtomfeed; -import org.opensrp.connector.openmrs.service.EncounterService; -import org.opensrp.connector.openmrs.service.OpenmrsUserService; -import org.opensrp.connector.openmrs.service.PatientService; -import org.opensrp.connector.openmrs.service.it.OpenmrsApiService; -import org.opensrp.domain.Address; -import org.opensrp.domain.Client; -import org.opensrp.domain.Event; -import org.opensrp.domain.Obs; -import org.opensrp.repository.couch.AllClients; -import org.opensrp.repository.couch.AllEvents; -import org.opensrp.service.ClientService; -import org.opensrp.service.EventService; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.test.context.ContextConfiguration; -import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; - -@RunWith(SpringJUnit4ClassRunner.class) -@ContextConfiguration("classpath:test-applicationContext-opensrp-connector.xml") -public class AtomFeedTest extends OpenmrsApiService { - - @Autowired - ClientService cs; - - @Autowired - private PatientService patientService; - - @Autowired - private OpenmrsUserService openmrsUserService; - - @Autowired - EventService es; - - @Autowired - private AllClients allClients; - - @Autowired - private AllEvents allEvents; - - @Autowired - private EncounterService encounterService; - - public AtomFeedTest() throws IOException { - super(); - } - - @Before - public void setup() { - MockitoAnnotations.initMocks(this); - allEvents.removeAll(); - allClients.removeAll(); - } - - @Test - public void shouldReadEventsCreatedEvents() throws Exception { - /* create client info**/ - String fn = "moli"; - String mn = "raw"; - String ln = "mon"; - Map addressFields = new HashMap<>(); - addressFields.put("ADDRESS1", "Dhaka"); - addressFields.put("ADDRESS2", "Dhaka"); - addressFields.put("ADDRESS3", "gazipur"); - addressFields.put("ADDRESS4", "gazipur"); - addressFields.put("ADDRESS4", "gazipur sadar"); - - String attributeName = "personAttribute"; - JSONObject attribute = createPersonAttributeType("Description", attributeName); - Map attributes = new HashMap<>(); - attributes.put(attributeName, "test value"); - List
addresses = new ArrayList<>(); - addresses.add(new Address("BIRTH", DateTime.now(), DateTime.now(), addressFields, "LAT", "LON", "PCODE", "SINDH", - "PK")); - addresses.add(new Address("DEATH", DateTime.now(), DateTime.now(), addressFields, "LATd", "LONd", "dPCODE", "KPK", - "PKD")); - Map attribs = new HashMap<>(); - - String baseEntity = UUID.randomUUID().toString(); - Client c = new Client(baseEntity).withFirstName(fn).withMiddleName(mn).withLastName(ln) - .withBirthdate(new DateTime(), true).withDeathdate(new DateTime(), false).withGender("MALE"); - c.withAddresses(addresses).withAttributes(attributes); - JSONObject patient = patientService.createPatient(c); - - /** create Event Info **/ - String encounterType = "RegistartionForPerson"; - String prividerID = "detal"; - Event expectedEvent = new Event(baseEntity, encounterType, new DateTime(0l, DateTimeZone.UTC), "entityType", - prividerID, "locationId", "formSubmissionId"); - expectedEvent.addIdentifier("key", "value"); - - List observations = new ArrayList<>(); - observations.add(new DHIS2AggregateConnectorTest().getObsWithVaccine("opv1")); - expectedEvent.setObs(observations); - - String IdentifierType = "TestIdentifierType"; - JSONObject identifier = patientService.createIdentifierType(IdentifierType, "description"); - String identifierUuid = identifier.getString(uuidKey); - - String userName = prividerID; - String password = "Dotel@1234"; - createPerson(fn, mn, ln); - JSONObject usr = createUser(userName, password, fn, mn, ln); - - openmrsUserService.createProvider(userName, IdentifierType); - - JSONObject provider = openmrsUserService.getProvider(IdentifierType, null); - JSONObject person = provider.getJSONObject(personKey); - - JSONObject returnEncounterType = encounterService.createEncounterType(encounterType, "Test desc"); - JSONObject returnEvent = encounterService.createEncounter(expectedEvent); - - JSONObject createdPerson = patient.getJSONObject(personKey); - - String uuid = createdPerson.getString(uuidKey); - /**** end event info ****/ - - /**** start atomfeed for patient ****/ - PatientAtomfeed paf = new PatientAtomfeed(new AllMarkersInMemoryImpl(), new AllFailedEventsInMemoryImpl(), - openmrsOpenmrsUrl, patientService, cs,es); - - paf.processEvents(); - - /**** start atomfeed for event ****/ - EncounterAtomfeed eaf = new EncounterAtomfeed(new AllMarkersInMemoryImpl(), new AllFailedEventsInMemoryImpl(), - openmrsOpenmrsUrl, encounterService, es); - eaf.processEvents(); - - /*** finding info ********/ - Client client = new Client("baseEntityId"); - Map identifiers = new HashMap<>(); - identifiers.put(OPENMRS_UUIDKey, uuid); - client.setIdentifiers(identifiers); - Client existingClient = cs.findClient(client); - String euuid = existingClient.getIdentifier(OPENMRS_UUIDKey); - - Event actualEvent = es.findByBaseEntityId(existingClient.getBaseEntityId()).get(0); - - /*** Cleaning data *********/ - - deletePerson(createdPerson.getString(uuidKey)); - deleteUser(usr.getString(uuidKey)); - deleteIdentifierType(identifierUuid); - deleteProvider(provider.getString(uuidKey)); - deletePerson(person.getString(uuidKey).trim()); - deleteEncounter(returnEvent.getString(uuidKey)); - deleteEncounterType(returnEncounterType.getString(uuidKey)); - //deletePersonAttributeType(attribute.getString("uuid")); - - assertEquals(uuid, euuid); - assertNotNull(existingClient); - assertEquals(encounterType, actualEvent.getEventType()); - assertNotNull(actualEvent); - - } - -} diff --git a/opensrp-connector/src/test/java/org/opensrp/connector/dhis2/DHIS2DatasetPushTest.java b/opensrp-connector/src/test/java/org/opensrp/connector/dhis2/DHIS2DatasetPushTest.java deleted file mode 100644 index 35283362e9..0000000000 --- a/opensrp-connector/src/test/java/org/opensrp/connector/dhis2/DHIS2DatasetPushTest.java +++ /dev/null @@ -1,196 +0,0 @@ -package org.opensrp.connector.dhis2; - -import static org.junit.Assert.assertEquals; -import static org.mockito.Matchers.anyInt; -import static org.mockito.Matchers.anyString; -import static org.mockito.Mockito.times; -import static org.mockito.Mockito.verify; -import static org.mockito.Mockito.when; -import static org.mockito.MockitoAnnotations.initMocks; - -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import org.joda.time.DateTime; -import org.json.JSONArray; -import org.json.JSONException; -import org.json.JSONObject; -import org.junit.Before; -import org.junit.Test; -import org.mockito.Mock; -import org.opensrp.api.domain.Location; -import org.opensrp.connector.openmrs.service.OpenmrsLocationService; -import org.opensrp.connector.openmrs.service.TestResourceLoader; -import org.opensrp.domain.Hia2Indicator; -import org.opensrp.domain.Report; -import org.opensrp.service.ConfigService; -import org.opensrp.service.ReportService; - -public class DHIS2DatasetPushTest extends TestResourceLoader { - - @Mock - DHIS2DatasetPush mockDatasetPush; - - @Mock - Dhis2HttpUtils dhis2HttpUtils; - - @Mock - OpenmrsLocationService mockOpenmrsLocationService; - - @Mock - ConfigService mockConfig; - - @Mock - ReportService mockReportService; - - String orgUnitId = "gGl6WgM3qzS"; - - String hia2ReportId = "XQDrq0oQEyN"; - - public DHIS2DatasetPushTest() throws IOException { - super(); - initMocks(this); - } - - @Before - public void setUp() throws JSONException { - JSONObject apiResponse = new JSONObject(); - JSONObject pager = new JSONObject(); - - pager.put("page", 1); - pager.put("pageCount", 1); - pager.put("total", 1); - pager.put("pageSize", 50); - - JSONArray dataSets = new JSONArray(); - - JSONObject hia2Report = new JSONObject(); - - hia2Report.put("id", hia2ReportId); - hia2Report.put("displayName", "HIA2"); - - dataSets.put(hia2Report); - - apiResponse.put("pager", pager); - apiResponse.put("dataSets", dataSets); - - when(dhis2HttpUtils.get(anyString(), anyString())).thenReturn(apiResponse); - when(mockConfig.getAppStateTokenByName(DhisSchedulerConfig.dhis2_syncer_sync_report_by_date_updated)) - .thenReturn(null); - - Location location = new Location(); - location.addAttribute("dhis_ou_id", orgUnitId); - when(mockOpenmrsLocationService.getLocation(anyString())).thenReturn(location); - } - - public Report createHIA2ReportData(List dataElements) throws JSONException { - Report hia2Report = new Report("test", "9e4fc064-d8e7-4fcb-942e-cbcf6524fb24", new DateTime(2017, 05, 22, 0, 0), - "HIA2", "5f52c82f-ea29-469e-96d6-f95a6cc8fbe9", "biddemo", "", 1, 0, dataElements); - - return hia2Report; - } - - @Test - public void testGetDHIS2ReportId() throws JSONException { - // Expected DHIS2 API response - - dhis2DatasetPush.dhis2HttpUtils = dhis2HttpUtils; - String dhis2ReportId = dhis2DatasetPush.getDHIS2ReportId("HIA2"); - - assertEquals(hia2ReportId, dhis2ReportId); - } - - @Test - public void testCreateDHIS2Dataset() throws JSONException { - Hia2Indicator chn1005 = new Hia2Indicator("CHN1-005", "n0uHub5ubqH", "100"); - Hia2Indicator chn1010 = new Hia2Indicator("CHN1-010", "IWwblgpMxiS", "150"); - - List dataElements = new ArrayList(); - - dataElements.add(chn1005); - dataElements.add(chn1010); - - Report report = this.createHIA2ReportData(dataElements); - - dhis2DatasetPush.dhis2HttpUtils = dhis2HttpUtils; - dhis2DatasetPush.openmrsLocationService = this.mockOpenmrsLocationService; - - JSONObject dhis2DatasetToPush = dhis2DatasetPush.createDHIS2Dataset(report); - - // Dataset ID - assertEquals(hia2ReportId, dhis2DatasetToPush.get("dataSet")); - //completeDate - assertEquals("2017-05-22", dhis2DatasetToPush.get("completeDate")); - // period - assertEquals("201705", dhis2DatasetToPush.get("period")); - // orgUnit - assertEquals(orgUnitId, dhis2DatasetToPush.get("orgUnit")); - // dataValues - JSONArray dataValues = dhis2DatasetToPush.getJSONArray("dataValues"); - //assertEquals(2, dataValues.length()); - - for (int i = 0; i < dataValues.length(); i++) { - JSONObject dataValue = dataValues.getJSONObject(i); - Hia2Indicator dataElement = dataElements.get(i); - - assertEquals(dataValue.get("value"), dataElement.getValue()); - } - } - - @Test - public void testUnknownDataElementsAreIgnored() throws JSONException { - Hia2Indicator chn1015 = new Hia2Indicator("CHN1-015", "unknown", "250"); - - List dataElements = new ArrayList(); - - dataElements.add(chn1015); - - Report report = this.createHIA2ReportData(dataElements); - - dhis2DatasetPush.dhis2HttpUtils = dhis2HttpUtils; - dhis2DatasetPush.openmrsLocationService = this.mockOpenmrsLocationService; - - JSONObject dhis2DatasetToPush = dhis2DatasetPush.createDHIS2Dataset(report); - - // Dataset ID - assertEquals(hia2ReportId, dhis2DatasetToPush.get("dataSet")); - JSONArray dataValues = dhis2DatasetToPush.getJSONArray("dataValues"); - assertEquals(0, dataValues.length()); - } - - @Test - public void testPushToDHIS2() throws JSONException { - // Test Data setup - JSONObject apiResponse = new JSONObject(); - apiResponse.put("status", "SUCCESS"); - - Hia2Indicator chn1005 = new Hia2Indicator("CHN1-005", "n0uHub5ubqH", "100"); - Hia2Indicator chn1010 = new Hia2Indicator("CHN1-010", "IWwblgpMxiS", "150"); - - List dataElements = new ArrayList(); - - dataElements.add(chn1005); - dataElements.add(chn1010); - - Report report = this.createHIA2ReportData(dataElements); - - List reports = new ArrayList(); - reports.add(report); - - // Customized mock api responses setup - when(dhis2HttpUtils.post(anyString(), anyString(), anyString())).thenReturn(apiResponse); - when(mockReportService.findByServerVersion(anyInt())).thenReturn(reports); - - dhis2DatasetPush.dhis2HttpUtils = dhis2HttpUtils; - dhis2DatasetPush.openmrsLocationService = this.mockOpenmrsLocationService; - dhis2DatasetPush.config = mockConfig; - dhis2DatasetPush.reportService = mockReportService; - - // Test payload is synced with DHIS2 - dhis2DatasetPush.pushToDHIS2(); - verify(dhis2HttpUtils, times(1)).post(anyString(), anyString(), anyString()); - verify(mockReportService, times(1)).updateReport(report); - } - -} diff --git a/opensrp-connector/src/test/java/org/opensrp/connector/dhis2/it/DHIS2AggregateConnectorTest.java b/opensrp-connector/src/test/java/org/opensrp/connector/dhis2/it/DHIS2AggregateConnectorTest.java deleted file mode 100644 index 2c9ceeec87..0000000000 --- a/opensrp-connector/src/test/java/org/opensrp/connector/dhis2/it/DHIS2AggregateConnectorTest.java +++ /dev/null @@ -1,218 +0,0 @@ -package org.opensrp.connector.dhis2.it; - -import static org.junit.Assert.assertEquals; - -import java.io.IOException; -import java.util.ArrayList; -import java.util.Calendar; -import java.util.List; - -import org.joda.time.DateTime; -import org.joda.time.DateTimeZone; -import org.json.JSONException; -import org.json.JSONObject; -import org.junit.Before; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.opensrp.connector.dhis2.DHIS2AggregateConnector; -import org.opensrp.connector.dhis2.Dhis2HttpUtils; -import org.opensrp.connector.openmrs.service.TestResourceLoader; -import org.opensrp.domain.Event; -import org.opensrp.domain.Obs; -import org.opensrp.repository.couch.AllEvents; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.test.context.ContextConfiguration; -import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; - -@RunWith(SpringJUnit4ClassRunner.class) -@ContextConfiguration("classpath:test-applicationContext-opensrp-connector.xml") -public class DHIS2AggregateConnectorTest extends TestResourceLoader { - - @Autowired - private DHIS2AggregateConnector dhis2AggregateConnector; - - @Autowired - private AllEvents allEvents; - - @Autowired - private DHIS2AggregateConnector dHIS2AggregateConnector; - - @Autowired - private Dhis2HttpUtils dhis2HttpUtils; - - String orgUnit = "IDc0HEyjhvL"; - - String conceptKey = "concept"; - - String dateKey = "date"; - - String entityType = "child"; - - String eventType = "Birth Registration"; - - String formSubmissionId = "formSubmissionId"; - - String provider = "provider"; - - String locationId = "5bf3b4ca-9482-4e85-ab7a-0c44e4edb329"; - - String place_Birth = "Place_Birth"; - - String birth_Weight = "Birth_Weight"; - - String health_Facility = "Health_Facility"; - - public DHIS2AggregateConnectorTest() throws IOException { - super(); - // TODO Auto-generated constructor stub - } - - @Before - public void setup() throws JSONException, IOException { - allEvents.removeAll(); - testDeleteDHIS2Data(); - } - - public void testDeleteDHIS2Data() throws JSONException, IOException { - delete(orgUnit, "xMlVHstzOgC"); - delete(orgUnit, "yNWOJ0OOOQD"); - delete(orgUnit, "ii7lOGQqEq5"); - delete(orgUnit, "Wtf7iSiQdUJ"); - - delete(orgUnit, "XYqYdPiapTB"); - delete(orgUnit, "ghHOqHNST3Z"); - delete(orgUnit, "jY9SUZVxPHZ"); - delete(orgUnit, "MNe2NbiMPi4"); - - delete(orgUnit, "DF4I78hJCyE"); - delete(orgUnit, "IMh3lVLICJM"); - delete(orgUnit, "belqjUALCbL"); - delete(orgUnit, "dYqIehgysyx"); - delete(orgUnit, "MR1zrXS829u"); - delete(orgUnit, "dxH32jHc21V"); - } - - @Test - public void testGetAggregatedDataCount() throws JSONException, IOException { - Event expectedEvent = new Event("049e6b44-a9b5-4553-b463-004fa6743dc2", eventType, - new DateTime(0l, DateTimeZone.UTC), entityType, provider, locationId, formSubmissionId); - expectedEvent.addIdentifier("BirthRegistrationKey", "BirthRegistrationVlue"); - List firstObservations = new ArrayList<>(); - - firstObservations.add(getObsWithValue(birth_Weight, "4")); - firstObservations.add(getObsWithValue(place_Birth, health_Facility)); - expectedEvent.setObs(firstObservations); - allEvents.add(expectedEvent); - - Event anotherExpectedEvent = new Event("049e6b44-a9b5-4553-b463-004fa6743d34", eventType, new DateTime(0l, - DateTimeZone.UTC), entityType, provider, locationId, formSubmissionId); - anotherExpectedEvent.addIdentifier("vaccineIdentifierKeyTest", "vaccineIdentifierValueTest"); - List secondObservations = new ArrayList<>(); - - secondObservations.add(getObsWithValue(place_Birth, health_Facility)); - - secondObservations.add(getObsWithValue(birth_Weight, "3")); - anotherExpectedEvent.setObs(secondObservations); - - allEvents.add(anotherExpectedEvent); - - Event expectedVaccineEvent = new Event("049e6b4r-a9b5-4553-b463-004fa6743d34", "Vaccination", new DateTime(0l, - DateTimeZone.UTC), entityType, provider, locationId, formSubmissionId); - anotherExpectedEvent.addIdentifier("vaccineIdentifierKey", "vaccineIdentifierValue"); - List vaccineObservations = new ArrayList<>(); - - vaccineObservations.add(getObsWithVaccine("opv_1")); - - vaccineObservations.add(getObsWithVaccine("opv_2")); - - vaccineObservations.add(getObsWithVaccine("bcg")); - - vaccineObservations.add(getObsWithVaccine("pcv_1")); - - vaccineObservations.add(getObsWithVaccine("pcv_2")); - - vaccineObservations.add(getObsWithVaccine("penta_1")); - - vaccineObservations.add(getObsWithVaccine("penta_2")); - - vaccineObservations.add(getObsWithVaccine("rota_1")); - - vaccineObservations.add(getObsWithVaccine("rota_2")); - - expectedVaccineEvent.setObs(vaccineObservations); - - allEvents.add(expectedVaccineEvent); - - JSONObject aggregatedDataSet = null; - - aggregatedDataSet = dHIS2AggregateConnector.getAggregatedDataCount(); - JSONObject response = dHIS2AggregateConnector.aggredateDataSendToDHIS2(aggregatedDataSet); - String expectedImportedCount = "14"; - JSONObject importCount = response.getJSONObject("importCount"); - String actualImportedCount = importCount.getString("imported"); - String expectedStatus = "SUCCESS"; - String actualdStatus = response.getString("status"); - assertEquals(expectedImportedCount, actualImportedCount); - assertEquals(expectedStatus, actualdStatus); - - testDeleteDHIS2Data(); - - } - - @Test(expected = Exception.class) - public void testException() throws JSONException { - JSONObject aggregatedDataSet = null; - dHIS2AggregateConnector.aggredateDataSendToDHIS2(aggregatedDataSet); - } - - public Obs getObsWithValue(String formSubmissionField, String facility) { - Obs obs = new Obs(); - obs.setFieldCode("1572AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"); - obs.setFieldDataType("select one"); - obs.setFieldType(conceptKey); - obs.setParentCode(""); - obs.setFormSubmissionField(formSubmissionField); - List values = new ArrayList(); - values.add("1536AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"); - obs.setValues(values); - List humanReadableValues = new ArrayList(); - humanReadableValues.add(facility); - obs.setHumanReadableValues(humanReadableValues); - return obs; - - } - - public Obs getObsWithVaccine(String vaccine) { - Obs obs = new Obs(); - obs.setFieldCode("1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"); - obs.setFieldDataType(dateKey); - obs.setFieldType(conceptKey); - obs.setParentCode("783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"); - obs.setFormSubmissionField(vaccine); - List obs_values = new ArrayList(); - obs_values.add("2016-12-07"); - obs.setValues(obs_values); - return obs; - - } - - public void delete(String ou, String de) throws JSONException, IOException { - Calendar now = Calendar.getInstance(); - now.add(Calendar.MONTH, -1); - int year = now.get(Calendar.YEAR); - int month = now.get(Calendar.MONTH) + 1; - int length = (int) (Math.log10(month) + 1); - String formatted; - - if (length < 2) { - formatted = String.format("%02d", month); - } else { - formatted = Integer.toString(month); - } - String periodTime = Integer.toString(year) + formatted; - String url = "dataValues?pe=" + periodTime + "&ou=" + ou + "&de=" + de; - dhis2HttpUtils.delete(url, "", ""); - - } - -} diff --git a/opensrp-connector/src/test/java/org/opensrp/connector/dhis2/it/DHIS2SyncerListenerTest.java b/opensrp-connector/src/test/java/org/opensrp/connector/dhis2/it/DHIS2SyncerListenerTest.java deleted file mode 100644 index c5a691b8a9..0000000000 --- a/opensrp-connector/src/test/java/org/opensrp/connector/dhis2/it/DHIS2SyncerListenerTest.java +++ /dev/null @@ -1,129 +0,0 @@ -package org.opensrp.connector.dhis2.it; - -import static junit.framework.Assert.assertEquals; - -import java.io.IOException; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import org.joda.time.DateTime; -import org.joda.time.DateTimeZone; -import org.json.JSONArray; -import org.json.JSONException; -import org.json.JSONObject; -import org.junit.Before; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.opensrp.connector.dhis2.DHIS2SyncerListener; -import org.opensrp.connector.dhis2.Dhis2HttpUtils; -import org.opensrp.connector.openmrs.service.TestResourceLoader; -import org.opensrp.domain.Client; -import org.opensrp.domain.Event; -import org.opensrp.domain.Obs; -import org.opensrp.repository.couch.AllClients; -import org.opensrp.repository.couch.AllEvents; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.test.context.ContextConfiguration; -import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; - -@RunWith(SpringJUnit4ClassRunner.class) -@ContextConfiguration("classpath:test-applicationContext-opensrp-connector.xml") -public class DHIS2SyncerListenerTest extends TestResourceLoader { - - @Autowired - private AllClients allClients; - - @Autowired - private AllEvents allEvents; - - @Autowired - private DHIS2SyncerListener dhis2SyncerListener; - - @Autowired - private Dhis2HttpUtils dhis2HttpUtils; - - @Before - public void setup() { - allClients.removeAll(); - } - - public DHIS2SyncerListenerTest() throws IOException { - super(); - // TODO Auto-generated constructor stub - } - - @Test - public void testPushToDHIS2() throws JSONException { - /** Household ***/ - String baseEntityId = "130"; - Client household = (Client) new Client(baseEntityId).withFirstName("pamoom").withGender("female").withLastName("la") - .withBirthdate(new DateTime(), false).withDateCreated(new DateTime()); - Map householdAttributes = new HashMap<>(); - householdAttributes.put("householdCode", "34Zoomrttt"); - household.setAttributes(householdAttributes); - allClients.add(household); - - Event householdEvent = new Event(baseEntityId, "Household Registration", new DateTime(0l, DateTimeZone.UTC), - "entityType", "provider", "locationId", "formSubmissionId"); - List householdOservations = new ArrayList<>(); - householdOservations.add(getObsWithValue("Date_Of_Reg", "21-09-2017")); - householdEvent.setObs(householdOservations); - allEvents.add(householdEvent); - - JSONObject returns = dhis2SyncerListener.pushToDHIS2(); - JSONObject response = returns.getJSONObject("response"); - String expectedImport = "1"; - String actualImport = response.getString("imported"); - String expectedHttpStatusCode = "200"; - String actualHttpStatusCode = returns.getString("httpStatusCode"); - assertEquals(expectedImport, actualImport); - assertEquals(expectedHttpStatusCode, actualHttpStatusCode); - String trackReference = returns.getString("track"); - - JSONArray importSummariesArray = response.getJSONArray("importSummaries"); - JSONObject importSummariesJsonObject = importSummariesArray.getJSONObject(0); - String refId = importSummariesJsonObject.getString("reference"); - - /*Clening data*/ - deleteEnrollment(refId); - deleteTrackInstances(trackReference); - } - - public Obs getObsWithValue(String fielCode, String value) { - Obs obs = new Obs(); - obs.setFieldCode(fielCode); - obs.setFieldDataType("text"); - obs.setFormSubmissionField(fielCode); - - List values = new ArrayList(); - values.add(value); - obs.setValues(values); - - return obs; - - } - - public Obs getObsWithHumanReadableValue(String fielCode, String value) { - Obs obs = new Obs(); - obs.setFieldCode(fielCode); - obs.setFieldDataType("select one"); - obs.setFormSubmissionField(fielCode); - List humanReadableValues = new ArrayList(); - humanReadableValues.add(value); - obs.setHumanReadableValues(humanReadableValues); - return obs; - - } - - public void deleteEnrollment(String id) { - String url = "enrollments/" + id; - dhis2HttpUtils.delete(url, "", ""); - } - - public void deleteTrackInstances(String id) { - String url = "trackedEntityInstances/" + id; - dhis2HttpUtils.delete(url, "", ""); - } -} diff --git a/opensrp-connector/src/test/java/org/opensrp/connector/it/MultipartHttpUtilTest.java b/opensrp-connector/src/test/java/org/opensrp/connector/it/MultipartHttpUtilTest.java deleted file mode 100644 index fd66578ec7..0000000000 --- a/opensrp-connector/src/test/java/org/opensrp/connector/it/MultipartHttpUtilTest.java +++ /dev/null @@ -1,84 +0,0 @@ -/** - * - */ -package org.opensrp.connector.it; - -import static junit.framework.Assert.assertEquals; - -import java.io.IOException; - -import org.json.JSONException; -import org.json.JSONObject; -import org.junit.Before; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.opensrp.common.util.HttpResponse; -import org.opensrp.connector.MultipartHttpUtil; -import org.opensrp.connector.openmrs.service.it.OpenmrsApiService; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.test.context.ContextConfiguration; -import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; - -/** - * @author proshanto - */ - -@RunWith(SpringJUnit4ClassRunner.class) -@ContextConfiguration("classpath:test-applicationContext-opensrp-connector.xml") -public class MultipartHttpUtilTest extends OpenmrsApiService { - - final String PERSON_ATTRIBUTE_TYPE = "ws/rest/v1/personattributetype"; - - final String OPENMRS_URL = openmrsOpenmrsUrl; - - @Autowired - private MultipartHttpUtil multipartHttpUtil; - - public MultipartHttpUtilTest() throws IOException { - super(); - // TODO Auto-generated constructor stub - } - - @Before - public void setup() { - - } - - @Test - public void testPostAndGet() throws JSONException { - String attributeName = "multipartAttribute"; - JSONObject personAttributeType = new JSONObject(); - personAttributeType.put(description, "Description"); - personAttributeType.put(nameKey, attributeName); - personAttributeType.put(formatKey, typeString); - String responseFromPostRequest = MultipartHttpUtil.post( - MultipartHttpUtil.removeEndingSlash(OPENMRS_URL) + "/" + PERSON_ATTRIBUTE_TYPE, "", - personAttributeType.toString(), openmrsUsername, openmrsPassword).body(); - - JSONObject personAttributeTypeCreatedResponse = new JSONObject(responseFromPostRequest); - String uuid = personAttributeTypeCreatedResponse.getString(uuidKey); - assertEquals(attributeName, personAttributeTypeCreatedResponse.getString(displayKey)); - - HttpResponse responseFromGetRequest = MultipartHttpUtil.get(MultipartHttpUtil.removeEndingSlash(OPENMRS_URL) + "/" - + PERSON_ATTRIBUTE_TYPE + "/" + uuid + "?v=full", "", openmrsUsername, openmrsPassword); - deletePersonAttributeType(personAttributeTypeCreatedResponse.getString(uuidKey)); - - JSONObject personAttributeTypeGetResponse = new JSONObject(responseFromGetRequest.body()); - assertEquals(attributeName, personAttributeTypeGetResponse.getString(displayKey)); - - } - - @Test(expected = Exception.class) - public void testIOExceptionPostAndGet() throws JSONException { - String attributeName = "ExceptionmultipartAttribute"; - JSONObject personAttributeType = new JSONObject(); - personAttributeType.put(description, "Description text"); - personAttributeType.put(nameKey, attributeName); - personAttributeType.put(formatKey, typeString); - MultipartHttpUtil.post(MultipartHttpUtil.removeEndingSlash(OPENMRS_URL) + "/" + PERSON_ATTRIBUTE_TYPE, "", - personAttributeType.toString(), openmrsUsername, openmrsPassword).body(); - MultipartHttpUtil.post(MultipartHttpUtil.removeEndingSlash(OPENMRS_URL) + "/" + PERSON_ATTRIBUTE_TYPE, "", - personAttributeType.toString(), openmrsUsername, openmrsPassword).body(); - - } -} diff --git a/opensrp-connector/src/test/java/org/opensrp/connector/openmrs/AllMarkerIntegrationTest.java b/opensrp-connector/src/test/java/org/opensrp/connector/openmrs/AllMarkerIntegrationTest.java deleted file mode 100644 index 93c1ca1463..0000000000 --- a/opensrp-connector/src/test/java/org/opensrp/connector/openmrs/AllMarkerIntegrationTest.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.opensrp.connector.openmrs; - -public class AllMarkerIntegrationTest { - -} diff --git a/opensrp-connector/src/test/java/org/opensrp/connector/openmrs/AtomFeedTest.java b/opensrp-connector/src/test/java/org/opensrp/connector/openmrs/AtomFeedTest.java deleted file mode 100644 index 34d42b9e0a..0000000000 --- a/opensrp-connector/src/test/java/org/opensrp/connector/openmrs/AtomFeedTest.java +++ /dev/null @@ -1,59 +0,0 @@ -package org.opensrp.connector.openmrs; - -import static org.mockito.Matchers.any; -import static org.mockito.Mockito.when; - -import java.io.IOException; -import java.net.URI; -import java.net.URISyntaxException; -import java.util.Map; - -import org.ict4h.atomfeed.client.AtomFeedProperties; -import org.ict4h.atomfeed.client.repository.datasource.WebClient; -import org.junit.Before; -import org.junit.Test; -import org.mockito.Mock; -import org.mockito.Mockito; -import org.mockito.MockitoAnnotations; -import org.opensrp.connector.atomfeed.AllFailedEventsInMemoryImpl; -import org.opensrp.connector.atomfeed.AllMarkersInMemoryImpl; -import org.opensrp.connector.openmrs.service.TestResourceLoader; -import org.opensrp.service.ClientService; -import org.opensrp.service.EventService; - -public class AtomFeedTest extends TestResourceLoader { - - public AtomFeedTest() throws IOException { - super(); - } - - @Mock - ClientService cs; - - @Mock - EventService es; - - @Before - public void setup() { - MockitoAnnotations.initMocks(this); - } - - @Test - public void shouldReadEventsCreatedEvents() throws URISyntaxException { - WebClient wc = Mockito.mock(WebClient.class); - Map m = any(); - when(wc.fetch(any(URI.class), any(AtomFeedProperties.class), m)).thenReturn(" Patient AOP OpenMRS bec795b1-3d17-451d-b43e-a094019f6984+1 OpenMRS Feed Publisher 2016-03-09T14:47:58Z Patient tag:atomfeed.ict4h.org:f376d71e-6ddd-465e-b224-bbe624cbf97f 2016-03-09T14:47:58Z 2016-03-09T14:47:58Z "); - - PatientAtomfeed paf = new PatientAtomfeed(new AllMarkersInMemoryImpl(), new AllFailedEventsInMemoryImpl(), openmrsOpenmrsUrl, patientService, cs, es); - - if(pushToOpenmrsForTest){ - paf.processEvents(); - } - - EncounterAtomfeed eaf = new EncounterAtomfeed(new AllMarkersInMemoryImpl(), new AllFailedEventsInMemoryImpl(), - openmrsOpenmrsUrl, encounterService, es); - if (pushToOpenmrsForTest) { - eaf.processEvents(); - } - } -} diff --git a/opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/EncounterTest.java b/opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/EncounterTest.java deleted file mode 100644 index e8fffc7b28..0000000000 --- a/opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/EncounterTest.java +++ /dev/null @@ -1,518 +0,0 @@ - -package org.opensrp.connector.openmrs.service; - -import static org.hamcrest.Matchers.equalTo; -import static org.hamcrest.Matchers.hasItems; -import static org.hamcrest.Matchers.startsWith; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertThat; -import static org.junit.Assert.assertTrue; - -import java.io.IOException; -import java.text.ParseException; -import java.text.SimpleDateFormat; -import java.util.Map; - -import org.hamcrest.Matchers; -import org.joda.time.DateTime; -import org.json.JSONException; -import org.json.JSONObject; -import org.junit.Before; -import org.junit.Test; -import org.opensrp.connector.openmrs.constants.OpenmrsHouseHold; -import org.opensrp.domain.Client; -import org.opensrp.domain.Event; -import org.opensrp.domain.Obs; -import org.opensrp.form.domain.FormSubmission; -import org.opensrp.form.service.FormAttributeParser; -import org.opensrp.service.formSubmission.FormEntityConverter; - -import com.google.gson.JsonIOException; - -public class EncounterTest extends TestResourceLoader { - - public EncounterTest() throws IOException { - super(); - } - - EncounterService s; - - FormEntityConverter oc; - - PatientService ps; - - OpenmrsUserService us; - - HouseholdService hhs; - - SimpleDateFormat sd = new SimpleDateFormat("yyyy-MM-dd"); - - @Before - public void setup() throws IOException { - ps = new PatientService(openmrsOpenmrsUrl, openmrsUsername, openmrsPassword); - us = new OpenmrsUserService(openmrsOpenmrsUrl, openmrsUsername, openmrsPassword); - s = new EncounterService(openmrsOpenmrsUrl, openmrsUsername, openmrsPassword); - s.setPatientService(ps); - s.setUserService(us); - hhs = new HouseholdService(openmrsOpenmrsUrl, openmrsUsername, openmrsPassword); - hhs.setPatientService(ps); - hhs.setEncounterService(s); - FormAttributeParser fam = new FormAttributeParser(formDirPath); - oc = new FormEntityConverter(fam); - } - - @Test - public void testEncounter() throws JSONException, ParseException, IOException { - FormSubmission fs = getFormSubmissionFor("basic_reg"); - - Client c = oc.getClientFromFormSubmission(fs); - assertEquals(c.getBaseEntityId(), "b716d938-1aea-40ae-a081-9ddddddcccc9"); - assertEquals(c.getFirstName(), "test woman_name"); - assertEquals(c.getGender(), "FEMALE"); - assertEquals(c.getAddresses().get(0).getAddressType(), "birthplace"); - assertEquals(c.getAddresses().get(1).getAddressType(), "usual_residence"); - assertEquals(c.getAddresses().get(2).getAddressType(), "previous_residence"); - assertEquals(c.getAddresses().get(3).getAddressType(), "deathplace"); - assertTrue(c.getAttributes().isEmpty()); - - Event e = oc.getEventFromFormSubmission(fs); - assertEquals(e.getEventType(), "patient_register"); - assertEquals(e.getEventDate(), new DateTime(new DateTime("2015-02-01"))); - assertEquals(e.getLocationId(), "unknown location"); - - if (pushToOpenmrsForTest) { - JSONObject en = s.createEncounter(e); - System.out.println(en); - } - } - - @Test - public void testGroupedEncounter() throws JSONException, ParseException, IOException { - FormSubmission fs = getFormSubmissionFor("repeatform"); - - Client c = oc.getClientFromFormSubmission(fs); - //TODO - Event e = oc.getEventFromFormSubmission(fs); - //TODO - /*if(true){ - JSONObject p = ps.getPatientByIdentifier(c.getBaseEntityId()); - if(p == null){ - p = ps.createPatient(c); - } - JSONObject en = s.createEncounter(e); - System.out.println(en); - }*/ - } - - @Test - public void shouldHandleSubform() throws IOException, ParseException, JSONException { - FormSubmission fs = getFormSubmissionFor("new_household_registration", 1); - - Client c = oc.getClientFromFormSubmission(fs); - assertEquals(c.getBaseEntityId(), "a3f2abf4-2699-4761-819a-cea739224164"); - assertEquals(c.getFirstName(), "test"); - assertEquals(c.getGender(), "male"); - assertEquals(c.getBirthdate(), new DateTime("1900-01-01")); - assertEquals(c.getAddresses().get(0).getAddressField("landmark"), "nothing"); - assertEquals(c.getAddresses().get(0).getAddressType(), "usual_residence"); - assertEquals(c.getIdentifiers().get("GOB HHID"), "1234"); - assertEquals(c.getIdentifiers().get("JiVitA HHID"), "1234"); - - Event e = oc.getEventFromFormSubmission(fs); - assertEquals(e.getBaseEntityId(), "a3f2abf4-2699-4761-819a-cea739224164"); - assertEquals(e.getEventDate(), new DateTime(new DateTime("2015-05-07"))); - assertEquals(e.getLocationId(), "KUPTALA"); - assertEquals(e.getFormSubmissionId(), "88c0e824-10b4-44c2-9429-754b8d823776"); - - assertEquals(e.getObs().get(0).getFieldCode(), "160753AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"); - assertEquals(e.getObs().get(0).getFormSubmissionField(), "FWNHREGDATE"); - assertEquals(e.getObs().get(0).getValue(), "2015-05-07"); - - assertEquals(e.getObs().get(1).getFieldCode(), "5611AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"); - assertEquals(e.getObs().get(1).getFormSubmissionField(), "FWNHHMBRNUM"); - assertEquals(e.getObs().get(1).getValue(), "2"); - - Map> dc = oc.getDependentClientsFromFormSubmission(fs); - for (String id : dc.keySet()) { - Client cl = (Client) dc.get(id).get("client"); - Event ev = (Event) dc.get(id).get("event"); - assertEquals(cl.getBaseEntityId(), id); - assertEquals(ev.getBaseEntityId(), id); - } - } - - @Test - public void shouldHandleEmptyRepeatGroup() throws IOException, ParseException, JSONException { - FormSubmission fs = getFormSubmissionFor("new_household_registration", 5); - - Client c = oc.getClientFromFormSubmission(fs); - assertEquals(c.getBaseEntityId(), "a3f2abf4-2699-4761-819a-cea739224164"); - assertEquals(c.getFirstName(), "test"); - assertEquals(c.getGender(), "male"); - assertEquals(c.getBirthdate(), new DateTime("1900-01-01")); - assertEquals(c.getAddresses().get(0).getAddressField("landmark"), "nothing"); - assertEquals(c.getAddresses().get(0).getAddressType(), "usual_residence"); - assertEquals(c.getIdentifiers().get("GOB HHID"), "1234"); - assertEquals(c.getIdentifiers().get("JiVitA HHID"), "1234"); - - Event e = oc.getEventFromFormSubmission(fs); - assertEquals(e.getBaseEntityId(), "a3f2abf4-2699-4761-819a-cea739224164"); - assertEquals(e.getEventDate(), new DateTime(new DateTime("2015-05-07"))); - assertEquals(e.getLocationId(), "KUPTALA"); - assertEquals(e.getFormSubmissionId(), "88c0e824-10b4-44c2-9429-754b8d823776"); - - assertEquals(e.getObs().get(0).getFieldCode(), "160753AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"); - assertEquals(e.getObs().get(0).getFormSubmissionField(), "FWNHREGDATE"); - assertEquals(e.getObs().get(0).getValue(), "2015-05-07"); - - assertEquals(e.getObs().get(1).getFieldCode(), "5611AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"); - assertEquals(e.getObs().get(1).getFormSubmissionField(), "FWNHHMBRNUM"); - assertEquals(e.getObs().get(1).getValue(), "2"); - - Map> dc = oc.getDependentClientsFromFormSubmission(fs); - assertTrue(dc.isEmpty()); - } - - @Test - public void shouldGetBirthdateNotEstimatedForMainAndApproxForRepeatGroup() - throws IOException, ParseException, JSONException { - FormSubmission fs = getFormSubmissionFor("new_household_registration", 7); - - Client c = oc.getClientFromFormSubmission(fs); - assertEquals(c.getBirthdate(), new DateTime("1900-01-01")); - assertTrue(c.getBirthdateApprox()); - - Map> dc = oc.getDependentClientsFromFormSubmission(fs); - for (String id : dc.keySet()) { - Client cl = (Client) dc.get(id).get("client"); - assertEquals(cl.getBirthdate(), new DateTime("2000-05-07")); - assertFalse(cl.getBirthdateApprox()); - } - } - - @Test - public void shouldGetBirthdateNotEstimatedForMainAndRepeatGroupIfNotSpecified() - throws IOException, ParseException, JSONException { - FormSubmission fs = getFormSubmissionFor("new_household_registration", 8); - - Client c = oc.getClientFromFormSubmission(fs); - assertEquals(c.getBirthdate(), new DateTime("1900-01-01")); - assertFalse(c.getBirthdateApprox()); - - Map> dc = oc.getDependentClientsFromFormSubmission(fs); - for (String id : dc.keySet()) { - Client cl = (Client) dc.get(id).get("client"); - assertEquals(cl.getBirthdate(), new DateTime("2000-05-07")); - assertFalse(cl.getBirthdateApprox()); - } - } - - @SuppressWarnings("unchecked") - @Test - public void shouldGetDataSpecifiedInGroupInsideSubform() throws IOException, ParseException, JSONException { - FormSubmission fs = getFormSubmissionFor("new_household_registration_with_grouped_subform_data", 1); - - Client c = oc.getClientFromFormSubmission(fs); - assertEquals(c.getBirthdate(), new DateTime("1900-01-01")); - assertFalse(c.getBirthdateApprox()); - assertThat(c.getAttributes(), Matchers. hasEntry(equalTo("GoB_HHID"), equalTo((Object) "2322"))); - assertThat(c.getAttributes(), Matchers. hasEntry(equalTo("JiVitA_HHID"), equalTo((Object) "9889"))); - - Event e = oc.getEventFromFormSubmission(fs); - assertEquals(e.getBaseEntityId(), c.getBaseEntityId()); - assertEquals(e.getEventType(), "New Household Registration"); - assertEquals(e.getEventDate(), new DateTime(new SimpleDateFormat("yyyy-M-dd").parse("2015-10-11"))); - assertEquals(e.getLocationId(), "2fc43738-ace5-g961-8e8f-ab7dg0e5bc63"); - - assertThat(e.getObs(), - Matchers. hasItem(Matchers. allOf( - Matchers. hasProperty("fieldCode", equalTo("5611AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA")), - Matchers. hasProperty("value", equalTo("23")), - Matchers. hasProperty("formSubmissionField", equalTo("FWNHHMBRNUM"))))); - - Map> dc = oc.getDependentClientsFromFormSubmission(fs); - for (String id : dc.keySet()) { - Client cl = (Client) dc.get(id).get("client"); - assertEquals(cl.getBirthdate(), new DateTime("1988-10-08")); - assertFalse(cl.getBirthdateApprox()); - assertEquals(cl.getFirstName(), "jackfruit"); - assertEquals(cl.getAddresses().get(0).getCountry(), "Bangladesh"); - assertEquals(cl.getAddresses().get(0).getAddressType(), "usual_residence"); - assertEquals(cl.getAddresses().get(0).getStateProvince(), "RANGPUR"); - assertThat(cl.getIdentifiers(), Matchers. hasEntry(equalTo("NID"), equalTo("7675788777775"))); - assertThat(cl.getIdentifiers(), - Matchers. hasEntry(equalTo("Birth Registration ID"), equalTo("98899998888888888"))); - assertThat(cl.getAttributes(), - Matchers. hasEntry(equalTo("GoB_HHID"), equalTo((Object) "2322"))); - assertThat(cl.getAttributes(), - Matchers. hasEntry(equalTo("JiVitA_HHID"), equalTo((Object) "9889"))); - - Event ev = (Event) dc.get(id).get("event"); - assertEquals(ev.getBaseEntityId(), cl.getBaseEntityId()); - assertEquals(ev.getEventType(), "New Woman Registration"); - assertEquals(ev.getEventDate(), new DateTime(new SimpleDateFormat("yyyy-M-dd").parse("2015-10-11"))); - assertEquals(ev.getLocationId(), "2fc43738-ace5-g961-8e8f-ab7dg0e5bc63"); - - assertThat(ev.getObs(), - Matchers. hasItem(Matchers. allOf( - Matchers. hasProperty("fieldCode", equalTo("161135AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA")), - Matchers. hasProperty("value", equalTo("zoom")), - Matchers. hasProperty("formSubmissionField", equalTo("FWHUSNAME"))))); - assertThat(ev.getObs(), - Matchers. hasItem(Matchers. allOf( - Matchers. hasProperty("fieldCode", equalTo("163087AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA")), - Matchers. hasProperty("values", - hasItems(equalTo("163084AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"), - equalTo("163083AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"))), - Matchers. hasProperty("formSubmissionField", equalTo("FWWOMANYID"))))); - } - - if (pushToOpenmrsForTest) { - OpenmrsHouseHold hh = new OpenmrsHouseHold(c, e); - for (Map cm : dc.values()) { - hh.addHHMember((Client) cm.get("client"), (Event) cm.get("event")); - } - - hhs.saveHH(hh, true); - } - } - - @SuppressWarnings("unchecked") - @Test - public void shouldGetDataSpecifiedInMultiselect() throws IOException, ParseException, JSONException { - FormSubmission fs = getFormSubmissionFor("new_household_registration_with_grouped_subform_data", 1); - - Client c = oc.getClientFromFormSubmission(fs); - Event e = oc.getEventFromFormSubmission(fs); - - Map> dc = oc.getDependentClientsFromFormSubmission(fs); - for (String id : dc.keySet()) { - Client cl = (Client) dc.get(id).get("client"); - Event ev = (Event) dc.get(id).get("event"); - - assertThat(ev.getObs(), - Matchers. hasItem(Matchers. allOf( - Matchers. hasProperty("fieldCode", equalTo("163087AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA")), - Matchers. hasProperty("values", - hasItems(equalTo("163084AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"), - equalTo("163083AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"))), - Matchers. hasProperty("formSubmissionField", equalTo("FWWOMANYID")), - Matchers. hasProperty("fieldType", equalTo("concept")), - Matchers. hasProperty("fieldDataType", startsWith("select all"))))); - } - } - - @Test - public void parentChildObsTest() throws JsonIOException, IOException, JSONException { - FormSubmission fs = getFormSubmissionFor("psrf_form"); - - Client c = oc.getClientFromFormSubmission(fs); - Event e = (Event) oc.getEventFromFormSubmission(fs); - - if (pushToOpenmrsForTest) { - s.createEncounter(e); - } - - } - - @SuppressWarnings("unchecked") - @Test - public void shouldHandleTTEnrollmentform() throws IOException, ParseException, JSONException { - FormSubmission fs = getFormSubmissionFor("woman_enrollment"); - - Client c = oc.getClientFromFormSubmission(fs); - assertEquals(c.getBaseEntityId(), "69995674-bb29-4985-967a-fec8d372a475"); - assertEquals(c.getFirstName(), "barsaat"); - assertEquals(c.getGender(), "female"); - assertEquals(c.getBirthdate(), new DateTime("1979-04-05")); - assertEquals(c.getAddresses().get(0).getAddressField("landmark"), "nishaani"); - assertEquals(c.getAddresses().get(0).getStateProvince(), "sindh"); - assertEquals(c.getAddresses().get(0).getCityVillage(), "karachi"); - assertEquals(c.getAddresses().get(0).getTown(), "liaquatabad"); - assertEquals(c.getAddresses().get(0).getSubTown(), "sharifabad"); - assertEquals(c.getAddresses().get(0).getAddressField("house"), "6h"); - assertEquals(c.getIdentifiers().get("Program Client ID"), "14608844"); - assertEquals(c.getAttributes().get("EPI Card Number"), "20160003"); - - Event e = oc.getEventFromFormSubmission(fs); - assertEquals(e.getBaseEntityId(), "69995674-bb29-4985-967a-fec8d372a475"); - assertEquals(e.getEventDate(), new DateTime(new DateTime("2016-04-05"))); - assertEquals(e.getLocationId(), "Homeopathic Center"); - assertEquals(e.getFormSubmissionId(), "de408c93-2ec5-40bc-a957-eaf375583e27"); - assertEquals(e.getEntityType(), "pkwoman"); - assertEquals(e.getEventType(), "Woman TT enrollment"); - assertEquals(e.getProviderId(), "demotest"); - - assertThat(e.getObs(), - Matchers. hasItem(Matchers. allOf( - Matchers. hasProperty("fieldCode", equalTo("154384AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA")), - Matchers. hasProperty("values", hasItems(equalTo("37"))), - Matchers. hasProperty("formSubmissionField", equalTo("calc_age_confirm")), - Matchers. hasProperty("fieldType", equalTo("concept")), - Matchers. hasProperty("fieldDataType", startsWith("calculate")), - Matchers. hasProperty("effectiveDatetime", equalTo(e.getEventDate()))))); - - assertThat(e.getObs(), - Matchers. hasItem(Matchers. allOf( - Matchers. hasProperty("fieldCode", equalTo("163137AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA")), - Matchers. hasProperty("values", hasItems(equalTo("2016-04-05 16:21:32"))), - Matchers. hasProperty("formSubmissionField", equalTo("start")), - Matchers. hasProperty("fieldType", equalTo("concept")), - Matchers. hasProperty("fieldDataType", startsWith("start")), - Matchers. hasProperty("effectiveDatetime", equalTo(e.getEventDate()))))); - - assertThat(e.getObs(), - Matchers. hasItem(Matchers. allOf( - Matchers. hasProperty("fieldCode", equalTo("163138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA")), - Matchers. hasProperty("values", hasItems(equalTo("2016-04-05 16:23:59"))), - Matchers. hasProperty("formSubmissionField", equalTo("end")), - Matchers. hasProperty("fieldType", equalTo("concept")), - Matchers. hasProperty("fieldDataType", startsWith("end")), - Matchers. hasProperty("effectiveDatetime", equalTo(e.getEventDate()))))); - - } - - @SuppressWarnings("unchecked") - @Test - public void shouldHandleChildVaccinationEnrollmentform() throws IOException, ParseException, JSONException { - FormSubmission fs = getFormSubmissionFor("child_enrollment"); - - Client c = oc.getClientFromFormSubmission(fs); - assertEquals(c.getBaseEntityId(), "ad653225-6bed-48d3-8e5d-741d3d50d61a"); - assertEquals(c.getFirstName(), "aase"); - assertEquals(c.getLastName(), "zeest"); - assertEquals(c.getGender(), "male"); - assertEquals(c.getBirthdate(), new DateTime("2016-01-03")); - assertEquals(c.getAddresses().get(0).getAddressField("landmark"), "nishaani"); - assertEquals(c.getAddresses().get(0).getStateProvince(), "sindh"); - assertEquals(c.getAddresses().get(0).getCityVillage(), "karachi"); - assertEquals(c.getAddresses().get(0).getTown(), "liaquatabad"); - assertEquals(c.getAddresses().get(0).getSubTown(), "mujahid_colony"); - assertEquals(c.getAddresses().get(0).getAddressField("house"), "hi65"); - assertEquals(c.getIdentifiers().get("Program Client ID"), "98120722"); - assertEquals(c.getAttributes().get("EPI Card Number"), "20160009"); - - Event e = oc.getEventFromFormSubmission(fs); - assertEquals(e.getBaseEntityId(), "ad653225-6bed-48d3-8e5d-741d3d50d61a"); - assertEquals(e.getEventDate(), new DateTime(new DateTime("2016-03-05"))); - assertEquals(e.getLocationId(), "Homeopathic Center"); - assertEquals(e.getFormSubmissionId(), "8524f6b8-441a-4769-aa74-03e1dde0901a"); - assertEquals(e.getEntityType(), "pkchild"); - assertEquals(e.getEventType(), "Child Vaccination Enrollment"); - assertEquals(e.getProviderId(), "demotest"); - - assertThat(e.getObs(), - Matchers. hasItem(Matchers. allOf( - Matchers. hasProperty("fieldCode", equalTo("154384AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA")), - Matchers. hasProperty("values", hasItems(equalTo("2"))), - Matchers. hasProperty("formSubmissionField", equalTo("calc_age_confirm")), - Matchers. hasProperty("fieldType", equalTo("concept")), - Matchers. hasProperty("fieldDataType", startsWith("calculate")), - Matchers. hasProperty("effectiveDatetime", equalTo(e.getEventDate()))))); - - assertThat(e.getObs(), - Matchers. hasItem(Matchers. allOf( - Matchers. hasProperty("fieldCode", equalTo("163137AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA")), - Matchers. hasProperty("values", hasItems(equalTo("2016-03-05 23:01:13"))), - Matchers. hasProperty("formSubmissionField", equalTo("start")), - Matchers. hasProperty("fieldType", equalTo("concept")), - Matchers. hasProperty("fieldDataType", startsWith("start")), - Matchers. hasProperty("effectiveDatetime", equalTo(e.getEventDate()))))); - - assertThat(e.getObs(), - Matchers. hasItem(Matchers. allOf( - Matchers. hasProperty("fieldCode", equalTo("163138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA")), - Matchers. hasProperty("values", hasItems(equalTo("2016-03-05 23:03:51"))), - Matchers. hasProperty("formSubmissionField", equalTo("end")), - Matchers. hasProperty("fieldType", equalTo("concept")), - Matchers. hasProperty("fieldDataType", startsWith("end")), - Matchers. hasProperty("effectiveDatetime", equalTo(e.getEventDate()))))); - - } - - /*@Test - public void testUpdateEncounter() throws JSONException { - // mock call to get obs uuids for encounter - us = mock(OpenmrsUserService.class); - ps = mock(PatientService.class); - - encounterService.setUserService(us); - encounterService.setPatientService(ps); - - String username = "DLucia"; - JSONObject providerDLucia = new JSONObject(); - providerDLucia.put("uuid", "13daa865-9df7-4062-8b32-9b0b42b27d41"); - JSONObject clientPatient = new JSONObject(); - clientPatient.put("uuid", "fbb1ea28-2ea2-4bcb-bbc5-948f5699f688"); - - when(us.getPersonByUser(username)).thenReturn(providerDLucia); - when(ps.getPatientByIdentifier(anyString())).thenReturn(clientPatient); - - // create a client - Client client = new Client("fbb1ea28-2ea2-4bcb-bbc5-948f5699f688"); - - // create test event encounter with encounter uuid - Obs startObs = new Obs("concept", "start", "163137AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "", "2017-03-20 16:29:16", "", "start"); - Obs endObs = new Obs("concept", "end", "163138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "", "2017-03-20 16:38:17", "", "end"); - Obs deviceObs = new Obs("concept", "deviceid", "163149AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "", "enketo.ona.io:Z1Sr2fifsKBExXgX", "", "deviceid"); - - String vaccine = "opv"; - String date = "2017-03-21"; - String fieldType = "concept"; - String dateFieldDataType = "date"; - String calculateFieldDataType = "calculate"; - String dateFieldCode = "1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"; - String calculateFieldCode = "1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"; - String parentCode = "783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"; - String sequence = "2"; - String formSubmissionField1 = vaccine + "_" + sequence; - String formSubmissionField2 = vaccine + "_" + sequence + "_dose"; - List values1 = new ArrayList(); - values1.add(date); - List values2 = new ArrayList(); - values2.add(sequence); - - Obs bcgDateObs = new Obs(fieldType, dateFieldDataType, dateFieldCode, parentCode, values1, null, formSubmissionField1); - Obs bcgCalculateObs = new Obs(fieldType, calculateFieldDataType, calculateFieldCode, parentCode, values2, null, formSubmissionField2); - - DateTime eventDate = DateTimeFormat.forPattern("yyyy-MM-dd").parseDateTime(date); - - Event event = new Event(client.getBaseEntityId(), - "Vaccination", - eventDate, - "vaccination", - "DLucia", - "5bf3b4ca-9482-4e85-ab7a-0c44e4edb329", - "acb135c3-b501-4c12-9beb-d13b8b11deeb"); - event.addObs(startObs); - event.addObs(endObs); - event.addObs(deviceObs); - event.addObs(bcgDateObs); - event.addObs(bcgCalculateObs); - event.addIdentifier(EncounterService.OPENMRS_UUID_IDENTIFIER_TYPE, "ff00a625-5309-4c12-a2cb-38e4985d9a94"); - - JSONObject updatedEncounter = encounterService.buildUpdateEncounter(event); - - // check that all obs have the expected uuid - System.out.println("[updatedEncounter]" + updatedEncounter); - JSONArray obsArray = updatedEncounter.getJSONArray("obs"); - - assertEquals(obsArray.length(), 4); - - for(int i = 0; i < obsArray.length(); i++) { - JSONObject obs = obsArray.getJSONObject(i); - assertNotEquals(obs.get("uuid"), ""); - - if(obs.has("groupMembers")) { - JSONArray groupMembers = obs.getJSONArray("groupMembers"); - for(int k = 0; k < groupMembers.length(); k++) { - assertNotEquals(obs.get("uuid"), ""); - } - } - } - - encounterService.updateEncounter(event); - - }*/ -} diff --git a/opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/HouseHoldTest.java b/opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/HouseHoldTest.java deleted file mode 100644 index 50fc9a3c67..0000000000 --- a/opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/HouseHoldTest.java +++ /dev/null @@ -1,163 +0,0 @@ - -package org.opensrp.connector.openmrs.service; - -import static org.hamcrest.Matchers.equalTo; -import static org.hamcrest.Matchers.equalToIgnoringCase; -import static org.hamcrest.Matchers.hasProperty; -import static org.hamcrest.Matchers.isOneOf; -import static org.hamcrest.Matchers.notNullValue; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertNotNull; -import static org.junit.Assert.assertThat; -import static org.junit.Assert.assertTrue; - -import java.io.IOException; -import java.text.ParseException; -import java.util.HashMap; -import java.util.Map; - -import org.hamcrest.Matchers; -import org.json.JSONException; -import org.junit.Before; -import org.junit.Test; -import org.junit.Ignore; -import org.opensrp.domain.Client; -import org.opensrp.domain.Event; -import org.opensrp.connector.openmrs.constants.OpenmrsHouseHold; -import org.opensrp.form.domain.FormSubmission; -import org.opensrp.form.service.FormAttributeParser; -import org.opensrp.service.formSubmission.FormEntityConverter; - -import com.google.gson.JsonIOException; -import com.google.gson.JsonSyntaxException; - -public class HouseHoldTest extends TestResourceLoader{ - public HouseHoldTest() throws IOException { - super(); - } - - EncounterService es; - FormEntityConverter oc; - PatientService ps; - OpenmrsUserService us; - HouseholdService hhs; - - Map datamap = new HashMap(){ - private static final long serialVersionUID = 3137471662816047127L; - { - put(1, new String[]{"a3f2abf4-2699-4761-819a-cea739224164", "test"}); - put(2, new String[]{"0aac6d81-b51f-4096-b354-5a5786e406c8", "karim mia"}); - put(3, new String[]{"baf59aa4-64e9-46fc-99e6-8cd8f01618ff", "hasan ferox"}); - put(4, new String[]{"f92ee1b5-c3ce-42fb-bbc8-e01f474acc5a", "jashim mia"}); - }}; - - Map childdatamap = new HashMap(){ - private static final long serialVersionUID = 3137471662816047127L; - { - put(1, new String[]{"babcd9d2-b3e9-4f6d-8a06-2df8f5fbf01f", "74eebb60-a1b9-4691-81a4-5c04ecce7ae9"}); - put(2, new String[]{"b19db74f-6e96-4652-a765-5078beb12434"}); - put(3, new String[]{"409b44c4-262a-40b8-ad7d-748c480c7c13"}); - put(4, new String[]{"0036b7ca-36ec-4242-9885-a0a03a666cda"}); - }}; - - private String hhRegistrationformName = "new_household_registration"; - - @Before - public void setup() throws IOException{ - ps = new PatientService(openmrsOpenmrsUrl, openmrsUsername, openmrsPassword); - us = new OpenmrsUserService(openmrsOpenmrsUrl, openmrsUsername, openmrsPassword); - es = new EncounterService(openmrsOpenmrsUrl, openmrsUsername, openmrsPassword); - es.setPatientService(ps); - es.setUserService(us); - hhs = new HouseholdService(openmrsOpenmrsUrl, openmrsUsername, openmrsPassword); - hhs.setPatientService(ps); - hhs.setEncounterService(es); - FormAttributeParser fam = new FormAttributeParser(formDirPath); - oc = new FormEntityConverter(fam); - } - - @Ignore @Test - public void shouldGetHHHeadAsClientAndEventFromHHRegistationForm() throws JsonSyntaxException, JsonIOException, IOException, ParseException { - for (int i = 1; i <= 4; i++) { - FormSubmission fs = getFormSubmissionFor(hhRegistrationformName, i); - Client hhhead = oc.getClientFromFormSubmission(fs); - testClient(hhhead, datamap.get(i)[0], datamap.get(i)[1]); - - Event e = oc.getEventFromFormSubmission(fs); - - assertNotNull(e.getObs()); - assertFalse(e.getObs().isEmpty()); - assertEquals(2, e.getObs().size()); - - Map> dep = oc.getDependentClientsFromFormSubmission(fs); - - assertNotNull(dep); - assertFalse(dep.isEmpty()); - assertThat(dep, Matchers.>hasKey(isOneOf(childdatamap.get(i)))); - - for (Map cm : dep.values()) { - assertThat(cm, Matchers.hasKey(equalTo("client"))); - assertThat(cm, Matchers.hasKey(equalTo("event"))); - - testClient((Client) cm.get("client"), null, null); - - assertNotNull(cm.get("event")); - assertTrue(cm.get("event") instanceof Event); - - Event depe = (Event)cm.get("event"); - assertFalse(depe.getObs().isEmpty()); - assertEquals(1, depe.getObs().size()); - } - } - } - - @Test - public void shouldTestHHRegistrationIntegration() throws JsonSyntaxException, JsonIOException, IOException, ParseException, JSONException { - for (int i = 1; i <= 4; i++) { - FormSubmission fs = getFormSubmissionFor(hhRegistrationformName, i); - Client hhhClient = oc.getClientFromFormSubmission(fs); - - Event hhhEvent = oc.getEventFromFormSubmission(fs); - - OpenmrsHouseHold hh = new OpenmrsHouseHold(hhhClient, hhhEvent); - - Map> dep = oc.getDependentClientsFromFormSubmission(fs); - - for (Map cm : dep.values()) { - hh.addHHMember((Client)cm.get("client"), (Event)cm.get("event")); - } - - assertEquals(hh.getHouseholdHead().getClient().getBaseEntityId(), datamap.get(i)[0]); - } - } - - private void testClient(Client client, String baseEntityId, String firstName) { - assertNotNull(client); - assertNotNull(client.getBaseEntityId()); - assertNotNull(client.getId()); - assertThat(client, hasProperty("firstName", notNullValue())); - assertThat(client, hasProperty("gender", notNullValue())); - assertThat(client, hasProperty("birthdate", notNullValue())); - assertNotNull(client.getIdentifiers()); - assertFalse(client.getIdentifiers().isEmpty()); - - - if(baseEntityId != null){ - assertNotNull(client.getAddresses()); - assertFalse(client.getAddresses().isEmpty()); - assertTrue(client.getAddresses().get(0).getAddressType().equalsIgnoreCase("usual_residence")); - assertThat(client.getAddresses().get(0).getAddressFields(), Matchers.hasKey("landmark")); - assertThat(client.getAddresses().get(0).getAddressFields(), Matchers.hasEntry(equalTo("geopoint"), notNullValue(String.class))); - - assertThat(client.getAddresses().get(0), hasProperty("latitude", notNullValue())); - assertThat(client.getAddresses().get(0), hasProperty("longitute", notNullValue())); - - assertTrue(client.getIdentifiers().containsKey("GOB HHID")); - assertTrue(client.getIdentifiers().containsKey("JiVitA HHID")); - assertEquals(client.getBaseEntityId(), baseEntityId); - assertEquals(client.getId(), baseEntityId); - assertThat(client, hasProperty("firstName", equalToIgnoringCase(firstName))); - } - } -} \ No newline at end of file diff --git a/opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/OpenmrsLocationTest.java b/opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/OpenmrsLocationTest.java deleted file mode 100644 index 408632c914..0000000000 --- a/opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/OpenmrsLocationTest.java +++ /dev/null @@ -1,40 +0,0 @@ -package org.opensrp.connector.openmrs.service; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; - -import java.io.IOException; - -import org.json.JSONException; -import org.junit.Before; -import org.junit.Test; -import org.opensrp.api.domain.Location; -import org.opensrp.api.util.LocationTree; - -import com.google.gson.Gson; - -public class OpenmrsLocationTest extends TestResourceLoader{ - public OpenmrsLocationTest() throws IOException { - super(); - } - - OpenmrsLocationService ls; - - @Before - public void setup() throws IOException{ - ls = new OpenmrsLocationService(openmrsOpenmrsUrl, openmrsUsername, openmrsPassword); - } - - @Test - public void testLocationTree() throws JSONException { - LocationTree ltree = new Gson().fromJson("{\"locationsHierarchy\":{\"map\":{\"215caa30-1906-4210-8294-23eb7914c1dd\":{\"id\":\"215caa30-1906-4210-8294-23eb7914c1dd\",\"label\":\"3-KHA\",\"node\":{\"locationId\":\"215caa30-1906-4210-8294-23eb7914c1dd\",\"name\":\"3-KHA\",\"parentLocation\":{\"locationId\":\"1ccb61b5-022f-4735-95b4-1c57e9f7938f\",\"name\":\"Ward-3\",\"parentLocation\":{\"locationId\":\"725658c6-4d94-4791-bad6-614dec63d83b\",\"name\":\"KUPTALA\",\"voided\":false},\"voided\":false},\"tags\":[\"Unit\"],\"voided\":false},\"children\":{\"4ccd5a33-c462-4b53-b8c1-a1ad1c3ba0cf\":{\"id\":\"4ccd5a33-c462-4b53-b8c1-a1ad1c3ba0cf\",\"label\":\"DURGAPUR\",\"node\":{\"locationId\":\"4ccd5a33-c462-4b53-b8c1-a1ad1c3ba0cf\",\"name\":\"DURGAPUR\",\"parentLocation\":{\"locationId\":\"215caa30-1906-4210-8294-23eb7914c1dd\",\"name\":\"3-KHA\",\"parentLocation\":{\"locationId\":\"1ccb61b5-022f-4735-95b4-1c57e9f7938f\",\"name\":\"Ward-3\",\"voided\":false},\"voided\":false},\"tags\":[\"Mauza\"],\"voided\":false},\"parent\":\"215caa30-1906-4210-8294-23eb7914c1dd\"}},\"parent\":\"1ccb61b5-022f-4735-95b4-1c57e9f7938f\"},\"429feb8b-0b8d-4496-8e54-fdc94affed07\":{\"id\":\"429feb8b-0b8d-4496-8e54-fdc94affed07\",\"label\":\"1-KHA\",\"node\":{\"locationId\":\"429feb8b-0b8d-4496-8e54-fdc94affed07\",\"name\":\"1-KHA\",\"parentLocation\":{\"locationId\":\"bfeb65bd-bff0-41bb-81a0-0220a4200bff\",\"name\":\"Ward-1\",\"parentLocation\":{\"locationId\":\"725658c6-4d94-4791-bad6-614dec63d83b\",\"name\":\"KUPTALA\",\"voided\":false},\"voided\":false},\"tags\":[\"Unit\"],\"voided\":false},\"children\":{\"9047a5e3-66cf-4f83-b0b6-3cdd3d611272\":{\"id\":\"9047a5e3-66cf-4f83-b0b6-3cdd3d611272\",\"label\":\"Chapadaha Mauza\",\"node\":{\"locationId\":\"9047a5e3-66cf-4f83-b0b6-3cdd3d611272\",\"name\":\"Chapadaha Mauza\",\"parentLocation\":{\"locationId\":\"429feb8b-0b8d-4496-8e54-fdc94affed07\",\"name\":\"1-KHA\",\"parentLocation\":{\"locationId\":\"bfeb65bd-bff0-41bb-81a0-0220a4200bff\",\"name\":\"Ward-1\",\"voided\":false},\"voided\":false},\"tags\":[\"Mauza\"],\"voided\":false},\"parent\":\"429feb8b-0b8d-4496-8e54-fdc94affed07\"},\"a8b7d760-0e7e-4fdb-9450-b41d31d1ec34\":{\"id\":\"a8b7d760-0e7e-4fdb-9450-b41d31d1ec34\",\"label\":\"Kuptala-1-KHA\",\"node\":{\"locationId\":\"a8b7d760-0e7e-4fdb-9450-b41d31d1ec34\",\"name\":\"Kuptala-1-KHA\",\"parentLocation\":{\"locationId\":\"429feb8b-0b8d-4496-8e54-fdc94affed07\",\"name\":\"1-KHA\",\"parentLocation\":{\"locationId\":\"bfeb65bd-bff0-41bb-81a0-0220a4200bff\",\"name\":\"Ward-1\",\"voided\":false},\"voided\":false},\"tags\":[\"Mauza\"],\"voided\":false},\"parent\":\"429feb8b-0b8d-4496-8e54-fdc94affed07\"}},\"parent\":\"bfeb65bd-bff0-41bb-81a0-0220a4200bff\"},\"f2f803d5-857a-42a4-a05b-142c3327b4fc\":{\"id\":\"f2f803d5-857a-42a4-a05b-142c3327b4fc\",\"label\":\"SONORAY\",\"node\":{\"locationId\":\"f2f803d5-857a-42a4-a05b-142c3327b4fc\",\"name\":\"SONORAY\",\"parentLocation\":{\"locationId\":\"11eaac2c-12d6-4958-b548-2d6768776b10\",\"name\":\"SUNDARGANJ\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"voided\":false},\"voided\":false},\"tags\":[\"Union\"],\"voided\":false},\"parent\":\"11eaac2c-12d6-4958-b548-2d6768776b10\"},\"e0d50bc5-09b2-4102-809d-687fe71d5fd0\":{\"id\":\"e0d50bc5-09b2-4102-809d-687fe71d5fd0\",\"label\":\"SARBANANDA\",\"node\":{\"locationId\":\"e0d50bc5-09b2-4102-809d-687fe71d5fd0\",\"name\":\"SARBANANDA\",\"parentLocation\":{\"locationId\":\"11eaac2c-12d6-4958-b548-2d6768776b10\",\"name\":\"SUNDARGANJ\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"voided\":false},\"voided\":false},\"tags\":[\"Union\"],\"voided\":false},\"parent\":\"11eaac2c-12d6-4958-b548-2d6768776b10\"},\"e8964ad4-e6f2-4aff-bb61-28c08d01af51\":{\"id\":\"e8964ad4-e6f2-4aff-bb61-28c08d01af51\",\"label\":\"2-KHA\",\"node\":{\"locationId\":\"e8964ad4-e6f2-4aff-bb61-28c08d01af51\",\"name\":\"2-KHA\",\"parentLocation\":{\"locationId\":\"318e5671-368b-4e9c-8bc1-7a6fb545c1e5\",\"name\":\"Ward-2\",\"parentLocation\":{\"locationId\":\"725658c6-4d94-4791-bad6-614dec63d83b\",\"name\":\"KUPTALA\",\"voided\":false},\"voided\":false},\"tags\":[\"Unit\"],\"voided\":false},\"children\":{\"3a041478-5d39-4d42-b785-67c2ae56febb\":{\"id\":\"3a041478-5d39-4d42-b785-67c2ae56febb\",\"label\":\"Kuptala-2KHA\",\"node\":{\"locationId\":\"3a041478-5d39-4d42-b785-67c2ae56febb\",\"name\":\"Kuptala-2KHA\",\"parentLocation\":{\"locationId\":\"e8964ad4-e6f2-4aff-bb61-28c08d01af51\",\"name\":\"2-KHA\",\"parentLocation\":{\"locationId\":\"318e5671-368b-4e9c-8bc1-7a6fb545c1e5\",\"name\":\"Ward-2\",\"voided\":false},\"voided\":false},\"tags\":[\"Mauza\"],\"voided\":false},\"parent\":\"e8964ad4-e6f2-4aff-bb61-28c08d01af51\"},\"27e6d636-0683-4539-90b8-2c795318dc08\":{\"id\":\"27e6d636-0683-4539-90b8-2c795318dc08\",\"label\":\"BERADANGA\",\"node\":{\"locationId\":\"27e6d636-0683-4539-90b8-2c795318dc08\",\"name\":\"BERADANGA\",\"parentLocation\":{\"locationId\":\"e8964ad4-e6f2-4aff-bb61-28c08d01af51\",\"name\":\"2-KHA\",\"parentLocation\":{\"locationId\":\"318e5671-368b-4e9c-8bc1-7a6fb545c1e5\",\"name\":\"Ward-2\",\"voided\":false},\"voided\":false},\"tags\":[\"Mauza\"],\"voided\":false},\"parent\":\"e8964ad4-e6f2-4aff-bb61-28c08d01af51\"}},\"parent\":\"318e5671-368b-4e9c-8bc1-7a6fb545c1e5\"},\"5d0661b5-4868-49eb-a697-e4dc4348dfab\":{\"id\":\"5d0661b5-4868-49eb-a697-e4dc4348dfab\",\"label\":\"SHANTIRAM\",\"node\":{\"locationId\":\"5d0661b5-4868-49eb-a697-e4dc4348dfab\",\"name\":\"SHANTIRAM\",\"parentLocation\":{\"locationId\":\"11eaac2c-12d6-4958-b548-2d6768776b10\",\"name\":\"SUNDARGANJ\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"voided\":false},\"voided\":false},\"tags\":[\"Union\"],\"voided\":false},\"parent\":\"11eaac2c-12d6-4958-b548-2d6768776b10\"},\"f48a6482-2ffd-4596-8d9b-46dadc3c73df\":{\"id\":\"f48a6482-2ffd-4596-8d9b-46dadc3c73df\",\"label\":\"SRIPUR\",\"node\":{\"locationId\":\"f48a6482-2ffd-4596-8d9b-46dadc3c73df\",\"name\":\"SRIPUR\",\"parentLocation\":{\"locationId\":\"11eaac2c-12d6-4958-b548-2d6768776b10\",\"name\":\"SUNDARGANJ\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"voided\":false},\"voided\":false},\"tags\":[\"Union\"],\"voided\":false},\"parent\":\"11eaac2c-12d6-4958-b548-2d6768776b10\"},\"42423d74-a061-463b-93a1-2f773f0aae21\":{\"id\":\"42423d74-a061-463b-93a1-2f773f0aae21\",\"label\":\"1-KA\",\"node\":{\"locationId\":\"42423d74-a061-463b-93a1-2f773f0aae21\",\"name\":\"1-KA\",\"parentLocation\":{\"locationId\":\"bfeb65bd-bff0-41bb-81a0-0220a4200bff\",\"name\":\"Ward-1\",\"parentLocation\":{\"locationId\":\"725658c6-4d94-4791-bad6-614dec63d83b\",\"name\":\"KUPTALA\",\"voided\":false},\"voided\":false},\"tags\":[\"Unit\"],\"voided\":false},\"children\":{\"88abc9f1-d698-41e3-8e2d-0c900b16dfe6\":{\"id\":\"88abc9f1-d698-41e3-8e2d-0c900b16dfe6\",\"label\":\"Kuptala-1-KA\",\"node\":{\"locationId\":\"88abc9f1-d698-41e3-8e2d-0c900b16dfe6\",\"name\":\"Kuptala-1-KA\",\"parentLocation\":{\"locationId\":\"42423d74-a061-463b-93a1-2f773f0aae21\",\"name\":\"1-KA\",\"parentLocation\":{\"locationId\":\"bfeb65bd-bff0-41bb-81a0-0220a4200bff\",\"name\":\"Ward-1\",\"voided\":false},\"voided\":false},\"tags\":[\"Mauza\"],\"voided\":false},\"parent\":\"42423d74-a061-463b-93a1-2f773f0aae21\"}},\"parent\":\"bfeb65bd-bff0-41bb-81a0-0220a4200bff\"},\"dff51374-be72-46cb-a9a3-c7989e24430c\":{\"id\":\"dff51374-be72-46cb-a9a3-c7989e24430c\",\"label\":\"DHOPADANGA\",\"node\":{\"locationId\":\"dff51374-be72-46cb-a9a3-c7989e24430c\",\"name\":\"DHOPADANGA\",\"parentLocation\":{\"locationId\":\"11eaac2c-12d6-4958-b548-2d6768776b10\",\"name\":\"SUNDARGANJ\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"voided\":false},\"voided\":false},\"tags\":[\"Union\"],\"voided\":false},\"parent\":\"11eaac2c-12d6-4958-b548-2d6768776b10\"},\"e8e88d43-e181-42f1-9de5-143149922eea\":{\"id\":\"e8e88d43-e181-42f1-9de5-143149922eea\",\"label\":\"RAMJIBAN\",\"node\":{\"locationId\":\"e8e88d43-e181-42f1-9de5-143149922eea\",\"name\":\"RAMJIBAN\",\"parentLocation\":{\"locationId\":\"11eaac2c-12d6-4958-b548-2d6768776b10\",\"name\":\"SUNDARGANJ\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"voided\":false},\"voided\":false},\"tags\":[\"Union\"],\"voided\":false},\"parent\":\"11eaac2c-12d6-4958-b548-2d6768776b10\"},\"d3367458-f5e5-4039-b1e7-f087cc5be3fa\":{\"id\":\"d3367458-f5e5-4039-b1e7-f087cc5be3fa\",\"label\":\"KANCHIBARI\",\"node\":{\"locationId\":\"d3367458-f5e5-4039-b1e7-f087cc5be3fa\",\"name\":\"KANCHIBARI\",\"parentLocation\":{\"locationId\":\"11eaac2c-12d6-4958-b548-2d6768776b10\",\"name\":\"SUNDARGANJ\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"voided\":false},\"voided\":false},\"tags\":[\"Union\"],\"voided\":false},\"parent\":\"11eaac2c-12d6-4958-b548-2d6768776b10\"},\"fa32786b-4063-4f39-b72d-a5bc0e549193\":{\"id\":\"fa32786b-4063-4f39-b72d-a5bc0e549193\",\"label\":\"3-KA\",\"node\":{\"locationId\":\"fa32786b-4063-4f39-b72d-a5bc0e549193\",\"name\":\"3-KA\",\"parentLocation\":{\"locationId\":\"1ccb61b5-022f-4735-95b4-1c57e9f7938f\",\"name\":\"Ward-3\",\"parentLocation\":{\"locationId\":\"725658c6-4d94-4791-bad6-614dec63d83b\",\"name\":\"KUPTALA\",\"voided\":false},\"voided\":false},\"tags\":[\"Unit\"],\"voided\":false},\"children\":{\"f872c792-32ac-49e7-a386-f6b968968ef1\":{\"id\":\"f872c792-32ac-49e7-a386-f6b968968ef1\",\"label\":\"Kuptala-3-KA\",\"node\":{\"locationId\":\"f872c792-32ac-49e7-a386-f6b968968ef1\",\"name\":\"Kuptala-3-KA\",\"parentLocation\":{\"locationId\":\"fa32786b-4063-4f39-b72d-a5bc0e549193\",\"name\":\"3-KA\",\"parentLocation\":{\"locationId\":\"1ccb61b5-022f-4735-95b4-1c57e9f7938f\",\"name\":\"Ward-3\",\"voided\":false},\"voided\":false},\"tags\":[\"Mauza\"],\"voided\":false},\"parent\":\"fa32786b-4063-4f39-b72d-a5bc0e549193\"}},\"parent\":\"1ccb61b5-022f-4735-95b4-1c57e9f7938f\"},\"765cb701-9e61-4ead-afb9-a63c943f4f14\":{\"id\":\"765cb701-9e61-4ead-afb9-a63c943f4f14\",\"label\":\"Korangi\",\"node\":{\"locationId\":\"765cb701-9e61-4ead-afb9-a63c943f4f14\",\"name\":\"Korangi\",\"tags\":[\"Town\"],\"voided\":false}},\"a57cef08-b47e-4b59-acd8-354279a63027\":{\"id\":\"a57cef08-b47e-4b59-acd8-354279a63027\",\"label\":\"3-KA\",\"node\":{\"locationId\":\"a57cef08-b47e-4b59-acd8-354279a63027\",\"name\":\"3-KA\",\"parentLocation\":{\"locationId\":\"f6b22dad-75c4-47e6-923a-3d0a005ed8a7\",\"name\":\"Ward-3\",\"parentLocation\":{\"locationId\":\"b25f114e-22e4-4cf8-89ef-af94ea2cecc5\",\"name\":\"NALDANGA\",\"voided\":false},\"voided\":false},\"tags\":[\"Unit\"],\"voided\":false},\"children\":{\"f30df310-0d30-4482-8dfe-667def649c20\":{\"id\":\"f30df310-0d30-4482-8dfe-667def649c20\",\"label\":\"PROTAP - MANDUAR PARA\",\"node\":{\"locationId\":\"f30df310-0d30-4482-8dfe-667def649c20\",\"name\":\"PROTAP - MANDUAR PARA\",\"parentLocation\":{\"locationId\":\"a57cef08-b47e-4b59-acd8-354279a63027\",\"name\":\"3-KA\",\"parentLocation\":{\"locationId\":\"f6b22dad-75c4-47e6-923a-3d0a005ed8a7\",\"name\":\"Ward-3\",\"voided\":false},\"voided\":false},\"tags\":[\"Mauza\"],\"voided\":false},\"parent\":\"a57cef08-b47e-4b59-acd8-354279a63027\"},\"f6933584-9248-409d-b06a-0988c470ce45\":{\"id\":\"f6933584-9248-409d-b06a-0988c470ce45\",\"label\":\"PROTAP - FUL PARA\",\"node\":{\"locationId\":\"f6933584-9248-409d-b06a-0988c470ce45\",\"name\":\"PROTAP - FUL PARA\",\"parentLocation\":{\"locationId\":\"a57cef08-b47e-4b59-acd8-354279a63027\",\"name\":\"3-KA\",\"parentLocation\":{\"locationId\":\"f6b22dad-75c4-47e6-923a-3d0a005ed8a7\",\"name\":\"Ward-3\",\"voided\":false},\"voided\":false},\"tags\":[\"Mauza\"],\"voided\":false},\"parent\":\"a57cef08-b47e-4b59-acd8-354279a63027\"},\"bac5a3b2-456f-4500-93a7-7a24be91909e\":{\"id\":\"bac5a3b2-456f-4500-93a7-7a24be91909e\",\"label\":\"PROTAP - KATA PROTAP\",\"node\":{\"locationId\":\"bac5a3b2-456f-4500-93a7-7a24be91909e\",\"name\":\"PROTAP - KATA PROTAP\",\"parentLocation\":{\"locationId\":\"a57cef08-b47e-4b59-acd8-354279a63027\",\"name\":\"3-KA\",\"parentLocation\":{\"locationId\":\"f6b22dad-75c4-47e6-923a-3d0a005ed8a7\",\"name\":\"Ward-3\",\"voided\":false},\"voided\":false},\"tags\":[\"Mauza\"],\"voided\":false},\"parent\":\"a57cef08-b47e-4b59-acd8-354279a63027\"}},\"parent\":\"f6b22dad-75c4-47e6-923a-3d0a005ed8a7\"},\"f4e3cb47-fea1-418c-9a63-26374e424043\":{\"id\":\"f4e3cb47-fea1-418c-9a63-26374e424043\",\"label\":\"RANGPUR\",\"node\":{\"locationId\":\"f4e3cb47-fea1-418c-9a63-26374e424043\",\"name\":\"RANGPUR\",\"tags\":[\"Division\"],\"voided\":false},\"children\":{\"a556070e-cd96-49bc-b079-2a415d476a97\":{\"id\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"label\":\"GAIBANDHA\",\"node\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"parentLocation\":{\"locationId\":\"f4e3cb47-fea1-418c-9a63-26374e424043\",\"name\":\"RANGPUR\",\"voided\":false},\"tags\":[\"District\"],\"voided\":false},\"children\":{\"960ada36-be32-4867-a0aa-b7f4b835c61f\":{\"id\":\"960ada36-be32-4867-a0aa-b7f4b835c61f\",\"label\":\"SADULLAPUR\",\"node\":{\"locationId\":\"960ada36-be32-4867-a0aa-b7f4b835c61f\",\"name\":\"SADULLAPUR\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"parentLocation\":{\"locationId\":\"f4e3cb47-fea1-418c-9a63-26374e424043\",\"name\":\"RANGPUR\",\"voided\":false},\"voided\":false},\"tags\":[\"Upazilla\"],\"voided\":false},\"children\":{\"bd57db27-71b9-467e-9503-ce2dec74e61b\":{\"id\":\"bd57db27-71b9-467e-9503-ce2dec74e61b\",\"label\":\"JAMALPUR\",\"node\":{\"locationId\":\"bd57db27-71b9-467e-9503-ce2dec74e61b\",\"name\":\"JAMALPUR\",\"parentLocation\":{\"locationId\":\"960ada36-be32-4867-a0aa-b7f4b835c61f\",\"name\":\"SADULLAPUR\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"voided\":false},\"voided\":false},\"tags\":[\"Union\"],\"voided\":false},\"parent\":\"960ada36-be32-4867-a0aa-b7f4b835c61f\"},\"1b93c923-5ebb-4c0a-8bbb-067cc5fc5c9f\":{\"id\":\"1b93c923-5ebb-4c0a-8bbb-067cc5fc5c9f\",\"label\":\"FARIDPUR\",\"node\":{\"locationId\":\"1b93c923-5ebb-4c0a-8bbb-067cc5fc5c9f\",\"name\":\"FARIDPUR\",\"parentLocation\":{\"locationId\":\"960ada36-be32-4867-a0aa-b7f4b835c61f\",\"name\":\"SADULLAPUR\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"voided\":false},\"voided\":false},\"tags\":[\"Union\"],\"voided\":false},\"parent\":\"960ada36-be32-4867-a0aa-b7f4b835c61f\"},\"a39ce1d7-d8ee-49e9-8a81-02f7949f5ff0\":{\"id\":\"a39ce1d7-d8ee-49e9-8a81-02f7949f5ff0\",\"label\":\"KUMARPARA\",\"node\":{\"locationId\":\"a39ce1d7-d8ee-49e9-8a81-02f7949f5ff0\",\"name\":\"KUMARPARA\",\"parentLocation\":{\"locationId\":\"960ada36-be32-4867-a0aa-b7f4b835c61f\",\"name\":\"SADULLAPUR\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"voided\":false},\"voided\":false},\"tags\":[\"Union\"],\"voided\":false},\"parent\":\"960ada36-be32-4867-a0aa-b7f4b835c61f\"},\"07b798a0-2219-4447-8b72-2510c0526a15\":{\"id\":\"07b798a0-2219-4447-8b72-2510c0526a15\",\"label\":\"DAMODARPUR\",\"node\":{\"locationId\":\"07b798a0-2219-4447-8b72-2510c0526a15\",\"name\":\"DAMODARPUR\",\"parentLocation\":{\"locationId\":\"960ada36-be32-4867-a0aa-b7f4b835c61f\",\"name\":\"SADULLAPUR\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"voided\":false},\"voided\":false},\"tags\":[\"Union\"],\"voided\":false},\"parent\":\"960ada36-be32-4867-a0aa-b7f4b835c61f\"},\"b25f114e-22e4-4cf8-89ef-af94ea2cecc5\":{\"id\":\"b25f114e-22e4-4cf8-89ef-af94ea2cecc5\",\"label\":\"NALDANGA\",\"node\":{\"locationId\":\"b25f114e-22e4-4cf8-89ef-af94ea2cecc5\",\"name\":\"NALDANGA\",\"parentLocation\":{\"locationId\":\"960ada36-be32-4867-a0aa-b7f4b835c61f\",\"name\":\"SADULLAPUR\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"voided\":false},\"voided\":false},\"tags\":[\"Union\"],\"voided\":false},\"parent\":\"960ada36-be32-4867-a0aa-b7f4b835c61f\"},\"e7d39ba2-45a1-498c-bcc5-937f179d81fa\":{\"id\":\"e7d39ba2-45a1-498c-bcc5-937f179d81fa\",\"label\":\"RASULPUR\",\"node\":{\"locationId\":\"e7d39ba2-45a1-498c-bcc5-937f179d81fa\",\"name\":\"RASULPUR\",\"parentLocation\":{\"locationId\":\"960ada36-be32-4867-a0aa-b7f4b835c61f\",\"name\":\"SADULLAPUR\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"voided\":false},\"voided\":false},\"tags\":[\"Union\"],\"voided\":false},\"parent\":\"960ada36-be32-4867-a0aa-b7f4b835c61f\"}},\"parent\":\"a556070e-cd96-49bc-b079-2a415d476a97\"},\"57b34716-c291-4ca4-a7c8-28e65ab8819a\":{\"id\":\"57b34716-c291-4ca4-a7c8-28e65ab8819a\",\"label\":\"GAIBANDHA SADAR\",\"node\":{\"locationId\":\"57b34716-c291-4ca4-a7c8-28e65ab8819a\",\"name\":\"GAIBANDHA SADAR\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"parentLocation\":{\"locationId\":\"f4e3cb47-fea1-418c-9a63-26374e424043\",\"name\":\"RANGPUR\",\"voided\":false},\"voided\":false},\"tags\":[\"Upazilla\"],\"voided\":false},\"children\":{\"7491ac95-05d2-49a8-b6a9-463f357171eb\":{\"id\":\"7491ac95-05d2-49a8-b6a9-463f357171eb\",\"label\":\"LAKSHMIPUR\",\"node\":{\"locationId\":\"7491ac95-05d2-49a8-b6a9-463f357171eb\",\"name\":\"LAKSHMIPUR\",\"parentLocation\":{\"locationId\":\"57b34716-c291-4ca4-a7c8-28e65ab8819a\",\"name\":\"GAIBANDHA SADAR\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"voided\":false},\"voided\":false},\"tags\":[\"Union\"],\"voided\":false},\"parent\":\"57b34716-c291-4ca4-a7c8-28e65ab8819a\"},\"725658c6-4d94-4791-bad6-614dec63d83b\":{\"id\":\"725658c6-4d94-4791-bad6-614dec63d83b\",\"label\":\"KUPTALA\",\"node\":{\"locationId\":\"725658c6-4d94-4791-bad6-614dec63d83b\",\"name\":\"KUPTALA\",\"parentLocation\":{\"locationId\":\"57b34716-c291-4ca4-a7c8-28e65ab8819a\",\"name\":\"GAIBANDHA SADAR\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"voided\":false},\"voided\":false},\"tags\":[\"Union\"],\"voided\":false},\"parent\":\"57b34716-c291-4ca4-a7c8-28e65ab8819a\"},\"d658d99a-1941-406b-bbdc-b46a2545de92\":{\"id\":\"d658d99a-1941-406b-bbdc-b46a2545de92\",\"label\":\"MALIBARI\",\"node\":{\"locationId\":\"d658d99a-1941-406b-bbdc-b46a2545de92\",\"name\":\"MALIBARI\",\"parentLocation\":{\"locationId\":\"57b34716-c291-4ca4-a7c8-28e65ab8819a\",\"name\":\"GAIBANDHA SADAR\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"voided\":false},\"voided\":false},\"tags\":[\"Union\"],\"voided\":false},\"parent\":\"57b34716-c291-4ca4-a7c8-28e65ab8819a\"}},\"parent\":\"a556070e-cd96-49bc-b079-2a415d476a97\"}},\"parent\":\"f4e3cb47-fea1-418c-9a63-26374e424043\"}}},\"cd4ed528-87cd-42ee-a175-5e7089521ebd\":{\"id\":\"cd4ed528-87cd-42ee-a175-5e7089521ebd\",\"label\":\"Pakistan\",\"node\":{\"locationId\":\"cd4ed528-87cd-42ee-a175-5e7089521ebd\",\"name\":\"Pakistan\",\"tags\":[\"Country\"],\"voided\":false},\"children\":{\"461f2be7-c95d-433c-b1d7-c68f272409d7\":{\"id\":\"461f2be7-c95d-433c-b1d7-c68f272409d7\",\"label\":\"Sindh\",\"node\":{\"locationId\":\"461f2be7-c95d-433c-b1d7-c68f272409d7\",\"name\":\"Sindh\",\"parentLocation\":{\"locationId\":\"cd4ed528-87cd-42ee-a175-5e7089521ebd\",\"name\":\"Pakistan\",\"voided\":false},\"tags\":[\"Province\"],\"voided\":false},\"children\":{\"a529e2fc-6f0d-4e60-a5df-789fe17cca48\":{\"id\":\"a529e2fc-6f0d-4e60-a5df-789fe17cca48\",\"label\":\"Karachi\",\"node\":{\"locationId\":\"a529e2fc-6f0d-4e60-a5df-789fe17cca48\",\"name\":\"Karachi\",\"parentLocation\":{\"locationId\":\"461f2be7-c95d-433c-b1d7-c68f272409d7\",\"name\":\"Sindh\",\"parentLocation\":{\"locationId\":\"cd4ed528-87cd-42ee-a175-5e7089521ebd\",\"name\":\"Pakistan\",\"voided\":false},\"voided\":false},\"tags\":[\"City\"],\"voided\":false},\"children\":{\"60c21502-fec1-40f5-b77d-6df3f92771ce\":{\"id\":\"60c21502-fec1-40f5-b77d-6df3f92771ce\",\"label\":\"Baldia\",\"node\":{\"locationId\":\"60c21502-fec1-40f5-b77d-6df3f92771ce\",\"name\":\"Baldia\",\"parentLocation\":{\"locationId\":\"a529e2fc-6f0d-4e60-a5df-789fe17cca48\",\"name\":\"Karachi\",\"parentLocation\":{\"locationId\":\"461f2be7-c95d-433c-b1d7-c68f272409d7\",\"name\":\"Sindh\",\"voided\":false},\"voided\":false},\"tags\":[\"Town\"],\"attributes\":{\"at1\":\"atttt1\"},\"voided\":false},\"parent\":\"a529e2fc-6f0d-4e60-a5df-789fe17cca48\"}},\"parent\":\"461f2be7-c95d-433c-b1d7-c68f272409d7\"}},\"parent\":\"cd4ed528-87cd-42ee-a175-5e7089521ebd\"}}},\"96cd1c2a-f678-4687-bd87-8f4c5eae261a\":{\"id\":\"96cd1c2a-f678-4687-bd87-8f4c5eae261a\",\"label\":\"BAMANDANGA\",\"node\":{\"locationId\":\"96cd1c2a-f678-4687-bd87-8f4c5eae261a\",\"name\":\"BAMANDANGA\",\"parentLocation\":{\"locationId\":\"11eaac2c-12d6-4958-b548-2d6768776b10\",\"name\":\"SUNDARGANJ\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"voided\":false},\"voided\":false},\"tags\":[\"Union\"],\"voided\":false},\"parent\":\"11eaac2c-12d6-4958-b548-2d6768776b10\"},\"e1f223f5-a59e-4a54-b44e-472ff2438684\":{\"id\":\"e1f223f5-a59e-4a54-b44e-472ff2438684\",\"label\":\"2-KA\",\"node\":{\"locationId\":\"e1f223f5-a59e-4a54-b44e-472ff2438684\",\"name\":\"2-KA\",\"parentLocation\":{\"locationId\":\"318e5671-368b-4e9c-8bc1-7a6fb545c1e5\",\"name\":\"Ward-2\",\"parentLocation\":{\"locationId\":\"725658c6-4d94-4791-bad6-614dec63d83b\",\"name\":\"KUPTALA\",\"voided\":false},\"voided\":false},\"tags\":[\"Unit\"],\"voided\":false},\"children\":{\"fbe4c8cf-5d52-4bc3-a4ec-9dcc1f5504cd\":{\"id\":\"fbe4c8cf-5d52-4bc3-a4ec-9dcc1f5504cd\",\"label\":\"RAMPRASHAD\",\"node\":{\"locationId\":\"fbe4c8cf-5d52-4bc3-a4ec-9dcc1f5504cd\",\"name\":\"RAMPRASHAD\",\"parentLocation\":{\"locationId\":\"e1f223f5-a59e-4a54-b44e-472ff2438684\",\"name\":\"2-KA\",\"parentLocation\":{\"locationId\":\"318e5671-368b-4e9c-8bc1-7a6fb545c1e5\",\"name\":\"Ward-2\",\"voided\":false},\"voided\":false},\"tags\":[\"Mauza\"],\"voided\":false},\"parent\":\"e1f223f5-a59e-4a54-b44e-472ff2438684\"},\"36fc5398-8e7a-430b-ab3b-557788b4d89f\":{\"id\":\"36fc5398-8e7a-430b-ab3b-557788b4d89f\",\"label\":\"Kuptala-2-KA\",\"node\":{\"locationId\":\"36fc5398-8e7a-430b-ab3b-557788b4d89f\",\"name\":\"Kuptala-2-KA\",\"parentLocation\":{\"locationId\":\"e1f223f5-a59e-4a54-b44e-472ff2438684\",\"name\":\"2-KA\",\"parentLocation\":{\"locationId\":\"318e5671-368b-4e9c-8bc1-7a6fb545c1e5\",\"name\":\"Ward-2\",\"voided\":false},\"voided\":false},\"tags\":[\"Mauza\"],\"voided\":false},\"parent\":\"e1f223f5-a59e-4a54-b44e-472ff2438684\"}},\"parent\":\"318e5671-368b-4e9c-8bc1-7a6fb545c1e5\"},\"774bca32-01ab-4c7a-91f0-b5c51c41945a\":{\"id\":\"774bca32-01ab-4c7a-91f0-b5c51c41945a\",\"label\":\"CHHAPARHATI\",\"node\":{\"locationId\":\"774bca32-01ab-4c7a-91f0-b5c51c41945a\",\"name\":\"CHHAPARHATI\",\"parentLocation\":{\"locationId\":\"11eaac2c-12d6-4958-b548-2d6768776b10\",\"name\":\"SUNDARGANJ\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"voided\":false},\"voided\":false},\"tags\":[\"Union\"],\"voided\":false},\"parent\":\"11eaac2c-12d6-4958-b548-2d6768776b10\"},\"f332d8ac-e57f-49ba-8fb0-c428651697a2\":{\"id\":\"f332d8ac-e57f-49ba-8fb0-c428651697a2\",\"label\":\"3-KHA\",\"node\":{\"locationId\":\"f332d8ac-e57f-49ba-8fb0-c428651697a2\",\"name\":\"3-KHA\",\"parentLocation\":{\"locationId\":\"f6b22dad-75c4-47e6-923a-3d0a005ed8a7\",\"name\":\"Ward-3\",\"parentLocation\":{\"locationId\":\"b25f114e-22e4-4cf8-89ef-af94ea2cecc5\",\"name\":\"NALDANGA\",\"voided\":false},\"voided\":false},\"tags\":[\"Unit\"],\"voided\":false},\"children\":{\"2fc43738-ace5-4961-8e8f-ab7d00e5bc63\":{\"id\":\"2fc43738-ace5-4961-8e8f-ab7d00e5bc63\",\"label\":\"DASLIA - ALL PARAS\",\"node\":{\"locationId\":\"2fc43738-ace5-4961-8e8f-ab7d00e5bc63\",\"name\":\"DASLIA - ALL PARAS\",\"parentLocation\":{\"locationId\":\"f332d8ac-e57f-49ba-8fb0-c428651697a2\",\"name\":\"3-KHA\",\"parentLocation\":{\"locationId\":\"f6b22dad-75c4-47e6-923a-3d0a005ed8a7\",\"name\":\"Ward-3\",\"voided\":false},\"voided\":false},\"tags\":[\"Mauza\"],\"voided\":false},\"parent\":\"f332d8ac-e57f-49ba-8fb0-c428651697a2\"},\"50d3dddd-9fba-4895-9b96-fe66d42e6fed\":{\"id\":\"50d3dddd-9fba-4895-9b96-fe66d42e6fed\",\"label\":\"PROTAP - OPADANI PARA\",\"node\":{\"locationId\":\"50d3dddd-9fba-4895-9b96-fe66d42e6fed\",\"name\":\"PROTAP - OPADANI PARA\",\"parentLocation\":{\"locationId\":\"f332d8ac-e57f-49ba-8fb0-c428651697a2\",\"name\":\"3-KHA\",\"parentLocation\":{\"locationId\":\"f6b22dad-75c4-47e6-923a-3d0a005ed8a7\",\"name\":\"Ward-3\",\"voided\":false},\"voided\":false},\"tags\":[\"Mauza\"],\"voided\":false},\"parent\":\"f332d8ac-e57f-49ba-8fb0-c428651697a2\"},\"80efdc06-59b7-4594-bf24-561a7eb12676\":{\"id\":\"80efdc06-59b7-4594-bf24-561a7eb12676\",\"label\":\"PROTAP - SARDAR PARA\",\"node\":{\"locationId\":\"80efdc06-59b7-4594-bf24-561a7eb12676\",\"name\":\"PROTAP - SARDAR PARA\",\"parentLocation\":{\"locationId\":\"f332d8ac-e57f-49ba-8fb0-c428651697a2\",\"name\":\"3-KHA\",\"parentLocation\":{\"locationId\":\"f6b22dad-75c4-47e6-923a-3d0a005ed8a7\",\"name\":\"Ward-3\",\"voided\":false},\"voided\":false},\"tags\":[\"Mauza\"],\"voided\":false},\"parent\":\"f332d8ac-e57f-49ba-8fb0-c428651697a2\"}},\"parent\":\"f6b22dad-75c4-47e6-923a-3d0a005ed8a7\"}},\"parentChildren\":{\"215caa30-1906-4210-8294-23eb7914c1dd\":[\"4ccd5a33-c462-4b53-b8c1-a1ad1c3ba0cf\"],\"318e5671-368b-4e9c-8bc1-7a6fb545c1e5\":[\"e1f223f5-a59e-4a54-b44e-472ff2438684\",\"e8964ad4-e6f2-4aff-bb61-28c08d01af51\"],\"429feb8b-0b8d-4496-8e54-fdc94affed07\":[\"9047a5e3-66cf-4f83-b0b6-3cdd3d611272\",\"a8b7d760-0e7e-4fdb-9450-b41d31d1ec34\"],\"e8964ad4-e6f2-4aff-bb61-28c08d01af51\":[\"3a041478-5d39-4d42-b785-67c2ae56febb\",\"27e6d636-0683-4539-90b8-2c795318dc08\"],\"f6b22dad-75c4-47e6-923a-3d0a005ed8a7\":[\"a57cef08-b47e-4b59-acd8-354279a63027\",\"f332d8ac-e57f-49ba-8fb0-c428651697a2\"],\"a529e2fc-6f0d-4e60-a5df-789fe17cca48\":[\"60c21502-fec1-40f5-b77d-6df3f92771ce\"],\"42423d74-a061-463b-93a1-2f773f0aae21\":[\"88abc9f1-d698-41e3-8e2d-0c900b16dfe6\"],\"fa32786b-4063-4f39-b72d-a5bc0e549193\":[\"f872c792-32ac-49e7-a386-f6b968968ef1\"],\"a57cef08-b47e-4b59-acd8-354279a63027\":[\"f30df310-0d30-4482-8dfe-667def649c20\",\"f6933584-9248-409d-b06a-0988c470ce45\",\"bac5a3b2-456f-4500-93a7-7a24be91909e\"],\"cd4ed528-87cd-42ee-a175-5e7089521ebd\":[\"461f2be7-c95d-433c-b1d7-c68f272409d7\"],\"f4e3cb47-fea1-418c-9a63-26374e424043\":[\"a556070e-cd96-49bc-b079-2a415d476a97\"],\"e1f223f5-a59e-4a54-b44e-472ff2438684\":[\"fbe4c8cf-5d52-4bc3-a4ec-9dcc1f5504cd\",\"36fc5398-8e7a-430b-ab3b-557788b4d89f\"],\"bfeb65bd-bff0-41bb-81a0-0220a4200bff\":[\"429feb8b-0b8d-4496-8e54-fdc94affed07\",\"42423d74-a061-463b-93a1-2f773f0aae21\"],\"11eaac2c-12d6-4958-b548-2d6768776b10\":[\"dff51374-be72-46cb-a9a3-c7989e24430c\",\"e8e88d43-e181-42f1-9de5-143149922eea\",\"d3367458-f5e5-4039-b1e7-f087cc5be3fa\",\"96cd1c2a-f678-4687-bd87-8f4c5eae261a\",\"f2f803d5-857a-42a4-a05b-142c3327b4fc\",\"e0d50bc5-09b2-4102-809d-687fe71d5fd0\",\"774bca32-01ab-4c7a-91f0-b5c51c41945a\",\"5d0661b5-4868-49eb-a697-e4dc4348dfab\",\"f48a6482-2ffd-4596-8d9b-46dadc3c73df\"],\"461f2be7-c95d-433c-b1d7-c68f272409d7\":[\"a529e2fc-6f0d-4e60-a5df-789fe17cca48\"],\"a556070e-cd96-49bc-b079-2a415d476a97\":[\"960ada36-be32-4867-a0aa-b7f4b835c61f\",\"57b34716-c291-4ca4-a7c8-28e65ab8819a\"],\"960ada36-be32-4867-a0aa-b7f4b835c61f\":[\"bd57db27-71b9-467e-9503-ce2dec74e61b\",\"1b93c923-5ebb-4c0a-8bbb-067cc5fc5c9f\",\"a39ce1d7-d8ee-49e9-8a81-02f7949f5ff0\",\"b25f114e-22e4-4cf8-89ef-af94ea2cecc5\",\"07b798a0-2219-4447-8b72-2510c0526a15\",\"e7d39ba2-45a1-498c-bcc5-937f179d81fa\"],\"57b34716-c291-4ca4-a7c8-28e65ab8819a\":[\"7491ac95-05d2-49a8-b6a9-463f357171eb\",\"725658c6-4d94-4791-bad6-614dec63d83b\",\"d658d99a-1941-406b-bbdc-b46a2545de92\"],\"f332d8ac-e57f-49ba-8fb0-c428651697a2\":[\"2fc43738-ace5-4961-8e8f-ab7d00e5bc63\",\"50d3dddd-9fba-4895-9b96-fe66d42e6fed\",\"80efdc06-59b7-4594-bf24-561a7eb12676\"],\"1ccb61b5-022f-4735-95b4-1c57e9f7938f\":[\"215caa30-1906-4210-8294-23eb7914c1dd\",\"fa32786b-4063-4f39-b72d-a5bc0e549193\"]}}}", LocationTree.class); - String ltreestr = new Gson().toJson(ltree, LocationTree.class); - System.out.println(ltreestr); - assertNotNull(ltreestr); - LocationTree lconverted = new Gson().fromJson(ltreestr, LocationTree.class); - assertNotNull(lconverted); - String lconvertedstr = new Gson().toJson(lconverted, LocationTree.class); - System.out.println(lconvertedstr); - assertEquals(ltreestr, lconvertedstr); - } - -} diff --git a/opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/OpenmrsSchedulerServiceTest.java b/opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/OpenmrsSchedulerServiceTest.java deleted file mode 100644 index efb7d9e4e7..0000000000 --- a/opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/OpenmrsSchedulerServiceTest.java +++ /dev/null @@ -1,198 +0,0 @@ -package org.opensrp.connector.openmrs.service; - -import static org.opensrp.dto.AlertStatus.normal; -import static org.opensrp.dto.BeneficiaryType.mother; - -import java.io.IOException; -import java.text.ParseException; -import java.text.SimpleDateFormat; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.UUID; - -import org.joda.time.DateTime; -import org.json.JSONException; -import org.json.JSONObject; -import org.junit.Before; -import org.junit.Test; -import org.motechproject.model.Time; -import org.motechproject.scheduletracking.api.domain.Enrollment; -import org.motechproject.scheduletracking.api.domain.EnrollmentStatus; -import org.motechproject.scheduletracking.api.domain.Schedule; -import org.opensrp.domain.Client; -import org.opensrp.domain.Event; -import org.opensrp.connector.openmrs.constants.OpenmrsConstants; -import org.opensrp.connector.openmrs.constants.OpenmrsHouseHold; -import org.opensrp.dto.ActionData; -import org.opensrp.form.domain.FormSubmission; -import org.opensrp.form.service.FormAttributeParser; -import org.opensrp.scheduler.Action; -import org.opensrp.service.formSubmission.FormEntityConverter; - -import com.google.gson.JsonIOException; - -public class OpenmrsSchedulerServiceTest extends TestResourceLoader { - - public OpenmrsSchedulerServiceTest() throws IOException { - super(); - } - - OpenmrsSchedulerService ss; - - OpenmrsUserService us; - - EncounterService es; - - FormEntityConverter oc; - - PatientService ps; - - HouseholdService hhs; - - SimpleDateFormat sd = new SimpleDateFormat("yyyy-MM-dd"); - - @Before - public void setup() throws IOException { - ps = new PatientService(openmrsOpenmrsUrl, openmrsUsername, openmrsPassword); - us = new OpenmrsUserService(openmrsOpenmrsUrl, openmrsUsername, openmrsPassword); - ss = new OpenmrsSchedulerService(openmrsOpenmrsUrl, openmrsUsername, openmrsPassword); - ss.setUserService(us); - ss.setPatientService(ps); - - es = new EncounterService(openmrsOpenmrsUrl, openmrsUsername, openmrsPassword); - es.setPatientService(ps); - es.setUserService(us); - hhs = new HouseholdService(openmrsOpenmrsUrl, openmrsUsername, openmrsPassword); - hhs.setPatientService(ps); - hhs.setEncounterService(es); - FormAttributeParser fam = new FormAttributeParser(formDirPath); - oc = new FormEntityConverter(fam); - } - - @Test - public void testTrack() throws JSONException, ParseException { - String id = UUID.randomUUID().toString(); - - Enrollment e = new Enrollment(id, new Schedule("Boosters"), "REMINDER", new DateTime(2012, 1, 1, 0, 0), - new DateTime(2012, 1, 1, 0, 0), new Time(23, 8), EnrollmentStatus.ACTIVE, null); - List alertActions = new ArrayList(); - alertActions.add(new Action(id, "admin", alert("Boosters", "REMINDER"))); - alertActions.add(new Action(id, "admin", ActionData.markAlertAsClosed("REMINDER", "12-12-2015"))); - if (pushToOpenmrsForTest) { - String puuid = ps.getPatientByIdentifierUUID(id); - if (puuid == null) { - ps.createPatient( - new Client(id, "TEST", null, "Name", new DateTime().minusYears(20), null, false, false, "MALE")); - } - JSONObject t = ss.createTrack(e, alertActions); - e.setStatus(EnrollmentStatus.COMPLETED); - Map metadata = new HashMap<>(); - metadata.put(OpenmrsConstants.ENROLLMENT_TRACK_UUID, t.getString("uuid")); - e.setMetadata(metadata); - ss.updateTrack(e, alertActions); - } - } - - @Test - public void testTrackWithoutAnyMilestoneOrAction() throws JSONException, ParseException { - String id = UUID.randomUUID().toString(); - - Enrollment e = new Enrollment(id, new Schedule("Boosters"), "REMINDER", new DateTime(2012, 1, 1, 0, 0), - new DateTime(2012, 1, 1, 0, 0), new Time(23, 8), EnrollmentStatus.ACTIVE, null); - List alertActions = new ArrayList(); - if (pushToOpenmrsForTest) { - String puuid = ps.getPatientByIdentifierUUID(id); - if (puuid == null) { - ps.createPatient( - new Client(id, "TEST", null, "Name", new DateTime().minusYears(20), null, false, false, "MALE")); - } - JSONObject t = ss.createTrack(e, alertActions); - e.setStatus(EnrollmentStatus.COMPLETED); - Map metadata = new HashMap<>(); - metadata.put(OpenmrsConstants.ENROLLMENT_TRACK_UUID, t.getString("uuid")); - e.setMetadata(metadata); - ss.updateTrack(e, alertActions); - } - } - - @Test - public void testTrackWithMilestoneAndWithoutAction() throws JSONException, ParseException { - String id = UUID.randomUUID().toString(); - - Enrollment e = new Enrollment(id, new Schedule("Boosters"), "REMINDER", new DateTime(2012, 1, 1, 0, 0), - new DateTime(2012, 1, 1, 0, 0), new Time(23, 8), EnrollmentStatus.ACTIVE, null); - e.fulfillCurrentMilestone(new DateTime()); - List alertActions = new ArrayList(); - if (pushToOpenmrsForTest) { - String puuid = ps.getPatientByIdentifierUUID(id); - if (puuid == null) { - ps.createPatient( - new Client(id, "TEST", null, "Name", new DateTime().minusYears(20), null, false, false, "MALE")); - } - JSONObject t = ss.createTrack(e, alertActions); - e.setStatus(EnrollmentStatus.COMPLETED); - Map metadata = new HashMap<>(); - metadata.put(OpenmrsConstants.ENROLLMENT_TRACK_UUID, t.getString("uuid")); - e.setMetadata(metadata); - ss.updateTrack(e, alertActions); - } - } - - @Test - public void testHHScheduleData() throws JSONException, ParseException, JsonIOException, IOException { - FormSubmission fs = getFormSubmissionFor("new_household_registration", 6); - - Client hhhead = oc.getClientFromFormSubmission(fs); - Event ev = oc.getEventFromFormSubmission(fs); - Map> dep = oc.getDependentClientsFromFormSubmission(fs); - - OpenmrsHouseHold household = new OpenmrsHouseHold(hhhead, ev); - for (String hhmid : dep.keySet()) { - household.addHHMember((Client) dep.get(hhmid).get("client"), (Event) dep.get(hhmid).get("event")); - } - if (pushToOpenmrsForTest) { - JSONObject pr = us.getProvider(fs.anmId(),null); - if (pr == null) { - us.createProvider(fs.anmId(), fs.anmId()); - } - - JSONObject enct = es.getEncounterType(ev.getEventType()); - if (enct == null) { - es.createEncounterType(ev.getEventType(), "Encounter type created to fullfill scheduling test pre-reqs"); - } - - for (String hhmid : dep.keySet()) { - Event ein = (Event) dep.get(hhmid).get("event"); - JSONObject hmenct = es.getEncounterType(ein.getEventType()); - if (hmenct == null) { - es.createEncounterType(ein.getEventType(), - "Encounter type created to fullfill scheduling test pre-reqs"); - } - } - - hhs.saveHH(household, true); - } - - Enrollment e = new Enrollment(hhhead.getBaseEntityId(), new Schedule("FW CENSUS"), "FW CENSUS", new DateTime(), - new DateTime(), new Time(23, 8), EnrollmentStatus.ACTIVE, null); - List alertActions = new ArrayList(); - alertActions.add(new Action(hhhead.getBaseEntityId(), ev.getProviderId(), alert("FW CENSUS", "FW CENSUS"))); - if (pushToOpenmrsForTest) { - JSONObject t = ss.createTrack(e, alertActions); - alertActions.add(new Action(hhhead.getBaseEntityId(), ev.getProviderId(), - ActionData.markAlertAsClosed("FW CENSUS", "12-12-2015"))); - e.setStatus(EnrollmentStatus.COMPLETED); - Map metadata = new HashMap<>(); - metadata.put(OpenmrsConstants.ENROLLMENT_TRACK_UUID, t.getString("uuid")); - e.setMetadata(metadata); - ss.updateTrack(e, alertActions); - } - } - - private ActionData alert(String schedule, String milestone) { - return ActionData.createAlert(mother.value(), schedule, milestone, normal, DateTime.now(), - DateTime.now().plusDays(3)); - } -} diff --git a/opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/OpenmrsUserServiceTest.java b/opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/OpenmrsUserServiceTest.java deleted file mode 100644 index aeab6366f5..0000000000 --- a/opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/OpenmrsUserServiceTest.java +++ /dev/null @@ -1,51 +0,0 @@ -package org.opensrp.connector.openmrs.service; - -import org.json.JSONException; -import org.junit.Before; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.mockito.BDDMockito; -import org.opensrp.common.util.HttpResponse; -import org.opensrp.common.util.HttpUtil; -import org.powermock.api.mockito.PowerMockito; -import org.powermock.core.classloader.annotations.PowerMockIgnore; -import org.powermock.core.classloader.annotations.PrepareForTest; -import org.powermock.modules.junit4.PowerMockRunner; - -import java.io.IOException; - -import static org.junit.Assert.assertTrue; -import static org.mockito.Mockito.any; -import static org.mockito.Mockito.eq; - -@RunWith(PowerMockRunner.class) -@PrepareForTest({HttpUtil.class}) -@PowerMockIgnore({"org.apache.http.conn.ssl.*", "javax.net.ssl.*"}) -public class OpenmrsUserServiceTest extends TestResourceLoader { - - public OpenmrsUserServiceTest() throws IOException { - super(); - } - - OpenmrsUserService ls; - - @Before - public void setup() { - PowerMockito.mockStatic(HttpUtil.class); - ls = new OpenmrsUserService(openmrsOpenmrsUrl, openmrsUsername, openmrsPassword); - } - - @Test - public void testAuthentication() throws JSONException { - BDDMockito.given(HttpUtil.get(any(String.class), eq(""), any(String.class), any(String.class))).willReturn(new HttpResponse(true, "{\"authenticated\":\"true\"}")); - - assertTrue(ls.authenticate(openmrsUsername, openmrsPassword)); - } - - @Test - public void testUser() throws JSONException { - BDDMockito.given(HttpUtil.get(any(String.class), any(String.class), any(String.class), any(String.class))).willReturn(new HttpResponse(true, "{\"results\":[{\"uuid\":\"baa5c5d3-cebe-11e4-9a12-040144de7001\",\"display\":\"admin\",\"username\":\"admin\",\"systemId\":\"admin\",\"privileges\":[],\"roles\":[],\"userProperties\":{\"showRetired\":\"false\",\"defaultLocation\":\"\",\"showVerbose\":\"false\",\"notification\":\"\",\"notificationAddress\":\"\",\"loginAttempts\":\"0\"},\"person\":{\"uuid\":\"aeb5ecd0-cebe-11e4-9a12-040144de7001\",\"display\":\"Super User\",\"gender\":\"M\",\"preferredName\":{\"uuid\":\"aebebad3-cebe-11e4-9a12-040144de7001\",\"display\":\"Super User\"},\"attributes\":[{\"uuid\":\"65040584-b558-4b2a-b73d-f6e681839492\",\"display\":\"Health Center = 2\"},{\"uuid\":\"0f60bb3d-abf8-407e-88fd-2da4b49afef9\",\"display\":\"Location = cd4ed528-87cd-42ee-a175-5e7089521ebd\"}]}}]}")); - BDDMockito.given(HttpUtil.delete(any(String.class), any(String.class), any(String.class), any(String.class))).willReturn(new HttpResponse(true, "{\"results\":{}")); - assertTrue(ls.getUser("admin").getUsername().equalsIgnoreCase("admin")); - } -} diff --git a/opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/PatientTest.java b/opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/PatientTest.java deleted file mode 100644 index 1574720e33..0000000000 --- a/opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/PatientTest.java +++ /dev/null @@ -1,47 +0,0 @@ -package org.opensrp.connector.openmrs.service; - -import java.io.IOException; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.UUID; - -import org.joda.time.DateTime; -import org.json.JSONException; -import org.junit.Before; -import org.junit.Test; -import org.opensrp.domain.Address; -import org.opensrp.domain.Client; - -public class PatientTest extends TestResourceLoader { - - PatientService s; - - public PatientTest() throws IOException { - super(); - } - - @Before - public void setup() { - s = new PatientService(openmrsOpenmrsUrl, openmrsUsername, openmrsPassword); - } - - @Test - public void shouldCreatePerson() throws JSONException { - List
addresses = new ArrayList<>(); - addresses.add(new Address("BIRTH", DateTime.now(), DateTime.now(), null, "LAT", "LON", "PCODE", "SINDH", "PK")); - addresses.add(new Address("DEATH", DateTime.now(), DateTime.now(), null, "LATd", "LONd", "dPCODE", "KPK", "PK")); - Map attribs = new HashMap<>(); - //attribs.put("Household ID", "HH112"); - Client c = new Client(UUID.randomUUID().toString()).withFirstName("FN").withMiddleName("MN").withLastName("LN") - .withBirthdate(new DateTime(), true).withDeathdate(new DateTime(), false).withGender("MALE"); - - c.withAddresses(addresses).withAttributes(attribs); - //.withIdentifier("Birth Reg Num", "b-8912819"+new Random().nextInt(99)) - //.withIdentifier("Death Reg Num", "d-ewj-js3u2"+new Random().nextInt(99)) - if (pushToOpenmrsForTest && s.getPatientByIdentifierUUID(c.getBaseEntityId()) == null){ - System.out.println(s.createPatient(c)); - } - } -} diff --git a/opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/TestResourceLoader.java b/opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/TestResourceLoader.java deleted file mode 100644 index 0e266d21e5..0000000000 --- a/opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/TestResourceLoader.java +++ /dev/null @@ -1,84 +0,0 @@ -package org.opensrp.connector.openmrs.service; - -import java.io.File; -import java.io.FileReader; -import java.io.IOException; -import java.util.Properties; - -import org.opensrp.connector.dhis2.DHIS2DatasetPush; -import org.opensrp.form.domain.FormSubmission; -import org.springframework.core.io.ClassPathResource; -import org.springframework.core.io.DefaultResourceLoader; -import org.springframework.core.io.Resource; -import org.springframework.core.io.ResourceLoader; -import org.springframework.core.io.support.PropertiesLoaderUtils; - -import com.google.gson.Gson; -import com.google.gson.JsonIOException; -import com.mysql.jdbc.StringUtils; - -public class TestResourceLoader { - - protected static String openmrsOpenmrsUrl; - - protected static String openmrsUsername; - - protected static String openmrsPassword; - - protected String formDirPath; - - protected String dhis2Url; - - protected String dhis2Username; - - protected String dhis2Password; - - protected boolean pushToOpenmrsForTest; - - protected PatientService patientService; - - protected EncounterService encounterService; - - protected DHIS2DatasetPush dhis2DatasetPush; - - protected OpenmrsLocationService openmrsLocationService; - - protected String couchDBUserName; - - protected String couchDBPassword; - - public TestResourceLoader() throws IOException { - Resource resource = new ClassPathResource("/opensrp.properties"); - Properties props = PropertiesLoaderUtils.loadProperties(resource); - openmrsOpenmrsUrl = props.getProperty("openmrs.url"); - openmrsUsername = props.getProperty("openmrs.username"); - openmrsPassword = props.getProperty("openmrs.password"); - formDirPath = props.getProperty("form.directory.name"); - - dhis2Url = props.getProperty("dhis2.url"); - dhis2Username = props.getProperty("dhis2.username"); - dhis2Password = props.getProperty("dhis2.password"); - - String rc = props.getProperty("openmrs.test.make-rest-call"); - pushToOpenmrsForTest = StringUtils.isEmptyOrWhitespaceOnly(rc) ? false : Boolean.parseBoolean(rc); - - this.patientService = new PatientService(openmrsOpenmrsUrl, openmrsUsername, openmrsPassword); - this.encounterService = new EncounterService(openmrsOpenmrsUrl, openmrsUsername, openmrsPassword); - this.openmrsLocationService = new OpenmrsLocationService(openmrsOpenmrsUrl, openmrsUsername, openmrsPassword); - this.dhis2DatasetPush = new DHIS2DatasetPush(dhis2Url, dhis2Username, dhis2Password); - this.encounterService.setPatientService(patientService); - couchDBUserName = props.getProperty("couchdb.username"); - couchDBPassword = props.getProperty("couchdb.password"); - } - - protected FormSubmission getFormSubmissionFor(String formName, Integer number) throws JsonIOException, IOException { - ResourceLoader loader = new DefaultResourceLoader(); - String path = loader.getResource(formDirPath).getURI().getPath(); - File fsfile = new File(path + "/" + formName + "/form_submission" + (number == null ? "" : number) + ".json"); - return new Gson().fromJson(new FileReader(fsfile), FormSubmission.class); - } - - protected FormSubmission getFormSubmissionFor(String formName) throws JsonIOException, IOException { - return getFormSubmissionFor(formName, null); - } -} diff --git a/opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/it/EventClient.java b/opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/it/EventClient.java deleted file mode 100644 index c8d25aae42..0000000000 --- a/opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/it/EventClient.java +++ /dev/null @@ -1,137 +0,0 @@ -package org.opensrp.connector.openmrs.service.it; - -import java.io.IOException; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import org.joda.time.DateTime; -import org.joda.time.DateTimeZone; -import org.json.JSONException; -import org.json.JSONObject; -import org.opensrp.connector.openmrs.service.PatientService; -import org.opensrp.domain.Address; -import org.opensrp.domain.Client; -import org.opensrp.domain.Event; -import org.opensrp.domain.Obs; - -public class EventClient extends OpenmrsApiService { - - final static String text = "text"; - - final static String formSubmissionId = "formSubmissionId"; - - final static String baseEntityId = "2"; - - final static String M_ZEIR_ID = "M_ZEIR_ID"; - - final static String ZEIR_ID = "ZEIR_ID"; - - final static String mother = "mother"; - - final static String description = "description"; - - static PatientService patientService = new PatientService(openmrsOpenmrsUrl, openmrsUsername, openmrsPassword); - - public EventClient() throws IOException { - super(); - // TODO Auto-generated constructor stub - } - - public static Event getEvent() { - Event expectedEvent = new Event("2", "TestEncounterType", new DateTime(0l, DateTimeZone.UTC), "entityType", - "providerId", "locationId", formSubmissionId); - expectedEvent.addIdentifier("key", "value"); - Obs obs = new Obs(); - obs.setFieldCode("163260AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"); - obs.setFieldDataType(text); - obs.setFieldType("concept"); - obs.setParentCode("678AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"); - List values = new ArrayList(); - values.add("09-03-2017"); - obs.setValues(values); - List observations = new ArrayList<>(); - observations.add(obs); - expectedEvent.setObs(observations); - - return expectedEvent; - } - - public static Client getMotherClient() { - Client expectedClient = new Client("127").withFirstName("monika").withGender("male") - .withBirthdate(new DateTime(), false); - Map identifiers = new HashMap<>(); - identifiers.put(M_ZEIR_ID, "159451-r7_mother3s"); - expectedClient.setIdentifiers(identifiers); - return expectedClient; - } - - public static Client getChildClient() { - Client expectedClient = new Client("129").withFirstName("momima").withGender("male") - .withBirthdate(new DateTime(), false); - Map identifiers = new HashMap<>(); - identifiers.put(ZEIR_ID, "159451-r7r_child"); - //identifiers.put("OPENMRS_UUID", "b1def4fa-fed8-4d54-a6aa-cbb7523b6f24"); - expectedClient.setIdentifiers(identifiers); - List list = new ArrayList<>(); - list.add("127"); - Map> relationships = new HashMap<>(); - relationships.put(mother, list); - expectedClient.setRelationships(relationships); - return expectedClient; - } - - public static Client getMother1Client() { - Client expectedClient = new Client("53").withFirstName("testmotherName").withGender("male") - .withBirthdate(new DateTime(), false); - Map identifiers = new HashMap<>(); - identifiers.put(M_ZEIR_ID, "159451-53_mothers"); - expectedClient.setIdentifiers(identifiers); - return expectedClient; - } - - public static Client getChild1Client() { - Client expectedClient = new Client("52").withFirstName("testchildName").withGender("male") - .withBirthdate(new DateTime(), false); - Map identifiers = new HashMap<>(); - identifiers.put(ZEIR_ID, "159451-52_child"); - expectedClient.setIdentifiers(identifiers); - List list = new ArrayList<>(); - list.add("53"); - Map> relationships = new HashMap<>(); - relationships.put(mother, list); - expectedClient.setRelationships(relationships); - return expectedClient; - } - - public static JSONObject getCreatedPatientData(String fn, String mn, String ln, String OpenSRPThriveUID, - String attributeName, String baseEntityId) throws JSONException { - - Map addressFields = new HashMap<>(); - addressFields.put("ADDRESS1", "testAdress1"); - addressFields.put("ADDRESS2", "testAddress2"); - addressFields.put("ADDRESS3", "testAddress3"); - addressFields.put("ADDRESS4", "testAddress4"); - addressFields.put("ADDRESS4", "testAddress5"); - - Map attributes = new HashMap<>(); - - attributes.put(attributeName, "test value"); - List
addresses = new ArrayList<>(); - addresses.add(new Address("BIRTH", DateTime.now(), DateTime.now(), addressFields, "LAT", "LON", "PCODE", "SINDH", - "PK")); - addresses.add(new Address("DEATH", DateTime.now(), DateTime.now(), addressFields, "LATd", "LONd", "dPCODE", "KPK", - "PKA")); - Map attribs = new HashMap<>(); - - Client c = new Client(baseEntityId).withFirstName(fn).withMiddleName(mn).withLastName(ln) - .withBirthdate(new DateTime(), true).withDeathdate(new DateTime(), false).withGender("MALE"); - - c.withAddresses(addresses).withAttributes(attributes); - c.withIdentifier("OpenSRP Thrive UID", OpenSRPThriveUID); - JSONObject patient = patientService.createPatient(c); - return patient; - - } -} diff --git a/opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/it/HouseHoldServiceTest.java b/opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/it/HouseHoldServiceTest.java deleted file mode 100644 index 99b0e28b37..0000000000 --- a/opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/it/HouseHoldServiceTest.java +++ /dev/null @@ -1,218 +0,0 @@ -package org.opensrp.connector.openmrs.service.it; - -import static junit.framework.Assert.assertEquals; -import static junit.framework.Assert.assertNotSame; - -import java.io.IOException; -import java.text.ParseException; -import java.util.Map; -import java.util.UUID; - -import org.json.JSONArray; -import org.json.JSONException; -import org.json.JSONObject; -import org.junit.Before; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.opensrp.connector.openmrs.constants.OpenmrsHouseHold; -import org.opensrp.connector.openmrs.service.EncounterService; -import org.opensrp.connector.openmrs.service.HouseholdService; -import org.opensrp.connector.openmrs.service.OpenmrsUserService; -import org.opensrp.connector.openmrs.service.PatientService; -import org.opensrp.domain.Client; -import org.opensrp.domain.Event; -import org.opensrp.form.domain.FormSubmission; -import org.opensrp.service.formSubmission.FormEntityConverter; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.test.context.ContextConfiguration; -import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; - -import com.google.gson.JsonIOException; - -@RunWith(SpringJUnit4ClassRunner.class) -@ContextConfiguration("classpath:test-applicationContext-opensrp-connector.xml") -public class HouseHoldServiceTest extends OpenmrsApiService { - - @Autowired - private EncounterService es; - - @Autowired - private FormEntityConverter oc; - - @Autowired - private PatientService ps; - - @Autowired - private OpenmrsUserService us; - - @Autowired - private HouseholdService hhs; - - int firstIndex = 0; - - int secondIndex = 1; - - public HouseHoldServiceTest() throws IOException { - super(); - } - - @Before - public void setup() throws IOException { - - } - - @Test - public void testCreateRelationshipTypeAndGetRelationshipType() throws JSONException { - String AIsToB = "Mother"; - String BIsToA = "GrandMother"; - - JSONObject returnRelationshipType = hhs.createRelationshipType(AIsToB, BIsToA, "test relationship"); - String expectedAIsToB = AIsToB; - String expectedBIsToA = BIsToA; - String actualAIsToB = returnRelationshipType.getString(aIsToBKey); - String actualBIsToA = returnRelationshipType.getString(bIsToAKey); - String uuid = returnRelationshipType.getString(uuidKey); - assertEquals(expectedAIsToB, actualAIsToB); - assertEquals(expectedBIsToA, actualBIsToA); - String notSameRelation = "notSameRelation"; - assertNotSame(notSameRelation, actualBIsToA); - JSONObject findRelationshipType = hhs.findRelationshipTypeMatching(AIsToB); - - String actualForFindRelationshipTypeBIsToA = findRelationshipType.getString(bIsToAKey); - String actualForFindRelationshipTypeAIsToB = findRelationshipType.getString(aIsToBKey); - assertEquals(expectedAIsToB, actualForFindRelationshipTypeAIsToB); - assertEquals(expectedBIsToA, actualForFindRelationshipTypeBIsToA); - JSONObject getRelationshipType = hhs.getRelationshipType(AIsToB); - String actualForGetRelationshipTypeBIsToA = getRelationshipType.getString(bIsToAKey); - String actualForGetRelationshipTypeAIsToB = getRelationshipType.getString(aIsToBKey); - assertEquals(expectedAIsToB, actualForGetRelationshipTypeAIsToB); - assertEquals(expectedBIsToA, actualForGetRelationshipTypeBIsToA); - - assertNotSame(notSameRelation, actualForGetRelationshipTypeBIsToA); - deleteRelationshipType(uuid); - JSONObject getRelationshipTypeWhichNotExists = hhs.getRelationshipType(notSameRelation); - if (getRelationshipTypeWhichNotExists.has("error")) { - System.out.println("Not Found"); - } - - } - - @Test - public void testConvertRelationshipToOpenmrsJson() throws JSONException { - String expectedPersonA = "personA"; - String expectedPersonB = "personB"; - - JSONObject convertRelationshipToOpenmrsJson = hhs.convertRelationshipToOpenmrsJson(expectedPersonA, - "isARelationship", expectedPersonB); - String actualPersonA = convertRelationshipToOpenmrsJson.getString("personA"); - String actualPersonB = convertRelationshipToOpenmrsJson.getString("personB"); - assertEquals(expectedPersonA, actualPersonA); - assertEquals(expectedPersonB, actualPersonB); - String notSameRelation = "notSameRelation"; - assertNotSame(notSameRelation, actualPersonA); - assertNotSame(notSameRelation, expectedPersonB); - - } - - @Test - public void testConvertRelationshipTypeToOpenmrsJson() throws JSONException { - String AIsToB = "Mother"; - String BIsToA = "GrandMother"; - JSONObject convertRelationshipTypeToOpenmrsJson = hhs.convertRelationshipTypeToOpenmrsJson(AIsToB, BIsToA, - description); - String expectedAIsToB = AIsToB; - String expectedBIsToA = BIsToA; - - String actualAIsToB = convertRelationshipTypeToOpenmrsJson.getString(aIsToBKey); - String actualBIsToA = convertRelationshipTypeToOpenmrsJson.getString(bIsToAKey); - assertEquals(expectedAIsToB, actualAIsToB); - assertEquals(expectedBIsToA, actualBIsToA); - String notSameRelation = "notSameRelation"; - assertNotSame(notSameRelation, actualBIsToA); - } - - @Test - public void testHHScheduleData() throws JSONException, ParseException, JsonIOException, IOException { - FormSubmission fs = getFormSubmissionFor("new_household_registration", 6); - - /*** create patient *******/ - - String fn = "shumi"; - String mn = "sumaita"; - String ln = "khan"; - String baseEntity = UUID.randomUUID().toString(); - - String attributeName = "HouseholdAttributeName"; - JSONObject attribute = createPersonAttributeType(description, attributeName); - JSONObject firstPatient = EventClient.getCreatedPatientData(fn, mn, ln, "a3f2abf4-2699-4761-819a-cea739224164", - attributeName, baseEntity); - baseEntity = UUID.randomUUID().toString(); - JSONObject secondPatient = EventClient.getCreatedPatientData(fn, mn, ln, "babcd9d2-b3e9-4f6d-8a06-2df8f5fbf01f", - attributeName, baseEntity); - - Client hhhead = oc.getClientFromFormSubmission(fs); - Event ev = oc.getEventFromFormSubmission(fs); - Map> dep = oc.getDependentClientsFromFormSubmission(fs); - - OpenmrsHouseHold household = new OpenmrsHouseHold(hhhead, ev); - for (String hhmid : dep.keySet()) { - household.addHHMember((Client) dep.get(hhmid).get("client"), (Event) dep.get(hhmid).get("event")); - } - - JSONObject pr = us.getProvider(fs.anmId(),null); - if (pr == null) { - us.createProvider(fs.anmId(), fs.anmId()); - } - - JSONObject enct = es.getEncounterType(ev.getEventType()); - if (enct == null) { - es.createEncounterType(ev.getEventType(), "Encounter type created to fullfill scheduling test pre-reqs"); - } - - for (String hhmid : dep.keySet()) { - Event ein = (Event) dep.get(hhmid).get("event"); - JSONObject hmenct = es.getEncounterType(ein.getEventType()); - if (hmenct == null) { - es.createEncounterType(ein.getEventType(), "Encounter type created to fullfill scheduling test pre-reqs"); - } - - JSONObject response = hhs.saveHH(household, true); - - JSONArray encounters = response.getJSONArray(encountersKey); - JSONArray relationships = response.getJSONArray(relationshipsKey); - JSONObject hhEncounter = encounters.getJSONObject(firstIndex); - String hhEncounterUUID = hhEncounter.getString(uuidKey); - JSONObject hhEncounterType = hhEncounter.getJSONObject(encounterTypeKey); - String actualHHEncounterTypeName = hhEncounterType.getString(displayKey); - - JSONObject memberEncounter = encounters.getJSONObject(secondIndex); - String memberEncounterUUID = memberEncounter.getString(uuidKey); - - JSONObject meEncounterType = memberEncounter.getJSONObject(encounterTypeKey); - String actualMEEncounterTypeName = meEncounterType.getString(displayKey); - - JSONObject relationship = relationships.getJSONObject(firstIndex); - String relationshipUUID = relationship.getString(uuidKey); - JSONObject personB = relationship.getJSONObject("personB"); - JSONObject personA = relationship.getJSONObject("personA"); - String actualPersonBName = personB.getString(displayKey); - String actualPersonAName = personA.getString(displayKey); - - /* cleaning openmrs data */ - deleteEncounter(hhEncounterUUID); - deleteEncounter(memberEncounterUUID); - deleteRelation(relationshipUUID); - - String uuid = firstPatient.getString(uuidKey); - deletePerson(uuid); - String uuids = secondPatient.getString(uuidKey); - deletePerson(uuids); - deletePersonAttributeType(attribute.getString(uuidKey)); - assertEquals("New Household Registration", actualHHEncounterTypeName); - assertEquals("Census and New Woman Registration", actualMEEncounterTypeName); - assertEquals(fn + " " + mn + " " + ln, actualPersonBName); - assertEquals(fn + " " + mn + " " + ln, actualPersonAName); - } - } - -} diff --git a/opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/it/OpenmrsApiService.java b/opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/it/OpenmrsApiService.java deleted file mode 100644 index 8b1cdb77dd..0000000000 --- a/opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/it/OpenmrsApiService.java +++ /dev/null @@ -1,231 +0,0 @@ -package org.opensrp.connector.openmrs.service.it; - -import java.io.IOException; - -import org.json.JSONArray; -import org.json.JSONException; -import org.json.JSONObject; -import org.opensrp.common.util.HttpResponse; -import org.opensrp.common.util.HttpUtil; -import org.opensrp.connector.openmrs.service.OpenmrsLocationService; -import org.opensrp.connector.openmrs.service.TestResourceLoader; - -public abstract class OpenmrsApiService extends TestResourceLoader { - - OpenmrsLocationService ls; - - public OpenmrsApiService() throws IOException { - ls = new OpenmrsLocationService(openmrsOpenmrsUrl, openmrsUsername, openmrsPassword); - } - - final String OPENMRS_URL = openmrsOpenmrsUrl; - - final String PERSON_URL = "ws/rest/v1/person"; - - final String USER_URL = "ws/rest/v1/user"; - - final String PERSON_ATTRIBUTE_TYPE = "ws/rest/v1/personattributetype"; - - final String ENCOUTER_TYPE_URL = "ws/rest/v1/encountertype"; - - final String RELATIONSHIP_TYPE = "/ws/rest/v1/relationshiptype/"; - - final String LOCATION = "ws/rest/v1/location"; - - JSONObject person = new JSONObject(); - - JSONObject personAttributeType = new JSONObject(); - - final static String ageKey = "age"; - - final static String genderKey = "gender"; - - final static String birthdateKey = "birthdate"; - - final static String namesKey = "names"; - - final static String purgePartUrl = "?purge=true"; - - public final static String nameKey = "name"; - - final static String descriptionkey = "description"; - - final static String usernameKey = "username"; - - final static String passwordKey = "password"; - - public final static String personKey = "person"; - - public final static String formatKey = "format"; - - public final static String typeString = "java.lang.String"; - - public String aIsToBKey = "aIsToB"; - - public String bIsToAKey = "bIsToA"; - - public String description = "description"; - - public String uuidKey = "uuid"; - - public String displayKey = "display"; - - public String encountersKey = "encounters"; - - public String relationshipsKey = "relationships"; - - public String encounterTypeKey = "encounterType"; - - public String identifierKey = "identifier"; - - public String relationKey = "relation"; - - public String childrenKey = "children"; - - public String labelKey = "label"; - - public String nodeKey = "node"; - - public String OPENMRS_UUIDKey = "OPENMRS_UUID"; - - public String parentLocationKey = "parentLocation"; - - public String locationsHierarchyKey = "locationsHierarchy"; - - public String givenName = "givenName"; - - public String female = "F"; - - int indexKey = 0; - - public JSONObject createPerson(String fn, String mn, String ln) throws JSONException { - - person.put(genderKey, female); - person.put(birthdateKey, "2017-01-01"); - person.put(ageKey, "32"); - person.put(namesKey, new JSONArray("[{\"givenName\":\"" + fn + "\",\"middleName\":\"" + mn + "\", \"familyName\":\"" - + ln + "\"}]")); - String response = HttpUtil.post(HttpUtil.removeEndingSlash(OPENMRS_URL) + "/" + PERSON_URL, "", person.toString(), - openmrsUsername, openmrsPassword).body(); - - return new JSONObject(response); - - } - - public void deletePerson(String uuid) { - HttpUtil.delete(HttpUtil.removeEndingSlash(OPENMRS_URL) + "/ws/rest/v1/person/" + uuid + "?purge=true", "", - openmrsUsername, openmrsPassword); - } - - public JSONObject createUser(String userName, String password, String fn, String mn, String ln) throws JSONException { - - person.put(genderKey, female); - person.put(birthdateKey, "2017-02-01"); - person.put(ageKey, "32"); - person.put(namesKey, new JSONArray("[{\"givenName\":\"" + fn + "\",\"middleName\":\"" + mn + "\", \"familyName\":\"" - + ln + "\"}]")); - JSONObject user = new JSONObject(); - user.put(usernameKey, userName); - user.put(passwordKey, password); - user.put(personKey, person); - String response = HttpUtil.post(HttpUtil.removeEndingSlash(OPENMRS_URL) + "/" + USER_URL, "", user.toString(), - openmrsUsername, openmrsPassword).body(); - - return new JSONObject(response); - - } - - public JSONObject createPersonAttributeType(String desc, String name) throws JSONException { - - personAttributeType.put(descriptionkey, desc); - personAttributeType.put(nameKey, name); - personAttributeType.put(formatKey, "java.lang.String"); - String response = HttpUtil.post(HttpUtil.removeEndingSlash(OPENMRS_URL) + "/" + PERSON_ATTRIBUTE_TYPE, "", - personAttributeType.toString(), openmrsUsername, openmrsPassword).body(); - - return new JSONObject(response); - - } - - public void deletePersonAttributeType(String uuid) { - HttpResponse od = HttpUtil.delete(HttpUtil.removeEndingSlash(OPENMRS_URL) + "/ws/rest/v1/personattributetype/" - + uuid + purgePartUrl, "", openmrsUsername, openmrsPassword); - } - - public void deleteUser(String uuid) { - HttpResponse od = HttpUtil.delete(HttpUtil.removeEndingSlash(OPENMRS_URL) + "/ws/rest/v1/user/" + uuid - + purgePartUrl, "", openmrsUsername, openmrsPassword); - } - - public void deleteIdentifierType(String uuid) { - HttpUtil.delete( - HttpUtil.removeEndingSlash(OPENMRS_URL) + "/ws/rest/v1/patientidentifiertype/" + uuid + purgePartUrl, "", - openmrsUsername, openmrsPassword); - } - - public void deleteProvider(String uuid) { - - HttpUtil.delete(HttpUtil.removeEndingSlash(OPENMRS_URL) + "/ws/rest/v1/provider/" + uuid + purgePartUrl, "", - openmrsUsername, openmrsPassword); - - } - - public void deleteRelation(String uuid) { - HttpUtil.delete(HttpUtil.removeEndingSlash(OPENMRS_URL) + "/ws/rest/v1/relationship/" + uuid + purgePartUrl, "", - openmrsUsername, openmrsPassword); - } - - public JSONObject createEncounterType(String name, String desc) throws JSONException { - - JSONObject encounterType = new JSONObject(); - encounterType.put(nameKey, name); - encounterType.put(descriptionkey, desc); - String response = HttpUtil.post(HttpUtil.removeEndingSlash(OPENMRS_URL) + "/" + ENCOUTER_TYPE_URL, "", - encounterType.toString(), openmrsUsername, openmrsPassword).body(); - - return new JSONObject(response); - - } - - public void deleteEncounterType(String uuid) { - - HttpUtil.delete(HttpUtil.removeEndingSlash(OPENMRS_URL) + "/ws/rest/v1/encountertype/" + uuid + purgePartUrl, "", - openmrsUsername, openmrsPassword); - - } - - public void deleteEncounter(String uuid) { - - HttpUtil.delete(HttpUtil.removeEndingSlash(OPENMRS_URL) + "/ws/rest/v1/encounter/" + uuid + purgePartUrl, "", - openmrsUsername, openmrsPassword); - - } - - public void deleteRelationshipType(String uuid) { - - HttpUtil.delete(HttpUtil.removeEndingSlash(OPENMRS_URL) + RELATIONSHIP_TYPE + uuid + purgePartUrl, "", - openmrsUsername, openmrsPassword); - - } - - public JSONObject createLocation(String name, String parentLocation) throws JSONException { - JSONObject location = new JSONObject(); - String response = ""; - location.put(nameKey, name); - if (parentLocation != null || !parentLocation.isEmpty()) { - location.put("parentLocation", parentLocation); - } - response = HttpUtil.post(HttpUtil.removeEndingSlash(OPENMRS_URL) + "/" + LOCATION, "", location.toString(), - openmrsUsername, openmrsPassword).body(); - return new JSONObject(response); - - } - - public void deleteLocation(String uuid) { - - HttpUtil.delete(HttpUtil.removeEndingSlash(OPENMRS_URL) + "/" + LOCATION + "/" + uuid + "?purge=true", "", - openmrsUsername, openmrsPassword); - - } - -} diff --git a/opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/it/OpenmrsLocationTest.java b/opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/it/OpenmrsLocationTest.java deleted file mode 100644 index fd9948bb2a..0000000000 --- a/opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/it/OpenmrsLocationTest.java +++ /dev/null @@ -1,193 +0,0 @@ -package org.opensrp.connector.openmrs.service.it; - -import static junit.framework.Assert.assertEquals; -import static junit.framework.Assert.assertNotNull; - -import java.io.IOException; - -import org.json.JSONException; -import org.json.JSONObject; -import org.junit.Before; -import org.junit.Test; -import org.opensrp.api.domain.Location; -import org.opensrp.api.util.LocationTree; -import org.opensrp.connector.openmrs.service.OpenmrsLocationService; - -import com.google.gson.Gson; - -public class OpenmrsLocationTest extends OpenmrsApiService { - - OpenmrsLocationService ls; - - public OpenmrsLocationTest() throws IOException { - super(); - } - - @Before - public void setup() throws IOException { - ls = new OpenmrsLocationService(openmrsOpenmrsUrl, openmrsUsername, openmrsPassword); - } - - @Test - public void testLocationTree() throws JSONException { - LocationTree ltree = new Gson() - .fromJson( - "{\"locationsHierarchy\":{\"map\":{\"215caa30-1906-4210-8294-23eb7914c1dd\":{\"id\":\"215caa30-1906-4210-8294-23eb7914c1dd\",\"label\":\"3-KHA\",\"node\":{\"locationId\":\"215caa30-1906-4210-8294-23eb7914c1dd\",\"name\":\"3-KHA\",\"parentLocation\":{\"locationId\":\"1ccb61b5-022f-4735-95b4-1c57e9f7938f\",\"name\":\"Ward-3\",\"parentLocation\":{\"locationId\":\"725658c6-4d94-4791-bad6-614dec63d83b\",\"name\":\"KUPTALA\",\"voided\":false},\"voided\":false},\"tags\":[\"Unit\"],\"voided\":false},\"children\":{\"4ccd5a33-c462-4b53-b8c1-a1ad1c3ba0cf\":{\"id\":\"4ccd5a33-c462-4b53-b8c1-a1ad1c3ba0cf\",\"label\":\"DURGAPUR\",\"node\":{\"locationId\":\"4ccd5a33-c462-4b53-b8c1-a1ad1c3ba0cf\",\"name\":\"DURGAPUR\",\"parentLocation\":{\"locationId\":\"215caa30-1906-4210-8294-23eb7914c1dd\",\"name\":\"3-KHA\",\"parentLocation\":{\"locationId\":\"1ccb61b5-022f-4735-95b4-1c57e9f7938f\",\"name\":\"Ward-3\",\"voided\":false},\"voided\":false},\"tags\":[\"Mauza\"],\"voided\":false},\"parent\":\"215caa30-1906-4210-8294-23eb7914c1dd\"}},\"parent\":\"1ccb61b5-022f-4735-95b4-1c57e9f7938f\"},\"429feb8b-0b8d-4496-8e54-fdc94affed07\":{\"id\":\"429feb8b-0b8d-4496-8e54-fdc94affed07\",\"label\":\"1-KHA\",\"node\":{\"locationId\":\"429feb8b-0b8d-4496-8e54-fdc94affed07\",\"name\":\"1-KHA\",\"parentLocation\":{\"locationId\":\"bfeb65bd-bff0-41bb-81a0-0220a4200bff\",\"name\":\"Ward-1\",\"parentLocation\":{\"locationId\":\"725658c6-4d94-4791-bad6-614dec63d83b\",\"name\":\"KUPTALA\",\"voided\":false},\"voided\":false},\"tags\":[\"Unit\"],\"voided\":false},\"children\":{\"9047a5e3-66cf-4f83-b0b6-3cdd3d611272\":{\"id\":\"9047a5e3-66cf-4f83-b0b6-3cdd3d611272\",\"label\":\"Chapadaha Mauza\",\"node\":{\"locationId\":\"9047a5e3-66cf-4f83-b0b6-3cdd3d611272\",\"name\":\"Chapadaha Mauza\",\"parentLocation\":{\"locationId\":\"429feb8b-0b8d-4496-8e54-fdc94affed07\",\"name\":\"1-KHA\",\"parentLocation\":{\"locationId\":\"bfeb65bd-bff0-41bb-81a0-0220a4200bff\",\"name\":\"Ward-1\",\"voided\":false},\"voided\":false},\"tags\":[\"Mauza\"],\"voided\":false},\"parent\":\"429feb8b-0b8d-4496-8e54-fdc94affed07\"},\"a8b7d760-0e7e-4fdb-9450-b41d31d1ec34\":{\"id\":\"a8b7d760-0e7e-4fdb-9450-b41d31d1ec34\",\"label\":\"Kuptala-1-KHA\",\"node\":{\"locationId\":\"a8b7d760-0e7e-4fdb-9450-b41d31d1ec34\",\"name\":\"Kuptala-1-KHA\",\"parentLocation\":{\"locationId\":\"429feb8b-0b8d-4496-8e54-fdc94affed07\",\"name\":\"1-KHA\",\"parentLocation\":{\"locationId\":\"bfeb65bd-bff0-41bb-81a0-0220a4200bff\",\"name\":\"Ward-1\",\"voided\":false},\"voided\":false},\"tags\":[\"Mauza\"],\"voided\":false},\"parent\":\"429feb8b-0b8d-4496-8e54-fdc94affed07\"}},\"parent\":\"bfeb65bd-bff0-41bb-81a0-0220a4200bff\"},\"f2f803d5-857a-42a4-a05b-142c3327b4fc\":{\"id\":\"f2f803d5-857a-42a4-a05b-142c3327b4fc\",\"label\":\"SONORAY\",\"node\":{\"locationId\":\"f2f803d5-857a-42a4-a05b-142c3327b4fc\",\"name\":\"SONORAY\",\"parentLocation\":{\"locationId\":\"11eaac2c-12d6-4958-b548-2d6768776b10\",\"name\":\"SUNDARGANJ\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"voided\":false},\"voided\":false},\"tags\":[\"Union\"],\"voided\":false},\"parent\":\"11eaac2c-12d6-4958-b548-2d6768776b10\"},\"e0d50bc5-09b2-4102-809d-687fe71d5fd0\":{\"id\":\"e0d50bc5-09b2-4102-809d-687fe71d5fd0\",\"label\":\"SARBANANDA\",\"node\":{\"locationId\":\"e0d50bc5-09b2-4102-809d-687fe71d5fd0\",\"name\":\"SARBANANDA\",\"parentLocation\":{\"locationId\":\"11eaac2c-12d6-4958-b548-2d6768776b10\",\"name\":\"SUNDARGANJ\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"voided\":false},\"voided\":false},\"tags\":[\"Union\"],\"voided\":false},\"parent\":\"11eaac2c-12d6-4958-b548-2d6768776b10\"},\"e8964ad4-e6f2-4aff-bb61-28c08d01af51\":{\"id\":\"e8964ad4-e6f2-4aff-bb61-28c08d01af51\",\"label\":\"2-KHA\",\"node\":{\"locationId\":\"e8964ad4-e6f2-4aff-bb61-28c08d01af51\",\"name\":\"2-KHA\",\"parentLocation\":{\"locationId\":\"318e5671-368b-4e9c-8bc1-7a6fb545c1e5\",\"name\":\"Ward-2\",\"parentLocation\":{\"locationId\":\"725658c6-4d94-4791-bad6-614dec63d83b\",\"name\":\"KUPTALA\",\"voided\":false},\"voided\":false},\"tags\":[\"Unit\"],\"voided\":false},\"children\":{\"3a041478-5d39-4d42-b785-67c2ae56febb\":{\"id\":\"3a041478-5d39-4d42-b785-67c2ae56febb\",\"label\":\"Kuptala-2KHA\",\"node\":{\"locationId\":\"3a041478-5d39-4d42-b785-67c2ae56febb\",\"name\":\"Kuptala-2KHA\",\"parentLocation\":{\"locationId\":\"e8964ad4-e6f2-4aff-bb61-28c08d01af51\",\"name\":\"2-KHA\",\"parentLocation\":{\"locationId\":\"318e5671-368b-4e9c-8bc1-7a6fb545c1e5\",\"name\":\"Ward-2\",\"voided\":false},\"voided\":false},\"tags\":[\"Mauza\"],\"voided\":false},\"parent\":\"e8964ad4-e6f2-4aff-bb61-28c08d01af51\"},\"27e6d636-0683-4539-90b8-2c795318dc08\":{\"id\":\"27e6d636-0683-4539-90b8-2c795318dc08\",\"label\":\"BERADANGA\",\"node\":{\"locationId\":\"27e6d636-0683-4539-90b8-2c795318dc08\",\"name\":\"BERADANGA\",\"parentLocation\":{\"locationId\":\"e8964ad4-e6f2-4aff-bb61-28c08d01af51\",\"name\":\"2-KHA\",\"parentLocation\":{\"locationId\":\"318e5671-368b-4e9c-8bc1-7a6fb545c1e5\",\"name\":\"Ward-2\",\"voided\":false},\"voided\":false},\"tags\":[\"Mauza\"],\"voided\":false},\"parent\":\"e8964ad4-e6f2-4aff-bb61-28c08d01af51\"}},\"parent\":\"318e5671-368b-4e9c-8bc1-7a6fb545c1e5\"},\"5d0661b5-4868-49eb-a697-e4dc4348dfab\":{\"id\":\"5d0661b5-4868-49eb-a697-e4dc4348dfab\",\"label\":\"SHANTIRAM\",\"node\":{\"locationId\":\"5d0661b5-4868-49eb-a697-e4dc4348dfab\",\"name\":\"SHANTIRAM\",\"parentLocation\":{\"locationId\":\"11eaac2c-12d6-4958-b548-2d6768776b10\",\"name\":\"SUNDARGANJ\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"voided\":false},\"voided\":false},\"tags\":[\"Union\"],\"voided\":false},\"parent\":\"11eaac2c-12d6-4958-b548-2d6768776b10\"},\"f48a6482-2ffd-4596-8d9b-46dadc3c73df\":{\"id\":\"f48a6482-2ffd-4596-8d9b-46dadc3c73df\",\"label\":\"SRIPUR\",\"node\":{\"locationId\":\"f48a6482-2ffd-4596-8d9b-46dadc3c73df\",\"name\":\"SRIPUR\",\"parentLocation\":{\"locationId\":\"11eaac2c-12d6-4958-b548-2d6768776b10\",\"name\":\"SUNDARGANJ\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"voided\":false},\"voided\":false},\"tags\":[\"Union\"],\"voided\":false},\"parent\":\"11eaac2c-12d6-4958-b548-2d6768776b10\"},\"42423d74-a061-463b-93a1-2f773f0aae21\":{\"id\":\"42423d74-a061-463b-93a1-2f773f0aae21\",\"label\":\"1-KA\",\"node\":{\"locationId\":\"42423d74-a061-463b-93a1-2f773f0aae21\",\"name\":\"1-KA\",\"parentLocation\":{\"locationId\":\"bfeb65bd-bff0-41bb-81a0-0220a4200bff\",\"name\":\"Ward-1\",\"parentLocation\":{\"locationId\":\"725658c6-4d94-4791-bad6-614dec63d83b\",\"name\":\"KUPTALA\",\"voided\":false},\"voided\":false},\"tags\":[\"Unit\"],\"voided\":false},\"children\":{\"88abc9f1-d698-41e3-8e2d-0c900b16dfe6\":{\"id\":\"88abc9f1-d698-41e3-8e2d-0c900b16dfe6\",\"label\":\"Kuptala-1-KA\",\"node\":{\"locationId\":\"88abc9f1-d698-41e3-8e2d-0c900b16dfe6\",\"name\":\"Kuptala-1-KA\",\"parentLocation\":{\"locationId\":\"42423d74-a061-463b-93a1-2f773f0aae21\",\"name\":\"1-KA\",\"parentLocation\":{\"locationId\":\"bfeb65bd-bff0-41bb-81a0-0220a4200bff\",\"name\":\"Ward-1\",\"voided\":false},\"voided\":false},\"tags\":[\"Mauza\"],\"voided\":false},\"parent\":\"42423d74-a061-463b-93a1-2f773f0aae21\"}},\"parent\":\"bfeb65bd-bff0-41bb-81a0-0220a4200bff\"},\"dff51374-be72-46cb-a9a3-c7989e24430c\":{\"id\":\"dff51374-be72-46cb-a9a3-c7989e24430c\",\"label\":\"DHOPADANGA\",\"node\":{\"locationId\":\"dff51374-be72-46cb-a9a3-c7989e24430c\",\"name\":\"DHOPADANGA\",\"parentLocation\":{\"locationId\":\"11eaac2c-12d6-4958-b548-2d6768776b10\",\"name\":\"SUNDARGANJ\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"voided\":false},\"voided\":false},\"tags\":[\"Union\"],\"voided\":false},\"parent\":\"11eaac2c-12d6-4958-b548-2d6768776b10\"},\"e8e88d43-e181-42f1-9de5-143149922eea\":{\"id\":\"e8e88d43-e181-42f1-9de5-143149922eea\",\"label\":\"RAMJIBAN\",\"node\":{\"locationId\":\"e8e88d43-e181-42f1-9de5-143149922eea\",\"name\":\"RAMJIBAN\",\"parentLocation\":{\"locationId\":\"11eaac2c-12d6-4958-b548-2d6768776b10\",\"name\":\"SUNDARGANJ\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"voided\":false},\"voided\":false},\"tags\":[\"Union\"],\"voided\":false},\"parent\":\"11eaac2c-12d6-4958-b548-2d6768776b10\"},\"d3367458-f5e5-4039-b1e7-f087cc5be3fa\":{\"id\":\"d3367458-f5e5-4039-b1e7-f087cc5be3fa\",\"label\":\"KANCHIBARI\",\"node\":{\"locationId\":\"d3367458-f5e5-4039-b1e7-f087cc5be3fa\",\"name\":\"KANCHIBARI\",\"parentLocation\":{\"locationId\":\"11eaac2c-12d6-4958-b548-2d6768776b10\",\"name\":\"SUNDARGANJ\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"voided\":false},\"voided\":false},\"tags\":[\"Union\"],\"voided\":false},\"parent\":\"11eaac2c-12d6-4958-b548-2d6768776b10\"},\"fa32786b-4063-4f39-b72d-a5bc0e549193\":{\"id\":\"fa32786b-4063-4f39-b72d-a5bc0e549193\",\"label\":\"3-KA\",\"node\":{\"locationId\":\"fa32786b-4063-4f39-b72d-a5bc0e549193\",\"name\":\"3-KA\",\"parentLocation\":{\"locationId\":\"1ccb61b5-022f-4735-95b4-1c57e9f7938f\",\"name\":\"Ward-3\",\"parentLocation\":{\"locationId\":\"725658c6-4d94-4791-bad6-614dec63d83b\",\"name\":\"KUPTALA\",\"voided\":false},\"voided\":false},\"tags\":[\"Unit\"],\"voided\":false},\"children\":{\"f872c792-32ac-49e7-a386-f6b968968ef1\":{\"id\":\"f872c792-32ac-49e7-a386-f6b968968ef1\",\"label\":\"Kuptala-3-KA\",\"node\":{\"locationId\":\"f872c792-32ac-49e7-a386-f6b968968ef1\",\"name\":\"Kuptala-3-KA\",\"parentLocation\":{\"locationId\":\"fa32786b-4063-4f39-b72d-a5bc0e549193\",\"name\":\"3-KA\",\"parentLocation\":{\"locationId\":\"1ccb61b5-022f-4735-95b4-1c57e9f7938f\",\"name\":\"Ward-3\",\"voided\":false},\"voided\":false},\"tags\":[\"Mauza\"],\"voided\":false},\"parent\":\"fa32786b-4063-4f39-b72d-a5bc0e549193\"}},\"parent\":\"1ccb61b5-022f-4735-95b4-1c57e9f7938f\"},\"765cb701-9e61-4ead-afb9-a63c943f4f14\":{\"id\":\"765cb701-9e61-4ead-afb9-a63c943f4f14\",\"label\":\"Korangi\",\"node\":{\"locationId\":\"765cb701-9e61-4ead-afb9-a63c943f4f14\",\"name\":\"Korangi\",\"tags\":[\"Town\"],\"voided\":false}},\"a57cef08-b47e-4b59-acd8-354279a63027\":{\"id\":\"a57cef08-b47e-4b59-acd8-354279a63027\",\"label\":\"3-KA\",\"node\":{\"locationId\":\"a57cef08-b47e-4b59-acd8-354279a63027\",\"name\":\"3-KA\",\"parentLocation\":{\"locationId\":\"f6b22dad-75c4-47e6-923a-3d0a005ed8a7\",\"name\":\"Ward-3\",\"parentLocation\":{\"locationId\":\"b25f114e-22e4-4cf8-89ef-af94ea2cecc5\",\"name\":\"NALDANGA\",\"voided\":false},\"voided\":false},\"tags\":[\"Unit\"],\"voided\":false},\"children\":{\"f30df310-0d30-4482-8dfe-667def649c20\":{\"id\":\"f30df310-0d30-4482-8dfe-667def649c20\",\"label\":\"PROTAP - MANDUAR PARA\",\"node\":{\"locationId\":\"f30df310-0d30-4482-8dfe-667def649c20\",\"name\":\"PROTAP - MANDUAR PARA\",\"parentLocation\":{\"locationId\":\"a57cef08-b47e-4b59-acd8-354279a63027\",\"name\":\"3-KA\",\"parentLocation\":{\"locationId\":\"f6b22dad-75c4-47e6-923a-3d0a005ed8a7\",\"name\":\"Ward-3\",\"voided\":false},\"voided\":false},\"tags\":[\"Mauza\"],\"voided\":false},\"parent\":\"a57cef08-b47e-4b59-acd8-354279a63027\"},\"f6933584-9248-409d-b06a-0988c470ce45\":{\"id\":\"f6933584-9248-409d-b06a-0988c470ce45\",\"label\":\"PROTAP - FUL PARA\",\"node\":{\"locationId\":\"f6933584-9248-409d-b06a-0988c470ce45\",\"name\":\"PROTAP - FUL PARA\",\"parentLocation\":{\"locationId\":\"a57cef08-b47e-4b59-acd8-354279a63027\",\"name\":\"3-KA\",\"parentLocation\":{\"locationId\":\"f6b22dad-75c4-47e6-923a-3d0a005ed8a7\",\"name\":\"Ward-3\",\"voided\":false},\"voided\":false},\"tags\":[\"Mauza\"],\"voided\":false},\"parent\":\"a57cef08-b47e-4b59-acd8-354279a63027\"},\"bac5a3b2-456f-4500-93a7-7a24be91909e\":{\"id\":\"bac5a3b2-456f-4500-93a7-7a24be91909e\",\"label\":\"PROTAP - KATA PROTAP\",\"node\":{\"locationId\":\"bac5a3b2-456f-4500-93a7-7a24be91909e\",\"name\":\"PROTAP - KATA PROTAP\",\"parentLocation\":{\"locationId\":\"a57cef08-b47e-4b59-acd8-354279a63027\",\"name\":\"3-KA\",\"parentLocation\":{\"locationId\":\"f6b22dad-75c4-47e6-923a-3d0a005ed8a7\",\"name\":\"Ward-3\",\"voided\":false},\"voided\":false},\"tags\":[\"Mauza\"],\"voided\":false},\"parent\":\"a57cef08-b47e-4b59-acd8-354279a63027\"}},\"parent\":\"f6b22dad-75c4-47e6-923a-3d0a005ed8a7\"},\"f4e3cb47-fea1-418c-9a63-26374e424043\":{\"id\":\"f4e3cb47-fea1-418c-9a63-26374e424043\",\"label\":\"RANGPUR\",\"node\":{\"locationId\":\"f4e3cb47-fea1-418c-9a63-26374e424043\",\"name\":\"RANGPUR\",\"tags\":[\"Division\"],\"voided\":false},\"children\":{\"a556070e-cd96-49bc-b079-2a415d476a97\":{\"id\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"label\":\"GAIBANDHA\",\"node\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"parentLocation\":{\"locationId\":\"f4e3cb47-fea1-418c-9a63-26374e424043\",\"name\":\"RANGPUR\",\"voided\":false},\"tags\":[\"District\"],\"voided\":false},\"children\":{\"960ada36-be32-4867-a0aa-b7f4b835c61f\":{\"id\":\"960ada36-be32-4867-a0aa-b7f4b835c61f\",\"label\":\"SADULLAPUR\",\"node\":{\"locationId\":\"960ada36-be32-4867-a0aa-b7f4b835c61f\",\"name\":\"SADULLAPUR\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"parentLocation\":{\"locationId\":\"f4e3cb47-fea1-418c-9a63-26374e424043\",\"name\":\"RANGPUR\",\"voided\":false},\"voided\":false},\"tags\":[\"Upazilla\"],\"voided\":false},\"children\":{\"bd57db27-71b9-467e-9503-ce2dec74e61b\":{\"id\":\"bd57db27-71b9-467e-9503-ce2dec74e61b\",\"label\":\"JAMALPUR\",\"node\":{\"locationId\":\"bd57db27-71b9-467e-9503-ce2dec74e61b\",\"name\":\"JAMALPUR\",\"parentLocation\":{\"locationId\":\"960ada36-be32-4867-a0aa-b7f4b835c61f\",\"name\":\"SADULLAPUR\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"voided\":false},\"voided\":false},\"tags\":[\"Union\"],\"voided\":false},\"parent\":\"960ada36-be32-4867-a0aa-b7f4b835c61f\"},\"1b93c923-5ebb-4c0a-8bbb-067cc5fc5c9f\":{\"id\":\"1b93c923-5ebb-4c0a-8bbb-067cc5fc5c9f\",\"label\":\"FARIDPUR\",\"node\":{\"locationId\":\"1b93c923-5ebb-4c0a-8bbb-067cc5fc5c9f\",\"name\":\"FARIDPUR\",\"parentLocation\":{\"locationId\":\"960ada36-be32-4867-a0aa-b7f4b835c61f\",\"name\":\"SADULLAPUR\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"voided\":false},\"voided\":false},\"tags\":[\"Union\"],\"voided\":false},\"parent\":\"960ada36-be32-4867-a0aa-b7f4b835c61f\"},\"a39ce1d7-d8ee-49e9-8a81-02f7949f5ff0\":{\"id\":\"a39ce1d7-d8ee-49e9-8a81-02f7949f5ff0\",\"label\":\"KUMARPARA\",\"node\":{\"locationId\":\"a39ce1d7-d8ee-49e9-8a81-02f7949f5ff0\",\"name\":\"KUMARPARA\",\"parentLocation\":{\"locationId\":\"960ada36-be32-4867-a0aa-b7f4b835c61f\",\"name\":\"SADULLAPUR\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"voided\":false},\"voided\":false},\"tags\":[\"Union\"],\"voided\":false},\"parent\":\"960ada36-be32-4867-a0aa-b7f4b835c61f\"},\"07b798a0-2219-4447-8b72-2510c0526a15\":{\"id\":\"07b798a0-2219-4447-8b72-2510c0526a15\",\"label\":\"DAMODARPUR\",\"node\":{\"locationId\":\"07b798a0-2219-4447-8b72-2510c0526a15\",\"name\":\"DAMODARPUR\",\"parentLocation\":{\"locationId\":\"960ada36-be32-4867-a0aa-b7f4b835c61f\",\"name\":\"SADULLAPUR\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"voided\":false},\"voided\":false},\"tags\":[\"Union\"],\"voided\":false},\"parent\":\"960ada36-be32-4867-a0aa-b7f4b835c61f\"},\"b25f114e-22e4-4cf8-89ef-af94ea2cecc5\":{\"id\":\"b25f114e-22e4-4cf8-89ef-af94ea2cecc5\",\"label\":\"NALDANGA\",\"node\":{\"locationId\":\"b25f114e-22e4-4cf8-89ef-af94ea2cecc5\",\"name\":\"NALDANGA\",\"parentLocation\":{\"locationId\":\"960ada36-be32-4867-a0aa-b7f4b835c61f\",\"name\":\"SADULLAPUR\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"voided\":false},\"voided\":false},\"tags\":[\"Union\"],\"voided\":false},\"parent\":\"960ada36-be32-4867-a0aa-b7f4b835c61f\"},\"e7d39ba2-45a1-498c-bcc5-937f179d81fa\":{\"id\":\"e7d39ba2-45a1-498c-bcc5-937f179d81fa\",\"label\":\"RASULPUR\",\"node\":{\"locationId\":\"e7d39ba2-45a1-498c-bcc5-937f179d81fa\",\"name\":\"RASULPUR\",\"parentLocation\":{\"locationId\":\"960ada36-be32-4867-a0aa-b7f4b835c61f\",\"name\":\"SADULLAPUR\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"voided\":false},\"voided\":false},\"tags\":[\"Union\"],\"voided\":false},\"parent\":\"960ada36-be32-4867-a0aa-b7f4b835c61f\"}},\"parent\":\"a556070e-cd96-49bc-b079-2a415d476a97\"},\"57b34716-c291-4ca4-a7c8-28e65ab8819a\":{\"id\":\"57b34716-c291-4ca4-a7c8-28e65ab8819a\",\"label\":\"GAIBANDHA SADAR\",\"node\":{\"locationId\":\"57b34716-c291-4ca4-a7c8-28e65ab8819a\",\"name\":\"GAIBANDHA SADAR\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"parentLocation\":{\"locationId\":\"f4e3cb47-fea1-418c-9a63-26374e424043\",\"name\":\"RANGPUR\",\"voided\":false},\"voided\":false},\"tags\":[\"Upazilla\"],\"voided\":false},\"children\":{\"7491ac95-05d2-49a8-b6a9-463f357171eb\":{\"id\":\"7491ac95-05d2-49a8-b6a9-463f357171eb\",\"label\":\"LAKSHMIPUR\",\"node\":{\"locationId\":\"7491ac95-05d2-49a8-b6a9-463f357171eb\",\"name\":\"LAKSHMIPUR\",\"parentLocation\":{\"locationId\":\"57b34716-c291-4ca4-a7c8-28e65ab8819a\",\"name\":\"GAIBANDHA SADAR\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"voided\":false},\"voided\":false},\"tags\":[\"Union\"],\"voided\":false},\"parent\":\"57b34716-c291-4ca4-a7c8-28e65ab8819a\"},\"725658c6-4d94-4791-bad6-614dec63d83b\":{\"id\":\"725658c6-4d94-4791-bad6-614dec63d83b\",\"label\":\"KUPTALA\",\"node\":{\"locationId\":\"725658c6-4d94-4791-bad6-614dec63d83b\",\"name\":\"KUPTALA\",\"parentLocation\":{\"locationId\":\"57b34716-c291-4ca4-a7c8-28e65ab8819a\",\"name\":\"GAIBANDHA SADAR\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"voided\":false},\"voided\":false},\"tags\":[\"Union\"],\"voided\":false},\"parent\":\"57b34716-c291-4ca4-a7c8-28e65ab8819a\"},\"d658d99a-1941-406b-bbdc-b46a2545de92\":{\"id\":\"d658d99a-1941-406b-bbdc-b46a2545de92\",\"label\":\"MALIBARI\",\"node\":{\"locationId\":\"d658d99a-1941-406b-bbdc-b46a2545de92\",\"name\":\"MALIBARI\",\"parentLocation\":{\"locationId\":\"57b34716-c291-4ca4-a7c8-28e65ab8819a\",\"name\":\"GAIBANDHA SADAR\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"voided\":false},\"voided\":false},\"tags\":[\"Union\"],\"voided\":false},\"parent\":\"57b34716-c291-4ca4-a7c8-28e65ab8819a\"}},\"parent\":\"a556070e-cd96-49bc-b079-2a415d476a97\"}},\"parent\":\"f4e3cb47-fea1-418c-9a63-26374e424043\"}}},\"cd4ed528-87cd-42ee-a175-5e7089521ebd\":{\"id\":\"cd4ed528-87cd-42ee-a175-5e7089521ebd\",\"label\":\"Pakistan\",\"node\":{\"locationId\":\"cd4ed528-87cd-42ee-a175-5e7089521ebd\",\"name\":\"Pakistan\",\"tags\":[\"Country\"],\"voided\":false},\"children\":{\"461f2be7-c95d-433c-b1d7-c68f272409d7\":{\"id\":\"461f2be7-c95d-433c-b1d7-c68f272409d7\",\"label\":\"Sindh\",\"node\":{\"locationId\":\"461f2be7-c95d-433c-b1d7-c68f272409d7\",\"name\":\"Sindh\",\"parentLocation\":{\"locationId\":\"cd4ed528-87cd-42ee-a175-5e7089521ebd\",\"name\":\"Pakistan\",\"voided\":false},\"tags\":[\"Province\"],\"voided\":false},\"children\":{\"a529e2fc-6f0d-4e60-a5df-789fe17cca48\":{\"id\":\"a529e2fc-6f0d-4e60-a5df-789fe17cca48\",\"label\":\"Karachi\",\"node\":{\"locationId\":\"a529e2fc-6f0d-4e60-a5df-789fe17cca48\",\"name\":\"Karachi\",\"parentLocation\":{\"locationId\":\"461f2be7-c95d-433c-b1d7-c68f272409d7\",\"name\":\"Sindh\",\"parentLocation\":{\"locationId\":\"cd4ed528-87cd-42ee-a175-5e7089521ebd\",\"name\":\"Pakistan\",\"voided\":false},\"voided\":false},\"tags\":[\"City\"],\"voided\":false},\"children\":{\"60c21502-fec1-40f5-b77d-6df3f92771ce\":{\"id\":\"60c21502-fec1-40f5-b77d-6df3f92771ce\",\"label\":\"Baldia\",\"node\":{\"locationId\":\"60c21502-fec1-40f5-b77d-6df3f92771ce\",\"name\":\"Baldia\",\"parentLocation\":{\"locationId\":\"a529e2fc-6f0d-4e60-a5df-789fe17cca48\",\"name\":\"Karachi\",\"parentLocation\":{\"locationId\":\"461f2be7-c95d-433c-b1d7-c68f272409d7\",\"name\":\"Sindh\",\"voided\":false},\"voided\":false},\"tags\":[\"Town\"],\"attributes\":{\"at1\":\"atttt1\"},\"voided\":false},\"parent\":\"a529e2fc-6f0d-4e60-a5df-789fe17cca48\"}},\"parent\":\"461f2be7-c95d-433c-b1d7-c68f272409d7\"}},\"parent\":\"cd4ed528-87cd-42ee-a175-5e7089521ebd\"}}},\"96cd1c2a-f678-4687-bd87-8f4c5eae261a\":{\"id\":\"96cd1c2a-f678-4687-bd87-8f4c5eae261a\",\"label\":\"BAMANDANGA\",\"node\":{\"locationId\":\"96cd1c2a-f678-4687-bd87-8f4c5eae261a\",\"name\":\"BAMANDANGA\",\"parentLocation\":{\"locationId\":\"11eaac2c-12d6-4958-b548-2d6768776b10\",\"name\":\"SUNDARGANJ\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"voided\":false},\"voided\":false},\"tags\":[\"Union\"],\"voided\":false},\"parent\":\"11eaac2c-12d6-4958-b548-2d6768776b10\"},\"e1f223f5-a59e-4a54-b44e-472ff2438684\":{\"id\":\"e1f223f5-a59e-4a54-b44e-472ff2438684\",\"label\":\"2-KA\",\"node\":{\"locationId\":\"e1f223f5-a59e-4a54-b44e-472ff2438684\",\"name\":\"2-KA\",\"parentLocation\":{\"locationId\":\"318e5671-368b-4e9c-8bc1-7a6fb545c1e5\",\"name\":\"Ward-2\",\"parentLocation\":{\"locationId\":\"725658c6-4d94-4791-bad6-614dec63d83b\",\"name\":\"KUPTALA\",\"voided\":false},\"voided\":false},\"tags\":[\"Unit\"],\"voided\":false},\"children\":{\"fbe4c8cf-5d52-4bc3-a4ec-9dcc1f5504cd\":{\"id\":\"fbe4c8cf-5d52-4bc3-a4ec-9dcc1f5504cd\",\"label\":\"RAMPRASHAD\",\"node\":{\"locationId\":\"fbe4c8cf-5d52-4bc3-a4ec-9dcc1f5504cd\",\"name\":\"RAMPRASHAD\",\"parentLocation\":{\"locationId\":\"e1f223f5-a59e-4a54-b44e-472ff2438684\",\"name\":\"2-KA\",\"parentLocation\":{\"locationId\":\"318e5671-368b-4e9c-8bc1-7a6fb545c1e5\",\"name\":\"Ward-2\",\"voided\":false},\"voided\":false},\"tags\":[\"Mauza\"],\"voided\":false},\"parent\":\"e1f223f5-a59e-4a54-b44e-472ff2438684\"},\"36fc5398-8e7a-430b-ab3b-557788b4d89f\":{\"id\":\"36fc5398-8e7a-430b-ab3b-557788b4d89f\",\"label\":\"Kuptala-2-KA\",\"node\":{\"locationId\":\"36fc5398-8e7a-430b-ab3b-557788b4d89f\",\"name\":\"Kuptala-2-KA\",\"parentLocation\":{\"locationId\":\"e1f223f5-a59e-4a54-b44e-472ff2438684\",\"name\":\"2-KA\",\"parentLocation\":{\"locationId\":\"318e5671-368b-4e9c-8bc1-7a6fb545c1e5\",\"name\":\"Ward-2\",\"voided\":false},\"voided\":false},\"tags\":[\"Mauza\"],\"voided\":false},\"parent\":\"e1f223f5-a59e-4a54-b44e-472ff2438684\"}},\"parent\":\"318e5671-368b-4e9c-8bc1-7a6fb545c1e5\"},\"774bca32-01ab-4c7a-91f0-b5c51c41945a\":{\"id\":\"774bca32-01ab-4c7a-91f0-b5c51c41945a\",\"label\":\"CHHAPARHATI\",\"node\":{\"locationId\":\"774bca32-01ab-4c7a-91f0-b5c51c41945a\",\"name\":\"CHHAPARHATI\",\"parentLocation\":{\"locationId\":\"11eaac2c-12d6-4958-b548-2d6768776b10\",\"name\":\"SUNDARGANJ\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"voided\":false},\"voided\":false},\"tags\":[\"Union\"],\"voided\":false},\"parent\":\"11eaac2c-12d6-4958-b548-2d6768776b10\"},\"f332d8ac-e57f-49ba-8fb0-c428651697a2\":{\"id\":\"f332d8ac-e57f-49ba-8fb0-c428651697a2\",\"label\":\"3-KHA\",\"node\":{\"locationId\":\"f332d8ac-e57f-49ba-8fb0-c428651697a2\",\"name\":\"3-KHA\",\"parentLocation\":{\"locationId\":\"f6b22dad-75c4-47e6-923a-3d0a005ed8a7\",\"name\":\"Ward-3\",\"parentLocation\":{\"locationId\":\"b25f114e-22e4-4cf8-89ef-af94ea2cecc5\",\"name\":\"NALDANGA\",\"voided\":false},\"voided\":false},\"tags\":[\"Unit\"],\"voided\":false},\"children\":{\"2fc43738-ace5-4961-8e8f-ab7d00e5bc63\":{\"id\":\"2fc43738-ace5-4961-8e8f-ab7d00e5bc63\",\"label\":\"DASLIA - ALL PARAS\",\"node\":{\"locationId\":\"2fc43738-ace5-4961-8e8f-ab7d00e5bc63\",\"name\":\"DASLIA - ALL PARAS\",\"parentLocation\":{\"locationId\":\"f332d8ac-e57f-49ba-8fb0-c428651697a2\",\"name\":\"3-KHA\",\"parentLocation\":{\"locationId\":\"f6b22dad-75c4-47e6-923a-3d0a005ed8a7\",\"name\":\"Ward-3\",\"voided\":false},\"voided\":false},\"tags\":[\"Mauza\"],\"voided\":false},\"parent\":\"f332d8ac-e57f-49ba-8fb0-c428651697a2\"},\"50d3dddd-9fba-4895-9b96-fe66d42e6fed\":{\"id\":\"50d3dddd-9fba-4895-9b96-fe66d42e6fed\",\"label\":\"PROTAP - OPADANI PARA\",\"node\":{\"locationId\":\"50d3dddd-9fba-4895-9b96-fe66d42e6fed\",\"name\":\"PROTAP - OPADANI PARA\",\"parentLocation\":{\"locationId\":\"f332d8ac-e57f-49ba-8fb0-c428651697a2\",\"name\":\"3-KHA\",\"parentLocation\":{\"locationId\":\"f6b22dad-75c4-47e6-923a-3d0a005ed8a7\",\"name\":\"Ward-3\",\"voided\":false},\"voided\":false},\"tags\":[\"Mauza\"],\"voided\":false},\"parent\":\"f332d8ac-e57f-49ba-8fb0-c428651697a2\"},\"80efdc06-59b7-4594-bf24-561a7eb12676\":{\"id\":\"80efdc06-59b7-4594-bf24-561a7eb12676\",\"label\":\"PROTAP - SARDAR PARA\",\"node\":{\"locationId\":\"80efdc06-59b7-4594-bf24-561a7eb12676\",\"name\":\"PROTAP - SARDAR PARA\",\"parentLocation\":{\"locationId\":\"f332d8ac-e57f-49ba-8fb0-c428651697a2\",\"name\":\"3-KHA\",\"parentLocation\":{\"locationId\":\"f6b22dad-75c4-47e6-923a-3d0a005ed8a7\",\"name\":\"Ward-3\",\"voided\":false},\"voided\":false},\"tags\":[\"Mauza\"],\"voided\":false},\"parent\":\"f332d8ac-e57f-49ba-8fb0-c428651697a2\"}},\"parent\":\"f6b22dad-75c4-47e6-923a-3d0a005ed8a7\"}},\"parentChildren\":{\"215caa30-1906-4210-8294-23eb7914c1dd\":[\"4ccd5a33-c462-4b53-b8c1-a1ad1c3ba0cf\"],\"318e5671-368b-4e9c-8bc1-7a6fb545c1e5\":[\"e1f223f5-a59e-4a54-b44e-472ff2438684\",\"e8964ad4-e6f2-4aff-bb61-28c08d01af51\"],\"429feb8b-0b8d-4496-8e54-fdc94affed07\":[\"9047a5e3-66cf-4f83-b0b6-3cdd3d611272\",\"a8b7d760-0e7e-4fdb-9450-b41d31d1ec34\"],\"e8964ad4-e6f2-4aff-bb61-28c08d01af51\":[\"3a041478-5d39-4d42-b785-67c2ae56febb\",\"27e6d636-0683-4539-90b8-2c795318dc08\"],\"f6b22dad-75c4-47e6-923a-3d0a005ed8a7\":[\"a57cef08-b47e-4b59-acd8-354279a63027\",\"f332d8ac-e57f-49ba-8fb0-c428651697a2\"],\"a529e2fc-6f0d-4e60-a5df-789fe17cca48\":[\"60c21502-fec1-40f5-b77d-6df3f92771ce\"],\"42423d74-a061-463b-93a1-2f773f0aae21\":[\"88abc9f1-d698-41e3-8e2d-0c900b16dfe6\"],\"fa32786b-4063-4f39-b72d-a5bc0e549193\":[\"f872c792-32ac-49e7-a386-f6b968968ef1\"],\"a57cef08-b47e-4b59-acd8-354279a63027\":[\"f30df310-0d30-4482-8dfe-667def649c20\",\"f6933584-9248-409d-b06a-0988c470ce45\",\"bac5a3b2-456f-4500-93a7-7a24be91909e\"],\"cd4ed528-87cd-42ee-a175-5e7089521ebd\":[\"461f2be7-c95d-433c-b1d7-c68f272409d7\"],\"f4e3cb47-fea1-418c-9a63-26374e424043\":[\"a556070e-cd96-49bc-b079-2a415d476a97\"],\"e1f223f5-a59e-4a54-b44e-472ff2438684\":[\"fbe4c8cf-5d52-4bc3-a4ec-9dcc1f5504cd\",\"36fc5398-8e7a-430b-ab3b-557788b4d89f\"],\"bfeb65bd-bff0-41bb-81a0-0220a4200bff\":[\"429feb8b-0b8d-4496-8e54-fdc94affed07\",\"42423d74-a061-463b-93a1-2f773f0aae21\"],\"11eaac2c-12d6-4958-b548-2d6768776b10\":[\"dff51374-be72-46cb-a9a3-c7989e24430c\",\"e8e88d43-e181-42f1-9de5-143149922eea\",\"d3367458-f5e5-4039-b1e7-f087cc5be3fa\",\"96cd1c2a-f678-4687-bd87-8f4c5eae261a\",\"f2f803d5-857a-42a4-a05b-142c3327b4fc\",\"e0d50bc5-09b2-4102-809d-687fe71d5fd0\",\"774bca32-01ab-4c7a-91f0-b5c51c41945a\",\"5d0661b5-4868-49eb-a697-e4dc4348dfab\",\"f48a6482-2ffd-4596-8d9b-46dadc3c73df\"],\"461f2be7-c95d-433c-b1d7-c68f272409d7\":[\"a529e2fc-6f0d-4e60-a5df-789fe17cca48\"],\"a556070e-cd96-49bc-b079-2a415d476a97\":[\"960ada36-be32-4867-a0aa-b7f4b835c61f\",\"57b34716-c291-4ca4-a7c8-28e65ab8819a\"],\"960ada36-be32-4867-a0aa-b7f4b835c61f\":[\"bd57db27-71b9-467e-9503-ce2dec74e61b\",\"1b93c923-5ebb-4c0a-8bbb-067cc5fc5c9f\",\"a39ce1d7-d8ee-49e9-8a81-02f7949f5ff0\",\"b25f114e-22e4-4cf8-89ef-af94ea2cecc5\",\"07b798a0-2219-4447-8b72-2510c0526a15\",\"e7d39ba2-45a1-498c-bcc5-937f179d81fa\"],\"57b34716-c291-4ca4-a7c8-28e65ab8819a\":[\"7491ac95-05d2-49a8-b6a9-463f357171eb\",\"725658c6-4d94-4791-bad6-614dec63d83b\",\"d658d99a-1941-406b-bbdc-b46a2545de92\"],\"f332d8ac-e57f-49ba-8fb0-c428651697a2\":[\"2fc43738-ace5-4961-8e8f-ab7d00e5bc63\",\"50d3dddd-9fba-4895-9b96-fe66d42e6fed\",\"80efdc06-59b7-4594-bf24-561a7eb12676\"],\"1ccb61b5-022f-4735-95b4-1c57e9f7938f\":[\"215caa30-1906-4210-8294-23eb7914c1dd\",\"fa32786b-4063-4f39-b72d-a5bc0e549193\"]}}}", - LocationTree.class); - String ltreestr = new Gson().toJson(ltree, LocationTree.class); - assertNotNull(ltreestr); - LocationTree lconverted = new Gson().fromJson(ltreestr, LocationTree.class); - assertNotNull(lconverted); - String lconvertedstr = new Gson().toJson(lconverted, LocationTree.class); - assertEquals(ltreestr, lconvertedstr); - } - - @Test - public void testGetLocationTreeOf() throws JSONException { - String expectedCountry = "BDCountry"; - String expectedDivision = "BDDivision"; - String expectedDistrict = "BDDistrict"; - String expectedSudDistrict = "BDSubDistrict"; - String expectedUnion = "BDUnion"; - String expectedWard = "BDWard"; - JSONObject country = createLocation(expectedCountry, ""); - JSONObject division = createLocation(expectedDivision, country.getString(uuidKey)); - JSONObject district = createLocation(expectedDistrict, division.getString(uuidKey)); - JSONObject sudDistrict = createLocation(expectedSudDistrict, district.getString(uuidKey)); - JSONObject union = createLocation(expectedUnion, sudDistrict.getString(uuidKey)); - JSONObject ward = createLocation(expectedWard, union.getString(uuidKey)); - - JSONObject location = new JSONObject(ls.getLocationTreeOf(expectedWard)); - deleteLocation(country.getString(uuidKey)); - JSONObject response = location.getJSONObject(locationsHierarchyKey); - - JSONObject countryJSON = response.getJSONObject(country.getString(uuidKey)); - JSONObject countryNode = countryJSON.getJSONObject(nodeKey); - String actualParentOfCountry = countryNode.getString(parentLocationKey); - String actualCountry = countryJSON.getString(labelKey); - assertEquals(expectedCountry, actualCountry); - assertEquals(null + "", actualParentOfCountry); - - JSONObject divisionJSON = countryJSON.getJSONObject(childrenKey); - JSONObject divisionJSONOFUUID = divisionJSON.getJSONObject(division.getString(uuidKey)); - String actualDivision = divisionJSONOFUUID.getString(labelKey); - JSONObject nodeOFDivision = divisionJSONOFUUID.getJSONObject(nodeKey); - JSONObject parentOFDivision = nodeOFDivision.getJSONObject(parentLocationKey); - String actualParentOFDIvision = parentOFDivision.getString(nameKey); - assertEquals(expectedDivision, actualDivision); - String expectedDivisionPArent = expectedCountry; - assertEquals(expectedDivisionPArent, actualParentOFDIvision); - - JSONObject districtJSON = divisionJSONOFUUID.getJSONObject(childrenKey); - JSONObject districtJSONOFUUID = districtJSON.getJSONObject(district.getString(uuidKey)); - String actualDistrict = districtJSONOFUUID.getString(labelKey); - JSONObject nodeOFDistrict = districtJSONOFUUID.getJSONObject(nodeKey); - JSONObject parentOFDistrict = nodeOFDistrict.getJSONObject(parentLocationKey); - String actualParentOFDistrict = parentOFDistrict.getString(nameKey); - assertEquals(expectedDistrict, actualDistrict); - String expectedDistrictParent = expectedDivision; - assertEquals(expectedDistrictParent, actualParentOFDistrict); - - JSONObject sudDistrictJSON = districtJSONOFUUID.getJSONObject(childrenKey); - JSONObject subDistrictJSONOFUUID = sudDistrictJSON.getJSONObject(sudDistrict.getString(uuidKey)); - String actualSubDistrict = subDistrictJSONOFUUID.getString(labelKey); - JSONObject nodeOFSUbDistrict = subDistrictJSONOFUUID.getJSONObject(nodeKey); - JSONObject parentOFSubDistrict = nodeOFSUbDistrict.getJSONObject(parentLocationKey); - String actualParentOFSubDistrict = parentOFSubDistrict.getString(nameKey); - assertEquals(expectedSudDistrict, actualSubDistrict); - String expectedSubDistrictParent = expectedDistrict; - assertEquals(expectedSubDistrictParent, actualParentOFSubDistrict); - - JSONObject uionJSON = subDistrictJSONOFUUID.getJSONObject(childrenKey); - JSONObject unionJSONOFUUID = uionJSON.getJSONObject(union.getString(uuidKey)); - String actualunion = unionJSONOFUUID.getString(labelKey); - JSONObject nodeOFUnion = unionJSONOFUUID.getJSONObject(nodeKey); - JSONObject parentOFUnion = nodeOFUnion.getJSONObject(parentLocationKey); - String actualParentOFUnion = parentOFUnion.getString(nameKey); - assertEquals(expectedUnion, actualunion); - String expectedUnionParent = expectedSudDistrict; - assertEquals(expectedUnionParent, actualParentOFUnion); - - JSONObject wardJSON = unionJSONOFUUID.getJSONObject(childrenKey); - JSONObject wardJSONOFUUID = wardJSON.getJSONObject(ward.getString(uuidKey)); - String actualward = wardJSONOFUUID.getString(labelKey); - JSONObject nodeOFWard = wardJSONOFUUID.getJSONObject(nodeKey); - JSONObject parentOFWard = nodeOFWard.getJSONObject(parentLocationKey); - String actualParentOFWard = parentOFWard.getString(nameKey); - assertEquals(expectedWard, actualward); - String expectedUnionWard = expectedUnion; - assertEquals(expectedUnionWard, actualParentOFWard); - - } - - @Test(expected = JSONException.class) - public void testGetLocationTreeOfZException() throws JSONException { - String locationName = "testLocationName"; - ls.getLocationTreeOf(locationName); - } - - @Test - public void testGetLocation() throws JSONException { - String locationName = "testLocationName"; - createLocation(locationName, ""); - Location location = ls.getLocation(locationName); - String actualLocation = location.getName(); - deleteLocation(location.getLocationId()); - String expectedlocation = locationName; - assertEquals(expectedlocation, actualLocation); - } - - @Test(expected = JSONException.class) - public void testGetLocationException() throws JSONException { - String locationName = "testLocationName"; - ls.getLocation(locationName); - - } - - @Test - public void testGetLocationTreeOfArray() throws JSONException { - String firstLocation = "testLocationA"; - String secondLocation = "testLocationB"; - JSONObject responseFirstLocation = createLocation(firstLocation, ""); - JSONObject responseSecondLocation = createLocation(secondLocation, ""); - String[] str = new String[2]; - str[0] = firstLocation; - str[1] = secondLocation; - LocationTree lt = ls.getLocationTreeOf(str); - deleteLocation(responseFirstLocation.getString(uuidKey)); - deleteLocation(responseSecondLocation.getString(uuidKey)); - JSONObject locations = new JSONObject(lt); - JSONObject responseLocationTree = locations.getJSONObject(locationsHierarchyKey); - JSONObject firstLocationJSONOFUUID = responseLocationTree.getJSONObject(responseFirstLocation.getString("uuid")); - JSONObject secondLocationJSONOFUUID = responseLocationTree.getJSONObject(responseSecondLocation.getString("uuid")); - String actulaFirstLocation = firstLocationJSONOFUUID.getString(labelKey); - String actulaSecondLocation = secondLocationJSONOFUUID.getString(labelKey); - String expectedFirstLocation = firstLocation; - String expectedSecondLocation = secondLocation; - assertEquals(expectedFirstLocation, actulaFirstLocation); - assertEquals(expectedSecondLocation, actulaSecondLocation); - - } - - @Test(expected = JSONException.class) - public void testGetLocationTreeOfArrayException() throws JSONException { - String firstLocation = "testLocationC"; - String secondLocation = "testLcationD"; - String[] str = new String[2]; - str[0] = firstLocation; - str[1] = secondLocation; - ls.getLocationTreeOf(str); - } - - @Test - public void testgetLocationTree() throws JSONException { - String expectedLocation = "testlocationofOpenmrs"; - JSONObject responseLocation = createLocation(expectedLocation, ""); - LocationTree lt = ls.getLocationTree(); - deleteLocation(responseLocation.getString(uuidKey)); - Location location = lt.findLocation(responseLocation.getString(uuidKey)); - String actualLocation = location.getName(); - assertEquals(expectedLocation, actualLocation); - - } -} diff --git a/opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/it/OpenmrsSyncerListenerTest.java b/opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/it/OpenmrsSyncerListenerTest.java deleted file mode 100644 index cc242d43a1..0000000000 --- a/opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/it/OpenmrsSyncerListenerTest.java +++ /dev/null @@ -1,180 +0,0 @@ -package org.opensrp.connector.openmrs.service.it; - -import static junit.framework.Assert.assertEquals; - -import java.io.IOException; - -import org.json.JSONArray; -import org.json.JSONException; -import org.json.JSONObject; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.motechproject.scheduler.domain.MotechEvent; -import org.opensrp.connector.openmrs.schedule.OpenmrsSyncerListener; -import org.opensrp.connector.openmrs.service.EncounterService; -import org.opensrp.connector.openmrs.service.OpenmrsUserService; -import org.opensrp.connector.openmrs.service.PatientService; -import org.opensrp.domain.Client; -import org.opensrp.domain.Event; -import org.opensrp.repository.couch.AllClients; -import org.opensrp.repository.couch.AllEvents; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.test.context.ContextConfiguration; -import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; - -@RunWith(SpringJUnit4ClassRunner.class) -@ContextConfiguration("classpath:test-applicationContext-opensrp-connector.xml") -public class OpenmrsSyncerListenerTest extends OpenmrsApiService { - - @Autowired - private AllClients allClients; - - @Autowired - private AllEvents allEvents; - - @Autowired - private PatientService patientService; - - @Autowired - private OpenmrsUserService openmrsUserService; - - @Autowired - private OpenmrsSyncerListener openmrsSyncerListener; - - @Autowired - private EncounterService encounterService; - - MotechEvent event = new MotechEvent("subject"); - - public OpenmrsSyncerListenerTest() throws IOException { - super(); - // TODO Auto-generated constructor stub - } - - @Before - public void setup() { - allEvents.removeAll(); - allClients.removeAll(); - - } - - @After - public void tearDown() { - //allEvents.removeAll(); - //allClients.removeAll(); - } - - @Test - public void testPushClient() throws JSONException { - - Client expectedChildClient = EventClient.getChildClient(); - allClients.add(expectedChildClient); - Client expectedMotherClient = EventClient.getMotherClient(); - allClients.add(expectedMotherClient); - - String identifierType = "OPENMRS_UUID"; - JSONObject expectedIdentifier = patientService.getIdentifierType(identifierType); - - if (!identifierType.equals(expectedIdentifier.get(displayKey))) { - patientService.createIdentifierType(identifierType, identifierType); - } - - JSONObject createdPatientJsonObject = openmrsSyncerListener.pushClient(indexKey); - System.out.println("createdPatientJsonObject:" + createdPatientJsonObject); - JSONObject updatedPatient = openmrsSyncerListener.pushClient(indexKey); - - JSONArray createdPatientJsonArray = createdPatientJsonObject.getJSONArray("patient"); - JSONArray createdRelationArray = createdPatientJsonObject.getJSONArray(relationKey); - JSONArray updatedRelationArray = updatedPatient.getJSONArray(relationKey); - String actualChildNname = ""; - String actualMotherName = ""; - - JSONObject craetedRelationObject = createdRelationArray.getJSONObject(indexKey); - String createdRelationId = craetedRelationObject.getString(uuidKey); - - JSONObject updatedRelationObject = updatedRelationArray.getJSONObject(indexKey); - String updatedRelationId = updatedRelationObject.getString(uuidKey); - - deleteRelation(createdRelationId); - deleteRelation(updatedRelationId); - - for (int i = 0; i < createdPatientJsonArray.length(); i++) { - JSONObject patient = createdPatientJsonArray.getJSONObject(i); - JSONObject person = patient.getJSONObject(personKey); - deletePerson(person.getString(uuidKey));// client person - if (person.getString(genderKey).equalsIgnoreCase("male")) { - actualChildNname = person.getString("display"); - } else if (person.getString(genderKey).equalsIgnoreCase("Female")) { - actualMotherName = person.getString(displayKey); - } - } - - JSONObject childFromRelation = craetedRelationObject.getJSONObject("personB"); - JSONObject motherFromRelation = craetedRelationObject.getJSONObject("personA"); - String actualMotherNameForRelation = motherFromRelation.getString(displayKey); - String actualChildNameForRelation = childFromRelation.getString(displayKey); - - assertEquals(expectedChildClient.fullName() + " -", actualChildNameForRelation); - assertEquals(expectedMotherClient.fullName() + " -", actualMotherNameForRelation); - - assertEquals(expectedChildClient.fullName() + " -", actualChildNname); - assertEquals(expectedMotherClient.fullName() + " -", actualMotherName); - - } - - @Test - public void testPushEvent() throws JSONException { - - Event creatingEvent = EventClient.getEvent(); - - allEvents.add(creatingEvent); - - String IdentifierType = "TestIdentifierType"; - JSONObject identifier = patientService.createIdentifierType(IdentifierType, "description"); - String identifierUuid = identifier.getString(uuidKey); - String fn = "jack"; - String mn = "bgu"; - String ln = "nil"; - String userName = "providerId"; - String password = "Dotel@1234"; - JSONObject person = createPerson(fn, mn, ln); - JSONObject usr = createUser(userName, password, fn, mn, ln); - - openmrsUserService.createProvider(userName, IdentifierType); - - JSONObject provider = openmrsUserService.getProvider(IdentifierType,null); - JSONObject personObject = provider.getJSONObject(personKey); - String actualEncounterType = "TestEncounterType"; - JSONObject returnEncounterType = encounterService.createEncounterType(actualEncounterType, "Test desc"); - JSONObject expectedEvent = openmrsSyncerListener.pushEvent(0); - System.err.println("expectedEvent:" + expectedEvent); - openmrsSyncerListener.pushEvent(0); - - /** Data cleaning ***/ - deletePerson(person.getString(uuidKey)); - deleteUser(usr.getString(uuidKey)); - deleteIdentifierType(identifierUuid); - deleteProvider(provider.getString(uuidKey)); - deletePerson(personObject.getString(uuidKey).trim()); - deleteEncounter(expectedEvent.getString(uuidKey)); - deleteEncounterType(returnEncounterType.getString(uuidKey)); - JSONArray obsArray = expectedEvent.getJSONArray("obs"); - JSONObject obs = obsArray.getJSONObject(0); - JSONArray encounterProviders = expectedEvent.getJSONArray("encounterProviders"); - JSONObject encounterProvider = encounterProviders.getJSONObject(0); - JSONObject encounterType = expectedEvent.getJSONObject(encounterTypeKey); - String expectedEncounterProvider = fn + " " + mn + " " + ln + ":" + " Unknown"; - String actualEncounterProvider = encounterProvider.getString(displayKey); - - String expectedConceptOfObservation = "WHITE BLOOD CELLS: "; - String actualConceptOfObservation = obs.getString(displayKey); - String expectedEncounterType = encounterType.getString(displayKey); - - assertEquals(expectedConceptOfObservation, actualConceptOfObservation); - assertEquals(expectedEncounterProvider, actualEncounterProvider); - assertEquals(expectedEncounterType, actualEncounterType); - } - -} diff --git a/opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/it/OpenmrsUserServiceTest.java b/opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/it/OpenmrsUserServiceTest.java deleted file mode 100644 index 3d1692ac25..0000000000 --- a/opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/it/OpenmrsUserServiceTest.java +++ /dev/null @@ -1,85 +0,0 @@ -package org.opensrp.connector.openmrs.service.it; - -import static junit.framework.Assert.assertEquals; -import static junit.framework.Assert.assertNotSame; -import static junit.framework.Assert.assertTrue; - -import java.io.IOException; - -import org.json.JSONException; -import org.json.JSONObject; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.opensrp.connector.openmrs.service.OpenmrsUserService; -import org.opensrp.connector.openmrs.service.PatientService; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.test.context.ContextConfiguration; -import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; - -@RunWith(SpringJUnit4ClassRunner.class) -@ContextConfiguration("classpath:test-applicationContext-opensrp-connector.xml") -public class OpenmrsUserServiceTest extends OpenmrsApiService { - - @Autowired - private OpenmrsUserService openmrsUserService; - - @Autowired - private PatientService patientService; - - public OpenmrsUserServiceTest() throws IOException { - super(); - // TODO Auto-generated constructor stub - } - - @Test - public void testGetUser() throws JSONException { - assertEquals(openmrsUsername, openmrsUserService.getUser(openmrsUsername).getUsername()); - assertNotSame("123456gtyyy", openmrsUserService.getUser(openmrsUsername).getUsername()); - } - - @Test(expected = NullPointerException.class) - public void testNullPointerExceptionForGetUser() throws JSONException { - openmrsUserService.getUser("openmrsUsername786").getUsername(); - } - - @Test - public void testAuthenticateAnDeleteSession() throws JSONException { - assertTrue(openmrsUserService.authenticate(openmrsUsername, openmrsPassword)); - openmrsUserService.deleteSession(openmrsUsername, openmrsPassword); - } - - @Test - public void shouldTestProviderAndUser() throws JSONException { - - String IdentifierType = "TestIdentifierType"; - JSONObject identifier = patientService.createIdentifierType(IdentifierType, "description"); - String identifierUuid = identifier.getString(uuidKey); - String fn = "Royals"; - String mn = "Jack"; - String ln = "nil"; - String userName = "Royal"; - String password = "Dotel@1234"; - JSONObject person = createPerson(fn, mn, ln); - JSONObject usr = createUser(userName, password, fn, mn, ln); - - String getUserName = openmrsUserService.getUser(userName).getUsername(); - assertEquals("Should equal User:", userName, getUserName); - - openmrsUserService.createProvider(userName, IdentifierType); - - JSONObject provider = openmrsUserService.getProvider(IdentifierType,null); - JSONObject personObject = provider.getJSONObject(personKey); - - assertEquals("Should equal IdentifierType:", IdentifierType, provider.get(identifierKey)); - assertEquals("Should equal Person:", fn + " " + mn + " " + ln, personObject.get(displayKey)); - assertEquals("Should equal Provider:", IdentifierType + " - " + fn + " " + mn + " " + ln, provider.get(displayKey)); - - deletePerson(person.getString(uuidKey)); - deleteUser(usr.getString(uuidKey)); - deleteIdentifierType(identifierUuid); - deleteProvider(provider.getString(uuidKey)); - deletePerson(personObject.getString(uuidKey).trim()); - - } - -} diff --git a/opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/it/PatientaServiceTest.java b/opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/it/PatientaServiceTest.java deleted file mode 100644 index fea15707c1..0000000000 --- a/opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/it/PatientaServiceTest.java +++ /dev/null @@ -1,86 +0,0 @@ -package org.opensrp.connector.openmrs.service.it; - -import static junit.framework.Assert.assertEquals; - -import java.io.IOException; -import java.util.List; -import java.util.Random; -import java.util.UUID; - -import org.json.JSONException; -import org.json.JSONObject; -import org.junit.Before; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.opensrp.connector.openmrs.service.PatientService; -import org.opensrp.domain.Multimedia; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.test.context.ContextConfiguration; -import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; - -@RunWith(SpringJUnit4ClassRunner.class) -@ContextConfiguration("classpath:test-applicationContext-opensrp-connector.xml") -public class PatientaServiceTest extends OpenmrsApiService { - - String baseEntity = UUID.randomUUID().toString(); - - @Autowired - private PatientService patientService; - - public PatientaServiceTest() throws IOException { - super(); - // TODO Auto-generated constructor stub - } - - @Before - public void setup() { - - } - - @Test - public void shouldCreatePatient() throws JSONException { - String fn = "jack"; - String mn = "bgu"; - String ln = "nil"; - - String attributeName = "HHAttribute"; - JSONObject attribute = createPersonAttributeType("Description", attributeName); - - JSONObject patient = EventClient.getCreatedPatientData(fn, mn, ln, "b-8912819" + new Random().nextInt(99), - attributeName, baseEntity); - JSONObject person = patient.getJSONObject(personKey); - String personName = person.getString(displayKey); - String uuid = patient.getString(uuidKey); - deletePerson(uuid); - assertEquals("Should equal Person:", fn + " " + mn + " " + ln, personName); - deletePersonAttributeType(attribute.getString(uuidKey)); - - } - - @Test - public void testPatientImageUpload() throws IOException, JSONException { - - String fn = "moushumi"; - String mn = "sumaita"; - String ln = "khan"; - - String attributeName = "PatientAttributeName"; - JSONObject attribute = createPersonAttributeType("Description", attributeName); - String OpenSRPThriveUID = "b-8912819" + new Random().nextInt(99); - JSONObject patient = EventClient.getCreatedPatientData(fn, mn, ln, OpenSRPThriveUID, attributeName, baseEntity); - - Multimedia multimedia = new Multimedia(); - multimedia.setFilePath("/multimedia/sumon/images/1.jpg"); - multimedia.setCaseId(OpenSRPThriveUID); - multimedia.setFileCategory("dp"); - multimedia.setProviderId("sumon"); - multimedia.setContentType("Image"); - String expectedResponse = "Patient Image is successfully uploaded !"; - List resposne = patientService.patientImageUpload(multimedia); - String uuids = patient.getString(uuidKey); - deletePerson(uuids); - - deletePersonAttributeType(attribute.getString(uuidKey)); - assertEquals(expectedResponse, resposne.get(0)); - } -} diff --git a/opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/it/TestLoggerAppender.java b/opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/it/TestLoggerAppender.java deleted file mode 100644 index 0853a54a85..0000000000 --- a/opensrp-connector/src/test/java/org/opensrp/connector/openmrs/service/it/TestLoggerAppender.java +++ /dev/null @@ -1,31 +0,0 @@ -package org.opensrp.connector.openmrs.service.it; - -import java.util.ArrayList; -import java.util.List; - -import org.apache.log4j.AppenderSkeleton; -import org.apache.log4j.spi.LoggingEvent; - -public class TestLoggerAppender extends AppenderSkeleton { - - private final List log = new ArrayList(); - - @Override - public boolean requiresLayout() { - return false; - } - - @Override - protected void append(final LoggingEvent loggingEvent) { - log.add(loggingEvent); - } - - @Override - public void close() { - System.err.println("close"); - } - - public List getLog() { - return new ArrayList(log); - } -} diff --git a/opensrp-connector/src/test/resources/form/basic_reg/form.json b/opensrp-connector/src/test/resources/form/basic_reg/form.json deleted file mode 100644 index 1dcfa303dc..0000000000 --- a/opensrp-connector/src/test/resources/form/basic_reg/form.json +++ /dev/null @@ -1,653 +0,0 @@ -{ - "default_language": "default", - "id_string": "patient_basic_reg", - "children": [ - { - "name": "woman_name", - "label": "First name", - "instance": { - "openmrs_entity_id": "first_name", - "openmrs_entity": "person" - }, - "type": "text" - }, - { - "name": "last_name", - "label": "Last name", - "instance": { - "openmrs_entity_id": "last_name", - "openmrs_entity": "person" - }, - "type": "text" - }, - { - "name": "gender", - "default": "female", - "label": "Gender", - "instance": { - "openmrs_entity_id": "gender", - "openmrs_entity": "person" - }, - "type": "text" - }, - { - "name": "birthdate", - "label": "DOB", - "instance": { - "openmrs_entity_id": "birthdate", - "openmrs_entity": "person" - }, - "type": "date" - }, - { - "children": [ - { - "name": "karachi", - "label": "Karachi", - "instance": { - "openmrs_code": "karachi" - } - }, - { - "name": "lahore", - "label": "Lahore", - "instance": { - "openmrs_code": "lahore" - } - } - ], - "name": "location", - "bind": { - "required": "yes" - }, - "label": "Location of ANC", - "instance": { - "openmrs_entity_id": "location_id", - "openmrs_entity": "encounter" - }, - "type": "select one" - }, - { - "name": "anc_visit_date", - "bind": { - "required": "yes", - "constraint": ".<=${today}" - }, - "label": "ANC visit date?", - "instance": { - "openmrs_entity_id": "encounter_date", - "openmrs_entity": "encounter" - }, - "type": "date" - }, - { - "name": "pulse_rate", - "bind": { - "constraint": ".>0" - }, - "label": "Pulse rate", - "instance": { - "openmrs_entity_id": "5087AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "integer" - }, - { - "name": "temperature", - "bind": { - "constraint": ".>0" - }, - "label": "Temperature (C)", - "instance": { - "openmrs_entity_id": "5088AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "decimal" - }, - { - "children": [ - { - "name": "birthplace_lat", - "label": "Latitude", - "instance": { - "openmrs_entity_parent": "birthplace", - "openmrs_entity_id": "latitude", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "birthplace_lon", - "label": "Longitude", - "instance": { - "openmrs_entity_parent": "birthplace", - "openmrs_entity_id": "longitute", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "birthplace_postcode", - "label": "postalCode / postal_code", - "instance": { - "openmrs_entity_parent": "birthplace", - "openmrs_entity_id": "postalcode", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "birthplace_house", - "label": "HOUSE_NUMBER / HOUSE / HOUSE_NO / UNIT / UNIT_NUMBER / UNIT_NO", - "instance": { - "openmrs_entity_parent": "birthplace", - "openmrs_entity_id": "house_number", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "birthplace_street", - "label": "STREET / STREET_NUMBER / LANE", - "instance": { - "openmrs_entity_parent": "birthplace", - "openmrs_entity_id": "street", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "birthplace_area", - "label": "SECTOR / AREA", - "instance": { - "openmrs_entity_parent": "birthplace", - "openmrs_entity_id": "area", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "birthplace_town", - "label": "MUNICIPALITY / TOWN / LOCALITY / REGION", - "instance": { - "openmrs_entity_parent": "birthplace", - "openmrs_entity_id": "town", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "birthplace_busroute", - "label": "Bus route custom field", - "instance": { - "openmrs_entity_parent": "birthplace", - "openmrs_entity_id": "bus_route", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "birthplace_district", - "label": "COUNTY / DISTRICT", - "instance": { - "openmrs_entity_parent": "birthplace", - "openmrs_entity_id": "district", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "birthplace_city", - "label": "CITY / VILLAGE", - "instance": { - "openmrs_entity_parent": "birthplace", - "openmrs_entity_id": "city", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "birthplace_state", - "label": "state / state_province / stateProvince/ province", - "instance": { - "openmrs_entity_parent": "birthplace", - "openmrs_entity_id": "state", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "birthplace_country", - "label": "country", - "instance": { - "openmrs_entity_parent": "birthplace", - "openmrs_entity_id": "country", - "openmrs_entity": "person_address" - }, - "type": "text" - } - ], - "name": "birthplace_address", - "label": "Birthplace", - "type": "group" - }, - { - "children": [ - { - "name": "usual_residence_start", - "label": "When started (startDate / start_date)", - "instance": { - "openmrs_entity_parent": "usual_residence", - "openmrs_entity_id": "startdate", - "openmrs_entity": "person_address" - }, - "type": "date" - }, - { - "name": "usual_residence_lat", - "label": "Latitude", - "instance": { - "openmrs_entity_parent": "usual_residence", - "openmrs_entity_id": "latitude", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "usual_residence_lon", - "label": "Longitude", - "instance": { - "openmrs_entity_parent": "usual_residence", - "openmrs_entity_id": "longitute", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "usual_residence_postcode", - "label": "postalCode / postal_code", - "instance": { - "openmrs_entity_parent": "usual_residence", - "openmrs_entity_id": "postalcode", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "usual_residence_house", - "label": "HOUSE_NUMBER / HOUSE / HOUSE_NO / UNIT / UNIT_NUMBER / UNIT_NO", - "instance": { - "openmrs_entity_parent": "usual_residence", - "openmrs_entity_id": "uniit", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "usual_residence_street", - "label": "STREET / STREET_NUMBER / LANE", - "instance": { - "openmrs_entity_parent": "usual_residence", - "openmrs_entity_id": "lane", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "usual_residence_area", - "label": "SECTOR / AREA", - "instance": { - "openmrs_entity_parent": "usual_residence", - "openmrs_entity_id": "sector", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "usual_residence_town", - "label": "MUNICIPALITY / TOWN / LOCALITY / REGION", - "instance": { - "openmrs_entity_parent": "usual_residence", - "openmrs_entity_id": "municipality", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "usual_residence_district", - "label": "COUNTY / DISTRICT", - "instance": { - "openmrs_entity_parent": "usual_residence", - "openmrs_entity_id": "district", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "usual_residence_city", - "label": "CITY / VILLAGE", - "instance": { - "openmrs_entity_parent": "usual_residence", - "openmrs_entity_id": "city", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "usual_residence_state", - "label": "state / state_province / stateProvince/ province", - "instance": { - "openmrs_entity_parent": "usual_residence", - "openmrs_entity_id": "province", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "usual_residence_country", - "label": "country", - "instance": { - "openmrs_entity_parent": "usual_residence", - "openmrs_entity_id": "country", - "openmrs_entity": "person_address" - }, - "type": "text" - } - ], - "name": "usual_residence_address", - "label": "Usual Residence", - "type": "group" - }, - { - "children": [ - { - "name": "previous_residence_start", - "label": "When started (startDate / start_date)", - "instance": { - "openmrs_entity_parent": "previous_residence", - "openmrs_entity_id": "startdate", - "openmrs_entity": "person_address" - }, - "type": "date" - }, - { - "name": "previous_residence_end", - "label": "When ended (endDate/end_date)", - "instance": { - "openmrs_entity_parent": "previous_residence", - "openmrs_entity_id": "enddate", - "openmrs_entity": "person_address" - }, - "type": "date" - }, - { - "name": "previous_residence_lat", - "label": "Latitude", - "instance": { - "openmrs_entity_parent": "previous_residence", - "openmrs_entity_id": "latitude", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "previous_residence_lon", - "label": "Longitude", - "instance": { - "openmrs_entity_parent": "previous_residence", - "openmrs_entity_id": "longitute", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "previous_residence_postcode", - "label": "postalCode / postal_code", - "instance": { - "openmrs_entity_parent": "previous_residence", - "openmrs_entity_id": "postalcode", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "previous_residence_house", - "label": "HOUSE_NUMBER / HOUSE / HOUSE_NO / UNIT / UNIT_NUMBER / UNIT_NO", - "instance": { - "openmrs_entity_parent": "previous_residence", - "openmrs_entity_id": "house", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "previous_residence_street", - "label": "STREET / STREET_NUMBER / LANE", - "instance": { - "openmrs_entity_parent": "previous_residence", - "openmrs_entity_id": "street", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "previous_residence_area", - "label": "SECTOR / AREA", - "instance": { - "openmrs_entity_parent": "previous_residence", - "openmrs_entity_id": "area", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "previous_residence_town", - "label": "MUNICIPALITY / TOWN / LOCALITY / REGION", - "instance": { - "openmrs_entity_parent": "previous_residence", - "openmrs_entity_id": "region", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "previous_residence_district", - "label": "COUNTY / DISTRICT", - "instance": { - "openmrs_entity_parent": "previous_residence", - "openmrs_entity_id": "county", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "previous_residence_city", - "label": "CITY / VILLAGE", - "instance": { - "openmrs_entity_parent": "previous_residence", - "openmrs_entity_id": "village", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "previous_residence_state", - "label": "state / state_province / stateProvince/ province", - "instance": { - "openmrs_entity_parent": "previous_residence", - "openmrs_entity_id": "state", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "previous_residence_country", - "label": "country", - "instance": { - "openmrs_entity_parent": "previous_residence", - "openmrs_entity_id": "country", - "openmrs_entity": "person_address" - }, - "type": "text" - } - ], - "name": "previous_residence_address", - "label": "Previous Residence", - "type": "group" - }, - { - "children": [ - { - "name": "deathplace_lat", - "label": "Latitude", - "instance": { - "openmrs_entity_parent": "deathplace", - "openmrs_entity_id": "latitude", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "deathplace_lon", - "label": "Longitude", - "instance": { - "openmrs_entity_parent": "deathplace", - "openmrs_entity_id": "longitute", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "deathplace_postcode", - "label": "postalCode / postal_code", - "instance": { - "openmrs_entity_parent": "deathplace", - "openmrs_entity_id": "postal_code", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "deathplace_house", - "label": "HOUSE_NUMBER / HOUSE / HOUSE_NO / UNIT / UNIT_NUMBER / UNIT_NO", - "instance": { - "openmrs_entity_parent": "deathplace", - "openmrs_entity_id": "unit", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "deathplace_street", - "label": "STREET / STREET_NUMBER / LANE", - "instance": { - "openmrs_entity_parent": "deathplace", - "openmrs_entity_id": "lane", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "deathplace_area", - "label": "SECTOR / AREA", - "instance": { - "openmrs_entity_parent": "deathplace", - "openmrs_entity_id": "area", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "deathplace_town", - "label": "MUNICIPALITY / TOWN / LOCALITY / REGION", - "instance": { - "openmrs_entity_parent": "deathplace", - "openmrs_entity_id": "region", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "deathplace_district", - "label": "COUNTY / DISTRICT", - "instance": { - "openmrs_entity_parent": "deathplace", - "openmrs_entity_id": "district", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "deathplace_city", - "label": "CITY / VILLAGE", - "instance": { - "openmrs_entity_parent": "deathplace", - "openmrs_entity_id": "city", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "deathplace_state", - "label": "state / state_province / stateProvince/ province", - "instance": { - "openmrs_entity_parent": "deathplace", - "openmrs_entity_id": "state_province", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "deathplace_country", - "label": "country", - "instance": { - "openmrs_entity_parent": "deathplace", - "openmrs_entity_id": "country", - "openmrs_entity": "person_address" - }, - "type": "text" - } - ], - "name": "deathplace_address", - "label": "Death Place", - "type": "group" - }, - { - "name": "today", - "type": "today" - }, - { - "name": "start", - "type": "start" - }, - { - "name": "end", - "type": "end" - }, - { - "control": { - "bodyless": true - }, - "children": [ - { - "name": "instanceID", - "bind": { - "readonly": "true()", - "calculate": "concat('uuid:', uuid())" - }, - "type": "calculate" - } - ], - "name": "meta", - "type": "group" - } - ], - "instance": { - "encounter_type": "patient_register" - }, - "version": "201504030905", - "type": "survey", - "name": "register_with_address", - "sms_keyword": "patient_basic_reg", - "title": "Patient Registration" -} \ No newline at end of file diff --git a/opensrp-connector/src/test/resources/form/basic_reg/form.xml b/opensrp-connector/src/test/resources/form/basic_reg/form.xml deleted file mode 100644 index 8926f192ec..0000000000 --- a/opensrp-connector/src/test/resources/form/basic_reg/form.xml +++ /dev/null @@ -1,287 +0,0 @@ -
- - -

Register with address

- - - - -
-
- - Location of ANC - * - -
- - -
-
-
- - - -
-

- Birthplace -

- - - - - - - - - - - - -
- -
-

- Usual Residence -

- - - - - - - - - - - - -
- -
-

- Previous Residence -

- - - - - - - - - - - - - -
- -
-

- Death Place -

- - - - - - - - - - - -
- - - -
\ No newline at end of file diff --git a/opensrp-connector/src/test/resources/form/basic_reg/form_definition.json b/opensrp-connector/src/test/resources/form/basic_reg/form_definition.json deleted file mode 100644 index 7e9f24b662..0000000000 --- a/opensrp-connector/src/test/resources/form/basic_reg/form_definition.json +++ /dev/null @@ -1,249 +0,0 @@ -{ - "form_data_definition_version": "1", - "form": { - "bind_type": "register_with_address", - "default_bind_path": "/model/instance/register_with_address/", - "fields": [ - { - "name": "woman_name", - "bind": "/model/instance/register_with_address/woman_name" - }, - { - "name": "bahmni_id", - "bind": "/model/instance/register_with_address/bahmni_id" - }, - { - "name": "last_name", - "bind": "/model/instance/register_with_address/last_name" - }, - { - "name": "gender", - "bind": "/model/instance/register_with_address/gender" - }, - { - "name": "birthdate", - "bind": "/model/instance/register_with_address/birthdate" - }, - { - "name": "location", - "bind": "/model/instance/register_with_address/location" - }, - { - "name": "anc_visit_date", - "bind": "/model/instance/register_with_address/anc_visit_date" - }, - { - "name": "pulse_rate", - "bind": "/model/instance/register_with_address/pulse_rate" - }, - { - "name": "temperature", - "bind": "/model/instance/register_with_address/temperature" - }, - { - "name": "birthplace_lat", - "bind": "/model/instance/register_with_address/birthplace_address/birthplace_lat" - }, - { - "name": "birthplace_lon", - "bind": "/model/instance/register_with_address/birthplace_address/birthplace_lon" - }, - { - "name": "birthplace_postcode", - "bind": "/model/instance/register_with_address/birthplace_address/birthplace_postcode" - }, - { - "name": "birthplace_house", - "bind": "/model/instance/register_with_address/birthplace_address/birthplace_house" - }, - { - "name": "birthplace_street", - "bind": "/model/instance/register_with_address/birthplace_address/birthplace_street" - }, - { - "name": "birthplace_area", - "bind": "/model/instance/register_with_address/birthplace_address/birthplace_area" - }, - { - "name": "birthplace_town", - "bind": "/model/instance/register_with_address/birthplace_address/birthplace_town" - }, - { - "name": "birthplace_busroute", - "bind": "/model/instance/register_with_address/birthplace_address/birthplace_busroute" - }, - { - "name": "birthplace_district", - "bind": "/model/instance/register_with_address/birthplace_address/birthplace_district" - }, - { - "name": "birthplace_city", - "bind": "/model/instance/register_with_address/birthplace_address/birthplace_city" - }, - { - "name": "birthplace_state", - "bind": "/model/instance/register_with_address/birthplace_address/birthplace_state" - }, - { - "name": "birthplace_country", - "bind": "/model/instance/register_with_address/birthplace_address/birthplace_country" - }, - { - "name": "usual_residence_start", - "bind": "/model/instance/register_with_address/usual_residence_address/usual_residence_start" - }, - { - "name": "usual_residence_lat", - "bind": "/model/instance/register_with_address/usual_residence_address/usual_residence_lat" - }, - { - "name": "usual_residence_lon", - "bind": "/model/instance/register_with_address/usual_residence_address/usual_residence_lon" - }, - { - "name": "usual_residence_postcode", - "bind": "/model/instance/register_with_address/usual_residence_address/usual_residence_postcode" - }, - { - "name": "usual_residence_house", - "bind": "/model/instance/register_with_address/usual_residence_address/usual_residence_house" - }, - { - "name": "usual_residence_street", - "bind": "/model/instance/register_with_address/usual_residence_address/usual_residence_street" - }, - { - "name": "usual_residence_area", - "bind": "/model/instance/register_with_address/usual_residence_address/usual_residence_area" - }, - { - "name": "usual_residence_town", - "bind": "/model/instance/register_with_address/usual_residence_address/usual_residence_town" - }, - { - "name": "usual_residence_district", - "bind": "/model/instance/register_with_address/usual_residence_address/usual_residence_district" - }, - { - "name": "usual_residence_city", - "bind": "/model/instance/register_with_address/usual_residence_address/usual_residence_city" - }, - { - "name": "usual_residence_state", - "bind": "/model/instance/register_with_address/usual_residence_address/usual_residence_state" - }, - { - "name": "usual_residence_country", - "bind": "/model/instance/register_with_address/usual_residence_address/usual_residence_country" - }, - { - "name": "previous_residence_start", - "bind": "/model/instance/register_with_address/previous_residence_address/previous_residence_start" - }, - { - "name": "previous_residence_end", - "bind": "/model/instance/register_with_address/previous_residence_address/previous_residence_end" - }, - { - "name": "previous_residence_lat", - "bind": "/model/instance/register_with_address/previous_residence_address/previous_residence_lat" - }, - { - "name": "previous_residence_lon", - "bind": "/model/instance/register_with_address/previous_residence_address/previous_residence_lon" - }, - { - "name": "previous_residence_postcode", - "bind": "/model/instance/register_with_address/previous_residence_address/previous_residence_postcode" - }, - { - "name": "previous_residence_house", - "bind": "/model/instance/register_with_address/previous_residence_address/previous_residence_house" - }, - { - "name": "previous_residence_street", - "bind": "/model/instance/register_with_address/previous_residence_address/previous_residence_street" - }, - { - "name": "previous_residence_area", - "bind": "/model/instance/register_with_address/previous_residence_address/previous_residence_area" - }, - { - "name": "previous_residence_town", - "bind": "/model/instance/register_with_address/previous_residence_address/previous_residence_town" - }, - { - "name": "previous_residence_district", - "bind": "/model/instance/register_with_address/previous_residence_address/previous_residence_district" - }, - { - "name": "previous_residence_city", - "bind": "/model/instance/register_with_address/previous_residence_address/previous_residence_city" - }, - { - "name": "previous_residence_state", - "bind": "/model/instance/register_with_address/previous_residence_address/previous_residence_state" - }, - { - "name": "previous_residence_country", - "bind": "/model/instance/register_with_address/previous_residence_address/previous_residence_country" - }, - { - "name": "deathplace_lat", - "bind": "/model/instance/register_with_address/deathplace_address/deathplace_lat" - }, - { - "name": "deathplace_lon", - "bind": "/model/instance/register_with_address/deathplace_address/deathplace_lon" - }, - { - "name": "deathplace_postcode", - "bind": "/model/instance/register_with_address/deathplace_address/deathplace_postcode" - }, - { - "name": "deathplace_house", - "bind": "/model/instance/register_with_address/deathplace_address/deathplace_house" - }, - { - "name": "deathplace_street", - "bind": "/model/instance/register_with_address/deathplace_address/deathplace_street" - }, - { - "name": "deathplace_area", - "bind": "/model/instance/register_with_address/deathplace_address/deathplace_area" - }, - { - "name": "deathplace_town", - "bind": "/model/instance/register_with_address/deathplace_address/deathplace_town" - }, - { - "name": "deathplace_district", - "bind": "/model/instance/register_with_address/deathplace_address/deathplace_district" - }, - { - "name": "deathplace_city", - "bind": "/model/instance/register_with_address/deathplace_address/deathplace_city" - }, - { - "name": "deathplace_state", - "bind": "/model/instance/register_with_address/deathplace_address/deathplace_state" - }, - { - "name": "deathplace_country", - "bind": "/model/instance/register_with_address/deathplace_address/deathplace_country" - }, - { - "name": "today", - "bind": "/model/instance/register_with_address/today" - }, - { - "name": "start", - "bind": "/model/instance/register_with_address/start" - }, - { - "name": "end", - "bind": "/model/instance/register_with_address/end" - } - ] - } -} \ No newline at end of file diff --git a/opensrp-connector/src/test/resources/form/basic_reg/form_submission.json b/opensrp-connector/src/test/resources/form/basic_reg/form_submission.json deleted file mode 100644 index 0008440a58..0000000000 --- a/opensrp-connector/src/test/resources/form/basic_reg/form_submission.json +++ /dev/null @@ -1,258 +0,0 @@ -{ - "anmId": "superman", - "instanceId": "88ceee24-10b4-44c2-9429-754b8d823776", - "clientVersion": "1426830449320", - "entityId": "b716d938-1aea-40ae-a081-9ddddddcccc9", - "formDataDefinitionVersion": "1", - "formName": "basic_reg", - "formInstance": { - "form_data_definition_version": "1", - "form": { - "bind_type": "register_with_address", - "default_bind_path": "/model/instance/register_with_address/", - "fields": [ - { - "name": "woman_name", - "value": "test woman_name" - }, - { - "name": "last_name", - "value": "test last_name" - }, - { - "name": "bahmni_id", - "value": "pak-100-00001" - }, - { - "name": "gender", - "value": "FEMALE" - }, - { - "name": "birthdate", - "value": "2015-02-01" - }, - { - "name": "location", - "value": "unknown location" - }, - { - "name": "anc_visit_date", - "value": "2015-02-01" - }, - { - "name": "pulse_rate", - "value": "55" - }, - { - "name": "temperature", - "value": "37" - }, - { - "name": "birthplace_lat", - "value": "test birthplace_lat" - }, - { - "name": "birthplace_lon", - "value": "test birthplace_lon" - }, - { - "name": "birthplace_postcode", - "value": "test birthplace_postcode" - }, - { - "name": "birthplace_house", - "value": "test birthplace_house" - }, - { - "name": "birthplace_street", - "value": "test birthplace_street" - }, - { - "name": "birthplace_area", - "value": "test birthplace_area" - }, - { - "name": "birthplace_town", - "value": "test birthplace_town" - }, - { - "name": "birthplace_busroute", - "value": "test birthplace_busroute" - }, - { - "name": "birthplace_district", - "value": "test birthplace_district" - }, - { - "name": "birthplace_city", - "value": "test birthplace_city" - }, - { - "name": "birthplace_state", - "value": "test birthplace_state" - }, - { - "name": "birthplace_country", - "value": "test birthplace_country" - }, - { - "name": "usual_residence_start", - "value": "2015-02-01" - }, - { - "name": "usual_residence_lat", - "value": "test usual_residence_lat" - }, - { - "name": "usual_residence_lon", - "value": "test usual_residence_lon" - }, - { - "name": "usual_residence_postcode", - "value": "test usual_residence_postcode" - }, - { - "name": "usual_residence_house", - "value": "test usual_residence_house" - }, - { - "name": "usual_residence_street", - "value": "test usual_residence_street" - }, - { - "name": "usual_residence_area", - "value": "test usual_residence_area" - }, - { - "name": "usual_residence_town", - "value": "test usual_residence_town" - }, - { - "name": "usual_residence_district", - "value": "test usual_residence_district" - }, - { - "name": "usual_residence_city", - "value": "test usual_residence_city" - }, - { - "name": "usual_residence_state", - "value": "test usual_residence_state" - }, - { - "name": "usual_residence_country", - "value": "test usual_residence_country" - }, - { - "name": "previous_residence_start", - "value": "2015-02-01" - }, - { - "name": "previous_residence_end", - "value": "2015-02-01" - }, - { - "name": "previous_residence_lat", - "value": "test previous_residence_lat" - }, - { - "name": "previous_residence_lon", - "value": "test previous_residence_lon" - }, - { - "name": "previous_residence_postcode", - "value": "test previous_residence_postcode" - }, - { - "name": "previous_residence_house", - "value": "test previous_residence_house" - }, - { - "name": "previous_residence_street", - "value": "test previous_residence_street" - }, - { - "name": "previous_residence_area", - "value": "test previous_residence_area" - }, - { - "name": "previous_residence_town", - "value": "test previous_residence_town" - }, - { - "name": "previous_residence_district", - "value": "test previous_residence_district" - }, - { - "name": "previous_residence_city", - "value": "test previous_residence_city" - }, - { - "name": "previous_residence_state", - "value": "test previous_residence_state" - }, - { - "name": "previous_residence_country", - "value": "test previous_residence_country" - }, - { - "name": "deathplace_lat", - "value": "test deathplace_lat" - }, - { - "name": "deathplace_lon", - "value": "test deathplace_lon" - }, - { - "name": "deathplace_postcode", - "value": "test deathplace_postcode" - }, - { - "name": "deathplace_house", - "value": "test deathplace_house" - }, - { - "name": "deathplace_street", - "value": "test deathplace_street" - }, - { - "name": "deathplace_area", - "value": "test deathplace_area" - }, - { - "name": "deathplace_town", - "value": "test deathplace_town" - }, - { - "name": "deathplace_district", - "value": "test deathplace_district" - }, - { - "name": "deathplace_city", - "value": "test deathplace_city" - }, - { - "name": "deathplace_state", - "value": "test deathplace_state" - }, - { - "name": "deathplace_country", - "value": "test deathplace_country" - }, - { - "name": "today", - "value": "2015-02-01" - }, - { - "name": "start", - "value": "2015-02-01" - }, - { - "name": "end", - "value": "2015-02-01" - } - ] - } - }, - "serverVersion": 1430998001293 -} \ No newline at end of file diff --git a/opensrp-connector/src/test/resources/form/basic_reg/model.xml b/opensrp-connector/src/test/resources/form/basic_reg/model.xml deleted file mode 100644 index d6265106aa..0000000000 --- a/opensrp-connector/src/test/resources/form/basic_reg/model.xml +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - - - - - female - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/opensrp-connector/src/test/resources/form/child_enrollment/form.json b/opensrp-connector/src/test/resources/form/child_enrollment/form.json deleted file mode 100644 index 98878c7e0e..0000000000 --- a/opensrp-connector/src/test/resources/form/child_enrollment/form.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"Child_Vaccination_Enrollment","title":"بچّوں کا انرولمنٹ رجسٹر برائے ٹیکاجات - Child Enrollment Vaccination Register","sms_keyword":"child_vaccination_enrollment","default_language":"English","choices":{"provinces":[{"name":"kpk","label":{"Urdu":"خیبر پختون خواہ","English":"Khyber Pakhtunkhwa","Roman Urdu":"Khyber Pakhtunkhwa"}},{"name":"sindh","label":{"Urdu":"سندھ","English":"Sindh","Roman Urdu":"Sindh"}},{"name":"balochistan","label":{"Urdu":"بلوچستان","English":"Balochistan","Roman Urdu":"Balochistan"}},{"name":"punjab","label":{"Urdu":"پنجاب","English":"Punjab","Roman Urdu":"Punjab"}},{"name":"gilgit_baltistan","label":{"Urdu":"گلگت بلتستان","English":"Gilgit Baltistan","Roman Urdu":"Gilgit Baltistan"}},{"name":"kashmir","label":{"Urdu":"کشمیر","English":"Kashmir","Roman Urdu":"Kashmir"}},{"name":"fata","label":{"Urdu":"فاٹا","English":"FATA","Roman Urdu":"FATA"}},{"name":"out_of_country","label":{"Urdu":"ملک سے باہر","English":"Out of Country","Roman Urdu":"Mulk se baahir"}}],"ucs":[{"province":"sindh","city":"karachi","town":"korangi","name":"bilal_colony","label":{"Urdu":"بلال کالونی","Roman Urdu":"Bilal Colony","English":"Bilal Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"nasir_colony","label":{"Urdu":"ناصر کالونی","Roman Urdu":"Nasir Colony","English":"Nasir Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"chakra_goth","label":{"Urdu":"چکرا گوٹھ","Roman Urdu":"Chakra Goth","English":"Chakra Goth"}},{"province":"sindh","city":"karachi","town":"korangi","name":"mustafa_taj_colony","label":{"Urdu":"مصطفی تاج کالونی","Roman Urdu":"Mustafa Taj Colony","English":"Mustafa Taj Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"hundred_quarters","label":{"Urdu":"ہنڈریڈ کوارٹر","Roman Urdu":"Hundred Quarters","English":"Hundred Quarters"}},{"province":"sindh","city":"karachi","town":"korangi","name":"gulzar_colony","label":{"Urdu":"گلزار کالونی","Roman Urdu":"Gulzar Colony","English":"Gulzar Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"korangi_sector_33","label":{"Urdu":"کورنگی سیکٹر 33","Roman Urdu":"Korangi Sector 33","English":"Korangi Sector 33"}},{"province":"sindh","city":"karachi","town":"korangi","name":"zaman_town","label":{"Urdu":"زمان ٹاوَن","Roman Urdu":"Zaman Town","English":"Zaman Town"}},{"province":"sindh","city":"karachi","town":"korangi","name":"hasrat_mohani_colony","label":{"Urdu":"حسرت موہانی کالونی","Roman Urdu":"Hasrat Mohani Colony","English":"Hasrat Mohani Colony"}},{"province":"sindh","city":"karachi","town":"baldia","name":"gulshan_e_ghazi","label":{"Urdu":"گلشن غازی","Roman Urdu":"Gulshan-e-Ghazi","English":"Gulshan-e-Ghazi"}},{"province":"sindh","city":"karachi","town":"baldia","name":"ittehad_town","label":{"Urdu":"اتحاد ٹاوَن","Roman Urdu":"Ittehad Town","English":"Ittehad Town"}},{"province":"sindh","city":"karachi","town":"baldia","name":"islam_nagar","label":{"Urdu":"اسلام نگر","Roman Urdu":"Islam Nagar","English":"Islam Nagar"}},{"province":"sindh","city":"karachi","town":"baldia","name":"nai_abadi","label":{"Urdu":"نئی آبادی","Roman Urdu":"Nai Abadi","English":"Nai Abadi"}},{"province":"sindh","city":"karachi","town":"baldia","name":"saeedabad","label":{"Urdu":"سعید آباد","Roman Urdu":"Saeedabad","English":"Saeedabad"}},{"province":"sindh","city":"karachi","town":"baldia","name":"muslim_mujahid_colony","label":{"Urdu":"مسلم مجاہد کالونی","Roman Urdu":"Muslim Mujahid Colony","English":"Muslim Mujahid Colony"}},{"province":"sindh","city":"karachi","town":"baldia","name":"muhajir_camp","label":{"Urdu":"مہاجر کیمپ","Roman Urdu":"Muhajir Camp","English":"Muhajir Camp"}},{"province":"sindh","city":"karachi","town":"baldia","name":"rasheedabad","label":{"Urdu":"رشید آباد","Roman Urdu":"Rasheedabad","English":"Rasheedabad"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"ibrahim_hyderi","label":{"Urdu":"ابراہیم حیدری","Roman Urdu":"Ibrahim Hyderi","English":"Ibrahim Hyderi"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"rehri","label":{"Urdu":"رہڑی","Roman Urdu":"Rehri","English":"Rehri"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"cattle_colony","label":{"Urdu":"کیٹل کالونی","Roman Urdu":"Cattle Colony","English":"Cattle Colony"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"qaidabad","label":{"Urdu":"قائدآباد","Roman Urdu":"Qaidabad","English":"Qaidabad"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"landhi_colony","label":{"Urdu":"لانڈھی کالونی","Roman Urdu":"Landhi Colony","English":"Landhi Colony"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"gulshan_e_hadeed","label":{"Urdu":"گلشن حدید","Roman Urdu":"Gulshan-e-Hadeed","English":"Gulshan-e-Hadeed"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"gaghar","label":{"Urdu":"گگر","Roman Urdu":"Gaghar","English":"Gaghar"}},{"province":"sindh","city":"karachi","town":"gadap","name":"murad_memon_goth","label":{"Urdu":"مراد میمن گوٹھ","Roman Urdu":"Murad Memon Goth","English":"Murad Memon Goth"}},{"province":"sindh","city":"karachi","town":"gadap","name":"darsano_chana","label":{"Urdu":"درشانو شنو","Roman Urdu":"Darsano Chana","English":"Darsano Chana"}},{"province":"sindh","city":"karachi","town":"gadap","name":"gujro","label":{"Urdu":"گجرو","Roman Urdu":"Gujro","English":"Gujro"}},{"province":"sindh","city":"karachi","town":"gadap","name":"songal","label":{"Urdu":"سنگل","Roman Urdu":"Songal","English":"Songal"}},{"province":"sindh","city":"karachi","town":"gadap","name":"maymarabad","label":{"Urdu":"معمار آباد","Roman Urdu":"Maymarabad","English":"Maymarabad"}},{"province":"sindh","city":"karachi","town":"gadap","name":"yousuf_goth","label":{"Urdu":"یوسف گوٹھ","Roman Urdu":"Yousuf Goth","English":"Yousuf Goth"}},{"province":"sindh","city":"karachi","town":"gadap","name":"manghopir","label":{"Urdu":"منگھوپیر","Roman Urdu":"Manghopir","English":"Manghopir"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"azizabad","label":{"Urdu":"عزیز آباد","Roman Urdu":"Azizabad","English":"Azizabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"karimabad","label":{"Urdu":"کریم آباد","Roman Urdu":"Karimabad","English":"Karimabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"aisha_manzil","label":{"Urdu":"عائشہ منزل","Roman Urdu":"Aisha Manzil","English":"Aisha Manzil"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"ancholi","label":{"Urdu":"انچولی","Roman Urdu":"Ancholi","English":"Ancholi"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"naseerabad","label":{"Urdu":"نصیرآباد","Roman Urdu":"Naseerabad","English":"Naseerabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"yaseenabad","label":{"Urdu":"یاسین آباد","Roman Urdu":"Yaseenabad","English":"Yaseenabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"water_pump","label":{"Urdu":"واٹرپمپ","Roman Urdu":"Water Pump","English":"Water Pump"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"shafiq_mill_colony","label":{"Urdu":"شفیق مل کالونی","Roman Urdu":"Shafiq Mill Colony","English":"Shafiq Mill Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"delhi_mercantile_society","label":{"Urdu":"دہلی مرچنٹائل سوسائٹی","Roman Urdu":"Delhi Mercantile Society","English":"Delhi Mercantile Society"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"civic_centre","label":{"Urdu":"سوک سینٹر","Roman Urdu":"Civic Centre","English":"Civic Centre"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"pir_ilahi_buksh_colony","label":{"Urdu":"پیر الہی بخش کالونی","Roman Urdu":"Pir Ilahi Buksh Colony","English":"Pir Ilahi Buksh Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"essa_nagri","label":{"Urdu":"عیسی نگری","Roman Urdu":"Essa Nagri","English":"Essa Nagri"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gulshan_e_iqbal","label":{"Urdu":"گلشن اقبال","Roman Urdu":"Gulshan-e-Iqbal","English":"Gulshan-e-Iqbal"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gillani_railway_station","label":{"Urdu":"گیلانی ریلوے اسٹیشن","Roman Urdu":"Gillani Railway Station","English":"Gillani Railway Station"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"shanti_nagar","label":{"Urdu":"شانتی نگر","Roman Urdu":"Shanti Nagar","English":"Shanti Nagar"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"jamali_colony","label":{"Urdu":"جمالی کالونی","Roman Urdu":"Jamali Colony","English":"Jamali Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gulshan_e_iqbal_ii","label":{"Urdu":"گلشن اقبال 2","Roman Urdu":"Gulshan-e-Iqbal II","English":"Gulshan-e-Iqbal II"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"pehlwan_goth","label":{"Urdu":"پہلوان گوٹھ","Roman Urdu":"Pehlwan Goth","English":"Pehlwan Goth"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"matrovil_colony","label":{"Urdu":"میٹروویل کالونی","Roman Urdu":"Matrovil Colony","English":"Matrovil Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gulzar_e_hijri","label":{"Urdu":"گلزار ہجری","Roman Urdu":"Gulzar-e-Hijri","English":"Gulzar-e-Hijri"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"safooran_goth","label":{"Urdu":"صفورا گوٹھ","Roman Urdu":"Safooran Goth","English":"Safooran Goth"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"akhtar_colony","label":{"Urdu":"اختر کالونی","Roman Urdu":"Akhtar Colony","English":"Akhtar Colony"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"manzoor_colony","label":{"Urdu":"منظور کالونی","Roman Urdu":"Manzoor Colony","English":"Manzoor Colony"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"azam_basti","label":{"Urdu":"اعظم بستی","Roman Urdu":"Azam Basti","English":"Azam Basti"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"chanesar_goth","label":{"Urdu":"چنیسر گوٹھ","Roman Urdu":"Chanesar Goth","English":"Chanesar Goth"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"mahmudabad","label":{"Urdu":"محمودآباد","Roman Urdu":"Mahmudabad","English":"Mahmudabad"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"pechs","label":{"Urdu":"پی۔ای۔سی۔ایچ۔ایس","Roman Urdu":"P.E.C.H.S.","English":"P.E.C.H.S."}},{"province":"sindh","city":"karachi","town":"jamshed","name":"pechs_ii","label":{"Urdu":"پی۔ای۔سی۔ایچ۔ایس 2","Roman Urdu":"P.E.C.H.S. II","English":"P.E.C.H.S. II"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"jut_line","label":{"Urdu":"جٹ لائن","Roman Urdu":"Jut Line","English":"Jut Line"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"central_jacob_lines","label":{"Urdu":"سینٹرل جیکب لائن","Roman Urdu":"Central Jacob Lines","English":"Central Jacob Lines"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"jamshed_quarters","label":{"Urdu":"جمشید کوارٹر","Roman Urdu":"Jamshed Quarters","English":"Jamshed Quarters"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"garden_east","label":{"Urdu":"گارڈن ایسٹ","Roman Urdu":"Garden East","English":"Garden East"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"soldier_bazar","label":{"Urdu":"سولجر بازار","Roman Urdu":"Soldier Bazar","English":"Soldier Bazar"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"pakistan_quarters","label":{"Urdu":"پاکستان کوارٹر","Roman Urdu":"Pakistan Quarters","English":"Pakistan Quarters"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"bhutta_village","label":{"Urdu":"بھٹا ولیج","Roman Urdu":"Bhutta Village","English":"Bhutta Village"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"sultanabad","label":{"Urdu":"سلطان آباد","Roman Urdu":"Sultanabad","English":"Sultanabad"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"kiamari_uc","label":{"Urdu":"کیماری یو- سی","Roman Urdu":"Kiamari UC","English":"Kiamari UC"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"baba_bhit","label":{"Urdu":"بابا بھٹ","Roman Urdu":"Baba Bhit","English":"Baba Bhit"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"machar_colony","label":{"Urdu":"مچھر کالونی","Roman Urdu":"Machar Colony","English":"Machar Colony"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"maripur","label":{"Urdu":"ماڑی پور","Roman Urdu":"Maripur","English":"Maripur"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"shershah","label":{"Urdu":"شیرشاہ","Roman Urdu":"SherShah","English":"SherShah"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"gabo_pat","label":{"Urdu":"گابو پٹ","Roman Urdu":"Gabo Pat","English":"Gabo Pat"}},{"province":"sindh","city":"karachi","town":"landhi","name":"muzafarabad","label":{"Urdu":"مظفرآباد","Roman Urdu":"Muzafarabad","English":"Muzafarabad"}},{"province":"sindh","city":"karachi","town":"landhi","name":"muslimabad","label":{"Urdu":"مسلم آباد","Roman Urdu":"Muslimabad","English":"Muslimabad"}},{"province":"sindh","city":"karachi","town":"landhi","name":"dawood_chowrangi","label":{"Urdu":"داوَد چورنگی","Roman Urdu":"Dawood Chowrangi","English":"Dawood Chowrangi"}},{"province":"sindh","city":"karachi","town":"landhi","name":"moinabad","label":{"Urdu":"معین آباد","Roman Urdu":"Moinabad","English":"Moinabad"}},{"province":"sindh","city":"karachi","town":"landhi","name":"sharafi_goth","label":{"Urdu":"شرافی گوٹھ","Roman Urdu":"Sharafi Goth","English":"Sharafi Goth"}},{"province":"sindh","city":"karachi","town":"landhi","name":"bhutto_nagar","label":{"Urdu":"بھٹو نگر","Roman Urdu":"Bhutto Nagar","English":"Bhutto Nagar"}},{"province":"sindh","city":"karachi","town":"landhi","name":"khawaja_ajmeer_colony","label":{"Urdu":"خواجہ اجمیر کالونی","Roman Urdu":"Khawaja Ajmeer Colony","English":"Khawaja Ajmeer Colony"}},{"province":"sindh","city":"karachi","town":"landhi","name":"landhi_uc","label":{"Urdu":"لانڈھی یوسی","Roman Urdu":"Landhi UC","English":"Landhi UC"}},{"province":"sindh","city":"karachi","town":"landhi","name":"awami_colony","label":{"Urdu":"عوامی کالونی","Roman Urdu":"Awami Colony","English":"Awami Colony"}},{"province":"sindh","city":"karachi","town":"landhi","name":"burmee_colony","label":{"Urdu":"برمی کالونی","Roman Urdu":"Burmee Colony","English":"Burmee Colony"}},{"province":"sindh","city":"karachi","town":"landhi","name":"korangi_uc","label":{"Urdu":"کورنگی یوسی","Roman Urdu":"Korangi UC","English":"Korangi UC"}},{"province":"sindh","city":"karachi","town":"landhi","name":"sherabad","label":{"Urdu":"شیرآباد","Roman Urdu":"Sherabad","English":"Sherabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"rizvia_society","label":{"Urdu":"رضویہ سوسائٹی","Roman Urdu":"Rizvia Society","English":"Rizvia Society"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"firdous_colony","label":{"Urdu":"فردوس کالونی","Roman Urdu":"Firdous Colony","English":"Firdous Colony"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"super_market","label":{"Urdu":"سپر مارکیٹ","Roman Urdu":"Super Market","English":"Super Market"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"dak_khana","label":{"Urdu":"دک کھانہ","Roman Urdu":"Dak Khana","English":"Dak Khana"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"qasimabad","label":{"Urdu":"قاسم آباد","Roman Urdu":"Qasimabad","English":"Qasimabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"bandhani_colony","label":{"Urdu":"بندھانی کالونی","Roman Urdu":"Bandhani Colony","English":"Bandhani Colony"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"sharifabad","label":{"Urdu":"شریف آباد","Roman Urdu":"Sharifabad","English":"Sharifabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"commercial_area","label":{"Urdu":"کمرشل ایریا","Roman Urdu":"Commercial Area","English":"Commercial Area"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"mujahid_colony","label":{"Urdu":"مجاہد کالونی","Roman Urdu":"Mujahid Colony","English":"Mujahid Colony"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"nazimabad","label":{"Urdu":"ناظم آباد","Roman Urdu":"Nazimabad","English":"Nazimabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"abbasi_shaheed","label":{"Urdu":"عباسی شہید","Roman Urdu":"Abbasi Shaheed","English":"Abbasi Shaheed"}},{"province":"sindh","city":"karachi","town":"lyari","name":"agra_taj_colony","label":{"Urdu":"آگرہ تاج کالونی","Roman Urdu":"Agra Taj Colony","English":"Agra Taj Colony"}},{"province":"sindh","city":"karachi","town":"lyari","name":"daryaabad","label":{"Urdu":"دریاآباد","Roman Urdu":"Daryaabad","English":"Daryaabad"}},{"province":"sindh","city":"karachi","town":"lyari","name":"nawabad","label":{"Urdu":"نواآباد","Roman Urdu":"Nawabad","English":"Nawabad"}},{"province":"sindh","city":"karachi","town":"lyari","name":"khada_memon_society","label":{"Urdu":"خدا- میمن- سوساَٹی","Roman Urdu":"Khada Memon Society","English":"Khada Memon Society"}},{"province":"sindh","city":"karachi","town":"lyari","name":"baghdadi","label":{"Urdu":"بغدادی","Roman Urdu":"Baghdadi","English":"Baghdadi"}},{"province":"sindh","city":"karachi","town":"lyari","name":"shah_baig_line","label":{"Urdu":"شاھ باغ لائن","Roman Urdu":"Shah Baig Line","English":"Shah Baig Line"}},{"province":"sindh","city":"karachi","town":"lyari","name":"bihar_colony","label":{"Urdu":"بہار کالونی","Roman Urdu":"Bihar Colony","English":"Bihar Colony"}},{"province":"sindh","city":"karachi","town":"lyari","name":"ragiwara","label":{"Urdu":"راگی واڑا","Roman Urdu":"Ragiwara","English":"Ragiwara"}},{"province":"sindh","city":"karachi","town":"lyari","name":"singo_line","label":{"Urdu":"سنگولائن","Roman Urdu":"Singo Line","English":"Singo Line"}},{"province":"sindh","city":"karachi","town":"lyari","name":"chakiwara","label":{"Urdu":"چاکی واڑا","Roman Urdu":"Chakiwara","English":"Chakiwara"}},{"province":"sindh","city":"karachi","town":"lyari","name":"allama_iqbal_colony","label":{"Urdu":"علامہ اقبال کالونی","Roman Urdu":"Allama Iqbal Colony","English":"Allama Iqbal Colony"}},{"province":"sindh","city":"karachi","town":"malir","name":"model_colony","label":{"Urdu":"موڈل کالونی","Roman Urdu":"Model Colony","English":"Model Colony"}},{"province":"sindh","city":"karachi","town":"malir","name":"kala_board","label":{"Urdu":"کالا بورڈ","Roman Urdu":"Kala Board","English":"Kala Board"}},{"province":"sindh","city":"karachi","town":"malir","name":"saudabad","label":{"Urdu":"سعودآباد","Roman Urdu":"Saudabad","English":"Saudabad"}},{"province":"sindh","city":"karachi","town":"malir","name":"khokhra_par","label":{"Urdu":"کھوکھرا پار","Roman Urdu":"Khokhra Par","English":"Khokhra Par"}},{"province":"sindh","city":"karachi","town":"malir","name":"jafar_e_tayyar","label":{"Urdu":"جعفر تیار","Roman Urdu":"Jafar-e-Tayyar","English":"Jafar-e-Tayyar"}},{"province":"sindh","city":"karachi","town":"malir","name":"gharibabad","label":{"Urdu":"غریب آباد","Roman Urdu":"Gharibabad","English":"Gharibabad"}},{"province":"sindh","city":"karachi","town":"malir","name":"ghazi_brohi_goth","label":{"Urdu":"غازی بروہی گوٹھ","Roman Urdu":"Ghazi Brohi Goth","English":"Ghazi Brohi Goth"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"kalyana","label":{"Urdu":"کالیانہ","Roman Urdu":"Kalyana","English":"Kalyana"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"sir_syed_colony","label":{"Urdu":"سر سید کالونی","Roman Urdu":"Sir Syed Colony","English":"Sir Syed Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"fatima_jinnah_colony","label":{"Urdu":"فاطمہ جناح کالونی","Roman Urdu":"Fatima Jinnah Colony","English":"Fatima Jinnah Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"godhra","label":{"Urdu":"گودھرا","Roman Urdu":"Godhra","English":"Godhra"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"abu_zar_ghaffari","label":{"Urdu":"ابو زر غفاری","Roman Urdu":"Abu Zar Ghaffari","English":"Abu Zar Ghaffari"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"hakim_ahsan","label":{"Urdu":"حاکم احسان","Roman Urdu":"Hakim Ahsan","English":"Hakim Ahsan"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"madina_colony","label":{"Urdu":"مدینہ کالونی","Roman Urdu":"Madina Colony","English":"Madina Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"faisal_colony","label":{"Urdu":"فیصل کالونی","Roman Urdu":"Faisal Colony","English":"Faisal Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"khamiso_goth","label":{"Urdu":"خمیسو گوٹھ","Roman Urdu":"Khamiso Goth","English":"Khamiso Goth"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"mustufa_colony","label":{"Urdu":"مصطفی کالونی","Roman Urdu":"Mustufa Colony","English":"Mustufa Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"khawaja_ajmeer_nagri","label":{"Urdu":"خواجہ اجمیر نگری","Roman Urdu":"Khawaja Ajmeer Nagri","English":"Khawaja Ajmeer Nagri"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"gulshan_e_saeed","label":{"Urdu":"گلشن سعید","Roman Urdu":"Gulshan-e-Saeed","English":"Gulshan-e-Saeed"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"shah_nawaz_bhutto_colony","label":{"Urdu":"شاہ نواز بھٹو کالونی","Roman Urdu":"Shah Nawaz Bhutto Colony","English":"Shah Nawaz Bhutto Colony"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"paposh_nagar","label":{"Urdu":"پاپوش نگر","Roman Urdu":"Paposh Nagar","English":"Paposh Nagar"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"pahar_ganj","label":{"Urdu":"پہاڑ گنج","Roman Urdu":"Pahar Ganj","English":"Pahar Ganj"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"khandu_goth","label":{"Urdu":"کھنڑو گوٹھ","Roman Urdu":"Khandu Goth","English":"Khandu Goth"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"hyderi","label":{"Urdu":"حیدری","Roman Urdu":"Hyderi","English":"Hyderi"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"sakhi_hassan","label":{"Urdu":"سخی حسن","Roman Urdu":"Sakhi Hassan","English":"Sakhi Hassan"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"farooq_e_azam","label":{"Urdu":"فاروق اعظم","Roman Urdu":"Farooq-e-Azam","English":"Farooq-e-Azam"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"nusrat_bhutto_colony","label":{"Urdu":"نصرت بھٹو کالونی","Roman Urdu":"Nusrat Bhutto Colony","English":"Nusrat Bhutto Colony"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"shadman_town","label":{"Urdu":"شادمان ٹاوَن","Roman Urdu":"Shadman Town","English":"Shadman Town"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"buffer_zone","label":{"Urdu":"بفرزون","Roman Urdu":"Buffer Zone","English":"Buffer Zone"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"buffer_zone_ii","label":{"Urdu":"بفرزون 2","Roman Urdu":"Buffer Zone II","English":"Buffer Zone II"}},{"province":"sindh","city":"karachi","town":"orangi","name":"mominabad","label":{"Urdu":"مومن آباد","Roman Urdu":"Mominabad","English":"Mominabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"haryana_colony","label":{"Urdu":"حریانہ کالونی","Roman Urdu":"Haryana Colony","English":"Haryana Colony"}},{"province":"sindh","city":"karachi","town":"orangi","name":"hanifabad","label":{"Urdu":"حنیف آباد","Roman Urdu":"Hanifabad","English":"Hanifabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"mohammad_nagar","label":{"Urdu":"محمد نگر","Roman Urdu":"Mohammad Nagar","English":"Mohammad Nagar"}},{"province":"sindh","city":"karachi","town":"orangi","name":"madina_colony_orangi","label":{"Urdu":"مدینہ کالونی اورنگی","Roman Urdu":"Madina Colony Orangi","English":"Madina Colony Orangi"}},{"province":"sindh","city":"karachi","town":"orangi","name":"ghaziabad","label":{"Urdu":"غازی آباد","Roman Urdu":"Ghaziabad","English":"Ghaziabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"chisti_nagar","label":{"Urdu":"چشتی نگر","Roman Urdu":"Chisti Nagar","English":"Chisti Nagar"}},{"province":"sindh","city":"karachi","town":"orangi","name":"bilal_colony_orangi","label":{"Urdu":"بلال کالونی اورنگی","Roman Urdu":"Bilal Colony Orangi","English":"Bilal Colony Orangi"}},{"province":"sindh","city":"karachi","town":"orangi","name":"iqbal_baloch_colony","label":{"Urdu":"اقبال بلوچ کالونی","Roman Urdu":"Iqbal Baloch Colony","English":"Iqbal Baloch Colony"}},{"province":"sindh","city":"karachi","town":"orangi","name":"ghabool_town","label":{"Urdu":"گبول ٹاوَن","Roman Urdu":"Ghabool Town","English":"Ghabool Town"}},{"province":"sindh","city":"karachi","town":"orangi","name":"data_nagar","label":{"Urdu":"داتا نگر","Roman Urdu":"Data Nagar","English":"Data Nagar"}},{"province":"sindh","city":"karachi","town":"orangi","name":"mujahidabad","label":{"Urdu":"مجاہد آباد","Roman Urdu":"Mujahidabad","English":"Mujahidabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"baloch_goth","label":{"Urdu":"بلوچ گوٹھ","Roman Urdu":"Baloch Goth","English":"Baloch Goth"}},{"province":"sindh","city":"karachi","town":"saddar","name":"old_haji_camp","label":{"Urdu":"پرانہ حاجی کیمپ","Roman Urdu":"Old Haji Camp","English":"Old Haji Camp"}},{"province":"sindh","city":"karachi","town":"saddar","name":"garden","label":{"Urdu":"گارڈن","Roman Urdu":"Garden","English":"Garden"}},{"province":"sindh","city":"karachi","town":"saddar","name":"kharadar","label":{"Urdu":"کھارادر","Roman Urdu":"Kharadar","English":"Kharadar"}},{"province":"sindh","city":"karachi","town":"saddar","name":"city_railway_colony","label":{"Urdu":"سٹی ریلوے کالونی","Roman Urdu":"City Railway Colony","English":"City Railway Colony"}},{"province":"sindh","city":"karachi","town":"saddar","name":"nanak_wara","label":{"Urdu":"ناناک واڑا","Roman Urdu":"Nanak Wara","English":"Nanak Wara"}},{"province":"sindh","city":"karachi","town":"saddar","name":"gazdarabad","label":{"Urdu":"گزدرآباد","Roman Urdu":"Gazdarabad","English":"Gazdarabad"}},{"province":"sindh","city":"karachi","town":"saddar","name":"millat_nagar_islam_pura","label":{"Urdu":"ملت نگر اسلام پورا","Roman Urdu":"Millat Nagar/Islam Pura","English":"Millat Nagar/Islam Pura"}},{"province":"sindh","city":"karachi","town":"saddar","name":"saddar_uc","label":{"Urdu":"صدر یو سی","Roman Urdu":"Saddar UC","English":"Saddar UC"}},{"province":"sindh","city":"karachi","town":"saddar","name":"civil_line","label":{"Urdu":"سول لائن","Roman Urdu":"Civil Line","English":"Civil Line"}},{"province":"sindh","city":"karachi","town":"saddar","name":"clifton","label":{"Urdu":"کلفٹن","Roman Urdu":"Clifton","English":"Clifton"}},{"province":"sindh","city":"karachi","town":"saddar","name":"kehkashan","label":{"Urdu":"کہکشان","Roman Urdu":"Kehkashan","English":"Kehkashan"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"natha_khan_goth","label":{"Urdu":"ناتھا خان گوٹھ","Roman Urdu":"Natha Khan Goth","English":"Natha Khan Goth"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"pak_sadat_colony","label":{"Urdu":"پاک صدر کالونی","Roman Urdu":"Pak Sadat Colony","English":"Pak Sadat Colony"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"drigh_colony","label":{"Urdu":"ڈرگ کالونی","Roman Urdu":"Drigh Colony","English":"Drigh Colony"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"raita_plot","label":{"Urdu":"رائتا پلاٹ","Roman Urdu":"Raita Plot","English":"Raita Plot"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"moria_khan_goth","label":{"Urdu":"موریا خان گوٹھ","Roman Urdu":"Moria Khan Goth","English":"Moria Khan Goth"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"rafa_e_aam_society","label":{"Urdu":"رفا عام سوسا ئٹی","Roman Urdu":"Rafa-e-Aam Society","English":"Rafa-e-Aam Society"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"al_falah_society","label":{"Urdu":"الفلاح سوسا ئٹی","Roman Urdu":"Al-Falah Society","English":"Al-Falah Society"}},{"province":"sindh","city":"karachi","town":"site","name":"pak_colony","label":{"Urdu":"پاک کالونی","Roman Urdu":"Pak Colony","English":"Pak Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"old_golimar","label":{"Urdu":"پرانہ گولی مار","Roman Urdu":"Old Golimar","English":"Old Golimar"}},{"province":"sindh","city":"karachi","town":"site","name":"jahanabad","label":{"Urdu":"جہان آباد","Roman Urdu":"Jahanabad","English":"Jahanabad"}},{"province":"sindh","city":"karachi","town":"site","name":"metrovil","label":{"Urdu":"میٹروویل","Roman Urdu":"Metrovil","English":"Metrovil"}},{"province":"sindh","city":"karachi","town":"site","name":"bhawani_chali","label":{"Urdu":"بہوانی چالی","Roman Urdu":"Bhawani Chali","English":"Bhawani Chali"}},{"province":"sindh","city":"karachi","town":"site","name":"frontier_colony","label":{"Urdu":"فرونٹر کالونی","Roman Urdu":"Frontier Colony","English":"Frontier Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"banaras_colony","label":{"Urdu":"بنارس کالونی","Roman Urdu":"Banaras Colony","English":"Banaras Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"qasba_colony","label":{"Urdu":"قصبہ کالونی","Roman Urdu":"Qasba Colony","English":"Qasba Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"islamia_colony","label":{"Urdu":"اسلامیہ کالونی","Roman Urdu":"Islamia Colony","English":"Islamia Colony"}},{"province":"na","city":"na","town":"na","name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}},{"province":"na","city":"na","town":"na","name":"not_applicable","label":{"Urdu":"قابل اطلاق نہیں","Roman Urdu":"Qaabil-e-atlaaq nahi","English":"Not Applicable"}}],"gender":[{"instance":{"openmrs_code":"1534AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"male","label":{"Urdu":"مرد/ لڑکا","Roman Urdu":"Mard/larka","English":"Male"}},{"instance":{"openmrs_code":"1535AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"female","label":{"Urdu":"عورت/لڑکی","Roman Urdu":"Aurat/larki","English":"Female"}},{"instance":{"openmrs_code":"163163AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"transgender","label":{"Urdu":"خواجہ سرہ","Roman Urdu":"Khwaja sira","English":"Transgender"}}],"vaccines":[{"instance":{"openmrs_code":"1570AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"bcg","label":{"Urdu":"بی سی جی","Roman Urdu":"BCG","English":"BCG"}},{"instance":{"openmrs_code":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv0","label":{"Urdu":"او پی وی 0","Roman Urdu":"OPV 0","English":"OPV 0"}},{"instance":{"openmrs_code":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv1","label":{"Urdu":"پی سی وی 1","Roman Urdu":"PCV 1","English":"PCV 1"}},{"instance":{"openmrs_code":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv1","label":{"Urdu":"او پی وی 1","Roman Urdu":"OPV 1","English":"OPV 1"}},{"instance":{"openmrs_code":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta1","label":{"Urdu":"پینٹا ویلنٹ 1","Roman Urdu":"Pentavalent 1","English":"Pentavalent 1"}},{"instance":{"openmrs_code":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv2","label":{"Urdu":"پی سی وی 2","Roman Urdu":"PCV 2","English":"PCV 2"}},{"instance":{"openmrs_code":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv2","label":{"Urdu":"او پی وی 2","Roman Urdu":"OPV 2","English":"OPV 2"}},{"instance":{"openmrs_code":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta2","label":{"Urdu":"پینٹا ویلنٹ 2","Roman Urdu":"Pentavalent 2","English":"Pentavalent 2"}},{"instance":{"openmrs_code":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv3","label":{"Urdu":"پی سی وی 3","Roman Urdu":"PCV 3","English":"PCV 3"}},{"instance":{"openmrs_code":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv3","label":{"Urdu":"او پی وی 3","Roman Urdu":"OPV 3","English":"OPV 3"}},{"instance":{"openmrs_code":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta3","label":{"Urdu":"پینٹا ویلنٹ 3","Roman Urdu":"Pentavalent 3","English":"Pentavalent 3"}},{"instance":{"openmrs_code":"82242AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ipv","label":{"Urdu":"آئی پی وی","Roman Urdu":"IPV","English":"IPV"}},{"instance":{"openmrs_code":"79409AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"measles1","label":{"Urdu":"خسرہ 1","Roman Urdu":"Khasra 1","English":"Measles 1"}},{"instance":{"openmrs_code":"79409AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"measles2","label":{"Urdu":"خسرہ 2","Roman Urdu":"Khasra 2","English":"Measles 2"}}],"towns":[{"province":"sindh","city":"karachi","name":"korangi","label":{"Urdu":"کورنگی","Roman Urdu":"Korangi","English":"Korangi"}},{"province":"sindh","city":"karachi","name":"landhi","label":{"Urdu":"لانڈھی","Roman Urdu":"Landhi","English":"Landhi"}},{"province":"sindh","city":"karachi","name":"baldia","label":{"Urdu":"بلدیہ","Roman Urdu":"Baldia","English":"Baldia"}},{"province":"sindh","city":"karachi","name":"bin_qasim","label":{"Urdu":"بن قاسم","Roman Urdu":"Bin Qasim","English":"Bin Qasim"}},{"province":"sindh","city":"karachi","name":"gadap","label":{"Urdu":"گڈاپ","Roman Urdu":"Gadap","English":"Gadap"}},{"province":"sindh","city":"karachi","name":"gulberg","label":{"Urdu":"گلبرگ","Roman Urdu":"Gulberg","English":"Gulberg"}},{"province":"sindh","city":"karachi","name":"gulshan","label":{"Urdu":"گلشن","Roman Urdu":"Gulshan","English":"Gulshan"}},{"province":"sindh","city":"karachi","name":"jamshed","label":{"Urdu":"جمشید","Roman Urdu":"Jamshed","English":"Jamshed"}},{"province":"sindh","city":"karachi","name":"kiamari","label":{"Urdu":"کیماری","Roman Urdu":"Kiamari","English":"Kiamari"}},{"province":"sindh","city":"karachi","name":"liaquatabad","label":{"Urdu":"لیاقت آباد","Roman Urdu":"Liaquatabad","English":"Liaquatabad"}},{"province":"sindh","city":"karachi","name":"lyari","label":{"Urdu":"لیاری","Roman Urdu":"Lyari","English":"Lyari"}},{"province":"sindh","city":"karachi","name":"malir","label":{"Urdu":"ملیر","Roman Urdu":"Malir","English":"Malir"}},{"province":"sindh","city":"karachi","name":"new_karachi","label":{"Urdu":"نیو کراچی","Roman Urdu":"New Karachi","English":"New Karachi"}},{"province":"sindh","city":"karachi","name":"north_nazimabad","label":{"Urdu":"نارتھ ناظم آباد","Roman Urdu":"North Nazimabad","English":"North Nazimabad"}},{"province":"sindh","city":"karachi","name":"orangi","label":{"Urdu":"اورنگی","Roman Urdu":"Orangi","English":"Orangi"}},{"province":"sindh","city":"karachi","name":"saddar","label":{"Urdu":"صدر","Roman Urdu":"Saddar","English":"Saddar"}},{"province":"sindh","city":"karachi","name":"shah_faisal","label":{"Urdu":"شاہ فیصل","Roman Urdu":"Shah Faisal","English":"Shah Faisal"}},{"province":"sindh","city":"karachi","name":"site","label":{"Urdu":"سائٹ","Roman Urdu":"S.I.T.E.","English":"S.I.T.E."}},{"province":"na","city":"na","name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}},{"province":"na","city":"na","name":"not_applicable","label":{"Urdu":"قابل اطلاق نہیں","Roman Urdu":"Qaabil-e-atlaaq nahi","English":"Not Applicable"}}],"cities":[{"province":"sindh","name":"karachi","label":{"Urdu":"کراچی","Roman Urdu":"Karachi","English":"Karachi"}},{"province":"punjab","name":"hafizabad","label":{"Urdu":"حافظ آباد","Roman Urdu":"Hafizabad","English":"Hafizabad"}},{"province":"punjab","name":"muzaffargarh","label":{"Urdu":"مظفر گڑھ","Roman Urdu":"Muzaffargarh","English":"Muzaffargarh"}},{"province":"na","name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}},{"province":"na","name":"not_applicable","label":{"Urdu":"قابل اطلاق نہیں","Roman Urdu":"Not Applicable","English":"Not Applicable"}}],"ethnicity":[{"instance":{"openmrs_code":"163215AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"punjabi","label":{"Urdu":"پنجابی","Roman Urdu":"Punjabi","English":"Punjabi"}},{"instance":{"openmrs_code":"163216AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pushtuns","label":{"Urdu":"پشتون","Roman Urdu":"Pushtun","English":"Pushtun"}},{"instance":{"openmrs_code":"163217AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"sindhi","label":{"Urdu":"سندھی","Roman Urdu":"Sindhi","English":"Sindhi"}},{"instance":{"openmrs_code":"163218AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"saraiki","label":{"Urdu":"سرائیکی","Roman Urdu":"Saraiki","English":"Saraiki"}},{"instance":{"openmrs_code":"163219AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"muhajir","label":{"Urdu":"مہاجر","Roman Urdu":"Muhajir","English":"Muhajir"}},{"instance":{"openmrs_code":"163220AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"balochi","label":{"Urdu":"بلوچی","Roman Urdu":"Balochi","English":"Balochi"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}}],"yes_no":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}]},"instance":{"encounter_type":"Child Vaccination Enrollment"},"version":"201604080617","id_string":"child_vaccination_enrollment","type":"survey","children":[{"type":"hidden","name":"provider_uc"},{"type":"hidden","name":"provider_town"},{"type":"hidden","name":"provider_city"},{"type":"hidden","name":"provider_province"},{"type":"hidden","name":"provider_id"},{"instance":{"openmrs_entity_id":"location_id","openmrs_entity":"encounter"},"type":"hidden","name":"provider_location_id"},{"instance":{"openmrs_entity_id":"Program Client ID","openmrs_entity":"person_identifier"},"type":"hidden","name":"existing_program_client_id"},{"type":"hidden","name":"provider_location_name"},{"type":"note","name":"provider_location_note","label":{"Urdu":"شہر: ${provider_city} ; ٹائون: ${provider_town} ; یوسی: ${provider_uc} ; سینٹرکا نام: ${provider_location_name}","English":"City: ${provider_city} ; Town: ${provider_town} ; UC: ${provider_uc} ; Center Name: ${provider_location_name}","Roman Urdu":"Shehr: ${provider_city} ; Town: ${provider_town} ; UC: ${provider_uc} ; Center ka naam: ${provider_location_name}"}},{"instance":{"openmrs_entity_id":"163137AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"start","name":"start"},{"instance":{"openmrs_entity_id":"163138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"end","name":"end"},{"instance":{"openmrs_entity_id":"163286AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"today","name":"today"},{"instance":{"openmrs_entity_id":"163149AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"deviceid","name":"deviceid"},{"instance":{"openmrs_entity_id":"163150AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"subscriberid","name":"subscriberid"},{"instance":{"openmrs_entity_id":"163151AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"simserial","name":"simserial"},{"instance":{"openmrs_entity_id":"163152AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"phonenumber","name":"phonenumber"},{"name":"client_reg_date","hint":{"Urdu":"بچے کو ویکسین لگنے کی تاریخ","English":"Date on which child was vaccinated","Roman Urdu":"Bachay ko vaccine lagnay ki tareekh"},"bind":{"jr:constraintMsg":{"Urdu":"بچے کی پروگرام میں اندراج کی تاریخ مستقبل کی نہیں ہوسکتی","English":"Child registration date cannot be in the future","Roman Urdu":"Bachay ki program mai andraaj ki tareekh mustaqbil ki nahi hosakti"},"required":"yes","constraint":".<=${today}"},"label":{"Urdu":"بچے کی پروگرام میں اندراج کی تاریخ","English":"Child Registration date","Roman Urdu":"Bachay ki Program mai andraj ki tareekh"},"instance":{"openmrs_entity_id":"encounter_date","openmrs_entity":"encounter"},"type":"date"},{"bind":{"required":"yes"},"type":"note","name":"program_client_id","label":{"Urdu":"کلائنٹ کی پروگرام آئی ڈی {existing_program_client_id}$","Roman Urdu":"Client ki program ID ${existing_program_client_id}","English":"Program Client ID ${existing_program_client_id}"}},{"bind":{"jr:constraintMsg":{"Urdu":"نمبر آٹھ ہندسوں پر مشتمل ہونا چاہئے","English":"Number should be 8 digits","Roman Urdu":"Number 8 hindason par mushtamil hona chahiye"},"required":"yes","constraint":"string-length(.) = 8"},"type":"integer","instance":{"openmrs_entity_id":"EPI Card Number","openmrs_entity":"person_attribute"},"name":"epi_card_number","label":{"Urdu":"کارڈ نمبر","English":"EPI Card Number","Roman Urdu":"EPI Card Number"}},{"bind":{"jr:constraintMsg":{"Urdu":"نام تین سے پچیس حروف پر مشتمل ہونا چاہئے","English":"Name should be 3 to 25 characters long","Roman Urdu":"Naam 3 say 25 huroof par mushtamil hona chahiye"},"required":"yes","constraint":"regex(., '^[a-zA-Z\\s\\.\\-]{3,25}$')"},"type":"text","instance":{"openmrs_entity_id":"first_name","openmrs_entity":"person"},"name":"first_name","label":{"Urdu":"نام","English":"First Name","Roman Urdu":"Naam"}},{"bind":{"jr:constraintMsg":{"Urdu":"نام تین سے پچیس حروف پر مشتمل ہونا چاہئے","English":"Name should be 3 to 25 characters long","Roman Urdu":"Naam 3 say 25 huroof par mushtamil hona chahiye"},"required":"yes","constraint":"regex(., '^[a-zA-Z\\s\\.\\-]{3,25}$')"},"type":"text","instance":{"openmrs_entity_id":"last_name","openmrs_entity":"person"},"name":"last_name","label":{"Urdu":"والد کا نام","English":"Last name","Roman Urdu":"Waalid ka naam"}},{"default":"yes","label":{"Urdu":"کیا تاریخ پیدائش معلوم ہے؟","Roman Urdu":"Kya tareekh-e-pedaaish maloom hai?","English":"Is birthdate known?"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}],"name":"member_birth_date_known"},{"bind":{"jr:constraintMsg":{"Urdu":"یہ تاریخ مستقبل کی نہیں ہو سکتی۔\nاندراج کے لیے بچے کی عمر پانچ سال سے کم ہونی چاہئے۔","Roman Urdu":"Ye tareekh mustaqbil ki nahi ho sakti.\nAndraaj ke liye bachay ki umar paanch saal se kam honi chahiye.","English":"This cannot be a date in the future.\nChild's age must be less than five years for enrollment."},"relevant":"selected(${member_birth_date_known}, 'yes')","constraint":".<=${today} and (int((${today} - ${member_birth_date}) div 365) < 5)"},"type":"date","name":"member_birth_date","label":{"Urdu":"تاریخ پیدائش","Roman Urdu":"Tareekh-e-pedaaish","English":"Birth date"}},{"bind":{"jr:constraintMsg":{"Urdu":"اندراج کے لیے بچے کی عمر پانچ سال سے کم ہونی چاہئے","Roman Urdu":"Andraaj ke liye bachay ki umar paanch saal se kam honi chahiye","English":"Child's age must be less than five years for enrollment"},"relevant":"selected(${member_birth_date_known}, 'no')","constraint":".<=60"},"type":"integer","name":"age","label":{"Urdu":"عمر (مہینوں میں)","Roman Urdu":"Umar (mahinon main)","English":"Age (months)"}},{"bind":{"calculate":"int((${today} - ${member_birth_date}) div 30.44)"},"type":"calculate","name":"calc_age"},{"bind":{"calculate":"date(${today} - int(${age} * 30.44))"},"type":"calculate","name":"calc_dob"},{"bind":{"calculate":"if(${member_birth_date_known}='yes', ${member_birth_date}, ${calc_dob})"},"type":"calculate","name":"calc_dob_confirm","instance":{"openmrs_entity_id":"birthdate","openmrs_entity":"person"}},{"bind":{"calculate":"if(${member_birth_date_known} = 'yes', '0', '1')"},"type":"calculate","name":"calc_dob_estimated","instance":{"openmrs_entity_id":"birthdate_estimated","openmrs_entity":"person"}},{"bind":{"calculate":"if(${member_birth_date_known}='yes', ${calc_age}, ${age})"},"type":"calculate","name":"calc_age_confirm","instance":{"openmrs_entity_id":"154384AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"type":"note","name":"member_birth_date_note","label":{"Urdu":"کلائنٹ کی تاریخ پیدائش:${calc_dob_confirm}","English":"Member Date of Birth: ${calc_dob_confirm}","Roman Urdu":"Member ki Tareekh-e-pedaaish: ${calc_dob_confirm}"}},{"type":"note","name":"note_age","label":{"Urdu":"عمر :{calc_age_confirm}$ مہینے","English":"Age: ${calc_age_confirm} months","Roman Urdu":"Umar: ${calc_age_confirm} mahinay"}},{"control":{"appearance":"minimal"},"name":"gender","bind":{"required":"yes"},"label":{"Urdu":"جنس","English":"Gender","Roman Urdu":"Jins"},"instance":{"openmrs_entity_id":"gender","openmrs_entity":"person"},"type":"select one","children":[{"instance":{"openmrs_code":"1534AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"male","label":{"Urdu":"مرد/ لڑکا","Roman Urdu":"Mard/larka","English":"Male"}},{"instance":{"openmrs_code":"1535AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"female","label":{"Urdu":"عورت/لڑکی","Roman Urdu":"Aurat/larki","English":"Female"}},{"instance":{"openmrs_code":"163163AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"transgender","label":{"Urdu":"خواجہ سرہ","Roman Urdu":"Khwaja sira","English":"Transgender"}}]},{"bind":{"jr:constraintMsg":{"Urdu":"نام تین سے پچیس حروف پر مشتمل ہونا چاہئے","English":"Name should be 3 to 25 characters long","Roman Urdu":"Naam 3 say 25 huroof par mushtamil hona chahiye"},"constraint":"regex(., '^[a-zA-Z\\s\\.\\-]{3,25}$')"},"type":"text","instance":{"openmrs_entity_id":"1593AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"mother_name","label":{"Urdu":"والدہ کا نام","English":"Mother's Name","Roman Urdu":"Waaldah ka naam"}},{"control":{"appearance":"minimal"},"name":"ethnicity","bind":{"required":"yes"},"label":{"Urdu":"قومیت","English":"Ethnicity","Roman Urdu":"Qomiat"},"instance":{"openmrs_entity_id":"163153AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"163215AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"punjabi","label":{"Urdu":"پنجابی","Roman Urdu":"Punjabi","English":"Punjabi"}},{"instance":{"openmrs_code":"163216AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pushtuns","label":{"Urdu":"پشتون","Roman Urdu":"Pushtun","English":"Pushtun"}},{"instance":{"openmrs_code":"163217AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"sindhi","label":{"Urdu":"سندھی","Roman Urdu":"Sindhi","English":"Sindhi"}},{"instance":{"openmrs_code":"163218AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"saraiki","label":{"Urdu":"سرائیکی","Roman Urdu":"Saraiki","English":"Saraiki"}},{"instance":{"openmrs_code":"163219AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"muhajir","label":{"Urdu":"مہاجر","Roman Urdu":"Muhajir","English":"Muhajir"}},{"instance":{"openmrs_code":"163220AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"balochi","label":{"Urdu":"بلوچی","Roman Urdu":"Balochi","English":"Balochi"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}}]},{"bind":{"relevant":"selected(${ethnicity}, 'other')"},"type":"text","instance":{"openmrs_entity":"concept","openmrs_entity_id":"160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"163330AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ethnicity_other","label":{"Urdu":"وضاحت کریں","Roman Urdu":"Wazaahat karain","English":"Please specify:"}},{"control":{"appearance":"minimal"},"name":"province","default":"${provider_province}","bind":{"required":"yes"},"label":{"Urdu":"صوبہ","Roman Urdu":"Suba","English":"Province"},"instance":{"openmrs_entity":"person_address","openmrs_entity_id":"stateProvince","openmrs_entity_parent":"usual_residence"},"type":"select one","children":[{"name":"kpk","label":{"Urdu":"خیبر پختون خواہ","English":"Khyber Pakhtunkhwa","Roman Urdu":"Khyber Pakhtunkhwa"}},{"name":"sindh","label":{"Urdu":"سندھ","English":"Sindh","Roman Urdu":"Sindh"}},{"name":"balochistan","label":{"Urdu":"بلوچستان","English":"Balochistan","Roman Urdu":"Balochistan"}},{"name":"punjab","label":{"Urdu":"پنجاب","English":"Punjab","Roman Urdu":"Punjab"}},{"name":"gilgit_baltistan","label":{"Urdu":"گلگت بلتستان","English":"Gilgit Baltistan","Roman Urdu":"Gilgit Baltistan"}},{"name":"kashmir","label":{"Urdu":"کشمیر","English":"Kashmir","Roman Urdu":"Kashmir"}},{"name":"fata","label":{"Urdu":"فاٹا","English":"FATA","Roman Urdu":"FATA"}},{"name":"out_of_country","label":{"Urdu":"ملک سے باہر","English":"Out of Country","Roman Urdu":"Mulk se baahir"}}]},{"control":{"appearance":"minimal"},"name":"city_village","choice_filter":"province=${province} or province='na'","default":"${provider_city}","bind":{"required":"yes"},"label":{"Urdu":"شہر","Roman Urdu":"Shehr","English":"City"},"itemset":"cities","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"cityVillage","openmrs_entity_parent":"usual_residence"},"type":"select one"},{"control":{"appearance":"minimal"},"name":"town","choice_filter":"(province=${province} and city=${city_village} ) or city='na'","bind":{"required":"yes"},"label":{"Urdu":"ٹاٰئون/ قصبہ/ بستی","Roman Urdu":"Town / Qasbah / Basti","English":"Town"},"itemset":"towns","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"town","openmrs_entity_parent":"usual_residence"},"type":"select one"},{"control":{"appearance":"minimal"},"name":"union_council","choice_filter":"(province=${province} and city=${city_village} and town=${town}) or town='na'","bind":{"required":"yes"},"label":{"Urdu":"یونین کونسل","Roman Urdu":"Union Council","English":"Union Council"},"itemset":"ucs","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"subTown","openmrs_entity_parent":"usual_residence"},"type":"select one"},{"bind":{"required":"yes"},"type":"text","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"house","openmrs_entity_parent":"usual_residence"},"name":"house_number","label":{"Urdu":"گھر کا نمبر","Roman Urdu":"Ghar ka number","English":"House Number"}},{"bind":{"required":"yes"},"type":"text","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"street","openmrs_entity_parent":"usual_residence"},"name":"street","label":{"Urdu":"گلی/کالونی/محلہ","Roman Urdu":"Gali/Colony/Mohalla","English":"Street"}},{"bind":{"required":"yes"},"type":"text","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"landmark","openmrs_entity_parent":"usual_residence"},"name":"landmark","label":{"Urdu":"گھر کے قریب کوئی مشہور جگہ","Roman Urdu":"Ghar ke qareeb koi mashoor jagah","English":"Land Mark"}},{"bind":{"calculate":"jr:choice-name(${province}, '${province}')"},"type":"calculate","name":"provincename"},{"bind":{"calculate":"jr:choice-name(${city_village}, '${city_village}')"},"type":"calculate","name":"city_villagename"},{"bind":{"calculate":"jr:choice-name(${town}, '${town}')"},"type":"calculate","name":"townname"},{"bind":{"calculate":"jr:choice-name(${union_council}, '${union_council}')"},"type":"calculate","name":"union_councilname"},{"type":"note","name":"address","label":{"Urdu":"پتہ: ${house_number}, ${street}, ${landmark}, ${union_councilname}, ${townname}, ${city_villagename}, ${provincename}","English":"Address: ${house_number}, ${street}, ${landmark}, ${union_councilname}, ${townname}, ${city_villagename}, ${provincename}","Roman Urdu":"Pata: ${house_number}, ${street}, ${landmark}, ${union_councilname}, ${townname}, ${city_villagename}, ${provincename}"}},{"instance":{"openmrs_entity_id":"163277AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"geopoint","name":"centre_gps","label":{"Urdu":"حاصل کردہ معلومات کی جگہ کے GPS کارڈینیٹس درج کریں","English":"Collect GPS coordinates of data entry location","Roman Urdu":"Hasil karda malomaat ki jaga ke GPS coordinates darj karain"}},{"control":{"appearance":"minimal"},"name":"child_was_suffering_from_a_disease_at_birth","bind":{"required":"yes"},"label":{"Urdu":"کیا بچہ پیدائش کے وقت کسی مرض میں مبتلا تھا؟","English":"Was the child suffering from a disease at birth?","Roman Urdu":"Kya bacha pedaaish ke waqt kissi marz mai mubtila tha?"},"instance":{"openmrs_entity_id":"159926AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}]},{"name":"reminders_approval","bind":{"required":"yes"},"label":{"Urdu":"کیا آپ اپنے بچے کی اگلی ویکسین کی تاریخ کے لیے SMS موصول کرنا چاہتے ہیں؟","English":"Are you willing to receive SMS reminders for your next visit?","Roman Urdu":"Kya aap apnay bachay ki agli vaccine ki tareekh ke liye SMS mausool karna chahtay hain?"},"instance":{"openmrs_entity_id":"163089AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}]},{"bind":{"jr:constraintMsg":{"Urdu":"فون نمبر گیارہ ہندسوں پر مشتمل اور مندرجہ ذیل شکل میں ہونا چاہئے: *********03","English":"Phone number should be 11 digits in the following format: 03*********","Roman Urdu":"Phone number 11 hindason par mushtamil aur mundarja zail shakal main hona chahiey: 03*********"},"relevant":"${reminders_approval}='yes'","constraint":"regex(., '^03[0-9]{9}$')"},"type":"text","instance":{"openmrs_entity_id":"159635AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"contact_phone_number","label":{"Urdu":"موبائل نمبر:","English":"Mobile Number:","Roman Urdu":"Mobile number:"}},{"bind":{"calculate":"${calc_dob_confirm} + 42"},"type":"calculate","name":"six_weeks"},{"bind":{"calculate":"${calc_dob_confirm} + 70"},"type":"calculate","name":"ten_weeks"},{"bind":{"calculate":"${calc_dob_confirm} + 98"},"type":"calculate","name":"forteen_weeks"},{"bind":{"calculate":"${calc_dob_confirm} + 245"},"type":"calculate","name":"nine_months"},{"bind":{"calculate":"${calc_dob_confirm} + 458"},"type":"calculate","name":"fifteen_months"},{"control":{"appearance":"minimal"},"name":"vaccines","label":{"Urdu":"پچھلی تاریخ جب کسی اور سینٹر پر ٹیکے لگواِے گیے یا قطرے پلائے گئے","Roman Urdu":"Pichli tareekh jab kissi aur center par teekay lagwaye gaye ya katray pilaey gaye","English":"Retro vaccines"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"984AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1421AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"select all that apply","children":[{"instance":{"openmrs_code":"1570AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"bcg","label":{"Urdu":"بی سی جی","Roman Urdu":"BCG","English":"BCG"}},{"instance":{"openmrs_code":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv0","label":{"Urdu":"او پی وی 0","Roman Urdu":"OPV 0","English":"OPV 0"}},{"instance":{"openmrs_code":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv1","label":{"Urdu":"پی سی وی 1","Roman Urdu":"PCV 1","English":"PCV 1"}},{"instance":{"openmrs_code":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv1","label":{"Urdu":"او پی وی 1","Roman Urdu":"OPV 1","English":"OPV 1"}},{"instance":{"openmrs_code":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta1","label":{"Urdu":"پینٹا ویلنٹ 1","Roman Urdu":"Pentavalent 1","English":"Pentavalent 1"}},{"instance":{"openmrs_code":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv2","label":{"Urdu":"پی سی وی 2","Roman Urdu":"PCV 2","English":"PCV 2"}},{"instance":{"openmrs_code":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv2","label":{"Urdu":"او پی وی 2","Roman Urdu":"OPV 2","English":"OPV 2"}},{"instance":{"openmrs_code":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta2","label":{"Urdu":"پینٹا ویلنٹ 2","Roman Urdu":"Pentavalent 2","English":"Pentavalent 2"}},{"instance":{"openmrs_code":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv3","label":{"Urdu":"پی سی وی 3","Roman Urdu":"PCV 3","English":"PCV 3"}},{"instance":{"openmrs_code":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv3","label":{"Urdu":"او پی وی 3","Roman Urdu":"OPV 3","English":"OPV 3"}},{"instance":{"openmrs_code":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta3","label":{"Urdu":"پینٹا ویلنٹ 3","Roman Urdu":"Pentavalent 3","English":"Pentavalent 3"}},{"instance":{"openmrs_code":"82242AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ipv","label":{"Urdu":"آئی پی وی","Roman Urdu":"IPV","English":"IPV"}},{"instance":{"openmrs_code":"79409AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"measles1","label":{"Urdu":"خسرہ 1","Roman Urdu":"Khasra 1","English":"Measles 1"}},{"instance":{"openmrs_code":"79409AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"measles2","label":{"Urdu":"خسرہ 2","Roman Urdu":"Khasra 2","English":"Measles 2"}}]},{"bind":{"relevant":"${vaccines} != ''"},"type":"group","children":[{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'bcg')","constraint":".>= ${calc_dob_confirm} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"886AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"bcg_retro","label":{"Urdu":"بی سی جی","Roman Urdu":"BCG","English":"BCG"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'opv0')","constraint":".>= ${calc_dob_confirm} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv0_retro","label":{"Urdu":"او پی وی 0","Roman Urdu":"OPV 0","English":"OPV 0"}},{"bind":{"relevant":"selected(${vaccines}, 'opv0')","calculate":"0"},"type":"calculate","name":"opv0_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'pcv1')","constraint":".>= ${calc_dob_confirm} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv1_retro","label":{"Urdu":"پی سی وی 1","Roman Urdu":"PCV1","English":"PCV1"}},{"bind":{"relevant":"selected(${vaccines}, 'pcv1')","calculate":"1"},"type":"calculate","name":"pcv1_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'opv1')","constraint":".>= ${calc_dob_confirm} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv1_retro","label":{"Urdu":"او پی وی1","Roman Urdu":"OPV 1","English":"OPV 1"}},{"bind":{"relevant":"selected(${vaccines}, 'opv1')","calculate":"1"},"type":"calculate","name":"opv1_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'penta1')","constraint":".>= ${calc_dob_confirm} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta1_retro","label":{"Urdu":"پینٹا ویلنٹ 1","Roman Urdu":"Pentavalent 1","English":"Pentavalent 1"}},{"bind":{"relevant":"selected(${vaccines}, 'penta1')","calculate":"1"},"type":"calculate","name":"penta1_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'pcv2')","constraint":".>= ${calc_dob_confirm} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv2_retro","label":{"Urdu":"پی سی وی 2","Roman Urdu":"PCV2","English":"PCV2"}},{"bind":{"relevant":"selected(${vaccines}, 'pcv2')","calculate":"2"},"type":"calculate","name":"pcv2_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'opv2')","constraint":".>= ${calc_dob_confirm} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv2_retro","label":{"Urdu":"او پی وی 2","Roman Urdu":"OPV 2","English":"OPV 2"}},{"bind":{"relevant":"selected(${vaccines}, 'opv2')","calculate":"2"},"type":"calculate","name":"opv2_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'penta2')","constraint":".>= ${calc_dob_confirm} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta2_retro","label":{"Urdu":"پینٹا ویلنٹ 2","Roman Urdu":"Pentavalent 2","English":"Pentavalent 2"}},{"bind":{"relevant":"selected(${vaccines}, 'penta2')","calculate":"2"},"type":"calculate","name":"penta2_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'pcv3')","constraint":".>= ${calc_dob_confirm} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv3_retro","label":{"Urdu":"پی سی وی 3","Roman Urdu":"PCV3","English":"PCV3"}},{"bind":{"relevant":"selected(${vaccines}, 'pcv3')","calculate":"3"},"type":"calculate","name":"pcv3_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'opv3')","constraint":".>= ${calc_dob_confirm} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv3_retro","label":{"Urdu":"او پی وی3","Roman Urdu":"OPV 3","English":"OPV 3"}},{"bind":{"relevant":"selected(${vaccines}, 'opv3')","calculate":"3"},"type":"calculate","name":"opv3_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'penta3')","constraint":".>= ${calc_dob_confirm} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta3_retro","label":{"Urdu":"پینٹا ویلنٹ 3","Roman Urdu":"Pentavalent 3","English":"Pentavalent 3"}},{"bind":{"relevant":"selected(${vaccines}, 'penta3')","calculate":"3"},"type":"calculate","name":"penta3_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'ipv')","constraint":".>= ${calc_dob_confirm} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1422AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ipv_retro","label":{"Urdu":"آئی پی وی","Roman Urdu":"IPV","English":"IPV"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'measles1')","constraint":".>= ${calc_dob_confirm} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"measles1_retro","label":{"Urdu":"خسرہ 1","Roman Urdu":"Measles 1","English":"Measles 1"}},{"bind":{"relevant":"selected(${vaccines}, 'measles1')","calculate":"1"},"type":"calculate","name":"measles1_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'measles2')","constraint":".>= ${calc_dob_confirm} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"measles2_retro","label":{"Urdu":"خسرہ 2","Roman Urdu":"Measles2","English":"Measles2"}},{"bind":{"relevant":"selected(${vaccines}, 'measles2')","calculate":"2"},"type":"calculate","name":"measles2_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}}],"name":"vaccines_group"},{"name":"vaccines_2","choice_filter":"name = if(selected(${vaccines}, 'bcg'), '', 'bcg') or \nname = if(selected(${vaccines}, 'opv0'), '', 'opv0') or \nname = if(selected(${vaccines}, 'penta1'), '', 'penta1') or \nname = if(selected(${vaccines}, 'opv1'), '', 'opv1') or \nname = if(selected(${vaccines}, 'pcv1'), '', 'pcv1') or \nname = if(selected(${vaccines}, 'penta2'), '', 'penta2') or \nname = if(selected(${vaccines}, 'opv2'), '', 'opv2') or \nname = if(selected(${vaccines}, 'pcv2'), '', 'pcv2') or \nname = if(selected(${vaccines}, 'penta3'), '', 'penta3') or \nname = if(selected(${vaccines}, 'pcv3'), '', 'pcv3') or \nname = if(selected(${vaccines}, 'opv3'), '', 'opv3') or \nname = if(selected(${vaccines}, 'ipv'), '', 'ipv') or \nname = if(selected(${vaccines}, 'measles1'), '', 'measles1') or \nname = if(selected(${vaccines}, 'measles2'), '', 'measles2')","bind":{"required":"yes"},"label":{"Urdu":"آج کون کون سی ویکسین دی گئی ہیں؟","Roman Urdu":"Aaj kon kon si vaccine di gai hain?","English":"Vaccines administered today"},"itemset":"vaccines","instance":{"openmrs_entity":"concept","openmrs_entity_id":"984AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1441AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"select all that apply"},{"bind":{"calculate":"if(selected(${vaccines_2}, 'bcg'),${client_reg_date},'')"},"type":"calculate","name":"bcg","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"886AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'opv0'),${client_reg_date},'')"},"type":"calculate","name":"opv0","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'opv0')","calculate":"0"},"type":"calculate","name":"opv0_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'pcv1'),${client_reg_date},'')"},"type":"calculate","name":"pcv1","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'pcv1')","calculate":"1"},"type":"calculate","name":"pcv1_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'opv1'),${client_reg_date},'')"},"type":"calculate","name":"opv1","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'opv1')","calculate":"1"},"type":"calculate","name":"opv1_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'penta1'),${client_reg_date},'')"},"type":"calculate","name":"penta1","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'penta1')","calculate":"1"},"type":"calculate","name":"penta1_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'pcv2'),${client_reg_date},'')"},"type":"calculate","name":"pcv2","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'pcv2')","calculate":"2"},"type":"calculate","name":"pcv2_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'opv2'),${client_reg_date},'')"},"type":"calculate","name":"opv2","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'opv2')","calculate":"2"},"type":"calculate","name":"opv2_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'penta2'),${client_reg_date},'')"},"type":"calculate","name":"penta2","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'penta2')","calculate":"2"},"type":"calculate","name":"penta2_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'pcv3'),${client_reg_date},'')"},"type":"calculate","name":"pcv3","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'pcv3')","calculate":"3"},"type":"calculate","name":"pcv3_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'opv3'),${client_reg_date},'')"},"type":"calculate","name":"opv3","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'opv3')","calculate":"3"},"type":"calculate","name":"opv3_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'penta3'),${client_reg_date},'')"},"type":"calculate","name":"penta3","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'penta3')","calculate":"3"},"type":"calculate","name":"penta3_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines}, 'ipv')","calculate":"if(selected(${vaccines_2}, 'ipv'),${client_reg_date},'')"},"type":"calculate","name":"ipv","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1422AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'measles1'),${client_reg_date},'')"},"type":"calculate","name":"measles1","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'measles1')","calculate":"1"},"type":"calculate","name":"measles1_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'measles2'),${client_reg_date},'')"},"type":"calculate","name":"measles2","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'measles2')","calculate":"2"},"type":"calculate","name":"measles2_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"control":{"bodyless":true},"type":"group","children":[{"bind":{"readonly":"true()","calculate":"concat('uuid:', uuid())"},"type":"calculate","name":"instanceID"}],"name":"meta"}]} \ No newline at end of file diff --git a/opensrp-connector/src/test/resources/form/child_enrollment/form.xml b/opensrp-connector/src/test/resources/form/child_enrollment/form.xml deleted file mode 100644 index f2bf538694..0000000000 --- a/opensrp-connector/src/test/resources/form/child_enrollment/form.xml +++ /dev/null @@ -1,1699 +0,0 @@ -
- - -

بچّوں کا انرولمنٹ رجسٹر برائے ٹیکاجات - Child Enrollment Vaccination Register

-
-
- - کیا تاریخ پیدائش معلوم ہے؟ - Is birthdate known? - - Kya tareekh-e-pedaaish maloom hai? -
- - -
-
-
-
- - کیا آپ اپنے بچے کی اگلی ویکسین کی تاریخ کے لیے SMS موصول کرنا چاہتے ہیں؟ - Are you willing to receive SMS reminders for your next visit? - - Kya aap apnay bachay ki agli vaccine ki tareekh ke liye SMS mausool karna chahtay hain? - * -
- - -
-
-
- - - - - - - - - - - - - -
-
-
- - آج کون کون سی ویکسین دی گئی ہیں؟ - Vaccines administered today - - Aaj kon kon si vaccine di gai hain? - * -
- - - بی سی جی - BCG - - BCG - او پی وی 0 - OPV 0 - - OPV 0 - پی سی وی 1 - PCV 1 - - PCV 1 - او پی وی 1 - OPV 1 - - OPV 1 - پینٹا ویلنٹ 1 - Pentavalent 1 - - Pentavalent 1 - پی سی وی 2 - PCV 2 - - PCV 2 - او پی وی 2 - OPV 2 - - OPV 2 - پینٹا ویلنٹ 2 - Pentavalent 2 - - Pentavalent 2 - پی سی وی 3 - PCV 3 - - PCV 3 - او پی وی 3 - OPV 3 - - OPV 3 - پینٹا ویلنٹ 3 - Pentavalent 3 - - Pentavalent 3 - آئی پی وی - IPV - - IPV - خسرہ 1 - Measles 1 - - Khasra 1 - خسرہ 2 - Measles 2 - - Khasra 2 -
-
-
- -
diff --git a/opensrp-connector/src/test/resources/form/child_enrollment/form_definition.json b/opensrp-connector/src/test/resources/form/child_enrollment/form_definition.json deleted file mode 100644 index 1ce99a2b64..0000000000 --- a/opensrp-connector/src/test/resources/form/child_enrollment/form_definition.json +++ /dev/null @@ -1,346 +0,0 @@ -{ - "form_data_definition_version" : "1", - "form" : { - "bind_type" : "pkchild", - "default_bind_path" : "/model/instance/Child_Vaccination_Enrollment/", - "fields" : [ { - "name" : "id", - "shouldLoadValue" : true - }, { - "name" : "provider_uc", - "bind" : "/model/instance/Child_Vaccination_Enrollment/provider_uc", - "shouldLoadValue" : true - }, { - "name" : "provider_town", - "bind" : "/model/instance/Child_Vaccination_Enrollment/provider_town", - "shouldLoadValue" : true - }, { - "name" : "provider_city", - "bind" : "/model/instance/Child_Vaccination_Enrollment/provider_city", - "shouldLoadValue" : true - }, { - "name" : "provider_province", - "bind" : "/model/instance/Child_Vaccination_Enrollment/provider_province", - "shouldLoadValue" : true - }, { - "name" : "provider_id", - "bind" : "/model/instance/Child_Vaccination_Enrollment/provider_id", - "shouldLoadValue" : true - }, { - "name" : "provider_location_id", - "bind" : "/model/instance/Child_Vaccination_Enrollment/provider_location_id", - "shouldLoadValue" : true - }, { - "name" : "existing_program_client_id", - "bind" : "/model/instance/Child_Vaccination_Enrollment/existing_program_client_id", - "shouldLoadValue" : true - }, { - "name" : "provider_location_name", - "bind" : "/model/instance/Child_Vaccination_Enrollment/provider_location_name", - "shouldLoadValue" : true - }, { - "name" : "provider_location_note", - "bind" : "/model/instance/Child_Vaccination_Enrollment/provider_location_note" - }, { - "name" : "start", - "bind" : "/model/instance/Child_Vaccination_Enrollment/start" - }, { - "name" : "end", - "bind" : "/model/instance/Child_Vaccination_Enrollment/end" - }, { - "name" : "today", - "bind" : "/model/instance/Child_Vaccination_Enrollment/today" - }, { - "name" : "deviceid", - "bind" : "/model/instance/Child_Vaccination_Enrollment/deviceid" - }, { - "name" : "subscriberid", - "bind" : "/model/instance/Child_Vaccination_Enrollment/subscriberid" - }, { - "name" : "simserial", - "bind" : "/model/instance/Child_Vaccination_Enrollment/simserial" - }, { - "name" : "phonenumber", - "bind" : "/model/instance/Child_Vaccination_Enrollment/phonenumber" - }, { - "name" : "client_reg_date", - "bind" : "/model/instance/Child_Vaccination_Enrollment/client_reg_date" - }, { - "name" : "program_client_id", - "bind" : "/model/instance/Child_Vaccination_Enrollment/program_client_id" - }, { - "name" : "epi_card_number", - "bind" : "/model/instance/Child_Vaccination_Enrollment/epi_card_number" - }, { - "name" : "first_name", - "bind" : "/model/instance/Child_Vaccination_Enrollment/first_name" - }, { - "name" : "last_name", - "bind" : "/model/instance/Child_Vaccination_Enrollment/last_name" - }, { - "name" : "birth_date_known", - "bind" : "/model/instance/Child_Vaccination_Enrollment/member_birth_date_known" - }, { - "name" : "birth_date", - "bind" : "/model/instance/Child_Vaccination_Enrollment/member_birth_date" - }, { - "name" : "age", - "bind" : "/model/instance/Child_Vaccination_Enrollment/age" - }, { - "name" : "calc_age", - "bind" : "/model/instance/Child_Vaccination_Enrollment/calc_age" - }, { - "name" : "calc_dob", - "bind" : "/model/instance/Child_Vaccination_Enrollment/calc_dob" - }, { - "name" : "dob", - "bind" : "/model/instance/Child_Vaccination_Enrollment/calc_dob_confirm" - }, { - "name" : "calc_dob_estimated", - "bind" : "/model/instance/Child_Vaccination_Enrollment/calc_dob_estimated" - }, { - "name" : "calc_age_confirm", - "bind" : "/model/instance/Child_Vaccination_Enrollment/calc_age_confirm" - }, { - "name" : "gender", - "bind" : "/model/instance/Child_Vaccination_Enrollment/gender" - }, { - "name" : "mother_name", - "bind" : "/model/instance/Child_Vaccination_Enrollment/mother_name" - }, { - "name" : "ethnicity", - "bind" : "/model/instance/Child_Vaccination_Enrollment/ethnicity" - }, { - "name" : "ethnicity_other", - "bind" : "/model/instance/Child_Vaccination_Enrollment/ethnicity_other" - }, { - "name" : "province", - "bind" : "/model/instance/Child_Vaccination_Enrollment/province" - }, { - "name" : "city_village", - "bind" : "/model/instance/Child_Vaccination_Enrollment/city_village" - }, { - "name" : "town", - "bind" : "/model/instance/Child_Vaccination_Enrollment/town" - }, { - "name" : "union_council", - "bind" : "/model/instance/Child_Vaccination_Enrollment/union_council" - }, { - "name" : "house_number", - "bind" : "/model/instance/Child_Vaccination_Enrollment/house_number" - }, { - "name" : "street", - "bind" : "/model/instance/Child_Vaccination_Enrollment/street" - }, { - "name" : "landmark", - "bind" : "/model/instance/Child_Vaccination_Enrollment/landmark" - }, { - "name" : "provincename", - "bind" : "/model/instance/Child_Vaccination_Enrollment/provincename" - }, { - "name" : "city_villagename", - "bind" : "/model/instance/Child_Vaccination_Enrollment/city_villagename" - }, { - "name" : "townname", - "bind" : "/model/instance/Child_Vaccination_Enrollment/townname" - }, { - "name" : "union_councilname", - "bind" : "/model/instance/Child_Vaccination_Enrollment/union_councilname" - }, { - "name" : "address", - "bind" : "/model/instance/Child_Vaccination_Enrollment/address" - }, { - "name" : "centre_gps", - "bind" : "/model/instance/Child_Vaccination_Enrollment/centre_gps" - }, { - "name" : "child_was_suffering_from_a_disease_at_birth", - "bind" : "/model/instance/Child_Vaccination_Enrollment/child_was_suffering_from_a_disease_at_birth" - }, { - "name" : "reminders_approval", - "bind" : "/model/instance/Child_Vaccination_Enrollment/reminders_approval" - }, { - "name" : "contact_phone_number", - "bind" : "/model/instance/Child_Vaccination_Enrollment/contact_phone_number" - }, { - "name" : "six_weeks", - "bind" : "/model/instance/Child_Vaccination_Enrollment/six_weeks" - }, { - "name" : "ten_weeks", - "bind" : "/model/instance/Child_Vaccination_Enrollment/ten_weeks" - }, { - "name" : "forteen_weeks", - "bind" : "/model/instance/Child_Vaccination_Enrollment/forteen_weeks" - }, { - "name" : "nine_months", - "bind" : "/model/instance/Child_Vaccination_Enrollment/nine_months" - }, { - "name" : "fifteen_months", - "bind" : "/model/instance/Child_Vaccination_Enrollment/fifteen_months" - }, { - "name" : "vaccines", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines" - }, { - "name" : "bcg_retro", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/bcg_retro" - }, { - "name" : "opv0_retro", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/opv0_retro" - }, { - "name" : "opv0_dose", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/opv0_dose" - }, { - "name" : "pcv1_retro", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/pcv1_retro" - }, { - "name" : "pcv1_dose", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/pcv1_dose" - }, { - "name" : "opv1_retro", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/opv1_retro" - }, { - "name" : "opv1_dose", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/opv1_dose" - }, { - "name" : "penta1_retro", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/penta1_retro" - }, { - "name" : "penta1_dose", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/penta1_dose" - }, { - "name" : "pcv2_retro", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/pcv2_retro" - }, { - "name" : "pcv2_dose", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/pcv2_dose" - }, { - "name" : "opv2_retro", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/opv2_retro" - }, { - "name" : "opv2_dose", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/opv2_dose" - }, { - "name" : "penta2_retro", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/penta2_retro" - }, { - "name" : "penta2_dose", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/penta2_dose" - }, { - "name" : "pcv3_retro", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/pcv3_retro" - }, { - "name" : "pcv3_dose", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/pcv3_dose" - }, { - "name" : "opv3_retro", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/opv3_retro" - }, { - "name" : "opv3_dose", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/opv3_dose" - }, { - "name" : "penta3_retro", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/penta3_retro" - }, { - "name" : "penta3_dose", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/penta3_dose" - }, { - "name" : "ipv_retro", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/ipv_retro" - }, { - "name" : "measles1_retro", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/measles1_retro" - }, { - "name" : "measles1_dose", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/measles1_dose" - }, { - "name" : "measles2_retro", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/measles2_retro" - }, { - "name" : "measles2_dose", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/measles2_dose" - }, { - "name" : "vaccines_2", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_2" - }, { - "name" : "bcg", - "bind" : "/model/instance/Child_Vaccination_Enrollment/bcg" - }, { - "name" : "opv0", - "bind" : "/model/instance/Child_Vaccination_Enrollment/opv0" - }, { - "name" : "opv0_dose_today", - "bind" : "/model/instance/Child_Vaccination_Enrollment/opv0_dose_today" - }, { - "name" : "pcv1", - "bind" : "/model/instance/Child_Vaccination_Enrollment/pcv1" - }, { - "name" : "pcv1_dose_today", - "bind" : "/model/instance/Child_Vaccination_Enrollment/pcv1_dose_today" - }, { - "name" : "opv1", - "bind" : "/model/instance/Child_Vaccination_Enrollment/opv1" - }, { - "name" : "opv1_dose_today", - "bind" : "/model/instance/Child_Vaccination_Enrollment/opv1_dose_today" - }, { - "name" : "penta1", - "bind" : "/model/instance/Child_Vaccination_Enrollment/penta1" - }, { - "name" : "penta1_dose_today", - "bind" : "/model/instance/Child_Vaccination_Enrollment/penta1_dose_today" - }, { - "name" : "pcv2", - "bind" : "/model/instance/Child_Vaccination_Enrollment/pcv2" - }, { - "name" : "pcv2_dose_today", - "bind" : "/model/instance/Child_Vaccination_Enrollment/pcv2_dose_today" - }, { - "name" : "opv2", - "bind" : "/model/instance/Child_Vaccination_Enrollment/opv2" - }, { - "name" : "opv2_dose_today", - "bind" : "/model/instance/Child_Vaccination_Enrollment/opv2_dose_today" - }, { - "name" : "penta2", - "bind" : "/model/instance/Child_Vaccination_Enrollment/penta2" - }, { - "name" : "penta2_dose_today", - "bind" : "/model/instance/Child_Vaccination_Enrollment/penta2_dose_today" - }, { - "name" : "pcv3", - "bind" : "/model/instance/Child_Vaccination_Enrollment/pcv3" - }, { - "name" : "pcv3_dose_today", - "bind" : "/model/instance/Child_Vaccination_Enrollment/pcv3_dose_today" - }, { - "name" : "opv3", - "bind" : "/model/instance/Child_Vaccination_Enrollment/opv3" - }, { - "name" : "opv3_dose_today", - "bind" : "/model/instance/Child_Vaccination_Enrollment/opv3_dose_today" - }, { - "name" : "penta3", - "bind" : "/model/instance/Child_Vaccination_Enrollment/penta3" - }, { - "name" : "penta3_dose_today", - "bind" : "/model/instance/Child_Vaccination_Enrollment/penta3_dose_today" - }, { - "name" : "ipv", - "bind" : "/model/instance/Child_Vaccination_Enrollment/ipv" - }, { - "name" : "measles1", - "bind" : "/model/instance/Child_Vaccination_Enrollment/measles1" - }, { - "name" : "measles1_dose_today", - "bind" : "/model/instance/Child_Vaccination_Enrollment/measles1_dose_today" - }, { - "name" : "measles2", - "bind" : "/model/instance/Child_Vaccination_Enrollment/measles2" - }, { - "name" : "measles2_dose_today", - "bind" : "/model/instance/Child_Vaccination_Enrollment/measles2_dose_today" - }, { - "name" : "instanceID", - "bind" : "/model/instance/Child_Vaccination_Enrollment/meta/instanceID" - } ] - } -} \ No newline at end of file diff --git a/opensrp-connector/src/test/resources/form/child_enrollment/form_submission.json b/opensrp-connector/src/test/resources/form/child_enrollment/form_submission.json deleted file mode 100644 index 42a03ab6d4..0000000000 --- a/opensrp-connector/src/test/resources/form/child_enrollment/form_submission.json +++ /dev/null @@ -1,639 +0,0 @@ -{ - "_id": "52625cc147af58c89c96e35bd60422c2", - "_rev": "1-190b7f97ddf9e7416c7193de9b3a731b", - "type": "FormSubmission", - "anmId": "demotest", - "instanceId": "8524f6b8-441a-4769-aa74-03e1dde0901a", - "formName": "child_enrollment", - "entityId": "ad653225-6bed-48d3-8e5d-741d3d50d61a", - "clientVersion": 1457201032214, - "formDataDefinitionVersion": "1", - "formInstance": { - "form_data_definition_version": "1", - "form": { - "bind_type": "pkchild", - "default_bind_path": "/model/instance/Child_Vaccination_Enrollment/", - "fields": [ - { - "name": "id", - "value": "ad653225-6bed-48d3-8e5d-741d3d50d61a", - "source": "pkchild.id" - }, - { - "name": "provider_uc", - "value": "Zaman Town", - "source": "pkchild.provider_uc" - }, - { - "name": "provider_town", - "value": "Korangi", - "source": "pkchild.provider_town" - }, - { - "name": "provider_city", - "value": "Karachi", - "source": "pkchild.provider_city" - }, - { - "name": "provider_province", - "value": "Sindh", - "source": "pkchild.provider_province" - }, - { - "name": "provider_id", - "value": "demotest", - "source": "pkchild.provider_id" - }, - { - "name": "provider_location_id", - "value": "Homeopathic Center", - "source": "pkchild.provider_location_id" - }, - { - "name": "existing_program_client_id", - "value": "98120722", - "source": "pkchild.existing_program_client_id" - }, - { - "name": "provider_location_name", - "value": "Homeopathic Center", - "source": "pkchild.provider_location_name" - }, - { - "name": "provider_location_note", - "value": "", - "source": "pkchild.provider_location_note" - }, - { - "name": "start", - "value": "2016-03-05 23:01:13", - "source": "pkchild.start" - }, - { - "name": "end", - "value": "2016-03-05 23:03:51", - "source": "pkchild.end" - }, - { - "name": "today", - "value": "2016-03-05", - "source": "pkchild.today" - }, - { - "name": "deviceid", - "value": "Error: could not determine deviceID", - "source": "pkchild.deviceid" - }, - { - "name": "subscriberid", - "value": "no subscriberid property in enketo", - "source": "pkchild.subscriberid" - }, - { - "name": "simserial", - "value": "no simserial property in enketo", - "source": "pkchild.simserial" - }, - { - "name": "phonenumber", - "value": "no phonenumber property in enketo", - "source": "pkchild.phonenumber" - }, - { - "name": "client_reg_date", - "value": "2016-03-05", - "source": "pkchild.client_reg_date" - }, - { - "name": "program_client_id", - "value": "98120722", - "source": "pkchild.program_client_id" - }, - { - "name": "epi_card_number", - "value": "20160009", - "source": "pkchild.epi_card_number" - }, - { - "name": "first_name", - "value": "aase", - "source": "pkchild.first_name" - }, - { - "name": "last_name", - "value": "zeest", - "source": "pkchild.last_name" - }, - { - "name": "birth_date_known", - "value": "yes", - "source": "pkchild.birth_date_known" - }, - { - "name": "birth_date", - "value": "2016-01-03", - "source": "pkchild.birth_date" - }, - { - "name": "age", - "value": "", - "source": "pkchild.age" - }, - { - "name": "calc_age", - "value": "2", - "source": "pkchild.calc_age" - }, - { - "name": "calc_dob", - "value": "Invalid Date", - "source": "pkchild.calc_dob" - }, - { - "name": "dob", - "value": "2016-01-03", - "source": "pkchild.dob" - }, - { - "name": "calc_dob_estimated", - "value": "0", - "source": "pkchild.calc_dob_estimated" - }, - { - "name": "calc_age_confirm", - "value": "2", - "source": "pkchild.calc_age_confirm" - }, - { - "name": "gender", - "value": "male", - "source": "pkchild.gender" - }, - { - "name": "mother_name", - "value": "zindagi", - "source": "pkchild.mother_name" - }, - { - "name": "ethnicity", - "value": "pushtuns", - "source": "pkchild.ethnicity" - }, - { - "name": "ethnicity_other", - "source": "pkchild.ethnicity_other" - }, - { - "name": "province", - "value": "sindh", - "source": "pkchild.province" - }, - { - "name": "city_village", - "value": "karachi", - "source": "pkchild.city_village" - }, - { - "name": "town", - "value": "liaquatabad", - "source": "pkchild.town" - }, - { - "name": "union_council", - "value": "mujahid_colony", - "source": "pkchild.union_council" - }, - { - "name": "house_number", - "value": "hi65", - "source": "pkchild.house_number" - }, - { - "name": "street", - "value": "gal7", - "source": "pkchild.street" - }, - { - "name": "landmark", - "value": "nishaani", - "source": "pkchild.landmark" - }, - { - "name": "provincename", - "value": "Sindh", - "source": "pkchild.provincename" - }, - { - "name": "city_villagename", - "value": "Karachi", - "source": "pkchild.city_villagename" - }, - { - "name": "townname", - "value": "Liaquatabad", - "source": "pkchild.townname" - }, - { - "name": "union_councilname", - "value": "Mujahid Colony", - "source": "pkchild.union_councilname" - }, - { - "name": "address", - "value": "", - "source": "pkchild.address" - }, - { - "name": "centre_gps", - "value": "24.876534 67.177482 0 33", - "source": "pkchild.centre_gps" - }, - { - "name": "child_was_suffering_from_a_disease_at_birth", - "value": "yes", - "source": "pkchild.child_was_suffering_from_a_disease_at_birth" - }, - { - "name": "reminders_approval", - "value": "yes", - "source": "pkchild.reminders_approval" - }, - { - "name": "contact_phone_number", - "value": "03346543213", - "source": "pkchild.contact_phone_number" - }, - { - "name": "six_weeks", - "value": "16845", - "source": "pkchild.six_weeks" - }, - { - "name": "ten_weeks", - "value": "16873", - "source": "pkchild.ten_weeks" - }, - { - "name": "forteen_weeks", - "value": "16901", - "source": "pkchild.forteen_weeks" - }, - { - "name": "nine_months", - "value": "17048", - "source": "pkchild.nine_months" - }, - { - "name": "fifteen_months", - "value": "17261", - "source": "pkchild.fifteen_months" - }, - { - "name": "vaccines", - "value": "bcg opv0", - "source": "pkchild.vaccines" - }, - { - "name": "bcg_retro", - "value": "2016-01-13", - "source": "pkchild.bcg_retro" - }, - { - "name": "opv0_retro", - "value": "2016-01-08", - "source": "pkchild.opv0_retro" - }, - { - "name": "opv0_dose", - "value": "0", - "source": "pkchild.opv0_dose" - }, - { - "name": "pcv1_retro", - "source": "pkchild.pcv1_retro" - }, - { - "name": "pcv1_dose", - "source": "pkchild.pcv1_dose" - }, - { - "name": "opv1_retro", - "source": "pkchild.opv1_retro" - }, - { - "name": "opv1_dose", - "source": "pkchild.opv1_dose" - }, - { - "name": "penta1_retro", - "source": "pkchild.penta1_retro" - }, - { - "name": "penta1_dose", - "source": "pkchild.penta1_dose" - }, - { - "name": "pcv2_retro", - "source": "pkchild.pcv2_retro" - }, - { - "name": "pcv2_dose", - "source": "pkchild.pcv2_dose" - }, - { - "name": "opv2_retro", - "source": "pkchild.opv2_retro" - }, - { - "name": "opv2_dose", - "source": "pkchild.opv2_dose" - }, - { - "name": "penta2_retro", - "source": "pkchild.penta2_retro" - }, - { - "name": "penta2_dose", - "source": "pkchild.penta2_dose" - }, - { - "name": "pcv3_retro", - "source": "pkchild.pcv3_retro" - }, - { - "name": "pcv3_dose", - "source": "pkchild.pcv3_dose" - }, - { - "name": "opv3_retro", - "source": "pkchild.opv3_retro" - }, - { - "name": "opv3_dose", - "source": "pkchild.opv3_dose" - }, - { - "name": "penta3_retro", - "source": "pkchild.penta3_retro" - }, - { - "name": "penta3_dose", - "source": "pkchild.penta3_dose" - }, - { - "name": "ipv_retro", - "source": "pkchild.ipv_retro" - }, - { - "name": "measles1_retro", - "source": "pkchild.measles1_retro" - }, - { - "name": "measles1_dose", - "source": "pkchild.measles1_dose" - }, - { - "name": "measles2_retro", - "source": "pkchild.measles2_retro" - }, - { - "name": "measles2_dose", - "source": "pkchild.measles2_dose" - }, - { - "name": "vaccines_2", - "value": "pcv1 opv1 penta1", - "source": "pkchild.vaccines_2" - }, - { - "name": "bcg", - "source": "pkchild.bcg" - }, - { - "name": "opv0", - "source": "pkchild.opv0" - }, - { - "name": "opv0_dose_today", - "source": "pkchild.opv0_dose_today" - }, - { - "name": "pcv1", - "value": "2016-03-05", - "source": "pkchild.pcv1" - }, - { - "name": "pcv1_dose_today", - "value": "1", - "source": "pkchild.pcv1_dose_today" - }, - { - "name": "opv1", - "value": "2016-03-05", - "source": "pkchild.opv1" - }, - { - "name": "opv1_dose_today", - "value": "1", - "source": "pkchild.opv1_dose_today" - }, - { - "name": "penta1", - "value": "2016-03-05", - "source": "pkchild.penta1" - }, - { - "name": "penta1_dose_today", - "value": "1", - "source": "pkchild.penta1_dose_today" - }, - { - "name": "pcv2", - "source": "pkchild.pcv2" - }, - { - "name": "pcv2_dose_today", - "source": "pkchild.pcv2_dose_today" - }, - { - "name": "opv2", - "source": "pkchild.opv2" - }, - { - "name": "opv2_dose_today", - "source": "pkchild.opv2_dose_today" - }, - { - "name": "penta2", - "source": "pkchild.penta2" - }, - { - "name": "penta2_dose_today", - "source": "pkchild.penta2_dose_today" - }, - { - "name": "pcv3", - "source": "pkchild.pcv3" - }, - { - "name": "pcv3_dose_today", - "source": "pkchild.pcv3_dose_today" - }, - { - "name": "opv3", - "source": "pkchild.opv3" - }, - { - "name": "opv3_dose_today", - "source": "pkchild.opv3_dose_today" - }, - { - "name": "penta3", - "source": "pkchild.penta3" - }, - { - "name": "penta3_dose_today", - "source": "pkchild.penta3_dose_today" - }, - { - "name": "ipv", - "source": "pkchild.ipv" - }, - { - "name": "measles1", - "source": "pkchild.measles1" - }, - { - "name": "measles1_dose_today", - "source": "pkchild.measles1_dose_today" - }, - { - "name": "measles2", - "source": "pkchild.measles2" - }, - { - "name": "measles2_dose_today", - "source": "pkchild.measles2_dose_today" - }, - { - "name": "instanceID", - "value": "uuid:749f572e-c894-4e5c-89f5-7f3e3573df3a", - "source": "pkchild.instanceID" - } - ], - "fieldsAsMap": { - "penta1_retro": null, - "instanceID": "uuid:749f572e-c894-4e5c-89f5-7f3e3573df3a", - "penta3_dose_today": null, - "street": "gal7", - "opv0_retro": "2016-01-08", - "deviceid": "Error: could not determine deviceID", - "townname": "Liaquatabad", - "pcv3_retro": null, - "first_name": "aase", - "opv2_dose": null, - "child_was_suffering_from_a_disease_at_birth": "yes", - "penta2_dose_today": null, - "provider_location_id": "Homeopathic Center", - "calc_age_confirm": "2", - "opv1_dose": null, - "phonenumber": "no phonenumber property in enketo", - "opv0_dose_today": null, - "birth_date": "2016-01-03", - "provider_uc": "Zaman Town", - "opv0_dose": "0", - "opv3_retro": null, - "measles2_dose": null, - "house_number": "hi65", - "city_village": "karachi", - "measles2_dose_today": null, - "start": "2016-03-05 23:01:13", - "last_name": "zeest", - "pcv3_dose": null, - "pcv1_dose": null, - "bcg_retro": "2016-01-13", - "pcv2_dose_today": null, - "ethnicity_other": null, - "opv2_dose_today": null, - "end": "2016-03-05 23:03:51", - "penta2_dose": null, - "pcv1_dose_today": "1", - "ten_weeks": "16873", - "six_weeks": "16845", - "bcg": null, - "vaccines_2": "pcv1 opv1 penta1", - "calc_age": "2", - "centre_gps": "24.876534 67.177482 0 33", - "penta2": null, - "penta3": null, - "measles1": null, - "penta1": "2016-03-05", - "measles2": null, - "calc_dob_estimated": "0", - "dob": "2016-01-03", - "mother_name": "zindagi", - "provider_town": "Korangi", - "ethnicity": "pushtuns", - "pcv2_retro": null, - "pcv2_dose": null, - "penta1_dose": null, - "measles1_dose": null, - "pcv3_dose_today": null, - "contact_phone_number": "03346543213", - "ipv": null, - "provider_id": "demotest", - "penta3_dose": null, - "opv3_dose": null, - "ipv_retro": null, - "client_reg_date": "2016-03-05", - "measles1_dose_today": null, - "age": "", - "province": "sindh", - "gender": "male", - "provider_province": "Sindh", - "opv1_retro": null, - "simserial": "no simserial property in enketo", - "nine_months": "17048", - "fifteen_months": "17261", - "pcv3": null, - "provider_location_note": "", - "provider_city": "Karachi", - "landmark": "nishaani", - "subscriberid": "no subscriberid property in enketo", - "pcv1": "2016-03-05", - "pcv2": null, - "opv0": null, - "town": "liaquatabad", - "opv3": null, - "epi_card_number": "20160009", - "opv1": "2016-03-05", - "opv2": null, - "opv2_retro": null, - "vaccines": "bcg opv0", - "program_client_id": "98120722", - "penta1_dose_today": "1", - "today": "2016-03-05", - "city_villagename": "Karachi", - "opv1_dose_today": "1", - "opv3_dose_today": null, - "union_council": "mujahid_colony", - "measles2_retro": null, - "id": "ad653225-6bed-48d3-8e5d-741d3d50d61a", - "provincename": "Sindh", - "penta3_retro": null, - "forteen_weeks": "16901", - "birth_date_known": "yes", - "provider_location_name": "Homeopathic Center", - "union_councilname": "Mujahid Colony", - "pcv1_retro": null, - "calc_dob": "Invalid Date", - "existing_program_client_id": "98120722", - "penta2_retro": null, - "address": "", - "reminders_approval": "yes", - "measles1_retro": null - } - } - }, - "serverVersion": 1457287713772 -} \ No newline at end of file diff --git a/opensrp-connector/src/test/resources/form/child_enrollment/model.xml b/opensrp-connector/src/test/resources/form/child_enrollment/model.xml deleted file mode 100644 index 8544185b0d..0000000000 --- a/opensrp-connector/src/test/resources/form/child_enrollment/model.xml +++ /dev/null @@ -1,1691 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - yes - - - - - - - - - - - - - - ${provider_province} - ${provider_city} - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - static_instance-provinces-0 - kpk - - - static_instance-provinces-1 - sindh - - - static_instance-provinces-2 - balochistan - - - static_instance-provinces-3 - punjab - - - static_instance-provinces-4 - gilgit_baltistan - - - static_instance-provinces-5 - kashmir - - - static_instance-provinces-6 - fata - - - static_instance-provinces-7 - out_of_country - - - - - - - static_instance-ucs-0 - sindh - karachi - korangi - bilal_colony - - - static_instance-ucs-1 - sindh - karachi - korangi - nasir_colony - - - static_instance-ucs-2 - sindh - karachi - korangi - chakra_goth - - - static_instance-ucs-3 - sindh - karachi - korangi - mustafa_taj_colony - - - static_instance-ucs-4 - sindh - karachi - korangi - hundred_quarters - - - static_instance-ucs-5 - sindh - karachi - korangi - gulzar_colony - - - static_instance-ucs-6 - sindh - karachi - korangi - korangi_sector_33 - - - static_instance-ucs-7 - sindh - karachi - korangi - zaman_town - - - static_instance-ucs-8 - sindh - karachi - korangi - hasrat_mohani_colony - - - static_instance-ucs-9 - sindh - karachi - baldia - gulshan_e_ghazi - - - static_instance-ucs-10 - sindh - karachi - baldia - ittehad_town - - - static_instance-ucs-11 - sindh - karachi - baldia - islam_nagar - - - static_instance-ucs-12 - sindh - karachi - baldia - nai_abadi - - - static_instance-ucs-13 - sindh - karachi - baldia - saeedabad - - - static_instance-ucs-14 - sindh - karachi - baldia - muslim_mujahid_colony - - - static_instance-ucs-15 - sindh - karachi - baldia - muhajir_camp - - - static_instance-ucs-16 - sindh - karachi - baldia - rasheedabad - - - static_instance-ucs-17 - sindh - karachi - bin_qasim - ibrahim_hyderi - - - static_instance-ucs-18 - sindh - karachi - bin_qasim - rehri - - - static_instance-ucs-19 - sindh - karachi - bin_qasim - cattle_colony - - - static_instance-ucs-20 - sindh - karachi - bin_qasim - qaidabad - - - static_instance-ucs-21 - sindh - karachi - bin_qasim - landhi_colony - - - static_instance-ucs-22 - sindh - karachi - bin_qasim - gulshan_e_hadeed - - - static_instance-ucs-23 - sindh - karachi - bin_qasim - gaghar - - - static_instance-ucs-24 - sindh - karachi - gadap - murad_memon_goth - - - static_instance-ucs-25 - sindh - karachi - gadap - darsano_chana - - - static_instance-ucs-26 - sindh - karachi - gadap - gujro - - - static_instance-ucs-27 - sindh - karachi - gadap - songal - - - static_instance-ucs-28 - sindh - karachi - gadap - maymarabad - - - static_instance-ucs-29 - sindh - karachi - gadap - yousuf_goth - - - static_instance-ucs-30 - sindh - karachi - gadap - manghopir - - - static_instance-ucs-31 - sindh - karachi - gulberg - azizabad - - - static_instance-ucs-32 - sindh - karachi - gulberg - karimabad - - - static_instance-ucs-33 - sindh - karachi - gulberg - aisha_manzil - - - static_instance-ucs-34 - sindh - karachi - gulberg - ancholi - - - static_instance-ucs-35 - sindh - karachi - gulberg - naseerabad - - - static_instance-ucs-36 - sindh - karachi - gulberg - yaseenabad - - - static_instance-ucs-37 - sindh - karachi - gulberg - water_pump - - - static_instance-ucs-38 - sindh - karachi - gulberg - shafiq_mill_colony - - - static_instance-ucs-39 - sindh - karachi - gulshan - delhi_mercantile_society - - - static_instance-ucs-40 - sindh - karachi - gulshan - civic_centre - - - static_instance-ucs-41 - sindh - karachi - gulshan - pir_ilahi_buksh_colony - - - static_instance-ucs-42 - sindh - karachi - gulshan - essa_nagri - - - static_instance-ucs-43 - sindh - karachi - gulshan - gulshan_e_iqbal - - - static_instance-ucs-44 - sindh - karachi - gulshan - gillani_railway_station - - - static_instance-ucs-45 - sindh - karachi - gulshan - shanti_nagar - - - static_instance-ucs-46 - sindh - karachi - gulshan - jamali_colony - - - static_instance-ucs-47 - sindh - karachi - gulshan - gulshan_e_iqbal_ii - - - static_instance-ucs-48 - sindh - karachi - gulshan - pehlwan_goth - - - static_instance-ucs-49 - sindh - karachi - gulshan - matrovil_colony - - - static_instance-ucs-50 - sindh - karachi - gulshan - gulzar_e_hijri - - - static_instance-ucs-51 - sindh - karachi - gulshan - safooran_goth - - - static_instance-ucs-52 - sindh - karachi - jamshed - akhtar_colony - - - static_instance-ucs-53 - sindh - karachi - jamshed - manzoor_colony - - - static_instance-ucs-54 - sindh - karachi - jamshed - azam_basti - - - static_instance-ucs-55 - sindh - karachi - jamshed - chanesar_goth - - - static_instance-ucs-56 - sindh - karachi - jamshed - mahmudabad - - - static_instance-ucs-57 - sindh - karachi - jamshed - pechs - - - static_instance-ucs-58 - sindh - karachi - jamshed - pechs_ii - - - static_instance-ucs-59 - sindh - karachi - jamshed - jut_line - - - static_instance-ucs-60 - sindh - karachi - jamshed - central_jacob_lines - - - static_instance-ucs-61 - sindh - karachi - jamshed - jamshed_quarters - - - static_instance-ucs-62 - sindh - karachi - jamshed - garden_east - - - static_instance-ucs-63 - sindh - karachi - jamshed - soldier_bazar - - - static_instance-ucs-64 - sindh - karachi - jamshed - pakistan_quarters - - - static_instance-ucs-65 - sindh - karachi - kiamari - bhutta_village - - - static_instance-ucs-66 - sindh - karachi - kiamari - sultanabad - - - static_instance-ucs-67 - sindh - karachi - kiamari - kiamari_uc - - - static_instance-ucs-68 - sindh - karachi - kiamari - baba_bhit - - - static_instance-ucs-69 - sindh - karachi - kiamari - machar_colony - - - static_instance-ucs-70 - sindh - karachi - kiamari - maripur - - - static_instance-ucs-71 - sindh - karachi - kiamari - shershah - - - static_instance-ucs-72 - sindh - karachi - kiamari - gabo_pat - - - static_instance-ucs-73 - sindh - karachi - landhi - muzafarabad - - - static_instance-ucs-74 - sindh - karachi - landhi - muslimabad - - - static_instance-ucs-75 - sindh - karachi - landhi - dawood_chowrangi - - - static_instance-ucs-76 - sindh - karachi - landhi - moinabad - - - static_instance-ucs-77 - sindh - karachi - landhi - sharafi_goth - - - static_instance-ucs-78 - sindh - karachi - landhi - bhutto_nagar - - - static_instance-ucs-79 - sindh - karachi - landhi - khawaja_ajmeer_colony - - - static_instance-ucs-80 - sindh - karachi - landhi - landhi_uc - - - static_instance-ucs-81 - sindh - karachi - landhi - awami_colony - - - static_instance-ucs-82 - sindh - karachi - landhi - burmee_colony - - - static_instance-ucs-83 - sindh - karachi - landhi - korangi_uc - - - static_instance-ucs-84 - sindh - karachi - landhi - sherabad - - - static_instance-ucs-85 - sindh - karachi - liaquatabad - rizvia_society - - - static_instance-ucs-86 - sindh - karachi - liaquatabad - firdous_colony - - - static_instance-ucs-87 - sindh - karachi - liaquatabad - super_market - - - static_instance-ucs-88 - sindh - karachi - liaquatabad - dak_khana - - - static_instance-ucs-89 - sindh - karachi - liaquatabad - qasimabad - - - static_instance-ucs-90 - sindh - karachi - liaquatabad - bandhani_colony - - - static_instance-ucs-91 - sindh - karachi - liaquatabad - sharifabad - - - static_instance-ucs-92 - sindh - karachi - liaquatabad - commercial_area - - - static_instance-ucs-93 - sindh - karachi - liaquatabad - mujahid_colony - - - static_instance-ucs-94 - sindh - karachi - liaquatabad - nazimabad - - - static_instance-ucs-95 - sindh - karachi - liaquatabad - abbasi_shaheed - - - static_instance-ucs-96 - sindh - karachi - lyari - agra_taj_colony - - - static_instance-ucs-97 - sindh - karachi - lyari - daryaabad - - - static_instance-ucs-98 - sindh - karachi - lyari - nawabad - - - static_instance-ucs-99 - sindh - karachi - lyari - khada_memon_society - - - static_instance-ucs-100 - sindh - karachi - lyari - baghdadi - - - static_instance-ucs-101 - sindh - karachi - lyari - shah_baig_line - - - static_instance-ucs-102 - sindh - karachi - lyari - bihar_colony - - - static_instance-ucs-103 - sindh - karachi - lyari - ragiwara - - - static_instance-ucs-104 - sindh - karachi - lyari - singo_line - - - static_instance-ucs-105 - sindh - karachi - lyari - chakiwara - - - static_instance-ucs-106 - sindh - karachi - lyari - allama_iqbal_colony - - - static_instance-ucs-107 - sindh - karachi - malir - model_colony - - - static_instance-ucs-108 - sindh - karachi - malir - kala_board - - - static_instance-ucs-109 - sindh - karachi - malir - saudabad - - - static_instance-ucs-110 - sindh - karachi - malir - khokhra_par - - - static_instance-ucs-111 - sindh - karachi - malir - jafar_e_tayyar - - - static_instance-ucs-112 - sindh - karachi - malir - gharibabad - - - static_instance-ucs-113 - sindh - karachi - malir - ghazi_brohi_goth - - - static_instance-ucs-114 - sindh - karachi - new_karachi - kalyana - - - static_instance-ucs-115 - sindh - karachi - new_karachi - sir_syed_colony - - - static_instance-ucs-116 - sindh - karachi - new_karachi - fatima_jinnah_colony - - - static_instance-ucs-117 - sindh - karachi - new_karachi - godhra - - - static_instance-ucs-118 - sindh - karachi - new_karachi - abu_zar_ghaffari - - - static_instance-ucs-119 - sindh - karachi - new_karachi - hakim_ahsan - - - static_instance-ucs-120 - sindh - karachi - new_karachi - madina_colony - - - static_instance-ucs-121 - sindh - karachi - new_karachi - faisal_colony - - - static_instance-ucs-122 - sindh - karachi - new_karachi - khamiso_goth - - - static_instance-ucs-123 - sindh - karachi - new_karachi - mustufa_colony - - - static_instance-ucs-124 - sindh - karachi - new_karachi - khawaja_ajmeer_nagri - - - static_instance-ucs-125 - sindh - karachi - new_karachi - gulshan_e_saeed - - - static_instance-ucs-126 - sindh - karachi - new_karachi - shah_nawaz_bhutto_colony - - - static_instance-ucs-127 - sindh - karachi - north_nazimabad - paposh_nagar - - - static_instance-ucs-128 - sindh - karachi - north_nazimabad - pahar_ganj - - - static_instance-ucs-129 - sindh - karachi - north_nazimabad - khandu_goth - - - static_instance-ucs-130 - sindh - karachi - north_nazimabad - hyderi - - - static_instance-ucs-131 - sindh - karachi - north_nazimabad - sakhi_hassan - - - static_instance-ucs-132 - sindh - karachi - north_nazimabad - farooq_e_azam - - - static_instance-ucs-133 - sindh - karachi - north_nazimabad - nusrat_bhutto_colony - - - static_instance-ucs-134 - sindh - karachi - north_nazimabad - shadman_town - - - static_instance-ucs-135 - sindh - karachi - north_nazimabad - buffer_zone - - - static_instance-ucs-136 - sindh - karachi - north_nazimabad - buffer_zone_ii - - - static_instance-ucs-137 - sindh - karachi - orangi - mominabad - - - static_instance-ucs-138 - sindh - karachi - orangi - haryana_colony - - - static_instance-ucs-139 - sindh - karachi - orangi - hanifabad - - - static_instance-ucs-140 - sindh - karachi - orangi - mohammad_nagar - - - static_instance-ucs-141 - sindh - karachi - orangi - madina_colony_orangi - - - static_instance-ucs-142 - sindh - karachi - orangi - ghaziabad - - - static_instance-ucs-143 - sindh - karachi - orangi - chisti_nagar - - - static_instance-ucs-144 - sindh - karachi - orangi - bilal_colony_orangi - - - static_instance-ucs-145 - sindh - karachi - orangi - iqbal_baloch_colony - - - static_instance-ucs-146 - sindh - karachi - orangi - ghabool_town - - - static_instance-ucs-147 - sindh - karachi - orangi - data_nagar - - - static_instance-ucs-148 - sindh - karachi - orangi - mujahidabad - - - static_instance-ucs-149 - sindh - karachi - orangi - baloch_goth - - - static_instance-ucs-150 - sindh - karachi - saddar - old_haji_camp - - - static_instance-ucs-151 - sindh - karachi - saddar - garden - - - static_instance-ucs-152 - sindh - karachi - saddar - kharadar - - - static_instance-ucs-153 - sindh - karachi - saddar - city_railway_colony - - - static_instance-ucs-154 - sindh - karachi - saddar - nanak_wara - - - static_instance-ucs-155 - sindh - karachi - saddar - gazdarabad - - - static_instance-ucs-156 - sindh - karachi - saddar - millat_nagar_islam_pura - - - static_instance-ucs-157 - sindh - karachi - saddar - saddar_uc - - - static_instance-ucs-158 - sindh - karachi - saddar - civil_line - - - static_instance-ucs-159 - sindh - karachi - saddar - clifton - - - static_instance-ucs-160 - sindh - karachi - saddar - kehkashan - - - static_instance-ucs-161 - sindh - karachi - shah_faisal - natha_khan_goth - - - static_instance-ucs-162 - sindh - karachi - shah_faisal - pak_sadat_colony - - - static_instance-ucs-163 - sindh - karachi - shah_faisal - drigh_colony - - - static_instance-ucs-164 - sindh - karachi - shah_faisal - raita_plot - - - static_instance-ucs-165 - sindh - karachi - shah_faisal - moria_khan_goth - - - static_instance-ucs-166 - sindh - karachi - shah_faisal - rafa_e_aam_society - - - static_instance-ucs-167 - sindh - karachi - shah_faisal - al_falah_society - - - static_instance-ucs-168 - sindh - karachi - site - pak_colony - - - static_instance-ucs-169 - sindh - karachi - site - old_golimar - - - static_instance-ucs-170 - sindh - karachi - site - jahanabad - - - static_instance-ucs-171 - sindh - karachi - site - metrovil - - - static_instance-ucs-172 - sindh - karachi - site - bhawani_chali - - - static_instance-ucs-173 - sindh - karachi - site - frontier_colony - - - static_instance-ucs-174 - sindh - karachi - site - banaras_colony - - - static_instance-ucs-175 - sindh - karachi - site - qasba_colony - - - static_instance-ucs-176 - sindh - karachi - site - islamia_colony - - - static_instance-ucs-177 - na - na - na - other - - - static_instance-ucs-178 - na - na - na - not_applicable - - - - - - - static_instance-gender-0 - male - - - static_instance-gender-1 - female - - - static_instance-gender-2 - transgender - - - - - - - static_instance-vaccines-0 - bcg - - - static_instance-vaccines-1 - opv0 - - - static_instance-vaccines-2 - pcv1 - - - static_instance-vaccines-3 - opv1 - - - static_instance-vaccines-4 - penta1 - - - static_instance-vaccines-5 - pcv2 - - - static_instance-vaccines-6 - opv2 - - - static_instance-vaccines-7 - penta2 - - - static_instance-vaccines-8 - pcv3 - - - static_instance-vaccines-9 - opv3 - - - static_instance-vaccines-10 - penta3 - - - static_instance-vaccines-11 - ipv - - - static_instance-vaccines-12 - measles1 - - - static_instance-vaccines-13 - measles2 - - - - - - - static_instance-towns-0 - sindh - karachi - korangi - - - static_instance-towns-1 - sindh - karachi - landhi - - - static_instance-towns-2 - sindh - karachi - baldia - - - static_instance-towns-3 - sindh - karachi - bin_qasim - - - static_instance-towns-4 - sindh - karachi - gadap - - - static_instance-towns-5 - sindh - karachi - gulberg - - - static_instance-towns-6 - sindh - karachi - gulshan - - - static_instance-towns-7 - sindh - karachi - jamshed - - - static_instance-towns-8 - sindh - karachi - kiamari - - - static_instance-towns-9 - sindh - karachi - liaquatabad - - - static_instance-towns-10 - sindh - karachi - lyari - - - static_instance-towns-11 - sindh - karachi - malir - - - static_instance-towns-12 - sindh - karachi - new_karachi - - - static_instance-towns-13 - sindh - karachi - north_nazimabad - - - static_instance-towns-14 - sindh - karachi - orangi - - - static_instance-towns-15 - sindh - karachi - saddar - - - static_instance-towns-16 - sindh - karachi - shah_faisal - - - static_instance-towns-17 - sindh - karachi - site - - - static_instance-towns-18 - na - na - other - - - static_instance-towns-19 - na - na - not_applicable - - - - - - - static_instance-cities-0 - sindh - karachi - - - static_instance-cities-1 - punjab - hafizabad - - - static_instance-cities-2 - punjab - muzaffargarh - - - static_instance-cities-3 - na - other - - - static_instance-cities-4 - na - not_applicable - - - - - - - static_instance-ethnicity-0 - punjabi - - - static_instance-ethnicity-1 - pushtuns - - - static_instance-ethnicity-2 - sindhi - - - static_instance-ethnicity-3 - saraiki - - - static_instance-ethnicity-4 - muhajir - - - static_instance-ethnicity-5 - balochi - - - static_instance-ethnicity-6 - other - - - - - - - static_instance-yes_no-0 - yes - - - static_instance-yes_no-1 - no - - - - diff --git a/opensrp-connector/src/test/resources/form/child_followup/form.json b/opensrp-connector/src/test/resources/form/child_followup/form.json deleted file mode 100644 index 964bded2bb..0000000000 --- a/opensrp-connector/src/test/resources/form/child_followup/form.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"Child_Vaccination_Followup","title":"بچّوں کا فالو اپ رجسٹر برائے ٹیکاجات - Child Follow Up Vaccination Register","sms_keyword":"child_vaccination_followup","default_language":"English","choices":{"provinces":[{"name":"kpk","label":{"Urdu":"خیبر پختون خواہ","English":"Khyber Pakhtunkhwa","Roman Urdu":"Khyber Pakhtunkhwa"}},{"name":"sindh","label":{"Urdu":"سندھ","English":"Sindh","Roman Urdu":"Sindh"}},{"name":"balochistan","label":{"Urdu":"بلوچستان","English":"Balochistan","Roman Urdu":"Balochistan"}},{"name":"punjab","label":{"Urdu":"پنجاب","English":"Punjab","Roman Urdu":"Punjab"}},{"name":"gilgit_baltistan","label":{"Urdu":"گلگت بلتستان","English":"Gilgit Baltistan","Roman Urdu":"Gilgit Baltistan"}},{"name":"kashmir","label":{"Urdu":"کشمیر","English":"Kashmir","Roman Urdu":"Kashmir"}},{"name":"fata","label":{"Urdu":"فاٹا","English":"FATA","Roman Urdu":"FATA"}},{"name":"out_of_country","label":{"Urdu":"ملک سے باہر","English":"Out of Country","Roman Urdu":"Out of Country"}}],"ucs":[{"province":"sindh","city":"karachi","town":"korangi","name":"bilal_colony","label":{"Urdu":"بلال کالونی","Roman Urdu":"Bilal Colony","English":"Bilal Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"nasir_colony","label":{"Urdu":"ناصر کالونی","Roman Urdu":"Nasir Colony","English":"Nasir Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"chakra_goth","label":{"Urdu":"چکرا گوٹھ","Roman Urdu":"Chakra Goth","English":"Chakra Goth"}},{"province":"sindh","city":"karachi","town":"korangi","name":"mustafa_taj_colony","label":{"Urdu":"مصطفی تاج کالونی","Roman Urdu":"Mustafa Taj Colony","English":"Mustafa Taj Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"hundred_quarters","label":{"Urdu":"ہنڈریڈ کوارٹر","Roman Urdu":"Hundred Quarters","English":"Hundred Quarters"}},{"province":"sindh","city":"karachi","town":"korangi","name":"gulzar_colony","label":{"Urdu":"گلزار کالونی","Roman Urdu":"Gulzar Colony","English":"Gulzar Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"korangi_sector_33","label":{"Urdu":"کورنگی سیکٹر 33","Roman Urdu":"Korangi Sector 33","English":"Korangi Sector 33"}},{"province":"sindh","city":"karachi","town":"korangi","name":"zaman_town","label":{"Urdu":"زمان ٹاوَن","Roman Urdu":"Zaman Town","English":"Zaman Town"}},{"province":"sindh","city":"karachi","town":"korangi","name":"hasrat_mohani_colony","label":{"Urdu":"حسرت موہانی کالونی","Roman Urdu":"Hasrat Mohani Colony","English":"Hasrat Mohani Colony"}},{"province":"sindh","city":"karachi","town":"baldia","name":"gulshan_e_ghazi","label":{"Urdu":"گلشن غازی","Roman Urdu":"Gulshan-e-Ghazi","English":"Gulshan-e-Ghazi"}},{"province":"sindh","city":"karachi","town":"baldia","name":"ittehad_town","label":{"Urdu":"اتحاد ٹاوَن","Roman Urdu":"Ittehad Town","English":"Ittehad Town"}},{"province":"sindh","city":"karachi","town":"baldia","name":"islam_nagar","label":{"Urdu":"اسلام نگر","Roman Urdu":"Islam Nagar","English":"Islam Nagar"}},{"province":"sindh","city":"karachi","town":"baldia","name":"nai_abadi","label":{"Urdu":"نئی آبادی","Roman Urdu":"Nai Abadi","English":"Nai Abadi"}},{"province":"sindh","city":"karachi","town":"baldia","name":"saeedabad","label":{"Urdu":"سعید آباد","Roman Urdu":"Saeedabad","English":"Saeedabad"}},{"province":"sindh","city":"karachi","town":"baldia","name":"muslim_mujahid_colony","label":{"Urdu":"مسلم مجاہد کالونی","Roman Urdu":"Muslim Mujahid Colony","English":"Muslim Mujahid Colony"}},{"province":"sindh","city":"karachi","town":"baldia","name":"muhajir_camp","label":{"Urdu":"مہاجر کیمپ","Roman Urdu":"Muhajir Camp","English":"Muhajir Camp"}},{"province":"sindh","city":"karachi","town":"baldia","name":"rasheedabad","label":{"Urdu":"رشید آباد","Roman Urdu":"Rasheedabad","English":"Rasheedabad"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"ibrahim_hyderi","label":{"Urdu":"ابراہیم حیدری","Roman Urdu":"Ibrahim Hyderi","English":"Ibrahim Hyderi"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"rehri","label":{"Urdu":"رہڑی","Roman Urdu":"Rehri","English":"Rehri"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"cattle_colony","label":{"Urdu":"کیٹل کالونی","Roman Urdu":"Cattle Colony","English":"Cattle Colony"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"qaidabad","label":{"Urdu":"قائدآباد","Roman Urdu":"Qaidabad","English":"Qaidabad"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"landhi_colony","label":{"Urdu":"لانڈھی کالونی","Roman Urdu":"Landhi Colony","English":"Landhi Colony"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"gulshan_e_hadeed","label":{"Urdu":"گلشن حدید","Roman Urdu":"Gulshan-e-Hadeed","English":"Gulshan-e-Hadeed"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"gaghar","label":{"Urdu":"گگر","Roman Urdu":"Gaghar","English":"Gaghar"}},{"province":"sindh","city":"karachi","town":"gadap","name":"murad_memon_goth","label":{"Urdu":"مراد میمن گوٹھ","Roman Urdu":"Murad Memon Goth","English":"Murad Memon Goth"}},{"province":"sindh","city":"karachi","town":"gadap","name":"darsano_chana","label":{"Urdu":"درشانو شنو","Roman Urdu":"Darsano Chana","English":"Darsano Chana"}},{"province":"sindh","city":"karachi","town":"gadap","name":"gujro","label":{"Urdu":"گجرو","Roman Urdu":"Gujro","English":"Gujro"}},{"province":"sindh","city":"karachi","town":"gadap","name":"songal","label":{"Urdu":"سنگل","Roman Urdu":"Songal","English":"Songal"}},{"province":"sindh","city":"karachi","town":"gadap","name":"maymarabad","label":{"Urdu":"معمار آباد","Roman Urdu":"Maymarabad","English":"Maymarabad"}},{"province":"sindh","city":"karachi","town":"gadap","name":"yousuf_goth","label":{"Urdu":"یوسف گوٹھ","Roman Urdu":"Yousuf Goth","English":"Yousuf Goth"}},{"province":"sindh","city":"karachi","town":"gadap","name":"manghopir","label":{"Urdu":"منگھوپیر","Roman Urdu":"Manghopir","English":"Manghopir"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"azizabad","label":{"Urdu":"عزیز آباد","Roman Urdu":"Azizabad","English":"Azizabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"karimabad","label":{"Urdu":"کریم آباد","Roman Urdu":"Karimabad","English":"Karimabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"aisha_manzil","label":{"Urdu":"عائشہ منزل","Roman Urdu":"Aisha Manzil","English":"Aisha Manzil"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"ancholi","label":{"Urdu":"انچولی","Roman Urdu":"Ancholi","English":"Ancholi"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"naseerabad","label":{"Urdu":"نصیرآباد","Roman Urdu":"Naseerabad","English":"Naseerabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"yaseenabad","label":{"Urdu":"یاسین آباد","Roman Urdu":"Yaseenabad","English":"Yaseenabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"water_pump","label":{"Urdu":"واٹرپمپ","Roman Urdu":"Water Pump","English":"Water Pump"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"shafiq_mill_colony","label":{"Urdu":"شفیق مل کالونی","Roman Urdu":"Shafiq Mill Colony","English":"Shafiq Mill Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"delhi_mercantile_society","label":{"Urdu":"دہلی مرچنٹائل سوسائٹی","Roman Urdu":"Delhi Mercantile Society","English":"Delhi Mercantile Society"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"civic_centre","label":{"Urdu":"سوک سینٹر","Roman Urdu":"Civic Centre","English":"Civic Centre"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"pir_ilahi_buksh_colony","label":{"Urdu":"پیر الہی بخش کالونی","Roman Urdu":"Pir Ilahi Buksh Colony","English":"Pir Ilahi Buksh Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"essa_nagri","label":{"Urdu":"عیسی نگری","Roman Urdu":"Essa Nagri","English":"Essa Nagri"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gulshan_e_iqbal","label":{"Urdu":"گلشن اقبال","Roman Urdu":"Gulshan-e-Iqbal","English":"Gulshan-e-Iqbal"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gillani_railway_station","label":{"Urdu":"گیلانی ریلوے اسٹیشن","Roman Urdu":"Gillani Railway Station","English":"Gillani Railway Station"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"shanti_nagar","label":{"Urdu":"شانتی نگر","Roman Urdu":"Shanti Nagar","English":"Shanti Nagar"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"jamali_colony","label":{"Urdu":"جمالی کالونی","Roman Urdu":"Jamali Colony","English":"Jamali Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gulshan_e_iqbal_ii","label":{"Urdu":"گلشن اقبال 2","Roman Urdu":"Gulshan-e-Iqbal II","English":"Gulshan-e-Iqbal II"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"pehlwan_goth","label":{"Urdu":"پہلوان گوٹھ","Roman Urdu":"Pehlwan Goth","English":"Pehlwan Goth"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"matrovil_colony","label":{"Urdu":"میٹروویل کالونی","Roman Urdu":"Matrovil Colony","English":"Matrovil Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gulzar_e_hijri","label":{"Urdu":"گلزار ہجری","Roman Urdu":"Gulzar-e-Hijri","English":"Gulzar-e-Hijri"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"safooran_goth","label":{"Urdu":"صفورا گوٹھ","Roman Urdu":"Safooran Goth","English":"Safooran Goth"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"akhtar_colony","label":{"Urdu":"اختر کالونی","Roman Urdu":"Akhtar Colony","English":"Akhtar Colony"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"manzoor_colony","label":{"Urdu":"منظور کالونی","Roman Urdu":"Manzoor Colony","English":"Manzoor Colony"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"azam_basti","label":{"Urdu":"اعظم بستی","Roman Urdu":"Azam Basti","English":"Azam Basti"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"chanesar_goth","label":{"Urdu":"چنیسر گوٹھ","Roman Urdu":"Chanesar Goth","English":"Chanesar Goth"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"mahmudabad","label":{"Urdu":"محمودآباد","Roman Urdu":"Mahmudabad","English":"Mahmudabad"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"pechs","label":{"Urdu":"پی۔ای۔سی۔ایچ۔ایس","Roman Urdu":"P.E.C.H.S.","English":"P.E.C.H.S."}},{"province":"sindh","city":"karachi","town":"jamshed","name":"pechs_ii","label":{"Urdu":"پی۔ای۔سی۔ایچ۔ایس 2","Roman Urdu":"P.E.C.H.S. II","English":"P.E.C.H.S. II"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"jut_line","label":{"Urdu":"جٹ لائن","Roman Urdu":"Jut Line","English":"Jut Line"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"central_jacob_lines","label":{"Urdu":"سینٹرل جیکب لائن","Roman Urdu":"Central Jacob Lines","English":"Central Jacob Lines"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"jamshed_quarters","label":{"Urdu":"جمشید کوارٹر","Roman Urdu":"Jamshed Quarters","English":"Jamshed Quarters"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"garden_east","label":{"Urdu":"گارڈن ایسٹ","Roman Urdu":"Garden East","English":"Garden East"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"soldier_bazar","label":{"Urdu":"سولجر بازار","Roman Urdu":"Soldier Bazar","English":"Soldier Bazar"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"pakistan_quarters","label":{"Urdu":"پاکستان کوارٹر","Roman Urdu":"Pakistan Quarters","English":"Pakistan Quarters"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"bhutta_village","label":{"Urdu":"بھٹا ولیج","Roman Urdu":"Bhutta Village","English":"Bhutta Village"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"sultanabad","label":{"Urdu":"سلطان آباد","Roman Urdu":"Sultanabad","English":"Sultanabad"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"kiamari_uc","label":{"Urdu":"کیماری یو- سی","Roman Urdu":"Kiamari UC","English":"Kiamari UC"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"baba_bhit","label":{"Urdu":"بابا بھٹ","Roman Urdu":"Baba Bhit","English":"Baba Bhit"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"machar_colony","label":{"Urdu":"مچھر کالونی","Roman Urdu":"Machar Colony","English":"Machar Colony"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"maripur","label":{"Urdu":"ماڑی پور","Roman Urdu":"Maripur","English":"Maripur"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"shershah","label":{"Urdu":"شیرشاہ","Roman Urdu":"SherShah","English":"SherShah"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"gabo_pat","label":{"Urdu":"گابو پٹ","Roman Urdu":"Gabo Pat","English":"Gabo Pat"}},{"province":"sindh","city":"karachi","town":"landhi","name":"muzafarabad","label":{"Urdu":"مظفرآباد","Roman Urdu":"Muzafarabad","English":"Muzafarabad"}},{"province":"sindh","city":"karachi","town":"landhi","name":"muslimabad","label":{"Urdu":"مسلم آباد","Roman Urdu":"Muslimabad","English":"Muslimabad"}},{"province":"sindh","city":"karachi","town":"landhi","name":"dawood_chowrangi","label":{"Urdu":"داوَد چورنگی","Roman Urdu":"Dawood Chowrangi","English":"Dawood Chowrangi"}},{"province":"sindh","city":"karachi","town":"landhi","name":"moinabad","label":{"Urdu":"معین آباد","Roman Urdu":"Moinabad","English":"Moinabad"}},{"province":"sindh","city":"karachi","town":"landhi","name":"sharafi_goth","label":{"Urdu":"شرافی گوٹھ","Roman Urdu":"Sharafi Goth","English":"Sharafi Goth"}},{"province":"sindh","city":"karachi","town":"landhi","name":"bhutto_nagar","label":{"Urdu":"بھٹو نگر","Roman Urdu":"Bhutto Nagar","English":"Bhutto Nagar"}},{"province":"sindh","city":"karachi","town":"landhi","name":"khawaja_ajmeer_colony","label":{"Urdu":"خواجہ اجمیر کالونی","Roman Urdu":"Khawaja Ajmeer Colony","English":"Khawaja Ajmeer Colony"}},{"province":"sindh","city":"karachi","town":"landhi","name":"landhi_uc","label":{"Urdu":"لانڈھی یوسی","Roman Urdu":"Landhi UC","English":"Landhi UC"}},{"province":"sindh","city":"karachi","town":"landhi","name":"awami_colony","label":{"Urdu":"عوامی کالونی","Roman Urdu":"Awami Colony","English":"Awami Colony"}},{"province":"sindh","city":"karachi","town":"landhi","name":"burmee_colony","label":{"Urdu":"برمی کالونی","Roman Urdu":"Burmee Colony","English":"Burmee Colony"}},{"province":"sindh","city":"karachi","town":"landhi","name":"korangi_uc","label":{"Urdu":"کورنگی یوسی","Roman Urdu":"Korangi UC","English":"Korangi UC"}},{"province":"sindh","city":"karachi","town":"landhi","name":"sherabad","label":{"Urdu":"شیرآباد","Roman Urdu":"Sherabad","English":"Sherabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"rizvia_society","label":{"Urdu":"رضویہ سوسائٹی","Roman Urdu":"Rizvia Society","English":"Rizvia Society"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"firdous_colony","label":{"Urdu":"فردوس کالونی","Roman Urdu":"Firdous Colony","English":"Firdous Colony"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"super_market","label":{"Urdu":"سپر مارکیٹ","Roman Urdu":"Super Market","English":"Super Market"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"dak_khana","label":{"Urdu":"دک کھانہ","Roman Urdu":"Dak Khana","English":"Dak Khana"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"qasimabad","label":{"Urdu":"قاسم آباد","Roman Urdu":"Qasimabad","English":"Qasimabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"bandhani_colony","label":{"Urdu":"بندھانی کالونی","Roman Urdu":"Bandhani Colony","English":"Bandhani Colony"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"sharifabad","label":{"Urdu":"شریف آباد","Roman Urdu":"Sharifabad","English":"Sharifabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"commercial_area","label":{"Urdu":"کمرشل ایریا","Roman Urdu":"Commercial Area","English":"Commercial Area"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"mujahid_colony","label":{"Urdu":"مجاہد کالونی","Roman Urdu":"Mujahid Colony","English":"Mujahid Colony"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"nazimabad","label":{"Urdu":"ناظم آباد","Roman Urdu":"Nazimabad","English":"Nazimabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"abbasi_shaheed","label":{"Urdu":"عباسی شہید","Roman Urdu":"Abbasi Shaheed","English":"Abbasi Shaheed"}},{"province":"sindh","city":"karachi","town":"lyari","name":"agra_taj_colony","label":{"Urdu":"آگرہ تاج کالونی","Roman Urdu":"Agra Taj Colony","English":"Agra Taj Colony"}},{"province":"sindh","city":"karachi","town":"lyari","name":"daryaabad","label":{"Urdu":"دریاآباد","Roman Urdu":"Daryaabad","English":"Daryaabad"}},{"province":"sindh","city":"karachi","town":"lyari","name":"nawabad","label":{"Urdu":"نواآباد","Roman Urdu":"Nawabad","English":"Nawabad"}},{"province":"sindh","city":"karachi","town":"lyari","name":"khada_memon_society","label":{"Urdu":"خدا- میمن- سوساَٹی","Roman Urdu":"Khada Memon Society","English":"Khada Memon Society"}},{"province":"sindh","city":"karachi","town":"lyari","name":"baghdadi","label":{"Urdu":"بغدادی","Roman Urdu":"Baghdadi","English":"Baghdadi"}},{"province":"sindh","city":"karachi","town":"lyari","name":"shah_baig_line","label":{"Urdu":"شاھ باغ لائن","Roman Urdu":"Shah Baig Line","English":"Shah Baig Line"}},{"province":"sindh","city":"karachi","town":"lyari","name":"bihar_colony","label":{"Urdu":"بہار کالونی","Roman Urdu":"Bihar Colony","English":"Bihar Colony"}},{"province":"sindh","city":"karachi","town":"lyari","name":"ragiwara","label":{"Urdu":"راگی واڑا","Roman Urdu":"Ragiwara","English":"Ragiwara"}},{"province":"sindh","city":"karachi","town":"lyari","name":"singo_line","label":{"Urdu":"سنگولائن","Roman Urdu":"Singo Line","English":"Singo Line"}},{"province":"sindh","city":"karachi","town":"lyari","name":"chakiwara","label":{"Urdu":"چاکی واڑا","Roman Urdu":"Chakiwara","English":"Chakiwara"}},{"province":"sindh","city":"karachi","town":"lyari","name":"allama_iqbal_colony","label":{"Urdu":"علامہ اقبال کالونی","Roman Urdu":"Allama Iqbal Colony","English":"Allama Iqbal Colony"}},{"province":"sindh","city":"karachi","town":"malir","name":"model_colony","label":{"Urdu":"موڈل کالونی","Roman Urdu":"Model Colony","English":"Model Colony"}},{"province":"sindh","city":"karachi","town":"malir","name":"kala_board","label":{"Urdu":"کالا بورڈ","Roman Urdu":"Kala Board","English":"Kala Board"}},{"province":"sindh","city":"karachi","town":"malir","name":"saudabad","label":{"Urdu":"سعودآباد","Roman Urdu":"Saudabad","English":"Saudabad"}},{"province":"sindh","city":"karachi","town":"malir","name":"khokhra_par","label":{"Urdu":"کھوکھرا پار","Roman Urdu":"Khokhra Par","English":"Khokhra Par"}},{"province":"sindh","city":"karachi","town":"malir","name":"jafar_e_tayyar","label":{"Urdu":"جعفر تیار","Roman Urdu":"Jafar-e-Tayyar","English":"Jafar-e-Tayyar"}},{"province":"sindh","city":"karachi","town":"malir","name":"gharibabad","label":{"Urdu":"غریب آباد","Roman Urdu":"Gharibabad","English":"Gharibabad"}},{"province":"sindh","city":"karachi","town":"malir","name":"ghazi_brohi_goth","label":{"Urdu":"غازی بروہی گوٹھ","Roman Urdu":"Ghazi Brohi Goth","English":"Ghazi Brohi Goth"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"kalyana","label":{"Urdu":"کالیانہ","Roman Urdu":"Kalyana","English":"Kalyana"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"sir_syed_colony","label":{"Urdu":"سر سید کالونی","Roman Urdu":"Sir Syed Colony","English":"Sir Syed Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"fatima_jinnah_colony","label":{"Urdu":"فاطمہ جناح کالونی","Roman Urdu":"Fatima Jinnah Colony","English":"Fatima Jinnah Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"godhra","label":{"Urdu":"گودھرا","Roman Urdu":"Godhra","English":"Godhra"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"abu_zar_ghaffari","label":{"Urdu":"ابو زر غفاری","Roman Urdu":"Abu Zar Ghaffari","English":"Abu Zar Ghaffari"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"hakim_ahsan","label":{"Urdu":"حاکم احسان","Roman Urdu":"Hakim Ahsan","English":"Hakim Ahsan"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"madina_colony","label":{"Urdu":"مدینہ کالونی","Roman Urdu":"Madina Colony","English":"Madina Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"faisal_colony","label":{"Urdu":"فیصل کالونی","Roman Urdu":"Faisal Colony","English":"Faisal Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"khamiso_goth","label":{"Urdu":"خمیسو گوٹھ","Roman Urdu":"Khamiso Goth","English":"Khamiso Goth"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"mustufa_colony","label":{"Urdu":"مصطفی کالونی","Roman Urdu":"Mustufa Colony","English":"Mustufa Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"khawaja_ajmeer_nagri","label":{"Urdu":"خواجہ اجمیر نگری","Roman Urdu":"Khawaja Ajmeer Nagri","English":"Khawaja Ajmeer Nagri"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"gulshan_e_saeed","label":{"Urdu":"گلشن سعید","Roman Urdu":"Gulshan-e-Saeed","English":"Gulshan-e-Saeed"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"shah_nawaz_bhutto_colony","label":{"Urdu":"شاہ نواز بھٹو کالونی","Roman Urdu":"Shah Nawaz Bhutto Colony","English":"Shah Nawaz Bhutto Colony"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"paposh_nagar","label":{"Urdu":"پاپوش نگر","Roman Urdu":"Paposh Nagar","English":"Paposh Nagar"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"pahar_ganj","label":{"Urdu":"پہاڑ گنج","Roman Urdu":"Pahar Ganj","English":"Pahar Ganj"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"khandu_goth","label":{"Urdu":"کھنڑو گوٹھ","Roman Urdu":"Khandu Goth","English":"Khandu Goth"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"hyderi","label":{"Urdu":"حیدری","Roman Urdu":"Hyderi","English":"Hyderi"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"sakhi_hassan","label":{"Urdu":"سخی حسن","Roman Urdu":"Sakhi Hassan","English":"Sakhi Hassan"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"farooq_e_azam","label":{"Urdu":"فاروق اعظم","Roman Urdu":"Farooq-e-Azam","English":"Farooq-e-Azam"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"nusrat_bhutto_colony","label":{"Urdu":"نصرت بھٹو کالونی","Roman Urdu":"Nusrat Bhutto Colony","English":"Nusrat Bhutto Colony"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"shadman_town","label":{"Urdu":"شادمان ٹاوَن","Roman Urdu":"Shadman Town","English":"Shadman Town"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"buffer_zone","label":{"Urdu":"بفرزون","Roman Urdu":"Buffer Zone","English":"Buffer Zone"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"buffer_zone_ii","label":{"Urdu":"بفرزون 2","Roman Urdu":"Buffer Zone II","English":"Buffer Zone II"}},{"province":"sindh","city":"karachi","town":"orangi","name":"mominabad","label":{"Urdu":"مومن آباد","Roman Urdu":"Mominabad","English":"Mominabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"haryana_colony","label":{"Urdu":"حریانہ کالونی","Roman Urdu":"Haryana Colony","English":"Haryana Colony"}},{"province":"sindh","city":"karachi","town":"orangi","name":"hanifabad","label":{"Urdu":"حنیف آباد","Roman Urdu":"Hanifabad","English":"Hanifabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"mohammad_nagar","label":{"Urdu":"محمد نگر","Roman Urdu":"Mohammad Nagar","English":"Mohammad Nagar"}},{"province":"sindh","city":"karachi","town":"orangi","name":"madina_colony_orangi","label":{"Urdu":"مدینہ کالونی اورنگی","Roman Urdu":"Madina Colony Orangi","English":"Madina Colony Orangi"}},{"province":"sindh","city":"karachi","town":"orangi","name":"ghaziabad","label":{"Urdu":"غازی آباد","Roman Urdu":"Ghaziabad","English":"Ghaziabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"chisti_nagar","label":{"Urdu":"چشتی نگر","Roman Urdu":"Chisti Nagar","English":"Chisti Nagar"}},{"province":"sindh","city":"karachi","town":"orangi","name":"bilal_colony_orangi","label":{"Urdu":"بلال کالونی اورنگی","Roman Urdu":"Bilal Colony Orangi","English":"Bilal Colony Orangi"}},{"province":"sindh","city":"karachi","town":"orangi","name":"iqbal_baloch_colony","label":{"Urdu":"اقبال بلوچ کالونی","Roman Urdu":"Iqbal Baloch Colony","English":"Iqbal Baloch Colony"}},{"province":"sindh","city":"karachi","town":"orangi","name":"ghabool_town","label":{"Urdu":"گبول ٹاوَن","Roman Urdu":"Ghabool Town","English":"Ghabool Town"}},{"province":"sindh","city":"karachi","town":"orangi","name":"data_nagar","label":{"Urdu":"داتا نگر","Roman Urdu":"Data Nagar","English":"Data Nagar"}},{"province":"sindh","city":"karachi","town":"orangi","name":"mujahidabad","label":{"Urdu":"مجاہد آباد","Roman Urdu":"Mujahidabad","English":"Mujahidabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"baloch_goth","label":{"Urdu":"بلوچ گوٹھ","Roman Urdu":"Baloch Goth","English":"Baloch Goth"}},{"province":"sindh","city":"karachi","town":"saddar","name":"old_haji_camp","label":{"Urdu":"پرانہ حاجی کیمپ","Roman Urdu":"Old Haji Camp","English":"Old Haji Camp"}},{"province":"sindh","city":"karachi","town":"saddar","name":"garden","label":{"Urdu":"گارڈن","Roman Urdu":"Garden","English":"Garden"}},{"province":"sindh","city":"karachi","town":"saddar","name":"kharadar","label":{"Urdu":"کھارادر","Roman Urdu":"Kharadar","English":"Kharadar"}},{"province":"sindh","city":"karachi","town":"saddar","name":"city_railway_colony","label":{"Urdu":"سٹی ریلوے کالونی","Roman Urdu":"City Railway Colony","English":"City Railway Colony"}},{"province":"sindh","city":"karachi","town":"saddar","name":"nanak_wara","label":{"Urdu":"ناناک واڑا","Roman Urdu":"Nanak Wara","English":"Nanak Wara"}},{"province":"sindh","city":"karachi","town":"saddar","name":"gazdarabad","label":{"Urdu":"گزدرآباد","Roman Urdu":"Gazdarabad","English":"Gazdarabad"}},{"province":"sindh","city":"karachi","town":"saddar","name":"millat_nagar_islam_pura","label":{"Urdu":"ملت نگر اسلام پورا","Roman Urdu":"Millat Nagar/Islam Pura","English":"Millat Nagar/Islam Pura"}},{"province":"sindh","city":"karachi","town":"saddar","name":"saddar_uc","label":{"Urdu":"صدر یو سی","Roman Urdu":"Saddar UC","English":"Saddar UC"}},{"province":"sindh","city":"karachi","town":"saddar","name":"civil_line","label":{"Urdu":"سول لائن","Roman Urdu":"Civil Line","English":"Civil Line"}},{"province":"sindh","city":"karachi","town":"saddar","name":"clifton","label":{"Urdu":"کلفٹن","Roman Urdu":"Clifton","English":"Clifton"}},{"province":"sindh","city":"karachi","town":"saddar","name":"kehkashan","label":{"Urdu":"کہکشان","Roman Urdu":"Kehkashan","English":"Kehkashan"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"natha_khan_goth","label":{"Urdu":"ناتھا خان گوٹھ","Roman Urdu":"Natha Khan Goth","English":"Natha Khan Goth"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"pak_sadat_colony","label":{"Urdu":"پاک صدر کالونی","Roman Urdu":"Pak Sadat Colony","English":"Pak Sadat Colony"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"drigh_colony","label":{"Urdu":"ڈرگ کالونی","Roman Urdu":"Drigh Colony","English":"Drigh Colony"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"raita_plot","label":{"Urdu":"رائتا پلاٹ","Roman Urdu":"Raita Plot","English":"Raita Plot"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"moria_khan_goth","label":{"Urdu":"موریا خان گوٹھ","Roman Urdu":"Moria Khan Goth","English":"Moria Khan Goth"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"rafa_e_aam_society","label":{"Urdu":"رفا عام سوسا ئٹی","Roman Urdu":"Rafa-e-Aam Society","English":"Rafa-e-Aam Society"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"al_falah_society","label":{"Urdu":"الفلاح سوسا ئٹی","Roman Urdu":"Al-Falah Society","English":"Al-Falah Society"}},{"province":"sindh","city":"karachi","town":"site","name":"pak_colony","label":{"Urdu":"پاک کالونی","Roman Urdu":"Pak Colony","English":"Pak Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"old_golimar","label":{"Urdu":"پرانہ گولی مار","Roman Urdu":"Old Golimar","English":"Old Golimar"}},{"province":"sindh","city":"karachi","town":"site","name":"jahanabad","label":{"Urdu":"جہان آباد","Roman Urdu":"Jahanabad","English":"Jahanabad"}},{"province":"sindh","city":"karachi","town":"site","name":"metrovil","label":{"Urdu":"میٹروویل","Roman Urdu":"Metrovil","English":"Metrovil"}},{"province":"sindh","city":"karachi","town":"site","name":"bhawani_chali","label":{"Urdu":"بہوانی چالی","Roman Urdu":"Bhawani Chali","English":"Bhawani Chali"}},{"province":"sindh","city":"karachi","town":"site","name":"frontier_colony","label":{"Urdu":"فرونٹر کالونی","Roman Urdu":"Frontier Colony","English":"Frontier Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"banaras_colony","label":{"Urdu":"بنارس کالونی","Roman Urdu":"Banaras Colony","English":"Banaras Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"qasba_colony","label":{"Urdu":"قصبہ کالونی","Roman Urdu":"Qasba Colony","English":"Qasba Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"islamia_colony","label":{"Urdu":"اسلامیہ کالونی","Roman Urdu":"Islamia Colony","English":"Islamia Colony"}},{"province":"na","city":"na","town":"na","name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}},{"province":"na","city":"na","town":"na","name":"not_applicable","label":{"Urdu":"قابل اطلاق نہیں","Roman Urdu":"Qaabil-e-atlaaq nahi","English":"Not Applicable"}}],"gender":[{"instance":{"openmrs_code":"1534AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"male","label":{"Urdu":"مرد/ لڑکا","Roman Urdu":"Mard/larka","English":"Male"}},{"instance":{"openmrs_code":"1535AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"female","label":{"Urdu":"عورت/لڑکی","Roman Urdu":"Aurat/larki","English":"Female"}},{"instance":{"openmrs_code":"163163AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"transgender","label":{"Urdu":"خواجہ سرہ","Roman Urdu":"Khwaja sira","English":"Transgender"}}],"vaccines":[{"instance":{"openmrs_code":"1570AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"bcg","label":{"Urdu":"بی سی جی","Roman Urdu":"BCG","English":"BCG"}},{"instance":{"openmrs_code":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv0","label":{"Urdu":"او پی وی 0","Roman Urdu":"OPV 0","English":"OPV 0"}},{"instance":{"openmrs_code":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv1","label":{"Urdu":"پی سی وی 1","Roman Urdu":"PCV 1","English":"PCV 1"}},{"instance":{"openmrs_code":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv1","label":{"Urdu":"او پی وی 1","Roman Urdu":"OPV 1","English":"OPV 1"}},{"instance":{"openmrs_code":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta1","label":{"Urdu":"پینٹا ویلنٹ 1","Roman Urdu":"Pentavalent 1","English":"Pentavalent 1"}},{"instance":{"openmrs_code":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv2","label":{"Urdu":"پی سی وی 2","Roman Urdu":"PCV 2","English":"PCV 2"}},{"instance":{"openmrs_code":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv2","label":{"Urdu":"او پی وی 2","Roman Urdu":"OPV 2","English":"OPV 2"}},{"instance":{"openmrs_code":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta2","label":{"Urdu":"پینٹا ویلنٹ 2","Roman Urdu":"Pentavalent 2","English":"Pentavalent 2"}},{"instance":{"openmrs_code":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv3","label":{"Urdu":"پی سی وی 3","Roman Urdu":"PCV 3","English":"PCV 3"}},{"instance":{"openmrs_code":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv3","label":{"Urdu":"او پی وی 3","Roman Urdu":"OPV 3","English":"OPV 3"}},{"instance":{"openmrs_code":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta3","label":{"Urdu":"پینٹا ویلنٹ 3","Roman Urdu":"Pentavalent 3","English":"Pentavalent 3"}},{"instance":{"openmrs_code":"82242AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ipv","label":{"Urdu":"آئی پی وی","Roman Urdu":"IPV","English":"IPV"}},{"instance":{"openmrs_code":"79409AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"measles1","label":{"Urdu":"خسرہ 1","Roman Urdu":"Khasra 1","English":"Measles 1"}},{"instance":{"openmrs_code":"79409AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"measles2","label":{"Urdu":"خسرہ 2","Roman Urdu":"Khasra 2","English":"Measles 2"}}],"towns":[{"province":"sindh","city":"karachi","name":"korangi","label":{"Urdu":"کورنگی","Roman Urdu":"Korangi","English":"Korangi"}},{"province":"sindh","city":"karachi","name":"landhi","label":{"Urdu":"لانڈھی","Roman Urdu":"Landhi","English":"Landhi"}},{"province":"sindh","city":"karachi","name":"baldia","label":{"Urdu":"بلدیہ","Roman Urdu":"Baldia","English":"Baldia"}},{"province":"sindh","city":"karachi","name":"bin_qasim","label":{"Urdu":"بن قاسم","Roman Urdu":"Bin Qasim","English":"Bin Qasim"}},{"province":"sindh","city":"karachi","name":"gadap","label":{"Urdu":"گڈاپ","Roman Urdu":"Gadap","English":"Gadap"}},{"province":"sindh","city":"karachi","name":"gulberg","label":{"Urdu":"گلبرگ","Roman Urdu":"Gulberg","English":"Gulberg"}},{"province":"sindh","city":"karachi","name":"gulshan","label":{"Urdu":"گلشن","Roman Urdu":"Gulshan","English":"Gulshan"}},{"province":"sindh","city":"karachi","name":"jamshed","label":{"Urdu":"جمشید","Roman Urdu":"Jamshed","English":"Jamshed"}},{"province":"sindh","city":"karachi","name":"kiamari","label":{"Urdu":"کیماری","Roman Urdu":"Kiamari","English":"Kiamari"}},{"province":"sindh","city":"karachi","name":"liaquatabad","label":{"Urdu":"لیاقت آباد","Roman Urdu":"Liaquatabad","English":"Liaquatabad"}},{"province":"sindh","city":"karachi","name":"lyari","label":{"Urdu":"لیاری","Roman Urdu":"Lyari","English":"Lyari"}},{"province":"sindh","city":"karachi","name":"malir","label":{"Urdu":"ملیر","Roman Urdu":"Malir","English":"Malir"}},{"province":"sindh","city":"karachi","name":"new_karachi","label":{"Urdu":"نیو کراچی","Roman Urdu":"New Karachi","English":"New Karachi"}},{"province":"sindh","city":"karachi","name":"north_nazimabad","label":{"Urdu":"نارتھ ناظم آباد","Roman Urdu":"North Nazimabad","English":"North Nazimabad"}},{"province":"sindh","city":"karachi","name":"orangi","label":{"Urdu":"اورنگی","Roman Urdu":"Orangi","English":"Orangi"}},{"province":"sindh","city":"karachi","name":"saddar","label":{"Urdu":"صدر","Roman Urdu":"Saddar","English":"Saddar"}},{"province":"sindh","city":"karachi","name":"shah_faisal","label":{"Urdu":"شاہ فیصل","Roman Urdu":"Shah Faisal","English":"Shah Faisal"}},{"province":"sindh","city":"karachi","name":"site","label":{"Urdu":"سائٹ","Roman Urdu":"S.I.T.E.","English":"S.I.T.E."}},{"province":"na","city":"na","name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}},{"province":"na","city":"na","name":"not_applicable","label":{"Urdu":"قابل اطلاق نہیں","Roman Urdu":"Qaabil-e-atlaaq nahi","English":"Not Applicable"}}],"cities":[{"province":"sindh","name":"karachi","label":{"Urdu":"کراچی","Roman Urdu":"Karachi","English":"Karachi"}},{"province":"punjab","name":"hafizabad","label":{"Urdu":"حافظ آباد","Roman Urdu":"Hafizabad","English":"Hafizabad"}},{"province":"punjab","name":"muzaffargarh","label":{"Urdu":"مظفر گڑھ","Roman Urdu":"Muzaffargarh","English":"Muzaffargarh"}},{"province":"na","name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}},{"province":"na","name":"not_applicable","label":{"Urdu":"قابل اطلاق نہیں","Roman Urdu":"Qaabil-e-atlaaq nahi","English":"Not Applicable"}}],"yes_no":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}]},"instance":{"encounter_type":"Child Vaccination Followup"},"version":"201604080501","id_string":"child_vaccination_followup","type":"survey","children":[{"type":"hidden","name":"provider_uc"},{"type":"hidden","name":"provider_town"},{"type":"hidden","name":"provider_city"},{"type":"hidden","name":"provider_province"},{"type":"hidden","name":"existing_first_name"},{"type":"hidden","name":"existing_last_name"},{"type":"hidden","name":"existing_mother_name"},{"type":"hidden","name":"existing_gender"},{"type":"hidden","name":"existing_client_birth_date"},{"type":"hidden","name":"existing_client_reg_date"},{"type":"hidden","name":"existing_landmark"},{"type":"hidden","name":"existing_house_number"},{"type":"hidden","name":"existing_street"},{"type":"hidden","name":"existing_union_council"},{"type":"hidden","name":"existing_town"},{"type":"hidden","name":"existing_city_village"},{"type":"hidden","name":"existing_province"},{"type":"hidden","name":"existing_union_councilname"},{"type":"hidden","name":"existing_townname"},{"type":"hidden","name":"existing_city_villagename"},{"type":"hidden","name":"existing_provincename"},{"type":"hidden","name":"existing_ethnicity"},{"type":"hidden","name":"existing_program_client_id"},{"type":"hidden","name":"existing_epi_card_number"},{"type":"hidden","name":"existing_child_was_suffering_from_a_disease_at_birth"},{"type":"hidden","name":"existing_reminders_approval"},{"type":"hidden","name":"existing_contact_phone_number"},{"type":"hidden","name":"e_bcg"},{"type":"hidden","name":"e_opv0"},{"type":"hidden","name":"e_penta2"},{"type":"hidden","name":"e_penta1"},{"type":"hidden","name":"e_penta3"},{"type":"hidden","name":"e_opv1"},{"type":"hidden","name":"e_opv2"},{"type":"hidden","name":"e_opv3"},{"type":"hidden","name":"e_pcv1"},{"type":"hidden","name":"e_pcv2"},{"type":"hidden","name":"e_pcv3"},{"type":"hidden","name":"e_ipv"},{"type":"hidden","name":"e_measles1"},{"type":"hidden","name":"e_measles2"},{"type":"hidden","name":"provider_id"},{"instance":{"openmrs_entity_id":"location_id","openmrs_entity":"encounter"},"type":"hidden","name":"provider_location_id"},{"type":"hidden","name":"provider_location_name"},{"type":"note","name":"provider_location_note","label":{"Urdu":"شہر: ${provider_city} ; ٹائون: ${provider_town} ; یوسی: ${provider_uc} ; سینٹرکا نام: ${provider_location_name}","English":"City: ${provider_city} ; Town: ${provider_town} ; UC: ${provider_uc} ; Center Name: ${provider_location_name}","Roman Urdu":"Shehr: ${provider_city} ; Town: ${provider_town} ; UC: ${provider_uc} ; Center ka Naam: ${provider_location_name}"}},{"instance":{"openmrs_entity_id":"163137AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"start","name":"start"},{"instance":{"openmrs_entity_id":"163138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"end","name":"end"},{"instance":{"openmrs_entity_id":"163286AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"today","name":"today"},{"instance":{"openmrs_entity_id":"163149AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"deviceid","name":"deviceid"},{"instance":{"openmrs_entity_id":"163150AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"subscriberid","name":"subscriberid"},{"instance":{"openmrs_entity_id":"163151AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"simserial","name":"simserial"},{"instance":{"openmrs_entity_id":"163152AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"phonenumber","name":"phonenumber"},{"bind":{"required":"yes"},"label":{"Urdu":"بچے کی پروگرام میں اندراج کی تاریخ: {existing_client_reg_date}$","Roman Urdu":"Bachay ki Program mai andraj ki tareekh: ${existing_client_reg_date}","English":"Child Registration date: ${existing_client_reg_date}"},"type":"note","name":"existing_client_reg_date_note","hint":{"Urdu":"بچے کو ویکسین لگنے کی تاریخ","Roman Urdu":"Bachay ko vaccine lagnay ki tareekh","English":"Date on which child was vaccinated"}},{"bind":{"required":"yes"},"type":"note","name":"program_client_id_note","label":{"Urdu":"کلائنٹ کی پروگرام ائی ڈی: {existing_program_client_id}$","Roman Urdu":"Client ki program ID: ${existing_program_client_id}","English":"Program Client ID: ${existing_program_client_id}"}},{"bind":{"required":"yes"},"type":"note","instance":{"openmrs_entity_id":"EPI Card Number","openmrs_entity":"person_attribute"},"name":"epi_card_number_note","label":{"Urdu":"کارڈ نمبر: {existing_epi_card_number}$","English":"Card Number: ${existing_epi_card_number}","Roman Urdu":"Card Number: ${existing_epi_card_number}"}},{"bind":{"required":"yes"},"type":"note","name":"first_name_note","label":{"Urdu":"نام: {existing_first_name}$","Roman Urdu":"Naam: ${existing_first_name}","English":"First Name: ${existing_first_name}"}},{"bind":{"required":"yes"},"type":"note","name":"last_name_note","label":{"Urdu":"والد کا نام: {existing_last_name}$","Roman Urdu":"Waalid ka naam: ${existing_last_name}","English":"Last name: ${existing_last_name}"}},{"bind":{"calculate":"int((${today} - ${existing_client_birth_date}) div 30.42)"},"type":"calculate","name":"child_age","instance":{"openmrs_entity_id":"154384AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"type":"note","name":"calc_dob_note","label":{"Urdu":"بچے کی تاریخ پیدائش: {existing_client_birth_date}$ ({child_age}$) مہینے","English":"Child dob: ${existing_client_birth_date} (${child_age}) months","Roman Urdu":"Bachay ki tareekh-e-paidaish: ${existing_client_birth_date} (${child_age}) mahinay"}},{"bind":{"required":"yes"},"type":"note","name":"gender_note","label":{"Urdu":"جنس: {existing_gender}$","Roman Urdu":"Jins:${existing_gender}","English":"Gender: ${existing_gender}"}},{"type":"note","name":"mother_name_note","label":{"Urdu":"ماں کا نام: {existing_mother_name}$","English":"Mother's Name: ${existing_mother_name}","Roman Urdu":"Maa ka naam: ${existing_mother_name}"}},{"bind":{"required":"yes"},"type":"note","name":"exisiting_ethnicity_note","label":{"Urdu":"قومیت: {existing_ethnicity}$","Roman Urdu":"Qomiat: ${existing_ethnicity}","English":"Ethnicity: ${existing_ethnicity}"}},{"type":"note","name":"address","label":{"Urdu":"موجودہ پتہ: ${existing_house_number}, ${existing_street}, ${existing_landmark}, ${existing_union_councilname}, ${existing_townname}, ${existing_city_villagename}, ${existing_provincename}","English":"Current Address: ${existing_house_number}, ${existing_street}, ${existing_landmark}, ${existing_union_councilname}, ${existing_townname}, ${existing_city_villagename}, ${existing_provincename}","Roman Urdu":"Mojooda Address: ${existing_house_number}, ${existing_street}, ${existing_landmark}, ${existing_union_councilname}, ${existing_townname}, ${existing_city_villagename}, ${existing_provincename}"}},{"label":{"Urdu":"کیا آپ کا گھر کا پتہ بدلا ہے؟","English":"Has your home address changed?","Roman Urdu":"Kya aap ka ghar ka pata badla hai?"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}],"name":"address_change"},{"control":{"appearance":"minimal"},"name":"province","default":"${provider_province}","bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"label":{"Urdu":"صوبہ","Roman Urdu":"Suba","English":"Province"},"instance":{"openmrs_entity":"person_address","openmrs_entity_id":"stateProvince","openmrs_entity_parent":"usual_residence"},"type":"select one","children":[{"name":"kpk","label":{"Urdu":"خیبر پختون خواہ","English":"Khyber Pakhtunkhwa","Roman Urdu":"Khyber Pakhtunkhwa"}},{"name":"sindh","label":{"Urdu":"سندھ","English":"Sindh","Roman Urdu":"Sindh"}},{"name":"balochistan","label":{"Urdu":"بلوچستان","English":"Balochistan","Roman Urdu":"Balochistan"}},{"name":"punjab","label":{"Urdu":"پنجاب","English":"Punjab","Roman Urdu":"Punjab"}},{"name":"gilgit_baltistan","label":{"Urdu":"گلگت بلتستان","English":"Gilgit Baltistan","Roman Urdu":"Gilgit Baltistan"}},{"name":"kashmir","label":{"Urdu":"کشمیر","English":"Kashmir","Roman Urdu":"Kashmir"}},{"name":"fata","label":{"Urdu":"فاٹا","English":"FATA","Roman Urdu":"FATA"}},{"name":"out_of_country","label":{"Urdu":"ملک سے باہر","English":"Out of Country","Roman Urdu":"Out of Country"}}]},{"control":{"appearance":"minimal"},"name":"city_village","choice_filter":"province=${province} or province='na'","default":"${provider_city}","bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"label":{"Urdu":"شہر","Roman Urdu":"Shehr","English":"City"},"itemset":"cities","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"cityVillage","openmrs_entity_parent":"usual_residence"},"type":"select one"},{"control":{"appearance":"minimal"},"name":"town","choice_filter":"(province=${province} and city=${city_village} ) or city='na'","bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"label":{"Urdu":"ٹاٰئون/ قصبہ/ بستی","Roman Urdu":"Town / Qasbah / Basti","English":"Town"},"itemset":"towns","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"town","openmrs_entity_parent":"usual_residence"},"type":"select one"},{"control":{"appearance":"minimal"},"name":"union_council","choice_filter":"(province=${province} and city=${city_village} and town=${town}) or town='na'","bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"label":{"Urdu":"یونین کونسل","Roman Urdu":"Union Council","English":"Union Council"},"itemset":"ucs","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"subTown","openmrs_entity_parent":"usual_residence"},"type":"select one"},{"bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"type":"text","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"house","openmrs_entity_parent":"usual_residence"},"name":"house_number","label":{"Urdu":"گھر کا نمبر","Roman Urdu":"Ghar ka number","English":"House Number"}},{"bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"type":"text","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"street","openmrs_entity_parent":"usual_residence"},"name":"street","label":{"Urdu":"گلی/کالونی/محلہ","Roman Urdu":"Gali/Colony/Mohalla","English":"Street"}},{"bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"type":"text","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"landmark","openmrs_entity_parent":"usual_residence"},"name":"landmark","label":{"Urdu":"گھر کے قریب کوئی مشہور جگہ","Roman Urdu":"Ghar ke qareeb koi mashoor jagah","English":"Land Mark"}},{"instance":{"openmrs_entity_id":"163277AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"geopoint","name":"center_gps","label":{"Urdu":"حاصل کردہ معلومات کی جگہ کے GPS کارڈینیٹس درج کریں","English":"Collect GPS coordinates of data entry location:","Roman Urdu":"Hasil karda malomaat ki jaga ke GPS coordinates darj karain"}},{"control":{"appearance":"minimal"},"bind":{"required":"yes"},"type":"note","name":"child_was_suffering_from_a_disease_at_birth_note","label":{"Urdu":"کیا بچہ پیدائش کے وقت کسی مرض میں مبتلا تھا؟ {existing_child_was_suffering_from_a_disease_at_birth}$","Roman Urdu":"Kya bacha pedaaish k waqt kissi marz mai mubtila tha? ${existing_child_was_suffering_from_a_disease_at_birth}","English":"Child was suffering from a disease at birth: ${existing_child_was_suffering_from_a_disease_at_birth}"}},{"instance":{"openmrs_entity_id":"163162AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"text","name":"aefi","label":{"Urdu":"حفاظتی ٹیکوں کے مضر اثرات","English":"The temporary side-effects of immunization shots","Roman Urdu":"Hifazati teekon ke muzr asraat"}},{"control":{"appearance":"minimal"},"name":"reminders_approval","bind":{"required":"yes"},"label":{"Urdu":"کیا آپ اپنے بچے کی اگلی ویکسین کی تاریخ کے لیے SMS موصول کرنا چاہتے ہیں؟ {existing_reminders_approval}$","English":"Are you willing to receive SMS reminders for your next visit? ${existing_reminders_approval}","Roman Urdu":"Kya aap apnay bachay ki agli vaccine ki tareekh ke liye SMS mausool karna chahtay hain? ${existing_reminders_approval}"},"instance":{"openmrs_entity_id":"163089AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}]},{"bind":{"jr:constraintMsg":{"Urdu":"فون نمبر گیارہ ہندسوں پر مشتمل اور مندرجہ ذیل شکل میں ہونا چاہئے: *********03","English":"Phone number should be 11 digits in the following format: 03*********","Roman Urdu":"Phone number 11 hindason par mushtamil aur mundarja zail shakal main hona chahiey: 03*********"},"relevant":"${existing_reminders_approval}='yes'","constraint":"regex(., '^03[0-9]{9}$')"},"type":"text","instance":{"openmrs_entity_id":"159635AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"contact_phone_number","label":{"Urdu":"موبائل نمبر:{existing_contact_phone_number}$","English":"Mobile Number: ${existing_contact_phone_number}","Roman Urdu":"Mobile Number: ${existing_contact_phone_number}"}},{"bind":{"calculate":"${existing_client_birth_date} + 42"},"type":"calculate","name":"six_weeks"},{"bind":{"calculate":"${existing_client_birth_date} + 70"},"type":"calculate","name":"ten_weeks"},{"bind":{"calculate":"${existing_client_birth_date} + 98"},"type":"calculate","name":"forteen_weeks"},{"bind":{"calculate":"${existing_client_birth_date} + 245"},"type":"calculate","name":"nine_months"},{"bind":{"calculate":"${existing_client_birth_date} + 458"},"type":"calculate","name":"fifteen_months"},{"control":{"appearance":"minimal"},"name":"vaccines","choice_filter":"name != if( ${e_bcg} != '', 'bcg' , '') and \nname != if( ${e_opv0} != '', 'opv0' , '') and \nname != if( ${e_penta1} != '', 'penta1' , '') and \nname != if( ${e_penta2} != '', 'penta2' , '') and \nname != if( ${e_penta3} != '', 'penta3' , '') and \nname != if( ${e_opv1} != '', 'opv1' , '') and \nname != if( ${e_opv2} != '', 'opv2' , '') and \nname != if( ${e_opv3} != '', 'opv3' , '') and \nname != if( ${e_pcv1} != '', 'pcv1' , '') and \nname != if( ${e_pcv2} != '', 'pcv2' , '') and \nname != if( ${e_pcv3} != '', 'pcv3' , '') and \nname != if( ${e_ipv} != '', 'ipv' , '') and \nname != if( ${e_measles1} != '', 'measles1' , '') and \nname != if( ${e_measles2} != '', 'measles2' , '')","label":{"Urdu":"پچھلی تاریخ جب کسی اور سینٹر پر ٹیکے لگواِے گیے یا قطرے پلائے گئے","Roman Urdu":"Pichli tareekh jab kissi aur center par teekay lagwaye gaye ya katray pilaey gaye","English":"Retro vaccines"},"itemset":"vaccines","instance":{"openmrs_entity":"concept","openmrs_entity_id":"984AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1421AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"select all that apply"},{"type":"group","children":[{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'bcg')","constraint":".>= ${existing_client_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"886AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"bcg_retro","label":{"Urdu":"بی سی جی","Roman Urdu":"BCG","English":"BCG"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'opv0')","constraint":".>= ${existing_client_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv0_retro","label":{"Urdu":"او پی وی 0","Roman Urdu":"OPV 0","English":"OPV 0"}},{"bind":{"relevant":"selected(${vaccines}, 'opv0')","calculate":"0"},"type":"calculate","name":"opv0_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'pcv1')","constraint":".>= ${existing_client_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv1_retro","label":{"Urdu":"پی سی وی 1","Roman Urdu":"PCV1","English":"PCV1"}},{"bind":{"relevant":"selected(${vaccines}, 'pcv1')","calculate":"1"},"type":"calculate","name":"pcv1_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'opv1')","constraint":".>= ${existing_client_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv1_retro","label":{"Urdu":"او پی وی1","Roman Urdu":"OPV 1","English":"OPV 1"}},{"bind":{"relevant":"selected(${vaccines}, 'opv1')","calculate":"1"},"type":"calculate","name":"opv1_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'penta1')","constraint":".>= ${existing_client_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta1_retro","label":{"Urdu":"پینٹا ویلنٹ 1","Roman Urdu":"Pentavalent 1","English":"Pentavalent 1"}},{"bind":{"relevant":"selected(${vaccines}, 'penta1')","calculate":"1"},"type":"calculate","name":"penta1_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'pcv2')","constraint":".>= ${existing_client_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv2_retro","label":{"Urdu":"پی سی وی 2","Roman Urdu":"PCV2","English":"PCV2"}},{"bind":{"relevant":"selected(${vaccines}, 'pcv2')","calculate":"2"},"type":"calculate","name":"pcv2_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'opv2')","constraint":".>= ${existing_client_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv2_retro","label":{"Urdu":"او پی وی 2","Roman Urdu":"OPV 2","English":"OPV 2"}},{"bind":{"relevant":"selected(${vaccines}, 'opv2')","calculate":"2"},"type":"calculate","name":"opv2_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'penta2')","constraint":".>= ${existing_client_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta2_retro","label":{"Urdu":"پینٹا ویلنٹ 2","Roman Urdu":"Pentavalent 2","English":"Pentavalent 2"}},{"bind":{"relevant":"selected(${vaccines}, 'penta2')","calculate":"2"},"type":"calculate","name":"penta2_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'pcv3')","constraint":".>= ${existing_client_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv3_retro","label":{"Urdu":"پی سی وی 3","Roman Urdu":"PCV3","English":"PCV3"}},{"bind":{"relevant":"selected(${vaccines}, 'penta2')","calculate":"3"},"type":"calculate","name":"pcv3_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'opv3')","constraint":".>= ${existing_client_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv3_retro","label":{"Urdu":"او پی وی3","Roman Urdu":"OPV 3","English":"OPV 3"}},{"bind":{"relevant":"selected(${vaccines}, 'opv3')","calculate":"3"},"type":"calculate","name":"opv3_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'penta3')","constraint":".>= ${existing_client_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta3_retro","label":{"Urdu":"پینٹا ویلنٹ 3","Roman Urdu":"Pentavalent 3","English":"Pentavalent 3"}},{"bind":{"relevant":"selected(${vaccines}, 'penta3')","calculate":"3"},"type":"calculate","name":"penta3_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'ipv')","constraint":".>= ${existing_client_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1422AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ipv_retro","label":{"Urdu":"آئی پی وی","Roman Urdu":"IPV","English":"IPV"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'measles1')","constraint":".>= ${existing_client_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"measles1_retro","label":{"Urdu":"خسرہ 1","Roman Urdu":"Measles 1","English":"Measles 1"}},{"bind":{"relevant":"selected(${vaccines}, 'measles1')","calculate":"1"},"type":"calculate","name":"measles1_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'measles2')","constraint":".>= ${existing_client_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"measles2_retro","label":{"Urdu":"خسرہ 2","Roman Urdu":"Measles2","English":"Measles2"}},{"bind":{"relevant":"selected(${vaccines}, 'measles2')","calculate":"2"},"type":"calculate","name":"measles2_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}}],"name":"vaccines_group"},{"control":{"appearance":"minimal"},"name":"vaccines_2","choice_filter":"name != if( ${e_bcg} != '', 'bcg' , '') and \nname != if( ${e_opv0} != '', 'opv0' , '') and \nname != if( ${e_penta2} != '', 'penta2' , '') and \nname != if( ${e_penta1} != '', 'penta1' , '') and \nname != if( ${e_penta3} != '', 'penta3' , '') and \nname != if( ${e_opv1} != '', 'opv1' , '') and \nname != if( ${e_opv2} != '', 'opv2' , '') and \nname != if( ${e_opv3} != '', 'opv3' , '') and \nname != if( ${e_pcv1} != '', 'pcv1' , '') and \nname != if( ${e_pcv2} != '', 'pcv2' , '') and \nname != if( ${e_pcv3} != '', 'pcv3' , '') and \nname != if( ${e_measles1} != '', 'measles1' , '') and \nname != if( ${e_measles2} != '', 'measles2' , '') and \nname != if(selected(${vaccines}, 'bcg'), 'bcg', '') and \nname != if(selected(${vaccines}, 'opv0'), 'opv0', '') and \nname != if(selected(${vaccines}, 'penta1'), 'penta1', '') and \nname != if(selected(${vaccines}, 'opv1'), 'opv1', '') and \nname != if(selected(${vaccines}, 'pcv1'), 'pcv1', '') and \nname != if(selected(${vaccines}, 'penta2'), 'penta2', '') and \nname != if(selected(${vaccines}, 'opv2'), 'opv2', '') and \nname != if(selected(${vaccines}, 'pcv2'), 'pcv2', '') and \nname != if(selected(${vaccines}, 'penta3'), 'penta3', '') and \nname != if(selected(${vaccines}, 'opv3'), 'opv3', '') and \nname != if(selected(${vaccines}, 'pcv3'), 'pcv3', '') and\nname != if(selected(${vaccines}, 'ipv'), 'ipv', '') and \nname != if(selected(${vaccines}, 'measles1'), 'measles1', '') and \nname != if(selected(${vaccines}, 'measles2'), 'measles2', '')","bind":{"required":"yes","constraint":"if(selected(${vaccines_2}, 'bcg') or selected(${vaccines_2}, 'opv0') , .>= ${existing_client_birth_date} and .<=${today}, if(selected(${vaccines_2}, 'opv1') or selected(${vaccines_2}, 'penta1'), .>= ${six_weeks} and .<=${today}, if(selected(${vaccines_2}, 'opv2') or selected(${vaccines_2}, 'penta2'), .>=${ten_weeks} and .<=${today}, if(selected(${vaccines_2}, 'opv3') or selected(${vaccines_2}, 'penta3'), .>=${forteen_weeks} and .<=${today}, if(selected(${vaccines_2}, 'measles1'), .>=${nine_months} and .<=${today}, if(selected(${vaccines_2}, 'measles2'), .>= ${fifteen_months} and .<=${today}))))))"},"label":{"Urdu":"آج کون کون سی ویکسین دی گئی ہیں؟","Roman Urdu":"Aaj kon kon si vaccine di gai hain?","English":"Vaccines administered"},"itemset":"vaccines","instance":{"openmrs_entity":"concept","openmrs_entity_id":"984AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1441AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"select all that apply"},{"name":"vaccination_date","default":"${today}","bind":{"required":"yes","constraint":"if(selected(${vaccines_2}, 'bcg') or selected(${vaccines_2}, 'opv0') , .>= ${existing_client_birth_date} and .<=${today}, if(selected(${vaccines_2}, 'opv1') or selected(${vaccines_2}, 'penta1'), .>= ${six_weeks} and .<=${today}, if(selected(${vaccines_2}, 'opv2') or selected(${vaccines_2}, 'penta2'), .>=${ten_weeks} and .<=${today}, if(selected(${vaccines_2}, 'opv3') or selected(${vaccines_2}, 'penta3'), .>=${forteen_weeks} and .<=${today}, if(selected(${vaccines_2}, 'measles1'), .>=${nine_months} and .<=${today}, if(selected(${vaccines_2}, 'measles2'), .>= ${fifteen_months} and .<=${today}))))))"},"label":{"Urdu":"تاریخ","English":"Vaccination date","Roman Urdu":"Tareekh"},"instance":{"openmrs_entity_id":"encounter_date","openmrs_entity":"encounter"},"type":"date"},{"bind":{"calculate":"if(selected(${vaccines_2}, 'bcg'),${vaccination_date},'')"},"type":"calculate","name":"bcg","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"886AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'opv0'),${vaccination_date},'')"},"type":"calculate","name":"opv0","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'opv0')","calculate":"0"},"type":"calculate","name":"opv0_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'pcv1'),${vaccination_date},'')"},"type":"calculate","name":"pcv1","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'pcv1')","calculate":"1"},"type":"calculate","name":"pcv1_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'opv1'),${vaccination_date},'')"},"type":"calculate","name":"opv1","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'opv1')","calculate":"1"},"type":"calculate","name":"opv1_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'penta1'),${vaccination_date},'')"},"type":"calculate","name":"penta1","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'penta1')","calculate":"1"},"type":"calculate","name":"penta1_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'pcv2'),${vaccination_date},'')"},"type":"calculate","name":"pcv2","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'pcv2')","calculate":"2"},"type":"calculate","name":"pcv2_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'opv2'),${vaccination_date},'')"},"type":"calculate","name":"opv2","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'opv2')","calculate":"2"},"type":"calculate","name":"opv2_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'penta2'),${vaccination_date},'')"},"type":"calculate","name":"penta2","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'penta2')","calculate":"2"},"type":"calculate","name":"penta2_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'pcv3'),${vaccination_date},'')"},"type":"calculate","name":"pcv3","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'pcv3')","calculate":"3"},"type":"calculate","name":"pcv3_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'opv3'),${vaccination_date},'')"},"type":"calculate","name":"opv3","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'opv3')","calculate":"3"},"type":"calculate","name":"opv3_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'penta3'),${vaccination_date},'')"},"type":"calculate","name":"penta3","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'penta3')","calculate":"3"},"type":"calculate","name":"penta3_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines}, 'ipv')","calculate":"if(selected(${vaccines_2}, 'ipv'),${vaccination_date},'')"},"type":"calculate","name":"ipv","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1422AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'measles1'),${vaccination_date},'')"},"type":"calculate","name":"measles1","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'measles1')","calculate":"1"},"type":"calculate","name":"measles1_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'measles2'),${vaccination_date},'')"},"type":"calculate","name":"measles2","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'measles2')","calculate":"2"},"type":"calculate","name":"measles2_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"control":{"bodyless":true},"type":"group","children":[{"bind":{"readonly":"true()","calculate":"concat('uuid:', uuid())"},"type":"calculate","name":"instanceID"}],"name":"meta"}]} \ No newline at end of file diff --git a/opensrp-connector/src/test/resources/form/child_followup/form.xml b/opensrp-connector/src/test/resources/form/child_followup/form.xml deleted file mode 100644 index 7d4260e8c2..0000000000 --- a/opensrp-connector/src/test/resources/form/child_followup/form.xml +++ /dev/null @@ -1,1555 +0,0 @@ -
- - -

بچّوں کا فالو اپ رجسٹر برائے ٹیکاجات - Child Follow Up Vaccination Register

-
-
- - کیا آپ کا گھر کا پتہ بدلا ہے؟ - Has your home address changed? - - Kya aap ka ghar ka pata badla hai? -
- - -
-
-
- - - - - - - - - - - - - -
- - -
diff --git a/opensrp-connector/src/test/resources/form/child_followup/form_definition.json b/opensrp-connector/src/test/resources/form/child_followup/form_definition.json deleted file mode 100644 index 38d578690e..0000000000 --- a/opensrp-connector/src/test/resources/form/child_followup/form_definition.json +++ /dev/null @@ -1,466 +0,0 @@ -{ - "form_data_definition_version" : "1", - "form" : { - "bind_type" : "pkchild", - "default_bind_path" : "/model/instance/Child_Vaccination_Followup/", - "fields" : [ { - "name" : "id", - "shouldLoadValue" : true - }, { - "name" : "provider_uc", - "bind" : "/model/instance/Child_Vaccination_Followup/provider_uc", - "shouldLoadValue" : true - }, { - "name" : "provider_town", - "bind" : "/model/instance/Child_Vaccination_Followup/provider_town", - "shouldLoadValue" : true - }, { - "name" : "provider_city", - "bind" : "/model/instance/Child_Vaccination_Followup/provider_city", - "shouldLoadValue" : true - }, { - "name" : "provider_province", - "bind" : "/model/instance/Child_Vaccination_Followup/provider_province", - "shouldLoadValue" : true - }, { - "name" : "existing_first_name", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_first_name", - "shouldLoadValue" : true - }, { - "name" : "existing_last_name", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_last_name", - "shouldLoadValue" : true - }, { - "name" : "existing_mother_name", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_mother_name", - "shouldLoadValue" : true - }, { - "name" : "existing_gender", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_gender", - "shouldLoadValue" : true - }, { - "name" : "existing_birth_date", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_client_birth_date", - "shouldLoadValue" : true - }, { - "name" : "existing_client_reg_date", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_client_reg_date", - "shouldLoadValue" : true - }, { - "name" : "existing_landmark", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_landmark", - "shouldLoadValue" : true - }, { - "name" : "existing_house_number", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_house_number", - "shouldLoadValue" : true - }, { - "name" : "existing_street", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_street", - "shouldLoadValue" : true - }, { - "name" : "existing_union_council", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_union_council", - "shouldLoadValue" : true - }, { - "name" : "existing_town", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_town", - "shouldLoadValue" : true - }, { - "name" : "existing_city_village", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_city_village", - "shouldLoadValue" : true - }, { - "name" : "existing_province", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_province", - "shouldLoadValue" : true - }, { - "name" : "existing_union_councilname", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_union_councilname", - "shouldLoadValue" : true - }, { - "name" : "existing_townname", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_townname", - "shouldLoadValue" : true - }, { - "name" : "existing_city_villagename", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_city_villagename", - "shouldLoadValue" : true - }, { - "name" : "existing_provincename", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_provincename", - "shouldLoadValue" : true - }, { - "name" : "existing_ethnicity", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_ethnicity", - "shouldLoadValue" : true - }, { - "name" : "existing_program_client_id", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_program_client_id", - "shouldLoadValue" : true - }, { - "name" : "existing_epi_card_number", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_epi_card_number", - "shouldLoadValue" : true - }, { - "name" : "existing_child_was_suffering_from_a_disease_at_birth", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_child_was_suffering_from_a_disease_at_birth", - "shouldLoadValue" : true - }, { - "name" : "existing_reminders_approval", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_reminders_approval", - "shouldLoadValue" : true - }, { - "name" : "existing_contact_phone_number", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_contact_phone_number", - "shouldLoadValue" : true - }, { - "name" : "e_bcg", - "bind" : "/model/instance/Child_Vaccination_Followup/e_bcg", - "shouldLoadValue" : true - }, { - "name" : "e_opv0", - "bind" : "/model/instance/Child_Vaccination_Followup/e_opv0", - "shouldLoadValue" : true - }, { - "name" : "e_penta2", - "bind" : "/model/instance/Child_Vaccination_Followup/e_penta2", - "shouldLoadValue" : true - }, { - "name" : "e_penta1", - "bind" : "/model/instance/Child_Vaccination_Followup/e_penta1", - "shouldLoadValue" : true - }, { - "name" : "e_penta3", - "bind" : "/model/instance/Child_Vaccination_Followup/e_penta3", - "shouldLoadValue" : true - }, { - "name" : "e_opv1", - "bind" : "/model/instance/Child_Vaccination_Followup/e_opv1", - "shouldLoadValue" : true - }, { - "name" : "e_opv2", - "bind" : "/model/instance/Child_Vaccination_Followup/e_opv2", - "shouldLoadValue" : true - }, { - "name" : "e_opv3", - "bind" : "/model/instance/Child_Vaccination_Followup/e_opv3", - "shouldLoadValue" : true - }, { - "name" : "e_pcv1", - "bind" : "/model/instance/Child_Vaccination_Followup/e_pcv1", - "shouldLoadValue" : true - }, { - "name" : "e_pcv2", - "bind" : "/model/instance/Child_Vaccination_Followup/e_pcv2", - "shouldLoadValue" : true - }, { - "name" : "e_pcv3", - "bind" : "/model/instance/Child_Vaccination_Followup/e_pcv3", - "shouldLoadValue" : true - }, { - "name" : "e_ipv", - "bind" : "/model/instance/Child_Vaccination_Followup/e_ipv", - "shouldLoadValue" : true - }, { - "name" : "e_measles1", - "bind" : "/model/instance/Child_Vaccination_Followup/e_measles1", - "shouldLoadValue" : true - }, { - "name" : "e_measles2", - "bind" : "/model/instance/Child_Vaccination_Followup/e_measles2", - "shouldLoadValue" : true - }, { - "name" : "provider_id", - "bind" : "/model/instance/Child_Vaccination_Followup/provider_id", - "shouldLoadValue" : true - }, { - "name" : "provider_location_id", - "bind" : "/model/instance/Child_Vaccination_Followup/provider_location_id", - "shouldLoadValue" : true - }, { - "name" : "provider_location_name", - "bind" : "/model/instance/Child_Vaccination_Followup/provider_location_name", - "shouldLoadValue" : true - }, { - "name" : "provider_location_note", - "bind" : "/model/instance/Child_Vaccination_Followup/provider_location_note" - }, { - "name" : "start", - "bind" : "/model/instance/Child_Vaccination_Followup/start" - }, { - "name" : "end", - "bind" : "/model/instance/Child_Vaccination_Followup/end" - }, { - "name" : "today", - "bind" : "/model/instance/Child_Vaccination_Followup/today" - }, { - "name" : "deviceid", - "bind" : "/model/instance/Child_Vaccination_Followup/deviceid" - }, { - "name" : "subscriberid", - "bind" : "/model/instance/Child_Vaccination_Followup/subscriberid" - }, { - "name" : "simserial", - "bind" : "/model/instance/Child_Vaccination_Followup/simserial" - }, { - "name" : "phonenumber", - "bind" : "/model/instance/Child_Vaccination_Followup/phonenumber" - }, { - "name" : "existing_client_reg_date_note", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_client_reg_date_note" - }, { - "name" : "program_client_id_note", - "bind" : "/model/instance/Child_Vaccination_Followup/program_client_id_note" - }, { - "name" : "epi_card_number_note", - "bind" : "/model/instance/Child_Vaccination_Followup/epi_card_number_note" - }, { - "name" : "first_name_note", - "bind" : "/model/instance/Child_Vaccination_Followup/first_name_note" - }, { - "name" : "last_name_note", - "bind" : "/model/instance/Child_Vaccination_Followup/last_name_note" - }, { - "name" : "child_age", - "bind" : "/model/instance/Child_Vaccination_Followup/child_age" - }, { - "name" : "calc_dob_note", - "bind" : "/model/instance/Child_Vaccination_Followup/calc_dob_note" - }, { - "name" : "gender_note", - "bind" : "/model/instance/Child_Vaccination_Followup/gender_note" - }, { - "name" : "mother_name_note", - "bind" : "/model/instance/Child_Vaccination_Followup/mother_name_note" - }, { - "name" : "exisiting_ethnicity_note", - "bind" : "/model/instance/Child_Vaccination_Followup/exisiting_ethnicity_note" - }, { - "name" : "address", - "bind" : "/model/instance/Child_Vaccination_Followup/address" - }, { - "name" : "address_change", - "bind" : "/model/instance/Child_Vaccination_Followup/address_change" - }, { - "name" : "province", - "bind" : "/model/instance/Child_Vaccination_Followup/province" - }, { - "name" : "city_village", - "bind" : "/model/instance/Child_Vaccination_Followup/city_village" - }, { - "name" : "town", - "bind" : "/model/instance/Child_Vaccination_Followup/town" - }, { - "name" : "union_council", - "bind" : "/model/instance/Child_Vaccination_Followup/union_council" - }, { - "name" : "house_number", - "bind" : "/model/instance/Child_Vaccination_Followup/house_number" - }, { - "name" : "street", - "bind" : "/model/instance/Child_Vaccination_Followup/street" - }, { - "name" : "landmark", - "bind" : "/model/instance/Child_Vaccination_Followup/landmark" - }, { - "name" : "center_gps", - "bind" : "/model/instance/Child_Vaccination_Followup/center_gps" - }, { - "name" : "child_was_suffering_from_a_disease_at_birth_note", - "bind" : "/model/instance/Child_Vaccination_Followup/child_was_suffering_from_a_disease_at_birth_note" - }, { - "name" : "aefi", - "bind" : "/model/instance/Child_Vaccination_Followup/aefi" - }, { - "name" : "reminders_approval", - "bind" : "/model/instance/Child_Vaccination_Followup/reminders_approval" - }, { - "name" : "contact_phone_number", - "bind" : "/model/instance/Child_Vaccination_Followup/contact_phone_number" - }, { - "name" : "six_weeks", - "bind" : "/model/instance/Child_Vaccination_Followup/six_weeks" - }, { - "name" : "ten_weeks", - "bind" : "/model/instance/Child_Vaccination_Followup/ten_weeks" - }, { - "name" : "forteen_weeks", - "bind" : "/model/instance/Child_Vaccination_Followup/forteen_weeks" - }, { - "name" : "nine_months", - "bind" : "/model/instance/Child_Vaccination_Followup/nine_months" - }, { - "name" : "fifteen_months", - "bind" : "/model/instance/Child_Vaccination_Followup/fifteen_months" - }, { - "name" : "vaccines", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines" - }, { - "name" : "bcg_retro", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/bcg_retro" - }, { - "name" : "opv0_retro", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/opv0_retro" - }, { - "name" : "opv0_dose", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/opv0_dose" - }, { - "name" : "pcv1_retro", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/pcv1_retro" - }, { - "name" : "pcv1_dose", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/pcv1_dose" - }, { - "name" : "opv1_retro", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/opv1_retro" - }, { - "name" : "opv1_dose", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/opv1_dose" - }, { - "name" : "penta1_retro", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/penta1_retro" - }, { - "name" : "penta1_dose", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/penta1_dose" - }, { - "name" : "pcv2_retro", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/pcv2_retro" - }, { - "name" : "pcv2_dose", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/pcv2_dose" - }, { - "name" : "opv2_retro", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/opv2_retro" - }, { - "name" : "opv2_dose", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/opv2_dose" - }, { - "name" : "penta2_retro", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/penta2_retro" - }, { - "name" : "penta2_dose", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/penta2_dose" - }, { - "name" : "pcv3_retro", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/pcv3_retro" - }, { - "name" : "pcv3_dose", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/pcv3_dose" - }, { - "name" : "opv3_retro", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/opv3_retro" - }, { - "name" : "opv3_dose", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/opv3_dose" - }, { - "name" : "penta3_retro", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/penta3_retro" - }, { - "name" : "penta3_dose", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/penta3_dose" - }, { - "name" : "ipv_retro", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/ipv_retro" - }, { - "name" : "measles1_retro", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/measles1_retro" - }, { - "name" : "measles1_dose", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/measles1_dose" - }, { - "name" : "measles2_retro", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/measles2_retro" - }, { - "name" : "measles2_dose", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/measles2_dose" - }, { - "name" : "vaccines_2", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_2" - }, { - "name" : "vaccination_date", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccination_date" - }, { - "name" : "bcg", - "bind" : "/model/instance/Child_Vaccination_Followup/bcg" - }, { - "name" : "opv0", - "bind" : "/model/instance/Child_Vaccination_Followup/opv0" - }, { - "name" : "opv0_dose_today", - "bind" : "/model/instance/Child_Vaccination_Followup/opv0_dose_today" - }, { - "name" : "pcv1", - "bind" : "/model/instance/Child_Vaccination_Followup/pcv1" - }, { - "name" : "pcv1_dose_today", - "bind" : "/model/instance/Child_Vaccination_Followup/pcv1_dose_today" - }, { - "name" : "opv1", - "bind" : "/model/instance/Child_Vaccination_Followup/opv1" - }, { - "name" : "opv1_dose_today", - "bind" : "/model/instance/Child_Vaccination_Followup/opv1_dose_today" - }, { - "name" : "penta1", - "bind" : "/model/instance/Child_Vaccination_Followup/penta1" - }, { - "name" : "penta1_dose_today", - "bind" : "/model/instance/Child_Vaccination_Followup/penta1_dose_today" - }, { - "name" : "pcv2", - "bind" : "/model/instance/Child_Vaccination_Followup/pcv2" - }, { - "name" : "pcv2_dose_today", - "bind" : "/model/instance/Child_Vaccination_Followup/pcv2_dose_today" - }, { - "name" : "opv2", - "bind" : "/model/instance/Child_Vaccination_Followup/opv2" - }, { - "name" : "opv2_dose_today", - "bind" : "/model/instance/Child_Vaccination_Followup/opv2_dose_today" - }, { - "name" : "penta2", - "bind" : "/model/instance/Child_Vaccination_Followup/penta2" - }, { - "name" : "penta2_dose_today", - "bind" : "/model/instance/Child_Vaccination_Followup/penta2_dose_today" - }, { - "name" : "pcv3", - "bind" : "/model/instance/Child_Vaccination_Followup/pcv3" - }, { - "name" : "pcv3_dose_today", - "bind" : "/model/instance/Child_Vaccination_Followup/pcv3_dose_today" - }, { - "name" : "opv3", - "bind" : "/model/instance/Child_Vaccination_Followup/opv3" - }, { - "name" : "opv3_dose_today", - "bind" : "/model/instance/Child_Vaccination_Followup/opv3_dose_today" - }, { - "name" : "penta3", - "bind" : "/model/instance/Child_Vaccination_Followup/penta3" - }, { - "name" : "penta3_dose_today", - "bind" : "/model/instance/Child_Vaccination_Followup/penta3_dose_today" - }, { - "name" : "ipv", - "bind" : "/model/instance/Child_Vaccination_Followup/ipv" - }, { - "name" : "measles1", - "bind" : "/model/instance/Child_Vaccination_Followup/measles1" - }, { - "name" : "measles1_dose_today", - "bind" : "/model/instance/Child_Vaccination_Followup/measles1_dose_today" - }, { - "name" : "measles2", - "bind" : "/model/instance/Child_Vaccination_Followup/measles2" - }, { - "name" : "measles2_dose_today", - "bind" : "/model/instance/Child_Vaccination_Followup/measles2_dose_today" - }, { - "name" : "instanceID", - "bind" : "/model/instance/Child_Vaccination_Followup/meta/instanceID" - } ] - } -} \ No newline at end of file diff --git a/opensrp-connector/src/test/resources/form/child_followup/model.xml b/opensrp-connector/src/test/resources/form/child_followup/model.xml deleted file mode 100644 index b8d42cd6ba..0000000000 --- a/opensrp-connector/src/test/resources/form/child_followup/model.xml +++ /dev/null @@ -1,1685 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - ${provider_province} - ${provider_city} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ${today} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - static_instance-provinces-0 - kpk - - - static_instance-provinces-1 - sindh - - - static_instance-provinces-2 - balochistan - - - static_instance-provinces-3 - punjab - - - static_instance-provinces-4 - gilgit_baltistan - - - static_instance-provinces-5 - kashmir - - - static_instance-provinces-6 - fata - - - static_instance-provinces-7 - out_of_country - - - - - - - static_instance-ucs-0 - sindh - karachi - korangi - bilal_colony - - - static_instance-ucs-1 - sindh - karachi - korangi - nasir_colony - - - static_instance-ucs-2 - sindh - karachi - korangi - chakra_goth - - - static_instance-ucs-3 - sindh - karachi - korangi - mustafa_taj_colony - - - static_instance-ucs-4 - sindh - karachi - korangi - hundred_quarters - - - static_instance-ucs-5 - sindh - karachi - korangi - gulzar_colony - - - static_instance-ucs-6 - sindh - karachi - korangi - korangi_sector_33 - - - static_instance-ucs-7 - sindh - karachi - korangi - zaman_town - - - static_instance-ucs-8 - sindh - karachi - korangi - hasrat_mohani_colony - - - static_instance-ucs-9 - sindh - karachi - baldia - gulshan_e_ghazi - - - static_instance-ucs-10 - sindh - karachi - baldia - ittehad_town - - - static_instance-ucs-11 - sindh - karachi - baldia - islam_nagar - - - static_instance-ucs-12 - sindh - karachi - baldia - nai_abadi - - - static_instance-ucs-13 - sindh - karachi - baldia - saeedabad - - - static_instance-ucs-14 - sindh - karachi - baldia - muslim_mujahid_colony - - - static_instance-ucs-15 - sindh - karachi - baldia - muhajir_camp - - - static_instance-ucs-16 - sindh - karachi - baldia - rasheedabad - - - static_instance-ucs-17 - sindh - karachi - bin_qasim - ibrahim_hyderi - - - static_instance-ucs-18 - sindh - karachi - bin_qasim - rehri - - - static_instance-ucs-19 - sindh - karachi - bin_qasim - cattle_colony - - - static_instance-ucs-20 - sindh - karachi - bin_qasim - qaidabad - - - static_instance-ucs-21 - sindh - karachi - bin_qasim - landhi_colony - - - static_instance-ucs-22 - sindh - karachi - bin_qasim - gulshan_e_hadeed - - - static_instance-ucs-23 - sindh - karachi - bin_qasim - gaghar - - - static_instance-ucs-24 - sindh - karachi - gadap - murad_memon_goth - - - static_instance-ucs-25 - sindh - karachi - gadap - darsano_chana - - - static_instance-ucs-26 - sindh - karachi - gadap - gujro - - - static_instance-ucs-27 - sindh - karachi - gadap - songal - - - static_instance-ucs-28 - sindh - karachi - gadap - maymarabad - - - static_instance-ucs-29 - sindh - karachi - gadap - yousuf_goth - - - static_instance-ucs-30 - sindh - karachi - gadap - manghopir - - - static_instance-ucs-31 - sindh - karachi - gulberg - azizabad - - - static_instance-ucs-32 - sindh - karachi - gulberg - karimabad - - - static_instance-ucs-33 - sindh - karachi - gulberg - aisha_manzil - - - static_instance-ucs-34 - sindh - karachi - gulberg - ancholi - - - static_instance-ucs-35 - sindh - karachi - gulberg - naseerabad - - - static_instance-ucs-36 - sindh - karachi - gulberg - yaseenabad - - - static_instance-ucs-37 - sindh - karachi - gulberg - water_pump - - - static_instance-ucs-38 - sindh - karachi - gulberg - shafiq_mill_colony - - - static_instance-ucs-39 - sindh - karachi - gulshan - delhi_mercantile_society - - - static_instance-ucs-40 - sindh - karachi - gulshan - civic_centre - - - static_instance-ucs-41 - sindh - karachi - gulshan - pir_ilahi_buksh_colony - - - static_instance-ucs-42 - sindh - karachi - gulshan - essa_nagri - - - static_instance-ucs-43 - sindh - karachi - gulshan - gulshan_e_iqbal - - - static_instance-ucs-44 - sindh - karachi - gulshan - gillani_railway_station - - - static_instance-ucs-45 - sindh - karachi - gulshan - shanti_nagar - - - static_instance-ucs-46 - sindh - karachi - gulshan - jamali_colony - - - static_instance-ucs-47 - sindh - karachi - gulshan - gulshan_e_iqbal_ii - - - static_instance-ucs-48 - sindh - karachi - gulshan - pehlwan_goth - - - static_instance-ucs-49 - sindh - karachi - gulshan - matrovil_colony - - - static_instance-ucs-50 - sindh - karachi - gulshan - gulzar_e_hijri - - - static_instance-ucs-51 - sindh - karachi - gulshan - safooran_goth - - - static_instance-ucs-52 - sindh - karachi - jamshed - akhtar_colony - - - static_instance-ucs-53 - sindh - karachi - jamshed - manzoor_colony - - - static_instance-ucs-54 - sindh - karachi - jamshed - azam_basti - - - static_instance-ucs-55 - sindh - karachi - jamshed - chanesar_goth - - - static_instance-ucs-56 - sindh - karachi - jamshed - mahmudabad - - - static_instance-ucs-57 - sindh - karachi - jamshed - pechs - - - static_instance-ucs-58 - sindh - karachi - jamshed - pechs_ii - - - static_instance-ucs-59 - sindh - karachi - jamshed - jut_line - - - static_instance-ucs-60 - sindh - karachi - jamshed - central_jacob_lines - - - static_instance-ucs-61 - sindh - karachi - jamshed - jamshed_quarters - - - static_instance-ucs-62 - sindh - karachi - jamshed - garden_east - - - static_instance-ucs-63 - sindh - karachi - jamshed - soldier_bazar - - - static_instance-ucs-64 - sindh - karachi - jamshed - pakistan_quarters - - - static_instance-ucs-65 - sindh - karachi - kiamari - bhutta_village - - - static_instance-ucs-66 - sindh - karachi - kiamari - sultanabad - - - static_instance-ucs-67 - sindh - karachi - kiamari - kiamari_uc - - - static_instance-ucs-68 - sindh - karachi - kiamari - baba_bhit - - - static_instance-ucs-69 - sindh - karachi - kiamari - machar_colony - - - static_instance-ucs-70 - sindh - karachi - kiamari - maripur - - - static_instance-ucs-71 - sindh - karachi - kiamari - shershah - - - static_instance-ucs-72 - sindh - karachi - kiamari - gabo_pat - - - static_instance-ucs-73 - sindh - karachi - landhi - muzafarabad - - - static_instance-ucs-74 - sindh - karachi - landhi - muslimabad - - - static_instance-ucs-75 - sindh - karachi - landhi - dawood_chowrangi - - - static_instance-ucs-76 - sindh - karachi - landhi - moinabad - - - static_instance-ucs-77 - sindh - karachi - landhi - sharafi_goth - - - static_instance-ucs-78 - sindh - karachi - landhi - bhutto_nagar - - - static_instance-ucs-79 - sindh - karachi - landhi - khawaja_ajmeer_colony - - - static_instance-ucs-80 - sindh - karachi - landhi - landhi_uc - - - static_instance-ucs-81 - sindh - karachi - landhi - awami_colony - - - static_instance-ucs-82 - sindh - karachi - landhi - burmee_colony - - - static_instance-ucs-83 - sindh - karachi - landhi - korangi_uc - - - static_instance-ucs-84 - sindh - karachi - landhi - sherabad - - - static_instance-ucs-85 - sindh - karachi - liaquatabad - rizvia_society - - - static_instance-ucs-86 - sindh - karachi - liaquatabad - firdous_colony - - - static_instance-ucs-87 - sindh - karachi - liaquatabad - super_market - - - static_instance-ucs-88 - sindh - karachi - liaquatabad - dak_khana - - - static_instance-ucs-89 - sindh - karachi - liaquatabad - qasimabad - - - static_instance-ucs-90 - sindh - karachi - liaquatabad - bandhani_colony - - - static_instance-ucs-91 - sindh - karachi - liaquatabad - sharifabad - - - static_instance-ucs-92 - sindh - karachi - liaquatabad - commercial_area - - - static_instance-ucs-93 - sindh - karachi - liaquatabad - mujahid_colony - - - static_instance-ucs-94 - sindh - karachi - liaquatabad - nazimabad - - - static_instance-ucs-95 - sindh - karachi - liaquatabad - abbasi_shaheed - - - static_instance-ucs-96 - sindh - karachi - lyari - agra_taj_colony - - - static_instance-ucs-97 - sindh - karachi - lyari - daryaabad - - - static_instance-ucs-98 - sindh - karachi - lyari - nawabad - - - static_instance-ucs-99 - sindh - karachi - lyari - khada_memon_society - - - static_instance-ucs-100 - sindh - karachi - lyari - baghdadi - - - static_instance-ucs-101 - sindh - karachi - lyari - shah_baig_line - - - static_instance-ucs-102 - sindh - karachi - lyari - bihar_colony - - - static_instance-ucs-103 - sindh - karachi - lyari - ragiwara - - - static_instance-ucs-104 - sindh - karachi - lyari - singo_line - - - static_instance-ucs-105 - sindh - karachi - lyari - chakiwara - - - static_instance-ucs-106 - sindh - karachi - lyari - allama_iqbal_colony - - - static_instance-ucs-107 - sindh - karachi - malir - model_colony - - - static_instance-ucs-108 - sindh - karachi - malir - kala_board - - - static_instance-ucs-109 - sindh - karachi - malir - saudabad - - - static_instance-ucs-110 - sindh - karachi - malir - khokhra_par - - - static_instance-ucs-111 - sindh - karachi - malir - jafar_e_tayyar - - - static_instance-ucs-112 - sindh - karachi - malir - gharibabad - - - static_instance-ucs-113 - sindh - karachi - malir - ghazi_brohi_goth - - - static_instance-ucs-114 - sindh - karachi - new_karachi - kalyana - - - static_instance-ucs-115 - sindh - karachi - new_karachi - sir_syed_colony - - - static_instance-ucs-116 - sindh - karachi - new_karachi - fatima_jinnah_colony - - - static_instance-ucs-117 - sindh - karachi - new_karachi - godhra - - - static_instance-ucs-118 - sindh - karachi - new_karachi - abu_zar_ghaffari - - - static_instance-ucs-119 - sindh - karachi - new_karachi - hakim_ahsan - - - static_instance-ucs-120 - sindh - karachi - new_karachi - madina_colony - - - static_instance-ucs-121 - sindh - karachi - new_karachi - faisal_colony - - - static_instance-ucs-122 - sindh - karachi - new_karachi - khamiso_goth - - - static_instance-ucs-123 - sindh - karachi - new_karachi - mustufa_colony - - - static_instance-ucs-124 - sindh - karachi - new_karachi - khawaja_ajmeer_nagri - - - static_instance-ucs-125 - sindh - karachi - new_karachi - gulshan_e_saeed - - - static_instance-ucs-126 - sindh - karachi - new_karachi - shah_nawaz_bhutto_colony - - - static_instance-ucs-127 - sindh - karachi - north_nazimabad - paposh_nagar - - - static_instance-ucs-128 - sindh - karachi - north_nazimabad - pahar_ganj - - - static_instance-ucs-129 - sindh - karachi - north_nazimabad - khandu_goth - - - static_instance-ucs-130 - sindh - karachi - north_nazimabad - hyderi - - - static_instance-ucs-131 - sindh - karachi - north_nazimabad - sakhi_hassan - - - static_instance-ucs-132 - sindh - karachi - north_nazimabad - farooq_e_azam - - - static_instance-ucs-133 - sindh - karachi - north_nazimabad - nusrat_bhutto_colony - - - static_instance-ucs-134 - sindh - karachi - north_nazimabad - shadman_town - - - static_instance-ucs-135 - sindh - karachi - north_nazimabad - buffer_zone - - - static_instance-ucs-136 - sindh - karachi - north_nazimabad - buffer_zone_ii - - - static_instance-ucs-137 - sindh - karachi - orangi - mominabad - - - static_instance-ucs-138 - sindh - karachi - orangi - haryana_colony - - - static_instance-ucs-139 - sindh - karachi - orangi - hanifabad - - - static_instance-ucs-140 - sindh - karachi - orangi - mohammad_nagar - - - static_instance-ucs-141 - sindh - karachi - orangi - madina_colony_orangi - - - static_instance-ucs-142 - sindh - karachi - orangi - ghaziabad - - - static_instance-ucs-143 - sindh - karachi - orangi - chisti_nagar - - - static_instance-ucs-144 - sindh - karachi - orangi - bilal_colony_orangi - - - static_instance-ucs-145 - sindh - karachi - orangi - iqbal_baloch_colony - - - static_instance-ucs-146 - sindh - karachi - orangi - ghabool_town - - - static_instance-ucs-147 - sindh - karachi - orangi - data_nagar - - - static_instance-ucs-148 - sindh - karachi - orangi - mujahidabad - - - static_instance-ucs-149 - sindh - karachi - orangi - baloch_goth - - - static_instance-ucs-150 - sindh - karachi - saddar - old_haji_camp - - - static_instance-ucs-151 - sindh - karachi - saddar - garden - - - static_instance-ucs-152 - sindh - karachi - saddar - kharadar - - - static_instance-ucs-153 - sindh - karachi - saddar - city_railway_colony - - - static_instance-ucs-154 - sindh - karachi - saddar - nanak_wara - - - static_instance-ucs-155 - sindh - karachi - saddar - gazdarabad - - - static_instance-ucs-156 - sindh - karachi - saddar - millat_nagar_islam_pura - - - static_instance-ucs-157 - sindh - karachi - saddar - saddar_uc - - - static_instance-ucs-158 - sindh - karachi - saddar - civil_line - - - static_instance-ucs-159 - sindh - karachi - saddar - clifton - - - static_instance-ucs-160 - sindh - karachi - saddar - kehkashan - - - static_instance-ucs-161 - sindh - karachi - shah_faisal - natha_khan_goth - - - static_instance-ucs-162 - sindh - karachi - shah_faisal - pak_sadat_colony - - - static_instance-ucs-163 - sindh - karachi - shah_faisal - drigh_colony - - - static_instance-ucs-164 - sindh - karachi - shah_faisal - raita_plot - - - static_instance-ucs-165 - sindh - karachi - shah_faisal - moria_khan_goth - - - static_instance-ucs-166 - sindh - karachi - shah_faisal - rafa_e_aam_society - - - static_instance-ucs-167 - sindh - karachi - shah_faisal - al_falah_society - - - static_instance-ucs-168 - sindh - karachi - site - pak_colony - - - static_instance-ucs-169 - sindh - karachi - site - old_golimar - - - static_instance-ucs-170 - sindh - karachi - site - jahanabad - - - static_instance-ucs-171 - sindh - karachi - site - metrovil - - - static_instance-ucs-172 - sindh - karachi - site - bhawani_chali - - - static_instance-ucs-173 - sindh - karachi - site - frontier_colony - - - static_instance-ucs-174 - sindh - karachi - site - banaras_colony - - - static_instance-ucs-175 - sindh - karachi - site - qasba_colony - - - static_instance-ucs-176 - sindh - karachi - site - islamia_colony - - - static_instance-ucs-177 - na - na - na - other - - - static_instance-ucs-178 - na - na - na - not_applicable - - - - - - - static_instance-gender-0 - male - - - static_instance-gender-1 - female - - - static_instance-gender-2 - transgender - - - - - - - static_instance-vaccines-0 - bcg - - - static_instance-vaccines-1 - opv0 - - - static_instance-vaccines-2 - pcv1 - - - static_instance-vaccines-3 - opv1 - - - static_instance-vaccines-4 - penta1 - - - static_instance-vaccines-5 - pcv2 - - - static_instance-vaccines-6 - opv2 - - - static_instance-vaccines-7 - penta2 - - - static_instance-vaccines-8 - pcv3 - - - static_instance-vaccines-9 - opv3 - - - static_instance-vaccines-10 - penta3 - - - static_instance-vaccines-11 - ipv - - - static_instance-vaccines-12 - measles1 - - - static_instance-vaccines-13 - measles2 - - - - - - - static_instance-towns-0 - sindh - karachi - korangi - - - static_instance-towns-1 - sindh - karachi - landhi - - - static_instance-towns-2 - sindh - karachi - baldia - - - static_instance-towns-3 - sindh - karachi - bin_qasim - - - static_instance-towns-4 - sindh - karachi - gadap - - - static_instance-towns-5 - sindh - karachi - gulberg - - - static_instance-towns-6 - sindh - karachi - gulshan - - - static_instance-towns-7 - sindh - karachi - jamshed - - - static_instance-towns-8 - sindh - karachi - kiamari - - - static_instance-towns-9 - sindh - karachi - liaquatabad - - - static_instance-towns-10 - sindh - karachi - lyari - - - static_instance-towns-11 - sindh - karachi - malir - - - static_instance-towns-12 - sindh - karachi - new_karachi - - - static_instance-towns-13 - sindh - karachi - north_nazimabad - - - static_instance-towns-14 - sindh - karachi - orangi - - - static_instance-towns-15 - sindh - karachi - saddar - - - static_instance-towns-16 - sindh - karachi - shah_faisal - - - static_instance-towns-17 - sindh - karachi - site - - - static_instance-towns-18 - na - na - other - - - static_instance-towns-19 - na - na - not_applicable - - - - - - - static_instance-cities-0 - sindh - karachi - - - static_instance-cities-1 - punjab - hafizabad - - - static_instance-cities-2 - punjab - muzaffargarh - - - static_instance-cities-3 - na - other - - - static_instance-cities-4 - na - not_applicable - - - - - - - static_instance-yes_no-0 - yes - - - static_instance-yes_no-1 - no - - - - diff --git a/opensrp-connector/src/test/resources/form/new_household_registration/form.json b/opensrp-connector/src/test/resources/form/new_household_registration/form.json deleted file mode 100644 index 0288ac30df..0000000000 --- a/opensrp-connector/src/test/resources/form/new_household_registration/form.json +++ /dev/null @@ -1,655 +0,0 @@ -{ - "default_language": "Bengali", - "id_string": "FWNewHH_1", - "children": [ - { - "name": "existing_location", - "instance": { - "openmrs_entity_id": "location_id", - "openmrs_entity": "encounter" - }, - "type": "hidden" - }, - { - "name": "today", - "instance": { - "openmrs_entity_id": "encounter_date", - "openmrs_entity": "encounter" - }, - "type": "today" - }, - { - "name": "start", - "instance": { - "openmrs_entity_id": "encounter_start", - "openmrs_entity": "encounter" - }, - "type": "start" - }, - { - "name": "end", - "instance": { - "openmrs_entity_id": "encounter_end", - "openmrs_entity": "encounter" - }, - "type": "end" - }, - { - "name": "FWNHREGDATE", - "hint": { - "Bengali": "আজকের তারিখ দিন", - "English": "Confirm Today’s date is correct" - }, - "bind": { - "jr:constraintMsg": { - "Bengali": "তারিখ আজকের তারিখের চেয়ে বেশী হতে পারবেনা", - "English": "Date cannot be greater than current date." - }, - "required": "yes", - "constraint": ".<=${today}" - }, - "label": { - "Bengali": "তথ্য সংগ্রহের তারিখ", - "English": "Date of Interview" - }, - "instance": { - "openmrs_entity_id": "160753AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "date" - }, - { - "control": { - "appearance": "numbers" - }, - "name": "FWGOBHHID", - "hint": { - "Bengali": "অনুগ্রহ করে খানার দরজাতে লেখা কালো রঙের JiVitA/Study household ID (HHID) টি টাইপ করুন", - "English": "Please input the Black – painted Government household ID (HHID) as displayed on the door/wall of the HH." - }, - "bind": { - "jr:constraintMsg": { - "Bengali": "অনুগ্রহ করে ০০০১ থেকে ৯৯৯৯ এর মধ্যে ৪ ডিজিটের GoB HHID টাইপ করুন", - "English": "Please enter 4 digits of GoB HHID from 0001 to 9999" - }, - "required": "yes", - "constraint": "regex(., '^(?!0{4})[0-9]{4}$')" - }, - "label": { - "Bengali": "GoB HHID", - "English": "GoB HHID" - }, - "instance": { - "openmrs_entity_id": "GOB HHID", - "openmrs_entity": "person_identifier" - }, - "type": "text" - }, - { - "control": { - "appearance": "numbers" - }, - "name": "FWJIVHHID", - "hint": { - "Bengali": "অনুগ্রহ করে খানার দরজাতে লেখা লাল রঙের JiVitA/Study household ID (HHID) টি টাইপ করুন", - "English": "Please input the RED – painted JiVitA / Study household ID (HHID) as displayed on the door/wall of the HH." - }, - "bind": { - "jr:constraintMsg": { - "Bengali": "অনুগ্রহ করে ০০০১ থেকে ৯৯৯৯ এর মধ্যে ৪ ডিজিটের JiVitA HHID টাইপ করুন", - "English": "Please enter 4 digits of JiVitA HHID from 0001 to 9999" - }, - "required": "yes", - "constraint": "regex(., '^(?!0{4})[0-9]{4}$')" - }, - "label": { - "Bengali": "JiVitA HHID", - "English": "JiVitA HHID" - }, - "instance": { - "openmrs_entity_id": "JiVitA HHID", - "openmrs_entity": "person_identifier" - }, - "type": "text" - }, - { - "name": "FWNHNEARTO", - "label": { - "Bengali": "নিকটবর্তী স্থান", - "English": "Near to" - }, - "instance": { - "openmrs_entity_parent": "usual_residence", - "openmrs_entity_id": "landmark", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "FWNHHHGPS", - "bind": { - "required": "yes" - }, - "label": { - "Bengali": "জি পি এস", - "English": "Collect GPS Location of HH" - }, - "instance": { - "openmrs_entity_parent": "usual_residence", - "openmrs_entity_id": "geopoint", - "openmrs_entity": "person_address" - }, - "type": "geopoint" - }, - { - "name": "FWHOHFNAME", - "bind": { - "required": "yes" - }, - "label": { - "Bengali": "খানা প্রধানের নাম-", - "English": "Head of Household Name" - }, - "instance": { - "openmrs_entity_id": "first_name", - "openmrs_entity": "person" - }, - "type": "text" - }, - { - "name": "FWHOHLNAME", - "bind": { - "calculate": "\".\"" - }, - "instance": { - "openmrs_entity_id": "last_name", - "openmrs_entity": "person" - }, - "type": "calculate" - }, - { - "name": "FWHOHBIRTHDATE", - "bind": { - "calculate": "\"1900-01-01\"" - }, - "instance": { - "openmrs_entity_id": "birthdate", - "openmrs_entity": "person" - }, - "type": "calculate" - }, - { - "name": "FWHOHGENDER", - "bind": { - "calculate": "\"male\"" - }, - "instance": { - "openmrs_entity_id": "gender", - "openmrs_entity": "person" - }, - "type": "calculate" - }, - { - "name": "FWNHHMBRNUM", - "label": { - "Bengali": "খানা সদস্যের সংখ্যা কত?", - "English": "How many people are currently living in this household?" - }, - "instance": { - "openmrs_entity_id": "5611AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "integer" - }, - { - "children": [ - { - "name": "0", - "label": { - "Bengali": "না", - "English": "No" - }, - "instance": { - "openmrs_code": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - } - }, - { - "name": "1", - "label": { - "Bengali": "হ্যাঁ", - "English": "Yes" - }, - "instance": { - "openmrs_code": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - } - }, - { - "name": "9", - "label": { - "Bengali": "জানিনা", - "English": "Don't know" - }, - "instance": { - "openmrs_code": "1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - } - } - ], - "name": "FWNHHMWRA", - "label": { - "Bengali": "এই খানায় কি প্রজনন বয়সী বিবাহিত মহিলা আছেন?", - "English": "Are there any MWRAs in this Household?" - }, - "type": "select one" - }, - { - "children": [ - { - "name": "FWWOMFNAME", - "hint": { - "Bengali": "অনুগ্রহ করে মহিলার নাম টাইপ করুন", - "English": "Please type woman's name" - }, - "bind": { - "required": "yes" - }, - "label": { - "Bengali": "মহিলার নাম-", - "English": "Woman Name" - }, - "instance": { - "openmrs_entity_id": "first_name", - "openmrs_entity": "person" - }, - "type": "text" - }, - { - "name": "FWWOMLNAME", - "bind": { - "calculate": "\".\"" - }, - "instance": { - "openmrs_entity_id": "last_name", - "openmrs_entity": "person" - }, - "type": "calculate" - }, - { - "control": { - "appearance": "numbers" - }, - "name": "FWWOMNID", - "hint": { - "Bengali": "অনুগ্রহ করে জাতীয় পরিচয়পত্র কার্ড দেখে সরকার প্রদত্ত আইডি টাইপ করুন", - "English": "Please input the Government ID as displayed on the national ID card" - }, - "bind": { - "jr:constraintMsg": { - "Bengali": "জাতীয় পরিচয়পত্র নং ১৩ অথবা ১৭ ডিজিটের হবে", - "English": "National ID should be 13 or 17 digits" - }, - "constraint": "regex(., '^(?!0{13})[0-9]{13}$') or regex(., '^(?!0{17})[0-9]{17}$')" - }, - "label": { - "Bengali": "মহিলার জাতীয় পরিচয়পত্র নং-", - "English": "Woman's National ID Number" - }, - "instance": { - "openmrs_entity_id": "NID", - "openmrs_entity": "person_identifier" - }, - "type": "text" - }, - { - "control": { - "appearance": "numbers" - }, - "name": "FWWOMBID", - "hint": { - "Bengali": "অনুগ্রহ করে জন্ম নিবন্ধন সনদ দেখে সরকার প্রদত্ত আইডি টাইপ করুন", - "English": "Please input the Government ID as displayed on the birth certificate" - }, - "bind": { - "jr:constraintMsg": { - "Bengali": "জন্ম নিবন্ধন সনদ নং ১৭ ডিজিটের হবে", - "English": "Birth Registration ID should be 17 digits" - }, - "required": "yes", - "constraint": "regex(., '^(?!0{17})[0-9]{17}$')" - }, - "label": { - "Bengali": "মহিলার জন্ম নিবন্ধন সনদ নং-", - "English": "Woman's Birth Registration ID" - }, - "instance": { - "openmrs_entity_id": "Birth Registration ID", - "openmrs_entity": "person_identifier" - }, - "type": "text" - }, - { - "name": "FWHUSNAME", - "hint": { - "Bengali": "অনুগ্রহ করে স্বামীর নাম টাইপ করুন", - "English": "Please type husband's name" - }, - "bind": { - "required": "yes" - }, - "label": { - "Bengali": "স্বামীর নাম-", - "English": "Husband Name" - }, - "instance": { - "openmrs_entity_id": "161135AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "text" - }, - { - "name": "FWBIRTHDATE", - "hint": { - "Bengali": "মহিলার জন্ম নিবন্ধন পত্র থাকলে সেখান থেকে জন্ম তারিখটি লিখে নিন। যদি জন্ম তারিখ জানা না থাকে তবে তারিখ ১৫ সিলেক্ট করুন, যদি মাস জানা না থাকে তবে মাস ৬ (জুন) সিলেক্ট করুন", - "English": "If birth certificate is available, take date of birth from the birth certificate. \nIf date of birth is unknown, choose 15th as the date of birth. If month is unknown, choose month 06 (June) as month of birth." - }, - "bind": { - "jr:constraintMsg": { - "Bengali": "মহিলার বয়স অবশ্যই ১৩ বছরের বেশী হবে", - "English": "Woman must be older than 13 years of age" - }, - "required": "yes", - "constraint": "((${FWBIRTHDATE})+4745) <= today()" - }, - "label": { - "Bengali": "মহিলার জন্ম তারিখ", - "English": "Woman's Date of Birth" - }, - "instance": { - "openmrs_entity_id": "birthdate", - "openmrs_entity": "person" - }, - "type": "date" - }, - { - "name": "FWGENDER", - "bind": { - "calculate": "\"female\"" - }, - "instance": { - "openmrs_entity_id": "gender", - "openmrs_entity": "person" - }, - "type": "calculate" - }, - { - "name": "FWWOMAGE", - "bind": { - "calculate": "round(((${today} - ${FWBIRTHDATE}) div 365.25),0)" - }, - "type": "calculate" - }, - { - "name": "display_age", - "label": { - "Bengali": "মহিলার বয়স ${FWWOMAGE}", - "English": "The woman's age is ${FWWOMAGE}." - }, - "type": "note" - }, - { - "children": [ - { - "name": "0", - "label": { - "Bengali": "না", - "English": "No" - }, - "instance": { - "openmrs_code": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - } - }, - { - "name": "1", - "label": { - "Bengali": "হ্যাঁ", - "English": "Yes" - }, - "instance": { - "openmrs_code": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - } - }, - { - "name": "9", - "label": { - "Bengali": "জানিনা", - "English": "Don't know" - }, - "instance": { - "openmrs_code": "1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - } - } - ], - "name": "FWNHWOMSTRMEN", - "bind": { - "required": "yes" - }, - "label": { - "Bengali": "আপনার কি মাসিক একেবারে উঠে গেছে/আপনি কি স্থায়ী জন্মনিয়ন্ত্রন পদ্ধতি গ্রহণ করেছেন?", - "English": "Are you currently menopausal or sterilized?" - }, - "type": "select one" - }, - { - "children": [ - { - "name": "0", - "label": { - "Bengali": "মারা গেছেন", - "English": "Deceased" - }, - "instance": { - "openmrs_code": "159AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - } - }, - { - "name": "1", - "label": { - "Bengali": "বেঁচে আছেন", - "English": "Alive" - }, - "instance": { - "openmrs_code": "160429AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - } - }, - { - "name": "9", - "label": { - "Bengali": "জানিনা", - "English": "Don't know" - }, - "instance": { - "openmrs_code": "1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - } - } - ], - "name": "FWNHWOMHUSALV", - "bind": { - "relevant": "${FWNHWOMSTRMEN}='0'", - "required": "yes" - }, - "label": { - "Bengali": "আপনার স্বামী কি বেঁচে আছেন?", - "English": "Is the husband alive?" - }, - "instance": { - "openmrs_entity_id": "5561AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "select one" - }, - { - "children": [ - { - "name": "0", - "label": { - "Bengali": "না", - "English": "No" - }, - "instance": { - "openmrs_code": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - } - }, - { - "name": "1", - "label": { - "Bengali": "হ্যাঁ", - "English": "Yes" - }, - "instance": { - "openmrs_code": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - } - }, - { - "name": "9", - "label": { - "Bengali": "জানিনা", - "English": "Don't know" - }, - "instance": { - "openmrs_code": "1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - } - } - ], - "name": "FWNHWOMHUSLIV", - "bind": { - "relevant": "${FWNHWOMSTRMEN}='0' and ${FWNHWOMHUSALV}='1'", - "required": "yes" - }, - "label": { - "Bengali": "আপনি কি বর্তমানে আপনার স্বামীর সাথে বসবাস করছেন?", - "English": "Are you currently living with your husband?" - }, - "instance": { - "openmrs_entity_id": "1060AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "select one" - }, - { - "children": [ - { - "name": "0", - "label": { - "Bengali": "না", - "English": "No" - }, - "instance": { - "openmrs_code": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - } - }, - { - "name": "1", - "label": { - "Bengali": "হ্যাঁ", - "English": "Yes" - }, - "instance": { - "openmrs_code": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - } - }, - { - "name": "9", - "label": { - "Bengali": "জানিনা", - "English": "Don't know" - }, - "instance": { - "openmrs_code": "1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - } - } - ], - "name": "FWNHWOMHUSSTR", - "bind": { - "relevant": "${FWNHWOMSTRMEN}='0' and ${FWNHWOMHUSLIV}='1'", - "required": "yes" - }, - "label": { - "Bengali": "আপনার স্বামী কি স্থায়ী জন্মনিয়ন্ত্রন পদ্ধতি গ্রহণ করেছেন?", - "English": "Is the husband sterilized?" - }, - "type": "select one" - }, - { - "name": "FWELIGIBLE", - "bind": { - "calculate": "if(${FWNHWOMSTRMEN}='0' and ${FWNHWOMHUSLIV}='1' and ${FWNHWOMHUSSTR}='0',1,0)" - }, - "type": "calculate" - }, - { - "name": "add_women", - "label": { - "Bengali": "এই খানায় যদি আরও কোন মহিলা থাকে যাকে রেজিস্ট্রেশন করা হয়নি, তাহলে '+' অপশনটি বাছুন এবং একই প্রক্রিয়ায় পরবর্তী মহিলাকে রেজিস্ট্রেশন করুন", - "English": "If there are any additional unregistered women in this household, select the '+' to add them now." - }, - "type": "note" - } - ], - "name": "woman", - "hint": { - "Bengali": "আমরা এখন মহিলাটির রেজিস্ট্রেশন প্রক্রিয়া শুরু করতে যাচ্ছি। অনুগ্রহ করে মহিলাটিরে তার জন্ম নিবন্ধন স ও জাতীয় পরিচয়পত্র নিয়ে আসতে বলুন।", - "English": "We will now register the woman. Please ask her to bring her National ID Card and Birth Certificate." - }, - "bind": { - "relevant": "${FWNHHMWRA}='1'" - }, - "label": { - "Bengali": "মহিলা তথ্যঃ", - "English": "New Woman Registration" - }, - "instance": { - "openmrs_entity_id": "Census and New Woman Registration", - "openmrs_entity": "person" - }, - "type": "repeat" - }, - { - "name": "join_names", - "bind": { - "calculate": "join(' ', ${FWWOMFNAME})" - }, - "type": "calculate" - }, - { - "name": "MWRA", - "bind": { - "calculate": "if(${join_names} = '', 0, count(${woman}))" - }, - "type": "calculate" - }, - { - "control": { - "bodyless": true - }, - "children": [ - { - "name": "instanceID", - "bind": { - "readonly": "true()", - "calculate": "concat('uuid:', uuid())" - }, - "type": "calculate" - } - ], - "name": "meta", - "type": "group" - } - ], - "instance": { - "encounter_type": "New Household Registration" - }, - "version": "201505070930", - "type": "survey", - "name": "FWNewHH", - "sms_keyword": "FWNewHH", - "title": "FW new HH Reg" -} \ No newline at end of file diff --git a/opensrp-connector/src/test/resources/form/new_household_registration/form.xml b/opensrp-connector/src/test/resources/form/new_household_registration/form.xml deleted file mode 100644 index 85089deaa5..0000000000 --- a/opensrp-connector/src/test/resources/form/new_household_registration/form.xml +++ /dev/null @@ -1,26 +0,0 @@ - -
-

নতুন খানা রেজিস্ট্রেশন ফর্ম

- - - - - - - - - -
এই খানায় কি প্রজনন বয়সী বিবাহিত মহিলা আছেন?Are there any MWRAs in this Household? -
-

মহিলা তথ্যঃNew Woman Registration

আপনার কি মাসিক একেবারে উঠে গেছে/আপনি কি স্থায়ী জন্মনিয়ন্ত্রন পদ্ধতি গ্রহণ করেছেন?Are you currently menopausal or sterilized?* -
আপনার স্বামী কি বেঁচে আছেন?Is the husband alive?* -
আপনি কি বর্তমানে আপনার স্বামীর সাথে বসবাস করছেন?Are you currently living with your husband?* -
আপনার স্বামী কি স্থায়ী জন্মনিয়ন্ত্রন পদ্ধতি গ্রহণ করেছেন?Is the husband sterilized?* -
-
-
- -
XML to HTML transformation for form took 0.03 secondsThis validation is yet not functional.
diff --git a/opensrp-connector/src/test/resources/form/new_household_registration/form_definition.json b/opensrp-connector/src/test/resources/form/new_household_registration/form_definition.json deleted file mode 100644 index f1dea2a941..0000000000 --- a/opensrp-connector/src/test/resources/form/new_household_registration/form_definition.json +++ /dev/null @@ -1,166 +0,0 @@ -{ - "form_data_definition_version": "1", - "form": { - "default_bind_path": "/model/instance/FWNewHH", - "bind_type": "household", - "fields": [ - { - "name": "id", - "shouldLoadValue": true - }, - { - "name": "existing_location", - "bind": "/model/instance/FWNewHH/existing_location" - }, - { - "name": "today", - "bind": "/model/instance/FWNewHH/today" - }, - { - "name": "start", - "bind": "/model/instance/FWNewHH/start" - }, - { - "name": "end", - "bind": "/model/instance/FWNewHH/end" - }, - { - "name": "FWNHREGDATE", - "bind": "/model/instance/FWNewHH/FWNHREGDATE" - }, - { - "name": "FWGOBHHID", - "bind": "/model/instance/FWNewHH/FWGOBHHID" - }, - { - "name": "FWJIVHHID", - "bind": "/model/instance/FWNewHH/FWJIVHHID" - }, - { - "name": "FWNHNEARTO", - "bind": "/model/instance/FWNewHH/FWNHNEARTO" - }, - { - "name": "FWNHHHGPS", - "bind": "/model/instance/FWNewHH/FWNHHHGPS" - }, - { - "name": "FWHOHFNAME", - "bind": "/model/instance/FWNewHH/FWHOHFNAME" - }, - { - "name": "FWHOHLNAME", - "bind": "/model/instance/FWNewHH/FWHOHLNAME" - }, - { - "name": "FWHOHBIRTHDATE", - "bind": "/model/instance/FWNewHH/FWHOHBIRTHDATE" - }, - { - "name": "FWHOHBIRTHDATEAPPROX", - "bind": "/model/instance/FWNewHH/FWHOHBIRTHDATEAPPROX" - }, - { - "name": "FWHOHGENDER", - "bind": "/model/instance/FWNewHH/FWHOHGENDER" - }, - { - "name": "FWNHHMBRNUM", - "bind": "/model/instance/FWNewHH/FWNHHMBRNUM" - }, - { - "name": "FWNHHMWRA", - "bind": "/model/instance/FWNewHH/FWNHHMWRA" - }, - { - "name": "join_names", - "bind": "/model/instance/FWNewHH/join_names" - }, - { - "name": "MWRA", - "bind": "/model/instance/FWNewHH/MWRA" - } - ], - "sub_forms": [ - { - "name": "elco_registration", - "bind_type": "elco", - "default_bind_path": "/model/instance/FWNewHH/woman", - "fields": [ - { - "name": "id", - "shouldLoadValue": true - }, - { - "name": "GOBHHID", - "bind": "/model/instance/FWNewHH/woman/GOBHHID" - }, - { - "name": "JiVitAHHID", - "bind": "/model/instance/FWNewHH/woman/JiVitAHHID" - }, - { - "name": "FWWOMFNAME", - "bind": "/model/instance/FWNewHH/woman/FWWOMFNAME" - }, - { - "name": "FWWOMLNAME", - "bind": "/model/instance/FWNewHH/woman/FWWOMLNAME" - }, - { - "name": "FWWOMNID", - "bind": "/model/instance/FWNewHH/woman/FWWOMNID" - }, - { - "name": "FWWOMBID", - "bind": "/model/instance/FWNewHH/woman/FWWOMBID" - }, - { - "name": "FWHUSNAME", - "bind": "/model/instance/FWNewHH/woman/FWHUSNAME" - }, - { - "name": "FWBIRTHDATE", - "bind": "/model/instance/FWNewHH/woman/FWBIRTHDATE" - }, - { - "name": "FWBIRTHDATEAPPROX", - "bind": "/model/instance/FWNewHH/woman/FWBIRTHDATEAPPROX" - }, - { - "name": "FWGENDER", - "bind": "/model/instance/FWNewHH/woman/FWGENDER" - }, - { - "name": "FWWOMAGE", - "bind": "/model/instance/FWNewHH/woman/FWWOMAGE" - }, - { - "name": "display_age", - "bind": "/model/instance/FWNewHH/woman/display_age" - }, - { - "name": "FWNHWOMSTRMEN", - "bind": "/model/instance/FWNewHH/woman/FWNHWOMSTRMEN" - }, - { - "name": "FWNHWOMHUSALV", - "bind": "/model/instance/FWNewHH/woman/FWNHWOMHUSALV" - }, - { - "name": "FWNHWOMHUSLIV", - "bind": "/model/instance/FWNewHH/woman/FWNHWOMHUSLIV" - }, - { - "name": "FWNHWOMHUSSTR", - "bind": "/model/instance/FWNewHH/woman/FWNHWOMHUSSTR" - }, - { - "name": "FWELIGIBLE", - "bind": "/model/instance/FWNewHH/woman/FWELIGIBLE" - } - ] - } - ] - } -} \ No newline at end of file diff --git a/opensrp-connector/src/test/resources/form/new_household_registration/form_submission1.json b/opensrp-connector/src/test/resources/form/new_household_registration/form_submission1.json deleted file mode 100644 index a6a2f189a5..0000000000 --- a/opensrp-connector/src/test/resources/form/new_household_registration/form_submission1.json +++ /dev/null @@ -1,228 +0,0 @@ -{ - "_id": "251ca0ef09df9af88f0e9d5f180115a3", - "_rev": "1-e73e1d93acdcdaeb1d41a738da5d9284", - "type": "FormSubmission", - "anmId": "demotest", - "instanceId": "88c0e824-10b4-44c2-9429-754b8d823776", - "formName": "new_household_registration", - "entityId": "a3f2abf4-2699-4761-819a-cea739224164", - "clientVersion": 1430997074596, - "formDataDefinitionVersion": "1", - "formInstance": { - "form_data_definition_version": "1", - "form": { - "bind_type": "household", - "default_bind_path": "/model/instance/FWNewHH", - "fields": [ - { - "name": "id", - "value": "a3f2abf4-2699-4761-819a-cea739224164", - "source": "household.id" - }, - { - "name": "existing_location", - "value": "KUPTALA", - "source": "household.existing_location" - }, - { - "name": "today", - "value": "2015-05-07", - "source": "household.today" - }, - { - "name": "start", - "value": "2015-05-07T17:07:21.000+06:00", - "source": "household.start" - }, - { - "name": "end", - "value": "2015-05-07T17:07:21.000+06:00", - "source": "household.end" - }, - { - "name": "FWNHREGDATE", - "value": "2015-05-07", - "source": "household.FWNHREGDATE" - }, - { - "name": "FWGOBHHID", - "value": "1234", - "source": "household.FWGOBHHID" - }, - { - "name": "FWJIVHHID", - "value": "1234", - "source": "household.FWJIVHHID" - }, - { - "name": "FWNHNEARTO", - "value": "nothing", - "source": "household.FWNHNEARTO" - }, - { - "name": "FWNHHHGPS", - "value": "34 34 0 0", - "source": "household.FWNHHHGPS" - }, - { - "name": "FWHOHFNAME", - "value": "test", - "source": "household.FWHOHFNAME" - }, - { - "name": "FWHOHLNAME", - "value": ".", - "source": "household.FWHOHLNAME" - }, - { - "name": "FWHOHBIRTHDATE", - "value": "1900-01-01", - "source": "household.FWHOHBIRTHDATE" - }, - { - "name": "FWHOHGENDER", - "value": "male", - "source": "household.FWHOHGENDER" - }, - { - "name": "FWNHHMBRNUM", - "value": "2", - "source": "household.FWNHHMBRNUM" - }, - { - "name": "FWNHHMWRA", - "value": "1", - "source": "household.FWNHHMWRA" - }, - { - "name": "join_names", - "value": "shumi sumaita", - "source": "household.join_names" - }, - { - "name": "MWRA", - "value": "2", - "source": "household.MWRA" - } - ], - "sub_forms": [ - { - "name": "elco_registration", - "bind_type": "elco", - "default_bind_path": "/model/instance/FWNewHH/woman", - "fields": [ - { - "name": "id", - "source": "elco.id" - }, - { - "name": "GOBHHID", - "source": "elco.GOBHHID" - }, - { - "name": "JiVitAHHID", - "source": "elco.JiVitAHHID" - }, - { - "name": "FWWOMFNAME", - "source": "elco.FWWOMFNAME" - }, - { - "name": "FWWOMLNAME", - "source": "elco.FWWOMLNAME" - }, - { - "name": "FWWOMNID", - "source": "elco.FWWOMNID" - }, - { - "name": "FWWOMBID", - "source": "elco.FWWOMBID" - }, - { - "name": "FWHUSNAME", - "source": "elco.FWHUSNAME" - }, - { - "name": "FWBIRTHDATE", - "source": "elco.FWBIRTHDATE" - }, - { - "name": "FWGENDER", - "source": "elco.FWGENDER" - }, - { - "name": "FWWOMAGE", - "source": "elco.FWWOMAGE" - }, - { - "name": "display_age", - "source": "elco.display_age" - }, - { - "name": "FWNHWOMSTRMEN", - "source": "elco.FWNHWOMSTRMEN" - }, - { - "name": "FWNHWOMHUSALV", - "source": "elco.FWNHWOMHUSALV" - }, - { - "name": "FWNHWOMHUSLIV", - "source": "elco.FWNHWOMHUSLIV" - }, - { - "name": "FWNHWOMHUSSTR", - "source": "elco.FWNHWOMHUSSTR" - }, - { - "name": "FWELIGIBLE", - "source": "elco.FWELIGIBLE" - } - ], - "instances": [ - { - "GOBHHID": "1234323", - "JiVitAHHID": "123465656", - "FWWOMFNAME": "shumi", - "FWWOMLNAME": ".", - "FWWOMNID": "", - "FWWOMBID": "54676545676787876", - "FWHUSNAME": "selim", - "FWBIRTHDATE": "1998-02-04", - "FWGENDER": "female", - "FWWOMAGE": "17", - "display_age": "", - "FWNHWOMSTRMEN": "1", - "FWNHWOMHUSALV": "", - "FWNHWOMHUSLIV": "", - "FWNHWOMHUSSTR": "", - "FWELIGIBLE": "0", - "id": "babcd9d2-b3e9-4f6d-8a06-2df8f5fbf01f" - }, - { - "GOBHHID": "1234121", - "JiVitAHHID": "12348787", - "FWWOMFNAME": "sumaita", - "FWWOMLNAME": ".", - "FWWOMNID": "", - "FWWOMBID": "56543456567654567", - "FWHUSNAME": "razzak", - "FWBIRTHDATE": "1989-08-18", - "FWGENDER": "female", - "FWWOMAGE": "26", - "display_age": "", - "FWNHWOMSTRMEN": "0", - "FWNHWOMHUSALV": "1", - "FWNHWOMHUSLIV": "1", - "FWNHWOMHUSSTR": "1", - "FWELIGIBLE": "0", - "id": "74eebb60-a1b9-4691-81a4-5c04ecce7ae9" - } - ] - } - ] - } - }, - "serverVersion": 1430998001293 -} \ No newline at end of file diff --git a/opensrp-connector/src/test/resources/form/new_household_registration/form_submission2.json b/opensrp-connector/src/test/resources/form/new_household_registration/form_submission2.json deleted file mode 100644 index 76f8e41550..0000000000 --- a/opensrp-connector/src/test/resources/form/new_household_registration/form_submission2.json +++ /dev/null @@ -1,207 +0,0 @@ -{ - "_id": "251ca0ef09df9af88f0e9d5f18000df2", - "_rev": "1-0cec42380dce0fef7b1263aad8652c3f", - "type": "FormSubmission", - "anmId": "demotest", - "instanceId": "916363c4-a10e-488d-8de4-9be7a05d43cd", - "formName": "new_household_registration", - "entityId": "0aac6d81-b51f-4096-b354-5a5786e406c8", - "clientVersion": 1430924780686, - "formDataDefinitionVersion": "1", - "formInstance": { - "form_data_definition_version": "1", - "form": { - "bind_type": "household", - "default_bind_path": "/model/instance/FWNewHH", - "fields": [ - { - "name": "id", - "value": "0aac6d81-b51f-4096-b354-5a5786e406c8", - "source": "household.id" - }, - { - "name": "existing_location", - "value": "KUPTALA", - "source": "household.existing_location" - }, - { - "name": "today", - "value": "2015-05-06", - "source": "household.today" - }, - { - "name": "start", - "value": "2015-05-06T21:05:35.000+06:00", - "source": "household.start" - }, - { - "name": "end", - "value": "2015-05-06T21:05:35.000+06:00", - "source": "household.end" - }, - { - "name": "FWNHREGDATE", - "value": "2015-05-06", - "source": "household.FWNHREGDATE" - }, - { - "name": "FWGOBHHID", - "value": "0002", - "source": "household.FWGOBHHID" - }, - { - "name": "FWJIVHHID", - "value": "0002", - "source": "household.FWJIVHHID" - }, - { - "name": "FWNHNEARTO", - "source": "household.FWNHNEARTO" - }, - { - "name": "FWNHHHGPS", - "value": "23.7984 90.4019 0 25", - "source": "household.FWNHHHGPS" - }, - { - "name": "FWHOHFNAME", - "value": "karim mia", - "source": "household.FWHOHFNAME" - }, - { - "name": "FWHOHLNAME", - "value": ".", - "source": "household.FWHOHLNAME" - }, - { - "name": "FWHOHBIRTHDATE", - "value": "1900-01-01", - "source": "household.FWHOHBIRTHDATE" - }, - { - "name": "FWHOHGENDER", - "value": "male", - "source": "household.FWHOHGENDER" - }, - { - "name": "FWNHHMBRNUM", - "value": "1", - "source": "household.FWNHHMBRNUM" - }, - { - "name": "FWNHHMWRA", - "value": "0", - "source": "household.FWNHHMWRA" - }, - { - "name": "join_names", - "source": "household.join_names" - }, - { - "name": "MWRA", - "value": "0", - "source": "household.MWRA" - } - ], - "sub_forms": [ - { - "name": "elco_registration", - "bind_type": "elco", - "default_bind_path": "/model/instance/FWNewHH/woman", - "fields": [ - { - "name": "id", - "source": "elco.id" - }, - { - "name": "GOBHHID", - "source": "elco.GOBHHID" - }, - { - "name": "JiVitAHHID", - "source": "elco.JiVitAHHID" - }, - { - "name": "FWWOMFNAME", - "source": "elco.FWWOMFNAME" - }, - { - "name": "FWWOMLNAME", - "source": "elco.FWWOMLNAME" - }, - { - "name": "FWWOMNID", - "source": "elco.FWWOMNID" - }, - { - "name": "FWWOMBID", - "source": "elco.FWWOMBID" - }, - { - "name": "FWHUSNAME", - "source": "elco.FWHUSNAME" - }, - { - "name": "FWBIRTHDATE", - "source": "elco.FWBIRTHDATE" - }, - { - "name": "FWGENDER", - "source": "elco.FWGENDER" - }, - { - "name": "FWWOMAGE", - "source": "elco.FWWOMAGE" - }, - { - "name": "display_age", - "source": "elco.display_age" - }, - { - "name": "FWNHWOMSTRMEN", - "source": "elco.FWNHWOMSTRMEN" - }, - { - "name": "FWNHWOMHUSALV", - "source": "elco.FWNHWOMHUSALV" - }, - { - "name": "FWNHWOMHUSLIV", - "source": "elco.FWNHWOMHUSLIV" - }, - { - "name": "FWNHWOMHUSSTR", - "source": "elco.FWNHWOMHUSSTR" - }, - { - "name": "FWELIGIBLE", - "source": "elco.FWELIGIBLE" - } - ], - "instances": [ - { - "GOBHHID": "0002", - "JiVitAHHID": "042002", - "FWWOMFNAME": "fana", - "FWWOMLNAME": ".", - "FWWOMNID": "", - "FWWOMBID": "9999999999999999", - "FWHUSNAME": "", - "FWBIRTHDATE": "2000-12-12", - "FWGENDER": "female", - "FWWOMAGE": "NaN", - "display_age": "", - "FWNHWOMSTRMEN": "", - "FWNHWOMHUSALV": "", - "FWNHWOMHUSLIV": "", - "FWNHWOMHUSSTR": "", - "FWELIGIBLE": "0", - "id": "b19db74f-6e96-4652-a765-5078beb12434" - } - ] - } - ] - } - }, - "serverVersion": 1430924937728 -} \ No newline at end of file diff --git a/opensrp-connector/src/test/resources/form/new_household_registration/form_submission3.json b/opensrp-connector/src/test/resources/form/new_household_registration/form_submission3.json deleted file mode 100644 index 113c3c0829..0000000000 --- a/opensrp-connector/src/test/resources/form/new_household_registration/form_submission3.json +++ /dev/null @@ -1,208 +0,0 @@ -{ - "_id": "251ca0ef09df9af88f0e9d5f1800160d", - "_rev": "1-89988ca8cc2db0cd67afc292263137fe", - "type": "FormSubmission", - "anmId": "demotest", - "instanceId": "1cdf1628-86f2-440b-b5b0-4bc612d2fd2f", - "formName": "new_household_registration", - "entityId": "baf59aa4-64e9-46fc-99e6-8cd8f01618ff", - "clientVersion": 1430925173098, - "formDataDefinitionVersion": "1", - "formInstance": { - "form_data_definition_version": "1", - "form": { - "bind_type": "household", - "default_bind_path": "/model/instance/FWNewHH", - "fields": [ - { - "name": "id", - "value": "baf59aa4-64e9-46fc-99e6-8cd8f01618ff", - "source": "household.id" - }, - { - "name": "existing_location", - "value": "LAKSHMIPUR", - "source": "household.existing_location" - }, - { - "name": "today", - "value": "2015-05-06", - "source": "household.today" - }, - { - "name": "start", - "value": "2015-05-06T21:09:22.000+06:00", - "source": "household.start" - }, - { - "name": "end", - "value": "2015-05-06T21:09:22.000+06:00", - "source": "household.end" - }, - { - "name": "FWNHREGDATE", - "value": "2015-05-06", - "source": "household.FWNHREGDATE" - }, - { - "name": "FWGOBHHID", - "value": "0091", - "source": "household.FWGOBHHID" - }, - { - "name": "FWJIVHHID", - "value": "0091", - "source": "household.FWJIVHHID" - }, - { - "name": "FWNHNEARTO", - "source": "household.FWNHNEARTO" - }, - { - "name": "FWNHHHGPS", - "value": "23.7984 90.402 0 40", - "source": "household.FWNHHHGPS" - }, - { - "name": "FWHOHFNAME", - "value": "hasan ferox", - "source": "household.FWHOHFNAME" - }, - { - "name": "FWHOHLNAME", - "value": ".", - "source": "household.FWHOHLNAME" - }, - { - "name": "FWHOHBIRTHDATE", - "value": "1900-01-01", - "source": "household.FWHOHBIRTHDATE" - }, - { - "name": "FWHOHGENDER", - "value": "male", - "source": "household.FWHOHGENDER" - }, - { - "name": "FWNHHMBRNUM", - "value": "1", - "source": "household.FWNHHMBRNUM" - }, - { - "name": "FWNHHMWRA", - "value": "1", - "source": "household.FWNHHMWRA" - }, - { - "name": "join_names", - "value": "mithila", - "source": "household.join_names" - }, - { - "name": "MWRA", - "value": "1", - "source": "household.MWRA" - } - ], - "sub_forms": [ - { - "name": "elco_registration", - "bind_type": "elco", - "default_bind_path": "/model/instance/FWNewHH/woman", - "fields": [ - { - "name": "id", - "source": "elco.id" - }, - { - "name": "GOBHHID", - "source": "elco.GOBHHID" - }, - { - "name": "JiVitAHHID", - "source": "elco.JiVitAHHID" - }, - { - "name": "FWWOMFNAME", - "source": "elco.FWWOMFNAME" - }, - { - "name": "FWWOMLNAME", - "source": "elco.FWWOMLNAME" - }, - { - "name": "FWWOMNID", - "source": "elco.FWWOMNID" - }, - { - "name": "FWWOMBID", - "source": "elco.FWWOMBID" - }, - { - "name": "FWHUSNAME", - "source": "elco.FWHUSNAME" - }, - { - "name": "FWBIRTHDATE", - "source": "elco.FWBIRTHDATE" - }, - { - "name": "FWGENDER", - "source": "elco.FWGENDER" - }, - { - "name": "FWWOMAGE", - "source": "elco.FWWOMAGE" - }, - { - "name": "display_age", - "source": "elco.display_age" - }, - { - "name": "FWNHWOMSTRMEN", - "source": "elco.FWNHWOMSTRMEN" - }, - { - "name": "FWNHWOMHUSALV", - "source": "elco.FWNHWOMHUSALV" - }, - { - "name": "FWNHWOMHUSLIV", - "source": "elco.FWNHWOMHUSLIV" - }, - { - "name": "FWNHWOMHUSSTR", - "source": "elco.FWNHWOMHUSSTR" - }, - { - "name": "FWELIGIBLE", - "source": "elco.FWELIGIBLE" - } - ], - "instances": [ - { - "GOBHHID": "0091", - "JiVitAHHID": "0524091", - "FWWOMFNAME": "mithila", - "FWWOMLNAME": ".", - "FWWOMNID": "1111111111111", - "FWWOMBID": "12345678912345678", - "FWHUSNAME": "hasan feroz", - "FWBIRTHDATE": "1989-01-01", - "FWGENDER": "female", - "FWWOMAGE": "26", - "display_age": "", - "FWNHWOMSTRMEN": "0", - "FWNHWOMHUSALV": "1", - "FWNHWOMHUSLIV": "1", - "FWNHWOMHUSSTR": "1", - "FWELIGIBLE": "0", - "id": "409b44c4-262a-40b8-ad7d-748c480c7c13" - } - ] - } - ] - } - }, - "serverVersion": 1430925176060 -} \ No newline at end of file diff --git a/opensrp-connector/src/test/resources/form/new_household_registration/form_submission4.json b/opensrp-connector/src/test/resources/form/new_household_registration/form_submission4.json deleted file mode 100644 index 7665de2411..0000000000 --- a/opensrp-connector/src/test/resources/form/new_household_registration/form_submission4.json +++ /dev/null @@ -1,208 +0,0 @@ -{ - "_id": "251ca0ef09df9af88f0e9d5f18001e50", - "_rev": "1-3a413b7428ae33aafd08898dc2c974d4", - "type": "FormSubmission", - "anmId": "demotest", - "instanceId": "cad01d9c-9f7f-4e0b-a66a-2d1121bf8b8d", - "formName": "new_household_registration", - "entityId": "f92ee1b5-c3ce-42fb-bbc8-e01f474acc5a", - "clientVersion": 1430926871912, - "formDataDefinitionVersion": "1", - "formInstance": { - "form_data_definition_version": "1", - "form": { - "bind_type": "household", - "default_bind_path": "/model/instance/FWNewHH", - "fields": [ - { - "name": "id", - "value": "f92ee1b5-c3ce-42fb-bbc8-e01f474acc5a", - "source": "household.id" - }, - { - "name": "existing_location", - "value": "KUPTALA", - "source": "household.existing_location" - }, - { - "name": "today", - "value": "2015-05-06", - "source": "household.today" - }, - { - "name": "start", - "value": "2015-05-06T21:38:52.000+06:00", - "source": "household.start" - }, - { - "name": "end", - "value": "2015-05-06T21:38:52.000+06:00", - "source": "household.end" - }, - { - "name": "FWNHREGDATE", - "value": "2015-05-06", - "source": "household.FWNHREGDATE" - }, - { - "name": "FWGOBHHID", - "value": "4567", - "source": "household.FWGOBHHID" - }, - { - "name": "FWJIVHHID", - "value": "5678", - "source": "household.FWJIVHHID" - }, - { - "name": "FWNHNEARTO", - "source": "household.FWNHNEARTO" - }, - { - "name": "FWNHHHGPS", - "value": "23.7984 90.4021 0 37", - "source": "household.FWNHHHGPS" - }, - { - "name": "FWHOHFNAME", - "value": "jashim mia", - "source": "household.FWHOHFNAME" - }, - { - "name": "FWHOHLNAME", - "value": ".", - "source": "household.FWHOHLNAME" - }, - { - "name": "FWHOHBIRTHDATE", - "value": "1900-01-01", - "source": "household.FWHOHBIRTHDATE" - }, - { - "name": "FWHOHGENDER", - "value": "male", - "source": "household.FWHOHGENDER" - }, - { - "name": "FWNHHMBRNUM", - "value": "5", - "source": "household.FWNHHMBRNUM" - }, - { - "name": "FWNHHMWRA", - "value": "1", - "source": "household.FWNHHMWRA" - }, - { - "name": "join_names", - "value": "razia sultana", - "source": "household.join_names" - }, - { - "name": "MWRA", - "value": "1", - "source": "household.MWRA" - } - ], - "sub_forms": [ - { - "name": "elco_registration", - "bind_type": "elco", - "default_bind_path": "/model/instance/FWNewHH/woman", - "fields": [ - { - "name": "id", - "source": "elco.id" - }, - { - "name": "GOBHHID", - "source": "elco.GOBHHID" - }, - { - "name": "JiVitAHHID", - "source": "elco.JiVitAHHID" - }, - { - "name": "FWWOMFNAME", - "source": "elco.FWWOMFNAME" - }, - { - "name": "FWWOMLNAME", - "source": "elco.FWWOMLNAME" - }, - { - "name": "FWWOMNID", - "source": "elco.FWWOMNID" - }, - { - "name": "FWWOMBID", - "source": "elco.FWWOMBID" - }, - { - "name": "FWHUSNAME", - "source": "elco.FWHUSNAME" - }, - { - "name": "FWBIRTHDATE", - "source": "elco.FWBIRTHDATE" - }, - { - "name": "FWGENDER", - "source": "elco.FWGENDER" - }, - { - "name": "FWWOMAGE", - "source": "elco.FWWOMAGE" - }, - { - "name": "display_age", - "source": "elco.display_age" - }, - { - "name": "FWNHWOMSTRMEN", - "source": "elco.FWNHWOMSTRMEN" - }, - { - "name": "FWNHWOMHUSALV", - "source": "elco.FWNHWOMHUSALV" - }, - { - "name": "FWNHWOMHUSLIV", - "source": "elco.FWNHWOMHUSLIV" - }, - { - "name": "FWNHWOMHUSSTR", - "source": "elco.FWNHWOMHUSSTR" - }, - { - "name": "FWELIGIBLE", - "source": "elco.FWELIGIBLE" - } - ], - "instances": [ - { - "GOBHHID": "4567", - "JiVitAHHID": "5678", - "FWWOMFNAME": "razia sultana", - "FWWOMLNAME": ".", - "FWWOMNID": "0987654321123", - "FWWOMBID": "09876543211234567", - "FWHUSNAME": "jashim mia", - "FWBIRTHDATE": "1991-02-27", - "FWGENDER": "female", - "FWWOMAGE": "24", - "display_age": "", - "FWNHWOMSTRMEN": "0", - "FWNHWOMHUSALV": "1", - "FWNHWOMHUSLIV": "1", - "FWNHWOMHUSSTR": "0", - "FWELIGIBLE": "1", - "id": "0036b7ca-36ec-4242-9885-a0a03a666cda" - } - ] - } - ] - } - }, - "serverVersion": 1430926886181 -} \ No newline at end of file diff --git a/opensrp-connector/src/test/resources/form/new_household_registration/form_submission5.json b/opensrp-connector/src/test/resources/form/new_household_registration/form_submission5.json deleted file mode 100644 index 8447c0ff4a..0000000000 --- a/opensrp-connector/src/test/resources/form/new_household_registration/form_submission5.json +++ /dev/null @@ -1,209 +0,0 @@ -{ - "_id": "251ca0ef09df9af88f0e9d5f180115a3", - "_rev": "1-e73e1d93acdcdaeb1d41a738da5d9284", - "type": "FormSubmission", - "anmId": "demotest", - "instanceId": "88c0e824-10b4-44c2-9429-754b8d823776", - "formName": "new_household_registration", - "entityId": "a3f2abf4-2699-4761-819a-cea739224164", - "clientVersion": 1430997074596, - "formDataDefinitionVersion": "1", - "formInstance": { - "form_data_definition_version": "1", - "form": { - "bind_type": "household", - "default_bind_path": "/model/instance/FWNewHH", - "fields": [ - { - "name": "id", - "value": "a3f2abf4-2699-4761-819a-cea739224164", - "source": "household.id" - }, - { - "name": "existing_location", - "value": "KUPTALA", - "source": "household.existing_location" - }, - { - "name": "today", - "value": "2015-05-07", - "source": "household.today" - }, - { - "name": "start", - "value": "2015-05-07T17:07:21.000+06:00", - "source": "household.start" - }, - { - "name": "end", - "value": "2015-05-07T17:07:21.000+06:00", - "source": "household.end" - }, - { - "name": "FWNHREGDATE", - "value": "2015-05-07", - "source": "household.FWNHREGDATE" - }, - { - "name": "FWGOBHHID", - "value": "1234", - "source": "household.FWGOBHHID" - }, - { - "name": "FWJIVHHID", - "value": "1234", - "source": "household.FWJIVHHID" - }, - { - "name": "FWNHNEARTO", - "value": "nothing", - "source": "household.FWNHNEARTO" - }, - { - "name": "FWNHHHGPS", - "value": "34 34 0 0", - "source": "household.FWNHHHGPS" - }, - { - "name": "FWHOHFNAME", - "value": "test", - "source": "household.FWHOHFNAME" - }, - { - "name": "FWHOHLNAME", - "value": ".", - "source": "household.FWHOHLNAME" - }, - { - "name": "FWHOHBIRTHDATE", - "value": "1900-01-01", - "source": "household.FWHOHBIRTHDATE" - }, - { - "name": "FWHOHGENDER", - "value": "male", - "source": "household.FWHOHGENDER" - }, - { - "name": "FWNHHMBRNUM", - "value": "2", - "source": "household.FWNHHMBRNUM" - }, - { - "name": "FWNHHMWRA", - "value": "1", - "source": "household.FWNHHMWRA" - }, - { - "name": "join_names", - "value": "shumi sumaita", - "source": "household.join_names" - }, - { - "name": "MWRA", - "value": "2", - "source": "household.MWRA" - } - ], - "sub_forms": [ - { - "name": "elco_registration", - "bind_type": "elco", - "default_bind_path": "/model/instance/FWNewHH/woman", - "fields": [ - { - "name": "id", - "source": "elco.id" - }, - { - "name": "GOBHHID", - "source": "elco.GOBHHID" - }, - { - "name": "JiVitAHHID", - "source": "elco.JiVitAHHID" - }, - { - "name": "FWWOMFNAME", - "source": "elco.FWWOMFNAME" - }, - { - "name": "FWWOMLNAME", - "source": "elco.FWWOMLNAME" - }, - { - "name": "FWWOMNID", - "source": "elco.FWWOMNID" - }, - { - "name": "FWWOMBID", - "source": "elco.FWWOMBID" - }, - { - "name": "FWHUSNAME", - "source": "elco.FWHUSNAME" - }, - { - "name": "FWBIRTHDATE", - "source": "elco.FWBIRTHDATE" - }, - { - "name": "FWGENDER", - "source": "elco.FWGENDER" - }, - { - "name": "FWWOMAGE", - "source": "elco.FWWOMAGE" - }, - { - "name": "display_age", - "source": "elco.display_age" - }, - { - "name": "FWNHWOMSTRMEN", - "source": "elco.FWNHWOMSTRMEN" - }, - { - "name": "FWNHWOMHUSALV", - "source": "elco.FWNHWOMHUSALV" - }, - { - "name": "FWNHWOMHUSLIV", - "source": "elco.FWNHWOMHUSLIV" - }, - { - "name": "FWNHWOMHUSSTR", - "source": "elco.FWNHWOMHUSSTR" - }, - { - "name": "FWELIGIBLE", - "source": "elco.FWELIGIBLE" - } - ], - "instances": [ - { - "GOBHHID": "", - "JiVitAHHID": "", - "FWWOMFNAME": "", - "FWWOMLNAME": "", - "FWWOMNID": "", - "FWWOMBID": "", - "FWHUSNAME": "", - "FWBIRTHDATE": "", - "FWGENDER": "", - "FWWOMAGE": "", - "display_age": "", - "FWNHWOMSTRMEN": "", - "FWNHWOMHUSALV": "", - "FWNHWOMHUSLIV": "", - "FWNHWOMHUSSTR": "", - "FWELIGIBLE": "", - "id": "babcd9d2-b3e9-4f6d-8a06-2df8f5fbf01f" - } - ] - } - ] - } - }, - "serverVersion": 1430998001293 -} \ No newline at end of file diff --git a/opensrp-connector/src/test/resources/form/new_household_registration/form_submission6.json b/opensrp-connector/src/test/resources/form/new_household_registration/form_submission6.json deleted file mode 100644 index 8f3ec6c5ad..0000000000 --- a/opensrp-connector/src/test/resources/form/new_household_registration/form_submission6.json +++ /dev/null @@ -1,216 +0,0 @@ -{ - "_id": "251ca0ef09df9af88f0e9d5f180115a3", - "_rev": "1-e73e1d93acdcdaeb1d41a738da5d9284", - "type": "FormSubmission", - "anmId": "admin", - "instanceId": "88c0e824-10b4-44c2-9429-754b8d823776", - "formName": "new_household_registration", - "entityId": "a3f2abf4-2699-4761-819a-cea739224164", - "clientVersion": 1430997074596, - "formDataDefinitionVersion": "1", - "formInstance": { - "form_data_definition_version": "1", - "form": { - "bind_type": "household", - "default_bind_path": "/model/instance/FWNewHH", - "fields": [ - { - "name": "id", - "value": "a3f2abf4-2699-4761-819a-cea739224164", - "source": "household.id" - }, - { - "name": "existing_location", - "value": "KUPTALA", - "source": "household.existing_location" - }, - { - "name": "today", - "value": "2015-05-07", - "source": "household.today" - }, - { - "name": "start", - "value": "2015-05-07T17:07:21.000+06:00", - "source": "household.start" - }, - { - "name": "end", - "value": "2015-05-07T17:07:21.000+06:00", - "source": "household.end" - }, - { - "name": "FWNHREGDATE", - "value": "2015-05-07", - "source": "household.FWNHREGDATE" - }, - { - "name": "FWGOBHHID", - "value": "1234", - "source": "household.FWGOBHHID" - }, - { - "name": "FWJIVHHID", - "value": "1234", - "source": "household.FWJIVHHID" - }, - { - "name": "FWNHNEARTO", - "value": "nothing", - "source": "household.FWNHNEARTO" - }, - { - "name": "FWNHHHGPS", - "value": "34 34 0 0", - "source": "household.FWNHHHGPS" - }, - { - "name": "FWHOHFNAME", - "value": "test", - "source": "household.FWHOHFNAME" - }, - { - "name": "FWHOHLNAME", - "value": ".", - "source": "household.FWHOHLNAME" - }, - { - "name": "FWHOHBIRTHDATE", - "value": "1900-01-01", - "source": "household.FWHOHBIRTHDATE" - }, - { - "name": "FWHOHBIRTHDATEAPPROX", - "value": "1", - "source": "household.FWHOHBIRTHDATEAPPROX" - }, - { - "name": "FWHOHGENDER", - "value": "male", - "source": "household.FWHOHGENDER" - }, - { - "name": "FWNHHMBRNUM", - "source": "household.FWNHHMBRNUM" - }, - { - "name": "FWNHHMWRA", - "source": "household.FWNHHMWRA" - }, - { - "name": "join_names", - "value": "shumi sumaita", - "source": "household.join_names" - }, - { - "name": "MWRA", - "source": "household.MWRA" - } - ], - "sub_forms": [ - { - "name": "elco_registration", - "bind_type": "elco", - "default_bind_path": "/model/instance/FWNewHH/woman", - "fields": [ - { - "name": "id", - "source": "elco.id" - }, - { - "name": "GOBHHID", - "source": "elco.GOBHHID" - }, - { - "name": "JiVitAHHID", - "source": "elco.JiVitAHHID" - }, - { - "name": "FWWOMFNAME", - "source": "elco.FWWOMFNAME" - }, - { - "name": "FWWOMLNAME", - "source": "elco.FWWOMLNAME" - }, - { - "name": "FWWOMNID", - "source": "elco.FWWOMNID" - }, - { - "name": "FWWOMBID", - "source": "elco.FWWOMBID" - }, - { - "name": "FWHUSNAME", - "source": "elco.FWHUSNAME" - }, - { - "name": "FWBIRTHDATE", - "source": "elco.FWBIRTHDATE" - }, - { - "name": "FWBIRTHDATEAPPROX", - "source": "elco.FWBIRTHDATEAPPROX" - }, - { - "name": "FWGENDER", - "source": "elco.FWGENDER" - }, - { - "name": "FWWOMAGE", - "source": "elco.FWWOMAGE" - }, - { - "name": "display_age", - "source": "elco.display_age" - }, - { - "name": "FWNHWOMSTRMEN", - "source": "elco.FWNHWOMSTRMEN" - }, - { - "name": "FWNHWOMHUSALV", - "source": "elco.FWNHWOMHUSALV" - }, - { - "name": "FWNHWOMHUSLIV", - "source": "elco.FWNHWOMHUSLIV" - }, - { - "name": "FWNHWOMHUSSTR", - "source": "elco.FWNHWOMHUSSTR" - }, - { - "name": "FWELIGIBLE", - "source": "elco.FWELIGIBLE" - } - ], - "instances": [ - { - "GOBHHID": "48374", - "JiVitAHHID": "78748", - "FWWOMFNAME": "tEST First", - "FWWOMLNAME": " lastname", - "FWWOMNID": "", - "FWWOMBID": "", - "FWHUSNAME": "", - "FWBIRTHDATE": "2000-05-07", - "FWBIRTHDATEAPPROX":"1", - "FWGENDER": "Female", - "FWWOMAGE": "", - "display_age": "", - "FWNHWOMSTRMEN": "", - "FWNHWOMHUSALV": "", - "FWNHWOMHUSLIV": "", - "FWNHWOMHUSSTR": "", - "FWELIGIBLE": "", - "id": "babcd9d2-b3e9-4f6d-8a06-2df8f5fbf01f" - } - ] - } - ] - } - }, - "serverVersion": 1430998001293 -} \ No newline at end of file diff --git a/opensrp-connector/src/test/resources/form/new_household_registration/form_submission7.json b/opensrp-connector/src/test/resources/form/new_household_registration/form_submission7.json deleted file mode 100644 index 443ced2385..0000000000 --- a/opensrp-connector/src/test/resources/form/new_household_registration/form_submission7.json +++ /dev/null @@ -1,216 +0,0 @@ -{ - "_id": "251ca0ef09df9af88f0e9d5f180115a3", - "_rev": "1-e73e1d93acdcdaeb1d41a738da5d9284", - "type": "FormSubmission", - "anmId": "admin", - "instanceId": "88c0e824-10b4-44c2-9429-754b8d823776", - "formName": "new_household_registration", - "entityId": "a3f2abf4-2699-4761-819a-cea739224164", - "clientVersion": 1430997074596, - "formDataDefinitionVersion": "1", - "formInstance": { - "form_data_definition_version": "1", - "form": { - "bind_type": "household", - "default_bind_path": "/model/instance/FWNewHH", - "fields": [ - { - "name": "id", - "value": "a3f2abf4-2699-4761-819a-cea739224164", - "source": "household.id" - }, - { - "name": "existing_location", - "value": "KUPTALA", - "source": "household.existing_location" - }, - { - "name": "today", - "value": "2015-05-07", - "source": "household.today" - }, - { - "name": "start", - "value": "2015-05-07T17:07:21.000+06:00", - "source": "household.start" - }, - { - "name": "end", - "value": "2015-05-07T17:07:21.000+06:00", - "source": "household.end" - }, - { - "name": "FWNHREGDATE", - "value": "2015-05-07", - "source": "household.FWNHREGDATE" - }, - { - "name": "FWGOBHHID", - "value": "1234", - "source": "household.FWGOBHHID" - }, - { - "name": "FWJIVHHID", - "value": "1234", - "source": "household.FWJIVHHID" - }, - { - "name": "FWNHNEARTO", - "value": "nothing", - "source": "household.FWNHNEARTO" - }, - { - "name": "FWNHHHGPS", - "value": "34 34 0 0", - "source": "household.FWNHHHGPS" - }, - { - "name": "FWHOHFNAME", - "value": "test", - "source": "household.FWHOHFNAME" - }, - { - "name": "FWHOHLNAME", - "value": ".", - "source": "household.FWHOHLNAME" - }, - { - "name": "FWHOHBIRTHDATE", - "value": "1900-01-01", - "source": "household.FWHOHBIRTHDATE" - }, - { - "name": "FWHOHBIRTHDATEAPPROX", - "value": "1", - "source": "household.FWHOHBIRTHDATEAPPROX" - }, - { - "name": "FWHOHGENDER", - "value": "male", - "source": "household.FWHOHGENDER" - }, - { - "name": "FWNHHMBRNUM", - "source": "household.FWNHHMBRNUM" - }, - { - "name": "FWNHHMWRA", - "source": "household.FWNHHMWRA" - }, - { - "name": "join_names", - "value": "shumi sumaita", - "source": "household.join_names" - }, - { - "name": "MWRA", - "source": "household.MWRA" - } - ], - "sub_forms": [ - { - "name": "elco_registration", - "bind_type": "elco", - "default_bind_path": "/model/instance/FWNewHH/woman", - "fields": [ - { - "name": "id", - "source": "elco.id" - }, - { - "name": "GOBHHID", - "source": "elco.GOBHHID" - }, - { - "name": "JiVitAHHID", - "source": "elco.JiVitAHHID" - }, - { - "name": "FWWOMFNAME", - "source": "elco.FWWOMFNAME" - }, - { - "name": "FWWOMLNAME", - "source": "elco.FWWOMLNAME" - }, - { - "name": "FWWOMNID", - "source": "elco.FWWOMNID" - }, - { - "name": "FWWOMBID", - "source": "elco.FWWOMBID" - }, - { - "name": "FWHUSNAME", - "source": "elco.FWHUSNAME" - }, - { - "name": "FWBIRTHDATE", - "source": "elco.FWBIRTHDATE" - }, - { - "name": "FWBIRTHDATEAPPROX", - "source": "elco.FWBIRTHDATEAPPROX" - }, - { - "name": "FWGENDER", - "source": "elco.FWGENDER" - }, - { - "name": "FWWOMAGE", - "source": "elco.FWWOMAGE" - }, - { - "name": "display_age", - "source": "elco.display_age" - }, - { - "name": "FWNHWOMSTRMEN", - "source": "elco.FWNHWOMSTRMEN" - }, - { - "name": "FWNHWOMHUSALV", - "source": "elco.FWNHWOMHUSALV" - }, - { - "name": "FWNHWOMHUSLIV", - "source": "elco.FWNHWOMHUSLIV" - }, - { - "name": "FWNHWOMHUSSTR", - "source": "elco.FWNHWOMHUSSTR" - }, - { - "name": "FWELIGIBLE", - "source": "elco.FWELIGIBLE" - } - ], - "instances": [ - { - "GOBHHID": "48374", - "JiVitAHHID": "78748", - "FWWOMFNAME": "tEST First", - "FWWOMLNAME": " lastname", - "FWWOMNID": "5478549854895", - "FWWOMBID": "43030293029323", - "FWHUSNAME": "husb", - "FWBIRTHDATE": "2000-05-07", - "FWBIRTHDATEAPPROX":"0", - "FWGENDER": "Female", - "FWWOMAGE": "21", - "display_age": "", - "FWNHWOMSTRMEN": "", - "FWNHWOMHUSALV": "", - "FWNHWOMHUSLIV": "", - "FWNHWOMHUSSTR": "", - "FWELIGIBLE": "", - "id": "babcd9d2-b3e9-4f6d-8a06-2df8f5fbf01f" - } - ] - } - ] - } - }, - "serverVersion": 1430998001293 -} \ No newline at end of file diff --git a/opensrp-connector/src/test/resources/form/new_household_registration/form_submission8.json b/opensrp-connector/src/test/resources/form/new_household_registration/form_submission8.json deleted file mode 100644 index 0c1850d4ed..0000000000 --- a/opensrp-connector/src/test/resources/form/new_household_registration/form_submission8.json +++ /dev/null @@ -1,211 +0,0 @@ -{ - "_id": "251ca0ef09df9af88f0e9d5f180115a3", - "_rev": "1-e73e1d93acdcdaeb1d41a738da5d9284", - "type": "FormSubmission", - "anmId": "admin", - "instanceId": "88c0e824-10b4-44c2-9429-754b8d823776", - "formName": "new_household_registration", - "entityId": "a3f2abf4-2699-4761-819a-cea739224164", - "clientVersion": 1430997074596, - "formDataDefinitionVersion": "1", - "formInstance": { - "form_data_definition_version": "1", - "form": { - "bind_type": "household", - "default_bind_path": "/model/instance/FWNewHH", - "fields": [ - { - "name": "id", - "value": "a3f2abf4-2699-4761-819a-cea739224164", - "source": "household.id" - }, - { - "name": "existing_location", - "value": "KUPTALA", - "source": "household.existing_location" - }, - { - "name": "today", - "value": "2015-05-07", - "source": "household.today" - }, - { - "name": "start", - "value": "2015-05-07T17:07:21.000+06:00", - "source": "household.start" - }, - { - "name": "end", - "value": "2015-05-07T17:07:21.000+06:00", - "source": "household.end" - }, - { - "name": "FWNHREGDATE", - "value": "2015-05-07", - "source": "household.FWNHREGDATE" - }, - { - "name": "FWGOBHHID", - "value": "1234", - "source": "household.FWGOBHHID" - }, - { - "name": "FWJIVHHID", - "value": "1234", - "source": "household.FWJIVHHID" - }, - { - "name": "FWNHNEARTO", - "value": "nothing", - "source": "household.FWNHNEARTO" - }, - { - "name": "FWNHHHGPS", - "value": "34 34 0 0", - "source": "household.FWNHHHGPS" - }, - { - "name": "FWHOHFNAME", - "value": "test", - "source": "household.FWHOHFNAME" - }, - { - "name": "FWHOHLNAME", - "value": ".", - "source": "household.FWHOHLNAME" - }, - { - "name": "FWHOHBIRTHDATE", - "value": "1900-01-01", - "source": "household.FWHOHBIRTHDATE" - }, - { - "name": "FWHOHGENDER", - "value": "male", - "source": "household.FWHOHGENDER" - }, - { - "name": "FWNHHMBRNUM", - "source": "household.FWNHHMBRNUM" - }, - { - "name": "FWNHHMWRA", - "source": "household.FWNHHMWRA" - }, - { - "name": "join_names", - "value": "shumi sumaita", - "source": "household.join_names" - }, - { - "name": "MWRA", - "source": "household.MWRA" - } - ], - "sub_forms": [ - { - "name": "elco_registration", - "bind_type": "elco", - "default_bind_path": "/model/instance/FWNewHH/woman", - "fields": [ - { - "name": "id", - "source": "elco.id" - }, - { - "name": "GOBHHID", - "source": "elco.GOBHHID" - }, - { - "name": "JiVitAHHID", - "source": "elco.JiVitAHHID" - }, - { - "name": "FWWOMFNAME", - "source": "elco.FWWOMFNAME" - }, - { - "name": "FWWOMLNAME", - "source": "elco.FWWOMLNAME" - }, - { - "name": "FWWOMNID", - "source": "elco.FWWOMNID" - }, - { - "name": "FWWOMBID", - "source": "elco.FWWOMBID" - }, - { - "name": "FWHUSNAME", - "source": "elco.FWHUSNAME" - }, - { - "name": "FWBIRTHDATE", - "source": "elco.FWBIRTHDATE" - }, - { - "name": "FWBIRTHDATEAPPROX", - "source": "elco.FWBIRTHDATEAPPROX" - }, - { - "name": "FWGENDER", - "source": "elco.FWGENDER" - }, - { - "name": "FWWOMAGE", - "source": "elco.FWWOMAGE" - }, - { - "name": "display_age", - "source": "elco.display_age" - }, - { - "name": "FWNHWOMSTRMEN", - "source": "elco.FWNHWOMSTRMEN" - }, - { - "name": "FWNHWOMHUSALV", - "source": "elco.FWNHWOMHUSALV" - }, - { - "name": "FWNHWOMHUSLIV", - "source": "elco.FWNHWOMHUSLIV" - }, - { - "name": "FWNHWOMHUSSTR", - "source": "elco.FWNHWOMHUSSTR" - }, - { - "name": "FWELIGIBLE", - "source": "elco.FWELIGIBLE" - } - ], - "instances": [ - { - "GOBHHID": "48374", - "JiVitAHHID": "78748", - "FWWOMFNAME": "tEST First", - "FWWOMLNAME": " lastname", - "FWWOMNID": "", - "FWWOMBID": "", - "FWHUSNAME": "", - "FWBIRTHDATE": "2000-05-07", - "FWBIRTHDATEAPPROX":"", - "FWGENDER": "Female", - "FWWOMAGE": "", - "display_age": "", - "FWNHWOMSTRMEN": "", - "FWNHWOMHUSALV": "", - "FWNHWOMHUSLIV": "", - "FWNHWOMHUSSTR": "", - "FWELIGIBLE": "", - "id": "babcd9d2-b3e9-4f6d-8a06-2df8f5fbf01f" - } - ] - } - ] - } - }, - "serverVersion": 1430998001293 -} \ No newline at end of file diff --git a/opensrp-connector/src/test/resources/form/new_household_registration/model.xml b/opensrp-connector/src/test/resources/form/new_household_registration/model.xml deleted file mode 100644 index a0cabcad26..0000000000 --- a/opensrp-connector/src/test/resources/form/new_household_registration/model.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/opensrp-connector/src/test/resources/form/new_household_registration_with_grouped_subform_data/form.json b/opensrp-connector/src/test/resources/form/new_household_registration_with_grouped_subform_data/form.json deleted file mode 100644 index 99dadab7ad..0000000000 --- a/opensrp-connector/src/test/resources/form/new_household_registration_with_grouped_subform_data/form.json +++ /dev/null @@ -1,1100 +0,0 @@ -{ - "name": "FWNewHH", - "title": "নতুন খানা নিবন্ধন ফর্ম", - "sms_keyword": "FWNewHH", - "default_language": "Bengali", - "instance": { - "encounter_type": "New Household Registration" - }, - "version": "201510181114", - "id_string": "FWNewHH", - "type": "survey", - "children": [ - { - "type": "hidden", - "name": "version", - "label": { - "English": "TechVersion: v1.4 Aug 26, 2015\nFormVersion: v1.0" - } - }, - { - "type": "hidden", - "name": "changes", - "label": { - "English": "NN: \n1. Added a calculation field 'REGDATE' under 'woman' group\n2. Removed the conceptIDs which have Datatype N/A\n3. Define NID as person_attribute\nKZ: Dropped 9=DK from Vitsts choices\nCG: Added person_address mappings and NN added Variable Names for these address fields\nCG: Change NID back to person_identifier\nCG: Delete location_name field - need to communicate this change to Raihan - mauzapara name coming from existing_Mauzapara instead.\nCG: Added concept IDs for woman and husband unable to have children.\nKZ: 9/9\n1. Added photo capture of ID cards\n2. Added double entry of both IDs\n3. Added the which ID? screening question\n4. Changed the number of MWRAs in HH question to integer.\n5. Moved eligibility screening questions above ID questions, as in Census.\nCG: Updated address mappings so address5 is mapped to HHID\nCG: Added id_type to choices sheet.\n15/9\nKZ: Added Bangla to id_type choices, What type of ID and Re-Type National ID.\nKZ: Made FWWOMANYID field hidden until we come to a final decision on how to do this image capture.\nKZ: Removed leading zero from the '01' on the labels in HH Inhabitant number question.\nNN: Updated the constraint of 'How many member....' from \"regex(., '^(?!0{2})[0-9]{2}$')\" to \" .< 31 or .=99\"\nNN: Updated the 'relevant' logic of NID/BRID questions. added 'selected' logic\nKH: 16/9\n1. Added datatype / leading zeroes question as comment for FWNHHMBRNUM\n2. Changed constraint for FWNHHMBRNUM to exclude 0 as option\n3. Added \"Respondent Age\" concept UID to FWWOMAGE for data collection/analysis.\n4. Added \"Meets eligibility criteria for clinical trial or study\" concept UID to FWELIGIBLE to match FD form\nNN: 22/9\n1. Added entity:concept for FWELIGIBLE\n---\nKZ: 27/9\n1. Changed HHNUMB to text, still need to update the constraint to match with text.\nNN: 28/9\nUpdated the constraint of 'How many member....' from \".< 3 1 or .=99\" to \"regex(., '^(?!0{2})[0-9]{2}$')\"\nKZ (28/9):\n1. Change NUMMWRA to select one with yesno responses. Removed hints and constraints\n2. Updated hints and constraints for HH INhabitants to include leading zeros\nNN (8/10):\nAdd DoB, Gender questions before 'eligible' group\nMade FWNHHMBRNUM and FWNHHMWRA required field\nUpdated the constraing of 'how many member....' --> (regex(., '^(?!0{2})[0-9]{2}$') and .<31) or .=99\nUpdated the logic of Age (should not accept less than 12 years\nUpdated the hint/constraint message with english numeric input e.g 13 instead of ১৩\nCG (15/10):\nAdd ELCO count calculation; strike-through MWRA calculation\nNN (18/10): \nRemoved the Strikethrough fields.\nAdded two hidden variables for developers use- user_type and external_user_ID" - } - }, - { - "instance": { - "openmrs_entity_id": "location_id", - "openmrs_entity": "encounter" - }, - "type": "hidden", - "name": "existing_location" - }, - { - "type": "hidden", - "name": "existing_Country" - }, - { - "type": "hidden", - "name": "existing_Division" - }, - { - "type": "hidden", - "name": "existing_District" - }, - { - "type": "hidden", - "name": "existing_Upazilla" - }, - { - "type": "hidden", - "name": "existing_Union" - }, - { - "type": "hidden", - "name": "existing_Ward" - }, - { - "type": "hidden", - "name": "existing_Subunit" - }, - { - "type": "hidden", - "name": "existing_Mauzapara" - }, - { - "instance": { - "openmrs_entity_id": "encounter_date", - "openmrs_entity": "encounter" - }, - "type": "today", - "name": "today" - }, - { - "instance": { - "openmrs_entity_id": "encounter_start", - "openmrs_entity": "encounter" - }, - "type": "start", - "name": "start" - }, - { - "instance": { - "openmrs_entity_id": "encounter_end", - "openmrs_entity": "encounter" - }, - "type": "end", - "name": "end" - }, - { - "name": "FWNHREGDATE", - "hint": { - "Bengali": "আজকের তারিখ দিন", - "English": "Please enter today's date." - }, - "bind": { - "jr:constraintMsg": { - "Bengali": "আজকের তারিখের পরের কোন তারিখ\nহতে পারবে না", - "English": "Date cannot be greater than current date." - }, - "required": "yes", - "constraint": ".<=${today}" - }, - "label": { - "Bengali": "সাক্ষাৎকারের তারিখ", - "English": "Date of Interview" - }, - "instance": { - "openmrs_entity_id": "160753AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "date" - }, - { - "control": { - "appearance": "numbers" - }, - "name": "FWGOBHHID", - "hint": { - "Bengali": "কালো কালিতে লেখা সরকারী খানা নম্বর (HHID) যেভাবে ঘরের দেয়াল বা দরজায় দেওয়া আছে সেভাবেই ইনপুট দিন।\nসরকারী খানা নম্বর (HHID) পাওয়া না গেলে ৯৯৯৯ ইনপুট দিন", - "English": "Please input the Black – painted Government household ID (HHID) as displayed on the door/wall of the HH. If there is no Government HHID, enter 9999." - }, - "bind": { - "jr:constraintMsg": { - "Bengali": "অনুগ্রহ করে ০০০১ থেকে ৯৯৯৯ এর মধ্যে ৪ ডিজিটের GoB HHID টাইপ করুন", - "English": "Please enter 4 digits of GoB HHID from 0001 to 9999" - }, - "required": "yes", - "constraint": "regex(., '^(?!0{4})[0-9]{4}$')" - }, - "label": { - "Bengali": "GoB HHID", - "English": "GoB HHID" - }, - "instance": { - "openmrs_entity_id": "GoB_HHID", - "openmrs_entity": "person_attribute" - }, - "type": "text" - }, - { - "control": { - "appearance": "numbers" - }, - "name": "FWJIVHHID", - "hint": { - "Bengali": "লাল কালিতে দেয়া জীবিতা খানা নম্বর (HHID) যেভাবে দেয়ালে বা দরজায় দেওয়া আছে সেভাবেই ইনপুট দিন ।\nজীবিতা খানা নম্বর (HHID) পাওয়া না গেলে ৯৯৯৯ ইনপুট দিন", - "English": "Please input the RED – painted JiVitA / Study household ID (HHID) as displayed on the door/wall of the HH. Enter 9999 if JiVitA HHID is not found." - }, - "bind": { - "jr:constraintMsg": { - "Bengali": "অনুগ্রহ করে ০০০১ থেকে ৯৯৯৯ এর মধ্যে ৪ ডিজিটের JiVitA HHID টাইপ করুন", - "English": "Please enter 4 digits of JiVitA HHID from 0001 to 9999" - }, - "required": "yes", - "constraint": "regex(., '^(?!0{4})[0-9]{4}$')" - }, - "label": { - "Bengali": "JiVitA HHID", - "English": "JiVitA HHID" - }, - "instance": { - "openmrs_entity_id": "JiVitA_HHID", - "openmrs_entity": "person_attribute" - }, - "type": "text" - }, - { - "bind": { - "calculate": "${existing_Country}" - }, - "type": "calculate", - "name": "FWCOUNTRY", - "instance": { - "openmrs_entity": "person_address", - "openmrs_entity_id": "country", - "openmrs_entity_parent": "usual_residence" - } - }, - { - "bind": { - "calculate": "${existing_Division}" - }, - "type": "calculate", - "name": "FWDIVISION", - "instance": { - "openmrs_entity": "person_address", - "openmrs_entity_id": "stateProvince", - "openmrs_entity_parent": "usual_residence" - } - }, - { - "bind": { - "calculate": "${existing_District}" - }, - "type": "calculate", - "name": "FWDISTRICT", - "instance": { - "openmrs_entity": "person_address", - "openmrs_entity_id": "countyDistrict", - "openmrs_entity_parent": "usual_residence" - } - }, - { - "bind": { - "calculate": "${existing_Upazilla}" - }, - "type": "calculate", - "name": "FWUPAZILLA", - "instance": { - "openmrs_entity": "person_address", - "openmrs_entity_id": "cityVillage", - "openmrs_entity_parent": "usual_residence" - } - }, - { - "bind": { - "calculate": "${existing_Union}" - }, - "type": "calculate", - "name": "FWUNION", - "instance": { - "openmrs_entity": "person_address", - "openmrs_entity_id": "address1", - "openmrs_entity_parent": "usual_residence" - } - }, - { - "bind": { - "calculate": "${existing_Ward}" - }, - "type": "calculate", - "name": "FWWARD", - "instance": { - "openmrs_entity": "person_address", - "openmrs_entity_id": "address2", - "openmrs_entity_parent": "usual_residence" - } - }, - { - "bind": { - "calculate": "${existing_Subunit}" - }, - "type": "calculate", - "name": "FWSUBUNIT", - "instance": { - "openmrs_entity": "person_address", - "openmrs_entity_id": "address3", - "openmrs_entity_parent": "usual_residence" - } - }, - { - "bind": { - "calculate": "${existing_Mauzapara}" - }, - "type": "calculate", - "name": "FWMAUZA_PARA", - "instance": { - "openmrs_entity": "person_address", - "openmrs_entity_id": "address4", - "openmrs_entity_parent": "usual_residence" - } - }, - { - "bind": { - "calculate": "${FWGOBHHID}" - }, - "type": "calculate", - "name": "FWGOB_HHID", - "instance": { - "openmrs_entity": "person_address", - "openmrs_entity_id": "address5", - "openmrs_entity_parent": "usual_residence" - } - }, - { - "bind": { - "required": "yes" - }, - "type": "geopoint", - "instance": { - "openmrs_entity": "person_address", - "openmrs_entity_id": "geopoint", - "openmrs_entity_parent": "usual_residence" - }, - "name": "FWNHHHGPS", - "label": { - "Bengali": "জি পি এস", - "English": "Collect GPS Location of HH" - } - }, - { - "bind": { - "required": "yes" - }, - "type": "text", - "instance": { - "openmrs_entity_id": "first_name", - "openmrs_entity": "person" - }, - "name": "FWHOHFNAME", - "label": { - "Bengali": "খানা প্রধানের নাম-", - "English": "Head of Household Name" - } - }, - { - "bind": { - "calculate": "\".\"" - }, - "type": "calculate", - "name": "FWHOHLNAME", - "instance": { - "openmrs_entity_id": "last_name", - "openmrs_entity": "person" - } - }, - { - "bind": { - "calculate": "\"1900-01-01\"" - }, - "type": "calculate", - "name": "FWHOHBIRTHDATE", - "instance": { - "openmrs_entity_id": "birthdate", - "openmrs_entity": "person" - } - }, - { - "name": "FWHOHGENDER", - "bind": { - "required": "yes" - }, - "label": { - "Bengali": "খানা প্রধানের লিঙ্গ", - "English": "Head of Household Gender" - }, - "instance": { - "openmrs_entity_id": "gender", - "openmrs_entity": "person" - }, - "type": "select one", - "children": [ - { - "name": "1", - "label": { - "Bengali": "ছেলে", - "English": "Male" - } - }, - { - "name": "2", - "label": { - "Bengali": "মেয়ে", - "English": "Female" - } - } - ] - }, - { - "control": { - "appearance": "numbers" - }, - "name": "FWNHHMBRNUM", - "hint": { - "Bengali": "খানার সদস্য সংখ্যা লিখতে 01-29 লিখুন । 30 বা তার বেশী হলে 30 লিখুন। খানার সদস্যের সংখ্যা জানা না থাকলে 99 লিখুন ।", - "English": "Enter 01-29 for the number of household members. Enter 30 if 30 or more. Enter 99 if the total number is unknown." - }, - "bind": { - "jr:constraintMsg": { - "Bengali": "খানার সদস্য সংখ্যাকে দুই ডিজিট হিসেবে এন্ট্রি করতে হবে। খানার সদস্য সংখ্যা লিখতে 01- 29 লিখুন । খানার সদস্যের সংখ্যা 30 বা তার বেশি হলে 30 লিখুন। খানার সদস্যের সংখ্যা জানা না থাকলে 99 লিখুন ।", - "English": "Number should be entered as two digits. Enter 01-29 for the number of household members. Enter 30 if there are 30 or more household members. Enter 99 if the total number is unknown." - }, - "required": "yes", - "constraint": "(regex(., '^(?!0{2})[0-9]{2}$') and .<31) or .=99" - }, - "label": { - "Bengali": "এই খানায় বর্তমানে কতজন মানুষ বসবাস করছে?", - "English": "How many people are currently living in this household?" - }, - "instance": { - "openmrs_entity_id": "5611AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "text" - }, - { - "name": "FWNHHMWRA", - "bind": { - "required": "yes" - }, - "label": { - "Bengali": "এই খানায় কি ১৫ থেকে ৪৯ বছর বয়সের কোন বিবাহিত মহিলা আছেন?", - "English": "Are there any married women between the ages of 15 - 49 live in this household?" - }, - "instance": { - "openmrs_entity_id": "1901AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "select one", - "children": [ - { - "instance": { - "openmrs_code": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "0", - "label": { - "Bengali": "না", - "English": "No" - } - }, - { - "instance": { - "openmrs_code": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "1", - "label": { - "Bengali": "হ্যাঁ", - "English": "Yes" - } - }, - { - "instance": { - "openmrs_code": "1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "9", - "label": { - "Bengali": "জানি না", - "English": "Don't know" - } - } - ] - }, - { - "name": "woman", - "hint": { - "Bengali": "আমরা এখন মহিলাকে নিবন্ধন করব। তাকে জাতীয় পরিচয়পত্র এবং জন্ম নিবন্ধন সনদপত্র নিয়ে আসতে অনুরোধ করুন।", - "English": "We will now register the woman. Please ask her to bring her National ID Card and Birth Certificate." - }, - "bind": { - "relevant": "${FWNHHMWRA}='1'" - }, - "label": { - "Bengali": "মহিলার তথ্যঃ", - "English": "New Woman Registration" - }, - "instance": { - "openmrs_entity_id": "New Woman Registration", - "openmrs_entity": "person" - }, - "type": "repeat", - "children": [ - { - "bind": { - "calculate": "${FWGOBHHID}" - }, - "type": "calculate", - "name": "GOBHHID", - "instance": { - "openmrs_entity_id": "GoB_HHID", - "openmrs_entity": "person_attribute" - } - }, - { - "bind": { - "calculate": "${FWJIVHHID}" - }, - "type": "calculate", - "name": "JiVitAHHID", - "instance": { - "openmrs_entity_id": "JiVitA_HHID", - "openmrs_entity": "person_attribute" - } - }, - { - "bind": { - "calculate": "${FWNHREGDATE}" - }, - "type": "calculate", - "name": "REGDATE" - }, - { - "name": "FWWOMFNAME", - "hint": { - "Bengali": "মহিলার নাম টাইপ করুন", - "English": "Please type woman's name" - }, - "bind": { - "required": "yes" - }, - "label": { - "Bengali": "মহিলার নাম-", - "English": "Woman Name" - }, - "instance": { - "openmrs_entity_id": "first_name", - "openmrs_entity": "person" - }, - "type": "text" - }, - { - "bind": { - "calculate": "\".\"" - }, - "type": "calculate", - "name": "FWWOMLNAME", - "instance": { - "openmrs_entity_id": "last_name", - "openmrs_entity": "person" - } - }, - { - "name": "FWBIRTHDATE", - "hint": { - "Bengali": "“যদি জন্মনিবন্ধন সনদপত্র থাকে তাহলে জন্মতারিখ সেখান থেকেই সংগ্রহ করুন। যদি জন্মতারিখ বলতে না পারে তাহলে মাসের ১৫ তারিখকে জন্মতারিখ হিসেবে বেছে নিন। যদি জন্মমাস বলতে না পারে তাহলে ৬ বা জুনকে মাস হিসেবে বেছে নিন এবং মহিলা যে বছরটিতে তার জন্ম বলবে সেটি এন্ট্রি করুন।”", - "English": "If birth certificate is available take date of birth from birth certificate. If date of birth is unknown choose 15 as the date of birth, if month is unknown choose 06 (June) as month of birth and enter the year of birth as mentioned by the woman." - }, - "default": "2000-01-02 00:00:00", - "bind": { - "jr:constraintMsg": { - "Bengali": "মহিলার বয়স অবশ্যই ১২ বছরের বেশী হবে", - "English": "Woman must be older than 12 years of age" - }, - "required": "yes", - "constraint": "((${FWBIRTHDATE})+4380) <= today()" - }, - "label": { - "Bengali": "মহিলার জন্ম তারিখ", - "English": "Woman's Date of Birth" - }, - "instance": { - "openmrs_entity_id": "birthdate", - "openmrs_entity": "person" - }, - "type": "date" - }, - { - "bind": { - "calculate": "\"female\"" - }, - "type": "calculate", - "name": "FWGENDER", - "instance": { - "openmrs_entity_id": "gender", - "openmrs_entity": "person" - } - }, - { - "bind": { - "calculate": "round(((${today} - ${FWBIRTHDATE}) div 365.25),0)" - }, - "type": "calculate", - "name": "FWWOMAGE", - "instance": { - "openmrs_entity_id": "1532AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - } - }, - { - "type": "note", - "name": "display_age", - "label": { - "Bengali": "মহিলার বয়স ${FWWOMAGE}", - "English": "The woman's age is ${FWWOMAGE}." - } - }, - { - "control": { - "appearance": "yes" - }, - "name": "FWNHWOMSTRMEN", - "label": { - "Bengali": "আপনার কি বর্তমানে মাসিক একেবারে উঠে গেছে বা আপনি কি বর্তমানে স্থায়ী জন্মনিয়ন্ত্রন পদ্ধতি গ্রহণ করেছেন?", - "English": "Are you currently menopausal or sterilized?" - }, - "instance": { - "openmrs_entity_id": "163006AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "select one", - "children": [ - { - "instance": { - "openmrs_code": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "0", - "label": { - "Bengali": "না", - "English": "No" - } - }, - { - "instance": { - "openmrs_code": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "1", - "label": { - "Bengali": "হ্যাঁ", - "English": "Yes" - } - }, - { - "instance": { - "openmrs_code": "1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "9", - "label": { - "Bengali": "জানি না", - "English": "Don't know" - } - } - ] - }, - { - "control": { - "appearance": "yes" - }, - "name": "FWNHWOMHUSLIV", - "bind": { - "relevant": "selected(${FWNHWOMSTRMEN}, '0') or selected(${FWNHWOMSTRMEN}, '9')" - }, - "label": { - "Bengali": "আপনি কি বর্তমানে আপনার স্বামীর সাথে বসবাস করছেন?", - "English": "Are you currently living with your husband?" - }, - "instance": { - "openmrs_entity_id": "162994AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "select one", - "children": [ - { - "instance": { - "openmrs_code": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "0", - "label": { - "Bengali": "না", - "English": "No" - } - }, - { - "instance": { - "openmrs_code": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "1", - "label": { - "Bengali": "হ্যাঁ", - "English": "Yes" - } - }, - { - "instance": { - "openmrs_code": "1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "9", - "label": { - "Bengali": "জানি না", - "English": "Don't know" - } - } - ] - }, - { - "control": { - "appearance": "yes" - }, - "name": "FWNHWOMHUSALV", - "bind": { - "relevant": "selected(${FWNHWOMHUSLIV}, '0') or selected(${FWNHWOMHUSLIV}, '9')" - }, - "label": { - "Bengali": "আপনার স্বামী কি জীবিত আছেন?", - "English": "Is the husband alive?" - }, - "instance": { - "openmrs_entity_id": "5561AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "select one", - "children": [ - { - "instance": { - "openmrs_code": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "0", - "label": { - "Bengali": "না", - "English": "No" - } - }, - { - "instance": { - "openmrs_code": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "1", - "label": { - "Bengali": "হ্যাঁ", - "English": "Yes" - } - } - ] - }, - { - "control": { - "appearance": "yes" - }, - "name": "FWNHWOMHUSSTR", - "bind": { - "relevant": "selected(${FWNHWOMHUSLIV}, '1') or (selected(${FWNHWOMHUSLIV}, '9') and selected(${FWNHWOMHUSALV}, '1'))" - }, - "label": { - "Bengali": "আপনার স্বামী কি স্থায়ী জন্মনিয়ন্ত্রন পদ্ধতি গ্রহণ করেছেন?", - "English": "Is the husband sterilized?" - }, - "instance": { - "openmrs_entity_id": "162959AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "select one", - "children": [ - { - "instance": { - "openmrs_code": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "0", - "label": { - "Bengali": "না", - "English": "No" - } - }, - { - "instance": { - "openmrs_code": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "1", - "label": { - "Bengali": "হ্যাঁ", - "English": "Yes" - } - }, - { - "instance": { - "openmrs_code": "1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "9", - "label": { - "Bengali": "জানি না", - "English": "Don't know" - } - } - ] - }, - { - "bind": { - "calculate": "if(${FWNHWOMSTRMEN}='0' and ${FWNHWOMHUSLIV}='1' and ${FWNHWOMHUSSTR}='0','1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA','1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')" - }, - "type": "calculate", - "name": "FWELIGIBLE", - "instance": { - "openmrs_entity_id": "162699AAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - } - }, - { - "bind": { - "relevant": "${FWELIGIBLE}='1'" - }, - "type": "group", - "children": [ - { - "name": "FWWOMANYID", - "hint": { - "Bengali": "প্রযোজ্য সবগুলো উত্তর নির্বাচন করুন", - "English": "Select all that apply." - }, - "label": { - "Bengali": "নিচের কোন পরিচয় পত্রটি মহিলার কাছে আছে?", - "English": "Which of the following IDs does the woman have?" - }, - "instance": { - "openmrs_entity_id": "163087AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "select all that apply", - "children": [ - { - "instance": { - "openmrs_code": "163084AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "1", - "label": { - "Bengali": "জাতীয় পরিচয়পত্র নম্বর", - "English": "National ID Number" - } - }, - { - "instance": { - "openmrs_code": "163083AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "2", - "label": { - "Bengali": "জন্ম নিবন্ধন সনদপত্র নম্বর", - "English": "Birth Registration ID Number" - } - } - ] - }, - { - "control": { - "appearance": "numbers" - }, - "name": "FWWOMNID", - "hint": { - "Bengali": "জাতীয় পরিচয়পত্রে দেওয়া সরকারী নম্বর যেভাবে দেওয়া আছে সেভাবেই প্রবেশ করান", - "English": "Please input the Government ID as displayed on the national ID card" - }, - "bind": { - "relevant": "selected(${FWWOMANYID},'1')", - "jr:constraintMsg": { - "Bengali": "জাতীয় পরিচয়পত্র নং ১৩ অথবা ১৭ ডিজিটের হবে", - "English": "National ID should be 13 or 17 digits" - }, - "required": "yes", - "constraint": "regex(., '^(?!0{13})[0-9]{13}$') or regex(., '^(?!0{17})[0-9]{17}$')" - }, - "label": { - "Bengali": "মহিলার জাতীয় পরিচয়পত্র নং-", - "English": "Woman's National ID Number" - }, - "type": "text" - }, - { - "control": { - "appearance": "numbers" - }, - "name": "FWWOMRETYPENID", - "hint": { - "Bengali": "জাতীয় পরিচয়পত্রের নম্বরটি পুনরায় প্রবেশ করান", - "English": "Please re-input the National ID number" - }, - "bind": { - "relevant": "selected(${FWWOMANYID},'1')", - "jr:constraintMsg": { - "Bengali": "এই নম্বরটি ও পূর্বের স্ক্রিনে দেওয়া জন্ম নিবন্ধন নম্বরটি একই হতে হবে", - "English": "This number and the one in the previous screen should be same" - }, - "required": "yes", - "constraint": ".=${FWWOMNID}" - }, - "label": { - "Bengali": "মহিলার জাতীয় পরিচয়পত্র নম্বরটি পুনরায় লিখুন", - "English": "Re-Type Woman's National ID Number" - }, - "instance": { - "openmrs_entity_id": "NID", - "openmrs_entity": "person_identifier" - }, - "type": "text" - }, - { - "control": { - "appearance": "numbers" - }, - "name": "FWWOMBID", - "hint": { - "Bengali": "জন্ম নিবন্ধন সনদপত্রের সরকারী নম্বর যেভাবে দেওয়া আছে সেভাবেই ইনপুট দিন।", - "English": "Please input the Government ID as displayed on the birth certificate" - }, - "bind": { - "relevant": "selected(${FWWOMANYID},'2')", - "jr:constraintMsg": { - "Bengali": "জন্ম নিবন্ধন সনদ নং ১৭ ডিজিটের হবে", - "English": "Birth Registration ID should be 17 digits" - }, - "required": "yes", - "constraint": "regex(., '^(?!0{17})[0-9]{17}$')" - }, - "label": { - "Bengali": "মহিলার জন্ম নিবন্ধন সনদ নং-", - "English": "Woman's Birth Registration ID" - }, - "type": "text" - }, - { - "control": { - "appearance": "numbers" - }, - "name": "FWWOMRETYPEBID", - "hint": { - "Bengali": "জন্ম নিবন্ধন নম্বরটি পূনরায় প্রবেশ করান", - "English": "Please re-input the Birth Registration Number" - }, - "bind": { - "relevant": "selected(${FWWOMANYID},'2')", - "jr:constraintMsg": { - "Bengali": "এই নম্বরটি ও পূর্বের স্ক্রিনে দেওয়া জন্ম নিবন্ধন নম্বরটি একই হতে হবে", - "English": "This number and the one in the previous screen should be same" - }, - "required": "yes", - "constraint": ".=${FWWOMBID}" - }, - "label": { - "Bengali": "মহিলার জন্ম নিবন্ধন সনদ নং-", - "English": "Woman's Birth Registration ID" - }, - "instance": { - "openmrs_entity_id": "Birth Registration ID", - "openmrs_entity": "person_identifier" - }, - "type": "text" - }, - { - "name": "FWHUSNAME", - "hint": { - "Bengali": "স্বামীর নাম টাইপ করুন", - "English": "Please type husband's name" - }, - "bind": { - "required": "yes" - }, - "label": { - "Bengali": "স্বামীর নাম-", - "English": "Husband's Name" - }, - "instance": { - "openmrs_entity_id": "161135AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "text" - }, - { - "bind": { - "calculate": "${existing_Country}" - }, - "type": "calculate", - "name": "FWWOMCOUNTRY", - "instance": { - "openmrs_entity": "person_address", - "openmrs_entity_id": "country", - "openmrs_entity_parent": "usual_residence" - } - }, - { - "bind": { - "calculate": "${existing_Division}" - }, - "type": "calculate", - "name": "FWWOMDIVISION", - "instance": { - "openmrs_entity": "person_address", - "openmrs_entity_id": "stateProvince", - "openmrs_entity_parent": "usual_residence" - } - }, - { - "bind": { - "calculate": "${existing_District}" - }, - "type": "calculate", - "name": "FWWOMDISTRICT", - "instance": { - "openmrs_entity": "person_address", - "openmrs_entity_id": "countyDistrict", - "openmrs_entity_parent": "usual_residence" - } - }, - { - "bind": { - "calculate": "${existing_Upazilla}" - }, - "type": "calculate", - "name": "FWWOMUPAZILLA", - "instance": { - "openmrs_entity": "person_address", - "openmrs_entity_id": "cityVillage", - "openmrs_entity_parent": "usual_residence" - } - }, - { - "bind": { - "calculate": "${existing_Union}" - }, - "type": "calculate", - "name": "FWWOMUNION", - "instance": { - "openmrs_entity": "person_address", - "openmrs_entity_id": "address1", - "openmrs_entity_parent": "usual_residence" - } - }, - { - "bind": { - "calculate": "${existing_Ward}" - }, - "type": "calculate", - "name": "FWWOMWARD", - "instance": { - "openmrs_entity": "person_address", - "openmrs_entity_id": "address2", - "openmrs_entity_parent": "usual_residence" - } - }, - { - "bind": { - "calculate": "${existing_Subunit}" - }, - "type": "calculate", - "name": "FWWOMSUBUNIT", - "instance": { - "openmrs_entity": "person_address", - "openmrs_entity_id": "address3", - "openmrs_entity_parent": "usual_residence" - } - }, - { - "bind": { - "calculate": "${existing_Mauzapara}" - }, - "type": "calculate", - "name": "FWWOMMAUZA_PARA", - "instance": { - "openmrs_entity": "person_address", - "openmrs_entity_id": "address4", - "openmrs_entity_parent": "usual_residence" - } - }, - { - "bind": { - "calculate": "${FWGOBHHID}" - }, - "type": "calculate", - "name": "FWWOMGOBHHID", - "instance": { - "openmrs_entity": "person_address", - "openmrs_entity_id": "address5", - "openmrs_entity_parent": "usual_residence" - } - }, - { - "bind": { - "calculate": "${FWNHHHGPS}" - }, - "type": "calculate", - "name": "FWWOMGPS", - "instance": { - "openmrs_entity": "person_address", - "openmrs_entity_id": "geopoint", - "openmrs_entity_parent": "usual_residence" - } - } - ], - "name": "eligible" - }, - { - "type": "note", - "name": "add_women", - "label": { - "Bengali": "নির্দেশনাঃ এই খানায় যদি আরও কোন মহিলা থাকে যাকে রেজিস্ট্রেশন করা হয়নি, তাহলে '+' এ ক্লিক করুন এবং একই প্রক্রিয়ায় পরবর্তী মহিলাকে রেজিস্ট্রেশন করুন", - "English": "If there are any additional unregistered women in this household, select the '+' to add them now." - } - } - ] - }, - { - "bind": { - "calculate": "sum(${FWELIGIBLE})" - }, - "type": "calculate", - "name": "ELCO" - }, - { - "default": "FWA", - "type": "hidden", - "name": "user_type" - }, - { - "type": "hidden", - "name": "external_user_ID" - }, - { - "control": { - "bodyless": true - }, - "type": "group", - "children": [ - { - "bind": { - "readonly": "true()", - "calculate": "concat('uuid:', uuid())" - }, - "type": "calculate", - "name": "instanceID" - } - ], - "name": "meta" - } - ] -} \ No newline at end of file diff --git a/opensrp-connector/src/test/resources/form/new_household_registration_with_grouped_subform_data/form.xml b/opensrp-connector/src/test/resources/form/new_household_registration_with_grouped_subform_data/form.xml deleted file mode 100644 index bda24f905a..0000000000 --- a/opensrp-connector/src/test/resources/form/new_household_registration_with_grouped_subform_data/form.xml +++ /dev/null @@ -1,31 +0,0 @@ - -
-

নতুন খানা নিবন্ধন ফর্ম

- - - - - - - -
খানা প্রধানের লিঙ্গHead of Household Gender* -
- -
এই খানায় কি ১৫ থেকে ৪৯ বছর বয়সের কোন বিবাহিত মহিলা আছেন?Are there any married women between the ages of 15 - 49 live in this household?* -
-

মহিলার তথ্যঃNew Woman Registration

আপনার কি বর্তমানে মাসিক একেবারে উঠে গেছে বা আপনি কি বর্তমানে স্থায়ী জন্মনিয়ন্ত্রন পদ্ধতি গ্রহণ করেছেন?Are you currently menopausal or sterilized? -
আপনি কি বর্তমানে আপনার স্বামীর সাথে বসবাস করছেন?Are you currently living with your husband? -
আপনার স্বামী কি জীবিত আছেন?Is the husband alive? -
আপনার স্বামী কি স্থায়ী জন্মনিয়ন্ত্রন পদ্ধতি গ্রহণ করেছেন?Is the husband sterilized? -
নিচের কোন পরিচয় পত্রটি মহিলার কাছে আছে?Which of the following IDs does the woman have?প্রযোজ্য সবগুলো উত্তর নির্বাচন করুনSelect all that apply. -
-
-
-
- -
XML to HTML transformation for form took 0.05 secondsThis validation is yet not functional.
diff --git a/opensrp-connector/src/test/resources/form/new_household_registration_with_grouped_subform_data/form_definition.json b/opensrp-connector/src/test/resources/form/new_household_registration_with_grouped_subform_data/form_definition.json deleted file mode 100644 index 916bdf7aa8..0000000000 --- a/opensrp-connector/src/test/resources/form/new_household_registration_with_grouped_subform_data/form_definition.json +++ /dev/null @@ -1,290 +0,0 @@ -{ - "form_data_definition_version": "13", - "form": { - "default_bind_path": "/model/instance/FWNewHH", - "bind_type": "household", - "fields": [ - { - "name": "id", - "shouldLoadValue": true - }, - { - "name": "location_name", - "bind": "/model/instance/FWNewHH/existing_Mauzapara" - }, - { - "name": "existing_location", - "bind": "/model/instance/FWNewHH/existing_location" - }, - { - "name": "existing_Country", - "bind": "/model/instance/FWNewHH/existing_Country" - }, - { - "name": "existing_Division", - "bind": "/model/instance/FWNewHH/existing_Division" - }, - { - "name": "existing_District", - "bind": "/model/instance/FWNewHH/existing_District" - }, - { - "name": "existing_Upazilla", - "bind": "/model/instance/FWNewHH/existing_Upazilla" - }, - { - "name": "existing_Union", - "bind": "/model/instance/FWNewHH/existing_Union" - }, - { - "name": "existing_Ward", - "bind": "/model/instance/FWNewHH/existing_Ward" - }, - { - "name": "existing_Subunit", - "bind": "/model/instance/FWNewHH/existing_Subunit" - }, - { - "name": "existing_Mauzapara", - "bind": "/model/instance/FWNewHH/existing_Mauzapara" - }, - { - "name": "today", - "bind": "/model/instance/FWNewHH/today" - }, - { - "name": "start", - "bind": "/model/instance/FWNewHH/start" - }, - { - "name": "end", - "bind": "/model/instance/FWNewHH/end" - }, - { - "name": "FWNHREGDATE", - "bind": "/model/instance/FWNewHH/FWNHREGDATE" - }, - { - "name": "FWGOBHHID", - "bind": "/model/instance/FWNewHH/FWGOBHHID" - }, - { - "name": "FWJIVHHID", - "bind": "/model/instance/FWNewHH/FWJIVHHID" - }, - { - "name": "FWCOUNTRY", - "bind": "/model/instance/FWNewHH/FWCOUNTRY" - }, - { - "name": "FWDIVISION", - "bind": "/model/instance/FWNewHH/FWDIVISION" - }, - { - "name": "FWDISTRICT", - "bind": "/model/instance/FWNewHH/FWDISTRICT" - }, - { - "name": "FWUPAZILLA", - "bind": "/model/instance/FWNewHH/FWUPAZILLA" - }, - { - "name": "FWUNION", - "bind": "/model/instance/FWNewHH/FWUNION" - }, - { - "name": "FWWARD", - "bind": "/model/instance/FWNewHH/FWWARD" - }, - { - "name": "FWSUBUNIT", - "bind": "/model/instance/FWNewHH/FWSUBUNIT" - }, - { - "name": "FWMAUZA_PARA", - "bind": "/model/instance/FWNewHH/FWMAUZA_PARA" - }, - { - "name": "FWNHHHGPS", - "bind": "/model/instance/FWNewHH/FWNHHHGPS" - }, - { - "name": "FWHOHFNAME", - "bind": "/model/instance/FWNewHH/FWHOHFNAME" - }, - { - "name": "FWHOHLNAME", - "bind": "/model/instance/FWNewHH/FWHOHLNAME" - }, - { - "name": "FWHOHBIRTHDATE", - "bind": "/model/instance/FWNewHH/FWHOHBIRTHDATE" - }, - { - "name": "FWHOHGENDER", - "bind": "/model/instance/FWNewHH/FWHOHGENDER" - }, - { - "name": "FWNHHMBRNUM", - "bind": "/model/instance/FWNewHH/FWNHHMBRNUM" - }, - { - "name": "FWNHHMWRA", - "bind": "/model/instance/FWNewHH/FWNHHMWRA" - }, - { - "name": "join_names", - "bind": "/model/instance/FWNewHH/join_names" - }, - { - "name": "ELCO", - "bind": "/model/instance/FWNewHH/ELCO" - }, - { - "name": "user_type", - "bind": "/model/instance/FWNewHH/user_type" - }, - { - "name": "external_user_ID", - "bind": "/model/instance/FWNewHH/external_user_ID" - } - ], - "sub_forms": [ - { - "name": "elco_registration", - "bind_type": "elco", - "default_bind_path": "/model/instance/FWNewHH/woman", - "fields": [ - { - "name": "id", - "shouldLoadValue": true - }, - { - "name": "relationalid", - "shouldLoadValue": true - }, - { - "name": "WomanREGDATE", - "bind": "/model/instance/FWNewHH/woman/REGDATE" - }, - { - "name": "GOBHHID", - "bind": "/model/instance/FWNewHH/woman/GOBHHID" - }, - { - "name": "JiVitAHHID", - "bind": "/model/instance/FWNewHH/woman/JiVitAHHID" - }, - { - "name": "FWWOMFNAME", - "bind": "/model/instance/FWNewHH/woman/FWWOMFNAME" - }, - { - "name": "FWWOMLNAME", - "bind": "/model/instance/FWNewHH/woman/FWWOMLNAME" - }, - { - "name": "FWBIRTHDATE", - "bind": "/model/instance/FWNewHH/woman/FWBIRTHDATE" - }, - { - "name": "FWGENDER", - "bind": "/model/instance/FWNewHH/woman/FWGENDER" - }, - { - "name": "FWWOMAGE", - "bind": "/model/instance/FWNewHH/woman/FWWOMAGE" - }, - { - "name": "display_age", - "bind": "/model/instance/FWNewHH/woman/display_age" - }, - { - "name": "FWNHWOMSTRMEN", - "bind": "/model/instance/FWNewHH/woman/FWNHWOMSTRMEN" - }, - { - "name": "FWNHWOMHUSALV", - "bind": "/model/instance/FWNewHH/woman/FWNHWOMHUSALV" - }, - { - "name": "FWNHWOMHUSLIV", - "bind": "/model/instance/FWNewHH/woman/FWNHWOMHUSLIV" - }, - { - "name": "FWNHWOMHUSSTR", - "bind": "/model/instance/FWNewHH/woman/FWNHWOMHUSSTR" - }, - { - "name": "FWELIGIBLE", - "bind": "/model/instance/FWNewHH/woman/FWELIGIBLE" - }, - { - "name": "FWWOMANYID", - "bind": "/model/instance/FWNewHH/woman/eligible/FWWOMANYID" - }, - { - "name": "FWWOMNID", - "bind": "/model/instance/FWNewHH/woman/eligible/FWWOMNID" - }, - { - "name": "FWWOMRETYPENID", - "bind": "/model/instance/FWNewHH/woman/eligible/FWWOMRETYPENID" - }, - { - "name": "FWWOMBID", - "bind": "/model/instance/FWNewHH/woman/eligible/FWWOMBID" - }, - { - "name": "FWWOMRETYPEBID", - "bind": "/model/instance/FWNewHH/woman/eligible/FWWOMRETYPEBID" - }, - { - "name": "FWHUSNAME", - "bind": "/model/instance/FWNewHH/woman/eligible/FWHUSNAME" - }, - { - "name": "FWWOMCOUNTRY", - "bind": "/model/instance/FWNewHH/woman/eligible/FWWOMCOUNTRY" - }, - { - "name": "FWWOMDIVISION", - "bind": "/model/instance/FWNewHH/woman/eligible/FWWOMDIVISION" - }, - { - "name": "FWWOMDISTRICT", - "bind": "/model/instance/FWNewHH/woman/eligible/FWWOMDISTRICT" - }, - { - "name": "FWWOMUPAZILLA", - "bind": "/model/instance/FWNewHH/woman/eligible/FWWOMUPAZILLA" - }, - { - "name": "FWWOMUNION", - "bind": "/model/instance/FWNewHH/woman/eligible/FWWOMUNION" - }, - { - "name": "FWWOMWARD", - "bind": "/model/instance/FWNewHH/woman/eligible/FWWOMWARD" - }, - { - "name": "FWWOMSUBUNIT", - "bind": "/model/instance/FWNewHH/woman/eligible/FWWOMSUBUNIT" - }, - { - "name": "FWWOMMAUZA_PARA", - "bind": "/model/instance/FWNewHH/woman/eligible/FWWOMMAUZA_PARA" - }, - { - "name": "FWWOMGOBHHID", - "bind": "/model/instance/FWNewHH/woman/eligible/FWWOMGOBHHID" - }, - { - "name": "FWWOMGPS", - "bind": "/model/instance/FWNewHH/woman/eligible/FWWOMGPS" - } - ] - } - ] - } -} \ No newline at end of file diff --git a/opensrp-connector/src/test/resources/form/new_household_registration_with_grouped_subform_data/form_submission1.json b/opensrp-connector/src/test/resources/form/new_household_registration_with_grouped_subform_data/form_submission1.json deleted file mode 100644 index 75775ca8cd..0000000000 --- a/opensrp-connector/src/test/resources/form/new_household_registration_with_grouped_subform_data/form_submission1.json +++ /dev/null @@ -1,363 +0,0 @@ -{ - "id": "5ec11f03071ef0929839079530028992", - "_rev": "2-ddf675dd499e017538671b94843aeefc", - "type": "FormSubmission", - "anmId": "opensrp", - "instanceId": "d304dbr7-3998-434f-8c5b-55d6f5fa4252", - "formName": "new_household_registration_with_grouped_subform_data", - "entityId": "4237d267-d438-49f2-7822-8968t555447c", - "clientVersion": 1444562091545, - "formDataDefinitionVersion": "12", - "formInstance": { - "form_data_definition_version": "12", - "form": { - "bind_type": "household", - "default_bind_path": "/model/instance/FWNewHH", - "fields": [ - { - "name": "id", - "value": "4237d267-d438-49f2-7822-8968t555447c", - "source": "household.id" - }, - { - "name": "location_name", - "value": "DASLIA-_ALL_PARAS", - "source": "household.location_name" - }, - { - "name": "existing_location", - "value": "2fc43738-ace5-g961-8e8f-ab7dg0e5bc63", - "source": "household.existing_location" - }, - { - "name": "existing_Country", - "value": "Bangladesh", - "source": "household.existing_Country" - }, - { - "name": "existing_Division", - "value": "RANGPUR", - "source": "household.existing_Division" - }, - { - "name": "existing_District", - "value": "GAIBANDHA", - "source": "household.existing_District" - }, - { - "name": "existing_Upazilla", - "value": "SADULLAPUR", - "source": "household.existing_Upazilla" - }, - { - "name": "existing_Union", - "value": "NALDANGA", - "source": "household.existing_Union" - }, - { - "name": "existing_Ward", - "value": "Ward-3", - "source": "household.existing_Ward" - }, - { - "name": "existing_Subunit", - "value": "3-KHA", - "source": "household.existing_Subunit" - }, - { - "name": "existing_Mauzapara", - "value": "DASLIA+-+ALL+PARAS", - "source": "household.existing_Mauzapara" - }, - { - "name": "today", - "value": "2015-10-11", - "source": "household.today" - }, - { - "name": "start", - "value": "2015-10-11T17:12:34.000+06:00", - "source": "household.start" - }, - { - "name": "end", - "value": "2015-10-11T17:12:34.000+06:00", - "source": "household.end" - }, - { - "name": "FWNHREGDATE", - "value": "2015-10-11", - "source": "household.FWNHREGDATE" - }, - { - "name": "FWGOBHHID", - "value": "2322", - "source": "household.FWGOBHHID" - }, - { - "name": "FWJIVHHID", - "value": "9889", - "source": "household.FWJIVHHID" - }, - { - "name": "FWCOUNTRY", - "value": "Bangladesh", - "source": "household.FWCOUNTRY" - }, - { - "name": "FWDIVISION", - "value": "RANGPUR", - "source": "household.FWDIVISION" - }, - { - "name": "FWDISTRICT", - "value": "GAIBANDHA", - "source": "household.FWDISTRICT" - }, - { - "name": "FWUPAZILLA", - "value": "SADULLAPUR", - "source": "household.FWUPAZILLA" - }, - { - "name": "FWUNION", - "value": "NALDANGA", - "source": "household.FWUNION" - }, - { - "name": "FWWARD", - "value": "Ward-3", - "source": "household.FWWARD" - }, - { - "name": "FWSUBUNIT", - "value": "3-KHA", - "source": "household.FWSUBUNIT" - }, - { - "name": "FWMAUZA_PARA", - "value": "DASLIA+-+ALL+PARAS", - "source": "household.FWMAUZA_PARA" - }, - { - "name": "FWNHHHGPS", - "value": "23.8002 90.4068 0 10", - "source": "household.FWNHHHGPS" - }, - { - "name": "FWHOHFNAME", - "value": "mango", - "source": "household.FWHOHFNAME" - }, - { - "name": "FWHOHLNAME", - "value": ".", - "source": "household.FWHOHLNAME" - }, - { - "name": "FWHOHBIRTHDATE", - "value": "1900-01-01", - "source": "household.FWHOHBIRTHDATE" - }, - { - "name": "FWHOHGENDER", - "value": "2", - "source": "household.FWHOHGENDER" - }, - { - "name": "FWNHHMBRNUM", - "value": "23", - "source": "household.FWNHHMBRNUM" - }, - { - "name": "FWNHHMWRA", - "value": "1", - "source": "household.FWNHHMWRA" - }, - { - "name": "join_names", - "value": "hoby", - "source": "household.join_names" - }, - { - "name": "MWRA", - "value": "1", - "source": "household.MWRA" - } - ], - "sub_forms": [ - { - "name": "elco_registration", - "bind_type": "elco", - "default_bind_path": "/model/instance/FWNewHH/woman", - "fields": [ - { - "name": "id", - "source": "elco.id" - }, - { - "name": "relationalid", - "source": "elco.relationalid" - }, - { - "name": "WomanREGDATE", - "source": "elco.WomanREGDATE" - }, - { - "name": "GOBHHID", - "source": "elco.GOBHHID" - }, - { - "name": "JiVitAHHID", - "source": "elco.JiVitAHHID" - }, - { - "name": "FWWOMFNAME", - "source": "elco.FWWOMFNAME" - }, - { - "name": "FWWOMLNAME", - "source": "elco.FWWOMLNAME" - }, - { - "name": "FWBIRTHDATE", - "source": "elco.FWBIRTHDATE" - }, - { - "name": "FWGENDER", - "source": "elco.FWGENDER" - }, - { - "name": "FWWOMAGE", - "source": "elco.FWWOMAGE" - }, - { - "name": "display_age", - "source": "elco.display_age" - }, - { - "name": "FWNHWOMSTRMEN", - "source": "elco.FWNHWOMSTRMEN" - }, - { - "name": "FWNHWOMHUSALV", - "source": "elco.FWNHWOMHUSALV" - }, - { - "name": "FWNHWOMHUSLIV", - "source": "elco.FWNHWOMHUSLIV" - }, - { - "name": "FWNHWOMHUSSTR", - "source": "elco.FWNHWOMHUSSTR" - }, - { - "name": "FWELIGIBLE", - "source": "elco.FWELIGIBLE" - }, - { - "name": "FWWOMANYID", - "source": "elco.FWWOMANYID" - }, - { - "name": "FWWOMNID", - "source": "elco.FWWOMNID" - }, - { - "name": "FWWOMRETYPENID", - "source": "elco.FWWOMRETYPENID" - }, - { - "name": "FWWOMBID", - "source": "elco.FWWOMBID" - }, - { - "name": "FWWOMRETYPEBID", - "source": "elco.FWWOMRETYPEBID" - }, - { - "name": "FWHUSNAME", - "source": "elco.FWHUSNAME" - }, - { - "name": "FWWOMCOUNTRY", - "source": "elco.FWWOMCOUNTRY" - }, - { - "name": "FWWOMDIVISION", - "source": "elco.FWWOMDIVISION" - }, - { - "name": "FWWOMDISTRICT", - "source": "elco.FWWOMDISTRICT" - }, - { - "name": "FWWOMUPAZILLA", - "source": "elco.FWWOMUPAZILLA" - }, - { - "name": "FWWOMUNION", - "source": "elco.FWWOMUNION" - }, - { - "name": "FWWOMWARD", - "source": "elco.FWWOMWARD" - }, - { - "name": "FWWOMSUBUNIT", - "source": "elco.FWWOMSUBUNIT" - }, - { - "name": "FWWOMMAUZA_PARA", - "source": "elco.FWWOMMAUZA_PARA" - }, - { - "name": "FWWOMGOBHHID", - "source": "elco.FWWOMGOBHHID" - }, - { - "name": "FWWOMGPS", - "source": "elco.FWWOMGPS" - } - ], - "instances": [ - { - "GOBHHID": "2322", - "JiVitAHHID": "9889", - "WomanREGDATE": "2015-10-11", - "FWWOMFNAME": "jackfruit", - "FWWOMLNAME": ".", - "FWBIRTHDATE": "1988-10-08", - "FWGENDER": "female", - "FWWOMAGE": "27", - "display_age": "", - "FWNHWOMSTRMEN": "0", - "FWNHWOMHUSLIV": "1", - "FWNHWOMHUSALV": "", - "FWNHWOMHUSSTR": "0", - "FWELIGIBLE": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "FWWOMANYID": "1 2", - "FWWOMNID": "7675788777775", - "FWWOMRETYPENID": "7675788777775", - "FWWOMBID": "98899998888888888", - "FWWOMRETYPEBID": "98899998888888888", - "FWHUSNAME": "zoom", - "FWWOMCOUNTRY": "Bangladesh", - "FWWOMDIVISION": "RANGPUR", - "FWWOMDISTRICT": "GAIBANDHA", - "FWWOMUPAZILLA": "SADULLAPUR", - "FWWOMUNION": "NALDANGA", - "FWWOMWARD": "Ward-3", - "FWWOMSUBUNIT": "3-KHA", - "FWWOMMAUZA_PARA": "DASLIA+-+ALL+PARAS", - "FWWOMGOBHHID": "2322", - "FWWOMGPS": "23.8002 90.4068 0 10", - "id": "ce71572a-8oc5-u32f-9d3b-4a6b568d5g77" - } - ] - } - ] - } - }, - "serverVersion": 1444734863350 -} \ No newline at end of file diff --git a/opensrp-connector/src/test/resources/form/new_household_registration_with_grouped_subform_data/model.xml b/opensrp-connector/src/test/resources/form/new_household_registration_with_grouped_subform_data/model.xml deleted file mode 100644 index 49e8d05084..0000000000 --- a/opensrp-connector/src/test/resources/form/new_household_registration_with_grouped_subform_data/model.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2000-01-02 00:00:00 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - FWA - - - - - - - \ No newline at end of file diff --git a/opensrp-connector/src/test/resources/form/offsite_child_followup/form.json b/opensrp-connector/src/test/resources/form/offsite_child_followup/form.json deleted file mode 100644 index 03c91a8053..0000000000 --- a/opensrp-connector/src/test/resources/form/offsite_child_followup/form.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"Offsite_Child_Vaccination_Followup","title":"دوسرے سینٹر میں رجسٹرڈ بچّوں کا فالو اپ رجسٹر برائے ٹیکاجات - Off Site Child Follow Up Vaccination Register","sms_keyword":"offsite_child_vaccination_followup","default_language":"English","choices":{"provinces":[{"name":"kpk","label":{"Urdu":"خیبر پختون خواہ","English":"Khyber Pakhtunkhwa","Roman Urdu":"Khyber Pakhtunkhwa"}},{"name":"sindh","label":{"Urdu":"سندھ","English":"Sindh","Roman Urdu":"Sindh"}},{"name":"balochistan","label":{"Urdu":"بلوچستان","English":"Balochistan","Roman Urdu":"Balochistan"}},{"name":"punjab","label":{"Urdu":"پنجاب","English":"Punjab","Roman Urdu":"Punjab"}},{"name":"gilgit_baltistan","label":{"Urdu":"گلگت بلتستان","English":"Gilgit Baltistan","Roman Urdu":"Gilgit Baltistan"}},{"name":"kashmir","label":{"Urdu":"کشمیر","English":"Kashmir","Roman Urdu":"Kashmir"}},{"name":"fata","label":{"Urdu":"فاٹا","English":"FATA","Roman Urdu":"FATA"}},{"name":"out_of_country","label":{"Urdu":"ملک سے باہر","English":"Out of Country","Roman Urdu":"Out of Country"}}],"ucs":[{"province":"sindh","city":"karachi","town":"korangi","name":"bilal_colony","label":{"Urdu":"بلال کالونی","Roman Urdu":"Bilal Colony","English":"Bilal Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"nasir_colony","label":{"Urdu":"ناصر کالونی","Roman Urdu":"Nasir Colony","English":"Nasir Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"chakra_goth","label":{"Urdu":"چکرا گوٹھ","Roman Urdu":"Chakra Goth","English":"Chakra Goth"}},{"province":"sindh","city":"karachi","town":"korangi","name":"mustafa_taj_colony","label":{"Urdu":"مصطفی تاج کالونی","Roman Urdu":"Mustafa Taj Colony","English":"Mustafa Taj Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"hundred_quarters","label":{"Urdu":"ہنڈریڈ کوارٹر","Roman Urdu":"Hundred Quarters","English":"Hundred Quarters"}},{"province":"sindh","city":"karachi","town":"korangi","name":"gulzar_colony","label":{"Urdu":"گلزار کالونی","Roman Urdu":"Gulzar Colony","English":"Gulzar Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"korangi_sector_33","label":{"Urdu":"کورنگی سیکٹر 33","Roman Urdu":"Korangi Sector 33","English":"Korangi Sector 33"}},{"province":"sindh","city":"karachi","town":"korangi","name":"zaman_town","label":{"Urdu":"زمان ٹاوَن","Roman Urdu":"Zaman Town","English":"Zaman Town"}},{"province":"sindh","city":"karachi","town":"korangi","name":"hasrat_mohani_colony","label":{"Urdu":"حسرت موہانی کالونی","Roman Urdu":"Hasrat Mohani Colony","English":"Hasrat Mohani Colony"}},{"province":"sindh","city":"karachi","town":"baldia","name":"gulshan_e_ghazi","label":{"Urdu":"گلشن غازی","Roman Urdu":"Gulshan-e-Ghazi","English":"Gulshan-e-Ghazi"}},{"province":"sindh","city":"karachi","town":"baldia","name":"ittehad_town","label":{"Urdu":"اتحاد ٹاوَن","Roman Urdu":"Ittehad Town","English":"Ittehad Town"}},{"province":"sindh","city":"karachi","town":"baldia","name":"islam_nagar","label":{"Urdu":"اسلام نگر","Roman Urdu":"Islam Nagar","English":"Islam Nagar"}},{"province":"sindh","city":"karachi","town":"baldia","name":"nai_abadi","label":{"Urdu":"نئی آبادی","Roman Urdu":"Nai Abadi","English":"Nai Abadi"}},{"province":"sindh","city":"karachi","town":"baldia","name":"saeedabad","label":{"Urdu":"سعید آباد","Roman Urdu":"Saeedabad","English":"Saeedabad"}},{"province":"sindh","city":"karachi","town":"baldia","name":"muslim_mujahid_colony","label":{"Urdu":"مسلم مجاہد کالونی","Roman Urdu":"Muslim Mujahid Colony","English":"Muslim Mujahid Colony"}},{"province":"sindh","city":"karachi","town":"baldia","name":"muhajir_camp","label":{"Urdu":"مہاجر کیمپ","Roman Urdu":"Muhajir Camp","English":"Muhajir Camp"}},{"province":"sindh","city":"karachi","town":"baldia","name":"rasheedabad","label":{"Urdu":"رشید آباد","Roman Urdu":"Rasheedabad","English":"Rasheedabad"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"ibrahim_hyderi","label":{"Urdu":"ابراہیم حیدری","Roman Urdu":"Ibrahim Hyderi","English":"Ibrahim Hyderi"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"rehri","label":{"Urdu":"رہڑی","Roman Urdu":"Rehri","English":"Rehri"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"cattle_colony","label":{"Urdu":"کیٹل کالونی","Roman Urdu":"Cattle Colony","English":"Cattle Colony"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"qaidabad","label":{"Urdu":"قائدآباد","Roman Urdu":"Qaidabad","English":"Qaidabad"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"landhi_colony","label":{"Urdu":"لانڈھی کالونی","Roman Urdu":"Landhi Colony","English":"Landhi Colony"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"gulshan_e_hadeed","label":{"Urdu":"گلشن حدید","Roman Urdu":"Gulshan-e-Hadeed","English":"Gulshan-e-Hadeed"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"gaghar","label":{"Urdu":"گگر","Roman Urdu":"Gaghar","English":"Gaghar"}},{"province":"sindh","city":"karachi","town":"gadap","name":"murad_memon_goth","label":{"Urdu":"مراد میمن گوٹھ","Roman Urdu":"Murad Memon Goth","English":"Murad Memon Goth"}},{"province":"sindh","city":"karachi","town":"gadap","name":"darsano_chana","label":{"Urdu":"درشانو شنو","Roman Urdu":"Darsano Chana","English":"Darsano Chana"}},{"province":"sindh","city":"karachi","town":"gadap","name":"gujro","label":{"Urdu":"گجرو","Roman Urdu":"Gujro","English":"Gujro"}},{"province":"sindh","city":"karachi","town":"gadap","name":"songal","label":{"Urdu":"سنگل","Roman Urdu":"Songal","English":"Songal"}},{"province":"sindh","city":"karachi","town":"gadap","name":"maymarabad","label":{"Urdu":"معمار آباد","Roman Urdu":"Maymarabad","English":"Maymarabad"}},{"province":"sindh","city":"karachi","town":"gadap","name":"yousuf_goth","label":{"Urdu":"یوسف گوٹھ","Roman Urdu":"Yousuf Goth","English":"Yousuf Goth"}},{"province":"sindh","city":"karachi","town":"gadap","name":"manghopir","label":{"Urdu":"منگھوپیر","Roman Urdu":"Manghopir","English":"Manghopir"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"azizabad","label":{"Urdu":"عزیز آباد","Roman Urdu":"Azizabad","English":"Azizabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"karimabad","label":{"Urdu":"کریم آباد","Roman Urdu":"Karimabad","English":"Karimabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"aisha_manzil","label":{"Urdu":"عائشہ منزل","Roman Urdu":"Aisha Manzil","English":"Aisha Manzil"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"ancholi","label":{"Urdu":"انچولی","Roman Urdu":"Ancholi","English":"Ancholi"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"naseerabad","label":{"Urdu":"نصیرآباد","Roman Urdu":"Naseerabad","English":"Naseerabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"yaseenabad","label":{"Urdu":"یاسین آباد","Roman Urdu":"Yaseenabad","English":"Yaseenabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"water_pump","label":{"Urdu":"واٹرپمپ","Roman Urdu":"Water Pump","English":"Water Pump"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"shafiq_mill_colony","label":{"Urdu":"شفیق مل کالونی","Roman Urdu":"Shafiq Mill Colony","English":"Shafiq Mill Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"delhi_mercantile_society","label":{"Urdu":"دہلی مرچنٹائل سوسائٹی","Roman Urdu":"Delhi Mercantile Society","English":"Delhi Mercantile Society"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"civic_centre","label":{"Urdu":"سوک سینٹر","Roman Urdu":"Civic Centre","English":"Civic Centre"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"pir_ilahi_buksh_colony","label":{"Urdu":"پیر الہی بخش کالونی","Roman Urdu":"Pir Ilahi Buksh Colony","English":"Pir Ilahi Buksh Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"essa_nagri","label":{"Urdu":"عیسی نگری","Roman Urdu":"Essa Nagri","English":"Essa Nagri"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gulshan_e_iqbal","label":{"Urdu":"گلشن اقبال","Roman Urdu":"Gulshan-e-Iqbal","English":"Gulshan-e-Iqbal"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gillani_railway_station","label":{"Urdu":"گیلانی ریلوے اسٹیشن","Roman Urdu":"Gillani Railway Station","English":"Gillani Railway Station"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"shanti_nagar","label":{"Urdu":"شانتی نگر","Roman Urdu":"Shanti Nagar","English":"Shanti Nagar"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"jamali_colony","label":{"Urdu":"جمالی کالونی","Roman Urdu":"Jamali Colony","English":"Jamali Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gulshan_e_iqbal_ii","label":{"Urdu":"گلشن اقبال 2","Roman Urdu":"Gulshan-e-Iqbal II","English":"Gulshan-e-Iqbal II"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"pehlwan_goth","label":{"Urdu":"پہلوان گوٹھ","Roman Urdu":"Pehlwan Goth","English":"Pehlwan Goth"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"matrovil_colony","label":{"Urdu":"میٹروویل کالونی","Roman Urdu":"Matrovil Colony","English":"Matrovil Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gulzar_e_hijri","label":{"Urdu":"گلزار ہجری","Roman Urdu":"Gulzar-e-Hijri","English":"Gulzar-e-Hijri"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"safooran_goth","label":{"Urdu":"صفورا گوٹھ","Roman Urdu":"Safooran Goth","English":"Safooran Goth"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"akhtar_colony","label":{"Urdu":"اختر کالونی","Roman Urdu":"Akhtar Colony","English":"Akhtar Colony"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"manzoor_colony","label":{"Urdu":"منظور کالونی","Roman Urdu":"Manzoor Colony","English":"Manzoor Colony"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"azam_basti","label":{"Urdu":"اعظم بستی","Roman Urdu":"Azam Basti","English":"Azam Basti"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"chanesar_goth","label":{"Urdu":"چنیسر گوٹھ","Roman Urdu":"Chanesar Goth","English":"Chanesar Goth"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"mahmudabad","label":{"Urdu":"محمودآباد","Roman Urdu":"Mahmudabad","English":"Mahmudabad"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"pechs","label":{"Urdu":"پی۔ای۔سی۔ایچ۔ایس","Roman Urdu":"P.E.C.H.S.","English":"P.E.C.H.S."}},{"province":"sindh","city":"karachi","town":"jamshed","name":"pechs_ii","label":{"Urdu":"پی۔ای۔سی۔ایچ۔ایس 2","Roman Urdu":"P.E.C.H.S. II","English":"P.E.C.H.S. II"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"jut_line","label":{"Urdu":"جٹ لائن","Roman Urdu":"Jut Line","English":"Jut Line"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"central_jacob_lines","label":{"Urdu":"سینٹرل جیکب لائن","Roman Urdu":"Central Jacob Lines","English":"Central Jacob Lines"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"jamshed_quarters","label":{"Urdu":"جمشید کوارٹر","Roman Urdu":"Jamshed Quarters","English":"Jamshed Quarters"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"garden_east","label":{"Urdu":"گارڈن ایسٹ","Roman Urdu":"Garden East","English":"Garden East"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"soldier_bazar","label":{"Urdu":"سولجر بازار","Roman Urdu":"Soldier Bazar","English":"Soldier Bazar"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"pakistan_quarters","label":{"Urdu":"پاکستان کوارٹر","Roman Urdu":"Pakistan Quarters","English":"Pakistan Quarters"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"bhutta_village","label":{"Urdu":"بھٹا ولیج","Roman Urdu":"Bhutta Village","English":"Bhutta Village"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"sultanabad","label":{"Urdu":"سلطان آباد","Roman Urdu":"Sultanabad","English":"Sultanabad"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"kiamari_uc","label":{"Urdu":"کیماری یو- سی","Roman Urdu":"Kiamari UC","English":"Kiamari UC"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"baba_bhit","label":{"Urdu":"بابا بھٹ","Roman Urdu":"Baba Bhit","English":"Baba Bhit"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"machar_colony","label":{"Urdu":"مچھر کالونی","Roman Urdu":"Machar Colony","English":"Machar Colony"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"maripur","label":{"Urdu":"ماڑی پور","Roman Urdu":"Maripur","English":"Maripur"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"shershah","label":{"Urdu":"شیرشاہ","Roman Urdu":"SherShah","English":"SherShah"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"gabo_pat","label":{"Urdu":"گابو پٹ","Roman Urdu":"Gabo Pat","English":"Gabo Pat"}},{"province":"sindh","city":"karachi","town":"landhi","name":"muzafarabad","label":{"Urdu":"مظفرآباد","Roman Urdu":"Muzafarabad","English":"Muzafarabad"}},{"province":"sindh","city":"karachi","town":"landhi","name":"muslimabad","label":{"Urdu":"مسلم آباد","Roman Urdu":"Muslimabad","English":"Muslimabad"}},{"province":"sindh","city":"karachi","town":"landhi","name":"dawood_chowrangi","label":{"Urdu":"داوَد چورنگی","Roman Urdu":"Dawood Chowrangi","English":"Dawood Chowrangi"}},{"province":"sindh","city":"karachi","town":"landhi","name":"moinabad","label":{"Urdu":"معین آباد","Roman Urdu":"Moinabad","English":"Moinabad"}},{"province":"sindh","city":"karachi","town":"landhi","name":"sharafi_goth","label":{"Urdu":"شرافی گوٹھ","Roman Urdu":"Sharafi Goth","English":"Sharafi Goth"}},{"province":"sindh","city":"karachi","town":"landhi","name":"bhutto_nagar","label":{"Urdu":"بھٹو نگر","Roman Urdu":"Bhutto Nagar","English":"Bhutto Nagar"}},{"province":"sindh","city":"karachi","town":"landhi","name":"khawaja_ajmeer_colony","label":{"Urdu":"خواجہ اجمیر کالونی","Roman Urdu":"Khawaja Ajmeer Colony","English":"Khawaja Ajmeer Colony"}},{"province":"sindh","city":"karachi","town":"landhi","name":"landhi_uc","label":{"Urdu":"لانڈھی یوسی","Roman Urdu":"Landhi UC","English":"Landhi UC"}},{"province":"sindh","city":"karachi","town":"landhi","name":"awami_colony","label":{"Urdu":"عوامی کالونی","Roman Urdu":"Awami Colony","English":"Awami Colony"}},{"province":"sindh","city":"karachi","town":"landhi","name":"burmee_colony","label":{"Urdu":"برمی کالونی","Roman Urdu":"Burmee Colony","English":"Burmee Colony"}},{"province":"sindh","city":"karachi","town":"landhi","name":"korangi_uc","label":{"Urdu":"کورنگی یوسی","Roman Urdu":"Korangi UC","English":"Korangi UC"}},{"province":"sindh","city":"karachi","town":"landhi","name":"sherabad","label":{"Urdu":"شیرآباد","Roman Urdu":"Sherabad","English":"Sherabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"rizvia_society","label":{"Urdu":"رضویہ سوسائٹی","Roman Urdu":"Rizvia Society","English":"Rizvia Society"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"firdous_colony","label":{"Urdu":"فردوس کالونی","Roman Urdu":"Firdous Colony","English":"Firdous Colony"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"super_market","label":{"Urdu":"سپر مارکیٹ","Roman Urdu":"Super Market","English":"Super Market"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"dak_khana","label":{"Urdu":"دک کھانہ","Roman Urdu":"Dak Khana","English":"Dak Khana"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"qasimabad","label":{"Urdu":"قاسم آباد","Roman Urdu":"Qasimabad","English":"Qasimabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"bandhani_colony","label":{"Urdu":"بندھانی کالونی","Roman Urdu":"Bandhani Colony","English":"Bandhani Colony"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"sharifabad","label":{"Urdu":"شریف آباد","Roman Urdu":"Sharifabad","English":"Sharifabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"commercial_area","label":{"Urdu":"کمرشل ایریا","Roman Urdu":"Commercial Area","English":"Commercial Area"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"mujahid_colony","label":{"Urdu":"مجاہد کالونی","Roman Urdu":"Mujahid Colony","English":"Mujahid Colony"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"nazimabad","label":{"Urdu":"ناظم آباد","Roman Urdu":"Nazimabad","English":"Nazimabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"abbasi_shaheed","label":{"Urdu":"عباسی شہید","Roman Urdu":"Abbasi Shaheed","English":"Abbasi Shaheed"}},{"province":"sindh","city":"karachi","town":"lyari","name":"agra_taj_colony","label":{"Urdu":"آگرہ تاج کالونی","Roman Urdu":"Agra Taj Colony","English":"Agra Taj Colony"}},{"province":"sindh","city":"karachi","town":"lyari","name":"daryaabad","label":{"Urdu":"دریاآباد","Roman Urdu":"Daryaabad","English":"Daryaabad"}},{"province":"sindh","city":"karachi","town":"lyari","name":"nawabad","label":{"Urdu":"نواآباد","Roman Urdu":"Nawabad","English":"Nawabad"}},{"province":"sindh","city":"karachi","town":"lyari","name":"khada_memon_society","label":{"Urdu":"خدا- میمن- سوساَٹی","Roman Urdu":"Khada Memon Society","English":"Khada Memon Society"}},{"province":"sindh","city":"karachi","town":"lyari","name":"baghdadi","label":{"Urdu":"بغدادی","Roman Urdu":"Baghdadi","English":"Baghdadi"}},{"province":"sindh","city":"karachi","town":"lyari","name":"shah_baig_line","label":{"Urdu":"شاھ باغ لائن","Roman Urdu":"Shah Baig Line","English":"Shah Baig Line"}},{"province":"sindh","city":"karachi","town":"lyari","name":"bihar_colony","label":{"Urdu":"بہار کالونی","Roman Urdu":"Bihar Colony","English":"Bihar Colony"}},{"province":"sindh","city":"karachi","town":"lyari","name":"ragiwara","label":{"Urdu":"راگی واڑا","Roman Urdu":"Ragiwara","English":"Ragiwara"}},{"province":"sindh","city":"karachi","town":"lyari","name":"singo_line","label":{"Urdu":"سنگولائن","Roman Urdu":"Singo Line","English":"Singo Line"}},{"province":"sindh","city":"karachi","town":"lyari","name":"chakiwara","label":{"Urdu":"چاکی واڑا","Roman Urdu":"Chakiwara","English":"Chakiwara"}},{"province":"sindh","city":"karachi","town":"lyari","name":"allama_iqbal_colony","label":{"Urdu":"علامہ اقبال کالونی","Roman Urdu":"Allama Iqbal Colony","English":"Allama Iqbal Colony"}},{"province":"sindh","city":"karachi","town":"malir","name":"model_colony","label":{"Urdu":"موڈل کالونی","Roman Urdu":"Model Colony","English":"Model Colony"}},{"province":"sindh","city":"karachi","town":"malir","name":"kala_board","label":{"Urdu":"کالا بورڈ","Roman Urdu":"Kala Board","English":"Kala Board"}},{"province":"sindh","city":"karachi","town":"malir","name":"saudabad","label":{"Urdu":"سعودآباد","Roman Urdu":"Saudabad","English":"Saudabad"}},{"province":"sindh","city":"karachi","town":"malir","name":"khokhra_par","label":{"Urdu":"کھوکھرا پار","Roman Urdu":"Khokhra Par","English":"Khokhra Par"}},{"province":"sindh","city":"karachi","town":"malir","name":"jafar_e_tayyar","label":{"Urdu":"جعفر تیار","Roman Urdu":"Jafar-e-Tayyar","English":"Jafar-e-Tayyar"}},{"province":"sindh","city":"karachi","town":"malir","name":"gharibabad","label":{"Urdu":"غریب آباد","Roman Urdu":"Gharibabad","English":"Gharibabad"}},{"province":"sindh","city":"karachi","town":"malir","name":"ghazi_brohi_goth","label":{"Urdu":"غازی بروہی گوٹھ","Roman Urdu":"Ghazi Brohi Goth","English":"Ghazi Brohi Goth"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"kalyana","label":{"Urdu":"کالیانہ","Roman Urdu":"Kalyana","English":"Kalyana"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"sir_syed_colony","label":{"Urdu":"سر سید کالونی","Roman Urdu":"Sir Syed Colony","English":"Sir Syed Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"fatima_jinnah_colony","label":{"Urdu":"فاطمہ جناح کالونی","Roman Urdu":"Fatima Jinnah Colony","English":"Fatima Jinnah Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"godhra","label":{"Urdu":"گودھرا","Roman Urdu":"Godhra","English":"Godhra"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"abu_zar_ghaffari","label":{"Urdu":"ابو زر غفاری","Roman Urdu":"Abu Zar Ghaffari","English":"Abu Zar Ghaffari"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"hakim_ahsan","label":{"Urdu":"حاکم احسان","Roman Urdu":"Hakim Ahsan","English":"Hakim Ahsan"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"madina_colony","label":{"Urdu":"مدینہ کالونی","Roman Urdu":"Madina Colony","English":"Madina Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"faisal_colony","label":{"Urdu":"فیصل کالونی","Roman Urdu":"Faisal Colony","English":"Faisal Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"khamiso_goth","label":{"Urdu":"خمیسو گوٹھ","Roman Urdu":"Khamiso Goth","English":"Khamiso Goth"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"mustufa_colony","label":{"Urdu":"مصطفی کالونی","Roman Urdu":"Mustufa Colony","English":"Mustufa Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"khawaja_ajmeer_nagri","label":{"Urdu":"خواجہ اجمیر نگری","Roman Urdu":"Khawaja Ajmeer Nagri","English":"Khawaja Ajmeer Nagri"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"gulshan_e_saeed","label":{"Urdu":"گلشن سعید","Roman Urdu":"Gulshan-e-Saeed","English":"Gulshan-e-Saeed"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"shah_nawaz_bhutto_colony","label":{"Urdu":"شاہ نواز بھٹو کالونی","Roman Urdu":"Shah Nawaz Bhutto Colony","English":"Shah Nawaz Bhutto Colony"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"paposh_nagar","label":{"Urdu":"پاپوش نگر","Roman Urdu":"Paposh Nagar","English":"Paposh Nagar"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"pahar_ganj","label":{"Urdu":"پہاڑ گنج","Roman Urdu":"Pahar Ganj","English":"Pahar Ganj"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"khandu_goth","label":{"Urdu":"کھنڑو گوٹھ","Roman Urdu":"Khandu Goth","English":"Khandu Goth"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"hyderi","label":{"Urdu":"حیدری","Roman Urdu":"Hyderi","English":"Hyderi"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"sakhi_hassan","label":{"Urdu":"سخی حسن","Roman Urdu":"Sakhi Hassan","English":"Sakhi Hassan"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"farooq_e_azam","label":{"Urdu":"فاروق اعظم","Roman Urdu":"Farooq-e-Azam","English":"Farooq-e-Azam"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"nusrat_bhutto_colony","label":{"Urdu":"نصرت بھٹو کالونی","Roman Urdu":"Nusrat Bhutto Colony","English":"Nusrat Bhutto Colony"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"shadman_town","label":{"Urdu":"شادمان ٹاوَن","Roman Urdu":"Shadman Town","English":"Shadman Town"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"buffer_zone","label":{"Urdu":"بفرزون","Roman Urdu":"Buffer Zone","English":"Buffer Zone"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"buffer_zone_ii","label":{"Urdu":"بفرزون 2","Roman Urdu":"Buffer Zone II","English":"Buffer Zone II"}},{"province":"sindh","city":"karachi","town":"orangi","name":"mominabad","label":{"Urdu":"مومن آباد","Roman Urdu":"Mominabad","English":"Mominabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"haryana_colony","label":{"Urdu":"حریانہ کالونی","Roman Urdu":"Haryana Colony","English":"Haryana Colony"}},{"province":"sindh","city":"karachi","town":"orangi","name":"hanifabad","label":{"Urdu":"حنیف آباد","Roman Urdu":"Hanifabad","English":"Hanifabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"mohammad_nagar","label":{"Urdu":"محمد نگر","Roman Urdu":"Mohammad Nagar","English":"Mohammad Nagar"}},{"province":"sindh","city":"karachi","town":"orangi","name":"madina_colony_orangi","label":{"Urdu":"مدینہ کالونی اورنگی","Roman Urdu":"Madina Colony Orangi","English":"Madina Colony Orangi"}},{"province":"sindh","city":"karachi","town":"orangi","name":"ghaziabad","label":{"Urdu":"غازی آباد","Roman Urdu":"Ghaziabad","English":"Ghaziabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"chisti_nagar","label":{"Urdu":"چشتی نگر","Roman Urdu":"Chisti Nagar","English":"Chisti Nagar"}},{"province":"sindh","city":"karachi","town":"orangi","name":"bilal_colony_orangi","label":{"Urdu":"بلال کالونی اورنگی","Roman Urdu":"Bilal Colony Orangi","English":"Bilal Colony Orangi"}},{"province":"sindh","city":"karachi","town":"orangi","name":"iqbal_baloch_colony","label":{"Urdu":"اقبال بلوچ کالونی","Roman Urdu":"Iqbal Baloch Colony","English":"Iqbal Baloch Colony"}},{"province":"sindh","city":"karachi","town":"orangi","name":"ghabool_town","label":{"Urdu":"گبول ٹاوَن","Roman Urdu":"Ghabool Town","English":"Ghabool Town"}},{"province":"sindh","city":"karachi","town":"orangi","name":"data_nagar","label":{"Urdu":"داتا نگر","Roman Urdu":"Data Nagar","English":"Data Nagar"}},{"province":"sindh","city":"karachi","town":"orangi","name":"mujahidabad","label":{"Urdu":"مجاہد آباد","Roman Urdu":"Mujahidabad","English":"Mujahidabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"baloch_goth","label":{"Urdu":"بلوچ گوٹھ","Roman Urdu":"Baloch Goth","English":"Baloch Goth"}},{"province":"sindh","city":"karachi","town":"saddar","name":"old_haji_camp","label":{"Urdu":"پرانہ حاجی کیمپ","Roman Urdu":"Old Haji Camp","English":"Old Haji Camp"}},{"province":"sindh","city":"karachi","town":"saddar","name":"garden","label":{"Urdu":"گارڈن","Roman Urdu":"Garden","English":"Garden"}},{"province":"sindh","city":"karachi","town":"saddar","name":"kharadar","label":{"Urdu":"کھارادر","Roman Urdu":"Kharadar","English":"Kharadar"}},{"province":"sindh","city":"karachi","town":"saddar","name":"city_railway_colony","label":{"Urdu":"سٹی ریلوے کالونی","Roman Urdu":"City Railway Colony","English":"City Railway Colony"}},{"province":"sindh","city":"karachi","town":"saddar","name":"nanak_wara","label":{"Urdu":"ناناک واڑا","Roman Urdu":"Nanak Wara","English":"Nanak Wara"}},{"province":"sindh","city":"karachi","town":"saddar","name":"gazdarabad","label":{"Urdu":"گزدرآباد","Roman Urdu":"Gazdarabad","English":"Gazdarabad"}},{"province":"sindh","city":"karachi","town":"saddar","name":"millat_nagar_islam_pura","label":{"Urdu":"ملت نگر اسلام پورا","Roman Urdu":"Millat Nagar/Islam Pura","English":"Millat Nagar/Islam Pura"}},{"province":"sindh","city":"karachi","town":"saddar","name":"saddar_uc","label":{"Urdu":"صدر یو سی","Roman Urdu":"Saddar UC","English":"Saddar UC"}},{"province":"sindh","city":"karachi","town":"saddar","name":"civil_line","label":{"Urdu":"سول لائن","Roman Urdu":"Civil Line","English":"Civil Line"}},{"province":"sindh","city":"karachi","town":"saddar","name":"clifton","label":{"Urdu":"کلفٹن","Roman Urdu":"Clifton","English":"Clifton"}},{"province":"sindh","city":"karachi","town":"saddar","name":"kehkashan","label":{"Urdu":"کہکشان","Roman Urdu":"Kehkashan","English":"Kehkashan"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"natha_khan_goth","label":{"Urdu":"ناتھا خان گوٹھ","Roman Urdu":"Natha Khan Goth","English":"Natha Khan Goth"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"pak_sadat_colony","label":{"Urdu":"پاک صدر کالونی","Roman Urdu":"Pak Sadat Colony","English":"Pak Sadat Colony"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"drigh_colony","label":{"Urdu":"ڈرگ کالونی","Roman Urdu":"Drigh Colony","English":"Drigh Colony"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"raita_plot","label":{"Urdu":"رائتا پلاٹ","Roman Urdu":"Raita Plot","English":"Raita Plot"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"moria_khan_goth","label":{"Urdu":"موریا خان گوٹھ","Roman Urdu":"Moria Khan Goth","English":"Moria Khan Goth"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"rafa_e_aam_society","label":{"Urdu":"رفا عام سوسا ئٹی","Roman Urdu":"Rafa-e-Aam Society","English":"Rafa-e-Aam Society"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"al_falah_society","label":{"Urdu":"الفلاح سوسا ئٹی","Roman Urdu":"Al-Falah Society","English":"Al-Falah Society"}},{"province":"sindh","city":"karachi","town":"site","name":"pak_colony","label":{"Urdu":"پاک کالونی","Roman Urdu":"Pak Colony","English":"Pak Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"old_golimar","label":{"Urdu":"پرانہ گولی مار","Roman Urdu":"Old Golimar","English":"Old Golimar"}},{"province":"sindh","city":"karachi","town":"site","name":"jahanabad","label":{"Urdu":"جہان آباد","Roman Urdu":"Jahanabad","English":"Jahanabad"}},{"province":"sindh","city":"karachi","town":"site","name":"metrovil","label":{"Urdu":"میٹروویل","Roman Urdu":"Metrovil","English":"Metrovil"}},{"province":"sindh","city":"karachi","town":"site","name":"bhawani_chali","label":{"Urdu":"بہوانی چالی","Roman Urdu":"Bhawani Chali","English":"Bhawani Chali"}},{"province":"sindh","city":"karachi","town":"site","name":"frontier_colony","label":{"Urdu":"فرونٹر کالونی","Roman Urdu":"Frontier Colony","English":"Frontier Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"banaras_colony","label":{"Urdu":"بنارس کالونی","Roman Urdu":"Banaras Colony","English":"Banaras Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"qasba_colony","label":{"Urdu":"قصبہ کالونی","Roman Urdu":"Qasba Colony","English":"Qasba Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"islamia_colony","label":{"Urdu":"اسلامیہ کالونی","Roman Urdu":"Islamia Colony","English":"Islamia Colony"}},{"province":"na","city":"na","town":"na","name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}},{"province":"na","city":"na","town":"na","name":"not_applicable","label":{"Urdu":"قابل اطلاق نہیں","Roman Urdu":"Qaabil-e-atlaaq nahi","English":"Not Applicable"}}],"gender":[{"instance":{"openmrs_code":"1534AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"male","label":{"Urdu":"مرد/ لڑکا","Roman Urdu":"Mard/larka","English":"Male"}},{"instance":{"openmrs_code":"1535AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"female","label":{"Urdu":"عورت/لڑکی","Roman Urdu":"Aurat/larki","English":"Female"}},{"instance":{"openmrs_code":"163163AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"transgender","label":{"Urdu":"خواجہ سرہ","Roman Urdu":"Khwaja sira","English":"Transgender"}}],"vaccines":[{"instance":{"openmrs_code":"1570AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"bcg","label":{"Urdu":"بی سی جی","Roman Urdu":"BCG","English":"BCG"}},{"instance":{"openmrs_code":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv0","label":{"Urdu":"او پی وی 0","Roman Urdu":"OPV 0","English":"OPV 0"}},{"instance":{"openmrs_code":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv1","label":{"Urdu":"پی سی وی 1","Roman Urdu":"PCV 1","English":"PCV 1"}},{"instance":{"openmrs_code":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv1","label":{"Urdu":"او پی وی 1","Roman Urdu":"OPV 1","English":"OPV 1"}},{"instance":{"openmrs_code":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta11","label":{"Urdu":"پینٹا ویلنٹ 1","Roman Urdu":"Pentavalent 1","English":"Pentavalent 1"}},{"instance":{"openmrs_code":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv2","label":{"Urdu":"پی سی وی 2","Roman Urdu":"PCV 2","English":"PCV 2"}},{"instance":{"openmrs_code":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv2","label":{"Urdu":"او پی وی 2","Roman Urdu":"OPV 2","English":"OPV 2"}},{"instance":{"openmrs_code":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta12","label":{"Urdu":"پینٹا ویلنٹ 2","Roman Urdu":"Pentavalent 2","English":"Pentavalent 2"}},{"instance":{"openmrs_code":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv3","label":{"Urdu":"پی سی وی 3","Roman Urdu":"PCV 3","English":"PCV 3"}},{"instance":{"openmrs_code":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv3","label":{"Urdu":"او پی وی 3","Roman Urdu":"OPV 3","English":"OPV 3"}},{"instance":{"openmrs_code":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta13","label":{"Urdu":"پینٹا ویلنٹ 3","Roman Urdu":"Pentavalent 3","English":"Pentavalent 3"}},{"instance":{"openmrs_code":"82242AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ipv","label":{"Urdu":"آئی پی وی","Roman Urdu":"IPV","English":"IPV"}},{"instance":{"openmrs_code":"79409AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"measles1","label":{"Urdu":"خسرہ 1","Roman Urdu":"Khasra 1","English":"Measles 1"}},{"instance":{"openmrs_code":"79409AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"measles2","label":{"Urdu":"خسرہ 2","Roman Urdu":"Khasra 2","English":"Measles 2"}}],"towns":[{"province":"sindh","city":"karachi","name":"korangi","label":{"Urdu":"کورنگی","Roman Urdu":"Korangi","English":"Korangi"}},{"province":"sindh","city":"karachi","name":"landhi","label":{"Urdu":"لانڈھی","Roman Urdu":"Landhi","English":"Landhi"}},{"province":"sindh","city":"karachi","name":"baldia","label":{"Urdu":"بلدیہ","Roman Urdu":"Baldia","English":"Baldia"}},{"province":"sindh","city":"karachi","name":"bin_qasim","label":{"Urdu":"بن قاسم","Roman Urdu":"Bin Qasim","English":"Bin Qasim"}},{"province":"sindh","city":"karachi","name":"gadap","label":{"Urdu":"گڈاپ","Roman Urdu":"Gadap","English":"Gadap"}},{"province":"sindh","city":"karachi","name":"gulberg","label":{"Urdu":"گلبرگ","Roman Urdu":"Gulberg","English":"Gulberg"}},{"province":"sindh","city":"karachi","name":"gulshan","label":{"Urdu":"گلشن","Roman Urdu":"Gulshan","English":"Gulshan"}},{"province":"sindh","city":"karachi","name":"jamshed","label":{"Urdu":"جمشید","Roman Urdu":"Jamshed","English":"Jamshed"}},{"province":"sindh","city":"karachi","name":"kiamari","label":{"Urdu":"کیماری","Roman Urdu":"Kiamari","English":"Kiamari"}},{"province":"sindh","city":"karachi","name":"liaquatabad","label":{"Urdu":"لیاقت آباد","Roman Urdu":"Liaquatabad","English":"Liaquatabad"}},{"province":"sindh","city":"karachi","name":"lyari","label":{"Urdu":"لیاری","Roman Urdu":"Lyari","English":"Lyari"}},{"province":"sindh","city":"karachi","name":"malir","label":{"Urdu":"ملیر","Roman Urdu":"Malir","English":"Malir"}},{"province":"sindh","city":"karachi","name":"new_karachi","label":{"Urdu":"نیو کراچی","Roman Urdu":"New Karachi","English":"New Karachi"}},{"province":"sindh","city":"karachi","name":"north_nazimabad","label":{"Urdu":"نارتھ ناظم آباد","Roman Urdu":"North Nazimabad","English":"North Nazimabad"}},{"province":"sindh","city":"karachi","name":"orangi","label":{"Urdu":"اورنگی","Roman Urdu":"Orangi","English":"Orangi"}},{"province":"sindh","city":"karachi","name":"saddar","label":{"Urdu":"صدر","Roman Urdu":"Saddar","English":"Saddar"}},{"province":"sindh","city":"karachi","name":"shah_faisal","label":{"Urdu":"شاہ فیصل","Roman Urdu":"Shah Faisal","English":"Shah Faisal"}},{"province":"sindh","city":"karachi","name":"site","label":{"Urdu":"سائٹ","Roman Urdu":"S.I.T.E.","English":"S.I.T.E."}},{"province":"na","city":"na","name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}},{"province":"na","city":"na","name":"not_applicable","label":{"Urdu":"قابل اطلاق نہیں","Roman Urdu":"Qaabil-e-atlaaq nahi","English":"Not Applicable"}}],"cities":[{"province":"sindh","name":"karachi","label":{"Urdu":"کراچی","Roman Urdu":"Karachi","English":"Karachi"}},{"province":"punjab","name":"hafizabad","label":{"Urdu":"حافظ آباد","Roman Urdu":"Hafizabad","English":"Hafizabad"}},{"province":"punjab","name":"muzaffargarh","label":{"Urdu":"مظفر گڑھ","Roman Urdu":"Muzaffargarh","English":"Muzaffargarh"}},{"province":"na","name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}},{"province":"na","name":"not_applicable","label":{"Urdu":"قابل اطلاق نہیں","Roman Urdu":"Qaabil-e-atlaaq nahi","English":"Not Applicable"}}],"yes_no":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}]},"instance":{"encounter_type":"Off Site Child Vaccination Follow Up"},"version":"201604080501","id_string":"offsite_child_vaccination_followup","type":"survey","children":[{"type":"hidden","name":"provider_uc"},{"type":"hidden","name":"provider_town"},{"type":"hidden","name":"provider_city"},{"type":"hidden","name":"provider_province"},{"type":"hidden","name":"existing_first_name"},{"type":"hidden","name":"existing_last_name"},{"type":"hidden","name":"existing_mother_name"},{"type":"hidden","name":"existing_gender"},{"type":"hidden","name":"existing_client_birth_date"},{"type":"hidden","name":"existing_client_reg_date"},{"type":"hidden","name":"existing_landmark"},{"type":"hidden","name":"existing_house_number"},{"type":"hidden","name":"existing_street"},{"type":"hidden","name":"existing_union_council"},{"type":"hidden","name":"existing_town"},{"type":"hidden","name":"existing_city_village"},{"type":"hidden","name":"existing_province"},{"type":"hidden","name":"existing_union_councilname"},{"type":"hidden","name":"existing_townname"},{"type":"hidden","name":"existing_city_villagename"},{"type":"hidden","name":"existing_provincename"},{"type":"hidden","name":"existing_ethnicity"},{"type":"hidden","name":"existing_program_client_id"},{"type":"hidden","name":"existing_epi_card_number"},{"type":"hidden","name":"existing_child_was_suffering_from_a_disease_at_birth"},{"type":"hidden","name":"existing_reminders_approval"},{"type":"hidden","name":"existing_contact_phone_number"},{"type":"hidden","name":"e_bcg"},{"type":"hidden","name":"e_opv0"},{"type":"hidden","name":"e_penta2"},{"type":"hidden","name":"e_penta1"},{"type":"hidden","name":"e_penta3"},{"type":"hidden","name":"e_opv1"},{"type":"hidden","name":"e_opv2"},{"type":"hidden","name":"e_opv3"},{"type":"hidden","name":"e_pcv1"},{"type":"hidden","name":"e_pcv2"},{"type":"hidden","name":"e_pcv3"},{"type":"hidden","name":"e_measles1"},{"type":"hidden","name":"e_measles2"},{"type":"hidden","name":"e_ipv"},{"type":"hidden","name":"provider_id"},{"instance":{"openmrs_entity_id":"location_id","openmrs_entity":"encounter"},"type":"hidden","name":"provider_location_id"},{"type":"hidden","name":"provider_location_name"},{"type":"note","name":"provider_location_note","label":{"Urdu":"شہر: ${provider_city} ; ٹائون: ${provider_town} ; یوسی: ${provider_uc} ; سینٹرکا نام: ${provider_location_name}","English":"City: ${provider_city} ; Town: ${provider_town} ; UC: ${provider_uc} ; Center Name: ${provider_location_name}","Roman Urdu":"Shehr: ${provider_city} ; Town: ${provider_town} ; UC: ${provider_uc} ; Center ka Naam: ${provider_location_name}"}},{"instance":{"openmrs_entity_id":"163137AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"start","name":"start"},{"instance":{"openmrs_entity_id":"163138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"end","name":"end"},{"instance":{"openmrs_entity_id":"163286AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"today","name":"today"},{"instance":{"openmrs_entity_id":"163149AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"deviceid","name":"deviceid"},{"instance":{"openmrs_entity_id":"163150AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"subscriberid","name":"subscriberid"},{"instance":{"openmrs_entity_id":"163151AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"simserial","name":"simserial"},{"instance":{"openmrs_entity_id":"163152AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"phonenumber","name":"phonenumber"},{"bind":{"required":"yes"},"label":{"Urdu":"بچے کی پروگرام میں اندراج کی تاریخ: {existing_client_reg_date}$","Roman Urdu":"Bachay ki Program mai andraj ki tareekh: ${existing_client_reg_date}","English":"Child Registration date: ${existing_client_reg_date}"},"type":"note","name":"existing_client_reg_date_note","hint":{"Urdu":"بچے کو ویکسین لگنے کی تاریخ","Roman Urdu":"Bachay ko vaccine lagnay ki tareekh","English":"Date on which child was vaccinated"}},{"bind":{"required":"yes"},"type":"note","name":"program_client_id_note","label":{"Urdu":"کلائنٹ کی پروگرام ائی ڈی: {existing_program_client_id}$","Roman Urdu":"Client ki program ID: ${existing_program_client_id}","English":"Program Client ID: ${existing_program_client_id}"}},{"bind":{"jr:constraintMsg":{"Urdu":"نمبر آٹھ ہندسوں پر مشتمل ہونا چاہئے","English":"Number should be 8 digits","Roman Urdu":"Number 8 hindason par mushtamil hona chahiye"},"required":"yes","constraint":"string-length(.) = 8"},"type":"integer","instance":{"openmrs_entity_id":"EPI Card Number","openmrs_entity":"person_attribute"},"name":"epi_card_number","label":{"Urdu":"ای پی آئی کارڈ نمبر: {existing_epi_card_number}$","English":"EPI Card Number: ${existing_epi_card_number}","Roman Urdu":"EPI Card Number: ${existing_epi_card_number}"}},{"bind":{"required":"yes"},"type":"note","name":"first_name_note","label":{"Urdu":"نام: {existing_first_name}$","Roman Urdu":"Naam: ${existing_first_name}","English":"First Name: ${existing_first_name}"}},{"bind":{"required":"yes"},"type":"note","name":"last_name_note","label":{"Urdu":"والد کا نام: {existing_last_name}$","Roman Urdu":"Waalid ka naam: ${existing_last_name}","English":"Last name: ${existing_last_name}"}},{"bind":{"calculate":"int((${today} - ${existing_client_birth_date}) div 30.42)"},"type":"calculate","name":"child_age","instance":{"openmrs_entity_id":"154384AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"type":"note","name":"calc_dob_note","label":{"Urdu":"بچے کی تاریخ پیدائش: {existing_client_birth_date}$ ({child_age}$) مہینے","English":"Child dob: ${existing_client_birth_date} (${child_age}) months","Roman Urdu":"Bachay ki tareekh-e-paidaish: ${existing_client_birth_date} (${child_age}) mahinay"}},{"bind":{"required":"yes"},"type":"note","name":"gender_note","label":{"Urdu":"جنس: {existing_gender}$","Roman Urdu":"Jins:${existing_gender}","English":"Gender: ${existing_gender}"}},{"type":"note","name":"mother_name_note","label":{"Urdu":"ماں کا نام: {existing_mother_name}$","English":"Mother's Name: ${existing_mother_name}","Roman Urdu":"Maa ka naam: ${existing_mother_name}"}},{"bind":{"required":"yes"},"type":"note","name":"exisiting_ethnicity_note","label":{"Urdu":"قومیت: {existing_ethnicity}$","Roman Urdu":"Qomiat: ${existing_ethnicity}","English":"Ethnicity: ${existing_ethnicity}"}},{"type":"note","name":"address","label":{"Urdu":"موجودہ پتہ: ${existing_house_number}, ${existing_street}, ${existing_landmark}, ${existing_union_councilname}, ${existing_townname}, ${existing_city_villagename}, ${existing_provincename}","English":"Current Address: ${existing_house_number}, ${existing_street}, ${existing_landmark}, ${existing_union_councilname}, ${existing_townname}, ${existing_city_villagename}, ${existing_provincename}","Roman Urdu":"Mojooda Address: ${existing_house_number}, ${existing_street}, ${existing_landmark}, ${existing_union_councilname}, ${existing_townname}, ${existing_city_villagename}, ${existing_provincename}"}},{"label":{"Urdu":"کیا آپ کا گھر کا پتہ بدلا ہے؟","English":"Has your home address changed?","Roman Urdu":"Kya aap ka ghar ka pata badla hai?"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}],"name":"address_change"},{"control":{"appearance":"minimal"},"name":"province","default":"${provider_province}","bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"label":{"Urdu":"صوبہ","Roman Urdu":"Suba","English":"Province"},"instance":{"openmrs_entity":"person_address","openmrs_entity_id":"stateProvince","openmrs_entity_parent":"usual_residence"},"type":"select one","children":[{"name":"kpk","label":{"Urdu":"خیبر پختون خواہ","English":"Khyber Pakhtunkhwa","Roman Urdu":"Khyber Pakhtunkhwa"}},{"name":"sindh","label":{"Urdu":"سندھ","English":"Sindh","Roman Urdu":"Sindh"}},{"name":"balochistan","label":{"Urdu":"بلوچستان","English":"Balochistan","Roman Urdu":"Balochistan"}},{"name":"punjab","label":{"Urdu":"پنجاب","English":"Punjab","Roman Urdu":"Punjab"}},{"name":"gilgit_baltistan","label":{"Urdu":"گلگت بلتستان","English":"Gilgit Baltistan","Roman Urdu":"Gilgit Baltistan"}},{"name":"kashmir","label":{"Urdu":"کشمیر","English":"Kashmir","Roman Urdu":"Kashmir"}},{"name":"fata","label":{"Urdu":"فاٹا","English":"FATA","Roman Urdu":"FATA"}},{"name":"out_of_country","label":{"Urdu":"ملک سے باہر","English":"Out of Country","Roman Urdu":"Out of Country"}}]},{"control":{"appearance":"minimal"},"name":"city_village","choice_filter":"province=${province} or province='na'","default":"${provider_city}","bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"label":{"Urdu":"شہر","Roman Urdu":"Shehr","English":"City"},"itemset":"cities","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"cityVillage","openmrs_entity_parent":"usual_residence"},"type":"select one"},{"control":{"appearance":"minimal"},"name":"town","choice_filter":"(province=${province} and city=${city_village} ) or city='na'","bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"label":{"Urdu":"ٹاٰئون/ قصبہ/ بستی","Roman Urdu":"Town / Qasbah / Basti","English":"Town"},"itemset":"towns","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"town","openmrs_entity_parent":"usual_residence"},"type":"select one"},{"control":{"appearance":"minimal"},"name":"union_council","choice_filter":"(province=${province} and city=${city_village} and town=${town}) or town='na'","bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"label":{"Urdu":"یونین کونسل","Roman Urdu":"Union Council","English":"Union Council"},"itemset":"ucs","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"subTown","openmrs_entity_parent":"usual_residence"},"type":"select one"},{"bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"type":"text","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"house","openmrs_entity_parent":"usual_residence"},"name":"house_number","label":{"Urdu":"گھر کا نمبر","Roman Urdu":"Ghar ka number","English":"House Number"}},{"bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"type":"text","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"street","openmrs_entity_parent":"usual_residence"},"name":"street","label":{"Urdu":"گلی/کالونی/محلہ","Roman Urdu":"Gali/Colony/Mohalla","English":"Street"}},{"bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"type":"text","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"landmark","openmrs_entity_parent":"usual_residence"},"name":"landmark","label":{"Urdu":"گھر کے قریب کوئی مشہور جگہ","Roman Urdu":"Ghar ke qareeb koi mashoor jagah","English":"Land Mark"}},{"instance":{"openmrs_entity_id":"163277AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"geopoint","name":"center_gps","label":{"Urdu":"حاصل کردہ معلومات کی جگہ کے GPS کارڈینیٹس درج کریں","English":"Collect GPS coordinates of data entry location:","Roman Urdu":"Hasil karda malomaat ki jaga ke GPS coordinates darj karain"}},{"control":{"appearance":"minimal"},"bind":{"required":"yes"},"type":"note","name":"child_was_suffering_from_a_disease_at_birth_note","label":{"Urdu":"کیا بچہ پیدائش کے وقت کسی مرض میں مبتلا تھا؟ {existing_child_was_suffering_from_a_disease_at_birth}$","Roman Urdu":"Kya bacha pedaaish k waqt kissi marz mai mubtila tha? ${existing_child_was_suffering_from_a_disease_at_birth}","English":"Child was suffering from a disease at birth: ${existing_child_was_suffering_from_a_disease_at_birth}"}},{"instance":{"openmrs_entity_id":"163162AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"text","name":"aefi","label":{"Urdu":"حفاظتی ٹیکوں کے مضر اثرات","English":"The temporary side-effects of immunization shots","Roman Urdu":"Hifazati teekon ke muzr asraat"}},{"control":{"appearance":"minimal"},"name":"reminders_approval","bind":{"required":"yes"},"label":{"Urdu":"کیا آپ اپنے بچے کی اگلی ویکسین کی تاریخ کے لیے SMS موصول کرنا چاہتے ہیں؟ {existing_reminders_approval}$","English":"Are you willing to receive SMS reminders for your next visit? ${existing_reminders_approval}","Roman Urdu":"Kya aap apnay bachay ki agli vaccine ki tareekh ke liye SMS mausool karna chahtay hain? ${existing_reminders_approval}"},"instance":{"openmrs_entity_id":"163089AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}]},{"bind":{"jr:constraintMsg":{"Urdu":"فون نمبر گیارہ ہندسوں پر مشتمل اور مندرجہ ذیل شکل میں ہونا چاہئے: *********03","English":"Phone number should be 11 digits in the following format: 03*********","Roman Urdu":"Phone number 11 hindason par mushtamil aur mundarja zail shakal main hona chahiey: 03*********"},"relevant":"${existing_reminders_approval}='yes'","constraint":"regex(., '^03[0-9]{9}$')"},"type":"text","instance":{"openmrs_entity_id":"159635AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"contact_phone_number","label":{"Urdu":"موبائل نمبر:{existing_contact_phone_number}$","English":"Mobile Number: ${existing_contact_phone_number}","Roman Urdu":"Mobile Number: ${existing_contact_phone_number}"}},{"bind":{"calculate":"${existing_client_birth_date} + 42"},"type":"calculate","name":"six_weeks"},{"bind":{"calculate":"${existing_client_birth_date} + 70"},"type":"calculate","name":"ten_weeks"},{"bind":{"calculate":"${existing_client_birth_date} + 98"},"type":"calculate","name":"forteen_weeks"},{"bind":{"calculate":"${existing_client_birth_date} + 245"},"type":"calculate","name":"nine_months"},{"bind":{"calculate":"${existing_client_birth_date} + 458"},"type":"calculate","name":"fifteen_months"},{"control":{"appearance":"minimal"},"name":"vaccines","choice_filter":"name != if( ${e_bcg} != '', 'bcg' , '') and \nname != if( ${e_opv0} != '', 'opv0' , '') and \nname != if( ${e_penta1} != '', 'penta1' , '') and \nname != if( ${e_penta2} != '', 'penta2' , '') and \nname != if( ${e_penta3} != '', 'penta3' , '') and \nname != if( ${e_opv1} != '', 'opv1' , '') and \nname != if( ${e_opv2} != '', 'opv2' , '') and \nname != if( ${e_opv3} != '', 'opv3' , '') and \nname != if( ${e_pcv1} != '', 'pcv1' , '') and \nname != if( ${e_pcv2} != '', 'pcv2' , '') and \nname != if( ${e_pcv3} != '', 'pcv3' , '') and \nname != if( ${e_ipv} != '', 'ipv' , '') and \nname != if( ${e_measles1} != '', 'measles1' , '') and \nname != if( ${e_measles2} != '', 'measles2' , '')","label":{"Urdu":"پچھلی تاریخ جب کسی اور سینٹر پر ٹیکے لگواِے گیے یا قطرے پلائے گئے","Roman Urdu":"Pichli tareekh jab kissi aur center par teekay lagwaye gaye ya katray pilaey gaye","English":"Retro vaccines"},"itemset":"vaccines","instance":{"openmrs_entity":"concept","openmrs_entity_id":"984AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1421AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"select all that apply"},{"type":"group","children":[{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'bcg')","constraint":".>= ${existing_client_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"886AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"bcg_retro","label":{"Urdu":"بی سی جی","Roman Urdu":"BCG","English":"BCG"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'opv0')","constraint":".>= ${existing_client_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv0_retro","label":{"Urdu":"او پی وی 0","Roman Urdu":"OPV 0","English":"OPV 0"}},{"bind":{"relevant":"selected(${vaccines}, 'opv0')","calculate":"0"},"type":"calculate","name":"opv0_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'pcv1')","constraint":".>= ${existing_client_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv1_retro","label":{"Urdu":"پی سی وی 1","Roman Urdu":"PCV1","English":"PCV1"}},{"bind":{"relevant":"selected(${vaccines}, 'pcv1')","calculate":"1"},"type":"calculate","name":"pcv1_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'opv1')","constraint":".>= ${existing_client_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv1_retro","label":{"Urdu":"او پی وی1","Roman Urdu":"OPV 1","English":"OPV 1"}},{"bind":{"relevant":"selected(${vaccines}, 'opv1')","calculate":"1"},"type":"calculate","name":"opv1_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'penta11')","constraint":".>= ${existing_client_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta11_retro","label":{"Urdu":"پینٹا ویلنٹ 1","Roman Urdu":"Pentavalent 1","English":"Pentavalent 1"}},{"bind":{"relevant":"selected(${vaccines}, 'penta11')","calculate":"1"},"type":"calculate","name":"penta11_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'pcv2')","constraint":".>= ${existing_client_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv2_retro","label":{"Urdu":"پی سی وی 2","Roman Urdu":"PCV2","English":"PCV2"}},{"bind":{"relevant":"selected(${vaccines}, 'pcv2')","calculate":"2"},"type":"calculate","name":"pcv2_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'opv2')","constraint":".>= ${existing_client_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv2_retro","label":{"Urdu":"او پی وی 2","Roman Urdu":"OPV 2","English":"OPV 2"}},{"bind":{"relevant":"selected(${vaccines}, 'opv2')","calculate":"2"},"type":"calculate","name":"opv2_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'penta12')","constraint":".>= ${existing_client_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta12_retro","label":{"Urdu":"پینٹا ویلنٹ 2","Roman Urdu":"Pentavalent 2","English":"Pentavalent 2"}},{"bind":{"relevant":"selected(${vaccines}, 'penta12')","calculate":"2"},"type":"calculate","name":"penta12_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'pcv3')","constraint":".>= ${existing_client_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv3_retro","label":{"Urdu":"پی سی وی 3","Roman Urdu":"PCV3","English":"PCV3"}},{"bind":{"relevant":"selected(${vaccines}, 'penta12')","calculate":"3"},"type":"calculate","name":"pcv3_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'opv3')","constraint":".>= ${existing_client_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv3_retro","label":{"Urdu":"او پی وی3","Roman Urdu":"OPV 3","English":"OPV 3"}},{"bind":{"relevant":"selected(${vaccines}, 'opv3')","calculate":"3"},"type":"calculate","name":"opv3_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'penta13')","constraint":".>= ${existing_client_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta13_retro","label":{"Urdu":"پینٹا ویلنٹ 3","Roman Urdu":"Pentavalent 3","English":"Pentavalent 3"}},{"bind":{"relevant":"selected(${vaccines}, 'penta13')","calculate":"3"},"type":"calculate","name":"penta13_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'ipv')","constraint":".>= ${existing_client_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1422AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ipv_retro","label":{"Urdu":"آئی پی وی","Roman Urdu":"IPV","English":"IPV"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'measles1')","constraint":".>= ${existing_client_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"measles1_retro","label":{"Urdu":"خسرہ 1","Roman Urdu":"Measles 1","English":"Measles 1"}},{"bind":{"relevant":"selected(${vaccines}, 'measles1')","calculate":"1"},"type":"calculate","name":"measles1_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'measles2')","constraint":".>= ${existing_client_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"measles2_retro","label":{"Urdu":"خسرہ 2","Roman Urdu":"Measles2","English":"Measles2"}},{"bind":{"relevant":"selected(${vaccines}, 'measles2')","calculate":"2"},"type":"calculate","name":"measles2_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}}],"name":"vaccines_group"},{"control":{"appearance":"minimal"},"name":"vaccines_2","choice_filter":"name != if( ${e_bcg} != '', 'bcg' , '') and \nname != if( ${e_opv0} != '', 'opv0' , '') and \nname != if( ${e_penta2} != '', 'penta2' , '') and \nname != if( ${e_penta1} != '', 'penta1' , '') and \nname != if( ${e_penta3} != '', 'penta3' , '') and \nname != if( ${e_opv1} != '', 'opv1' , '') and \nname != if( ${e_opv2} != '', 'opv2' , '') and \nname != if( ${e_opv3} != '', 'opv3' , '') and \nname != if( ${e_pcv1} != '', 'pcv1' , '') and \nname != if( ${e_pcv2} != '', 'pcv2' , '') and \nname != if( ${e_pcv3} != '', 'pcv3' , '') and \nname != if( ${e_measles1} != '', 'measles1' , '') and \nname != if( ${e_measles2} != '', 'measles2' , '') and \nname != if(selected(${vaccines}, 'bcg'), 'bcg', '') and \nname != if(selected(${vaccines}, 'opv0'), 'opv0', '') and \nname != if(selected(${vaccines}, 'penta1'), 'penta1', '') and \nname != if(selected(${vaccines}, 'opv1'), 'opv1', '') and \nname != if(selected(${vaccines}, 'pcv1'), 'pcv1', '') and \nname != if(selected(${vaccines}, 'penta2'), 'penta2', '') and \nname != if(selected(${vaccines}, 'opv2'), 'opv2', '') and \nname != if(selected(${vaccines}, 'pcv2'), 'pcv2', '') and \nname != if(selected(${vaccines}, 'penta3'), 'penta3', '') and \nname != if(selected(${vaccines}, 'opv3'), 'opv3', '') and \nname != if(selected(${vaccines}, 'ipv'), 'ipv', '') and \nname != if(selected(${vaccines}, 'measles1'), 'measles1', '') and \nname != if(selected(${vaccines}, 'measles2'), 'measles2', '')","bind":{"required":"yes","constraint":"if(selected(${vaccines_2}, 'bcg') or selected(${vaccines_2}, 'opv0') , .>= ${existing_client_birth_date} and .<=${today}, if(selected(${vaccines_2}, 'opv1') or selected(${vaccines_2}, 'penta11'), .>= ${six_weeks} and .<=${today}, if(selected(${vaccines_2}, 'opv2') or selected(${vaccines_2}, 'penta12'), .>=${ten_weeks} and .<=${today}, if(selected(${vaccines_2}, 'opv3') or selected(${vaccines_2}, 'penta13'), .>=${forteen_weeks} and .<=${today}, if(selected(${vaccines_2}, 'measles1'), .>=${nine_months} and .<=${today}, if(selected(${vaccines_2}, 'measles2'), .>= ${fifteen_months} and .<=${today}))))))"},"label":{"Urdu":"آج کون کون سی ویکسین دی گئی ہیں؟","Roman Urdu":"Aaj kon kon si vaccine di gai hain?","English":"Vaccines administered"},"itemset":"vaccines","instance":{"openmrs_entity":"concept","openmrs_entity_id":"984AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1441AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"select all that apply"},{"name":"vaccination_date","default":"${today}","bind":{"required":"yes","constraint":"if(selected(${vaccines_2}, 'bcg') or selected(${vaccines_2}, 'opv0') , .>= ${existing_client_birth_date} and .<=${today}, if(selected(${vaccines_2}, 'opv1') or selected(${vaccines_2}, 'penta11'), .>= ${six_weeks} and .<=${today}, if(selected(${vaccines_2}, 'opv2') or selected(${vaccines_2}, 'penta12'), .>=${ten_weeks} and .<=${today}, if(selected(${vaccines_2}, 'opv3') or selected(${vaccines_2}, 'penta13'), .>=${forteen_weeks} and .<=${today}, if(selected(${vaccines_2}, 'measles1'), .>=${nine_months} and .<=${today}, if(selected(${vaccines_2}, 'measles2'), .>= ${fifteen_months} and .<=${today}))))))"},"label":{"Urdu":"تاریخ","English":"Vaccination date","Roman Urdu":"Tareekh"},"instance":{"openmrs_entity_id":"encounter_date","openmrs_entity":"encounter"},"type":"date"},{"bind":{"calculate":"if(selected(${vaccines_2}, 'bcg'),${vaccination_date},'')"},"type":"calculate","name":"bcg","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"886AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'opv0'),${vaccination_date},'')"},"type":"calculate","name":"opv0","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'opv0')","calculate":"0"},"type":"calculate","name":"opv0_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'pcv1'),${vaccination_date},'')"},"type":"calculate","name":"pcv1","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'pcv1')","calculate":"1"},"type":"calculate","name":"pcv1_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'opv1'),${vaccination_date},'')"},"type":"calculate","name":"opv1","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'opv1')","calculate":"1"},"type":"calculate","name":"opv1_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'penta11'),${vaccination_date},'')"},"type":"calculate","name":"penta11","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'penta11')","calculate":"1"},"type":"calculate","name":"penta11_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'pcv2'),${vaccination_date},'')"},"type":"calculate","name":"pcv2","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'pcv2')","calculate":"2"},"type":"calculate","name":"pcv2_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'opv2'),${vaccination_date},'')"},"type":"calculate","name":"opv2","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'opv2')","calculate":"2"},"type":"calculate","name":"opv2_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'penta12'),${vaccination_date},'')"},"type":"calculate","name":"penta12","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'penta12')","calculate":"2"},"type":"calculate","name":"penta12_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'pcv3'),${vaccination_date},'')"},"type":"calculate","name":"pcv3","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'pcv3')","calculate":"3"},"type":"calculate","name":"pcv3_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'opv3'),${vaccination_date},'')"},"type":"calculate","name":"opv3","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'opv3')","calculate":"3"},"type":"calculate","name":"opv3_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'penta13'),${vaccination_date},'')"},"type":"calculate","name":"penta13","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'penta13')","calculate":"3"},"type":"calculate","name":"penta13_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines}, 'ipv')","calculate":"if(selected(${vaccines_2}, 'ipv'),${vaccination_date},'')"},"type":"calculate","name":"ipv","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1422AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'measles1'),${vaccination_date},'')"},"type":"calculate","name":"measles1","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'measles1')","calculate":"1"},"type":"calculate","name":"measles1_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'measles2'),${vaccination_date},'')"},"type":"calculate","name":"measles2","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'measles2')","calculate":"2"},"type":"calculate","name":"measles2_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"control":{"bodyless":true},"type":"group","children":[{"bind":{"readonly":"true()","calculate":"concat('uuid:', uuid())"},"type":"calculate","name":"instanceID"}],"name":"meta"}]} \ No newline at end of file diff --git a/opensrp-connector/src/test/resources/form/offsite_child_followup/form.xml b/opensrp-connector/src/test/resources/form/offsite_child_followup/form.xml deleted file mode 100644 index 2042695a14..0000000000 --- a/opensrp-connector/src/test/resources/form/offsite_child_followup/form.xml +++ /dev/null @@ -1,1560 +0,0 @@ -
- - -

دوسرے سینٹر میں رجسٹرڈ بچّوں کا فالو اپ رجسٹر برائے ٹیکاجات - Off Site Child Follow Up Vaccination Register

-
-
- - کیا آپ کا گھر کا پتہ بدلا ہے؟ - Has your home address changed? - - Kya aap ka ghar ka pata badla hai? -
- - -
-
-
- - - - - - - - - - - - - -
- - -
diff --git a/opensrp-connector/src/test/resources/form/offsite_child_followup/form_definition.json b/opensrp-connector/src/test/resources/form/offsite_child_followup/form_definition.json deleted file mode 100644 index 04a8d9a538..0000000000 --- a/opensrp-connector/src/test/resources/form/offsite_child_followup/form_definition.json +++ /dev/null @@ -1,466 +0,0 @@ -{ - "form_data_definition_version" : "1", - "form" : { - "bind_type" : "pkchild", - "default_bind_path" : "/model/instance/Offsite_Child_Vaccination_Followup/", - "fields" : [ { - "name" : "id", - "shouldLoadValue" : true - }, { - "name" : "provider_uc", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/provider_uc", - "shouldLoadValue" : true - }, { - "name" : "provider_town", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/provider_town", - "shouldLoadValue" : true - }, { - "name" : "provider_city", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/provider_city", - "shouldLoadValue" : true - }, { - "name" : "provider_province", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/provider_province", - "shouldLoadValue" : true - }, { - "name" : "existing_first_name", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_first_name", - "shouldLoadValue" : true - }, { - "name" : "existing_last_name", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_last_name", - "shouldLoadValue" : true - }, { - "name" : "existing_mother_name", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_mother_name", - "shouldLoadValue" : true - }, { - "name" : "existing_gender", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_gender", - "shouldLoadValue" : true - }, { - "name" : "existing_birth_date", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_client_birth_date", - "shouldLoadValue" : true - }, { - "name" : "existing_client_reg_date", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_client_reg_date", - "shouldLoadValue" : true - }, { - "name" : "existing_landmark", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_landmark", - "shouldLoadValue" : true - }, { - "name" : "existing_house_number", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_house_number", - "shouldLoadValue" : true - }, { - "name" : "existing_street", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_street", - "shouldLoadValue" : true - }, { - "name" : "existing_union_council", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_union_council", - "shouldLoadValue" : true - }, { - "name" : "existing_town", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_town", - "shouldLoadValue" : true - }, { - "name" : "existing_city_village", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_city_village", - "shouldLoadValue" : true - }, { - "name" : "existing_province", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_province", - "shouldLoadValue" : true - }, { - "name" : "existing_union_councilname", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_union_councilname", - "shouldLoadValue" : true - }, { - "name" : "existing_townname", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_townname", - "shouldLoadValue" : true - }, { - "name" : "existing_city_villagename", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_city_villagename", - "shouldLoadValue" : true - }, { - "name" : "existing_provincename", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_provincename", - "shouldLoadValue" : true - }, { - "name" : "existing_ethnicity", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_ethnicity", - "shouldLoadValue" : true - }, { - "name" : "existing_program_client_id", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_program_client_id", - "shouldLoadValue" : true - }, { - "name" : "existing_epi_card_number", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_epi_card_number", - "shouldLoadValue" : true - }, { - "name" : "existing_child_was_suffering_from_a_disease_at_birth", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_child_was_suffering_from_a_disease_at_birth", - "shouldLoadValue" : true - }, { - "name" : "existing_reminders_approval", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_reminders_approval", - "shouldLoadValue" : true - }, { - "name" : "existing_contact_phone_number", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_contact_phone_number", - "shouldLoadValue" : true - }, { - "name" : "e_bcg", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/e_bcg", - "shouldLoadValue" : true - }, { - "name" : "e_opv0", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/e_opv0", - "shouldLoadValue" : true - }, { - "name" : "e_penta2", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/e_penta2", - "shouldLoadValue" : true - }, { - "name" : "e_penta1", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/e_penta1", - "shouldLoadValue" : true - }, { - "name" : "e_penta3", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/e_penta3", - "shouldLoadValue" : true - }, { - "name" : "e_opv1", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/e_opv1", - "shouldLoadValue" : true - }, { - "name" : "e_opv2", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/e_opv2", - "shouldLoadValue" : true - }, { - "name" : "e_opv3", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/e_opv3", - "shouldLoadValue" : true - }, { - "name" : "e_pcv1", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/e_pcv1", - "shouldLoadValue" : true - }, { - "name" : "e_pcv2", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/e_pcv2", - "shouldLoadValue" : true - }, { - "name" : "e_pcv3", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/e_pcv3", - "shouldLoadValue" : true - }, { - "name" : "e_measles1", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/e_measles1", - "shouldLoadValue" : true - }, { - "name" : "e_measles2", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/e_measles2", - "shouldLoadValue" : true - }, { - "name" : "e_ipv", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/e_ipv", - "shouldLoadValue" : true - }, { - "name" : "provider_id", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/provider_id", - "shouldLoadValue" : true - }, { - "name" : "provider_location_id", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/provider_location_id", - "shouldLoadValue" : true - }, { - "name" : "provider_location_name", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/provider_location_name", - "shouldLoadValue" : true - }, { - "name" : "provider_location_note", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/provider_location_note" - }, { - "name" : "start", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/start" - }, { - "name" : "end", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/end" - }, { - "name" : "today", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/today" - }, { - "name" : "deviceid", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/deviceid" - }, { - "name" : "subscriberid", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/subscriberid" - }, { - "name" : "simserial", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/simserial" - }, { - "name" : "phonenumber", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/phonenumber" - }, { - "name" : "existing_client_reg_date_note", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_client_reg_date_note" - }, { - "name" : "program_client_id_note", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/program_client_id_note" - }, { - "name" : "epi_card_number", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/epi_card_number" - }, { - "name" : "first_name_note", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/first_name_note" - }, { - "name" : "last_name_note", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/last_name_note" - }, { - "name" : "child_age", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/child_age" - }, { - "name" : "calc_dob_note", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/calc_dob_note" - }, { - "name" : "gender_note", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/gender_note" - }, { - "name" : "mother_name_note", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/mother_name_note" - }, { - "name" : "exisiting_ethnicity_note", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/exisiting_ethnicity_note" - }, { - "name" : "address", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/address" - }, { - "name" : "address_change", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/address_change" - }, { - "name" : "province", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/province" - }, { - "name" : "city_village", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/city_village" - }, { - "name" : "town", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/town" - }, { - "name" : "union_council", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/union_council" - }, { - "name" : "house_number", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/house_number" - }, { - "name" : "street", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/street" - }, { - "name" : "landmark", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/landmark" - }, { - "name" : "center_gps", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/center_gps" - }, { - "name" : "child_was_suffering_from_a_disease_at_birth_note", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/child_was_suffering_from_a_disease_at_birth_note" - }, { - "name" : "aefi", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/aefi" - }, { - "name" : "reminders_approval", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/reminders_approval" - }, { - "name" : "contact_phone_number", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/contact_phone_number" - }, { - "name" : "six_weeks", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/six_weeks" - }, { - "name" : "ten_weeks", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/ten_weeks" - }, { - "name" : "forteen_weeks", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/forteen_weeks" - }, { - "name" : "nine_months", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/nine_months" - }, { - "name" : "fifteen_months", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/fifteen_months" - }, { - "name" : "vaccines", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines" - }, { - "name" : "bcg_retro", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/bcg_retro" - }, { - "name" : "opv0_retro", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/opv0_retro" - }, { - "name" : "opv0_dose", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/opv0_dose" - }, { - "name" : "pcv1_retro", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/pcv1_retro" - }, { - "name" : "pcv1_dose", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/pcv1_dose" - }, { - "name" : "opv1_retro", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/opv1_retro" - }, { - "name" : "opv1_dose", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/opv1_dose" - }, { - "name" : "penta11_retro", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/penta11_retro" - }, { - "name" : "penta11_dose", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/penta11_dose" - }, { - "name" : "pcv2_retro", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/pcv2_retro" - }, { - "name" : "pcv2_dose", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/pcv2_dose" - }, { - "name" : "opv2_retro", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/opv2_retro" - }, { - "name" : "opv2_dose", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/opv2_dose" - }, { - "name" : "penta12_retro", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/penta12_retro" - }, { - "name" : "penta12_dose", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/penta12_dose" - }, { - "name" : "pcv3_retro", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/pcv3_retro" - }, { - "name" : "pcv3_dose", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/pcv3_dose" - }, { - "name" : "opv3_retro", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/opv3_retro" - }, { - "name" : "opv3_dose", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/opv3_dose" - }, { - "name" : "penta13_retro", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/penta13_retro" - }, { - "name" : "penta13_dose", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/penta13_dose" - }, { - "name" : "ipv_retro", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/ipv_retro" - }, { - "name" : "measles1_retro", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/measles1_retro" - }, { - "name" : "measles1_dose", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/measles1_dose" - }, { - "name" : "measles2_retro", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/measles2_retro" - }, { - "name" : "measles2_dose", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/measles2_dose" - }, { - "name" : "vaccines_2", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_2" - }, { - "name" : "vaccination_date", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccination_date" - }, { - "name" : "bcg", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/bcg" - }, { - "name" : "opv0", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/opv0" - }, { - "name" : "opv0_dose_today", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/opv0_dose_today" - }, { - "name" : "pcv1", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/pcv1" - }, { - "name" : "pcv1_dose_today", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/pcv1_dose_today" - }, { - "name" : "opv1", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/opv1" - }, { - "name" : "opv1_dose_today", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/opv1_dose_today" - }, { - "name" : "penta11", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/penta11" - }, { - "name" : "penta11_dose_today", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/penta11_dose_today" - }, { - "name" : "pcv2", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/pcv2" - }, { - "name" : "pcv2_dose_today", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/pcv2_dose_today" - }, { - "name" : "opv2", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/opv2" - }, { - "name" : "opv2_dose_today", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/opv2_dose_today" - }, { - "name" : "penta12", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/penta12" - }, { - "name" : "penta12_dose_today", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/penta12_dose_today" - }, { - "name" : "pcv3", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/pcv3" - }, { - "name" : "pcv3_dose_today", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/pcv3_dose_today" - }, { - "name" : "opv3", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/opv3" - }, { - "name" : "opv3_dose_today", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/opv3_dose_today" - }, { - "name" : "penta13", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/penta13" - }, { - "name" : "penta13_dose_today", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/penta13_dose_today" - }, { - "name" : "ipv", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/ipv" - }, { - "name" : "measles1", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/measles1" - }, { - "name" : "measles1_dose_today", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/measles1_dose_today" - }, { - "name" : "measles2", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/measles2" - }, { - "name" : "measles2_dose_today", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/measles2_dose_today" - }, { - "name" : "instanceID", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/meta/instanceID" - } ] - } -} \ No newline at end of file diff --git a/opensrp-connector/src/test/resources/form/offsite_child_followup/model.xml b/opensrp-connector/src/test/resources/form/offsite_child_followup/model.xml deleted file mode 100644 index 93436952d8..0000000000 --- a/opensrp-connector/src/test/resources/form/offsite_child_followup/model.xml +++ /dev/null @@ -1,1685 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - ${provider_province} - ${provider_city} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ${today} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - static_instance-provinces-0 - kpk - - - static_instance-provinces-1 - sindh - - - static_instance-provinces-2 - balochistan - - - static_instance-provinces-3 - punjab - - - static_instance-provinces-4 - gilgit_baltistan - - - static_instance-provinces-5 - kashmir - - - static_instance-provinces-6 - fata - - - static_instance-provinces-7 - out_of_country - - - - - - - static_instance-ucs-0 - sindh - karachi - korangi - bilal_colony - - - static_instance-ucs-1 - sindh - karachi - korangi - nasir_colony - - - static_instance-ucs-2 - sindh - karachi - korangi - chakra_goth - - - static_instance-ucs-3 - sindh - karachi - korangi - mustafa_taj_colony - - - static_instance-ucs-4 - sindh - karachi - korangi - hundred_quarters - - - static_instance-ucs-5 - sindh - karachi - korangi - gulzar_colony - - - static_instance-ucs-6 - sindh - karachi - korangi - korangi_sector_33 - - - static_instance-ucs-7 - sindh - karachi - korangi - zaman_town - - - static_instance-ucs-8 - sindh - karachi - korangi - hasrat_mohani_colony - - - static_instance-ucs-9 - sindh - karachi - baldia - gulshan_e_ghazi - - - static_instance-ucs-10 - sindh - karachi - baldia - ittehad_town - - - static_instance-ucs-11 - sindh - karachi - baldia - islam_nagar - - - static_instance-ucs-12 - sindh - karachi - baldia - nai_abadi - - - static_instance-ucs-13 - sindh - karachi - baldia - saeedabad - - - static_instance-ucs-14 - sindh - karachi - baldia - muslim_mujahid_colony - - - static_instance-ucs-15 - sindh - karachi - baldia - muhajir_camp - - - static_instance-ucs-16 - sindh - karachi - baldia - rasheedabad - - - static_instance-ucs-17 - sindh - karachi - bin_qasim - ibrahim_hyderi - - - static_instance-ucs-18 - sindh - karachi - bin_qasim - rehri - - - static_instance-ucs-19 - sindh - karachi - bin_qasim - cattle_colony - - - static_instance-ucs-20 - sindh - karachi - bin_qasim - qaidabad - - - static_instance-ucs-21 - sindh - karachi - bin_qasim - landhi_colony - - - static_instance-ucs-22 - sindh - karachi - bin_qasim - gulshan_e_hadeed - - - static_instance-ucs-23 - sindh - karachi - bin_qasim - gaghar - - - static_instance-ucs-24 - sindh - karachi - gadap - murad_memon_goth - - - static_instance-ucs-25 - sindh - karachi - gadap - darsano_chana - - - static_instance-ucs-26 - sindh - karachi - gadap - gujro - - - static_instance-ucs-27 - sindh - karachi - gadap - songal - - - static_instance-ucs-28 - sindh - karachi - gadap - maymarabad - - - static_instance-ucs-29 - sindh - karachi - gadap - yousuf_goth - - - static_instance-ucs-30 - sindh - karachi - gadap - manghopir - - - static_instance-ucs-31 - sindh - karachi - gulberg - azizabad - - - static_instance-ucs-32 - sindh - karachi - gulberg - karimabad - - - static_instance-ucs-33 - sindh - karachi - gulberg - aisha_manzil - - - static_instance-ucs-34 - sindh - karachi - gulberg - ancholi - - - static_instance-ucs-35 - sindh - karachi - gulberg - naseerabad - - - static_instance-ucs-36 - sindh - karachi - gulberg - yaseenabad - - - static_instance-ucs-37 - sindh - karachi - gulberg - water_pump - - - static_instance-ucs-38 - sindh - karachi - gulberg - shafiq_mill_colony - - - static_instance-ucs-39 - sindh - karachi - gulshan - delhi_mercantile_society - - - static_instance-ucs-40 - sindh - karachi - gulshan - civic_centre - - - static_instance-ucs-41 - sindh - karachi - gulshan - pir_ilahi_buksh_colony - - - static_instance-ucs-42 - sindh - karachi - gulshan - essa_nagri - - - static_instance-ucs-43 - sindh - karachi - gulshan - gulshan_e_iqbal - - - static_instance-ucs-44 - sindh - karachi - gulshan - gillani_railway_station - - - static_instance-ucs-45 - sindh - karachi - gulshan - shanti_nagar - - - static_instance-ucs-46 - sindh - karachi - gulshan - jamali_colony - - - static_instance-ucs-47 - sindh - karachi - gulshan - gulshan_e_iqbal_ii - - - static_instance-ucs-48 - sindh - karachi - gulshan - pehlwan_goth - - - static_instance-ucs-49 - sindh - karachi - gulshan - matrovil_colony - - - static_instance-ucs-50 - sindh - karachi - gulshan - gulzar_e_hijri - - - static_instance-ucs-51 - sindh - karachi - gulshan - safooran_goth - - - static_instance-ucs-52 - sindh - karachi - jamshed - akhtar_colony - - - static_instance-ucs-53 - sindh - karachi - jamshed - manzoor_colony - - - static_instance-ucs-54 - sindh - karachi - jamshed - azam_basti - - - static_instance-ucs-55 - sindh - karachi - jamshed - chanesar_goth - - - static_instance-ucs-56 - sindh - karachi - jamshed - mahmudabad - - - static_instance-ucs-57 - sindh - karachi - jamshed - pechs - - - static_instance-ucs-58 - sindh - karachi - jamshed - pechs_ii - - - static_instance-ucs-59 - sindh - karachi - jamshed - jut_line - - - static_instance-ucs-60 - sindh - karachi - jamshed - central_jacob_lines - - - static_instance-ucs-61 - sindh - karachi - jamshed - jamshed_quarters - - - static_instance-ucs-62 - sindh - karachi - jamshed - garden_east - - - static_instance-ucs-63 - sindh - karachi - jamshed - soldier_bazar - - - static_instance-ucs-64 - sindh - karachi - jamshed - pakistan_quarters - - - static_instance-ucs-65 - sindh - karachi - kiamari - bhutta_village - - - static_instance-ucs-66 - sindh - karachi - kiamari - sultanabad - - - static_instance-ucs-67 - sindh - karachi - kiamari - kiamari_uc - - - static_instance-ucs-68 - sindh - karachi - kiamari - baba_bhit - - - static_instance-ucs-69 - sindh - karachi - kiamari - machar_colony - - - static_instance-ucs-70 - sindh - karachi - kiamari - maripur - - - static_instance-ucs-71 - sindh - karachi - kiamari - shershah - - - static_instance-ucs-72 - sindh - karachi - kiamari - gabo_pat - - - static_instance-ucs-73 - sindh - karachi - landhi - muzafarabad - - - static_instance-ucs-74 - sindh - karachi - landhi - muslimabad - - - static_instance-ucs-75 - sindh - karachi - landhi - dawood_chowrangi - - - static_instance-ucs-76 - sindh - karachi - landhi - moinabad - - - static_instance-ucs-77 - sindh - karachi - landhi - sharafi_goth - - - static_instance-ucs-78 - sindh - karachi - landhi - bhutto_nagar - - - static_instance-ucs-79 - sindh - karachi - landhi - khawaja_ajmeer_colony - - - static_instance-ucs-80 - sindh - karachi - landhi - landhi_uc - - - static_instance-ucs-81 - sindh - karachi - landhi - awami_colony - - - static_instance-ucs-82 - sindh - karachi - landhi - burmee_colony - - - static_instance-ucs-83 - sindh - karachi - landhi - korangi_uc - - - static_instance-ucs-84 - sindh - karachi - landhi - sherabad - - - static_instance-ucs-85 - sindh - karachi - liaquatabad - rizvia_society - - - static_instance-ucs-86 - sindh - karachi - liaquatabad - firdous_colony - - - static_instance-ucs-87 - sindh - karachi - liaquatabad - super_market - - - static_instance-ucs-88 - sindh - karachi - liaquatabad - dak_khana - - - static_instance-ucs-89 - sindh - karachi - liaquatabad - qasimabad - - - static_instance-ucs-90 - sindh - karachi - liaquatabad - bandhani_colony - - - static_instance-ucs-91 - sindh - karachi - liaquatabad - sharifabad - - - static_instance-ucs-92 - sindh - karachi - liaquatabad - commercial_area - - - static_instance-ucs-93 - sindh - karachi - liaquatabad - mujahid_colony - - - static_instance-ucs-94 - sindh - karachi - liaquatabad - nazimabad - - - static_instance-ucs-95 - sindh - karachi - liaquatabad - abbasi_shaheed - - - static_instance-ucs-96 - sindh - karachi - lyari - agra_taj_colony - - - static_instance-ucs-97 - sindh - karachi - lyari - daryaabad - - - static_instance-ucs-98 - sindh - karachi - lyari - nawabad - - - static_instance-ucs-99 - sindh - karachi - lyari - khada_memon_society - - - static_instance-ucs-100 - sindh - karachi - lyari - baghdadi - - - static_instance-ucs-101 - sindh - karachi - lyari - shah_baig_line - - - static_instance-ucs-102 - sindh - karachi - lyari - bihar_colony - - - static_instance-ucs-103 - sindh - karachi - lyari - ragiwara - - - static_instance-ucs-104 - sindh - karachi - lyari - singo_line - - - static_instance-ucs-105 - sindh - karachi - lyari - chakiwara - - - static_instance-ucs-106 - sindh - karachi - lyari - allama_iqbal_colony - - - static_instance-ucs-107 - sindh - karachi - malir - model_colony - - - static_instance-ucs-108 - sindh - karachi - malir - kala_board - - - static_instance-ucs-109 - sindh - karachi - malir - saudabad - - - static_instance-ucs-110 - sindh - karachi - malir - khokhra_par - - - static_instance-ucs-111 - sindh - karachi - malir - jafar_e_tayyar - - - static_instance-ucs-112 - sindh - karachi - malir - gharibabad - - - static_instance-ucs-113 - sindh - karachi - malir - ghazi_brohi_goth - - - static_instance-ucs-114 - sindh - karachi - new_karachi - kalyana - - - static_instance-ucs-115 - sindh - karachi - new_karachi - sir_syed_colony - - - static_instance-ucs-116 - sindh - karachi - new_karachi - fatima_jinnah_colony - - - static_instance-ucs-117 - sindh - karachi - new_karachi - godhra - - - static_instance-ucs-118 - sindh - karachi - new_karachi - abu_zar_ghaffari - - - static_instance-ucs-119 - sindh - karachi - new_karachi - hakim_ahsan - - - static_instance-ucs-120 - sindh - karachi - new_karachi - madina_colony - - - static_instance-ucs-121 - sindh - karachi - new_karachi - faisal_colony - - - static_instance-ucs-122 - sindh - karachi - new_karachi - khamiso_goth - - - static_instance-ucs-123 - sindh - karachi - new_karachi - mustufa_colony - - - static_instance-ucs-124 - sindh - karachi - new_karachi - khawaja_ajmeer_nagri - - - static_instance-ucs-125 - sindh - karachi - new_karachi - gulshan_e_saeed - - - static_instance-ucs-126 - sindh - karachi - new_karachi - shah_nawaz_bhutto_colony - - - static_instance-ucs-127 - sindh - karachi - north_nazimabad - paposh_nagar - - - static_instance-ucs-128 - sindh - karachi - north_nazimabad - pahar_ganj - - - static_instance-ucs-129 - sindh - karachi - north_nazimabad - khandu_goth - - - static_instance-ucs-130 - sindh - karachi - north_nazimabad - hyderi - - - static_instance-ucs-131 - sindh - karachi - north_nazimabad - sakhi_hassan - - - static_instance-ucs-132 - sindh - karachi - north_nazimabad - farooq_e_azam - - - static_instance-ucs-133 - sindh - karachi - north_nazimabad - nusrat_bhutto_colony - - - static_instance-ucs-134 - sindh - karachi - north_nazimabad - shadman_town - - - static_instance-ucs-135 - sindh - karachi - north_nazimabad - buffer_zone - - - static_instance-ucs-136 - sindh - karachi - north_nazimabad - buffer_zone_ii - - - static_instance-ucs-137 - sindh - karachi - orangi - mominabad - - - static_instance-ucs-138 - sindh - karachi - orangi - haryana_colony - - - static_instance-ucs-139 - sindh - karachi - orangi - hanifabad - - - static_instance-ucs-140 - sindh - karachi - orangi - mohammad_nagar - - - static_instance-ucs-141 - sindh - karachi - orangi - madina_colony_orangi - - - static_instance-ucs-142 - sindh - karachi - orangi - ghaziabad - - - static_instance-ucs-143 - sindh - karachi - orangi - chisti_nagar - - - static_instance-ucs-144 - sindh - karachi - orangi - bilal_colony_orangi - - - static_instance-ucs-145 - sindh - karachi - orangi - iqbal_baloch_colony - - - static_instance-ucs-146 - sindh - karachi - orangi - ghabool_town - - - static_instance-ucs-147 - sindh - karachi - orangi - data_nagar - - - static_instance-ucs-148 - sindh - karachi - orangi - mujahidabad - - - static_instance-ucs-149 - sindh - karachi - orangi - baloch_goth - - - static_instance-ucs-150 - sindh - karachi - saddar - old_haji_camp - - - static_instance-ucs-151 - sindh - karachi - saddar - garden - - - static_instance-ucs-152 - sindh - karachi - saddar - kharadar - - - static_instance-ucs-153 - sindh - karachi - saddar - city_railway_colony - - - static_instance-ucs-154 - sindh - karachi - saddar - nanak_wara - - - static_instance-ucs-155 - sindh - karachi - saddar - gazdarabad - - - static_instance-ucs-156 - sindh - karachi - saddar - millat_nagar_islam_pura - - - static_instance-ucs-157 - sindh - karachi - saddar - saddar_uc - - - static_instance-ucs-158 - sindh - karachi - saddar - civil_line - - - static_instance-ucs-159 - sindh - karachi - saddar - clifton - - - static_instance-ucs-160 - sindh - karachi - saddar - kehkashan - - - static_instance-ucs-161 - sindh - karachi - shah_faisal - natha_khan_goth - - - static_instance-ucs-162 - sindh - karachi - shah_faisal - pak_sadat_colony - - - static_instance-ucs-163 - sindh - karachi - shah_faisal - drigh_colony - - - static_instance-ucs-164 - sindh - karachi - shah_faisal - raita_plot - - - static_instance-ucs-165 - sindh - karachi - shah_faisal - moria_khan_goth - - - static_instance-ucs-166 - sindh - karachi - shah_faisal - rafa_e_aam_society - - - static_instance-ucs-167 - sindh - karachi - shah_faisal - al_falah_society - - - static_instance-ucs-168 - sindh - karachi - site - pak_colony - - - static_instance-ucs-169 - sindh - karachi - site - old_golimar - - - static_instance-ucs-170 - sindh - karachi - site - jahanabad - - - static_instance-ucs-171 - sindh - karachi - site - metrovil - - - static_instance-ucs-172 - sindh - karachi - site - bhawani_chali - - - static_instance-ucs-173 - sindh - karachi - site - frontier_colony - - - static_instance-ucs-174 - sindh - karachi - site - banaras_colony - - - static_instance-ucs-175 - sindh - karachi - site - qasba_colony - - - static_instance-ucs-176 - sindh - karachi - site - islamia_colony - - - static_instance-ucs-177 - na - na - na - other - - - static_instance-ucs-178 - na - na - na - not_applicable - - - - - - - static_instance-gender-0 - male - - - static_instance-gender-1 - female - - - static_instance-gender-2 - transgender - - - - - - - static_instance-vaccines-0 - bcg - - - static_instance-vaccines-1 - opv0 - - - static_instance-vaccines-2 - pcv1 - - - static_instance-vaccines-3 - opv1 - - - static_instance-vaccines-4 - penta11 - - - static_instance-vaccines-5 - pcv2 - - - static_instance-vaccines-6 - opv2 - - - static_instance-vaccines-7 - penta12 - - - static_instance-vaccines-8 - pcv3 - - - static_instance-vaccines-9 - opv3 - - - static_instance-vaccines-10 - penta13 - - - static_instance-vaccines-11 - ipv - - - static_instance-vaccines-12 - measles1 - - - static_instance-vaccines-13 - measles2 - - - - - - - static_instance-towns-0 - sindh - karachi - korangi - - - static_instance-towns-1 - sindh - karachi - landhi - - - static_instance-towns-2 - sindh - karachi - baldia - - - static_instance-towns-3 - sindh - karachi - bin_qasim - - - static_instance-towns-4 - sindh - karachi - gadap - - - static_instance-towns-5 - sindh - karachi - gulberg - - - static_instance-towns-6 - sindh - karachi - gulshan - - - static_instance-towns-7 - sindh - karachi - jamshed - - - static_instance-towns-8 - sindh - karachi - kiamari - - - static_instance-towns-9 - sindh - karachi - liaquatabad - - - static_instance-towns-10 - sindh - karachi - lyari - - - static_instance-towns-11 - sindh - karachi - malir - - - static_instance-towns-12 - sindh - karachi - new_karachi - - - static_instance-towns-13 - sindh - karachi - north_nazimabad - - - static_instance-towns-14 - sindh - karachi - orangi - - - static_instance-towns-15 - sindh - karachi - saddar - - - static_instance-towns-16 - sindh - karachi - shah_faisal - - - static_instance-towns-17 - sindh - karachi - site - - - static_instance-towns-18 - na - na - other - - - static_instance-towns-19 - na - na - not_applicable - - - - - - - static_instance-cities-0 - sindh - karachi - - - static_instance-cities-1 - punjab - hafizabad - - - static_instance-cities-2 - punjab - muzaffargarh - - - static_instance-cities-3 - na - other - - - static_instance-cities-4 - na - not_applicable - - - - - - - static_instance-yes_no-0 - yes - - - static_instance-yes_no-1 - no - - - - diff --git a/opensrp-connector/src/test/resources/form/offsite_woman_followup/form.json b/opensrp-connector/src/test/resources/form/offsite_woman_followup/form.json deleted file mode 100644 index c5c29a415b..0000000000 --- a/opensrp-connector/src/test/resources/form/offsite_woman_followup/form.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"Offsite_Woman_Followup_Form","title":"دوسرے سینٹر میں رجسٹرڈ خواتین فالواپ رجسٹر - Off Site Woman Follow Up Form","sms_keyword":"offsite_woman_followup_form","default_language":"English","choices":{"provinces":[{"name":"kpk","label":{"Urdu":"خیبر پختون خواہ","English":"Khyber Pakhtunkhwa","Roman Urdu":"Khyber Pakhtunkhwa"}},{"name":"sindh","label":{"Urdu":"سندھ","English":"Sindh","Roman Urdu":"Sindh"}},{"name":"balochistan","label":{"Urdu":"بلوچستان","English":"Balochistan","Roman Urdu":"Balochistan"}},{"name":"punjab","label":{"Urdu":"پنجاب","English":"Punjab","Roman Urdu":"Punjab"}},{"name":"gilgit_baltistan","label":{"Urdu":"گلگت بلتستان","English":"Gilgit Baltistan","Roman Urdu":"Gilgit Baltistan"}},{"name":"kashmir","label":{"Urdu":"کشمیر","English":"Kashmir","Roman Urdu":"Kashmir"}},{"name":"fata","label":{"Urdu":"فاٹا","English":"FATA","Roman Urdu":"FATA"}},{"name":"out_of_country","label":{"Urdu":"ملک سے باہر","English":"Out of Country","Roman Urdu":"Mulk se baahir"}}],"ucs":[{"province":"sindh","city":"karachi","town":"korangi","name":"bilal_colony","label":{"Urdu":"بلال کالونی","Roman Urdu":"Bilal Colony","English":"Bilal Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"nasir_colony","label":{"Urdu":"ناصر کالونی","Roman Urdu":"Nasir Colony","English":"Nasir Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"chakra_goth","label":{"Urdu":"چکرا گوٹھ","Roman Urdu":"Chakra Goth","English":"Chakra Goth"}},{"province":"sindh","city":"karachi","town":"korangi","name":"mustafa_taj_colony","label":{"Urdu":"مصطفی تاج کالونی","Roman Urdu":"Mustafa Taj Colony","English":"Mustafa Taj Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"hundred_quarters","label":{"Urdu":"ہنڈریڈ کوارٹر","Roman Urdu":"Hundred Quarters","English":"Hundred Quarters"}},{"province":"sindh","city":"karachi","town":"korangi","name":"gulzar_colony","label":{"Urdu":"گلزار کالونی","Roman Urdu":"Gulzar Colony","English":"Gulzar Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"korangi_sector_33","label":{"Urdu":"کورنگی سیکٹر 33","Roman Urdu":"Korangi Sector 33","English":"Korangi Sector 33"}},{"province":"sindh","city":"karachi","town":"korangi","name":"zaman_town","label":{"Urdu":"زمان ٹاوَن","Roman Urdu":"Zaman Town","English":"Zaman Town"}},{"province":"sindh","city":"karachi","town":"korangi","name":"hasrat_mohani_colony","label":{"Urdu":"حسرت موہانی کالونی","Roman Urdu":"Hasrat Mohani Colony","English":"Hasrat Mohani Colony"}},{"province":"sindh","city":"karachi","town":"baldia","name":"gulshan_e_ghazi","label":{"Urdu":"گلشن غازی","Roman Urdu":"Gulshan-e-Ghazi","English":"Gulshan-e-Ghazi"}},{"province":"sindh","city":"karachi","town":"baldia","name":"ittehad_town","label":{"Urdu":"اتحاد ٹاوَن","Roman Urdu":"Ittehad Town","English":"Ittehad Town"}},{"province":"sindh","city":"karachi","town":"baldia","name":"islam_nagar","label":{"Urdu":"اسلام نگر","Roman Urdu":"Islam Nagar","English":"Islam Nagar"}},{"province":"sindh","city":"karachi","town":"baldia","name":"nai_abadi","label":{"Urdu":"نئی آبادی","Roman Urdu":"Nai Abadi","English":"Nai Abadi"}},{"province":"sindh","city":"karachi","town":"baldia","name":"saeedabad","label":{"Urdu":"سعید آباد","Roman Urdu":"Saeedabad","English":"Saeedabad"}},{"province":"sindh","city":"karachi","town":"baldia","name":"muslim_mujahid_colony","label":{"Urdu":"مسلم مجاہد کالونی","Roman Urdu":"Muslim Mujahid Colony","English":"Muslim Mujahid Colony"}},{"province":"sindh","city":"karachi","town":"baldia","name":"muhajir_camp","label":{"Urdu":"مہاجر کیمپ","Roman Urdu":"Muhajir Camp","English":"Muhajir Camp"}},{"province":"sindh","city":"karachi","town":"baldia","name":"rasheedabad","label":{"Urdu":"رشید آباد","Roman Urdu":"Rasheedabad","English":"Rasheedabad"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"ibrahim_hyderi","label":{"Urdu":"ابراہیم حیدری","Roman Urdu":"Ibrahim Hyderi","English":"Ibrahim Hyderi"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"rehri","label":{"Urdu":"رہڑی","Roman Urdu":"Rehri","English":"Rehri"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"cattle_colony","label":{"Urdu":"کیٹل کالونی","Roman Urdu":"Cattle Colony","English":"Cattle Colony"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"qaidabad","label":{"Urdu":"قائدآباد","Roman Urdu":"Qaidabad","English":"Qaidabad"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"landhi_colony","label":{"Urdu":"لانڈھی کالونی","Roman Urdu":"Landhi Colony","English":"Landhi Colony"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"gulshan_e_hadeed","label":{"Urdu":"گلشن حدید","Roman Urdu":"Gulshan-e-Hadeed","English":"Gulshan-e-Hadeed"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"gaghar","label":{"Urdu":"گگر","Roman Urdu":"Gaghar","English":"Gaghar"}},{"province":"sindh","city":"karachi","town":"gadap","name":"murad_memon_goth","label":{"Urdu":"مراد میمن گوٹھ","Roman Urdu":"Murad Memon Goth","English":"Murad Memon Goth"}},{"province":"sindh","city":"karachi","town":"gadap","name":"darsano_chana","label":{"Urdu":"درشانو شنو","Roman Urdu":"Darsano Chana","English":"Darsano Chana"}},{"province":"sindh","city":"karachi","town":"gadap","name":"gujro","label":{"Urdu":"گجرو","Roman Urdu":"Gujro","English":"Gujro"}},{"province":"sindh","city":"karachi","town":"gadap","name":"songal","label":{"Urdu":"سنگل","Roman Urdu":"Songal","English":"Songal"}},{"province":"sindh","city":"karachi","town":"gadap","name":"maymarabad","label":{"Urdu":"معمار آباد","Roman Urdu":"Maymarabad","English":"Maymarabad"}},{"province":"sindh","city":"karachi","town":"gadap","name":"yousuf_goth","label":{"Urdu":"یوسف گوٹھ","Roman Urdu":"Yousuf Goth","English":"Yousuf Goth"}},{"province":"sindh","city":"karachi","town":"gadap","name":"manghopir","label":{"Urdu":"منگھوپیر","Roman Urdu":"Manghopir","English":"Manghopir"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"azizabad","label":{"Urdu":"عزیز آباد","Roman Urdu":"Azizabad","English":"Azizabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"karimabad","label":{"Urdu":"کریم آباد","Roman Urdu":"Karimabad","English":"Karimabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"aisha_manzil","label":{"Urdu":"عائشہ منزل","Roman Urdu":"Aisha Manzil","English":"Aisha Manzil"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"ancholi","label":{"Urdu":"انچولی","Roman Urdu":"Ancholi","English":"Ancholi"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"naseerabad","label":{"Urdu":"نصیرآباد","Roman Urdu":"Naseerabad","English":"Naseerabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"yaseenabad","label":{"Urdu":"یاسین آباد","Roman Urdu":"Yaseenabad","English":"Yaseenabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"water_pump","label":{"Urdu":"واٹرپمپ","Roman Urdu":"Water Pump","English":"Water Pump"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"shafiq_mill_colony","label":{"Urdu":"شفیق مل کالونی","Roman Urdu":"Shafiq Mill Colony","English":"Shafiq Mill Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"delhi_mercantile_society","label":{"Urdu":"دہلی مرچنٹائل سوسائٹی","Roman Urdu":"Delhi Mercantile Society","English":"Delhi Mercantile Society"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"civic_centre","label":{"Urdu":"سوک سینٹر","Roman Urdu":"Civic Centre","English":"Civic Centre"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"pir_ilahi_buksh_colony","label":{"Urdu":"پیر الہی بخش کالونی","Roman Urdu":"Pir Ilahi Buksh Colony","English":"Pir Ilahi Buksh Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"essa_nagri","label":{"Urdu":"عیسی نگری","Roman Urdu":"Essa Nagri","English":"Essa Nagri"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gulshan_e_iqbal","label":{"Urdu":"گلشن اقبال","Roman Urdu":"Gulshan-e-Iqbal","English":"Gulshan-e-Iqbal"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gillani_railway_station","label":{"Urdu":"گیلانی ریلوے اسٹیشن","Roman Urdu":"Gillani Railway Station","English":"Gillani Railway Station"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"shanti_nagar","label":{"Urdu":"شانتی نگر","Roman Urdu":"Shanti Nagar","English":"Shanti Nagar"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"jamali_colony","label":{"Urdu":"جمالی کالونی","Roman Urdu":"Jamali Colony","English":"Jamali Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gulshan_e_iqbal_ii","label":{"Urdu":"گلشن اقبال 2","Roman Urdu":"Gulshan-e-Iqbal II","English":"Gulshan-e-Iqbal II"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"pehlwan_goth","label":{"Urdu":"پہلوان گوٹھ","Roman Urdu":"Pehlwan Goth","English":"Pehlwan Goth"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"matrovil_colony","label":{"Urdu":"میٹروویل کالونی","Roman Urdu":"Matrovil Colony","English":"Matrovil Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gulzar_e_hijri","label":{"Urdu":"گلزار ہجری","Roman Urdu":"Gulzar-e-Hijri","English":"Gulzar-e-Hijri"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"safooran_goth","label":{"Urdu":"صفورا گوٹھ","Roman Urdu":"Safooran Goth","English":"Safooran Goth"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"akhtar_colony","label":{"Urdu":"اختر کالونی","Roman Urdu":"Akhtar Colony","English":"Akhtar Colony"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"manzoor_colony","label":{"Urdu":"منظور کالونی","Roman Urdu":"Manzoor Colony","English":"Manzoor Colony"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"azam_basti","label":{"Urdu":"اعظم بستی","Roman Urdu":"Azam Basti","English":"Azam Basti"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"chanesar_goth","label":{"Urdu":"چنیسر گوٹھ","Roman Urdu":"Chanesar Goth","English":"Chanesar Goth"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"mahmudabad","label":{"Urdu":"محمودآباد","Roman Urdu":"Mahmudabad","English":"Mahmudabad"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"pechs","label":{"Urdu":"پی۔ای۔سی۔ایچ۔ایس","Roman Urdu":"P.E.C.H.S.","English":"P.E.C.H.S."}},{"province":"sindh","city":"karachi","town":"jamshed","name":"pechs_ii","label":{"Urdu":"پی۔ای۔سی۔ایچ۔ایس 2","Roman Urdu":"P.E.C.H.S. II","English":"P.E.C.H.S. II"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"jut_line","label":{"Urdu":"جٹ لائن","Roman Urdu":"Jut Line","English":"Jut Line"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"central_jacob_lines","label":{"Urdu":"سینٹرل جیکب لائن","Roman Urdu":"Central Jacob Lines","English":"Central Jacob Lines"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"jamshed_quarters","label":{"Urdu":"جمشید کوارٹر","Roman Urdu":"Jamshed Quarters","English":"Jamshed Quarters"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"garden_east","label":{"Urdu":"گارڈن ایسٹ","Roman Urdu":"Garden East","English":"Garden East"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"soldier_bazar","label":{"Urdu":"سولجر بازار","Roman Urdu":"Soldier Bazar","English":"Soldier Bazar"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"pakistan_quarters","label":{"Urdu":"پاکستان کوارٹر","Roman Urdu":"Pakistan Quarters","English":"Pakistan Quarters"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"bhutta_village","label":{"Urdu":"بھٹا ولیج","Roman Urdu":"Bhutta Village","English":"Bhutta Village"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"sultanabad","label":{"Urdu":"سلطان آباد","Roman Urdu":"Sultanabad","English":"Sultanabad"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"kiamari_uc","label":{"Urdu":"کیماری یوسی","Roman Urdu":"Kiamari UC","English":"Kiamari UC"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"baba_bhit","label":{"Urdu":"بابا بھٹ","Roman Urdu":"Baba Bhit","English":"Baba Bhit"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"machar_colony","label":{"Urdu":"مچھر کالونی","Roman Urdu":"Machar Colony","English":"Machar Colony"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"maripur","label":{"Urdu":"ماڑی پور","Roman Urdu":"Maripur","English":"Maripur"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"shershah","label":{"Urdu":"شیرشاہ","Roman Urdu":"SherShah","English":"SherShah"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"gabo_pat","label":{"Urdu":"گابو پٹ","Roman Urdu":"Gabo Pat","English":"Gabo Pat"}},{"province":"sindh","city":"karachi","town":"landhi","name":"muzafarabad","label":{"Urdu":"مظفرآباد","Roman Urdu":"Muzafarabad","English":"Muzafarabad"}},{"province":"sindh","city":"karachi","town":"landhi","name":"muslimabad","label":{"Urdu":"مسلم آباد","Roman Urdu":"Muslimabad","English":"Muslimabad"}},{"province":"sindh","city":"karachi","town":"landhi","name":"dawood_chowrangi","label":{"Urdu":"داوَد چورنگی","Roman Urdu":"Dawood Chowrangi","English":"Dawood Chowrangi"}},{"province":"sindh","city":"karachi","town":"landhi","name":"moinabad","label":{"Urdu":"معین آباد","Roman Urdu":"Moinabad","English":"Moinabad"}},{"province":"sindh","city":"karachi","town":"landhi","name":"sharafi_goth","label":{"Urdu":"شرافی گوٹھ","Roman Urdu":"Sharafi Goth","English":"Sharafi Goth"}},{"province":"sindh","city":"karachi","town":"landhi","name":"bhutto_nagar","label":{"Urdu":"بھٹو نگر","Roman Urdu":"Bhutto Nagar","English":"Bhutto Nagar"}},{"province":"sindh","city":"karachi","town":"landhi","name":"khawaja_ajmeer_colony","label":{"Urdu":"خواجہ اجمیر کالونی","Roman Urdu":"Khawaja Ajmeer Colony","English":"Khawaja Ajmeer Colony"}},{"province":"sindh","city":"karachi","town":"landhi","name":"landhi_uc","label":{"Urdu":"لانڈھی یوسی","Roman Urdu":"Landhi UC","English":"Landhi UC"}},{"province":"sindh","city":"karachi","town":"landhi","name":"awami_colony","label":{"Urdu":"عوامی کالونی","Roman Urdu":"Awami Colony","English":"Awami Colony"}},{"province":"sindh","city":"karachi","town":"landhi","name":"burmee_colony","label":{"Urdu":"برمی کالونی","Roman Urdu":"Burmee Colony","English":"Burmee Colony"}},{"province":"sindh","city":"karachi","town":"landhi","name":"korangi_uc","label":{"Urdu":"کورنگی یوسی","Roman Urdu":"Korangi UC","English":"Korangi UC"}},{"province":"sindh","city":"karachi","town":"landhi","name":"sherabad","label":{"Urdu":"شیرآباد","Roman Urdu":"Sherabad","English":"Sherabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"rizvia_society","label":{"Urdu":"رضویہ سوسائٹی","Roman Urdu":"Rizvia Society","English":"Rizvia Society"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"firdous_colony","label":{"Urdu":"فردوس کالونی","Roman Urdu":"Firdous Colony","English":"Firdous Colony"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"super_market","label":{"Urdu":"سپر مارکیٹ","Roman Urdu":"Super Market","English":"Super Market"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"dak_khana","label":{"Urdu":"دک کھانہ","Roman Urdu":"Dak Khana","English":"Dak Khana"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"qasimabad","label":{"Urdu":"قاسم آباد","Roman Urdu":"Qasimabad","English":"Qasimabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"bandhani_colony","label":{"Urdu":"بندھانی کالونی","Roman Urdu":"Bandhani Colony","English":"Bandhani Colony"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"sharifabad","label":{"Urdu":"شریف آباد","Roman Urdu":"Sharifabad","English":"Sharifabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"commercial_area","label":{"Urdu":"کمرشل ایریا","Roman Urdu":"Commercial Area","English":"Commercial Area"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"mujahid_colony","label":{"Urdu":"مجاہد کالونی","Roman Urdu":"Mujahid Colony","English":"Mujahid Colony"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"nazimabad","label":{"Urdu":"ناظم آباد","Roman Urdu":"Nazimabad","English":"Nazimabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"abbasi_shaheed","label":{"Urdu":"عباسی شہید","Roman Urdu":"Abbasi Shaheed","English":"Abbasi Shaheed"}},{"province":"sindh","city":"karachi","town":"lyari","name":"agra_taj_colony","label":{"Urdu":"آگرہ تاج کالونی","Roman Urdu":"Agra Taj Colony","English":"Agra Taj Colony"}},{"province":"sindh","city":"karachi","town":"lyari","name":"daryaabad","label":{"Urdu":"دریاآباد","Roman Urdu":"Daryaabad","English":"Daryaabad"}},{"province":"sindh","city":"karachi","town":"lyari","name":"nawabad","label":{"Urdu":"نواآباد","Roman Urdu":"Nawabad","English":"Nawabad"}},{"province":"sindh","city":"karachi","town":"lyari","name":"khada_memon_society","label":{"Urdu":"خدا- میمن- سوساَٹی","Roman Urdu":"Khada Memon Society","English":"Khada Memon Society"}},{"province":"sindh","city":"karachi","town":"lyari","name":"baghdadi","label":{"Urdu":"بغدادی","Roman Urdu":"Baghdadi","English":"Baghdadi"}},{"province":"sindh","city":"karachi","town":"lyari","name":"shah_baig_line","label":{"Urdu":"شاھ باغ لائن","Roman Urdu":"Shah Baig Line","English":"Shah Baig Line"}},{"province":"sindh","city":"karachi","town":"lyari","name":"bihar_colony","label":{"Urdu":"بہار کالونی","Roman Urdu":"Bihar Colony","English":"Bihar Colony"}},{"province":"sindh","city":"karachi","town":"lyari","name":"ragiwara","label":{"Urdu":"راگی واڑا","Roman Urdu":"Ragiwara","English":"Ragiwara"}},{"province":"sindh","city":"karachi","town":"lyari","name":"singo_line","label":{"Urdu":"سنگولائن","Roman Urdu":"Singo Line","English":"Singo Line"}},{"province":"sindh","city":"karachi","town":"lyari","name":"chakiwara","label":{"Urdu":"چاکی واڑا","Roman Urdu":"Chakiwara","English":"Chakiwara"}},{"province":"sindh","city":"karachi","town":"lyari","name":"allama_iqbal_colony","label":{"Urdu":"علامہ اقبال کالونی","Roman Urdu":"Allama Iqbal Colony","English":"Allama Iqbal Colony"}},{"province":"sindh","city":"karachi","town":"malir","name":"model_colony","label":{"Urdu":"موڈل کالونی","Roman Urdu":"Model Colony","English":"Model Colony"}},{"province":"sindh","city":"karachi","town":"malir","name":"kala_board","label":{"Urdu":"کالا بورڈ","Roman Urdu":"Kala Board","English":"Kala Board"}},{"province":"sindh","city":"karachi","town":"malir","name":"saudabad","label":{"Urdu":"سعودآباد","Roman Urdu":"Saudabad","English":"Saudabad"}},{"province":"sindh","city":"karachi","town":"malir","name":"khokhra_par","label":{"Urdu":"کھوکھرا پار","Roman Urdu":"Khokhra Par","English":"Khokhra Par"}},{"province":"sindh","city":"karachi","town":"malir","name":"jafar_e_tayyar","label":{"Urdu":"جعفر تیار","Roman Urdu":"Jafar-e-Tayyar","English":"Jafar-e-Tayyar"}},{"province":"sindh","city":"karachi","town":"malir","name":"gharibabad","label":{"Urdu":"غریب آباد","Roman Urdu":"Gharibabad","English":"Gharibabad"}},{"province":"sindh","city":"karachi","town":"malir","name":"ghazi_brohi_goth","label":{"Urdu":"غازی بروہی گوٹھ","Roman Urdu":"Ghazi Brohi Goth","English":"Ghazi Brohi Goth"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"kalyana","label":{"Urdu":"کالیانہ","Roman Urdu":"Kalyana","English":"Kalyana"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"sir_syed_colony","label":{"Urdu":"سر سید کالونی","Roman Urdu":"Sir Syed Colony","English":"Sir Syed Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"fatima_jinnah_colony","label":{"Urdu":"فاطمہ جناح کالونی","Roman Urdu":"Fatima Jinnah Colony","English":"Fatima Jinnah Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"godhra","label":{"Urdu":"گودھرا","Roman Urdu":"Godhra","English":"Godhra"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"abu_zar_ghaffari","label":{"Urdu":"ابو زر غفاری","Roman Urdu":"Abu Zar Ghaffari","English":"Abu Zar Ghaffari"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"hakim_ahsan","label":{"Urdu":"حاکم احسان","Roman Urdu":"Hakim Ahsan","English":"Hakim Ahsan"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"madina_colony","label":{"Urdu":"مدینہ کالونی","Roman Urdu":"Madina Colony","English":"Madina Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"faisal_colony","label":{"Urdu":"فیصل کالونی","Roman Urdu":"Faisal Colony","English":"Faisal Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"khamiso_goth","label":{"Urdu":"خمیسو گوٹھ","Roman Urdu":"Khamiso Goth","English":"Khamiso Goth"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"mustufa_colony","label":{"Urdu":"مصطفی کالونی","Roman Urdu":"Mustufa Colony","English":"Mustufa Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"khawaja_ajmeer_nagri","label":{"Urdu":"خواجہ اجمیر نگری","Roman Urdu":"Khawaja Ajmeer Nagri","English":"Khawaja Ajmeer Nagri"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"gulshan_e_saeed","label":{"Urdu":"گلشن سعید","Roman Urdu":"Gulshan-e-Saeed","English":"Gulshan-e-Saeed"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"shah_nawaz_bhutto_colony","label":{"Urdu":"شاہ نواز بھٹو کالونی","Roman Urdu":"Shah Nawaz Bhutto Colony","English":"Shah Nawaz Bhutto Colony"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"paposh_nagar","label":{"Urdu":"پاپوش نگر","Roman Urdu":"Paposh Nagar","English":"Paposh Nagar"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"pahar_ganj","label":{"Urdu":"پہاڑ گنج","Roman Urdu":"Pahar Ganj","English":"Pahar Ganj"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"khandu_goth","label":{"Urdu":"کھنڑو گوٹھ","Roman Urdu":"Khandu Goth","English":"Khandu Goth"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"hyderi","label":{"Urdu":"حیدری","Roman Urdu":"Hyderi","English":"Hyderi"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"sakhi_hassan","label":{"Urdu":"سخی حسن","Roman Urdu":"Sakhi Hassan","English":"Sakhi Hassan"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"farooq_e_azam","label":{"Urdu":"فاروق اعظم","Roman Urdu":"Farooq-e-Azam","English":"Farooq-e-Azam"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"nusrat_bhutto_colony","label":{"Urdu":"نصرت بھٹو کالونی","Roman Urdu":"Nusrat Bhutto Colony","English":"Nusrat Bhutto Colony"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"shadman_town","label":{"Urdu":"شادمان ٹاوَن","Roman Urdu":"Shadman Town","English":"Shadman Town"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"buffer_zone","label":{"Urdu":"بفرزون","Roman Urdu":"Buffer Zone","English":"Buffer Zone"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"buffer_zone_ii","label":{"Urdu":"بفرزون 2","Roman Urdu":"Buffer Zone II","English":"Buffer Zone II"}},{"province":"sindh","city":"karachi","town":"orangi","name":"mominabad","label":{"Urdu":"مومن آباد","Roman Urdu":"Mominabad","English":"Mominabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"haryana_colony","label":{"Urdu":"حریانہ کالونی","Roman Urdu":"Haryana Colony","English":"Haryana Colony"}},{"province":"sindh","city":"karachi","town":"orangi","name":"hanifabad","label":{"Urdu":"حنیف آباد","Roman Urdu":"Hanifabad","English":"Hanifabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"mohammad_nagar","label":{"Urdu":"محمد نگر","Roman Urdu":"Mohammad Nagar","English":"Mohammad Nagar"}},{"province":"sindh","city":"karachi","town":"orangi","name":"madina_colony_orangi","label":{"Urdu":"مدینہ کالونی اورنگی","Roman Urdu":"Madina Colony Orangi","English":"Madina Colony Orangi"}},{"province":"sindh","city":"karachi","town":"orangi","name":"ghaziabad","label":{"Urdu":"غازی آباد","Roman Urdu":"Ghaziabad","English":"Ghaziabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"chisti_nagar","label":{"Urdu":"چشتی نگر","Roman Urdu":"Chisti Nagar","English":"Chisti Nagar"}},{"province":"sindh","city":"karachi","town":"orangi","name":"bilal_colony_orangi","label":{"Urdu":"بلال کالونی اورنگی","Roman Urdu":"Bilal Colony Orangi","English":"Bilal Colony Orangi"}},{"province":"sindh","city":"karachi","town":"orangi","name":"iqbal_baloch_colony","label":{"Urdu":"اقبال بلوچ کالونی","Roman Urdu":"Iqbal Baloch Colony","English":"Iqbal Baloch Colony"}},{"province":"sindh","city":"karachi","town":"orangi","name":"ghabool_town","label":{"Urdu":"گبول ٹاوَن","Roman Urdu":"Ghabool Town","English":"Ghabool Town"}},{"province":"sindh","city":"karachi","town":"orangi","name":"data_nagar","label":{"Urdu":"داتا نگر","Roman Urdu":"Data Nagar","English":"Data Nagar"}},{"province":"sindh","city":"karachi","town":"orangi","name":"mujahidabad","label":{"Urdu":"مجاہد آباد","Roman Urdu":"Mujahidabad","English":"Mujahidabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"baloch_goth","label":{"Urdu":"بلوچ گوٹھ","Roman Urdu":"Baloch Goth","English":"Baloch Goth"}},{"province":"sindh","city":"karachi","town":"saddar","name":"old_haji_camp","label":{"Urdu":"پرانہ حاجی کیمپ","Roman Urdu":"Old Haji Camp","English":"Old Haji Camp"}},{"province":"sindh","city":"karachi","town":"saddar","name":"garden","label":{"Urdu":"گارڈن","Roman Urdu":"Garden","English":"Garden"}},{"province":"sindh","city":"karachi","town":"saddar","name":"kharadar","label":{"Urdu":"کھارادر","Roman Urdu":"Kharadar","English":"Kharadar"}},{"province":"sindh","city":"karachi","town":"saddar","name":"city_railway_colony","label":{"Urdu":"سٹی ریلوے کالونی","Roman Urdu":"City Railway Colony","English":"City Railway Colony"}},{"province":"sindh","city":"karachi","town":"saddar","name":"nanak_wara","label":{"Urdu":"ناناک واڑا","Roman Urdu":"Nanak Wara","English":"Nanak Wara"}},{"province":"sindh","city":"karachi","town":"saddar","name":"gazdarabad","label":{"Urdu":"گزدرآباد","Roman Urdu":"Gazdarabad","English":"Gazdarabad"}},{"province":"sindh","city":"karachi","town":"saddar","name":"millat_nagar_islam_pura","label":{"Urdu":"ملت نگر اسلام پورا","Roman Urdu":"Millat Nagar/Islam Pura","English":"Millat Nagar/Islam Pura"}},{"province":"sindh","city":"karachi","town":"saddar","name":"saddar_uc","label":{"Urdu":"صدر یو سی","Roman Urdu":"Saddar UC","English":"Saddar UC"}},{"province":"sindh","city":"karachi","town":"saddar","name":"civil_line","label":{"Urdu":"سول لائن","Roman Urdu":"Civil Line","English":"Civil Line"}},{"province":"sindh","city":"karachi","town":"saddar","name":"clifton","label":{"Urdu":"کلفٹن","Roman Urdu":"Clifton","English":"Clifton"}},{"province":"sindh","city":"karachi","town":"saddar","name":"kehkashan","label":{"Urdu":"کہکشان","Roman Urdu":"Kehkashan","English":"Kehkashan"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"natha_khan_goth","label":{"Urdu":"ناتھا خان گوٹھ","Roman Urdu":"Natha Khan Goth","English":"Natha Khan Goth"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"pak_sadat_colony","label":{"Urdu":"پاک صدر کالونی","Roman Urdu":"Pak Sadat Colony","English":"Pak Sadat Colony"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"drigh_colony","label":{"Urdu":"ڈرگ کالونی","Roman Urdu":"Drigh Colony","English":"Drigh Colony"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"raita_plot","label":{"Urdu":"رائتا پلاٹ","Roman Urdu":"Raita Plot","English":"Raita Plot"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"moria_khan_goth","label":{"Urdu":"موریا خان گوٹھ","Roman Urdu":"Moria Khan Goth","English":"Moria Khan Goth"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"rafa_e_aam_society","label":{"Urdu":"رفا عام سوسا ئٹی","Roman Urdu":"Rafa-e-Aam Society","English":"Rafa-e-Aam Society"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"al_falah_society","label":{"Urdu":"الفلاح سوسا ئٹی","Roman Urdu":"Al-Falah Society","English":"Al-Falah Society"}},{"province":"sindh","city":"karachi","town":"site","name":"pak_colony","label":{"Urdu":"پاک کالونی","Roman Urdu":"Pak Colony","English":"Pak Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"old_golimar","label":{"Urdu":"پرانہ گولی مار","Roman Urdu":"Old Golimar","English":"Old Golimar"}},{"province":"sindh","city":"karachi","town":"site","name":"jahanabad","label":{"Urdu":"جہان آباد","Roman Urdu":"Jahanabad","English":"Jahanabad"}},{"province":"sindh","city":"karachi","town":"site","name":"metrovil","label":{"Urdu":"میٹروویل","Roman Urdu":"Metrovil","English":"Metrovil"}},{"province":"sindh","city":"karachi","town":"site","name":"bhawani_chali","label":{"Urdu":"بہوانی چالی","Roman Urdu":"Bhawani Chali","English":"Bhawani Chali"}},{"province":"sindh","city":"karachi","town":"site","name":"frontier_colony","label":{"Urdu":"فرونٹر کالونی","Roman Urdu":"Frontier Colony","English":"Frontier Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"banaras_colony","label":{"Urdu":"بنارس کالونی","Roman Urdu":"Banaras Colony","English":"Banaras Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"qasba_colony","label":{"Urdu":"قصبہ کالونی","Roman Urdu":"Qasba Colony","English":"Qasba Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"islamia_colony","label":{"Urdu":"اسلامیہ کالونی","Roman Urdu":"Islamia Colony","English":"Islamia Colony"}},{"province":"na","city":"na","town":"na","name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}},{"province":"na","city":"na","town":"na","name":"not_applicable","label":{"Urdu":"قابل اطلاق نہیں","Roman Urdu":"Qaabil-e-atlaaq nahi","English":"Not Applicable"}}],"gender":[{"instance":{"openmrs_code":"1534AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"male","label":{"Urdu":"مرد/ لڑکا","Roman Urdu":"Mard/larka","English":"Male"}},{"instance":{"openmrs_code":"1535AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"female","label":{"Urdu":"عورت/لڑکی","Roman Urdu":"Aurat/larki","English":"Female"}},{"instance":{"openmrs_code":"163163AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"transgender","label":{"Urdu":"خواجہ سرہ","Roman Urdu":"Khwaja sira","English":"Transgender"}}],"vaccines":[{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT1","label":{"Urdu":"ٹی ٹی 1","Roman Urdu":"TT1","English":"TT1"}},{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT2","label":{"Urdu":"ٹی ٹی 2","Roman Urdu":"TT2","English":"TT2"}},{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT3","label":{"Urdu":"ٹی ٹی 3","Roman Urdu":"TT3","English":"TT3"}},{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT4","label":{"Urdu":"ٹی ٹی 4","Roman Urdu":"TT4","English":"TT4"}},{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT5","label":{"Urdu":"ٹی ٹی 5","Roman Urdu":"TT5","English":"TT5"}}],"towns":[{"province":"sindh","city":"karachi","name":"korangi","label":{"Urdu":"کورنگی","Roman Urdu":"Korangi","English":"Korangi"}},{"province":"sindh","city":"karachi","name":"landhi","label":{"Urdu":"لانڈھی","Roman Urdu":"Landhi","English":"Landhi"}},{"province":"sindh","city":"karachi","name":"baldia","label":{"Urdu":"بلدیہ","Roman Urdu":"Baldia","English":"Baldia"}},{"province":"sindh","city":"karachi","name":"bin_qasim","label":{"Urdu":"بن قاسم","Roman Urdu":"Bin Qasim","English":"Bin Qasim"}},{"province":"sindh","city":"karachi","name":"gadap","label":{"Urdu":"گڈاپ","Roman Urdu":"Gadap","English":"Gadap"}},{"province":"sindh","city":"karachi","name":"gulberg","label":{"Urdu":"گلبرگ","Roman Urdu":"Gulberg","English":"Gulberg"}},{"province":"sindh","city":"karachi","name":"gulshan","label":{"Urdu":"گلشن","Roman Urdu":"Gulshan","English":"Gulshan"}},{"province":"sindh","city":"karachi","name":"jamshed","label":{"Urdu":"جمشید","Roman Urdu":"Jamshed","English":"Jamshed"}},{"province":"sindh","city":"karachi","name":"kiamari","label":{"Urdu":"کیماری","Roman Urdu":"Kiamari","English":"Kiamari"}},{"province":"sindh","city":"karachi","name":"liaquatabad","label":{"Urdu":"لیاقت آباد","Roman Urdu":"Liaquatabad","English":"Liaquatabad"}},{"province":"sindh","city":"karachi","name":"lyari","label":{"Urdu":"لیاری","Roman Urdu":"Lyari","English":"Lyari"}},{"province":"sindh","city":"karachi","name":"malir","label":{"Urdu":"ملیر","Roman Urdu":"Malir","English":"Malir"}},{"province":"sindh","city":"karachi","name":"new_karachi","label":{"Urdu":"نیو کراچی","Roman Urdu":"New Karachi","English":"New Karachi"}},{"province":"sindh","city":"karachi","name":"north_nazimabad","label":{"Urdu":"نارتھ ناظم آباد","Roman Urdu":"North Nazimabad","English":"North Nazimabad"}},{"province":"sindh","city":"karachi","name":"orangi","label":{"Urdu":"اورنگی","Roman Urdu":"Orangi","English":"Orangi"}},{"province":"sindh","city":"karachi","name":"saddar","label":{"Urdu":"صدر","Roman Urdu":"Saddar","English":"Saddar"}},{"province":"sindh","city":"karachi","name":"shah_faisal","label":{"Urdu":"شاہ فیصل","Roman Urdu":"Shah Faisal","English":"Shah Faisal"}},{"province":"sindh","city":"karachi","name":"site","label":{"Urdu":"سائٹ","Roman Urdu":"S.I.T.E.","English":"S.I.T.E."}},{"province":"na","city":"na","name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}},{"province":"na","city":"na","name":"not_applicable","label":{"Urdu":"قابل اطلاق نہیں","Roman Urdu":"Qaabil-e-atlaaq nahi","English":"Not Applicable"}}],"cities":[{"province":"sindh","name":"karachi","label":{"Urdu":"کراچی","Roman Urdu":"Karachi","English":"Karachi"}},{"province":"punjab","name":"hafizabad","label":{"Urdu":"حافظ آباد","Roman Urdu":"Hafizabad","English":"Hafizabad"}},{"province":"punjab","name":"muzaffargarh","label":{"Urdu":"مظفر گڑھ","Roman Urdu":"Muzaffargarh","English":"Muzaffargarh"}},{"province":"na","name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}},{"province":"na","name":"not_applicable","label":{"Urdu":"قابل اطلاق نہیں","Roman Urdu":"Not Applicable","English":"Not Applicable"}}],"edd_lmp":[{"instance":{"openmrs_code":"5596AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"edd","label":{"Urdu":"زچگی کی متوقع تاریخ","Roman Urdu":"EDD","English":"EDD"}},{"instance":{"openmrs_code":"1427AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"lmp","label":{"Urdu":"پچھلی مہواری کی تاریخ","Roman Urdu":"LMP","English":"LMP"}},{"instance":{"openmrs_code":"159617AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ultrasound","label":{"Urdu":"الٹرا سائونڈ","Roman Urdu":"Ultrasound","English":"Ultrasound"}},{"instance":{"openmrs_code":"1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"none","label":{"Urdu":"کوئی بھی نہیں","Roman Urdu":"Koi bhi nahi","English":"None of the above"}}],"yes_no":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}]},"instance":{"encounter_type":"Off Site Woman Follow Up"},"version":"201604080459","id_string":"offsite_woman_followup_form","type":"survey","children":[{"type":"hidden","name":"provider_uc"},{"type":"hidden","name":"provider_town"},{"type":"hidden","name":"provider_city"},{"type":"hidden","name":"provider_province"},{"type":"hidden","name":"existing_landmark"},{"type":"hidden","name":"existing_house_number"},{"type":"hidden","name":"existing_street"},{"type":"hidden","name":"existing_union_council"},{"type":"hidden","name":"existing_town"},{"type":"hidden","name":"existing_city_village"},{"type":"hidden","name":"existing_province"},{"type":"hidden","name":"existing_union_councilname"},{"type":"hidden","name":"existing_townname"},{"type":"hidden","name":"existing_city_villagename"},{"type":"hidden","name":"existing_provincename"},{"type":"hidden","name":"existing_first_name"},{"type":"hidden","name":"existing_last_name"},{"type":"hidden","name":"existing_father_name"},{"type":"hidden","name":"existing_husband_name"},{"type":"hidden","name":"existing_marriage"},{"type":"hidden","name":"existing_calc_dob_confirm"},{"type":"hidden","name":"existing_gender"},{"type":"hidden","name":"existing_ethnicity"},{"type":"hidden","name":"existing_client_reg_date"},{"type":"hidden","name":"existing_program_client_id"},{"type":"hidden","name":"existing_epi_card_number"},{"type":"hidden","name":"existing_reminders_approval"},{"type":"hidden","name":"existing_contact_phone_number"},{"type":"hidden","name":"e_tt1"},{"type":"hidden","name":"e_tt2"},{"type":"hidden","name":"e_tt3"},{"type":"hidden","name":"e_tt4"},{"type":"hidden","name":"e_tt5"},{"type":"hidden","name":"provider_id"},{"instance":{"openmrs_entity_id":"location_id","openmrs_entity":"encounter"},"type":"hidden","name":"provider_location_id"},{"type":"hidden","name":"provider_location_name"},{"type":"note","name":"provider_location_note","label":{"Urdu":"شہر: ${provider_city} ; ٹائون: ${provider_town} ; یوسی: ${provider_uc} ; سینٹرکا نام: ${provider_location_name}","English":"City: ${provider_city} ; Town: ${provider_town} ; UC: ${provider_uc} ; Center Name: ${provider_location_name}"}},{"instance":{"openmrs_entity_id":"163137AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"start","name":"start"},{"instance":{"openmrs_entity_id":"163138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"end","name":"end"},{"instance":{"openmrs_entity_id":"163286AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"today","name":"today"},{"instance":{"openmrs_entity_id":"163149AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"deviceid","name":"deviceid"},{"instance":{"openmrs_entity_id":"163150AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"subscriberid","name":"subscriberid"},{"instance":{"openmrs_entity_id":"163151AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"simserial","name":"simserial"},{"instance":{"openmrs_entity_id":"163152AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"phonenumber","name":"phonenumber"},{"bind":{"required":"yes"},"type":"note","name":"client_reg_date_note","label":{"Urdu":"${existing_client_reg_date} :پروگرام میں اندراج کی تاریخ","Roman Urdu":"Program main andraaj ki tareekh: ${existing_client_reg_date}","English":"Client Registration date: ${existing_client_reg_date}"}},{"bind":{"required":"yes"},"type":"note","name":"program_client_id_note","label":{"Urdu":"${existing_program_client_id}:کلائنٹ کی پروگرام ائی ڈی","Roman Urdu":"Client ki program ID: ${existing_program_client_id}","English":"Program Client ID: ${existing_program_client_id}"}},{"bind":{"jr:constraintMsg":{"Urdu":"نمبر آٹھ ہندسوں پر مشتمل ہونا چاہئے","English":"Number should be 8 digits","Roman Urdu":"Number 8 hindason par mushtamil hona chahiye"},"required":"yes","constraint":"string-length(.) = 8"},"type":"integer","instance":{"openmrs_entity_id":"EPI Card Number","openmrs_entity":"person_attribute"},"name":"epi_card_number","label":{"Urdu":"ای پی آئی کارڈ نمبر: {existing_epi_card_number}$","English":"EPI Card Number: ${existing_epi_card_number}","Roman Urdu":"EPI Card Number: ${existing_epi_card_number}"}},{"bind":{"required":"yes"},"type":"note","name":"first_name_note","label":{"Urdu":"${existing_first_name}: نام","Roman Urdu":"Naam: ${existing_first_name}","English":"First Name: ${existing_first_name}"}},{"bind":{"required":"yes"},"type":"note","name":"last_name_note","label":{"Urdu":"والد کا نام: ${existing_last_name}","Roman Urdu":"Waalid ka naam: ${existing_last_name}","English":"Last name: ${existing_last_name}"}},{"bind":{"calculate":"date( today() - (${existing_calc_dob_confirm} div 365))"},"type":"calculate","name":"client_age","instance":{"openmrs_entity_id":"154384AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"type":"note","name":"birth_date_note","label":{"Urdu":"تاریخِ پیدائش: {existing_calc_dob_confirm}$ ({client_age}$) سال","English":"Birth date: ${existing_calc_dob_confirm} (${client_age}) years","Roman Urdu":"Tareekh-e-pedaaish: ${existing_calc_dob_confirm} (${client_age}) years"}},{"bind":{"required":"yes"},"type":"note","name":"gender_note","label":{"Urdu":"${existing_gender}: جنس","Roman Urdu":"Jins:${existing_gender}","English":"Gender: ${existing_gender}"}},{"type":"note","name":"father_name_note","label":{"Urdu":"والد کا نام: {existing_father_name}$","English":"Father's Name: ${existing_father_name}","Roman Urdu":"Waalid ka naam: ${existing_father_name}"}},{"type":"note","name":"marriage_note","label":{"Urdu":"شادی شدہ: {existing_marriage}$","English":"Married: ${existing_marriage}","Roman Urdu":"Shaadi shuda: ${existing_marriage}"}},{"type":"note","name":"husband_name_note","label":{"Urdu":"شوہر کا نام: {existing_husband_name}$","English":"Husband's name: ${existing_husband_name}","Roman Urdu":"Shohar ka naam: ${existing_husband_name}"}},{"bind":{"required":"yes"},"type":"note","name":"ethnicity_note","label":{"Urdu":"قومیت: {existing_ethnicity}$","Roman Urdu":"Qomiat: ${existing_ethnicity}","English":"Ethnicity: ${existing_ethnicity}"}},{"type":"note","name":"address","label":{"Urdu":"موجودہ پتہ: ${existing_house_number}, ${existing_street}, ${existing_landmark}, ${existing_union_councilname}, ${existing_townname}, ${existing_city_villagename}, ${existing_provincename}","English":"Current Address: ${existing_house_number}, ${existing_street}, ${existing_landmark}, ${existing_union_councilname}, ${existing_townname}, ${existing_city_villagename}, ${existing_provincename}","Roman Urdu":"Mojooda Address: ${existing_house_number}, ${existing_street}, ${existing_landmark}, ${existing_union_councilname}, ${existing_townname}, ${existing_city_villagename}, ${existing_provincename}"}},{"label":{"Urdu":"کیا آپ کا گھر کا پتہ بدلا ہے؟","English":"Has your home address changed?","Roman Urdu":"Kya aap ka ghar ka pata badla hai?"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}],"name":"address_change"},{"control":{"appearance":"minimal"},"name":"province","default":"${provider_province}","bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"label":{"Urdu":"صوبہ","Roman Urdu":"Suba","English":"Province"},"instance":{"openmrs_entity":"person_address","openmrs_entity_id":"stateProvince","openmrs_entity_parent":"usual_residence"},"type":"select one","children":[{"name":"kpk","label":{"Urdu":"خیبر پختون خواہ","English":"Khyber Pakhtunkhwa","Roman Urdu":"Khyber Pakhtunkhwa"}},{"name":"sindh","label":{"Urdu":"سندھ","English":"Sindh","Roman Urdu":"Sindh"}},{"name":"balochistan","label":{"Urdu":"بلوچستان","English":"Balochistan","Roman Urdu":"Balochistan"}},{"name":"punjab","label":{"Urdu":"پنجاب","English":"Punjab","Roman Urdu":"Punjab"}},{"name":"gilgit_baltistan","label":{"Urdu":"گلگت بلتستان","English":"Gilgit Baltistan","Roman Urdu":"Gilgit Baltistan"}},{"name":"kashmir","label":{"Urdu":"کشمیر","English":"Kashmir","Roman Urdu":"Kashmir"}},{"name":"fata","label":{"Urdu":"فاٹا","English":"FATA","Roman Urdu":"FATA"}},{"name":"out_of_country","label":{"Urdu":"ملک سے باہر","English":"Out of Country","Roman Urdu":"Mulk se baahir"}}]},{"control":{"appearance":"minimal"},"name":"city_village","choice_filter":"province=${province} or province='na'","default":"${provider_city}","bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"label":{"Urdu":"شہر","Roman Urdu":"Shehr","English":"City"},"itemset":"cities","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"cityVillage","openmrs_entity_parent":"usual_residence"},"type":"select one"},{"control":{"appearance":"minimal"},"name":"town","choice_filter":"(province=${province} and city=${city_village} ) or city='na'","bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"label":{"Urdu":"ٹاٰئون/ قصبہ/ بستی","Roman Urdu":"Town / Qasbah / Basti","English":"Town"},"itemset":"towns","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"town","openmrs_entity_parent":"usual_residence"},"type":"select one"},{"control":{"appearance":"minimal"},"name":"union_council","choice_filter":"(province=${province} and city=${city_village} and town=${town}) or town='na'","bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"label":{"Urdu":"یونین کونسل","Roman Urdu":"Union Council","English":"Union Council"},"itemset":"ucs","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"subTown","openmrs_entity_parent":"usual_residence"},"type":"select one"},{"bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"type":"text","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"house","openmrs_entity_parent":"usual_residence"},"name":"house_number","label":{"Urdu":"گھر کا نمبر","Roman Urdu":"Ghar ka number","English":"House Number"}},{"bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"type":"text","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"street","openmrs_entity_parent":"usual_residence"},"name":"street","label":{"Urdu":"گلی/کالونی/محلہ","Roman Urdu":"Gali/Colony/Mohalla","English":"Street"}},{"bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"type":"text","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"landmark","openmrs_entity_parent":"usual_residence"},"name":"landmark","label":{"Urdu":"گھر کے قریب کوئی مشہور جگہ","Roman Urdu":"Ghar ke qareeb koi mashoor jagah","English":"Land Mark"}},{"instance":{"openmrs_entity_id":"163277AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"geopoint","name":"center_gps","label":{"Urdu":"حاصل کردہ معلومات کی جگہ کے GPS کارڈینیٹس درج کریں","English":"Collect GPS coordinates of data entry location:","Roman Urdu":"Hasil karda malomaat ki jaga ke GPS coordinates darj karain"}},{"control":{"appearance":"minimal"},"name":"reminders_approval","bind":{"required":"yes"},"label":{"Urdu":"کیا آپ اپنے بچے کی اگلی ویکسین کی تاریخ کے لیے SMS موصول کرنا چاہتے ہیں؟ {existing_reminders_approval}$","English":"Are you willing to receive SMS reminders for your next visit? ${existing_reminders_approval}","Roman Urdu":"Kya aap apnay bachay ki agli vaccine ki tareekh ke liye SMS mausool karna chahtay hain? ${existing_reminders_approval}"},"instance":{"openmrs_entity_id":"163089AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}]},{"bind":{"jr:constraintMsg":{"Urdu":"فون نمبر گیارہ ہندسوں پر مشتمل اور مندرجہ ذیل شکل میں ہونا چاہئے: *********03","English":"Phone number should be 11 digits in the following format: 03*********","Roman Urdu":"Phone number 11 hindason par mushtamil aur mundarja zail shakal main hona chahiey: 03*********"},"relevant":"${existing_reminders_approval}='yes'","constraint":"regex(., '^03[0-9]{9}$')"},"type":"text","instance":{"openmrs_entity_id":"159635AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"contact_phone_number","label":{"Urdu":"موبائل نمبر:{existing_contact_phone_number}$","English":"Mobile Number: ${existing_contact_phone_number}","Roman Urdu":"Mobile Number: ${existing_contact_phone_number}"}},{"instance":{"openmrs_entity_id":"5272AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"label":{"Urdu":"کیا خا تون حاملہ ہیں؟","English":"Is female pregnant?","Roman Urdu":"Kia khatoon haamla hain?"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}],"name":"pregnant"},{"name":"edd_lmp","bind":{"relevant":"selected (${pregnant}, 'yes')"},"label":{"Urdu":"کیا آپ کو اپنی پچھلی ماہواری کی تاریخ، زچگی کی متوقع تاریخ، یا الٹرا سائونڈ کا علم ہے؟","English":"Do you know your LMP, EDD or last Ultrasound information?","Roman Urdu":"Kya aap ko apni pichli mahwaari ki tareekh, zachgi ki mutawaqqa tareekh ya ultrasound ka ilm hai?"},"instance":{"openmrs_entity_id":"160697AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"5596AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"edd","label":{"Urdu":"زچگی کی متوقع تاریخ","Roman Urdu":"EDD","English":"EDD"}},{"instance":{"openmrs_code":"1427AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"lmp","label":{"Urdu":"پچھلی مہواری کی تاریخ","Roman Urdu":"LMP","English":"LMP"}},{"instance":{"openmrs_code":"159617AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ultrasound","label":{"Urdu":"الٹرا سائونڈ","Roman Urdu":"Ultrasound","English":"Ultrasound"}},{"instance":{"openmrs_code":"1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"none","label":{"Urdu":"کوئی بھی نہیں","Roman Urdu":"Koi bhi nahi","English":"None of the above"}}]},{"bind":{"jr:constraintMsg":{"Urdu":"زچگی کی متوقع تاریخ ماضی کی نہیں ہو سکتی","Roman Urdu":"Zachgi ki mutawaqqa tareekh maazi ki nahi hosakti","English":"EDD cannot be in the past"},"relevant":"selected (${edd_lmp}, 'edd')","constraint":".>=${today}"},"type":"date","name":"edd","label":{"Urdu":"زچگی کی متوقع تاریخ","Roman Urdu":"Zachgi ki mutawaqqa tareekh","English":"EDD"}},{"bind":{"jr:constraintMsg":{"Urdu":"پچھلی ماہواری کی تاریخ مستقبل کی نہیں ہوسکتی","Roman Urdu":"Pichli mahwaari ki tareekh mustaqbil ki nahi hosakti","English":"LMP cannot be in the future"},"relevant":"selected (${edd_lmp}, 'lmp')","constraint":".<=${today}"},"type":"date","name":"lmp","label":{"Urdu":"پچھلی ماہواری کی تاریخ","Roman Urdu":"Pichli mahwaari ki tareekh","English":"LMP"}},{"bind":{"relevant":"selected (${edd_lmp}, 'ultrasound')"},"type":"date","instance":{"openmrs_entity_id":"163165AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"ultrasound_date","label":{"Urdu":"الٹرا سائونڈ کی تاریخ","English":"Ultrasound Date","Roman Urdu":"Ultrasound ki tareekh"}},{"bind":{"relevant":"selected (${edd_lmp}, 'ultrasound')"},"type":"integer","name":"ultrasound_weeks","label":{"Urdu":"الٹرا سائونڈ کی مدد سے حمل کی مدت [ہفتوں میں]","Roman Urdu":"Ultrasound ki madad se hamal ki muddat (hafton me)","English":"Gestational age determined by ultrasound"}},{"bind":{"calculate":"date(${lmp}+280)"},"type":"calculate","name":"edd_calc_lmp"},{"bind":{"calculate":"date((280-(${ultrasound_weeks}*7)+${ultrasound_date} ))"},"type":"calculate","name":"edd_calc_ultrasound"},{"bind":{"calculate":"format-date(${edd_calc_lmp}, '%Y-%n-%e')"},"type":"calculate","name":"edd_calc_lmp_formatted"},{"bind":{"calculate":"format-date(${edd_calc_ultrasound}, '%Y-%n-%e')"},"type":"calculate","name":"edd_calc_ultrasound_formatted"},{"bind":{"calculate":"date(${edd}-280)"},"type":"calculate","name":"lmp_calc_edd"},{"bind":{"calculate":"date(${ultrasound_date}-(${ultrasound_weeks}*7))"},"type":"calculate","name":"lmp_calc_ultrasound"},{"bind":{"calculate":"format-date(${lmp_calc_edd}, '%Y-%n-%e')"},"type":"calculate","name":"lmp_calc_edd_formatted"},{"bind":{"calculate":"format-date(${lmp_calc_ultrasound}, '%Y-%n-%e')"},"type":"calculate","name":"lmp_calc_ultrasound_formatted"},{"bind":{"calculate":"if(${edd_lmp}='lmp',${edd_calc_lmp_formatted},if(${edd_lmp}='edd',${edd} ,if(${edd_lmp}='ultrasound',${edd_calc_ultrasound_formatted},'')))"},"type":"calculate","name":"final_edd","instance":{"openmrs_entity_id":"5596AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"bind":{"calculate":"if(${edd_lmp}='lmp',${lmp},if(${edd_lmp}='edd',${lmp_calc_edd_formatted} ,if(${edd_lmp}='ultrasound',${lmp_calc_ultrasound_formatted},'')))"},"type":"calculate","name":"final_lmp","instance":{"openmrs_entity_id":"1427AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"bind":{"calculate":"int((${vaccination_date} - (${edd}-280))div7)"},"type":"calculate","name":"ga_edd"},{"bind":{"calculate":"int((${vaccination_date} - ${lmp})div7)"},"type":"calculate","name":"ga_lmp"},{"bind":{"calculate":"int((${vaccination_date} -(${ultrasound_date}-(${ultrasound_weeks}*7)))div7)"},"type":"calculate","name":"ga_ult"},{"bind":{"relevant":"selected (${pregnant}, 'yes')"},"type":"note","name":"final_edd_note","label":{"Urdu":"${final_edd}: زچگی کی متوقع تاریخ","Roman Urdu":"Zachgi ki mutawaqqa tareekh: ${final_edd}","English":"EDD: ${final_edd}"}},{"bind":{"relevant":"selected (${pregnant}, 'yes')"},"type":"note","name":"final_lmp_note","label":{"Urdu":"پچھلی ماہواری کی تاریخ :{final_lmp}$","Roman Urdu":"Pichli mahwaari ki tareekh: ${final_lmp}","English":"LMP: ${final_lmp}"}},{"bind":{"calculate":"if(${edd_lmp}='lmp',${ga_lmp},if(${edd_lmp}='edd',${ga_edd} ,if(${edd_lmp}='ultrasound',${ga_ult},'')))"},"type":"calculate","name":"final_ga","instance":{"openmrs_entity_id":"163166AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"bind":{"relevant":"selected (${pregnant}, 'yes')"},"type":"note","name":"final_ga_note","label":{"Urdu":"حمل کی مُدّت: {final_ga}$ ہفتے","Roman Urdu":"Hamal ki muddat: ${final_ga} weeks","English":"GA: ${final_ga} weeks"}},{"name":"vaccines","choice_filter":"name != if( ${e_tt1} != '', 'TT1' , '') and \nname != if( ${e_tt2} != '', 'TT2' , '') and \nname != if( ${e_tt3} != '', 'TT3' , '') and \nname != if( ${e_tt4} != '', 'TT4' , '') and \nname != if( ${e_tt5} != '', 'TT5' , '')","default":"minimal","label":{"Urdu":"پچھلی تاریخ جب کسی اور سینٹر پر ٹیکہ لگوایا گیا یا قطرے پلائے گئے","Roman Urdu":"Pichli tareekh jab kissi aur center par teeka lagwaya gaya ya katray pilaey gaye","English":"Retro vaccines"},"itemset":"vaccines","instance":{"openmrs_entity":"concept","openmrs_entity_id":"984AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1421AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"select all that apply"},{"bind":{"relevant":"selected(${vaccines},'TT1')","constraint":"(.<=${today} and .<=${existing_client_reg_date})"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tt1_retro","label":{"Urdu":"ٹی ٹی 1","Roman Urdu":"TT1","English":"TT1"}},{"bind":{"relevant":"selected(${vaccines},'TT1')","calculate":"1"},"type":"calculate","name":"tt_1_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines},'TT2')","constraint":"(.<=${today} and .>=${tt1_retro} and ((selected(${vaccines}, 'TT1'))))"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tt2_retro","label":{"Urdu":"ٹی ٹی 2","Roman Urdu":"TT2","English":"TT2"}},{"bind":{"relevant":"selected(${vaccines},'TT2')","calculate":"2"},"type":"calculate","name":"tt_2_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines},'TT3')","constraint":"(.<=${today} and .>=${tt2_retro} and ((selected(${vaccines}, 'TT2'))))"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tt3_retro","label":{"Urdu":"ٹی ٹی 3","Roman Urdu":"TT3","English":"TT3"}},{"bind":{"relevant":"selected(${vaccines},'TT3')","calculate":"3"},"type":"calculate","name":"tt_3_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines},'TT4')","constraint":"(.<=${today} and .>=${tt3_retro} and ((selected(${vaccines}, 'TT3'))))"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tt4_retro","label":{"Urdu":"ٹی ٹی 4","Roman Urdu":"TT4","English":"TT4"}},{"bind":{"relevant":"selected(${vaccines},'TT4')","calculate":"4"},"type":"calculate","name":"tt_4_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"name":"vaccines_2","choice_filter":"name != if( ${e_tt1} != '', 'TT1' , '') and \nname != if( ${e_tt2} != '', 'TT2' , '') and \nname != if( ${e_tt3} != '', 'TT3' , '') and \nname != if( ${e_tt4} != '', 'TT4' , '') and \nname != if( ${e_tt5} != '', 'TT5' , '') and \nname != if( selected(${vaccines}, 'TT1') , 'TT1', '') and \nname != if( selected(${vaccines}, 'TT2') , 'TT2', '') and \nname != if( selected(${vaccines}, 'TT3') , 'TT3', '') and \nname != if( selected(${vaccines}, 'TT4') , 'TT4', '') and \nname != if( selected(${vaccines}, 'TT5') , 'TT5', '')","bind":{"required":"yes"},"label":{"Urdu":"آج کون کون سی ویکسین دی گئی ہیں؟","Roman Urdu":"Aaj kon kon si vaccine di gai hain?","English":"Vaccine administered today"},"itemset":"vaccines","instance":{"openmrs_entity":"concept","openmrs_entity_id":"984AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1441AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"select all that apply"},{"bind":{"required":"yes"},"type":"date","instance":{"openmrs_entity_id":"encounter_date","openmrs_entity":"encounter"},"name":"vaccination_date","label":{"Urdu":"تاریخ","English":"Vaccination date","Roman Urdu":"Tareekh"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'TT1'),${vaccination_date},'')"},"type":"calculate","name":"tt1","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2},'TT1')","calculate":"1"},"type":"calculate","name":"tt_1_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'TT2'),${vaccination_date},'')"},"type":"calculate","name":"tt2","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2},'TT2')","calculate":"2"},"type":"calculate","name":"tt_2_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'TT3'),${vaccination_date},'')"},"type":"calculate","name":"tt3","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2},'TT3')","calculate":"3"},"type":"calculate","name":"tt_3_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'TT4'),${vaccination_date},'')"},"type":"calculate","name":"tt4","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2},'TT4')","calculate":"4"},"type":"calculate","name":"tt_4_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'TT5'),${vaccination_date},'')"},"type":"calculate","name":"tt5","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2},'TT5')","calculate":"5"},"type":"calculate","name":"tt_5_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"control":{"bodyless":true},"type":"group","children":[{"bind":{"readonly":"true()","calculate":"concat('uuid:', uuid())"},"type":"calculate","name":"instanceID"}],"name":"meta"}]} \ No newline at end of file diff --git a/opensrp-connector/src/test/resources/form/offsite_woman_followup/form.xml b/opensrp-connector/src/test/resources/form/offsite_woman_followup/form.xml deleted file mode 100644 index a2f6cb48d4..0000000000 --- a/opensrp-connector/src/test/resources/form/offsite_woman_followup/form.xml +++ /dev/null @@ -1,1439 +0,0 @@ -
- - -

دوسرے سینٹر میں رجسٹرڈ خواتین فالواپ رجسٹر - Off Site Woman Follow Up Form

-
-
- - کیا آپ کا گھر کا پتہ بدلا ہے؟ - Kya aap ka ghar ka pata badla hai? - - Has your home address changed? -
- - -
-
-
-
- - کیا خا تون حاملہ ہیں؟ - Kia khatoon haamla hain? - - Is female pregnant? -
- - -
-
-
-
- - کیا آپ کو اپنی پچھلی ماہواری کی تاریخ، زچگی کی متوقع تاریخ، یا الٹرا سائونڈ کا علم ہے؟ - Kya aap ko apni pichli mahwaari ki tareekh, zachgi ki mutawaqqa tareekh ya ultrasound ka ilm hai? - - Do you know your LMP, EDD or last Ultrasound information? -
- - - - -
-
-
-
- - پچھلی تاریخ جب کسی اور سینٹر پر ٹیکہ لگوایا گیا یا قطرے پلائے گئے - Pichli tareekh jab kissi aur center par teeka lagwaya gaya ya katray pilaey gaye - - Retro vaccines -
- - - ٹی ٹی 1 - TT1 - - TT1 - ٹی ٹی 2 - TT2 - - TT2 - ٹی ٹی 3 - TT3 - - TT3 - ٹی ٹی 4 - TT4 - - TT4 - ٹی ٹی 5 - TT5 - - TT5 -
-
-
-
- - آج کون کون سی ویکسین دی گئی ہیں؟ - Aaj kon kon si vaccine di gai hain? - - Vaccine administered today - * -
- - - ٹی ٹی 1 - TT1 - - TT1 - ٹی ٹی 2 - TT2 - - TT2 - ٹی ٹی 3 - TT3 - - TT3 - ٹی ٹی 4 - TT4 - - TT4 - ٹی ٹی 5 - TT5 - - TT5 -
-
-
- -
diff --git a/opensrp-connector/src/test/resources/form/offsite_woman_followup/form_definition.json b/opensrp-connector/src/test/resources/form/offsite_woman_followup/form_definition.json deleted file mode 100644 index 4353ee25d1..0000000000 --- a/opensrp-connector/src/test/resources/form/offsite_woman_followup/form_definition.json +++ /dev/null @@ -1,372 +0,0 @@ -{ - "form_data_definition_version" : "1", - "form" : { - "bind_type" : "pkwoman", - "default_bind_path" : "/model/instance/Offsite_Woman_Followup_Form/", - "fields" : [ { - "name" : "id", - "shouldLoadValue" : true - }, { - "name" : "provider_uc", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/provider_uc", - "shouldLoadValue" : true - }, { - "name" : "provider_town", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/provider_town", - "shouldLoadValue" : true - }, { - "name" : "provider_city", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/provider_city", - "shouldLoadValue" : true - }, { - "name" : "provider_province", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/provider_province", - "shouldLoadValue" : true - }, { - "name" : "existing_landmark", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_landmark", - "shouldLoadValue" : true - }, { - "name" : "existing_house_number", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_house_number", - "shouldLoadValue" : true - }, { - "name" : "existing_street", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_street", - "shouldLoadValue" : true - }, { - "name" : "existing_union_council", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_union_council", - "shouldLoadValue" : true - }, { - "name" : "existing_town", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_town", - "shouldLoadValue" : true - }, { - "name" : "existing_city_village", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_city_village", - "shouldLoadValue" : true - }, { - "name" : "existing_province", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_province", - "shouldLoadValue" : true - }, { - "name" : "existing_union_councilname", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_union_councilname", - "shouldLoadValue" : true - }, { - "name" : "existing_townname", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_townname", - "shouldLoadValue" : true - }, { - "name" : "existing_city_villagename", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_city_villagename", - "shouldLoadValue" : true - }, { - "name" : "existing_provincename", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_provincename", - "shouldLoadValue" : true - }, { - "name" : "existing_first_name", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_first_name", - "shouldLoadValue" : true - }, { - "name" : "existing_last_name", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_last_name", - "shouldLoadValue" : true - }, { - "name" : "existing_father_name", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_father_name", - "shouldLoadValue" : true - }, { - "name" : "existing_husband_name", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_husband_name", - "shouldLoadValue" : true - }, { - "name" : "existing_marriage", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_marriage", - "shouldLoadValue" : true - }, { - "name" : "existing_birthdate", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_calc_dob_confirm", - "shouldLoadValue" : true - }, { - "name" : "existing_gender", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_gender", - "shouldLoadValue" : true - }, { - "name" : "existing_ethnicity", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_ethnicity", - "shouldLoadValue" : true - }, { - "name" : "existing_client_reg_date", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_client_reg_date", - "shouldLoadValue" : true - }, { - "name" : "existing_program_client_id", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_program_client_id", - "shouldLoadValue" : true - }, { - "name" : "existing_epi_card_number", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_epi_card_number", - "shouldLoadValue" : true - }, { - "name" : "e_tt1", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/e_tt1", - "shouldLoadValue" : true - }, { - "name" : "e_tt2", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/e_tt2", - "shouldLoadValue" : true - }, { - "name" : "e_tt3", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/e_tt3", - "shouldLoadValue" : true - }, { - "name" : "e_tt4", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/e_tt4", - "shouldLoadValue" : true - }, { - "name" : "e_tt5", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/e_tt5", - "shouldLoadValue" : true - }, { - "name" : "provider_id", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/provider_id", - "shouldLoadValue" : true - }, { - "name" : "provider_location_id", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/provider_location_id", - "shouldLoadValue" : true - }, { - "name" : "provider_location_name", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/provider_location_name", - "shouldLoadValue" : true - }, { - "name" : "provider_location_note", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/provider_location_note" - }, { - "name" : "start", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/start" - }, { - "name" : "end", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/end" - }, { - "name" : "today", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/today" - }, { - "name" : "deviceid", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/deviceid" - }, { - "name" : "subscriberid", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/subscriberid" - }, { - "name" : "simserial", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/simserial" - }, { - "name" : "phonenumber", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/phonenumber" - }, { - "name" : "client_reg_date_note", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/client_reg_date_note" - }, { - "name" : "program_client_id_note", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/program_client_id_note" - }, { - "name" : "epi_card_number", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/epi_card_number" - }, { - "name" : "first_name_note", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/first_name_note" - }, { - "name" : "last_name_note", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/last_name_note" - }, { - "name" : "client_age", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/client_age" - }, { - "name" : "birth_date_note", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/birth_date_note" - }, { - "name" : "gender_note", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/gender_note" - }, { - "name" : "father_name_note", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/father_name_note" - }, { - "name" : "marriage_note", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/marriage_note" - }, { - "name" : "husband_name_note", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/husband_name_note" - }, { - "name" : "ethnicity_note", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/ethnicity_note" - }, { - "name" : "address", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/address" - }, { - "name" : "address_change", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/address_change" - }, { - "name" : "province", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/province" - }, { - "name" : "city_village", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/city_village" - }, { - "name" : "town", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/town" - }, { - "name" : "union_council", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/union_council" - }, { - "name" : "house_number", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/house_number" - }, { - "name" : "street", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/street" - }, { - "name" : "landmark", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/landmark" - }, { - "name" : "center_gps", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/center_gps" - }, { - "name" : "pregnant", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/pregnant" - }, { - "name" : "edd_lmp", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/edd_lmp" - }, { - "name" : "edd", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/edd" - }, { - "name" : "lmp", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/lmp" - }, { - "name" : "ultrasound_date", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/ultrasound_date" - }, { - "name" : "ultrasound_weeks", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/ultrasound_weeks" - }, { - "name" : "edd_calc_lmp", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/edd_calc_lmp" - }, { - "name" : "edd_calc_ultrasound", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/edd_calc_ultrasound" - }, { - "name" : "edd_calc_lmp_formatted", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/edd_calc_lmp_formatted" - }, { - "name" : "edd_calc_ultrasound_formatted", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/edd_calc_ultrasound_formatted" - }, { - "name" : "lmp_calc_edd", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/lmp_calc_edd" - }, { - "name" : "lmp_calc_ultrasound", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/lmp_calc_ultrasound" - }, { - "name" : "lmp_calc_edd_formatted", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/lmp_calc_edd_formatted" - }, { - "name" : "lmp_calc_ultrasound_formatted", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/lmp_calc_ultrasound_formatted" - }, { - "name" : "final_edd", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/final_edd" - }, { - "name" : "final_lmp", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/final_lmp" - }, { - "name" : "ga_edd", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/ga_edd" - }, { - "name" : "ga_lmp", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/ga_lmp" - }, { - "name" : "ga_ult", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/ga_ult" - }, { - "name" : "final_edd_note", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/final_edd_note" - }, { - "name" : "final_lmp_note", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/final_lmp_note" - }, { - "name" : "final_ga", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/final_ga" - }, { - "name" : "final_ga_note", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/final_ga_note" - }, { - "name" : "vaccines", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/vaccines" - }, { - "name" : "tt1_retro", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/tt1_retro" - }, { - "name" : "tt_1_dose", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/tt_1_dose" - }, { - "name" : "tt2_retro", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/tt2_retro" - }, { - "name" : "tt_2_dose", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/tt_2_dose" - }, { - "name" : "tt3_retro", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/tt3_retro" - }, { - "name" : "tt_3_dose", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/tt_3_dose" - }, { - "name" : "tt4_retro", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/tt4_retro" - }, { - "name" : "tt_4_dose", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/tt_4_dose" - }, { - "name" : "vaccines_2", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/vaccines_2" - }, { - "name" : "vaccination_date", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/vaccination_date" - }, { - "name" : "tt1", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/tt1" - }, { - "name" : "tt_1_dose_today", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/tt_1_dose_today" - }, { - "name" : "tt2", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/tt2" - }, { - "name" : "tt_2_dose_today", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/tt_2_dose_today" - }, { - "name" : "tt3", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/tt3" - }, { - "name" : "tt_3_dose_today", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/tt_3_dose_today" - }, { - "name" : "tt4", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/tt4" - }, { - "name" : "tt_4_dose_today", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/tt_4_dose_today" - }, { - "name" : "tt5", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/tt5" - }, { - "name" : "tt_5_dose_today", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/tt_5_dose_today" - }, { - "name" : "instanceID", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/meta/instanceID" - } ] - } -} \ No newline at end of file diff --git a/opensrp-connector/src/test/resources/form/offsite_woman_followup/model.xml b/opensrp-connector/src/test/resources/form/offsite_woman_followup/model.xml deleted file mode 100644 index 2b5e6a2d81..0000000000 --- a/opensrp-connector/src/test/resources/form/offsite_woman_followup/model.xml +++ /dev/null @@ -1,1643 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - ${provider_province} - ${provider_city} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - minimal - - - - - - - - - - - - - - - - - - - - - - - - - - - - - static_instance-provinces-0 - kpk - - - static_instance-provinces-1 - sindh - - - static_instance-provinces-2 - balochistan - - - static_instance-provinces-3 - punjab - - - static_instance-provinces-4 - gilgit_baltistan - - - static_instance-provinces-5 - kashmir - - - static_instance-provinces-6 - fata - - - static_instance-provinces-7 - out_of_country - - - - - - - static_instance-ucs-0 - sindh - karachi - korangi - bilal_colony - - - static_instance-ucs-1 - sindh - karachi - korangi - nasir_colony - - - static_instance-ucs-2 - sindh - karachi - korangi - chakra_goth - - - static_instance-ucs-3 - sindh - karachi - korangi - mustafa_taj_colony - - - static_instance-ucs-4 - sindh - karachi - korangi - hundred_quarters - - - static_instance-ucs-5 - sindh - karachi - korangi - gulzar_colony - - - static_instance-ucs-6 - sindh - karachi - korangi - korangi_sector_33 - - - static_instance-ucs-7 - sindh - karachi - korangi - zaman_town - - - static_instance-ucs-8 - sindh - karachi - korangi - hasrat_mohani_colony - - - static_instance-ucs-9 - sindh - karachi - baldia - gulshan_e_ghazi - - - static_instance-ucs-10 - sindh - karachi - baldia - ittehad_town - - - static_instance-ucs-11 - sindh - karachi - baldia - islam_nagar - - - static_instance-ucs-12 - sindh - karachi - baldia - nai_abadi - - - static_instance-ucs-13 - sindh - karachi - baldia - saeedabad - - - static_instance-ucs-14 - sindh - karachi - baldia - muslim_mujahid_colony - - - static_instance-ucs-15 - sindh - karachi - baldia - muhajir_camp - - - static_instance-ucs-16 - sindh - karachi - baldia - rasheedabad - - - static_instance-ucs-17 - sindh - karachi - bin_qasim - ibrahim_hyderi - - - static_instance-ucs-18 - sindh - karachi - bin_qasim - rehri - - - static_instance-ucs-19 - sindh - karachi - bin_qasim - cattle_colony - - - static_instance-ucs-20 - sindh - karachi - bin_qasim - qaidabad - - - static_instance-ucs-21 - sindh - karachi - bin_qasim - landhi_colony - - - static_instance-ucs-22 - sindh - karachi - bin_qasim - gulshan_e_hadeed - - - static_instance-ucs-23 - sindh - karachi - bin_qasim - gaghar - - - static_instance-ucs-24 - sindh - karachi - gadap - murad_memon_goth - - - static_instance-ucs-25 - sindh - karachi - gadap - darsano_chana - - - static_instance-ucs-26 - sindh - karachi - gadap - gujro - - - static_instance-ucs-27 - sindh - karachi - gadap - songal - - - static_instance-ucs-28 - sindh - karachi - gadap - maymarabad - - - static_instance-ucs-29 - sindh - karachi - gadap - yousuf_goth - - - static_instance-ucs-30 - sindh - karachi - gadap - manghopir - - - static_instance-ucs-31 - sindh - karachi - gulberg - azizabad - - - static_instance-ucs-32 - sindh - karachi - gulberg - karimabad - - - static_instance-ucs-33 - sindh - karachi - gulberg - aisha_manzil - - - static_instance-ucs-34 - sindh - karachi - gulberg - ancholi - - - static_instance-ucs-35 - sindh - karachi - gulberg - naseerabad - - - static_instance-ucs-36 - sindh - karachi - gulberg - yaseenabad - - - static_instance-ucs-37 - sindh - karachi - gulberg - water_pump - - - static_instance-ucs-38 - sindh - karachi - gulberg - shafiq_mill_colony - - - static_instance-ucs-39 - sindh - karachi - gulshan - delhi_mercantile_society - - - static_instance-ucs-40 - sindh - karachi - gulshan - civic_centre - - - static_instance-ucs-41 - sindh - karachi - gulshan - pir_ilahi_buksh_colony - - - static_instance-ucs-42 - sindh - karachi - gulshan - essa_nagri - - - static_instance-ucs-43 - sindh - karachi - gulshan - gulshan_e_iqbal - - - static_instance-ucs-44 - sindh - karachi - gulshan - gillani_railway_station - - - static_instance-ucs-45 - sindh - karachi - gulshan - shanti_nagar - - - static_instance-ucs-46 - sindh - karachi - gulshan - jamali_colony - - - static_instance-ucs-47 - sindh - karachi - gulshan - gulshan_e_iqbal_ii - - - static_instance-ucs-48 - sindh - karachi - gulshan - pehlwan_goth - - - static_instance-ucs-49 - sindh - karachi - gulshan - matrovil_colony - - - static_instance-ucs-50 - sindh - karachi - gulshan - gulzar_e_hijri - - - static_instance-ucs-51 - sindh - karachi - gulshan - safooran_goth - - - static_instance-ucs-52 - sindh - karachi - jamshed - akhtar_colony - - - static_instance-ucs-53 - sindh - karachi - jamshed - manzoor_colony - - - static_instance-ucs-54 - sindh - karachi - jamshed - azam_basti - - - static_instance-ucs-55 - sindh - karachi - jamshed - chanesar_goth - - - static_instance-ucs-56 - sindh - karachi - jamshed - mahmudabad - - - static_instance-ucs-57 - sindh - karachi - jamshed - pechs - - - static_instance-ucs-58 - sindh - karachi - jamshed - pechs_ii - - - static_instance-ucs-59 - sindh - karachi - jamshed - jut_line - - - static_instance-ucs-60 - sindh - karachi - jamshed - central_jacob_lines - - - static_instance-ucs-61 - sindh - karachi - jamshed - jamshed_quarters - - - static_instance-ucs-62 - sindh - karachi - jamshed - garden_east - - - static_instance-ucs-63 - sindh - karachi - jamshed - soldier_bazar - - - static_instance-ucs-64 - sindh - karachi - jamshed - pakistan_quarters - - - static_instance-ucs-65 - sindh - karachi - kiamari - bhutta_village - - - static_instance-ucs-66 - sindh - karachi - kiamari - sultanabad - - - static_instance-ucs-67 - sindh - karachi - kiamari - kiamari_uc - - - static_instance-ucs-68 - sindh - karachi - kiamari - baba_bhit - - - static_instance-ucs-69 - sindh - karachi - kiamari - machar_colony - - - static_instance-ucs-70 - sindh - karachi - kiamari - maripur - - - static_instance-ucs-71 - sindh - karachi - kiamari - shershah - - - static_instance-ucs-72 - sindh - karachi - kiamari - gabo_pat - - - static_instance-ucs-73 - sindh - karachi - landhi - muzafarabad - - - static_instance-ucs-74 - sindh - karachi - landhi - muslimabad - - - static_instance-ucs-75 - sindh - karachi - landhi - dawood_chowrangi - - - static_instance-ucs-76 - sindh - karachi - landhi - moinabad - - - static_instance-ucs-77 - sindh - karachi - landhi - sharafi_goth - - - static_instance-ucs-78 - sindh - karachi - landhi - bhutto_nagar - - - static_instance-ucs-79 - sindh - karachi - landhi - khawaja_ajmeer_colony - - - static_instance-ucs-80 - sindh - karachi - landhi - landhi_uc - - - static_instance-ucs-81 - sindh - karachi - landhi - awami_colony - - - static_instance-ucs-82 - sindh - karachi - landhi - burmee_colony - - - static_instance-ucs-83 - sindh - karachi - landhi - korangi_uc - - - static_instance-ucs-84 - sindh - karachi - landhi - sherabad - - - static_instance-ucs-85 - sindh - karachi - liaquatabad - rizvia_society - - - static_instance-ucs-86 - sindh - karachi - liaquatabad - firdous_colony - - - static_instance-ucs-87 - sindh - karachi - liaquatabad - super_market - - - static_instance-ucs-88 - sindh - karachi - liaquatabad - dak_khana - - - static_instance-ucs-89 - sindh - karachi - liaquatabad - qasimabad - - - static_instance-ucs-90 - sindh - karachi - liaquatabad - bandhani_colony - - - static_instance-ucs-91 - sindh - karachi - liaquatabad - sharifabad - - - static_instance-ucs-92 - sindh - karachi - liaquatabad - commercial_area - - - static_instance-ucs-93 - sindh - karachi - liaquatabad - mujahid_colony - - - static_instance-ucs-94 - sindh - karachi - liaquatabad - nazimabad - - - static_instance-ucs-95 - sindh - karachi - liaquatabad - abbasi_shaheed - - - static_instance-ucs-96 - sindh - karachi - lyari - agra_taj_colony - - - static_instance-ucs-97 - sindh - karachi - lyari - daryaabad - - - static_instance-ucs-98 - sindh - karachi - lyari - nawabad - - - static_instance-ucs-99 - sindh - karachi - lyari - khada_memon_society - - - static_instance-ucs-100 - sindh - karachi - lyari - baghdadi - - - static_instance-ucs-101 - sindh - karachi - lyari - shah_baig_line - - - static_instance-ucs-102 - sindh - karachi - lyari - bihar_colony - - - static_instance-ucs-103 - sindh - karachi - lyari - ragiwara - - - static_instance-ucs-104 - sindh - karachi - lyari - singo_line - - - static_instance-ucs-105 - sindh - karachi - lyari - chakiwara - - - static_instance-ucs-106 - sindh - karachi - lyari - allama_iqbal_colony - - - static_instance-ucs-107 - sindh - karachi - malir - model_colony - - - static_instance-ucs-108 - sindh - karachi - malir - kala_board - - - static_instance-ucs-109 - sindh - karachi - malir - saudabad - - - static_instance-ucs-110 - sindh - karachi - malir - khokhra_par - - - static_instance-ucs-111 - sindh - karachi - malir - jafar_e_tayyar - - - static_instance-ucs-112 - sindh - karachi - malir - gharibabad - - - static_instance-ucs-113 - sindh - karachi - malir - ghazi_brohi_goth - - - static_instance-ucs-114 - sindh - karachi - new_karachi - kalyana - - - static_instance-ucs-115 - sindh - karachi - new_karachi - sir_syed_colony - - - static_instance-ucs-116 - sindh - karachi - new_karachi - fatima_jinnah_colony - - - static_instance-ucs-117 - sindh - karachi - new_karachi - godhra - - - static_instance-ucs-118 - sindh - karachi - new_karachi - abu_zar_ghaffari - - - static_instance-ucs-119 - sindh - karachi - new_karachi - hakim_ahsan - - - static_instance-ucs-120 - sindh - karachi - new_karachi - madina_colony - - - static_instance-ucs-121 - sindh - karachi - new_karachi - faisal_colony - - - static_instance-ucs-122 - sindh - karachi - new_karachi - khamiso_goth - - - static_instance-ucs-123 - sindh - karachi - new_karachi - mustufa_colony - - - static_instance-ucs-124 - sindh - karachi - new_karachi - khawaja_ajmeer_nagri - - - static_instance-ucs-125 - sindh - karachi - new_karachi - gulshan_e_saeed - - - static_instance-ucs-126 - sindh - karachi - new_karachi - shah_nawaz_bhutto_colony - - - static_instance-ucs-127 - sindh - karachi - north_nazimabad - paposh_nagar - - - static_instance-ucs-128 - sindh - karachi - north_nazimabad - pahar_ganj - - - static_instance-ucs-129 - sindh - karachi - north_nazimabad - khandu_goth - - - static_instance-ucs-130 - sindh - karachi - north_nazimabad - hyderi - - - static_instance-ucs-131 - sindh - karachi - north_nazimabad - sakhi_hassan - - - static_instance-ucs-132 - sindh - karachi - north_nazimabad - farooq_e_azam - - - static_instance-ucs-133 - sindh - karachi - north_nazimabad - nusrat_bhutto_colony - - - static_instance-ucs-134 - sindh - karachi - north_nazimabad - shadman_town - - - static_instance-ucs-135 - sindh - karachi - north_nazimabad - buffer_zone - - - static_instance-ucs-136 - sindh - karachi - north_nazimabad - buffer_zone_ii - - - static_instance-ucs-137 - sindh - karachi - orangi - mominabad - - - static_instance-ucs-138 - sindh - karachi - orangi - haryana_colony - - - static_instance-ucs-139 - sindh - karachi - orangi - hanifabad - - - static_instance-ucs-140 - sindh - karachi - orangi - mohammad_nagar - - - static_instance-ucs-141 - sindh - karachi - orangi - madina_colony_orangi - - - static_instance-ucs-142 - sindh - karachi - orangi - ghaziabad - - - static_instance-ucs-143 - sindh - karachi - orangi - chisti_nagar - - - static_instance-ucs-144 - sindh - karachi - orangi - bilal_colony_orangi - - - static_instance-ucs-145 - sindh - karachi - orangi - iqbal_baloch_colony - - - static_instance-ucs-146 - sindh - karachi - orangi - ghabool_town - - - static_instance-ucs-147 - sindh - karachi - orangi - data_nagar - - - static_instance-ucs-148 - sindh - karachi - orangi - mujahidabad - - - static_instance-ucs-149 - sindh - karachi - orangi - baloch_goth - - - static_instance-ucs-150 - sindh - karachi - saddar - old_haji_camp - - - static_instance-ucs-151 - sindh - karachi - saddar - garden - - - static_instance-ucs-152 - sindh - karachi - saddar - kharadar - - - static_instance-ucs-153 - sindh - karachi - saddar - city_railway_colony - - - static_instance-ucs-154 - sindh - karachi - saddar - nanak_wara - - - static_instance-ucs-155 - sindh - karachi - saddar - gazdarabad - - - static_instance-ucs-156 - sindh - karachi - saddar - millat_nagar_islam_pura - - - static_instance-ucs-157 - sindh - karachi - saddar - saddar_uc - - - static_instance-ucs-158 - sindh - karachi - saddar - civil_line - - - static_instance-ucs-159 - sindh - karachi - saddar - clifton - - - static_instance-ucs-160 - sindh - karachi - saddar - kehkashan - - - static_instance-ucs-161 - sindh - karachi - shah_faisal - natha_khan_goth - - - static_instance-ucs-162 - sindh - karachi - shah_faisal - pak_sadat_colony - - - static_instance-ucs-163 - sindh - karachi - shah_faisal - drigh_colony - - - static_instance-ucs-164 - sindh - karachi - shah_faisal - raita_plot - - - static_instance-ucs-165 - sindh - karachi - shah_faisal - moria_khan_goth - - - static_instance-ucs-166 - sindh - karachi - shah_faisal - rafa_e_aam_society - - - static_instance-ucs-167 - sindh - karachi - shah_faisal - al_falah_society - - - static_instance-ucs-168 - sindh - karachi - site - pak_colony - - - static_instance-ucs-169 - sindh - karachi - site - old_golimar - - - static_instance-ucs-170 - sindh - karachi - site - jahanabad - - - static_instance-ucs-171 - sindh - karachi - site - metrovil - - - static_instance-ucs-172 - sindh - karachi - site - bhawani_chali - - - static_instance-ucs-173 - sindh - karachi - site - frontier_colony - - - static_instance-ucs-174 - sindh - karachi - site - banaras_colony - - - static_instance-ucs-175 - sindh - karachi - site - qasba_colony - - - static_instance-ucs-176 - sindh - karachi - site - islamia_colony - - - static_instance-ucs-177 - na - na - na - other - - - static_instance-ucs-178 - na - na - na - not_applicable - - - - - - - static_instance-gender-0 - male - - - static_instance-gender-1 - female - - - static_instance-gender-2 - transgender - - - - - - - static_instance-vaccines-0 - TT1 - - - static_instance-vaccines-1 - TT2 - - - static_instance-vaccines-2 - TT3 - - - static_instance-vaccines-3 - TT4 - - - static_instance-vaccines-4 - TT5 - - - - - - - static_instance-towns-0 - sindh - karachi - korangi - - - static_instance-towns-1 - sindh - karachi - landhi - - - static_instance-towns-2 - sindh - karachi - baldia - - - static_instance-towns-3 - sindh - karachi - bin_qasim - - - static_instance-towns-4 - sindh - karachi - gadap - - - static_instance-towns-5 - sindh - karachi - gulberg - - - static_instance-towns-6 - sindh - karachi - gulshan - - - static_instance-towns-7 - sindh - karachi - jamshed - - - static_instance-towns-8 - sindh - karachi - kiamari - - - static_instance-towns-9 - sindh - karachi - liaquatabad - - - static_instance-towns-10 - sindh - karachi - lyari - - - static_instance-towns-11 - sindh - karachi - malir - - - static_instance-towns-12 - sindh - karachi - new_karachi - - - static_instance-towns-13 - sindh - karachi - north_nazimabad - - - static_instance-towns-14 - sindh - karachi - orangi - - - static_instance-towns-15 - sindh - karachi - saddar - - - static_instance-towns-16 - sindh - karachi - shah_faisal - - - static_instance-towns-17 - sindh - karachi - site - - - static_instance-towns-18 - na - na - other - - - static_instance-towns-19 - na - na - not_applicable - - - - - - - static_instance-cities-0 - sindh - karachi - - - static_instance-cities-1 - punjab - hafizabad - - - static_instance-cities-2 - punjab - muzaffargarh - - - static_instance-cities-3 - na - other - - - static_instance-cities-4 - na - not_applicable - - - - - - - static_instance-edd_lmp-0 - edd - - - static_instance-edd_lmp-1 - lmp - - - static_instance-edd_lmp-2 - ultrasound - - - static_instance-edd_lmp-3 - none - - - - - - - static_instance-yes_no-0 - yes - - - static_instance-yes_no-1 - no - - - - diff --git a/opensrp-connector/src/test/resources/form/pnc_1st_registration/form.json b/opensrp-connector/src/test/resources/form/pnc_1st_registration/form.json deleted file mode 100644 index ac61605e10..0000000000 --- a/opensrp-connector/src/test/resources/form/pnc_1st_registration/form.json +++ /dev/null @@ -1,373 +0,0 @@ -{ - "name": "pnc_first_registration_motherdetails", - "title": "PNC Registration", - "sms_keyword": "pnc_1st_registration", - "default_language": "default", - "instance": { - "encounter_type": "PNC Registration" - }, - "version": "201504011203", - "id_string": "pnc_1st_registration", - "type": "survey", - "children": [ - { - "instance": { - "openmrs_entity_id": "location_id", - "openmrs_entity": "encounter" - }, - "type": "text", - "name": "location", - "label": "Location" - }, - { - "instance": { - "openmrs_entity_id": "encounter_date", - "openmrs_entity": "encounter" - }, - "type": "today", - "name": "today" - }, - { - "instance": { - "openmrs_entity_id": "encounter_start", - "openmrs_entity": "encounter" - }, - "type": "start", - "name": "start" - }, - { - "instance": { - "openmrs_entity_id": "encounter_end", - "openmrs_entity": "encounter" - }, - "type": "end", - "name": "end" - }, - { - "instance": { - "openmrs_entity_id": "OpenSRPID", - "openmrs_entity": "person_identifier" - }, - "type": "integer", - "name": "mother_id", - "label": "Mother ID number:" - }, - { - "name": "gender", - "bind": { - "required": "yes" - }, - "label": "Gender? ಮಗುವಿನ ಲಿಂಗ?", - "instance": { - "openmrs_entity_id": "gender", - "openmrs_entity": "person" - }, - "type": "select one", - "children": [ - { - "instance": { - "openmrs_code": "1534AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "male", - "label": "Male ಗಂಡು" - }, - { - "instance": { - "openmrs_code": "1535AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "female", - "label": "Female ಹೆಣ್ಣು" - } - ] - }, - { - "instance": { - "openmrs_entity_id": "birthdate", - "openmrs_entity": "person" - }, - "type": "date", - "name": "mother_birthdate", - "label": "Mother's DOB?" - }, - { - "instance": { - "openmrs_entity_id": "first_name", - "openmrs_entity": "person" - }, - "type": "text", - "name": "mother_first_name", - "label": "Mother's first name?" - }, - { - "instance": { - "openmrs_entity_id": "last_name", - "openmrs_entity": "person" - }, - "type": "text", - "name": "mother_last_name", - "label": "Mother's last name?" - }, - { - "bind": { - "required": "yes", - "constraint": ".<=${today}" - }, - "type": "date", - "instance": { - "openmrs_entity_id": "5599AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "name": "delivery_date", - "label": "Delivery date? ಹೆರಿಗೆ ದಿನಾಂಕ?" - }, - { - "instance": { - "openmrs_entity_id": "162724AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "text", - "name": "delivery_facility_name", - "label": "Name of delivery facility? ಹೆರಿಗೆಯಾದ ಸ್ಥಳದ ಹೆಸರು?" - }, - { - "name": "delivery_skilled", - "bind": { - "required": "yes" - }, - "label": "Delivery attended by SBA? ತರಬೇತಿ ಹೊಂದಿದ ಹೆರಿಗೆ ಸಹಾಯಕರು ಹೆರಿಗೆಯಲ್ಲಿ ಹಾಜರಿದ್ದರೆ?", - "instance": { - "openmrs_entity_id": "160083AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "select one", - "children": [ - { - "instance": { - "openmrs_code": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "yes", - "label": "Yes ಹೌದು" - }, - { - "instance": { - "openmrs_code": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "no", - "label": "No ಇಲ್ಲ" - } - ] - }, - { - "instance": { - "openmrs_entity_id": "5630AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "label": "Type of delivery? ಯಾವ ವಿಧದ ಹೆರಿಗೆ?", - "type": "select one", - "children": [ - { - "instance": { - "openmrs_code": "1170AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "normal", - "label": "Normal ಸಾಮಾನ್ಯ" - }, - { - "instance": { - "openmrs_code": "1171AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "cesarean", - "label": "Cesarean ಸಿಸೇರಿಯನ್" - }, - { - "instance": { - "openmrs_code": "118159AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "instrumental_forcep", - "label": "Instrumental / Forcep ಉಪಕರಣಗಳಿಂದ ಮಾಡುವ ಹೆರಿಗೆ" - } - ], - "name": "delivery_type" - }, - { - "name": "delivery_outcome", - "bind": { - "required": "yes" - }, - "label": "Delivery outcome? ಹೆರಿಗೆ ಫಲಿತಾಂಶವೇನು?", - "instance": { - "openmrs_entity_id": "159917AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "select one", - "children": [ - { - "instance": { - "openmrs_code": "151849AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "live_birth", - "label": "Live Birth ಜೀವಂತ ಜನನ" - }, - { - "instance": { - "openmrs_code": "125872AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "still_birth", - "label": "Still Birth ನಿರ್ಜೀವ ಜನನ" - } - ] - }, - { - "instance": { - "openmrs_entity_id": "1053AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "int", - "name": "parity", - "label": "Parity" - }, - { - "bind": { - "relevant": "${delivery_outcome} = 'live_birth'" - }, - "type": "int", - "instance": { - "openmrs_entity_id": "160601AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "name": "num_livebirths", - "label": "Live births" - }, - { - "bind": { - "relevant": "${delivery_outcome} = 'still_birth'" - }, - "type": "int", - "instance": { - "openmrs_entity_id": "160077AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "name": "num_stillbirths", - "label": "Still births" - }, - { - "instance": { - "openmrs_entity_id": "1576AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "label": "What delivery complications were there? ಯಾವ ಹೆರಿಗೆ ತೊಂದರೆಗಳು ಉಂಟಾದವು?", - "type": "select all that apply", - "children": [ - { - "instance": { - "openmrs_code": "230AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "hemorrhage", - "label": "Hemorrhage ರಕ್ತಸ್ರಾವ" - }, - { - "instance": { - "openmrs_code": "114127AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "placenta_previa", - "label": "Placenta previa ಹಿಂದಿನ ಗರ್ಭದಲ್ಲಿ ಮಾಸು ಮುಂದಿರುವುದು" - }, - { - "instance": { - "openmrs_code": "128420AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "cord_prolapse", - "label": "Cord prolapse ಬಳ್ಳಿಯ ಸರಿತ" - }, - { - "instance": { - "openmrs_code": "115036AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "prolonged_labor", - "label": "Prolonged / obstructed labor ದೀರ್ಘಕಾಲೀನ / ಅಡಚಣೆಯನ್ನು ತಂದೊಡ್ಡುವ ಹೆರಿಗೆ ನೋವು" - }, - { - "instance": { - "openmrs_code": "1172AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "abnormal_presentation", - "label": "Abnormal presentation ಅಪಸಾಮಾನ್ಯ ಪ್ರಸ್ತುತಿ" - }, - { - "instance": { - "openmrs_code": "126886AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "perineal_tear_2nd_degree", - "label": "Perineal tear (2 degree)" - }, - { - "instance": { - "openmrs_code": "124857AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "perineal_tear_3rd_degree", - "label": "Perineal tear (3 degree)" - }, - { - "instance": { - "openmrs_code": "39911AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "perineal_tear_4th_degree", - "label": "Perineal tear (4 degree)" - }, - { - "instance": { - "openmrs_code": "120222AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "others", - "label": "Others ಇತರೆ" - } - ], - "name": "complications" - }, - { - "name": "woman_survived", - "bind": { - "required": "yes" - }, - "label": "Woman survived childbirth? ಮಗುವಿನ ಜನನದ ನಂತರ ಮಹಿಳೆ ಬದುಕುಳಿದರೆ?", - "instance": { - "openmrs_entity_id": "134612AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "select one", - "children": [ - { - "instance": { - "openmrs_code": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "yes", - "label": "Yes ಹೌದು" - }, - { - "instance": { - "openmrs_code": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "no", - "label": "No ಇಲ್ಲ" - } - ] - }, - { - "control": { - "bodyless": true - }, - "type": "group", - "children": [ - { - "bind": { - "readonly": "true()", - "calculate": "concat('uuid:', uuid())" - }, - "type": "calculate", - "name": "instanceID" - } - ], - "name": "meta" - } - ] -} \ No newline at end of file diff --git a/opensrp-connector/src/test/resources/form/pnc_1st_registration/form.xml b/opensrp-connector/src/test/resources/form/pnc_1st_registration/form.xml deleted file mode 100644 index d9501c2e3c..0000000000 --- a/opensrp-connector/src/test/resources/form/pnc_1st_registration/form.xml +++ /dev/null @@ -1,29 +0,0 @@ - -
-

PNC Registration

- - - - -
Gender? ಮಗುವಿನ ಲಿಂಗ?* -
- - - - - -
Delivery attended by SBA? ತರಬೇತಿ ಹೊಂದಿದ ಹೆರಿಗೆ ಸಹಾಯಕರು ಹೆರಿಗೆಯಲ್ಲಿ ಹಾಜರಿದ್ದರೆ?* -
-
Type of delivery? ಯಾವ ವಿಧದ ಹೆರಿಗೆ? -
-
Delivery outcome? ಹೆರಿಗೆ ಫಲಿತಾಂಶವೇನು?* -
- - - -
What delivery complications were there? ಯಾವ ಹೆರಿಗೆ ತೊಂದರೆಗಳು ಉಂಟಾದವು? -
-
Woman survived childbirth? ಮಗುವಿನ ಜನನದ ನಂತರ ಮಹಿಳೆ ಬದುಕುಳಿದರೆ?* -
- -
XML to HTML transformation for form took 0.03 secondsThis validation is yet not functional.
diff --git a/opensrp-connector/src/test/resources/form/pnc_1st_registration/form_definition.json b/opensrp-connector/src/test/resources/form/pnc_1st_registration/form_definition.json deleted file mode 100644 index f715275a86..0000000000 --- a/opensrp-connector/src/test/resources/form/pnc_1st_registration/form_definition.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "form_data_definition_version": "1", - "form": { - "default_bind_path": "/model/instance/pnc_first_registration_motherdetails", - "bind_type": "demo_mother", - "fields": [ - { - "name":"id", - "shouldLoadValue": true - }, - { - "name": "location", - "bind": "/model/instance/pnc_first_registration_motherdetails/location" - }, - { - "name": "today", - "bind": "/model/instance/pnc_first_registration_motherdetails/today" - }, - { - "name": "start", - "bind": "/model/instance/pnc_first_registration_motherdetails/start" - }, - { - "name": "end", - "bind": "/model/instance/pnc_first_registration_motherdetails/end" - }, - { - "name": "mother_id", - "bind": "/model/instance/pnc_first_registration_motherdetails/mother_id" - }, - { - "name": "gender", - "bind": "/model/instance/pnc_first_registration_motherdetails/gender" - }, - { - "name": "mother_birthdate", - "bind": "/model/instance/pnc_first_registration_motherdetails/mother_birthdate" - }, - { - "name": "mother_first_name", - "bind": "/model/instance/pnc_first_registration_motherdetails/mother_first_name" - }, - { - "name": "mother_last_name", - "bind": "/model/instance/pnc_first_registration_motherdetails/mother_last_name" - }, - { - "name": "delivery_date", - "bind": "/model/instance/pnc_first_registration_motherdetails/delivery_date" - }, - { - "name": "delivery_facility_name", - "bind": "/model/instance/pnc_first_registration_motherdetails/delivery_facility_name" - }, - { - "name": "delivery_skilled", - "bind": "/model/instance/pnc_first_registration_motherdetails/delivery_skilled" - }, - { - "name": "delivery_type", - "bind": "/model/instance/pnc_first_registration_motherdetails/delivery_type" - }, - { - "name": "delivery_outcome", - "bind": "/model/instance/pnc_first_registration_motherdetails/delivery_outcome" - }, - { - "name": "parity", - "bind": "/model/instance/pnc_first_registration_motherdetails/parity" - }, - { - "name": "num_livebirths", - "bind": "/model/instance/pnc_first_registration_motherdetails/num_livebirths" - }, - { - "name": "num_stillbirths", - "bind": "/model/instance/pnc_first_registration_motherdetails/num_stillbirths" - }, - { - "name": "complications", - "bind": "/model/instance/pnc_first_registration_motherdetails/complications" - }, - { - "name": "woman_survived", - "bind": "/model/instance/pnc_first_registration_motherdetails/woman_survived" - } - ] - } -} \ No newline at end of file diff --git a/opensrp-connector/src/test/resources/form/pnc_1st_registration/form_submission.json b/opensrp-connector/src/test/resources/form/pnc_1st_registration/form_submission.json deleted file mode 100644 index 7cdcb1c63b..0000000000 --- a/opensrp-connector/src/test/resources/form/pnc_1st_registration/form_submission.json +++ /dev/null @@ -1,135 +0,0 @@ -{ - "anmId": "admin", - "clientVersion": "1426830449320", - "entityId": "b716d938-1aea-40ae-a081-9ddddddcccc9", - "formDataDefinitionVersion": "5", - "formName": "pnc_1st_registration", - "formInstance": { - "form_data_definition_version": "1", - "form": { - "default_bind_path": "/model/instance/pnc_first_registration_motherdetails", - "bind_type": "demo_mother", - "fields": [ - { - "name": "id", - "shouldLoadValue": true, - "source": "demo_mother.id", - "value": "aec8e1a5-ab11-47ac-8bc0-ff1e7146e342" - }, - { - "name": "location", - "bind": "/model/instance/pnc_first_registration_motherdetails/location", - "source": "demo_mother.location", - "value": "testloc" - }, - { - "name": "today", - "bind": "/model/instance/pnc_first_registration_motherdetails/today", - "source": "demo_mother.today", - "value": "2015-04-02" - }, - { - "name": "start", - "bind": "/model/instance/pnc_first_registration_motherdetails/start", - "source": "demo_mother.start", - "value": "2015-04-02T04:49:16.000-00:00" - }, - { - "name": "end", - "bind": "/model/instance/pnc_first_registration_motherdetails/end", - "source": "demo_mother.end", - "value": "2015-04-02T04:49:16.000-00:00" - }, - { - "name": "mother_id", - "bind": "/model/instance/pnc_first_registration_motherdetails/mother_id", - "source": "demo_mother.mother_id", - "value": "234" - }, - { - "name": "gender", - "bind": "/model/instance/pnc_first_registration_motherdetails/gender", - "source": "demo_mother.gender", - "value": "male" - }, - { - "name": "mother_birthdate", - "bind": "/model/instance/pnc_first_registration_motherdetails/mother_birthdate", - "source": "demo_mother.mother_birthdate", - "value": "1989-01-31" - }, - { - "name": "mother_first_name", - "bind": "/model/instance/pnc_first_registration_motherdetails/mother_first_name", - "source": "demo_mother.mother_first_name", - "value": "jamila" - }, - { - "name": "mother_last_name", - "bind": "/model/instance/pnc_first_registration_motherdetails/mother_last_name", - "source": "demo_mother.mother_last_name", - "value": "rashid" - }, - { - "name": "delivery_date", - "bind": "/model/instance/pnc_first_registration_motherdetails/delivery_date", - "source": "demo_mother.delivery_date", - "value": "2015-04-01" - }, - { - "name": "delivery_facility_name", - "bind": "/model/instance/pnc_first_registration_motherdetails/delivery_facility_name", - "source": "demo_mother.delivery_facility_name", - "value": "moghbazar health center" - }, - { - "name": "delivery_skilled", - "bind": "/model/instance/pnc_first_registration_motherdetails/delivery_skilled", - "source": "demo_mother.delivery_skilled", - "value": "yes" - }, - { - "name": "delivery_type", - "bind": "/model/instance/pnc_first_registration_motherdetails/delivery_type", - "source": "demo_mother.delivery_type", - "value": "normal" - }, - { - "name": "delivery_outcome", - "bind": "/model/instance/pnc_first_registration_motherdetails/delivery_outcome", - "source": "demo_mother.delivery_outcome", - "value": "live_birth" - }, - { - "name": "parity", - "bind": "/model/instance/pnc_first_registration_motherdetails/parity", - "source": "demo_mother.parity", - "value": "1" - }, - { - "name": "num_livebirths", - "bind": "/model/instance/pnc_first_registration_motherdetails/num_livebirths", - "source": "demo_mother.num_livebirths", - "value": "1" - }, - { - "name": "num_stillbirths", - "bind": "/model/instance/pnc_first_registration_motherdetails/num_stillbirths", - "source": "demo_mother.num_stillbirths" - }, - { - "name": "complications", - "bind": "/model/instance/pnc_first_registration_motherdetails/complications", - "source": "demo_mother.complications", - "value": "hemorrhage" - }, - { - "name": "woman_survived", - "bind": "/model/instance/pnc_first_registration_motherdetails/woman_survived", - "source": "demo_mother.woman_survived", - "value": "yes" - } - ] - } - } -} \ No newline at end of file diff --git a/opensrp-connector/src/test/resources/form/pnc_1st_registration/model.xml b/opensrp-connector/src/test/resources/form/pnc_1st_registration/model.xml deleted file mode 100644 index 02529770ad..0000000000 --- a/opensrp-connector/src/test/resources/form/pnc_1st_registration/model.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/opensrp-connector/src/test/resources/form/psrf_form/form.json b/opensrp-connector/src/test/resources/form/psrf_form/form.json deleted file mode 100644 index f211dba17a..0000000000 --- a/opensrp-connector/src/test/resources/form/psrf_form/form.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"PregnancySurveillanceAndRegistrationForm","title":"গর্ভাবস্থা সনাক্তকরন ও নিবন্ধন ফর্ম","sms_keyword":"PregnancySurveillanceAndRegistrationForm","default_language":"Bengali","instance":{"encounter_type":"Pregnancy Surveillance and Registration"},"version":"201512030704","id_string":"PregnancySurveillanceAndRegistrationForm","type":"survey","children":[{"type":"hidden","name":"version","label":{"English":"TechVersion: v1.3 Sep 13, 2015\nFormVersion: v1.0"}},{"type":"hidden","name":"changes","label":{"English":"NN: Put some comments for Bangla Translation\nKZ: Add two new questions: FWPSRPHONE and FWPSRPHONENUM; added answer options yn_unknown\nKZ: psfvisitstatus is now two digits for all fields (01, 02..)\nKZ: Display note for not pregnant - changed to 8 weeks from 5 weeks\nKZ: Pregnancy wantedness (woman) English label changed.\nKZ: Pregnancy wantedness answer choices updated to preg_want from yn_dk\nKZ: Added to the English label for first pregnancy, Bangla label changed to match (PREVPREG). Changed Relevant skip pattern to reflect change in directionality of primi vs. multi gravida.\nKZ: FWPSRPREGTWYRS - added phrase to English label (exluding this current pregnancy)\nKZ: Re-ordered pregnancy conditions question (moved after previous pregnancy complications)\nKZ: Changed MUAC question label in English and Bangla. Meaning is the same.\nCG: Corrected spelling of 'misscarriage' (two r's)\nCG: Converted risk questions into a table list (see rows 40-46)\nCG: Removed .xlsx from file name - when you download this file, .xlsx is automatically appended\nCG: Corrected relevant logic for psrf_met group\nCG: Change label to \"select one response for each condition\" (row 41)\nKZ: Changed wording of \"have you ever had a live born baby who later died within 1 month\"... English and Bangla labels.\nKZ: Deleted CG's crossed off \"which of the following conditions question and added variable names to the conditions in the new format.\nKZ: Deleted Height question\nKZ: Changed constraint message content on previous live births question\nKZ: Added risk factor calculation based on FWA collected data at bottom of form.\nKZ: Added to HHRICE label (... or dhan)\nKZ: Changed labels on phone ownership / phone number questions.\nNN:Corrected the varibale name 'FWPSRPREGWTD' in FWHRP calculation.\nNN: Updated the regex of MUAC\nKZ: Changed label on WOMEDU to remove leading zero prompts\nKZ: Changed WOMEDU back to text, adding leading zeroes back into prompts.\n22/9\nNN: Added 'psrf_schedule_logic', because it is required to generate schedule from PSRF\n5/10\nNN: Added the yellow highlighted fields 'existing_mauzapara' under hidden field's section and calculation fields under 'psrf_pregnant' group. These fields will be required for the development of ANC register.\n18/10\nNN:Added two hidden variables for developers use- user_type and external_user_ID\n15/11\nNN: Updated psrf_schedule_logic calculation.\nMade the 'User_type' calculate field instead of hidden.\nCG: (16/11):\nRemoved OpenMRS mappings for encounter start and end. These will need to be mapped to concepts instead of encounter. PK team has requested these concepts already. We will add once concepts are added to CIEL dictionary"}},{"type":"hidden","name":"existing_mauzapara"},{"type":"hidden","name":"existing_gobhhid"},{"type":"hidden","name":"existing_jivhhid"},{"type":"hidden","name":"existing_first_name"},{"type":"hidden","name":"existing_husname"},{"type":"hidden","name":"existing_wom_nid"},{"type":"hidden","name":"existing_wom_bid"},{"type":"hidden","name":"existing_wom_age"},{"type":"hidden","name":"existing_ELCO"},{"instance":{"openmrs_entity_id":"location_id","openmrs_entity":"encounter"},"type":"hidden","name":"existing_location"},{"instance":{"openmrs_entity_id":"encounter_date","openmrs_entity":"encounter"},"type":"today","name":"today"},{"type":"start","name":"start"},{"type":"end","name":"end"},{"name":"FWPSRDATE","hint":{"Bengali":"অনুগ্রহ করে আজকের তারিখ দিন","English":"Please enter today's date"},"bind":{"jr:constraintMsg":{"English":"Date cannot be greater than today's date"},"required":"yes","constraint":".<=${today}"},"label":{"Bengali":"সাক্ষাৎকারের তারিখ","English":"Date of Interview"},"instance":{"openmrs_entity_id":"160753AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"date"},{"type":"note","name":"FWCONFIRMATION","label":{"Bengali":"\"মহিলার নাম, সরকারী খানা নম্বর ও জীবিতা খানা নম্বর সঠিক কিনা তা নিশ্চিত করুন।\" \nমহিলার নাম: ${existing_first_name}\nGoB HHID: ${existing_gobhhid}\nJiVitA HHID: ${existing_jivhhid}","English":"Confirm woman’s name, GoB HHID and JiVitA HHID are correct:\n\nName: ${existing_first_name}\nGoB HHID: ${existing_gobhhid}\nJiVitA HHID: ${existing_jivhhid}"}},{"name":"FWPSRSTS","bind":{"required":"yes"},"label":{"Bengali":"গর্ভাবস্থা সনাক্তকরণ ভিজিট স্ট্যাটাস","English":"Pregnancy Surveillance Visit Status"},"instance":{"openmrs_entity_id":"163088AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"162961AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"01","label":{"Bengali":"মহিলার সাথে দেখা হয়েছে","English":"Met"}},{"instance":{"openmrs_code":"1899AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"02","label":{"Bengali":"মহিলার সাথে দেখা হয়নি","English":"Not Met"}},{"instance":{"openmrs_code":"5990AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"03","label":{"Bengali":"বয়সের কারনে মাসিক একেবারে উঠে গেছে","English":"Women Menopausal"}},{"instance":{"openmrs_code":"5276AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"04","label":{"Bengali":"মহিলা স্থায়ী পদ্ধতি গ্রহণ করেছেন","English":"Woman Sterilized"}},{"instance":{"openmrs_code":"162959AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"44","label":{"Bengali":"স্বামী স্থায়ী পদ্ধতি গ্রহণ করেছেন","English":"Husband Sterilized"}},{"instance":{"openmrs_code":"163007AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"05","label":{"Bengali":"তালাকপ্রাপ্তা/আলাদা থাকেন","English":"Divorced / Separated"}},{"instance":{"openmrs_code":"128453AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"06","label":{"Bengali":"সাক্ষাৎকার দিতে সম্মতি দেন নি","English":"Refused"}},{"instance":{"openmrs_code":"160415AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"07","label":{"Bengali":"স্থায়ী ভাবে অন্যত্র চলে গেছেন","English":"Permanently Moved"}},{"instance":{"openmrs_code":"159AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"08","label":{"Bengali":"মহিলা মারা গেছেন","English":"Woman Died"}},{"instance":{"openmrs_code":"5561AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"88","label":{"Bengali":"স্বামী মারা গেছেন","English":"Husband Died"}}]},{"bind":{"relevant":"${FWPSRSTS} ='01'"},"label":{"Bengali":"গর্ভাবস্থা সনাক্তকরণ","English":"Pregnancy Surveillance"},"type":"group","children":[{"name":"FWPSRLMP","hint":{"Bengali":"মহিলার শেষ মাসিক শুরুর তারিখটি লিপিবদ্ধ করুন","English":"Please record the LMP date for the woman."},"bind":{"jr:constraintMsg":{"English":"Date cannot be greater than today's date"},"required":"yes","constraint":".<=${today}"},"label":{"Bengali":"আপনার শেষ মাসিক কবে শুরু হয়েছিলো?","English":"What was the date on the first day of your last menstrual period?"},"instance":{"openmrs_entity_id":"1427AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"date"},{"name":"FWPSRPREGSTS","bind":{"relevant":"(${FWPSRLMP} + 30) <= ${today}","required":"yes"},"label":{"Bengali":"আপনি শেষ মাসিক শুরুর যে তারিখ বললেন সেই অনুযায়ী মনে হচ্ছে যে আপনি গর্ভবতী হতে পারেন। আপনি কি বর্তমানে গর্ভবতী?","English":"Based on your LMP date as you mentioned, it indicates you may be pregnant. Are you currently pregnant?"},"instance":{"openmrs_entity_id":"162942AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"0","label":{"Bengali":"না","English":"No"}},{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"1","label":{"Bengali":"হ্যাঁ","English":"Yes"}},{"instance":{"openmrs_code":"1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"9","label":{"Bengali":"জানি না","English":"Don't Know"}}]},{"bind":{"relevant":"${FWPSRPREGSTS}='1' and ${FWPSRLMP} + 30 <= ${today}"},"type":"note","name":"display_pregnote","label":{"Bengali":"গর্ভবতী হওয়ার জন্য আমি আপনাকে অভিনন্দন জানাচ্ছি। নিকটবর্তী স্বাস্থ্য কেন্দ্রে যেয়ে নিয়মিত গর্ভকালীন স্বাস্থ্য পরীক্ষা করার কথা মনে করিয়ে দিতে আপনার গর্ভের প্রতি তিনমাস পর পর আমি আপনাকে ভিজিট করবো। এর ফলে আপনি গর্ভকালীন সময়ে আপনার স্বাস্থ্যের এবং আপনার গর্ভের সন্তানের আরও ভালো যত্ন নিতে পারবেন এবং সন্তান জন্মদানের জন্য আপনি আগে থেকেই প্রস্তুত থাকতে পারবেন।","English":"Congratulations on your pregnancy, I will visit you in every trimester of your pregnancy to remind you to go for routine antenatal care check up at the nearest health facility. This will help you take better care of your health and your baby during pregnancy and help you prepare for the birth in advance."}},{"bind":{"relevant":"${FWPSRPREGSTS}='0' or ${FWPSRPREGSTS}='9' or (${FWPSRLMP} + 30 >= today())"},"type":"note","name":"display_notpregnote","label":{"Bengali":"সময় দেওয়ার জন্য আপনাকে ধন্যবাদ। ৮ (আট) সপ্তাহ পর আমি আবার আপনাকে ভিজিট করবো।","English":"Thank you for your time. I will visit you again in 8 weeks."}},{"bind":{"relevant":"${FWPSRPREGSTS}='1'"},"label":{"Bengali":"গর্ভবতী মহিলাকে নিবন্ধিত করণ","English":"Pregnancy Registration"},"type":"group","children":[{"bind":{"calculate":"${existing_mauzapara}"},"type":"calculate","name":"mother_mauza"},{"bind":{"calculate":"${existing_gobhhid}"},"type":"calculate","name":"mother_gobhhid"},{"bind":{"calculate":"${existing_jivhhid}"},"type":"calculate","name":"mother_jivhhid"},{"bind":{"calculate":"${existing_first_name}"},"type":"calculate","name":"mother_first_name"},{"bind":{"calculate":"${existing_husname}"},"type":"calculate","name":"mother_husname"},{"bind":{"calculate":"${existing_wom_nid}"},"type":"calculate","name":"mother_wom_nid"},{"bind":{"calculate":"${existing_wom_bid}"},"type":"calculate","name":"mother_wom_bid"},{"bind":{"calculate":"${existing_wom_age}"},"type":"calculate","name":"mother_wom_age"},{"bind":{"calculate":"${FWPSRLMP}"},"type":"calculate","name":"mother_wom_lmp"},{"bind":{"relevant":"${FWPSRPREGSTS}='1'","calculate":"1"},"type":"calculate","name":"mother_valid"},{"name":"FWPSRPREGWTD","bind":{"required":"yes"},"label":{"Bengali":"আপনি কি এখন গর্ভবতী হতে চেয়েছিলেন?","English":"Please tell me if you wanted to become pregnant now?"},"instance":{"openmrs_entity_id":"163085AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"123572AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"0","label":{"Bengali":"চান নি","English":"Not wanted"}},{"instance":{"openmrs_code":"122933AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"1","label":{"Bengali":"চেয়েছিলেন","English":"Wanted"}},{"instance":{"openmrs_code":"162570AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"6","label":{"Bengali":"উত্তর দিতে অসম্মতি জানিয়েছেন","English":"Refused"}}]},{"instance":{"openmrs_entity_id":"163086AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"label":{"Bengali":"আপনার স্বামী কি চেয়েছিলেন যে আপনি এখন গর্ভবতী হন?","English":"Please tell me if your husband wanted you to become pregnant now?"},"type":"select one","children":[{"instance":{"openmrs_code":"123572AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"0","label":{"Bengali":"চান নি","English":"Not wanted"}},{"instance":{"openmrs_code":"122933AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"1","label":{"Bengali":"চেয়েছিলেন","English":"Wanted"}},{"instance":{"openmrs_code":"162570AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"6","label":{"Bengali":"উত্তর দিতে অসম্মতি জানিয়েছেন","English":"Refused"}}],"name":"FWPSRHUSPREGWTD"},{"instance":{"openmrs_entity_id":"162970AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"label":{"Bengali":"আপনি কি জীবনে এইবারই প্রথম গর্ভবতী হয়েছেন?","English":"Is this your first pregnancy in your life?"},"type":"select one","children":[{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"0","label":{"Bengali":"না","English":"No"}},{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"1","label":{"Bengali":"হ্যাঁ","English":"Yes"}},{"instance":{"openmrs_code":"1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"9","label":{"Bengali":"জানি না","English":"Don't Know"}}],"name":"FWPSREVRPREG"},{"name":"FWPSRTOTBIRTH","hint":{"Bengali":"0= একবারও না, 1-7= 1 থেকে 7 বার, 8= 8 বার বা তার বেশী, 9= জানি না","English":"Enter 0 if no live births; 1-7 for number of live births; 8 if 8 or more live births; 9 if woman does not know."},"bind":{"relevant":"${FWPSREVRPREG}='0'","jr:constraintMsg":{"English":"Enter 0 if no live births; 1-7 for number of live births; 8 if 8 or more live births; 9 if woman does not know."},"required":"yes","constraint":".>= 0 and . <=9"},"label":{"Bengali":"আপনি জীবনে কতবার জীবিত বাচ্চা প্রসব করেছেন?","English":"How many times in your life have you given birth to a live baby?"},"instance":{"openmrs_entity_id":"160601AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"integer"},{"name":"FWPSRNBDTH","hint":{"Bengali":"0= একবারও না, 1-7= 1 থেকে 7 বার, 8= 8 বার বা তার বেশী, 9= জানি না","English":"Enter 0 if none; 1-7 for number; 8 if 8 or more; 9 if woman does not know."},"bind":{"relevant":"${FWPSREVRPREG}='0' and ${FWPSRTOTBIRTH}!='0'","jr:constraintMsg":{"English":"Enter 0 if none; 1-7 for number; 8 if 8 or more; 9 if woman does not know."},"required":"yes","constraint":".>= 0 and . <=9"},"label":{"Bengali":"জীবিত অবস্থায় জন্ম নেয়া আপনার বাচ্চাদের মধ্যে কত জন জন্মের এক মাসের মধ্যে মারা গেছে?","English":"How many of your live born babies died within 1 month of birth?"},"instance":{"openmrs_entity_id":"162968AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"integer"},{"name":"FWPSRPRSB","bind":{"relevant":"${FWPSREVRPREG}='0'","required":"yes"},"label":{"Bengali":"আপনার কি আগে কখনও মৃতবাচ্চা প্রসব হয়েছিলো?","English":"Have you ever had a stillbirth?"},"instance":{"openmrs_entity_id":"162587AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"0","label":{"Bengali":"না","English":"No"}},{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"1","label":{"Bengali":"হ্যাঁ","English":"Yes"}},{"instance":{"openmrs_code":"1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"9","label":{"Bengali":"জানি না","English":"Don't Know"}}]},{"name":"FWPSRPRMC","bind":{"relevant":"${FWPSREVRPREG}='0'","required":"yes"},"label":{"Bengali":"আপনার কি আগে কখনও গর্ভনষ্ট হয়েছিলো বা আপনি কি আগে কখনও MR/গর্ভপাত করিয়েছিলেন?","English":"Have you ever had a misscarriage or MR?"},"instance":{"openmrs_entity_id":"162971AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"0","label":{"Bengali":"না","English":"No"}},{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"1","label":{"Bengali":"হ্যাঁ","English":"Yes"}},{"instance":{"openmrs_code":"1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"9","label":{"Bengali":"জানি না","English":"Don't Know"}}]},{"name":"FWPSRPREGTWYRS","bind":{"relevant":"${FWPSREVRPREG}='0'","required":"yes"},"label":{"Bengali":"এই গর্ভাবস্থা ছাড়া গত দুই বছরে আপনি কি আর কখনও গর্ভবতী হয়েছিলেন?","English":"Excluding this current pregnancy, have you ever been pregnant in the last two years?"},"instance":{"openmrs_entity_id":"162943AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"0","label":{"Bengali":"না","English":"No"}},{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"1","label":{"Bengali":"হ্যাঁ","English":"Yes"}},{"instance":{"openmrs_code":"1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"9","label":{"Bengali":"জানি না","English":"Don't Know"}}]},{"name":"FWPSRPRVPREGCOMP","bind":{"relevant":"${FWPSREVRPREG}='0'","required":"yes"},"label":{"Bengali":"গর্ভজনিত জটিলতার কারণে আপনাকে কি\nকখনও কোন হাসপাতাল বা স্বাস্থ্যকেন্দ্রে নিয়ে\nযাওয়া হয়েছিলো?","English":"Were you ever taken to a hospital or health facility for any pregnancy-related complication?"},"instance":{"openmrs_entity_id":"162594AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"0","label":{"Bengali":"না","English":"No"}},{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"1","label":{"Bengali":"হ্যাঁ","English":"Yes"}},{"instance":{"openmrs_code":"1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"9","label":{"Bengali":"জানি না","English":"Don't Know"}}]},{"name":"FWPSRPRCHECKS","bind":{"relevant":"${FWPSREVRPREG}='0'","required":"yes"},"label":{"Bengali":"গত গর্ভাবস্থায় আপনি কি আপনার নিজের এবং আপনার গর্ভের বাচ্চার নিয়মিত স্বাস্থ্যপরীক্ষা করিয়েছিলেন?","English":"During your most recent pregnancy, did you get regular “checkups” for your health and the health of your baby?"},"instance":{"openmrs_entity_id":"162957AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"0","label":{"Bengali":"না","English":"No"}},{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"1","label":{"Bengali":"হ্যাঁ","English":"Yes"}},{"instance":{"openmrs_code":"1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"9","label":{"Bengali":"জানি না","English":"Don't Know"}}]},{"control":{"appearance":"field-list"},"name":"risk_group","label":{"Bengali":"এইবার গর্ভবতী হওয়ার পর আপনাকে কি কোন স্বাস্থ্যকর্মী বলেছেন যে আপনার নিচের কোনটি আছে কিনা?","English":"Since becoming pregnant with this current pregnancy, has any health provider told you that you have any of the following:"},"instance":{"openmrs_entity_id":"160079AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"group","children":[{"control":{"appearance":"label"},"label":{"Bengali":"প্রত্যেক অবস্থার জন্য একটি করে উত্তর নির্বাচন করুন-","English":"Select one response for each condition:"},"type":"select one","children":[{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"0","label":{"Bengali":"না","English":"No"}},{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"1","label":{"Bengali":"হ্যাঁ","English":"Yes"}},{"instance":{"openmrs_code":"1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"9","label":{"Bengali":"জানি না","English":"Don't Know"}}],"name":"yn_dk_label"},{"control":{"appearance":"list-nolabel"},"name":"FWPSRANM","bind":{"required":"yes"},"label":{"Bengali":"রক্তস্বল্পতা","English":"Anemia"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"1729AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"148834AAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"select one","children":[{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"0","label":{"Bengali":"না","English":"No"}},{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"1","label":{"Bengali":"হ্যাঁ","English":"Yes"}},{"instance":{"openmrs_code":"1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"9","label":{"Bengali":"জানি না","English":"Don't Know"}}]},{"control":{"appearance":"list-nolabel"},"name":"FWPSRHBP","bind":{"required":"yes"},"label":{"Bengali":"উচ্চ রক্তচাপ বা ব্লাড প্রেসার","English":"High blood pressure"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"1729AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"113859AAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"select one","children":[{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"0","label":{"Bengali":"না","English":"No"}},{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"1","label":{"Bengali":"হ্যাঁ","English":"Yes"}},{"instance":{"openmrs_code":"1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"9","label":{"Bengali":"জানি না","English":"Don't Know"}}]},{"control":{"appearance":"list-nolabel"},"name":"FWPSRDBT","bind":{"required":"yes"},"label":{"Bengali":"ডায়াবেটিস","English":"Diabetes"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"1729AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"119477AAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"select one","children":[{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"0","label":{"Bengali":"না","English":"No"}},{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"1","label":{"Bengali":"হ্যাঁ","English":"Yes"}},{"instance":{"openmrs_code":"1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"9","label":{"Bengali":"জানি না","English":"Don't Know"}}]},{"control":{"appearance":"list-nolabel"},"name":"FWPSRTHY","bind":{"required":"yes"},"label":{"Bengali":"থাইরয়েড জনিত সমস্যা","English":"Thyroid disorder"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"1729AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"124719AAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"select one","children":[{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"0","label":{"Bengali":"না","English":"No"}},{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"1","label":{"Bengali":"হ্যাঁ","English":"Yes"}},{"instance":{"openmrs_code":"1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"9","label":{"Bengali":"জানি না","English":"Don't Know"}}]}]},{"name":"FWPSRVDGMEM","bind":{"required":"yes"},"label":{"Bengali":"আপনি কি কোন VGD (দুস্থ্য উন্নয়ন গ্রুপ) এর সদস্য?","English":"Are you a member of a VGD (Vulnerable Group Development)?"},"instance":{"openmrs_entity_id":"162956AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"0","label":{"Bengali":"না","English":"No"}},{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"1","label":{"Bengali":"হ্যাঁ","English":"Yes"}},{"instance":{"openmrs_code":"1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"9","label":{"Bengali":"জানি না","English":"Don't Know"}}]},{"control":{"appearance":"numbers"},"name":"FWPSRWOMEDU","hint":{"Bengali":"00= কখনও স্কুলে পড়েন নি; 01-09=ক্লাস ওয়ান থেকে ক্লাস নাইন পর্যন্ত; 10=এস এস সি/দাখিল পাশ; 11=একাদশ শ্রেণী; 12=এইচ এস সি/আলিম পাশ; 13=ত্রয়োদশ শ্রেণী; 14= স্নাতক/ফাজিল বা উচ্চতর; 99=জানি না","English":"00=No Schooling; 01-09=Class Completed; 10=SSC/Dakhil Passed; 11=11 Years; 12=HSC/Alim Passed; 13=13 years; 14= Degree/Fazil or higher; 99=Don't Know"},"bind":{"jr:constraintMsg":{"English":"00=No Schooling; 01-09=Class Completed; 10=SSC/Dakhil Passed; 11=11 Years; 12=HSC/Alim Passed; 13=13 years; 14= Degree/Fazil or higher; 99=Don't Know"},"required":"yes","constraint":"regex(., '^[0-9]{2}$')"},"label":{"Bengali":"আপনি সর্বোচ্চ কোন ক্লাস/শ্রেণী পর্যন্ত লেখাপড়া করেছেন?","English":"What was the highest class you completed at school?"},"instance":{"openmrs_entity_id":"1545AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"text"},{"name":"FWPSRHHLAT","bind":{"required":"yes"},"label":{"Bengali":"আপনার খানার পায়খানার ধরন কি?","English":"What kind of latrine / toilet facility does your household use?"},"instance":{"openmrs_entity_id":"159741AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"0","label":{"Bengali":"নাই / মাঠ / ঝোপঝাড়","English":"None / field / bush"}},{"instance":{"openmrs_code":"160257AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"1","label":{"Bengali":"খোলা / ঝুলন্ত পায়খানা","English":"Open / hanging latrine"}},{"instance":{"openmrs_code":"159580AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"2","label":{"Bengali":"পিট বা গর্ত পায়খানা","English":"Pit latrine"}},{"instance":{"openmrs_code":"163079AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"3","label":{"Bengali":"জলাবদ্ধ/স্লাব","English":"Water sealed / slab"}},{"instance":{"openmrs_code":"159577AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"4","label":{"Bengali":"ফ্ল্যাশ টয়লেট","English":"Flush toilet"}},{"instance":{"openmrs_code":"1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"9","label":{"Bengali":"জানি না","English":"Don't Know"}}]},{"control":{"appearance":"numbers"},"name":"FWPSRHHRICE","hint":{"Bengali":"00= নাই, 01-97= 01-97 দিনের সংখ্যা, 98= 98 দিন বা তার বেশী, 99= জানি না","English":"00=None; 01-97 Number of days; 98= 98 or more days; 99=Don't Know"},"bind":{"jr:constraintMsg":{"English":"00=None; 01-97 Number of days; 98= 98 or more days; 99=Don't Know"},"required":"yes","constraint":"regex(., '^[0-9]{2}$')"},"label":{"Bengali":"আজকে আপনার খানায় কি পরিমাণ চাল বা ধানের মজুদ আছে? (খানার সকল সদস্যের জন্য কি পরিমাণ চাল বা ধানের মজুদ আছে তার উপর ভিত্তি করে উত্তর নিতে হবে)","English":"Today, how many days worth of rice (chal or dhan) do you have stored in your household? (Response based on consumption by all the household members)."},"instance":{"openmrs_entity_id":"162962AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"text"},{"name":"FWPSRPHONE","bind":{"required":"yes"},"label":{"Bengali":"আপনার বা আপনার পরিবারের কি কোন ফোন নম্বর আছে যেখানে এমকেয়ার থেকে আপনাকে স্বাস্থ্যসেবা নেয়ার কথা মনে করিয়ে দেয়ার জন্য মেসেজ পাঠানো যাবে?","English":"Do you or your family have a phone number where mCARE can send you SMS messages to remind you to receive care?"},"instance":{"openmrs_entity_id":"163089AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"0","label":{"Bengali":"না","English":"No"}},{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"1","label":{"Bengali":"হ্যাঁ","English":"Yes"}},{"instance":{"openmrs_code":"1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"2","label":{"Bengali":"হ্যাঁ, কিন্তু সংখ্যা জানা নাই","English":"Yes, but number unknown"}}]},{"control":{"appearance":"numbers"},"name":"FWPSRPHONENUM","bind":{"relevant":"${FWPSRPHONE}='1'","jr:constraintMsg":{"English":"Must be 11 digits"},"required":"yes","constraint":"regex(., '^[0-9]{11}$')"},"label":{"Bengali":"ফোন নম্বরটি প্রবেশ করান","English":"Record Phone Number"},"instance":{"openmrs_entity_id":"159635AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"text"},{"name":"FWPSRMUAC","hint":{"Bengali":"MUAC হলো ঊর্ধ্ববাহুর মাঝামাঝি অংশের পরিধি। মাপা না হয়ে থাকলে 99 এন্ট্রি করুন","English":"MUAC is the mid-upper arm circumference. Enter 99 if not measured."},"bind":{"jr:constraintMsg":{"English":"MUAC must be between 10 and 50 cm or enter 99 if not measured."},"required":"yes","constraint":"regex(., '^\\d{0,2}(\\.\\d{0,1})?$')"},"label":{"Bengali":"মহিলার ঊর্ধ্ববাহুর পরিধির (MUAC) মাপ সে.মি. এ নিন এবং রেকর্ড করুন।","English":"I will now measure and record your mid upper arm circumference"},"instance":{"openmrs_entity_id":"1343AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"decimal"}],"name":"psrf_pregnant"}],"name":"psrf_met"},{"bind":{"calculate":"if (${FWPSRSTS}='02' or ${FWPSRPREGSTS}='0' or ${FWPSRPREGSTS}='9' or (${FWPSRLMP} + 30 >= today()),1,0)"},"type":"calculate","name":"psrf_schedule_logic"},{"bind":{"calculate":"if(${FWPSRSTS} = '03' or ${FWPSRSTS} = '04' or ${FWPSRSTS} = '44' or ${FWPSRSTS} = '05' or ${FWPSRSTS} = '08' or ${FWPSRSTS} = '88', '1', '0')"},"type":"calculate","name":"FWNOTELIGIBLE"},{"bind":{"calculate":"${existing_ELCO} - ${FWNOTELIGIBLE}"},"type":"calculate","name":"ELCO"},{"bind":{"calculate":"if(${FWNOTELIGIBLE}='1',0,1)"},"type":"calculate","name":"FWELIGIBLE"},{"bind":{"calculate":"if(${FWPSRVDGMEM}='1' or ${FWPSRWOMEDU}<'6' or ${FWPSRHHLAT}<'2' or ${FWPSRHHRICE}<'7',1,0)"},"type":"calculate","name":"FWVG","instance":{"openmrs_entity_id":"163090AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"bind":{"calculate":"if(${FWPSRTOTBIRTH}='0' or (${FWPSRTOTBIRTH}>='4' and ${FWPSRTOTBIRTH}<'9') or ${FWPSRPRMC}>0 or ${FWPSRPRSB}='1' or ${FWPSRNBDTH}>'0' or ${FWPSRPRVPREGCOMP}='1' or ${FWPSRPREGTWYRS}='1' or ${FWPSRPREGWTD}='0',3,0)"},"type":"calculate","name":"FWHRP","instance":{"openmrs_entity_id":"163092AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"bind":{"calculate":"if(${FWPSRANM}='1' or ${FWPSRHBP}='1' or ${FWPSRDBT}='1' or ${FWPSRTHY}='1',2,0)"},"type":"calculate","name":"FWHR_PSR","instance":{"openmrs_entity_id":"163091AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"bind":{"calculate":"${FWVG}+${FWHRP}+${FWHR_PSR}"},"type":"calculate","name":"FWFLAGVALUE","instance":{"openmrs_entity_id":"163093AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"bind":{"calculate":"${FWFLAGVALUE}"},"type":"calculate","name":"FWSORTVALUE"},{"bind":{"calculate":"\"FWA\""},"type":"calculate","name":"user_type"},{"type":"hidden","name":"external_user_ID"},{"control":{"bodyless":true},"type":"group","children":[{"bind":{"readonly":"true()","calculate":"concat('uuid:', uuid())"},"type":"calculate","name":"instanceID"}],"name":"meta"}]} \ No newline at end of file diff --git a/opensrp-connector/src/test/resources/form/psrf_form/form_definition.json b/opensrp-connector/src/test/resources/form/psrf_form/form_definition.json deleted file mode 100644 index cd044c5d7f..0000000000 --- a/opensrp-connector/src/test/resources/form/psrf_form/form_definition.json +++ /dev/null @@ -1,289 +0,0 @@ -{ - "form_data_definition_version": "13", - "form": { - "default_bind_path": "/model/instance/PregnancySurveillanceAndRegistrationForm", - "bind_type": "elco", - "fields": [ - { - "name": "id", - "shouldLoadValue": true - }, - { - "name": "FWWOMMAUZA_PARA", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/existing_mauzapara", - "shouldLoadValue": true - }, - { - "name": "GOBHHID", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/existing_gobhhid", - "shouldLoadValue": true - }, - { - "name": "JiVitAHHID", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/existing_jivhhid", - "shouldLoadValue": true - }, - { - "name": "FWWOMFNAME", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/existing_first_name", - "shouldLoadValue": true - }, - { - "name": "FWHUSNAME", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/existing_husname", - "shouldLoadValue": true - }, - { - "name": "FWWOMNID", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/existing_wom_nid", - "shouldLoadValue": true - }, - { - "name": "FWWOMBID", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/existing_wom_bid", - "shouldLoadValue": true - }, - { - "name": "FWWOMAGE", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/existing_wom_age", - "shouldLoadValue": true - }, - { - "name": "existing_ELCO", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/existing_ELCO" - }, - { - "name": "existing_location", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/existing_location", - "shouldLoadValue": true - }, - { - "name": "today", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/today" - }, - { - "name": "start", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/start" - }, - { - "name": "end", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/end" - }, - { - "name": "FWPSRDATE", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/FWPSRDATE" - }, - { - "name": "FWCONFIRMATION", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/FWCONFIRMATION" - }, - { - "name": "FWPSRSTS", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/FWPSRSTS" - }, - { - "name": "psrf_schedule_logic", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/psrf_schedule_logic" - }, - { - "name": "FWNOTELIGIBLE", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/FWNOTELIGIBLE" - }, - { - "name": "FWELIGIBLE", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/FWELIGIBLE" - }, - { - "name": "ELCO", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/ELCO" - }, - { - "name": "FWVG", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/FWVG" - }, - { - "name": "FWHRP", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/FWHRP" - }, - { - "name": "FWHR_PSR", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/FWHR_PSR" - }, - { - "name": "FWFLAGVALUE", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/FWFLAGVALUE" - }, - { - "name": "FWSORTVALUE", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/FWSORTVALUE" - }, - { - "name": "user_type", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/user_type" - }, - { - "name": "external_user_ID", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/external_user_ID" - }, - { - "name": "FWPSRLMP", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/psrf_met/FWPSRLMP" - }, - { - "name": "FWPSRPREGSTS", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/psrf_met/FWPSRPREGSTS" - }, - { - "name": "display_pregnote", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/psrf_met/display_pregnote" - }, - { - "name": "display_notpregnote", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/psrf_met/display_notpregnote" - }, - { - "name": "id", - "shouldLoadValue": true, - "source": "elco.mcaremother.id" - }, - { - "name": "mother_mauza", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/psrf_met/psrf_pregnant/mother_mauza", - "source": "elco.mcaremother.mauza" - }, - { - "name": "mother_gobhhid", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/psrf_met/psrf_pregnant/mother_gobhhid", - "source": "elco.mcaremother.GOBHHID" - }, - { - "name": "mother_jivhhid", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/psrf_met/psrf_pregnant/mother_jivhhid", - "source": "elco.mcaremother.JiVitAHHID" - }, - { - "name": "mother_first_name", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/psrf_met/psrf_pregnant/mother_first_name", - "source": "elco.mcaremother.FWWOMFNAME" - }, - { - "name": "mother_husname", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/psrf_met/psrf_pregnant/mother_husname", - "source": "elco.mcaremother.FWHUSNAME" - }, - { - "name": "mother_wom_nid", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/psrf_met/psrf_pregnant/mother_wom_nid", - "source": "elco.mcaremother.FWWOMNID" - }, - { - "name": "mother_wom_bid", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/psrf_met/psrf_pregnant/mother_wom_bid", - "source": "elco.mcaremother.FWWOMBID" - }, - { - "name": "mother_wom_age", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/psrf_met/psrf_pregnant/mother_wom_age", - "source": "elco.mcaremother.FWWOMAGE" - }, - { - "name": "mother_wom_lmp", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/psrf_met/psrf_pregnant/mother_wom_lmp", - "source": "elco.mcaremother.FWPSRLMP" - }, - { - "name": "mother_valid", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/psrf_met/psrf_pregnant/mother_valid", - "source": "elco.mcaremother.FWWOMVALID" - }, - { - "name": "FWPSRWOMPREGWTD", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/psrf_met/psrf_pregnant/FWPSRWOMPREGWTD" - }, - { - "name": "FWPSRHUSPREGWTD", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/psrf_met/psrf_pregnant/FWPSRHUSPREGWTD" - }, - { - "name": "FWPSREVRPREG", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/psrf_met/psrf_pregnant/FWPSREVRPREG" - }, - { - "name": "FWPSRTOTBIRTH", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/psrf_met/psrf_pregnant/FWPSRTOTBIRTH" - }, - { - "name": "FWPSRNBDTH", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/psrf_met/psrf_pregnant/FWPSRNBDTH" - }, - { - "name": "FWPSRPRSB", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/psrf_met/psrf_pregnant/FWPSRPRSB" - }, - { - "name": "FWPSRPRMC", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/psrf_met/psrf_pregnant/FWPSRPRMC" - }, - { - "name": "FWPSRPREGTWYRS", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/psrf_met/psrf_pregnant/FWPSRPREGTWYRS" - }, - { - "name": "FWPSRPRVPREGCOMP", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/psrf_met/psrf_pregnant/FWPSRPRVPREGCOMP" - }, - { - "name": "FWPSRPRCHECKS", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/psrf_met/psrf_pregnant/FWPSRPRCHECKS" - }, - { - "name": "FWPSRVDGMEM", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/psrf_met/psrf_pregnant/FWPSRVDGMEM" - }, - { - "name": "FWPSRWOMEDU", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/psrf_met/psrf_pregnant/FWPSRWOMEDU" - }, - { - "name": "FWPSRHHLAT", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/psrf_met/psrf_pregnant/FWPSRHHLAT" - }, - { - "name": "FWPSRHHRICE", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/psrf_met/psrf_pregnant/FWPSRHHRICE" - }, - { - "name": "FWPSRANM", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/psrf_met/psrf_pregnant/risk_group/FWPSRANM" - }, - { - "name": "FWPSRHBP", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/psrf_met/psrf_pregnant/risk_group/FWPSRHBP" - }, - { - "name": "FWPSRDBT", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/psrf_met/psrf_pregnant/risk_group/FWPSRDBT" - }, - { - "name": "FWPSRTHY", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/psrf_met/psrf_pregnant/risk_group/FWPSRTHY" - }, - { - "name": "FWPSRHGT", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/psrf_met/psrf_pregnant/FWPSRHGT" - }, - { - "name": "FWPSRMUAC", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/psrf_met/psrf_pregnant/FWPSRMUAC" - }, - { - "name": "FWPSRPHONE", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/psrf_met/psrf_pregnant/FWPSRPHONE" - }, - { - "name": "FWPSRPHONENUM", - "bind": "/model/instance/PregnancySurveillanceAndRegistrationForm/psrf_met/psrf_pregnant/FWPSRPHONENUM" - } - ] - } -} \ No newline at end of file diff --git a/opensrp-connector/src/test/resources/form/psrf_form/form_submission.json b/opensrp-connector/src/test/resources/form/psrf_form/form_submission.json deleted file mode 100644 index 657c8c8e4b..0000000000 --- a/opensrp-connector/src/test/resources/form/psrf_form/form_submission.json +++ /dev/null @@ -1,344 +0,0 @@ - -{ - "_id": "95c6ce44333c8d2364236d89f524c0cf", - "_rev": "1-92f3b200ed476047edbabf9a49136ee8", - "type": "FormSubmission", - "anmId": "demosrp", - "instanceId": "b6348e83-ef43-4fe6-b456-d046f3c9d88f", - "formName": "psrf_form", - "entityId": "91bc6f4e-4378-48c0-9b7a-27022c4eb7a9", - "clientVersion": 1452681946381, - "formDataDefinitionVersion": "13", - "formInstance": { - "form_data_definition_version": "13", - "form": { - "bind_type": "elco", - "default_bind_path": "/model/instance/PregnancySurveillanceAndRegistrationForm", - "fields": [ - { - "name": "id", - "value": "577f629e-1b49-4200-82f7-8d0303da9252", - "source": "elco.id" - }, - { - "name": "FWWOMMAUZA_PARA", - "value": "CHAPADAHA - PURBO PARA", - "source": "elco.FWWOMMAUZA_PARA" - }, - { - "name": "GOBHHID", - "value": "8900", - "source": "elco.GOBHHID" - }, - { - "name": "JiVitAHHID", - "value": "8799", - "source": "elco.JiVitAHHID" - }, - { - "name": "FWWOMFNAME", - "value": "neura", - "source": "elco.FWWOMFNAME" - }, - { - "name": "FWHUSNAME", - "value": "kn", - "source": "elco.FWHUSNAME" - }, - { - "name": "FWWOMNID", - "value": "9090999988888", - "source": "elco.FWWOMNID" - }, - { - "name": "FWWOMBID", - "value": "", - "source": "elco.FWWOMBID" - }, - { - "name": "FWWOMAGE", - "value": "16", - "source": "elco.FWWOMAGE" - }, - { - "name": "existing_ELCO", - "value": "1", - "source": "elco.existing_ELCO" - }, - { - "name": "existing_location", - "source": "elco.existing_location" - }, - { - "name": "today", - "value": "2016-01-13", - "source": "elco.today" - }, - { - "name": "start", - "value": "2016-01-13T16:43:48.000+06:00", - "source": "elco.start" - }, - { - "name": "end", - "value": "2016-01-13T16:43:48.000+06:00", - "source": "elco.end" - }, - { - "name": "FWPSRDATE", - "value": "2016-01-13", - "source": "elco.FWPSRDATE" - }, - { - "name": "FWCONFIRMATION", - "value": "", - "source": "elco.FWCONFIRMATION" - }, - { - "name": "FWPSRSTS", - "value": "1", - "source": "elco.FWPSRSTS" - }, - { - "name": "psrf_schedule_logic", - "value": "0", - "source": "elco.psrf_schedule_logic" - }, - { - "name": "FWNOTELIGIBLE", - "value": "0", - "source": "elco.FWNOTELIGIBLE" - }, - { - "name": "FWELIGIBLE", - "value": "1", - "source": "elco.FWELIGIBLE" - }, - { - "name": "ELCO", - "value": "1", - "source": "elco.ELCO" - }, - { - "name": "FWVG", - "value": "1", - "source": "elco.FWVG" - }, - { - "name": "FWHRP", - "value": "3", - "source": "elco.FWHRP" - }, - { - "name": "FWHR_PSR", - "value": "2", - "source": "elco.FWHR_PSR" - }, - { - "name": "FWFLAGVALUE", - "value": "6", - "source": "elco.FWFLAGVALUE" - }, - { - "name": "FWSORTVALUE", - "value": "6", - "source": "elco.FWSORTVALUE" - }, - { - "name": "user_type", - "value": "FWA", - "source": "elco.user_type" - }, - { - "name": "external_user_ID", - "value": "", - "source": "elco.external_user_ID" - }, - { - "name": "FWPSRLMP", - "value": "2015-12-13", - "source": "elco.FWPSRLMP" - }, - { - "name": "FWPSRPREGSTS", - "value": "1", - "source": "elco.FWPSRPREGSTS" - }, - { - "name": "display_pregnote", - "value": "", - "source": "elco.display_pregnote" - }, - { - "name": "display_notpregnote", - "value": "", - "source": "elco.display_notpregnote" - }, - { - "name": "id", - "value": "577f629e-1b49-4200-82f7-8d0303da9252", - "source": "elco.mcaremother.id" - }, - { - "name": "mother_mauza", - "value": "CHAPADAHA - PURBO PARA", - "source": "elco.mcaremother.mauza" - }, - { - "name": "mother_gobhhid", - "value": "8900", - "source": "elco.mcaremother.GOBHHID" - }, - { - "name": "mother_jivhhid", - "value": "8799", - "source": "elco.mcaremother.JiVitAHHID" - }, - { - "name": "mother_first_name", - "value": "neura", - "source": "elco.mcaremother.FWWOMFNAME" - }, - { - "name": "mother_husname", - "value": "kn", - "source": "elco.mcaremother.FWHUSNAME" - }, - { - "name": "mother_wom_nid", - "value": "9090999988888", - "source": "elco.mcaremother.FWWOMNID" - }, - { - "name": "mother_wom_bid", - "value": "", - "source": "elco.mcaremother.FWWOMBID" - }, - { - "name": "mother_wom_age", - "value": "16", - "source": "elco.mcaremother.FWWOMAGE" - }, - { - "name": "mother_wom_lmp", - "value": "2015-12-13", - "source": "elco.mcaremother.FWPSRLMP" - }, - { - "name": "mother_valid", - "value": "1", - "source": "elco.mcaremother.FWWOMVALID" - }, - { - "name": "FWPSRWOMPREGWTD", - "source": "elco.FWPSRWOMPREGWTD" - }, - { - "name": "FWPSRHUSPREGWTD", - "value": "0", - "source": "elco.FWPSRHUSPREGWTD" - }, - { - "name": "FWPSREVRPREG", - "value": "0", - "source": "elco.FWPSREVRPREG" - }, - { - "name": "FWPSRTOTBIRTH", - "value": "8", - "source": "elco.FWPSRTOTBIRTH" - }, - { - "name": "FWPSRNBDTH", - "value": "3", - "source": "elco.FWPSRNBDTH" - }, - { - "name": "FWPSRPRSB", - "value": "1", - "source": "elco.FWPSRPRSB" - }, - { - "name": "FWPSRPRMC", - "value": "0", - "source": "elco.FWPSRPRMC" - }, - { - "name": "FWPSRPREGTWYRS", - "value": "1", - "source": "elco.FWPSRPREGTWYRS" - }, - { - "name": "FWPSRPRVPREGCOMP", - "value": "0", - "source": "elco.FWPSRPRVPREGCOMP" - }, - { - "name": "FWPSRPRCHECKS", - "value": "1", - "source": "elco.FWPSRPRCHECKS" - }, - { - "name": "FWPSRVDGMEM", - "value": "1", - "source": "elco.FWPSRVDGMEM" - }, - { - "name": "FWPSRWOMEDU", - "value": "13", - "source": "elco.FWPSRWOMEDU" - }, - { - "name": "FWPSRHHLAT", - "value": "4", - "source": "elco.FWPSRHHLAT" - }, - { - "name": "FWPSRHHRICE", - "value": "28", - "source": "elco.FWPSRHHRICE" - }, - { - "name": "FWPSRANM", - "value": "9", - "source": "elco.FWPSRANM" - }, - { - "name": "FWPSRHBP", - "value": "1", - "source": "elco.FWPSRHBP" - }, - { - "name": "FWPSRDBT", - "value": "0", - "source": "elco.FWPSRDBT" - }, - { - "name": "FWPSRTHY", - "value": "9", - "source": "elco.FWPSRTHY" - }, - { - "name": "FWPSRHGT", - "source": "elco.FWPSRHGT" - }, - { - "name": "FWPSRMUAC", - "value": "47", - "source": "elco.FWPSRMUAC" - }, - { - "name": "FWPSRPHONE", - "value": "1", - "source": "elco.FWPSRPHONE" - }, - { - "name": "FWPSRPHONENUM", - "value": "80990987786", - "source": "elco.FWPSRPHONENUM" - } - ] - } - }, - "serverVersion": 1452682046064 -} \ No newline at end of file diff --git a/opensrp-connector/src/test/resources/form/psrf_form/model.xml b/opensrp-connector/src/test/resources/form/psrf_form/model.xml deleted file mode 100644 index 57859a3d54..0000000000 --- a/opensrp-connector/src/test/resources/form/psrf_form/model.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/opensrp-connector/src/test/resources/form/repeatform/form.json b/opensrp-connector/src/test/resources/form/repeatform/form.json deleted file mode 100644 index 5fd76f37d0..0000000000 --- a/opensrp-connector/src/test/resources/form/repeatform/form.json +++ /dev/null @@ -1,1381 +0,0 @@ -{ - "default_language": "default", - "id_string": "Delivery_Outcome_EngKan", - "children": [ - { - "name": "today", - "type": "today" - }, - { - "name": "case_lmp", - "instance": { - "openmrs_entity_id": "1100282", - "openmrs_entity": "concept" - }, - "type": "hidden" - }, - { - "name": "delivery_date", - "bind": { - "required": "yes", - "constraint": ".<=${today}" - }, - "label": "Delivery date? ಹೆರಿಗೆ ದಿನಾಂಕ?", - "instance": { - "openmrs_entity_id": "2129182", - "openmrs_entity": "concept" - }, - "type": "date" - }, - { - "name": "delivery_reg_date", - "bind": { - "required": "yes", - "constraint": ".<=${today} and .>= ${delivery_date}" - }, - "label": "PNC registration date? ಬಾಣಂತಿ ದಾಖಲಾತಿ ದಿನಾಂಕ?", - "instance": { - "openmrs_entity_id": "encounter_date", - "openmrs_entity": "encounter" - }, - "type": "date" - }, - { - "children": [ - { - "name": "home", - "label": "Home ಮನೆ", - "instance": { - "openmrs_code": "32323213" - } - }, - { - "name": "subcenter", - "label": "Sub Center ಉಪ ಕೇಂದ್ರ", - "instance": { - "openmrs_code": "2321321" - } - }, - { - "name": "phc", - "label": "PHC ಪ್ರಾಥಮಿಕ ಆರೋಗ್ಯ ಕೇಂದ್ರ", - "instance": { - "openmrs_code": "323213" - } - }, - { - "name": "chc", - "label": "CHC ಸಮುದಾಯ ಆರೋಗ್ಯ ಕೇಂದ್ರ", - "instance": { - "openmrs_code": "1213213" - } - }, - { - "name": "sdh", - "label": "SDH ಉಪ ಜಿಲ್ಲಾ ಆಸ್ಪತ್ರೆ", - "instance": { - "openmrs_code": "23123" - } - }, - { - "name": "dh", - "label": "DH ಜಿಲ್ಲಾ ಆಸ್ಪತ್ರೆ", - "instance": { - "openmrs_code": "232113" - } - }, - { - "name": "private_facility", - "label": "Private ಖಾಸಗಿ", - "instance": { - "openmrs_code": "123123" - } - } - ], - "name": "place_delivery", - "bind": { - "required": "yes" - }, - "label": "Place of delivery? ಹೆರಿಗೆಯಾದ ಸ್ಥಳ?", - "instance": { - "openmrs_entity_id": "location_id", - "openmrs_entity": "encounter" - }, - "type": "select one" - }, - { - "name": "name_delivery_facility", - "bind": { - "relevant": "${place_delivery} != 'home'" - }, - "label": "Name of delivery place? ಹೆರಿಗೆಯಾದ ಸ್ಥಳದ ಹೆಸರು?", - "instance": { - "openmrs_entity_id": "4787232", - "openmrs_entity": "concept" - }, - "type": "text" - }, - { - "children": [ - { - "name": "yes", - "label": "Yes ಹೌದು", - "instance": { - "openmrs_code": "1065" - } - }, - { - "name": "no", - "label": "No ಇಲ್ಲ", - "instance": { - "openmrs_code": "1066" - } - } - ], - "name": "only_delivery_facility", - "label": "Is this the only place woman went for delivery? ಹೆರಿಗೆಗೆ ಇದೊಂದೆ ಸ್ಥಳಕ್ಕೆ ಹೋಗಿದ್ದರೆ?", - "instance": { - "openmrs_entity_id": "120009", - "openmrs_entity": "concept" - }, - "type": "select one" - }, - { - "children": [ - { - "name": "home", - "label": "Home ಮನೆ", - "instance": { - "openmrs_code": "32323213" - } - }, - { - "name": "subcenter", - "label": "Sub Center ಉಪ ಕೇಂದ್ರ", - "instance": { - "openmrs_code": "2321321" - } - }, - { - "name": "phc", - "label": "PHC ಪ್ರಾಥಮಿಕ ಆರೋಗ್ಯ ಕೇಂದ್ರ", - "instance": { - "openmrs_code": "323213" - } - }, - { - "name": "chc", - "label": "CHC ಸಮುದಾಯ ಆರೋಗ್ಯ ಕೇಂದ್ರ", - "instance": { - "openmrs_code": "1213213" - } - }, - { - "name": "sdh", - "label": "SDH ಉಪ ಜಿಲ್ಲಾ ಆಸ್ಪತ್ರೆ", - "instance": { - "openmrs_code": "23123" - } - }, - { - "name": "dh", - "label": "DH ಜಿಲ್ಲಾ ಆಸ್ಪತ್ರೆ", - "instance": { - "openmrs_code": "232113" - } - }, - { - "name": "private_facility", - "label": "Private ಖಾಸಗಿ", - "instance": { - "openmrs_code": "123123" - } - } - ], - "name": "addl_delivery_facility", - "bind": { - "relevant": "${only_delivery_facility} = 'no'" - }, - "label": "Where else did she go for delivery? ಹೆರಿಗೆಗೆ ಇನ್ಯಾವ ಸ್ಥಳಕ್ಕೆ ಹೋಗಿದ್ದರೆ?", - "instance": { - "openmrs_entity_id": "124433", - "openmrs_entity": "concept" - }, - "type": "select all that apply" - }, - { - "children": [ - { - "name": "no_staff", - "label": "No staff available for delivery ಹೆರಿಗೆಗೆ ಸಿಬ್ಬಂಧಿಯು ಲಭ್ಯವಿಲ್ಲ", - "instance": { - "openmrs_code": "4123" - } - }, - { - "name": "referred_higher_facility", - "label": "Referred to higher facility ಹೆಚ್ಚಿನ ಸೌಲಭ್ಯಕ್ಕೆ ರೆಫರ್ ಮಾಡಲಾಗಿದೆ", - "instance": { - "openmrs_code": "21312312" - } - }, - { - "name": "lack_of_supplies", - "label": "Lack of supplies ಸರಬರಾಜು ಕೊರತೆ", - "instance": { - "openmrs_code": "134134" - } - }, - { - "name": "no_electricity", - "label": "No electricity ವಿದ್ಯುತ್ ಇಲ್ಲ", - "instance": { - "openmrs_code": "34134134" - } - }, - { - "name": "family_insisted_elsewhere", - "label": "Family insisted on going elsewhere ಕುಟುಂಬಕ್ಕೆ ಬೇರೇಡೆಗೆ ಹೋಗಲು ಒತ್ತಾಯಿಸಿದರು", - "instance": { - "openmrs_code": "341341" - } - }, - { - "name": "no_money", - "label": "Not enough money ಸಾಕಷ್ಟು ಹಣವಿಲ್ಲ", - "instance": { - "openmrs_code": "43434432" - } - }, - { - "name": "others", - "label": "Others ಇತರೆ", - "instance": { - "openmrs_code": "323243224" - } - } - ], - "name": "reasons_addl_delivery_facility", - "bind": { - "relevant": "${only_delivery_facility} = 'no'" - }, - "label": "Select the reasons why more than one place. ಬೇರೆ ಸ್ಥಳಕ್ಕೆ ಹೋಗಿದ್ದಕ್ಕೆ ಕಾರಣವನ್ನು ಆಯ್ಕೆ ಮಾಡಿ.", - "instance": { - "openmrs_entity_id": "100933", - "openmrs_entity": "concept" - }, - "type": "select all that apply" - }, - { - "name": "other_reasons_addl_delivery_facility", - "bind": { - "relevant": "selected(${reasons_addl_delivery_facility}, 'others')" - }, - "label": "Others ಇತರೆ:", - "instance": { - "openmrs_entity_id": "2323233", - "openmrs_entity": "concept" - }, - "type": "text" - }, - { - "children": [ - { - "name": "yes", - "label": "Yes ಹೌದು", - "instance": { - "openmrs_code": "1065" - } - }, - { - "name": "no", - "label": "No ಇಲ್ಲ", - "instance": { - "openmrs_code": "1066" - } - } - ], - "name": "skilled_delivery", - "bind": { - "relevant": "${place_delivery} = 'home'", - "required": "yes" - }, - "label": "Delivery attended by SBA? ತರಬೇತಿ ಹೊಂದಿದ ಹೆರಿಗೆ ಸಹಾಯಕರು ಹೆರಿಗೆಯಲ್ಲಿ ಹಾಜರಿದ್ದರೆ?", - "instance": { - "openmrs_entity_id": "3231212", - "openmrs_entity": "concept" - }, - "type": "select one" - }, - { - "children": [ - { - "name": "normal", - "label": "Normal ಸಾಮಾನ್ಯ", - "instance": { - "openmrs_code": "43123" - } - }, - { - "name": "cesarean", - "label": "Cesarean ಸಿಸೇರಿಯನ್", - "instance": { - "openmrs_code": "3232" - } - }, - { - "name": "instrumental_forcep", - "label": "Instrumental / Forcep ಉಪಕರಣಗಳಿಂದ ಮಾಡುವ ಹೆರಿಗೆ", - "instance": { - "openmrs_code": "4134123" - } - } - ], - "name": "type_delivery", - "label": "Type of delivery? ಯಾವ ವಿಧದ ಹೆರಿಗೆ?", - "instance": { - "openmrs_entity_id": "120009", - "openmrs_entity": "concept" - }, - "type": "select one" - }, - { - "children": [ - { - "name": "live_birth", - "label": "Live Birth ಜೀವಂತ ಜನನ", - "instance": { - "openmrs_code": "38493849" - } - }, - { - "name": "still_birth", - "label": "Still Birth ನಿರ್ಜೀವ ಜನನ", - "instance": { - "openmrs_code": "343434" - } - } - ], - "name": "delivery_outcome", - "bind": { - "required": "yes" - }, - "label": "Delivery outcome? ಹೆರಿಗೆ ಫಲಿತಾಂಶವೇನು?", - "instance": { - "openmrs_entity_id": "124433", - "openmrs_entity": "concept" - }, - "type": "select one" - }, - { - "name": "case_parity", - "instance": { - "openmrs_entity_id": "100933", - "openmrs_entity": "concept" - }, - "type": "hidden" - }, - { - "name": "parity", - "bind": { - "calculate": "${case_parity} + 1" - }, - "instance": { - "openmrs_entity_id": "434343", - "openmrs_entity": "concept" - }, - "type": "calculate" - }, - { - "name": "case_num_livebirths", - "instance": { - "openmrs_entity_id": "34324234", - "openmrs_entity": "concept" - }, - "type": "hidden" - }, - { - "name": "num_livebirths", - "bind": { - "relevant": "${delivery_outcome} = 'live_birth'", - "calculate": "${case_num_livebirths} + 1" - }, - "instance": { - "openmrs_entity_id": "3423423", - "openmrs_entity": "concept" - }, - "type": "calculate" - }, - { - "name": "youngestchild_date_of_birth", - "bind": { - "relevant": "${delivery_outcome} = 'live_birth'", - "calculate": "${delivery_date}" - }, - "instance": { - "openmrs_entity_id": "120009", - "openmrs_entity": "concept" - }, - "type": "calculate" - }, - { - "name": "youngestchild_age", - "bind": { - "calculate": "int((${today} - ${youngestchild_date_of_birth}) div 30)" - }, - "instance": { - "openmrs_entity_id": "124433", - "openmrs_entity": "concept" - }, - "type": "calculate" - }, - { - "name": "case_num_stillbirths", - "instance": { - "openmrs_entity_id": "100933", - "openmrs_entity": "concept" - }, - "type": "hidden" - }, - { - "name": "num_stillbirths", - "bind": { - "relevant": "${delivery_outcome} = 'still_birth'", - "calculate": "${case_num_stillbirths} + 1" - }, - "instance": { - "openmrs_entity_id": "3432434", - "openmrs_entity": "concept" - }, - "type": "calculate" - }, - { - "children": [ - { - "children": [ - { - "name": "infection_during_preg", - "label": "Infection during pregnancy ಗರ್ಭಾವಸ್ಥೆಯಲ್ಲಿ ಸೋಂಕು", - "instance": { - "openmrs_code": "2323" - } - }, - { - "name": "gest_hypertension", - "label": "Gestational hypertension ಗರ್ಭಾಧಾರಣೆಯಲ್ಲಿನ ಅಧಿಕ ರಕ್ತದೊತ್ತಡ", - "instance": { - "openmrs_code": "2323" - } - }, - { - "name": "gest_diabetes", - "label": "Gestational diabetes ಗರ್ಭಾಧಾರಣೆಯಲ್ಲಿನ ಸಕ್ಕರೆ ಕಾಯಿಲೆ", - "instance": { - "openmrs_code": "23213" - } - }, - { - "name": "fetal_growth_restriction", - "label": "Fetal growth restriction ಭ್ರೂಣದ ಬೆಳವಣಿಗೆಯಲ್ಲಿ ನಿರ್ಬಂಧ", - "instance": { - "openmrs_code": "23123" - } - }, - { - "name": "birth_defects", - "label": "Birth defects ಜನ್ಮ ನ್ಯೂನ್ಯತೆಗಳು", - "instance": { - "openmrs_code": "23213" - } - }, - { - "name": "unknown", - "label": "Cause not identified ಕಾರಣವನ್ನು ಗುರುತಿಸಲ್ಪಟ್ಟಿಲ್ಲ", - "instance": { - "openmrs_code": "2323" - } - }, - { - "name": "others", - "label": "Others ಇತರೆ", - "instance": { - "openmrs_code": "23213" - } - } - ], - "name": "cause_of_still_birth", - "label": "Cause of still birth? ನಿರ್ಜೀವ ಜನನದ ಕಾರಣಗಳು?", - "instance": { - "openmrs_entity_parent": "65435", - "openmrs_entity_id": "4323232", - "openmrs_entity": "concept" - }, - "type": "select one" - }, - { - "children": [ - { - "name": "yes", - "label": "Yes ಹೌದು", - "instance": { - "openmrs_code": "1065" - } - }, - { - "name": "no", - "label": "No ಇಲ್ಲ", - "instance": { - "openmrs_code": "1066" - } - } - ], - "name": "woman_survived", - "bind": { - "required": "yes" - }, - "label": "Woman survived childbirth? ಮಗುವಿನ ಜನನದ ನಂತರ ಮಹಿಳೆ ಬದುಕುಳಿದರೆ?", - "instance": { - "openmrs_entity_parent": "65435", - "openmrs_entity_id": "100009", - "openmrs_entity": "concept" - }, - "type": "select one" - } - ], - "name": "still_birth_group", - "bind": { - "relevant": "${delivery_outcome} = 'still_birth'" - }, - "instance": { - "openmrs_entity_id": "65435", - "openmrs_entity": "concept" - }, - "type": "group" - }, - { - "children": [ - { - "children": [ - { - "children": [ - { - "name": "male", - "label": "Male ಗಂಡು", - "instance": { - "openmrs_code": "21321" - } - }, - { - "name": "female", - "label": "Female ಹೆಣ್ಣು", - "instance": { - "openmrs_code": "312312" - } - } - ], - "name": "sex_child", - "bind": { - "required": "yes" - }, - "label": "Sex of child? ಮಗುವಿನ ಲಿಂಗ?", - "instance": { - "openmrs_entity_id": "gender", - "openmrs_entity": "patient" - }, - "type": "select one" - }, - { - "name": "sex_child_female", - "bind": { - "calculate": "if(${sex_child} = 'female', 1, 0)" - }, - "type": "calculate" - }, - { - "name": "sex_child_male", - "bind": { - "calculate": "if(${sex_child} = 'male', 1, 0)" - }, - "type": "calculate" - }, - { - "name": "birthweight", - "label": "Child birthweight (in kgs)? ಹುಟ್ಟಿದ ಮಗುವಿನ ತೂಕ (ಕೆ.ಜಿ. ಗಳಲ್ಲಿ)?", - "instance": { - "openmrs_entity_id": "323232", - "openmrs_entity": "concept" - }, - "type": "decimal" - }, - { - "control": { - "appearance": "minimal" - }, - "children": [ - { - "name": "a_positive", - "label": "A+", - "instance": { - "openmrs_code": "34324" - } - }, - { - "name": "a_negative", - "label": "A-", - "instance": { - "openmrs_code": "34134" - } - }, - { - "name": "b_positive", - "label": "B+", - "instance": { - "openmrs_code": "1321312" - } - }, - { - "name": "b_negative", - "label": "B-", - "instance": { - "openmrs_code": "43434" - } - }, - { - "name": "ab_positive", - "label": "AB+", - "instance": { - "openmrs_code": "12323214" - } - }, - { - "name": "ab_negative", - "label": "AB-", - "instance": { - "openmrs_code": "11343141" - } - }, - { - "name": "o_positive", - "label": "O+", - "instance": { - "openmrs_code": "134343" - } - }, - { - "name": "o_negative", - "label": "O-", - "instance": { - "openmrs_code": "432434" - } - } - ], - "name": "child_blood_group", - "label": "Child blood group? ಮಗುವಿನ ರಕ್ತದ ಗುಂಪು?", - "instance": { - "openmrs_entity_id": "232112", - "openmrs_entity": "concept" - }, - "type": "select one" - }, - { - "children": [ - { - "name": "bcg", - "label": "BCG ಬಿ.ಸಿ.ಜಿ", - "instance": { - "openmrs_code": "23123" - } - }, - { - "name": "opv_0", - "label": "OPV 0 ಒ.ಪಿ.ವಿ 0", - "instance": { - "openmrs_code": "12312" - } - }, - { - "name": "hepb_0", - "label": "Hep B 0 ಹೆಪಟೆಟಿಸ್ ಬಿ 0", - "instance": { - "openmrs_code": "213123" - } - } - ], - "name": "immunizations_atbirth", - "label": "Immunizations provided at birth? ಹುಟ್ಟಿದ ಮಗುವಿಗೆ ಇಮ್ಯುನೈಜೇಷನ್ ನೀಡಲಾಯಿತೆ?", - "instance": { - "openmrs_entity_id": "199277", - "openmrs_entity": "concept" - }, - "type": "select all that apply" - }, - { - "name": "case_hepb", - "instance": { - "openmrs_entity_id": "100285", - "openmrs_entity": "concept" - }, - "type": "hidden" - }, - { - "children": [ - { - "name": "yes", - "label": "Yes ಹೌದು", - "instance": { - "openmrs_code": "1065" - } - }, - { - "name": "no", - "label": "No ಇಲ್ಲ", - "instance": { - "openmrs_code": "1066" - } - } - ], - "name": "hepb_prophylaxis_provided", - "bind": { - "relevant": "${case_hepb} != ''" - }, - "label": "Hep B prophylaxis provided? ಹೆಪಟೆಟಿಸ್ ಬಿ ರೋಗನಿರೋಧಕ ಚಿಕಿತ್ಸೆ ನೀಡಲಾಗಿದೆತೇ?", - "instance": { - "openmrs_entity_id": "3321323", - "openmrs_entity": "concept" - }, - "type": "select one" - }, - { - "name": "lbw", - "bind": { - "calculate": "if(${birthweight} >= 1.5 and ${birthweight} < 2.5, 'Low_Birth_Weight','')" - }, - "instance": { - "openmrs_entity_id": "1232132", - "openmrs_entity": "concept" - }, - "type": "calculate" - }, - { - "name": "vlbw", - "bind": { - "calculate": "if(${birthweight} < 1.5, 'Very_Low_Birth_Weight', '')" - }, - "instance": { - "openmrs_entity_id": "232133", - "openmrs_entity": "concept" - }, - "type": "calculate" - }, - { - "name": "num_preg_days", - "bind": { - "calculate": "int(date(${delivery_date}) - date(${case_lmp}))" - }, - "instance": { - "openmrs_entity_id": "232323", - "openmrs_entity": "concept" - }, - "type": "calculate" - }, - { - "name": "premature", - "bind": { - "calculate": "if(${num_preg_days} < 259, 'Premature', '')" - }, - "instance": { - "openmrs_entity_id": "232323", - "openmrs_entity": "concept" - }, - "type": "calculate" - }, - { - "name": "premature_message1", - "bind": { - "relevant": "${premature} != ''" - }, - "label": "Baby is premature! Advise kangaroo care and rooming in. ಅವಧಿಗೆ ಮುನ್ನ ಜನಿಸಿದ ಮಗು! ಕಾಂಗರೋ ಆರೈಕೆ ಮತ್ತು ಒಂದೇ ರೂಮಿನಲ್ಲಿಡುವಂತೆ ಸಲಹೆ ನೀಡಿ.", - "type": "note" - }, - { - "name": "is_child_high_risk1", - "bind": { - "calculate": "if(${premature} != '' or ${lbw} != '' or ${vlbw} != '', 'yes', 'no')" - }, - "instance": { - "openmrs_entity_id": "342343", - "openmrs_entity": "concept" - }, - "type": "calculate" - }, - { - "name": "child_high_risk_reasons", - "bind": { - "calculate": "concat(${premature}, ' ', ${lbw}, ' ', ${vlbw})" - }, - "instance": { - "openmrs_entity_id": "423434", - "openmrs_entity": "concept" - }, - "type": "calculate" - }, - { - "name": "high_risk_note_child", - "bind": { - "relevant": "${is_child_high_risk1} = 'yes'" - }, - "label": "Child is at risk because of, ಈಗ ಮಗು ಅಪಾಯದಲ್ಲಿದೆ ಏಕೆಂದರೆ: ${child_high_risk_reasons}", - "type": "note" - }, - { - "children": [ - { - "name": "yes", - "label": "Yes ಹೌದು", - "instance": { - "openmrs_code": "1065" - } - }, - { - "name": "no", - "label": "No ಇಲ್ಲ", - "instance": { - "openmrs_code": "1066" - } - } - ], - "name": "is_child_high_risk", - "bind": { - "required": "yes" - }, - "label": "Do you want to mark child as HR (High Risk)? \nನೀವು ಮಗುವನ್ನು HR (ಹೆಚ್ಚು ಅಪಾಯವಿದೆ) ಎಂದು ಗುರುತಿಸಲು ಬಯಸುವಿರಾ?", - "instance": { - "openmrs_entity_id": "4342343", - "openmrs_entity": "concept" - }, - "type": "select one" - }, - { - "name": "addl_pnc_visit_message", - "bind": { - "relevant": "${is_child_high_risk1} = 'yes'" - }, - "label": "Child needs 3 more PNC visits on days 14, 21, and 28 because of, 14, 21 ಮತ್ತು 28 ನೇ ದಿನಗಳೊಂದು ಮಗುವಿಗೆ 3 ಹೆಚ್ಚಿನ ಭೇಟಿಯ ಅಗತ್ಯವಿದೆ, ಏಕೆಂದರೆ: ${child_high_risk_reasons}", - "type": "note" - } - ], - "name": "child", - "label": "Please enter birth information for each child born. ಜನನವಾದ ಪ್ರತಿ ಮಗುವಿನ ಜನ್ಮ ಮಾಹಿತಿಯನ್ನು ದಯವಿಟ್ಟು ನಮೂದಿಸಿ.", - "instance": { - "openmrs_entity_id": "100029", - "openmrs_entity": "concept" - }, - "type": "repeat" - }, - { - "children": [ - { - "name": "yes", - "label": "Yes ಹೌದು", - "instance": { - "openmrs_code": "1065" - } - }, - { - "name": "no", - "label": "No ಇಲ್ಲ", - "instance": { - "openmrs_code": "1066" - } - } - ], - "name": "mother_survived", - "bind": { - "required": "yes" - }, - "label": "Mother survived childbirth? ಮಗುವಿನ ಜನನದ ನಂತರ ಮಹಿಳೆ ಬದುಕುಳಿದರೆ?", - "instance": { - "openmrs_entity_id": "343434", - "openmrs_entity": "concept" - }, - "type": "select one" - }, - { - "children": [ - { - "name": "yes", - "label": "Yes ಹೌದು", - "instance": { - "openmrs_code": "1065" - } - }, - { - "name": "no", - "label": "No ಇಲ್ಲ", - "instance": { - "openmrs_code": "1066" - } - } - ], - "name": "breastfeeding_postbirth", - "bind": { - "relevant": "${mother_survived} = 'yes'", - "required": "yes" - }, - "label": "Was breastfeeding started within 1 hour of birth? ಹುಟ್ಟಿದ ಒಂದು ಗಂಟೆಯ ಒಳಗೆ ಎದೆಹಾಲು ನೀಡಲಾಯಿತೆ?", - "instance": { - "openmrs_entity_id": "434343", - "openmrs_entity": "concept" - }, - "type": "select one" - } - ], - "name": "live_birth_group", - "bind": { - "relevant": "${delivery_outcome} = 'live_birth'" - }, - "type": "group" - }, - { - "name": "case_num_livingchildren", - "instance": { - "openmrs_entity_id": "434344", - "openmrs_entity": "concept" - }, - "type": "hidden" - }, - { - "name": "num_children_born", - "bind": { - "calculate": "if(${delivery_outcome} = 'still_birth', 0, count(${sex_child}))" - }, - "instance": { - "openmrs_entity_id": "43432", - "openmrs_entity": "concept" - }, - "type": "calculate" - }, - { - "name": "num_livingchildren", - "bind": { - "calculate": "${case_num_livingchildren} + ${num_children_born}" - }, - "instance": { - "openmrs_entity_id": "54541", - "openmrs_entity": "concept" - }, - "type": "calculate" - }, - { - "name": "case_numlivingchildren_female", - "instance": { - "openmrs_entity_id": "57467", - "openmrs_entity": "concept" - }, - "type": "hidden" - }, - { - "name": "num_female_children_born", - "bind": { - "calculate": "sum(${sex_child_female})" - }, - "instance": { - "openmrs_entity_id": "687832", - "openmrs_entity": "concept" - }, - "type": "calculate" - }, - { - "name": "numlivingchildren_female", - "bind": { - "calculate": "${case_numlivingchildren_female} + ${num_female_children_born}" - }, - "instance": { - "openmrs_entity_id": "098343", - "openmrs_entity": "concept" - }, - "type": "calculate" - }, - { - "name": "case_numlivingchildren_male", - "instance": { - "openmrs_entity_id": "98664", - "openmrs_entity": "concept" - }, - "type": "hidden" - }, - { - "name": "num_male_children_born", - "bind": { - "calculate": "sum(${sex_child_male})" - }, - "instance": { - "openmrs_entity_id": "4343656", - "openmrs_entity": "concept" - }, - "type": "calculate" - }, - { - "name": "numlivingchildren_male", - "bind": { - "calculate": "${case_numlivingchildren_male} + ${num_male_children_born}" - }, - "instance": { - "openmrs_entity_id": "342325", - "openmrs_entity": "concept" - }, - "type": "calculate" - }, - { - "children": [ - { - "children": [ - { - "name": "prolonged_obstructed_labor", - "label": "Prolonged / obstructed labor ದೀರ್ಘಕಾಲೀನ / ಅಡಚಣೆಯನ್ನು ತಂದೊಡ್ಡುವ ಹೆರಿಗೆ ನೋವು", - "instance": { - "openmrs_code": "23123" - } - }, - { - "name": "hypertension_fits", - "label": "Severe hypertension / fits ತೀವ್ರತರವಾದ ಅಧಿಕ ರಕ್ತದೊತ್ತಡ / ಮೂರ್ಚೆರೋಗ", - "instance": { - "openmrs_code": "23213" - } - }, - { - "name": "bleeding_hemorrhage", - "label": "Bleeding / hemorrhage ರಕ್ತಸ್ರಾವ", - "instance": { - "openmrs_code": "23123" - } - }, - { - "name": "fever_infection", - "label": "High fever / infection ಅಧಿಕ ಜ್ವರ / ಸೊಂಕು", - "instance": { - "openmrs_code": "2323" - } - }, - { - "name": "cause_not_identified", - "label": "Cause not identified ಕಾರಣವನ್ನು ಗುರುತಿಸಲ್ಪಟ್ಟಿಲ್ಲ", - "instance": { - "openmrs_code": "23213" - } - }, - { - "name": "others", - "label": "Others ಇತರೆ", - "instance": { - "openmrs_code": "23213" - } - } - ], - "name": "maternal_death_cause", - "label": "Cause of maternal death? ತಾಯಿಯ ಮರಣಕ್ಕೆ ಕಾರಣಗಳು?", - "instance": { - "openmrs_entity_id": "43434", - "openmrs_entity": "concept" - }, - "type": "select one" - }, - { - "name": "other_maternal_death_cause", - "bind": { - "relevant": "${maternal_death_cause} = 'others'" - }, - "label": "Others ಇತರೆ:", - "instance": { - "openmrs_entity_id": "43221", - "openmrs_entity": "concept" - }, - "type": "text" - } - ], - "name": "maternal_death_group", - "bind": { - "relevant": "(${woman_survived} = 'no' or ${mother_survived} = 'no')" - }, - "type": "group" - }, - { - "children": [ - { - "name": "case_w_rh_negative", - "instance": { - "openmrs_entity_id": "4324234", - "openmrs_entity": "concept" - }, - "type": "hidden" - }, - { - "children": [ - { - "name": "yes", - "label": "Yes ಹೌದು", - "instance": { - "openmrs_code": "1065" - } - }, - { - "name": "no", - "label": "No ಇಲ್ಲ", - "instance": { - "openmrs_code": "1066" - } - } - ], - "name": "rh_injection_given", - "bind": { - "relevant": "${case_w_rh_negative} != ''" - }, - "label": "Rh injection given to woman? ಮಹಿಳೆಗೆ Rh ಚುಚ್ಚುಮದ್ದು ನೀಡಲಾಯಿತೆ?", - "instance": { - "openmrs_entity_id": "32323", - "openmrs_entity": "concept" - }, - "type": "select one" - }, - { - "children": [ - { - "name": "yes", - "label": "Yes ಹೌದು", - "instance": { - "openmrs_code": "1065" - } - }, - { - "name": "no", - "label": "No ಇಲ್ಲ", - "instance": { - "openmrs_code": "1066" - } - } - ], - "name": "had_delivery_complications", - "label": "Were there delivery complications? ಹೆರಿಗೆಯಲ್ಲಿ ತೊಡಕುಂಟಾಯಿತೆ?", - "instance": { - "openmrs_entity_id": "233234", - "openmrs_entity": "concept" - }, - "type": "select one" - }, - { - "children": [ - { - "name": "hemorrhage", - "label": "Hemorrhage ರಕ್ತಸ್ರಾವ", - "instance": { - "openmrs_code": "4123213" - } - }, - { - "name": "placenta_previa", - "label": "Placenta previa ಹಿಂದಿನ ಗರ್ಭದಲ್ಲಿ ಮಾಸು ಮುಂದಿರುವುದು", - "instance": { - "openmrs_code": "2131413" - } - }, - { - "name": "cord_prolapse", - "label": "Cord prolapse ಬಳ್ಳಿಯ ಸರಿತ", - "instance": { - "openmrs_code": "4134123" - } - }, - { - "name": "prolonged_labor", - "label": "Prolonged / obstructed labor ದೀರ್ಘಕಾಲೀನ / ಅಡಚಣೆಯನ್ನು ತಂದೊಡ್ಡುವ ಹೆರಿಗೆ ನೋವು", - "instance": { - "openmrs_code": "213124123" - } - }, - { - "name": "abnormal_presentation", - "label": "Abnormal presentation ಅಪಸಾಮಾನ್ಯ ಪ್ರಸ್ತುತಿ", - "instance": { - "openmrs_code": "14123123" - } - }, - { - "name": "perineal_tear", - "label": "Perineal tear (2, 3, or 4 degree)", - "instance": { - "openmrs_code": "23123" - } - }, - { - "name": "others", - "label": "Others ಇತರೆ", - "instance": { - "openmrs_code": "32123" - } - } - ], - "name": "complications", - "bind": { - "relevant": "${had_delivery_complications} = 'yes'" - }, - "label": "What delivery complications were there? ಯಾವ ಹೆರಿಗೆ ತೊಂದರೆಗಳು ಉಂಟಾದವು?", - "instance": { - "openmrs_entity_id": "25343", - "openmrs_entity": "concept" - }, - "type": "select all that apply" - }, - { - "name": "delivery_complications_other", - "bind": { - "relevant": "selected(${complications}, 'others')" - }, - "label": "Others ಇತರೆ:", - "instance": { - "openmrs_entity_id": "2355435", - "openmrs_entity": "concept" - }, - "type": "text" - } - ], - "name": "woman_survived_group", - "bind": { - "relevant": "(${woman_survived} = 'yes' or ${mother_survived} = 'yes')" - }, - "type": "group" - }, - { - "name": "case_is_high_risk_till_pnc_close", - "instance": { - "openmrs_entity_id": "8768767", - "openmrs_entity": "concept" - }, - "type": "hidden" - }, - { - "name": "case_is_high_risk_till_pnc_close_reason", - "instance": { - "openmrs_entity_id": "676576", - "openmrs_entity": "concept" - }, - "type": "hidden" - }, - { - "name": "case_anaemic_status", - "instance": { - "openmrs_entity_id": "76767", - "openmrs_entity": "concept" - }, - "type": "hidden" - }, - { - "name": "case_pih", - "instance": { - "openmrs_entity_id": "36787", - "openmrs_entity": "concept" - }, - "type": "hidden" - }, - { - "name": "case_pre_eclampsia", - "instance": { - "openmrs_entity_id": "376784", - "openmrs_entity": "concept" - }, - "type": "hidden" - }, - { - "name": "case_jaundice", - "instance": { - "openmrs_entity_id": "343434", - "openmrs_entity": "concept" - }, - "type": "hidden" - }, - { - "name": "is_high_risk1", - "bind": { - "calculate": "if(${case_is_high_risk_till_pnc_close} = 'yes' or ${case_anaemic_status} != '' or ${case_pih} != '' or ${case_pre_eclampsia} != '' or ${case_jaundice} != '', 'yes', 'no')" - }, - "instance": { - "openmrs_entity_id": "4746767", - "openmrs_entity": "concept" - }, - "type": "calculate" - }, - { - "name": "high_risk_reason", - "bind": { - "calculate": "concat(${case_is_high_risk_till_pnc_close_reason}, ' ', ${case_anaemic_status}, ' ', ${case_pih}, ' ', ${case_pre_eclampsia}, ' ', ${case_jaundice})" - }, - "instance": { - "openmrs_entity_id": "5656", - "openmrs_entity": "concept" - }, - "type": "calculate" - }, - { - "name": "high_risk_note_mother", - "bind": { - "relevant": "${is_high_risk1} = 'yes'" - }, - "label": "Woman is still at risk because of, ಮಹಿಳೆಯು ಈಗಲೂ ಅಪಾಯದಲ್ಲಿದ್ದಾಳೆ ಏಕೆಂದರೆ: ${high_risk_reason}", - "type": "note" - }, - { - "children": [ - { - "name": "yes", - "label": "Yes ಹೌದು", - "instance": { - "openmrs_code": "1065" - } - }, - { - "name": "no", - "label": "No ಇಲ್ಲ", - "instance": { - "openmrs_code": "1066" - } - } - ], - "name": "is_high_risk", - "bind": { - "relevant": "(${woman_survived} = 'yes' or ${mother_survived} = 'yes')", - "required": "yes" - }, - "label": "Do you want to mark woman as HR (High Risk)?\nನೀವು ಮಹಿಳೆಯನ್ನು HR (ಹೆಚ್ಚು ಅಪಾಯವಿದೆ) ಎಂದು ಗುರುತಿಸಲು ಬಯಸುವಿರಾ?", - "instance": { - "openmrs_entity_id": "424253", - "openmrs_entity": "concept" - }, - "type": "select one" - }, - { - "control": { - "bodyless": true - }, - "children": [ - { - "name": "instanceID", - "bind": { - "readonly": "true()", - "calculate": "concat('uuid:', uuid())" - }, - "type": "calculate" - } - ], - "name": "meta", - "type": "group" - } - ], - "instance": { - "encounter_type": "PNC Registration" - }, - "version": "201504300627", - "type": "survey", - "name": "PNC_Registration_EngKan", - "sms_keyword": "Delivery_Outcome_EngKan", - "title": "PNC Registration" -} \ No newline at end of file diff --git a/opensrp-connector/src/test/resources/form/repeatform/form_definition.json b/opensrp-connector/src/test/resources/form/repeatform/form_definition.json deleted file mode 100644 index c64ffdc42f..0000000000 --- a/opensrp-connector/src/test/resources/form/repeatform/form_definition.json +++ /dev/null @@ -1,315 +0,0 @@ -{ - "form_data_definition_version": "5", - "form": { - "bind_type": "mother", - "default_bind_path": "/model/instance/PNC_Registration_EngKan/", - "fields": [ - { - "name": "id", - "shouldLoadValue": true - }, - { - "name": "ecId", - "shouldLoadValue": true, - "source": "mother.eligible_couple.id" - }, - { - "name": "referenceDate", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_lmp" - }, - { - "name": "referenceDate", - "bind": "/model/instance/PNC_Registration_EngKan/delivery_date" - }, - { - "name": "deliveryRegistrationDate", - "bind": "/model/instance/PNC_Registration_EngKan/delivery_reg_date" - }, - { - "name": "deliveryPlace", - "bind": "/model/instance/PNC_Registration_EngKan/place_delivery" - }, - { - "name": "deliveryFacilityName", - "bind": "/model/instance/PNC_Registration_EngKan/name_delivery_facility" - }, - { - "name": "isThisOnlyDeliveryFacility", - "bind": "/model/instance/PNC_Registration_EngKan/only_delivery_facility" - }, - { - "name": "additionalDeliveryFacility", - "bind": "/model/instance/PNC_Registration_EngKan/addl_delivery_facility" - }, - { - "name": "reasonsForAdditionalDeliveryFacility", - "bind": "/model/instance/PNC_Registration_EngKan/reasons_addl_delivery_facility" - }, - { - "name": "otherReasonsForAdditionalDeliveryFacility", - "bind": "/model/instance/PNC_Registration_EngKan/other_reasons_addl_delivery_facility" - }, - { - "name": "isSkilledDelivery", - "bind": "/model/instance/PNC_Registration_EngKan/skilled_delivery" - }, - { - "name": "deliveryType", - "bind": "/model/instance/PNC_Registration_EngKan/type_delivery" - }, - { - "name": "deliveryOutcome", - "bind": "/model/instance/PNC_Registration_EngKan/delivery_outcome" - }, - { - "name": "parity", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_parity", - "source": "mother.eligible_couple.parity" - }, - { - "name": "parity", - "bind": "/model/instance/PNC_Registration_EngKan/parity", - "source": "mother.eligible_couple.parity" - }, - { - "name": "numberOfLiveBirths", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_num_livebirths", - "source": "mother.eligible_couple.numberOfLiveBirths" - }, - { - "name": "numberOfLiveBirths", - "bind": "/model/instance/PNC_Registration_EngKan/num_livebirths", - "source": "mother.eligible_couple.numberOfLiveBirths" - }, - { - "name": "numberOfStillBirths", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_num_stillbirths", - "source": "mother.eligible_couple.numberOfStillBirths" - }, - { - "name": "numberOfStillBirths", - "bind": "/model/instance/PNC_Registration_EngKan/num_stillbirths", - "source": "mother.eligible_couple.numberOfStillBirths" - }, - { - "name": "causeOfStillBirth", - "bind": "/model/instance/PNC_Registration_EngKan/still_birth_group/cause_of_still_birth" - }, - { - "name": "didWomanSurvive", - "bind": "/model/instance/PNC_Registration_EngKan/still_birth_group/woman_survived" - }, - { - "name": "didMotherSurvive", - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/mother_survived" - }, - { - "name": "didBreastfeedingStart", - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/breastfeeding_postbirth" - }, - { - "name": "maternalDeathCause", - "bind": "/model/instance/PNC_Registration_EngKan/maternal_death_group/maternal_death_cause" - }, - { - "name": "otherMaternalDeathCause", - "bind": "/model/instance/PNC_Registration_EngKan/maternal_death_group/other_maternal_death_cause" - }, - { - "name": "isRHNegative", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/woman_survived_group/case_w_rh_negative" - }, - { - "name": "isRHInjectionGiven", - "bind": "/model/instance/PNC_Registration_EngKan/woman_survived_group/rh_injection_given" - }, - { - "name": "hadDeliveryComplications", - "bind": "/model/instance/PNC_Registration_EngKan/woman_survived_group/had_delivery_complications" - }, - { - "name": "deliveryComplications", - "bind": "/model/instance/PNC_Registration_EngKan/woman_survived_group/complications" - }, - { - "name": "otherDeliveryComplications", - "bind": "/model/instance/PNC_Registration_EngKan/woman_survived_group/delivery_complications_other" - }, - { - "name": "isHighRiskTillPNCClose", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_is_high_risk_till_pnc_close" - }, - { - "name": "highRiskTillPNCCloseReason", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_is_high_risk_till_pnc_close_reason" - }, - { - "name": "anemicStatus", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_anaemic_status" - }, - { - "name": "pih", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_pih" - }, - { - "name": "preEclampsia", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_pre_eclampsia" - }, - { - "name": "jaundice", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_jaundice" - }, - { - "name": "isHighRisk", - "bind": "/model/instance/PNC_Registration_EngKan/is_high_risk" - }, - { - "name": "isBirthPlanningDone", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_birth_planning" - }, - { - "name": "highRiskReason", - "bind": "/model/instance/PNC_Registration_EngKan/high_risk_reason" - }, - { - "name": "submissionDate", - "bind": "/model/instance/PNC_Registration_EngKan/today" - }, - { - "name": "type", - "value": "PNC", - "source": "mother.type" - }, - { - "name": "numberOfLivingChildren", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_num_livingchildren", - "source": "mother.eligible_couple.numberOfLivingChildren" - }, - { - "name": "numberOfLivingChildren", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/num_livingchildren", - "source": "mother.eligible_couple.numberOfLivingChildren" - }, - { - "name": "numberOfChildrenBorn", - "bind": "/model/instance/PNC_Registration_EngKan/num_children_born" - }, - { - "name": "numberOfFemaleChildrenBorn", - "bind": "/model/instance/PNC_Registration_EngKan/num_female_children_born" - }, - { - "name": "numberOfMaleChildrenBorn", - "bind": "/model/instance/PNC_Registration_EngKan/num_male_children_born" - }, - { - "name": "numberOfLivingFemaleChild", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_numlivingchildren_female", - "source": "mother.eligible_couple.numberOfLivingChildrenFemale" - }, - { - "name": "numberOfLivingFemaleChild", - "bind": "/model/instance/PNC_Registration_EngKan/numlivingchildren_female", - "source": "mother.eligible_couple.numberOfLivingChildrenFemale" - }, - { - "name": "numberOfLivingMaleChild", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_numlivingchildren_male", - "source": "mother.eligible_couple.numberOfLivingMaleChild" - }, - { - "name": "numberOfLivingMaleChild", - "bind": "/model/instance/PNC_Registration_EngKan/numlivingchildren_male", - "source": "mother.eligible_couple.numberOfLivingMaleChild" - }, - { - "name": "youngestChildDOB", - "bind": "/model/instance/PNC_Registration_EngKan/youngestchild_date_of_birth", - "source": "mother.eligible_couple.youngestChildDOB" - }, - { - "name": "youngestChildAge", - "bind": "/model/instance/PNC_Registration_EngKan/youngestchild_age", - "source": "mother.eligible_couple.youngestChildAge" - } - ], - "sub_forms": [ - { - "name": "child_registration", - "bind_type": "child", - "default_bind_path": "/model/instance/PNC_Registration_EngKan/live_birth_group/child", - "fields": [ - { - "name": "id", - "shouldLoadValue": true - }, - { - "name": "gender", - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/child/sex_child" - }, - { - "name": "weight", - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/child/birthweight" - }, - { - "name": "bloodGroup", - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/child/child_blood_group" - }, - { - "name": "immunizationsGiven", - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/child/immunizations_atbirth" - }, - { - "name": "hepB", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/child/case_hepb" - }, - { - "name": "isHepBProphylaxisProvided", - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/child/hepb_prophylaxis_provided" - }, - { - "name": "isChildHighRisk1", - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/child/is_child_high_risk1" - }, - { - "name": "childHighRiskReasons", - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/child/child_high_risk_reasons" - }, - { - "name": "isChildHighRisk", - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/child/is_child_high_risk" - }, - { - "name": "lbw", - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/child/lbw" - }, - { - "name": "vlbw", - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/child/vlbw" - }, - { - "name": "premature", - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/child/premature" - } - ] - } - ] - } -} diff --git a/opensrp-connector/src/test/resources/form/repeatform/form_submission.json b/opensrp-connector/src/test/resources/form/repeatform/form_submission.json deleted file mode 100644 index 446e64adda..0000000000 --- a/opensrp-connector/src/test/resources/form/repeatform/form_submission.json +++ /dev/null @@ -1,452 +0,0 @@ -{ - "anmId": "admin", - "clientVersion": "1426830449320", - "entityId": "b716d938-1aea-40ae-a081-9ddddddcccc9", - "formDataDefinitionVersion": "5", - "formName": "repeatform", - "formInstance": { - "form_data_definition_version": "5", - "form": { - "bind_type": "mother", - "default_bind_path": "/model/instance/PNC_Registration_EngKan/", - "fields": [ - { - "name": "id", - "shouldLoadValue": true, - "source": "mother.id", - "value": "7efb9e31-0e26-496e-bd16-e09a3b0d1a31" - }, - { - "name": "ecId", - "shouldLoadValue": true, - "source": "mother.eligible_couple.id", - "value": "aa786612-e7a8-4fea-b733-3de4d898f4d6" - }, - { - "name": "referenceDate", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_lmp", - "source": "mother.referenceDate", - "value": "2014-02-20" - }, - { - "name": "referenceDate", - "bind": "/model/instance/PNC_Registration_EngKan/delivery_date", - "source": "mother.referenceDate", - "value": "2015-02-20" - }, - { - "name": "deliveryRegistrationDate", - "bind": "/model/instance/PNC_Registration_EngKan/delivery_reg_date", - "source": "mother.deliveryRegistrationDate", - "value": "2015-03-20" - }, - { - "name": "deliveryPlace", - "bind": "/model/instance/PNC_Registration_EngKan/place_delivery", - "source": "mother.deliveryPlace", - "value": "home" - }, - { - "name": "deliveryFacilityName", - "bind": "/model/instance/PNC_Registration_EngKan/name_delivery_facility", - "source": "mother.deliveryFacilityName" - }, - { - "name": "isThisOnlyDeliveryFacility", - "bind": "/model/instance/PNC_Registration_EngKan/only_delivery_facility", - "source": "mother.isThisOnlyDeliveryFacility", - "value": "yes" - }, - { - "name": "additionalDeliveryFacility", - "bind": "/model/instance/PNC_Registration_EngKan/addl_delivery_facility", - "source": "mother.additionalDeliveryFacility" - }, - { - "name": "reasonsForAdditionalDeliveryFacility", - "bind": "/model/instance/PNC_Registration_EngKan/reasons_addl_delivery_facility", - "source": "mother.reasonsForAdditionalDeliveryFacility" - }, - { - "name": "otherReasonsForAdditionalDeliveryFacility", - "bind": "/model/instance/PNC_Registration_EngKan/other_reasons_addl_delivery_facility", - "source": "mother.otherReasonsForAdditionalDeliveryFacility" - }, - { - "name": "isSkilledDelivery", - "bind": "/model/instance/PNC_Registration_EngKan/skilled_delivery", - "source": "mother.isSkilledDelivery", - "value": "yes" - }, - { - "name": "deliveryType", - "bind": "/model/instance/PNC_Registration_EngKan/type_delivery", - "source": "mother.deliveryType", - "value": "normal" - }, - { - "name": "deliveryOutcome", - "bind": "/model/instance/PNC_Registration_EngKan/delivery_outcome", - "source": "mother.deliveryOutcome", - "value": "live_birth" - }, - { - "name": "parity", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_parity", - "source": "mother.eligible_couple.parity", - "value": "0" - }, - { - "name": "parity", - "bind": "/model/instance/PNC_Registration_EngKan/parity", - "source": "mother.eligible_couple.parity", - "value": "1" - }, - { - "name": "numberOfLiveBirths", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_num_livebirths", - "source": "mother.eligible_couple.numberOfLiveBirths", - "value": "0" - }, - { - "name": "numberOfLiveBirths", - "bind": "/model/instance/PNC_Registration_EngKan/num_livebirths", - "source": "mother.eligible_couple.numberOfLiveBirths", - "value": "1" - }, - { - "name": "numberOfStillBirths", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_num_stillbirths", - "source": "mother.eligible_couple.numberOfStillBirths", - "value": "0" - }, - { - "name": "numberOfStillBirths", - "bind": "/model/instance/PNC_Registration_EngKan/num_stillbirths", - "source": "mother.eligible_couple.numberOfStillBirths" - }, - { - "name": "causeOfStillBirth", - "bind": "/model/instance/PNC_Registration_EngKan/still_birth_group/cause_of_still_birth", - "source": "mother.causeOfStillBirth", - "value": "death of mother" - }, - { - "name": "didWomanSurvive", - "bind": "/model/instance/PNC_Registration_EngKan/still_birth_group/woman_survived", - "source": "mother.didWomanSurvive", - "value": "no" - }, - { - "name": "didMotherSurvive", - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/mother_survived", - "source": "mother.didMotherSurvive", - "value": "yes" - }, - { - "name": "didBreastfeedingStart", - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/breastfeeding_postbirth", - "source": "mother.didBreastfeedingStart", - "value": "yes" - }, - { - "name": "maternalDeathCause", - "bind": "/model/instance/PNC_Registration_EngKan/maternal_death_group/maternal_death_cause", - "source": "mother.maternalDeathCause" - }, - { - "name": "otherMaternalDeathCause", - "bind": "/model/instance/PNC_Registration_EngKan/maternal_death_group/other_maternal_death_cause", - "source": "mother.otherMaternalDeathCause" - }, - { - "name": "isRHNegative", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/woman_survived_group/case_w_rh_negative", - "source": "mother.isRHNegative" - }, - { - "name": "isRHInjectionGiven", - "bind": "/model/instance/PNC_Registration_EngKan/woman_survived_group/rh_injection_given", - "source": "mother.isRHInjectionGiven" - }, - { - "name": "hadDeliveryComplications", - "bind": "/model/instance/PNC_Registration_EngKan/woman_survived_group/had_delivery_complications", - "source": "mother.hadDeliveryComplications", - "value": "yes" - }, - { - "name": "deliveryComplications", - "bind": "/model/instance/PNC_Registration_EngKan/woman_survived_group/complications", - "source": "mother.deliveryComplications", - "value": "hemorrhage placenta_previa" - }, - { - "name": "otherDeliveryComplications", - "bind": "/model/instance/PNC_Registration_EngKan/woman_survived_group/delivery_complications_other", - "source": "mother.otherDeliveryComplications" - }, - { - "name": "isHighRiskTillPNCClose", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_is_high_risk_till_pnc_close", - "source": "mother.isHighRiskTillPNCClose", - "value": "no" - }, - { - "name": "highRiskTillPNCCloseReason", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_is_high_risk_till_pnc_close_reason", - "source": "mother.highRiskTillPNCCloseReason" - }, - { - "name": "anemicStatus", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_anaemic_status", - "source": "mother.anemicStatus" - }, - { - "name": "pih", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_pih", - "source": "mother.pih" - }, - { - "name": "preEclampsia", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_pre_eclampsia", - "source": "mother.preEclampsia" - }, - { - "name": "jaundice", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_jaundice", - "source": "mother.jaundice" - }, - { - "name": "isHighRisk", - "bind": "/model/instance/PNC_Registration_EngKan/is_high_risk", - "source": "mother.isHighRisk", - "value": "yes" - }, - { - "name": "isBirthPlanningDone", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_birth_planning", - "source": "mother.isBirthPlanningDone" - }, - { - "name": "highRiskReason", - "bind": "/model/instance/PNC_Registration_EngKan/high_risk_reason", - "source": "mother.highRiskReason" - }, - { - "name": "submissionDate", - "bind": "/model/instance/PNC_Registration_EngKan/today", - "source": "mother.submissionDate", - "value": "2015-03-20" - }, - { - "name": "type", - "value": "PNC", - "source": "mother.type" - }, - { - "name": "numberOfLivingChildren", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_num_livingchildren", - "source": "mother.eligible_couple.numberOfLivingChildren", - "value": "0" - }, - { - "name": "numberOfLivingChildren", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/num_livingchildren", - "source": "mother.eligible_couple.numberOfLivingChildren", - "value": "3" - }, - { - "name": "numberOfChildrenBorn", - "bind": "/model/instance/PNC_Registration_EngKan/num_children_born", - "source": "mother.numberOfChildrenBorn", - "value": "3" - }, - { - "name": "numberOfFemaleChildrenBorn", - "bind": "/model/instance/PNC_Registration_EngKan/num_female_children_born", - "source": "mother.numberOfFemaleChildrenBorn", - "value": "1" - }, - { - "name": "numberOfMaleChildrenBorn", - "bind": "/model/instance/PNC_Registration_EngKan/num_male_children_born", - "source": "mother.numberOfMaleChildrenBorn", - "value": "2" - }, - { - "name": "numberOfLivingFemaleChild", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_numlivingchildren_female", - "source": "mother.eligible_couple.numberOfLivingChildrenFemale" - }, - { - "name": "numberOfLivingFemaleChild", - "bind": "/model/instance/PNC_Registration_EngKan/numlivingchildren_female", - "source": "mother.eligible_couple.numberOfLivingChildrenFemale", - "value": "NaN" - }, - { - "name": "numberOfLivingMaleChild", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_numlivingchildren_male", - "source": "mother.eligible_couple.numberOfLivingMaleChild" - }, - { - "name": "numberOfLivingMaleChild", - "bind": "/model/instance/PNC_Registration_EngKan/numlivingchildren_male", - "source": "mother.eligible_couple.numberOfLivingMaleChild", - "value": "NaN" - }, - { - "name": "youngestChildDOB", - "bind": "/model/instance/PNC_Registration_EngKan/youngestchild_date_of_birth", - "source": "mother.eligible_couple.youngestChildDOB", - "value": "2015-02-20" - }, - { - "name": "youngestChildAge", - "bind": "/model/instance/PNC_Registration_EngKan/youngestchild_age", - "source": "mother.eligible_couple.youngestChildAge", - "value": "0" - } - ], - "sub_forms": [ - { - "name": "child_registration", - "bind_type": "child", - "default_bind_path": "/model/instance/PNC_Registration_EngKan/live_birth_group/child", - "fields": [ - { - "name": "id", - "shouldLoadValue": true, - "source": "child.id" - }, - { - "name": "gender", - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/child/sex_child", - "source": "child.gender" - }, - { - "name": "weight", - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/child/birthweight", - "source": "child.weight" - }, - { - "name": "bloodGroup", - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/child/child_blood_group", - "source": "child.bloodGroup" - }, - { - "name": "immunizationsGiven", - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/child/immunizations_atbirth", - "source": "child.immunizationsGiven" - }, - { - "name": "hepB", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/child/case_hepb", - "source": "child.hepB" - }, - { - "name": "isHepBProphylaxisProvided", - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/child/hepb_prophylaxis_provided", - "source": "child.isHepBProphylaxisProvided" - }, - { - "name": "isChildHighRisk1", - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/child/is_child_high_risk1", - "source": "child.isChildHighRisk1" - }, - { - "name": "childHighRiskReasons", - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/child/child_high_risk_reasons", - "source": "child.childHighRiskReasons" - }, - { - "name": "isChildHighRisk", - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/child/is_child_high_risk", - "source": "child.isChildHighRisk" - }, - { - "name": "lbw", - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/child/lbw", - "source": "child.lbw" - }, - { - "name": "vlbw", - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/child/vlbw", - "source": "child.vlbw" - }, - { - "name": "premature", - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/child/premature", - "source": "child.premature" - } - ], - "instances": [ - { - "gender": "male", - "weight": "2", - "bloodGroup": "a_negative", - "immunizationsGiven": "bcg", - "hepB": "", - "isHepBProphylaxisProvided": "", - "lbw": "Low_Birth_Weight", - "vlbw": "", - "premature": "", - "isChildHighRisk1": "yes", - "childHighRiskReasons": " Low_Birth_Weight ", - "isChildHighRisk": "yes", - "id": "e9a91c61-0d33-42d3-bf9b-560b4d08c74f" - }, - { - "gender": "male", - "weight": "", - "bloodGroup": "a_negative", - "immunizationsGiven": "bcg", - "hepB": "", - "isHepBProphylaxisProvided": "", - "lbw": "", - "vlbw": "", - "premature": "", - "isChildHighRisk1": "no", - "childHighRiskReasons": "", - "isChildHighRisk": "yes", - "id": "c7305d21-0b90-4c15-a88f-b08338d3aed9" - }, - { - "gender": "female", - "weight": "", - "bloodGroup": "a_negative", - "immunizationsGiven": "bcg", - "hepB": "", - "isHepBProphylaxisProvided": "", - "lbw": "", - "vlbw": "", - "premature": "", - "isChildHighRisk1": "no", - "childHighRiskReasons": "", - "isChildHighRisk": "no", - "id": "6c2d772b-7d6a-4a05-a83d-5168c183ef42" - } - ] - } - ] - } - } -} \ No newline at end of file diff --git a/opensrp-connector/src/test/resources/form/repeatform/model.xml b/opensrp-connector/src/test/resources/form/repeatform/model.xml deleted file mode 100644 index 21130a05e8..0000000000 --- a/opensrp-connector/src/test/resources/form/repeatform/model.xml +++ /dev/null @@ -1,91 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/opensrp-connector/src/test/resources/form/vaccine_stock_position/form.json b/opensrp-connector/src/test/resources/form/vaccine_stock_position/form.json deleted file mode 100644 index 3405ad7da9..0000000000 --- a/opensrp-connector/src/test/resources/form/vaccine_stock_position/form.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"Vaccine_Stock_Position","title":"ویکسین اسٹاک پوزیشن - Vaccine Stock Position","sms_keyword":"vaccine_stock_position","default_language":"English","instance":{"encounter_type":"Vaccine stock position"},"version":"201604080502","id_string":"vaccine_stock_position","type":"survey","children":[{"type":"hidden","name":"provider_uc"},{"type":"hidden","name":"provider_town"},{"type":"hidden","name":"provider_city"},{"type":"hidden","name":"provider_province"},{"type":"hidden","name":"provider_id"},{"instance":{"openmrs_entity_id":"location_id","openmrs_entity":"encounter"},"type":"hidden","name":"provider_location_id"},{"type":"hidden","name":"provider_location_name"},{"type":"note","name":"provider_location_note","label":{"Urdu":"شہر: ${provider_city} ; Town: ${provider_town} ; UC: ${provider_uc} ; Center Name: ${provider_location_name}","English":"City: ${provider_city} ; Town: ${provider_town} ; UC: ${provider_uc} ; Center Name: ${provider_location_name}","Roman Urdu":"Shehr: ${provider_city} ; Town: ${provider_town} ; UC: ${provider_uc} ; Center Name: ${provider_location_name}"}},{"instance":{"openmrs_entity_id":"163137AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"start","name":"start"},{"instance":{"openmrs_entity_id":"163138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"end","name":"end"},{"instance":{"openmrs_entity_id":"163286AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"today","name":"today"},{"instance":{"openmrs_entity_id":"163149AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"deviceid","name":"deviceid"},{"instance":{"openmrs_entity_id":"163150AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"subscriberid","name":"subscriberid"},{"instance":{"openmrs_entity_id":"163151AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"simserial","name":"simserial"},{"instance":{"openmrs_entity_id":"163152AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"phonenumber","name":"phonenumber"},{"bind":{"calculate":"format-date(${today}, '%e-%n-%Y')"},"type":"calculate","name":"date_formatted"},{"type":"note","name":"vaccinator_name","label":{"Urdu":"${provider_id}","English":"${provider_id}","Roman Urdu":"${provider_id}"}},{"type":"note","name":"center_name","label":{"Urdu":"سینٹر کا نام: {provider_location_name}$","English":"Center Name: ${provider_location_name}","Roman Urdu":"Center ka naam: ${provider_location_name}"}},{"instance":{"openmrs_entity_id":"encounter_date","openmrs_entity":"encounter"},"type":"date","name":"date","label":{"Urdu":"تاریخ","English":"Date","Roman Urdu":"Tareekh"}},{"name":"report","bind":{"required":"yes"},"label":{"Urdu":"رپورٹ کی قسم","English":"Report Type","Roman Urdu":"Report ki kism"},"instance":{"openmrs_entity_id":"163331AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"160862AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"daily","label":{"Urdu":"روزانہ کی رپورٹ","Roman Urdu":"Rozaana ki report","English":"Daily"}},{"instance":{"openmrs_code":"1098AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"monthly","label":{"Urdu":"ماہانہ رپورٹ","Roman Urdu":"Mahaana report","English":"Monthly"}}]},{"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"type":"integer","instance":{"openmrs_entity_id":"163174AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"Target_assigned_for_vaccination_at_each_month","label":{"Urdu":"ویکسین لگانے کا ماہانہ ہدف","English":"Monthly Target","Roman Urdu":"Vaccine laganay ka mahaana hadf"}},{"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"type":"integer","instance":{"openmrs_entity_id":"163175AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"Target_assigned_for_vaccination_for_the_year","label":{"Urdu":"ویکسین لگانے کا سالانہ ہدف","English":"Yearly Target","Roman Urdu":"Vaccine laganay ka salaana hadf"}},{"name":"bcg_balance_in_hand","hint":{"Urdu":"شیشیوں کی تعداد","Roman Urdu":"Sheeshion ki taadaad","English":"Number of vials"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"موجودہ بی سی جی کی تعداد","Roman Urdu":"Maujooda BCG ki taadaad","English":"BCG balance in hand"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163173AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"886AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"bcg_received","hint":{"Urdu":"شیشیوں کی تعداد","Roman Urdu":"Sheeshion ki taadaad","English":"Number of vials"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"موصول ہونے والی بی سی جی کی تعداد","Roman Urdu":"Mausool honay wali BCG ki taadaad","English":"BCG received"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163170AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"886AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"bcg_wasted","hint":{"Urdu":"شیشیوں کی تعداد","Roman Urdu":"Sheeshion ki taadaad","English":"Number of vials"},"bind":{"relevant":"selected(${report}, 'daily')","required":"yes"},"label":{"Urdu":"ضائع ہونے والی بی سی جی کی تعداد","Roman Urdu":"Zaya honay wali BCG ki taadaad","English":"BCG wasted"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163172AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"886AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"opv_balance_in_hand","hint":{"Urdu":"شیشیوں کی تعداد","Roman Urdu":"Sheeshion ki taadaad","English":"Number of vials"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"موجودہ او پی وی کی تعداد","Roman Urdu":"Maujooda OPV ki taadaad","English":"OPV balance in hand"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163173AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"opv_received","hint":{"Urdu":"شیشیوں کی تعداد","Roman Urdu":"Sheeshion ki taadaad","English":"Number of vials"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"موصول ہونے والی او پی وی کی تعداد","Roman Urdu":"Mausool honay wali OPV ki taadaad","English":"OPV received"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163170AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"opv_wasted","hint":{"Urdu":"شیشیوں کی تعداد","Roman Urdu":"Sheeshion ki taadaad","English":"Number of vials"},"bind":{"relevant":"selected(${report}, 'daily')","required":"yes"},"label":{"Urdu":"ضائع ہونے والی او پی وی کی تعداد","Roman Urdu":"Zaya honay wali OPV ki taadaad","English":"OPV wasted"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163172AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"ipv_balance_in_hand","hint":{"Urdu":"شیشیوں کی تعداد","Roman Urdu":"Sheeshion ki taadaad","English":"Number of vials"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"موجودہ آئی پی وی کی تعداد","Roman Urdu":"Maujooda IPV ki taadaad","English":"IPV balance in hand"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163173AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1422AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"ipv_received","hint":{"Urdu":"شیشیوں کی تعداد","Roman Urdu":"Sheeshion ki taadaad","English":"Number of vials"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"موصول ہونے والی آئی پی وی کی تعداد","Roman Urdu":"Mausool honay wali IPV ki taadaad","English":"IPV received"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163170AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1422AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"ipv_wasted","hint":{"Urdu":"شیشیوں کی تعداد","Roman Urdu":"Sheeshion ki taadaad","English":"Number of vials"},"bind":{"relevant":"selected(${report}, 'daily')","required":"yes"},"label":{"Urdu":"ضائع ہونے والی آئی پی وی کی تعداد","Roman Urdu":"Zaya honay wali IPV ki taadaad","English":"IPV wasted"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163172AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1422AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"pcv_balance_in_hand","hint":{"Urdu":"شیشیوں کی تعداد","Roman Urdu":"Sheeshion ki taadaad","English":"Number of vials"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"موجودہ پی سی وی کی تعداد","Roman Urdu":"Maujooda PCV ki taadaad","English":"PCV balance in hand"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163173AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"pcv_received","hint":{"Urdu":"شیشیوں کی تعداد","Roman Urdu":"Sheeshion ki taadaad","English":"Number of vials"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"موصول ہونے والی پی سی وی کی تعداد","Roman Urdu":"Mausool honay wali PCV ki taadaad","English":"PCV received"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163170AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"pcv_wasted","hint":{"Urdu":"شیشیوں کی تعداد","Roman Urdu":"Sheeshion ki taadaad","English":"Number of vials"},"bind":{"relevant":"selected(${report}, 'daily')","required":"yes"},"label":{"Urdu":"ضائع ہونے والی پی سی وی کی تعداد","Roman Urdu":"Zaya honay wali PCV ki taadaad","English":"PCV wasted"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163172AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"penta_balance_in_hand","hint":{"Urdu":"شیشیوں کی تعداد","Roman Urdu":"Sheeshion ki taadaad","English":"Number of vials"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"موجودہ پینٹاویلنٹ کی تعداد","Roman Urdu":"Maujooda Pentavalent ki taadaad","English":"Penta balance in hand"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163173AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"penta_received","hint":{"Urdu":"شیشیوں کی تعداد","Roman Urdu":"Sheeshion ki taadaad","English":"Number of vials"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"موصول ہونے والی پینٹاویلنٹ کی تعداد","Roman Urdu":"Mausool honay wali Pentavalent ki taadaad","English":"Penta received"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163170AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"penta_wasted","hint":{"Urdu":"شیشیوں کی تعداد","Roman Urdu":"Sheeshion ki taadaad","English":"Number of vials"},"bind":{"relevant":"selected(${report}, 'daily')","required":"yes"},"label":{"Urdu":"ضائع ہونے والی پینٹاویلنٹ کی تعداد","Roman Urdu":"Zaya honay wali Pentavalent ki taadaad","English":"Penta wasted"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163172AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"measles_balance_in_hand","hint":{"Urdu":"شیشیوں کی تعداد","Roman Urdu":"Sheeshion ki taadaad","English":"Number of vials"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"موجودہ خسرے کے ٹیکوں کی تعداد","Roman Urdu":"Maujooda khasray ke teekon ki taadaad","English":"Measles balance in hand"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163173AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"79409AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"measles_received","hint":{"Urdu":"شیشیوں کی تعداد","Roman Urdu":"Sheeshion ki taadaad","English":"Number of vials"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"موصول ہونے والے خسرے کے ٹیکوں کی تعداد","Roman Urdu":"Mausool honay walay khasray ke teekay ki taadaad","English":"Measles received"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163170AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"79409AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"measles_wasted","hint":{"Urdu":"شیشیوں کی تعداد","Roman Urdu":"Sheeshion ki taadaad","English":"Number of vials"},"bind":{"relevant":"selected(${report}, 'daily')","required":"yes"},"label":{"Urdu":"ضائع ہونے والے خسرے کے ٹیکوں کی تعداد","Roman Urdu":"Zaya honay walay khasray ke teekay ki taadaad","English":"Measles wasted"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163172AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"79409AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"tt_balance_in_hand","hint":{"Urdu":"شیشیوں کی تعداد","Roman Urdu":"Sheeshion ki taadaad","English":"Number of vials"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"موجودہ ٹی ٹی کی تعداد","Roman Urdu":"Maujooda TT ki taadaad","English":"TT balance in hand"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163173AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"tt_received","hint":{"Urdu":"شیشیوں کی تعداد","Roman Urdu":"Sheeshion ki taadaad","English":"Number of vials"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"موصول ہونے والی ٹی ٹی کی تعداد","Roman Urdu":"Mausool honay wali TT ki taadaad","English":"TT received"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163170AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"tt_wasted","hint":{"Urdu":"شیشیوں کی تعداد","Roman Urdu":"Sheeshion ki taadaad","English":"Number of vials"},"bind":{"relevant":"selected(${report}, 'daily')","required":"yes"},"label":{"Urdu":"ضائع ہونے والی ٹی ٹی کی تعداد","Roman Urdu":"Zaya honay wali TT ki taadaad","English":"TT wasted"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163172AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"dilutants_balance_in_hand","hint":{"Urdu":"شیشیوں کی تعداد","Roman Urdu":"Sheeshion ki taadaad","English":"Number of vials"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"انجیکشن کے لئے موجودہ جراثیم سے پاک پانی کی شیشیوں کی تعداد","Roman Urdu":"Injection ke liye maujooda jaraseem se paak paani ki sheeshion ki taadaad","English":"Dilutants balance in hand"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163173AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"163287AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"dilutants_received","hint":{"Urdu":"شیشیوں کی تعداد","Roman Urdu":"Sheeshion ki taadaad","English":"Number of vials"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"انجیکشن کے لئے موصول ہونے والا جراثیم سے پاک پانی کی شیشیوں کی تعداد","Roman Urdu":"Injection ke liye mausool honay wala jaraseem se paak paani ki sheeshion ki taadaad","English":"Dilutants received"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163170AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"163287AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"dilutants_wasted","hint":{"Urdu":"شیشیوں کی تعداد","Roman Urdu":"Sheeshion ki taadaad","English":"Number of vials"},"bind":{"relevant":"selected(${report}, 'daily')","required":"yes"},"label":{"Urdu":"انجیکشن کے لئے ضائع ہونے والا جراثیم سے پاک پانی کی شیشیوں کی تعداد","Roman Urdu":"Injection ke liye zaya honay wala jaraseem se paak paani ki sheeshion ki taadaad","English":"Dilutants wasted"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163172AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"163287AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"syringes_balance_in_hand","hint":{"Urdu":"سرنج کی تعداد","Roman Urdu":"Syringe ki taadaad","English":"Number of syringes"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"موجودہ سرنج کی تعداد","Roman Urdu":"Maujooda siranj ki taadaad","English":"Syringes balance in hand"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163173AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162377AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"syringes_received","hint":{"Urdu":"سرنج کی تعداد","Roman Urdu":"Syringe ki taadaad","English":"Number of syringes"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"موصول ہونے والی سرنج کی تعداد","Roman Urdu":"Mausool honay wali siranj ki taadaad","English":"Syringes received"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163170AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162377AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"syringes_wasted","hint":{"Urdu":"سرنج کی تعداد","Roman Urdu":"Syringe ki taadaad","English":"Number of syringes"},"bind":{"relevant":"selected(${report}, 'daily')","required":"yes"},"label":{"Urdu":"ضائع ہونے والی سرنج کی تعداد","Roman Urdu":"Zaya honay wali siranj taadaad","English":"Syringes wasted"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163172AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162377AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"safety_boxes_balance_in_hand","hint":{"Urdu":"کنٹینر کی تعداد","Roman Urdu":"Container ki taadaad","English":"Number of containers"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"موجودہ کنٹینر کی تعداد [جو تیز اوزار کو ضائع کرنے کے لیے استعمال ہوتے ہیں]","Roman Urdu":"Maujooda container ki taadaad [jo taiz auzaar ko zaya karne ke liye istamaal hotay hain]","English":"Sharp disposal container balance in hand"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163173AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"163285AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"safety_boxes_received","hint":{"Urdu":"کنٹینر کی تعداد","Roman Urdu":"Container ki taadaad","English":"Number of containers"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"موصول ہونے والے کنٹینر کی تعداد [جو تیز اوزار کو ضائع کرنے کے لیے استعمال ہوتے ہیں]","Roman Urdu":"Mausool honay walay container ki taadaad [jo taiz auzaar ko zaya karne ke liye istamaal hotay hain]","English":"Sharp disposal container received"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163170AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"163285AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"safety_boxes_wasted","hint":{"Urdu":"کنٹینر کی تعداد","Roman Urdu":"Container ki taadaad","English":"Number of containers"},"bind":{"relevant":"selected(${report}, 'daily')","required":"yes"},"label":{"Urdu":"ضائع ہونے والے کنٹینر کی تعداد [جو تیز اوزار کو ضائع کرنے کے لیے استعمال ہوتے ہیں]","Roman Urdu":"Zaya honay walay container ki taadaad [jo taiz auzaar ko zaya karne ke liye istamaal hotay hain]","English":"Sharp disposal container wasted"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163172AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"163285AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"bind":{"jr:constraintMsg":{"Urdu":"یہ تعداد موصول ہونے والی کل تعداد سے کم یا برابر ہونی چاہئیے","Roman Urdu":"Ye taadaad mausool honay wali kul taadaad se kam ya baraber honi chahiye","English":"This quantity should be less than or equal to the total quantity received"},"calculate":"${bcg_wasted}+${opv_wasted}+${ipv_wasted}+${pcv_wasted}+${penta_wasted}+${measles_wasted}+${tt_wasted}+${dilutants_wasted}+${syringes_wasted}+${safety_boxes_wasted}","constraint":".<=${total_received}"},"type":"calculate","name":"total_wasted","label":{"Urdu":"ضائع ہونے والی اشیاء کی مکمل تعداد","Roman Urdu":"Zaya honay wali ashia ki mukammal taadaad","English":"Total wasted"}},{"bind":{"calculate":"${bcg_received}+${opv_received}+${ipv_received}+${pcv_received}+${penta_received}+${measles_received}+${tt_received}+${dilutants_received}+${syringes_received}+${safety_boxes_received}"},"type":"calculate","name":"total_received","label":{"Urdu":"موصول ہونے والی اشیاء کی مکمل تعداد","Roman Urdu":"Mausool honay wali ashia ki mukammal taadaad","English":"Total received"}},{"bind":{"calculate":"${bcg_balance_in_hand}+${opv_balance_in_hand}+${ipv_balance_in_hand}+${pcv_balance_in_hand}+${penta_balance_in_hand}+${measles_balance_in_hand}+${tt_balance_in_hand}+${dilutants_balance_in_hand}+${syringes_balance_in_hand}+${safety_boxes_balance_in_hand}"},"type":"calculate","name":"total_balanceInHand","label":{"Urdu":"موجودہ اشیاء کی مکمل تعداد","Roman Urdu":"Maujooda ashia ki mukammal taadaad","English":"Total balance in hand"}},{"control":{"bodyless":true},"type":"group","children":[{"bind":{"readonly":"true()","calculate":"concat('uuid:', uuid())"},"type":"calculate","name":"instanceID"}],"name":"meta"}]} \ No newline at end of file diff --git a/opensrp-connector/src/test/resources/form/vaccine_stock_position/form.xml b/opensrp-connector/src/test/resources/form/vaccine_stock_position/form.xml deleted file mode 100644 index 713d5efd97..0000000000 --- a/opensrp-connector/src/test/resources/form/vaccine_stock_position/form.xml +++ /dev/null @@ -1,381 +0,0 @@ -
- - -

ویکسین اسٹاک پوزیشن - Vaccine Stock Position

-
-
- - رپورٹ کی قسم - Report Type - Report ki kism - * -
- - -
-
-
- -
diff --git a/opensrp-connector/src/test/resources/form/vaccine_stock_position/form_definition.json b/opensrp-connector/src/test/resources/form/vaccine_stock_position/form_definition.json deleted file mode 100644 index f6b50a149e..0000000000 --- a/opensrp-connector/src/test/resources/form/vaccine_stock_position/form_definition.json +++ /dev/null @@ -1,186 +0,0 @@ -{ - "form_data_definition_version" : "1", - "form" : { - "bind_type" : "stock", - "default_bind_path" : "/model/instance/Vaccine_Stock_Position/", - "fields" : [ { - "name" : "id", - "shouldLoadValue" : true - }, { - "name" : "provider_uc", - "bind" : "/model/instance/Vaccine_Stock_Position/provider_uc", - "shouldLoadValue" : true - }, { - "name" : "provider_town", - "bind" : "/model/instance/Vaccine_Stock_Position/provider_town", - "shouldLoadValue" : true - }, { - "name" : "provider_city", - "bind" : "/model/instance/Vaccine_Stock_Position/provider_city", - "shouldLoadValue" : true - }, { - "name" : "provider_province", - "bind" : "/model/instance/Vaccine_Stock_Position/provider_province", - "shouldLoadValue" : true - }, { - "name" : "provider_id", - "bind" : "/model/instance/Vaccine_Stock_Position/provider_id", - "shouldLoadValue" : true - }, { - "name" : "provider_location_id", - "bind" : "/model/instance/Vaccine_Stock_Position/provider_location_id", - "shouldLoadValue" : true - }, { - "name" : "provider_location_name", - "bind" : "/model/instance/Vaccine_Stock_Position/provider_location_name", - "shouldLoadValue" : true - }, { - "name" : "provider_location_note", - "bind" : "/model/instance/Vaccine_Stock_Position/provider_location_note" - }, { - "name" : "start", - "bind" : "/model/instance/Vaccine_Stock_Position/start" - }, { - "name" : "end", - "bind" : "/model/instance/Vaccine_Stock_Position/end" - }, { - "name" : "today", - "bind" : "/model/instance/Vaccine_Stock_Position/today" - }, { - "name" : "deviceid", - "bind" : "/model/instance/Vaccine_Stock_Position/deviceid" - }, { - "name" : "subscriberid", - "bind" : "/model/instance/Vaccine_Stock_Position/subscriberid" - }, { - "name" : "simserial", - "bind" : "/model/instance/Vaccine_Stock_Position/simserial" - }, { - "name" : "phonenumber", - "bind" : "/model/instance/Vaccine_Stock_Position/phonenumber" - }, { - "name" : "date_formatted", - "bind" : "/model/instance/Vaccine_Stock_Position/date_formatted" - }, { - "name" : "vaccinator_name", - "bind" : "/model/instance/Vaccine_Stock_Position/vaccinator_name" - }, { - "name" : "center_name", - "bind" : "/model/instance/Vaccine_Stock_Position/center_name" - }, { - "name" : "date", - "bind" : "/model/instance/Vaccine_Stock_Position/date" - }, { - "name" : "report", - "bind" : "/model/instance/Vaccine_Stock_Position/report" - }, { - "name" : "Target_assigned_for_vaccination_at_each_month", - "bind" : "/model/instance/Vaccine_Stock_Position/Target_assigned_for_vaccination_at_each_month" - }, { - "name" : "Target_assigned_for_vaccination_for_the_year", - "bind" : "/model/instance/Vaccine_Stock_Position/Target_assigned_for_vaccination_for_the_year" - }, { - "name" : "bcg_balance_in_hand", - "bind" : "/model/instance/Vaccine_Stock_Position/bcg_balance_in_hand" - }, { - "name" : "bcg_received", - "bind" : "/model/instance/Vaccine_Stock_Position/bcg_received" - }, { - "name" : "bcg_wasted", - "bind" : "/model/instance/Vaccine_Stock_Position/bcg_wasted" - }, { - "name" : "opv_balance_in_hand", - "bind" : "/model/instance/Vaccine_Stock_Position/opv_balance_in_hand" - }, { - "name" : "opv_received", - "bind" : "/model/instance/Vaccine_Stock_Position/opv_received" - }, { - "name" : "opv_wasted", - "bind" : "/model/instance/Vaccine_Stock_Position/opv_wasted" - }, { - "name" : "ipv_balance_in_hand", - "bind" : "/model/instance/Vaccine_Stock_Position/ipv_balance_in_hand" - }, { - "name" : "ipv_received", - "bind" : "/model/instance/Vaccine_Stock_Position/ipv_received" - }, { - "name" : "ipv_wasted", - "bind" : "/model/instance/Vaccine_Stock_Position/ipv_wasted" - }, { - "name" : "pcv_balance_in_hand", - "bind" : "/model/instance/Vaccine_Stock_Position/pcv_balance_in_hand" - }, { - "name" : "pcv_received", - "bind" : "/model/instance/Vaccine_Stock_Position/pcv_received" - }, { - "name" : "pcv_wasted", - "bind" : "/model/instance/Vaccine_Stock_Position/pcv_wasted" - }, { - "name" : "penta_balance_in_hand", - "bind" : "/model/instance/Vaccine_Stock_Position/penta_balance_in_hand" - }, { - "name" : "penta_received", - "bind" : "/model/instance/Vaccine_Stock_Position/penta_received" - }, { - "name" : "penta_wasted", - "bind" : "/model/instance/Vaccine_Stock_Position/penta_wasted" - }, { - "name" : "measles_balance_in_hand", - "bind" : "/model/instance/Vaccine_Stock_Position/measles_balance_in_hand" - }, { - "name" : "measles_received", - "bind" : "/model/instance/Vaccine_Stock_Position/measles_received" - }, { - "name" : "measles_wasted", - "bind" : "/model/instance/Vaccine_Stock_Position/measles_wasted" - }, { - "name" : "tt_balance_in_hand", - "bind" : "/model/instance/Vaccine_Stock_Position/tt_balance_in_hand" - }, { - "name" : "tt_received", - "bind" : "/model/instance/Vaccine_Stock_Position/tt_received" - }, { - "name" : "tt_wasted", - "bind" : "/model/instance/Vaccine_Stock_Position/tt_wasted" - }, { - "name" : "dilutants_balance_in_hand", - "bind" : "/model/instance/Vaccine_Stock_Position/dilutants_balance_in_hand" - }, { - "name" : "dilutants_received", - "bind" : "/model/instance/Vaccine_Stock_Position/dilutants_received" - }, { - "name" : "dilutants_wasted", - "bind" : "/model/instance/Vaccine_Stock_Position/dilutants_wasted" - }, { - "name" : "syringes_balance_in_hand", - "bind" : "/model/instance/Vaccine_Stock_Position/syringes_balance_in_hand" - }, { - "name" : "syringes_received", - "bind" : "/model/instance/Vaccine_Stock_Position/syringes_received" - }, { - "name" : "syringes_wasted", - "bind" : "/model/instance/Vaccine_Stock_Position/syringes_wasted" - }, { - "name" : "safety_boxes_balance_in_hand", - "bind" : "/model/instance/Vaccine_Stock_Position/safety_boxes_balance_in_hand" - }, { - "name" : "safety_boxes_received", - "bind" : "/model/instance/Vaccine_Stock_Position/safety_boxes_received" - }, { - "name" : "safety_boxes_wasted", - "bind" : "/model/instance/Vaccine_Stock_Position/safety_boxes_wasted" - }, { - "name" : "total_wasted", - "bind" : "/model/instance/Vaccine_Stock_Position/total_wasted" - }, { - "name" : "total_received", - "bind" : "/model/instance/Vaccine_Stock_Position/total_received" - }, { - "name" : "total_balanceInHand", - "bind" : "/model/instance/Vaccine_Stock_Position/total_balanceInHand" - }, { - "name" : "instanceID", - "bind" : "/model/instance/Vaccine_Stock_Position/meta/instanceID" - } ] - } -} \ No newline at end of file diff --git a/opensrp-connector/src/test/resources/form/vaccine_stock_position/model.xml b/opensrp-connector/src/test/resources/form/vaccine_stock_position/model.xml deleted file mode 100644 index faec7c2e5c..0000000000 --- a/opensrp-connector/src/test/resources/form/vaccine_stock_position/model.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/opensrp-connector/src/test/resources/form/woman_enrollment/form.json b/opensrp-connector/src/test/resources/form/woman_enrollment/form.json deleted file mode 100644 index fe3f23a6a2..0000000000 --- a/opensrp-connector/src/test/resources/form/woman_enrollment/form.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"Woman_TT_Enrollment_Form","title":"خواتین انرولمنٹ فارم برائے ٹی ٹی ٹیکاجات - Woman TT Enrollment Form","sms_keyword":"woman_tt_enrollement_form","default_language":"English","choices":{"provinces":[{"name":"kpk","label":{"Urdu":"خیبر پختون خواہ","English":"Khyber Pakhtunkhwa","Roman Urdu":"Khyber Pakhtunkhwa"}},{"name":"sindh","label":{"Urdu":"سندھ","English":"Sindh","Roman Urdu":"Sindh"}},{"name":"balochistan","label":{"Urdu":"بلوچستان","English":"Balochistan","Roman Urdu":"Balochistan"}},{"name":"punjab","label":{"Urdu":"پنجاب","English":"Punjab","Roman Urdu":"Punjab"}},{"name":"gilgit_baltistan","label":{"Urdu":"گلگت بلتستان","English":"Gilgit Baltistan","Roman Urdu":"Gilgit Baltistan"}},{"name":"kashmir","label":{"Urdu":"کشمیر","English":"Kashmir","Roman Urdu":"Kashmir"}},{"name":"fata","label":{"Urdu":"فاٹا","English":"FATA","Roman Urdu":"FATA"}},{"name":"out_of_country","label":{"Urdu":"ملک سے باہر","English":"Out of Country","Roman Urdu":"Mulk se baahir"}}],"ucs":[{"province":"sindh","city":"karachi","town":"korangi","name":"bilal_colony","label":{"Urdu":"بلال کالونی","Roman Urdu":"Bilal Colony","English":"Bilal Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"nasir_colony","label":{"Urdu":"ناصر کالونی","Roman Urdu":"Nasir Colony","English":"Nasir Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"chakra_goth","label":{"Urdu":"چکرا گوٹھ","Roman Urdu":"Chakra Goth","English":"Chakra Goth"}},{"province":"sindh","city":"karachi","town":"korangi","name":"mustafa_taj_colony","label":{"Urdu":"مصطفی تاج کالونی","Roman Urdu":"Mustafa Taj Colony","English":"Mustafa Taj Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"hundred_quarters","label":{"Urdu":"ہنڈریڈ کوارٹر","Roman Urdu":"Hundred Quarters","English":"Hundred Quarters"}},{"province":"sindh","city":"karachi","town":"korangi","name":"gulzar_colony","label":{"Urdu":"گلزار کالونی","Roman Urdu":"Gulzar Colony","English":"Gulzar Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"korangi_sector_33","label":{"Urdu":"کورنگی سیکٹر 33","Roman Urdu":"Korangi Sector 33","English":"Korangi Sector 33"}},{"province":"sindh","city":"karachi","town":"korangi","name":"zaman_town","label":{"Urdu":"زمان ٹاوَن","Roman Urdu":"Zaman Town","English":"Zaman Town"}},{"province":"sindh","city":"karachi","town":"korangi","name":"hasrat_mohani_colony","label":{"Urdu":"حسرت موہانی کالونی","Roman Urdu":"Hasrat Mohani Colony","English":"Hasrat Mohani Colony"}},{"province":"sindh","city":"karachi","town":"baldia","name":"gulshan_e_ghazi","label":{"Urdu":"گلشن غازی","Roman Urdu":"Gulshan-e-Ghazi","English":"Gulshan-e-Ghazi"}},{"province":"sindh","city":"karachi","town":"baldia","name":"ittehad_town","label":{"Urdu":"اتحاد ٹاوَن","Roman Urdu":"Ittehad Town","English":"Ittehad Town"}},{"province":"sindh","city":"karachi","town":"baldia","name":"islam_nagar","label":{"Urdu":"اسلام نگر","Roman Urdu":"Islam Nagar","English":"Islam Nagar"}},{"province":"sindh","city":"karachi","town":"baldia","name":"nai_abadi","label":{"Urdu":"نئی آبادی","Roman Urdu":"Nai Abadi","English":"Nai Abadi"}},{"province":"sindh","city":"karachi","town":"baldia","name":"saeedabad","label":{"Urdu":"سعید آباد","Roman Urdu":"Saeedabad","English":"Saeedabad"}},{"province":"sindh","city":"karachi","town":"baldia","name":"muslim_mujahid_colony","label":{"Urdu":"مسلم مجاہد کالونی","Roman Urdu":"Muslim Mujahid Colony","English":"Muslim Mujahid Colony"}},{"province":"sindh","city":"karachi","town":"baldia","name":"muhajir_camp","label":{"Urdu":"مہاجر کیمپ","Roman Urdu":"Muhajir Camp","English":"Muhajir Camp"}},{"province":"sindh","city":"karachi","town":"baldia","name":"rasheedabad","label":{"Urdu":"رشید آباد","Roman Urdu":"Rasheedabad","English":"Rasheedabad"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"ibrahim_hyderi","label":{"Urdu":"ابراہیم حیدری","Roman Urdu":"Ibrahim Hyderi","English":"Ibrahim Hyderi"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"rehri","label":{"Urdu":"رہڑی","Roman Urdu":"Rehri","English":"Rehri"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"cattle_colony","label":{"Urdu":"کیٹل کالونی","Roman Urdu":"Cattle Colony","English":"Cattle Colony"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"qaidabad","label":{"Urdu":"قائدآباد","Roman Urdu":"Qaidabad","English":"Qaidabad"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"landhi_colony","label":{"Urdu":"لانڈھی کالونی","Roman Urdu":"Landhi Colony","English":"Landhi Colony"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"gulshan_e_hadeed","label":{"Urdu":"گلشن حدید","Roman Urdu":"Gulshan-e-Hadeed","English":"Gulshan-e-Hadeed"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"gaghar","label":{"Urdu":"گگر","Roman Urdu":"Gaghar","English":"Gaghar"}},{"province":"sindh","city":"karachi","town":"gadap","name":"murad_memon_goth","label":{"Urdu":"مراد میمن گوٹھ","Roman Urdu":"Murad Memon Goth","English":"Murad Memon Goth"}},{"province":"sindh","city":"karachi","town":"gadap","name":"darsano_chana","label":{"Urdu":"درشانو شنو","Roman Urdu":"Darsano Chana","English":"Darsano Chana"}},{"province":"sindh","city":"karachi","town":"gadap","name":"gujro","label":{"Urdu":"گجرو","Roman Urdu":"Gujro","English":"Gujro"}},{"province":"sindh","city":"karachi","town":"gadap","name":"songal","label":{"Urdu":"سنگل","Roman Urdu":"Songal","English":"Songal"}},{"province":"sindh","city":"karachi","town":"gadap","name":"maymarabad","label":{"Urdu":"معمار آباد","Roman Urdu":"Maymarabad","English":"Maymarabad"}},{"province":"sindh","city":"karachi","town":"gadap","name":"yousuf_goth","label":{"Urdu":"یوسف گوٹھ","Roman Urdu":"Yousuf Goth","English":"Yousuf Goth"}},{"province":"sindh","city":"karachi","town":"gadap","name":"manghopir","label":{"Urdu":"منگھوپیر","Roman Urdu":"Manghopir","English":"Manghopir"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"azizabad","label":{"Urdu":"عزیز آباد","Roman Urdu":"Azizabad","English":"Azizabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"karimabad","label":{"Urdu":"کریم آباد","Roman Urdu":"Karimabad","English":"Karimabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"aisha_manzil","label":{"Urdu":"عائشہ منزل","Roman Urdu":"Aisha Manzil","English":"Aisha Manzil"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"ancholi","label":{"Urdu":"انچولی","Roman Urdu":"Ancholi","English":"Ancholi"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"naseerabad","label":{"Urdu":"نصیرآباد","Roman Urdu":"Naseerabad","English":"Naseerabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"yaseenabad","label":{"Urdu":"یاسین آباد","Roman Urdu":"Yaseenabad","English":"Yaseenabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"water_pump","label":{"Urdu":"واٹرپمپ","Roman Urdu":"Water Pump","English":"Water Pump"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"shafiq_mill_colony","label":{"Urdu":"شفیق مل کالونی","Roman Urdu":"Shafiq Mill Colony","English":"Shafiq Mill Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"delhi_mercantile_society","label":{"Urdu":"دہلی مرچنٹائل سوسائٹی","Roman Urdu":"Delhi Mercantile Society","English":"Delhi Mercantile Society"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"civic_centre","label":{"Urdu":"سوک سینٹر","Roman Urdu":"Civic Centre","English":"Civic Centre"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"pir_ilahi_buksh_colony","label":{"Urdu":"پیر الہی بخش کالونی","Roman Urdu":"Pir Ilahi Buksh Colony","English":"Pir Ilahi Buksh Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"essa_nagri","label":{"Urdu":"عیسی نگری","Roman Urdu":"Essa Nagri","English":"Essa Nagri"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gulshan_e_iqbal","label":{"Urdu":"گلشن اقبال","Roman Urdu":"Gulshan-e-Iqbal","English":"Gulshan-e-Iqbal"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gillani_railway_station","label":{"Urdu":"گیلانی ریلوے اسٹیشن","Roman Urdu":"Gillani Railway Station","English":"Gillani Railway Station"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"shanti_nagar","label":{"Urdu":"شانتی نگر","Roman Urdu":"Shanti Nagar","English":"Shanti Nagar"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"jamali_colony","label":{"Urdu":"جمالی کالونی","Roman Urdu":"Jamali Colony","English":"Jamali Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gulshan_e_iqbal_ii","label":{"Urdu":"گلشن اقبال 2","Roman Urdu":"Gulshan-e-Iqbal II","English":"Gulshan-e-Iqbal II"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"pehlwan_goth","label":{"Urdu":"پہلوان گوٹھ","Roman Urdu":"Pehlwan Goth","English":"Pehlwan Goth"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"matrovil_colony","label":{"Urdu":"میٹروویل کالونی","Roman Urdu":"Matrovil Colony","English":"Matrovil Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gulzar_e_hijri","label":{"Urdu":"گلزار ہجری","Roman Urdu":"Gulzar-e-Hijri","English":"Gulzar-e-Hijri"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"safooran_goth","label":{"Urdu":"صفورا گوٹھ","Roman Urdu":"Safooran Goth","English":"Safooran Goth"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"akhtar_colony","label":{"Urdu":"اختر کالونی","Roman Urdu":"Akhtar Colony","English":"Akhtar Colony"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"manzoor_colony","label":{"Urdu":"منظور کالونی","Roman Urdu":"Manzoor Colony","English":"Manzoor Colony"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"azam_basti","label":{"Urdu":"اعظم بستی","Roman Urdu":"Azam Basti","English":"Azam Basti"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"chanesar_goth","label":{"Urdu":"چنیسر گوٹھ","Roman Urdu":"Chanesar Goth","English":"Chanesar Goth"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"mahmudabad","label":{"Urdu":"محمودآباد","Roman Urdu":"Mahmudabad","English":"Mahmudabad"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"pechs","label":{"Urdu":"پی۔ای۔سی۔ایچ۔ایس","Roman Urdu":"P.E.C.H.S.","English":"P.E.C.H.S."}},{"province":"sindh","city":"karachi","town":"jamshed","name":"pechs_ii","label":{"Urdu":"پی۔ای۔سی۔ایچ۔ایس 2","Roman Urdu":"P.E.C.H.S. II","English":"P.E.C.H.S. II"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"jut_line","label":{"Urdu":"جٹ لائن","Roman Urdu":"Jut Line","English":"Jut Line"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"central_jacob_lines","label":{"Urdu":"سینٹرل جیکب لائن","Roman Urdu":"Central Jacob Lines","English":"Central Jacob Lines"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"jamshed_quarters","label":{"Urdu":"جمشید کوارٹر","Roman Urdu":"Jamshed Quarters","English":"Jamshed Quarters"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"garden_east","label":{"Urdu":"گارڈن ایسٹ","Roman Urdu":"Garden East","English":"Garden East"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"soldier_bazar","label":{"Urdu":"سولجر بازار","Roman Urdu":"Soldier Bazar","English":"Soldier Bazar"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"pakistan_quarters","label":{"Urdu":"پاکستان کوارٹر","Roman Urdu":"Pakistan Quarters","English":"Pakistan Quarters"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"bhutta_village","label":{"Urdu":"بھٹا ولیج","Roman Urdu":"Bhutta Village","English":"Bhutta Village"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"sultanabad","label":{"Urdu":"سلطان آباد","Roman Urdu":"Sultanabad","English":"Sultanabad"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"kiamari_uc","label":{"Urdu":"کیماری یوسی","Roman Urdu":"Kiamari UC","English":"Kiamari UC"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"baba_bhit","label":{"Urdu":"بابا بھٹ","Roman Urdu":"Baba Bhit","English":"Baba Bhit"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"machar_colony","label":{"Urdu":"مچھر کالونی","Roman Urdu":"Machar Colony","English":"Machar Colony"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"maripur","label":{"Urdu":"ماڑی پور","Roman Urdu":"Maripur","English":"Maripur"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"shershah","label":{"Urdu":"شیرشاہ","Roman Urdu":"SherShah","English":"SherShah"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"gabo_pat","label":{"Urdu":"گابو پٹ","Roman Urdu":"Gabo Pat","English":"Gabo Pat"}},{"province":"sindh","city":"karachi","town":"landhi","name":"muzafarabad","label":{"Urdu":"مظفرآباد","Roman Urdu":"Muzafarabad","English":"Muzafarabad"}},{"province":"sindh","city":"karachi","town":"landhi","name":"muslimabad","label":{"Urdu":"مسلم آباد","Roman Urdu":"Muslimabad","English":"Muslimabad"}},{"province":"sindh","city":"karachi","town":"landhi","name":"dawood_chowrangi","label":{"Urdu":"داوَد چورنگی","Roman Urdu":"Dawood Chowrangi","English":"Dawood Chowrangi"}},{"province":"sindh","city":"karachi","town":"landhi","name":"moinabad","label":{"Urdu":"معین آباد","Roman Urdu":"Moinabad","English":"Moinabad"}},{"province":"sindh","city":"karachi","town":"landhi","name":"sharafi_goth","label":{"Urdu":"شرافی گوٹھ","Roman Urdu":"Sharafi Goth","English":"Sharafi Goth"}},{"province":"sindh","city":"karachi","town":"landhi","name":"bhutto_nagar","label":{"Urdu":"بھٹو نگر","Roman Urdu":"Bhutto Nagar","English":"Bhutto Nagar"}},{"province":"sindh","city":"karachi","town":"landhi","name":"khawaja_ajmeer_colony","label":{"Urdu":"خواجہ اجمیر کالونی","Roman Urdu":"Khawaja Ajmeer Colony","English":"Khawaja Ajmeer Colony"}},{"province":"sindh","city":"karachi","town":"landhi","name":"landhi_uc","label":{"Urdu":"لانڈھی یوسی","Roman Urdu":"Landhi UC","English":"Landhi UC"}},{"province":"sindh","city":"karachi","town":"landhi","name":"awami_colony","label":{"Urdu":"عوامی کالونی","Roman Urdu":"Awami Colony","English":"Awami Colony"}},{"province":"sindh","city":"karachi","town":"landhi","name":"burmee_colony","label":{"Urdu":"برمی کالونی","Roman Urdu":"Burmee Colony","English":"Burmee Colony"}},{"province":"sindh","city":"karachi","town":"landhi","name":"korangi_uc","label":{"Urdu":"کورنگی یوسی","Roman Urdu":"Korangi UC","English":"Korangi UC"}},{"province":"sindh","city":"karachi","town":"landhi","name":"sherabad","label":{"Urdu":"شیرآباد","Roman Urdu":"Sherabad","English":"Sherabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"rizvia_society","label":{"Urdu":"رضویہ سوسائٹی","Roman Urdu":"Rizvia Society","English":"Rizvia Society"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"firdous_colony","label":{"Urdu":"فردوس کالونی","Roman Urdu":"Firdous Colony","English":"Firdous Colony"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"super_market","label":{"Urdu":"سپر مارکیٹ","Roman Urdu":"Super Market","English":"Super Market"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"dak_khana","label":{"Urdu":"دک کھانہ","Roman Urdu":"Dak Khana","English":"Dak Khana"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"qasimabad","label":{"Urdu":"قاسم آباد","Roman Urdu":"Qasimabad","English":"Qasimabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"bandhani_colony","label":{"Urdu":"بندھانی کالونی","Roman Urdu":"Bandhani Colony","English":"Bandhani Colony"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"sharifabad","label":{"Urdu":"شریف آباد","Roman Urdu":"Sharifabad","English":"Sharifabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"commercial_area","label":{"Urdu":"کمرشل ایریا","Roman Urdu":"Commercial Area","English":"Commercial Area"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"mujahid_colony","label":{"Urdu":"مجاہد کالونی","Roman Urdu":"Mujahid Colony","English":"Mujahid Colony"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"nazimabad","label":{"Urdu":"ناظم آباد","Roman Urdu":"Nazimabad","English":"Nazimabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"abbasi_shaheed","label":{"Urdu":"عباسی شہید","Roman Urdu":"Abbasi Shaheed","English":"Abbasi Shaheed"}},{"province":"sindh","city":"karachi","town":"lyari","name":"agra_taj_colony","label":{"Urdu":"آگرہ تاج کالونی","Roman Urdu":"Agra Taj Colony","English":"Agra Taj Colony"}},{"province":"sindh","city":"karachi","town":"lyari","name":"daryaabad","label":{"Urdu":"دریاآباد","Roman Urdu":"Daryaabad","English":"Daryaabad"}},{"province":"sindh","city":"karachi","town":"lyari","name":"nawabad","label":{"Urdu":"نواآباد","Roman Urdu":"Nawabad","English":"Nawabad"}},{"province":"sindh","city":"karachi","town":"lyari","name":"khada_memon_society","label":{"Urdu":"خدا- میمن- سوساَٹی","Roman Urdu":"Khada Memon Society","English":"Khada Memon Society"}},{"province":"sindh","city":"karachi","town":"lyari","name":"baghdadi","label":{"Urdu":"بغدادی","Roman Urdu":"Baghdadi","English":"Baghdadi"}},{"province":"sindh","city":"karachi","town":"lyari","name":"shah_baig_line","label":{"Urdu":"شاھ باغ لائن","Roman Urdu":"Shah Baig Line","English":"Shah Baig Line"}},{"province":"sindh","city":"karachi","town":"lyari","name":"bihar_colony","label":{"Urdu":"بہار کالونی","Roman Urdu":"Bihar Colony","English":"Bihar Colony"}},{"province":"sindh","city":"karachi","town":"lyari","name":"ragiwara","label":{"Urdu":"راگی واڑا","Roman Urdu":"Ragiwara","English":"Ragiwara"}},{"province":"sindh","city":"karachi","town":"lyari","name":"singo_line","label":{"Urdu":"سنگولائن","Roman Urdu":"Singo Line","English":"Singo Line"}},{"province":"sindh","city":"karachi","town":"lyari","name":"chakiwara","label":{"Urdu":"چاکی واڑا","Roman Urdu":"Chakiwara","English":"Chakiwara"}},{"province":"sindh","city":"karachi","town":"lyari","name":"allama_iqbal_colony","label":{"Urdu":"علامہ اقبال کالونی","Roman Urdu":"Allama Iqbal Colony","English":"Allama Iqbal Colony"}},{"province":"sindh","city":"karachi","town":"malir","name":"model_colony","label":{"Urdu":"موڈل کالونی","Roman Urdu":"Model Colony","English":"Model Colony"}},{"province":"sindh","city":"karachi","town":"malir","name":"kala_board","label":{"Urdu":"کالا بورڈ","Roman Urdu":"Kala Board","English":"Kala Board"}},{"province":"sindh","city":"karachi","town":"malir","name":"saudabad","label":{"Urdu":"سعودآباد","Roman Urdu":"Saudabad","English":"Saudabad"}},{"province":"sindh","city":"karachi","town":"malir","name":"khokhra_par","label":{"Urdu":"کھوکھرا پار","Roman Urdu":"Khokhra Par","English":"Khokhra Par"}},{"province":"sindh","city":"karachi","town":"malir","name":"jafar_e_tayyar","label":{"Urdu":"جعفر تیار","Roman Urdu":"Jafar-e-Tayyar","English":"Jafar-e-Tayyar"}},{"province":"sindh","city":"karachi","town":"malir","name":"gharibabad","label":{"Urdu":"غریب آباد","Roman Urdu":"Gharibabad","English":"Gharibabad"}},{"province":"sindh","city":"karachi","town":"malir","name":"ghazi_brohi_goth","label":{"Urdu":"غازی بروہی گوٹھ","Roman Urdu":"Ghazi Brohi Goth","English":"Ghazi Brohi Goth"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"kalyana","label":{"Urdu":"کالیانہ","Roman Urdu":"Kalyana","English":"Kalyana"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"sir_syed_colony","label":{"Urdu":"سر سید کالونی","Roman Urdu":"Sir Syed Colony","English":"Sir Syed Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"fatima_jinnah_colony","label":{"Urdu":"فاطمہ جناح کالونی","Roman Urdu":"Fatima Jinnah Colony","English":"Fatima Jinnah Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"godhra","label":{"Urdu":"گودھرا","Roman Urdu":"Godhra","English":"Godhra"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"abu_zar_ghaffari","label":{"Urdu":"ابو زر غفاری","Roman Urdu":"Abu Zar Ghaffari","English":"Abu Zar Ghaffari"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"hakim_ahsan","label":{"Urdu":"حاکم احسان","Roman Urdu":"Hakim Ahsan","English":"Hakim Ahsan"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"madina_colony","label":{"Urdu":"مدینہ کالونی","Roman Urdu":"Madina Colony","English":"Madina Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"faisal_colony","label":{"Urdu":"فیصل کالونی","Roman Urdu":"Faisal Colony","English":"Faisal Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"khamiso_goth","label":{"Urdu":"خمیسو گوٹھ","Roman Urdu":"Khamiso Goth","English":"Khamiso Goth"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"mustufa_colony","label":{"Urdu":"مصطفی کالونی","Roman Urdu":"Mustufa Colony","English":"Mustufa Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"khawaja_ajmeer_nagri","label":{"Urdu":"خواجہ اجمیر نگری","Roman Urdu":"Khawaja Ajmeer Nagri","English":"Khawaja Ajmeer Nagri"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"gulshan_e_saeed","label":{"Urdu":"گلشن سعید","Roman Urdu":"Gulshan-e-Saeed","English":"Gulshan-e-Saeed"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"shah_nawaz_bhutto_colony","label":{"Urdu":"شاہ نواز بھٹو کالونی","Roman Urdu":"Shah Nawaz Bhutto Colony","English":"Shah Nawaz Bhutto Colony"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"paposh_nagar","label":{"Urdu":"پاپوش نگر","Roman Urdu":"Paposh Nagar","English":"Paposh Nagar"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"pahar_ganj","label":{"Urdu":"پہاڑ گنج","Roman Urdu":"Pahar Ganj","English":"Pahar Ganj"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"khandu_goth","label":{"Urdu":"کھنڑو گوٹھ","Roman Urdu":"Khandu Goth","English":"Khandu Goth"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"hyderi","label":{"Urdu":"حیدری","Roman Urdu":"Hyderi","English":"Hyderi"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"sakhi_hassan","label":{"Urdu":"سخی حسن","Roman Urdu":"Sakhi Hassan","English":"Sakhi Hassan"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"farooq_e_azam","label":{"Urdu":"فاروق اعظم","Roman Urdu":"Farooq-e-Azam","English":"Farooq-e-Azam"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"nusrat_bhutto_colony","label":{"Urdu":"نصرت بھٹو کالونی","Roman Urdu":"Nusrat Bhutto Colony","English":"Nusrat Bhutto Colony"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"shadman_town","label":{"Urdu":"شادمان ٹاوَن","Roman Urdu":"Shadman Town","English":"Shadman Town"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"buffer_zone","label":{"Urdu":"بفرزون","Roman Urdu":"Buffer Zone","English":"Buffer Zone"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"buffer_zone_ii","label":{"Urdu":"بفرزون 2","Roman Urdu":"Buffer Zone II","English":"Buffer Zone II"}},{"province":"sindh","city":"karachi","town":"orangi","name":"mominabad","label":{"Urdu":"مومن آباد","Roman Urdu":"Mominabad","English":"Mominabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"haryana_colony","label":{"Urdu":"حریانہ کالونی","Roman Urdu":"Haryana Colony","English":"Haryana Colony"}},{"province":"sindh","city":"karachi","town":"orangi","name":"hanifabad","label":{"Urdu":"حنیف آباد","Roman Urdu":"Hanifabad","English":"Hanifabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"mohammad_nagar","label":{"Urdu":"محمد نگر","Roman Urdu":"Mohammad Nagar","English":"Mohammad Nagar"}},{"province":"sindh","city":"karachi","town":"orangi","name":"madina_colony_orangi","label":{"Urdu":"مدینہ کالونی اورنگی","Roman Urdu":"Madina Colony Orangi","English":"Madina Colony Orangi"}},{"province":"sindh","city":"karachi","town":"orangi","name":"ghaziabad","label":{"Urdu":"غازی آباد","Roman Urdu":"Ghaziabad","English":"Ghaziabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"chisti_nagar","label":{"Urdu":"چشتی نگر","Roman Urdu":"Chisti Nagar","English":"Chisti Nagar"}},{"province":"sindh","city":"karachi","town":"orangi","name":"bilal_colony_orangi","label":{"Urdu":"بلال کالونی اورنگی","Roman Urdu":"Bilal Colony Orangi","English":"Bilal Colony Orangi"}},{"province":"sindh","city":"karachi","town":"orangi","name":"iqbal_baloch_colony","label":{"Urdu":"اقبال بلوچ کالونی","Roman Urdu":"Iqbal Baloch Colony","English":"Iqbal Baloch Colony"}},{"province":"sindh","city":"karachi","town":"orangi","name":"ghabool_town","label":{"Urdu":"گبول ٹاوَن","Roman Urdu":"Ghabool Town","English":"Ghabool Town"}},{"province":"sindh","city":"karachi","town":"orangi","name":"data_nagar","label":{"Urdu":"داتا نگر","Roman Urdu":"Data Nagar","English":"Data Nagar"}},{"province":"sindh","city":"karachi","town":"orangi","name":"mujahidabad","label":{"Urdu":"مجاہد آباد","Roman Urdu":"Mujahidabad","English":"Mujahidabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"baloch_goth","label":{"Urdu":"بلوچ گوٹھ","Roman Urdu":"Baloch Goth","English":"Baloch Goth"}},{"province":"sindh","city":"karachi","town":"saddar","name":"old_haji_camp","label":{"Urdu":"پرانہ حاجی کیمپ","Roman Urdu":"Old Haji Camp","English":"Old Haji Camp"}},{"province":"sindh","city":"karachi","town":"saddar","name":"garden","label":{"Urdu":"گارڈن","Roman Urdu":"Garden","English":"Garden"}},{"province":"sindh","city":"karachi","town":"saddar","name":"kharadar","label":{"Urdu":"کھارادر","Roman Urdu":"Kharadar","English":"Kharadar"}},{"province":"sindh","city":"karachi","town":"saddar","name":"city_railway_colony","label":{"Urdu":"سٹی ریلوے کالونی","Roman Urdu":"City Railway Colony","English":"City Railway Colony"}},{"province":"sindh","city":"karachi","town":"saddar","name":"nanak_wara","label":{"Urdu":"ناناک واڑا","Roman Urdu":"Nanak Wara","English":"Nanak Wara"}},{"province":"sindh","city":"karachi","town":"saddar","name":"gazdarabad","label":{"Urdu":"گزدرآباد","Roman Urdu":"Gazdarabad","English":"Gazdarabad"}},{"province":"sindh","city":"karachi","town":"saddar","name":"millat_nagar_islam_pura","label":{"Urdu":"ملت نگر اسلام پورا","Roman Urdu":"Millat Nagar/Islam Pura","English":"Millat Nagar/Islam Pura"}},{"province":"sindh","city":"karachi","town":"saddar","name":"saddar_uc","label":{"Urdu":"صدر یو سی","Roman Urdu":"Saddar UC","English":"Saddar UC"}},{"province":"sindh","city":"karachi","town":"saddar","name":"civil_line","label":{"Urdu":"سول لائن","Roman Urdu":"Civil Line","English":"Civil Line"}},{"province":"sindh","city":"karachi","town":"saddar","name":"clifton","label":{"Urdu":"کلفٹن","Roman Urdu":"Clifton","English":"Clifton"}},{"province":"sindh","city":"karachi","town":"saddar","name":"kehkashan","label":{"Urdu":"کہکشان","Roman Urdu":"Kehkashan","English":"Kehkashan"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"natha_khan_goth","label":{"Urdu":"ناتھا خان گوٹھ","Roman Urdu":"Natha Khan Goth","English":"Natha Khan Goth"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"pak_sadat_colony","label":{"Urdu":"پاک صدر کالونی","Roman Urdu":"Pak Sadat Colony","English":"Pak Sadat Colony"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"drigh_colony","label":{"Urdu":"ڈرگ کالونی","Roman Urdu":"Drigh Colony","English":"Drigh Colony"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"raita_plot","label":{"Urdu":"رائتا پلاٹ","Roman Urdu":"Raita Plot","English":"Raita Plot"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"moria_khan_goth","label":{"Urdu":"موریا خان گوٹھ","Roman Urdu":"Moria Khan Goth","English":"Moria Khan Goth"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"rafa_e_aam_society","label":{"Urdu":"رفا عام سوسا ئٹی","Roman Urdu":"Rafa-e-Aam Society","English":"Rafa-e-Aam Society"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"al_falah_society","label":{"Urdu":"الفلاح سوسا ئٹی","Roman Urdu":"Al-Falah Society","English":"Al-Falah Society"}},{"province":"sindh","city":"karachi","town":"site","name":"pak_colony","label":{"Urdu":"پاک کالونی","Roman Urdu":"Pak Colony","English":"Pak Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"old_golimar","label":{"Urdu":"پرانہ گولی مار","Roman Urdu":"Old Golimar","English":"Old Golimar"}},{"province":"sindh","city":"karachi","town":"site","name":"jahanabad","label":{"Urdu":"جہان آباد","Roman Urdu":"Jahanabad","English":"Jahanabad"}},{"province":"sindh","city":"karachi","town":"site","name":"metrovil","label":{"Urdu":"میٹروویل","Roman Urdu":"Metrovil","English":"Metrovil"}},{"province":"sindh","city":"karachi","town":"site","name":"bhawani_chali","label":{"Urdu":"بہوانی چالی","Roman Urdu":"Bhawani Chali","English":"Bhawani Chali"}},{"province":"sindh","city":"karachi","town":"site","name":"frontier_colony","label":{"Urdu":"فرونٹر کالونی","Roman Urdu":"Frontier Colony","English":"Frontier Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"banaras_colony","label":{"Urdu":"بنارس کالونی","Roman Urdu":"Banaras Colony","English":"Banaras Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"qasba_colony","label":{"Urdu":"قصبہ کالونی","Roman Urdu":"Qasba Colony","English":"Qasba Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"islamia_colony","label":{"Urdu":"اسلامیہ کالونی","Roman Urdu":"Islamia Colony","English":"Islamia Colony"}},{"province":"na","city":"na","town":"na","name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}},{"province":"na","city":"na","town":"na","name":"not_applicable","label":{"Urdu":"قابل اطلاق نہیں","Roman Urdu":"Qaabil-e-atlaaq nahi","English":"Not Applicable"}}],"gender":[{"instance":{"openmrs_code":"1534AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"male","label":{"Urdu":"مرد/ لڑکا","Roman Urdu":"Mard/larka","English":"Male"}},{"instance":{"openmrs_code":"1535AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"female","label":{"Urdu":"عورت/لڑکی","Roman Urdu":"Aurat/larki","English":"Female"}},{"instance":{"openmrs_code":"163163AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"transgender","label":{"Urdu":"خواجہ سرہ","Roman Urdu":"Khwaja sira","English":"Transgender"}}],"vaccines":[{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT1","label":{"Urdu":"ٹی ٹی 1","Roman Urdu":"TT1","English":"TT1"}},{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT2","label":{"Urdu":"ٹی ٹی 2","Roman Urdu":"TT2","English":"TT2"}},{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT3","label":{"Urdu":"ٹی ٹی 3","Roman Urdu":"TT3","English":"TT3"}},{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT4","label":{"Urdu":"ٹی ٹی 4","Roman Urdu":"TT4","English":"TT4"}},{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT5","label":{"Urdu":"ٹی ٹی 5","Roman Urdu":"TT5","English":"TT5"}}],"towns":[{"province":"sindh","city":"karachi","name":"korangi","label":{"Urdu":"کورنگی","Roman Urdu":"Korangi","English":"Korangi"}},{"province":"sindh","city":"karachi","name":"landhi","label":{"Urdu":"لانڈھی","Roman Urdu":"Landhi","English":"Landhi"}},{"province":"sindh","city":"karachi","name":"baldia","label":{"Urdu":"بلدیہ","Roman Urdu":"Baldia","English":"Baldia"}},{"province":"sindh","city":"karachi","name":"bin_qasim","label":{"Urdu":"بن قاسم","Roman Urdu":"Bin Qasim","English":"Bin Qasim"}},{"province":"sindh","city":"karachi","name":"gadap","label":{"Urdu":"گڈاپ","Roman Urdu":"Gadap","English":"Gadap"}},{"province":"sindh","city":"karachi","name":"gulberg","label":{"Urdu":"گلبرگ","Roman Urdu":"Gulberg","English":"Gulberg"}},{"province":"sindh","city":"karachi","name":"gulshan","label":{"Urdu":"گلشن","Roman Urdu":"Gulshan","English":"Gulshan"}},{"province":"sindh","city":"karachi","name":"jamshed","label":{"Urdu":"جمشید","Roman Urdu":"Jamshed","English":"Jamshed"}},{"province":"sindh","city":"karachi","name":"kiamari","label":{"Urdu":"کیماری","Roman Urdu":"Kiamari","English":"Kiamari"}},{"province":"sindh","city":"karachi","name":"liaquatabad","label":{"Urdu":"لیاقت آباد","Roman Urdu":"Liaquatabad","English":"Liaquatabad"}},{"province":"sindh","city":"karachi","name":"lyari","label":{"Urdu":"لیاری","Roman Urdu":"Lyari","English":"Lyari"}},{"province":"sindh","city":"karachi","name":"malir","label":{"Urdu":"ملیر","Roman Urdu":"Malir","English":"Malir"}},{"province":"sindh","city":"karachi","name":"new_karachi","label":{"Urdu":"نیو کراچی","Roman Urdu":"New Karachi","English":"New Karachi"}},{"province":"sindh","city":"karachi","name":"north_nazimabad","label":{"Urdu":"نارتھ ناظم آباد","Roman Urdu":"North Nazimabad","English":"North Nazimabad"}},{"province":"sindh","city":"karachi","name":"orangi","label":{"Urdu":"اورنگی","Roman Urdu":"Orangi","English":"Orangi"}},{"province":"sindh","city":"karachi","name":"saddar","label":{"Urdu":"صدر","Roman Urdu":"Saddar","English":"Saddar"}},{"province":"sindh","city":"karachi","name":"shah_faisal","label":{"Urdu":"شاہ فیصل","Roman Urdu":"Shah Faisal","English":"Shah Faisal"}},{"province":"sindh","city":"karachi","name":"site","label":{"Urdu":"سائٹ","Roman Urdu":"S.I.T.E.","English":"S.I.T.E."}},{"province":"na","city":"na","name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}},{"province":"na","city":"na","name":"not_applicable","label":{"Urdu":"قابل اطلاق نہیں","Roman Urdu":"Qaabil-e-atlaaq nahi","English":"Not Applicable"}}],"cities":[{"province":"sindh","name":"karachi","label":{"Urdu":"کراچی","Roman Urdu":"Karachi","English":"Karachi"}},{"province":"punjab","name":"hafizabad","label":{"Urdu":"حافظ آباد","Roman Urdu":"Hafizabad","English":"Hafizabad"}},{"province":"punjab","name":"muzaffargarh","label":{"Urdu":"مظفر گڑھ","Roman Urdu":"Muzaffargarh","English":"Muzaffargarh"}},{"province":"na","name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}},{"province":"na","name":"not_applicable","label":{"Urdu":"قابل اطلاق نہیں","Roman Urdu":"Not Applicable","English":"Not Applicable"}}],"edd_lmp":[{"instance":{"openmrs_code":"5596AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"edd","label":{"Urdu":"زچگی کی متوقع تاریخ","Roman Urdu":"EDD","English":"EDD"}},{"instance":{"openmrs_code":"1427AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"lmp","label":{"Urdu":"پچھلی مہواری کی تاریخ","Roman Urdu":"LMP","English":"LMP"}},{"instance":{"openmrs_code":"159617AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ultrasound","label":{"Urdu":"الٹرا سائونڈ","Roman Urdu":"Ultrasound","English":"Ultrasound"}},{"instance":{"openmrs_code":"1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"none","label":{"Urdu":"کوئی بھی نہیں","Roman Urdu":"Koi bhi nahi","English":"None of the above"}}],"ethnicity":[{"instance":{"openmrs_code":"163215AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"punjabi","label":{"Urdu":"پنجابی","Roman Urdu":"Punjabi","English":"Punjabi"}},{"instance":{"openmrs_code":"163216AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pushtuns","label":{"Urdu":"پشتون","Roman Urdu":"Pushtun","English":"Pushtun"}},{"instance":{"openmrs_code":"163217AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"sindhi","label":{"Urdu":"سندھی","Roman Urdu":"Sindhi","English":"Sindhi"}},{"instance":{"openmrs_code":"163218AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"saraiki","label":{"Urdu":"سرائیکی","Roman Urdu":"Saraiki","English":"Saraiki"}},{"instance":{"openmrs_code":"163219AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"muhajir","label":{"Urdu":"مہاجر","Roman Urdu":"Muhajir","English":"Muhajir"}},{"instance":{"openmrs_code":"163220AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"balochi","label":{"Urdu":"بلوچی","Roman Urdu":"Balochi","English":"Balochi"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}}],"yes_no":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}]},"instance":{"encounter_type":"Woman TT enrollment"},"version":"201604080500","id_string":"woman_tt_enrollement_form","type":"survey","children":[{"type":"hidden","name":"provider_uc"},{"type":"hidden","name":"provider_town"},{"type":"hidden","name":"provider_city"},{"type":"hidden","name":"provider_province"},{"type":"hidden","name":"provider_id"},{"instance":{"openmrs_entity_id":"location_id","openmrs_entity":"encounter"},"type":"hidden","name":"provider_location_id"},{"instance":{"openmrs_entity_id":"Program Client ID","openmrs_entity":"person_identifier"},"type":"hidden","name":"existing_program_client_id"},{"type":"hidden","name":"provider_location_name"},{"instance":{"openmrs_entity_id":"gender","openmrs_entity":"person"},"type":"hidden","name":"gender"},{"type":"note","name":"provider_location_note","label":{"Urdu":"شہر: ${provider_city} ; ٹائون: ${provider_town} ; یوسی: ${provider_uc} ; سینٹرکا نام: ${provider_location_name}","English":"City: ${provider_city} ; Town: ${provider_town} ; UC: ${provider_uc} ; Center Name: ${provider_location_name}","Roman Urdu":"Shehr: ${provider_city} ; Town: ${provider_town} ; UC: ${provider_uc} ; Center ka naam: ${provider_location_name}"}},{"instance":{"openmrs_entity_id":"163137AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"start","name":"start"},{"instance":{"openmrs_entity_id":"163138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"end","name":"end"},{"instance":{"openmrs_entity_id":"163286AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"today","name":"today"},{"instance":{"openmrs_entity_id":"163149AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"deviceid","name":"deviceid"},{"instance":{"openmrs_entity_id":"163150AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"subscriberid","name":"subscriberid"},{"instance":{"openmrs_entity_id":"163151AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"simserial","name":"simserial"},{"instance":{"openmrs_entity_id":"163152AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"phonenumber","name":"phonenumber"},{"name":"client_reg_date","hint":{"Urdu":"خاتون کو ویکسین لگنے کی تاریخ","English":"Date on which woman was vaccinated","Roman Urdu":"Khatoon ko vaccine lagnay ki tareekh"},"bind":{"jr:constraintMsg":{"Urdu":"پروگرام مین اندراج کی تاریخ مستقبل کی نہیں ہوسکتی","English":"Client registration date cannot be in the future","Roman Urdu":"Program mai andraaj ki tareekh mustaqbil ki nahi hosakti"},"required":"yes","constraint":".<=${today}"},"label":{"Urdu":"پروگرام میں اندراج کی تاریخ","English":"Client Registration date","Roman Urdu":"Program mai andraj ki tareekh"},"instance":{"openmrs_entity_id":"encounter_date","openmrs_entity":"encounter"},"type":"date"},{"bind":{"required":"yes"},"type":"note","name":"program_client_id","label":{"Urdu":"کلائنٹ کی پروگرام آئی ڈی {existing_program_client_id}$","Roman Urdu":"Client ki program ID ${existing_program_client_id}","English":"Program Client ID ${existing_program_client_id}"}},{"bind":{"jr:constraintMsg":{"Urdu":"نمبر آٹھ ہندسوں پر مشتمل ہونا چاہئے","English":"Number should be 8 digits","Roman Urdu":"Number 8 hindason par mushtamil hona chahiye"},"required":"yes","constraint":"string-length(.) = 8"},"type":"integer","instance":{"openmrs_entity_id":"EPI Card Number","openmrs_entity":"person_attribute"},"name":"epi_card_number","label":{"Urdu":"کارڈ نمبر","English":"EPI Card Number","Roman Urdu":"EPI Card Number"}},{"bind":{"jr:constraintMsg":{"Urdu":"نام تین سے پچیس حروف پر مشتمل ہونا چاہئے","English":"Name should be 3 to 25 characters long","Roman Urdu":"Naam 3 say 25 huroof par mushtamil hona chahiye"},"required":"yes","constraint":"regex(., '^[a-zA-Z\\s\\.\\-]{3,25}$')"},"type":"text","instance":{"openmrs_entity_id":"first_name","openmrs_entity":"person"},"name":"first_name","label":{"Urdu":"نام","English":"First Name","Roman Urdu":"Naam"}},{"default":"yes","label":{"Urdu":"کیا تاریخ پیدائش معلوم ہے؟","Roman Urdu":"Kya tareekh-e-pedaaish maloom hai?","English":"Is birthdate known?"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}],"name":"member_birth_date_known"},{"bind":{"jr:constraintMsg":{"Urdu":"یہ تاریخ مستقبل کی نہیں ہوسکتی","Roman Urdu":"Ye tareekh mustaqbil ki nahi hosakti","English":"This date cannot be in the future"},"relevant":"selected(${member_birth_date_known}, 'yes')","constraint":".<=${today}"},"type":"date","name":"member_birth_date","label":{"Urdu":"تاریخ پیدائش","Roman Urdu":"Tareekh-e-pedaaish","English":"Birth date"}},{"bind":{"relevant":"selected(${member_birth_date_known}, 'no')"},"type":"integer","name":"age","label":{"Urdu":"عمر (سالوں میں)","Roman Urdu":"Umar (saalon me)","English":"Age (years)"}},{"bind":{"calculate":"int((${today} - ${member_birth_date}) div 365.25)"},"type":"calculate","name":"calc_age"},{"bind":{"calculate":"date(${today} - int(${age} * 365.25))"},"type":"calculate","name":"calc_dob"},{"bind":{"calculate":"if(${member_birth_date_known}='yes', ${member_birth_date}, ${calc_dob})"},"type":"calculate","name":"calc_dob_confirm","instance":{"openmrs_entity_id":"birthdate","openmrs_entity":"person"}},{"bind":{"calculate":"if(${member_birth_date_known} = 'yes', '0', '1')"},"type":"calculate","name":"calc_dob_estimated","instance":{"openmrs_entity_id":"birthdate_estimated","openmrs_entity":"person"}},{"bind":{"calculate":"if(${member_birth_date_known}='yes', ${calc_age}, ${age})"},"type":"calculate","name":"calc_age_confirm","instance":{"openmrs_entity_id":"154384AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"type":"note","name":"birth_date_note","label":{"Urdu":"کلائنٹ کی تاریخ پیدائش:${calc_dob_confirm}","English":"Date of Birth: ${calc_dob_confirm}","Roman Urdu":"Member ki Tareekh-e-pedaaish: ${calc_dob_confirm}"}},{"type":"note","name":"note_age","label":{"Urdu":"عمر :{calc_age_confirm}$ سال","English":"Age: ${calc_age_confirm} years","Roman Urdu":"Umar: ${calc_age_confirm} saal"}},{"default":"female","bind":{"required":"yes","calculate":"concat(\"female\",\"\")"},"type":"calculate","name":"gender1","label":{"Urdu":"جنس","Roman Urdu":"Jins","English":"Gender"}},{"bind":{"jr:constraintMsg":{"Urdu":"نام تین سے پچیس حروف پر مشتمل ہونا چاہئے","English":"Name should be 3 to 25 characters long","Roman Urdu":"Naam 3 say 25 huroof par mushtamil hona chahiye"},"constraint":"regex(., '^[a-zA-Z\\s\\.\\-]{3,25}$')"},"type":"text","instance":{"openmrs_entity_id":"1594AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"father_name","label":{"Urdu":"والد کا نام","English":"Father's Name","Roman Urdu":"Waalid ka naam"}},{"label":{"Urdu":"کیا آپ شادی شدہ ہیں؟","English":"Are you married?","Roman Urdu":"Kya aap shaadi shuda hain?"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}],"name":"marriage"},{"bind":{"jr:constraintMsg":{"Urdu":"نام تین سے پچیس حروف پر مشتمل ہونا چاہئے","English":"Name should be 3 to 25 characters long","Roman Urdu":"Naam 3 say 25 huroof par mushtamil hona chahiye"},"relevant":"selected(${marriage}, 'yes')","constraint":"regex(., '^[a-zA-Z\\s\\.\\-]{3,25}$')"},"type":"text","instance":{"openmrs_entity_id":"161135AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"husband_name","label":{"Urdu":"شوہر کا نام","English":"Husband's Name","Roman Urdu":"Shohar ka naam"}},{"bind":{"calculate":"if(${marriage} = 'no', ${father_name}, ${husband_name})"},"type":"calculate","name":"last_name","instance":{"openmrs_entity_id":"last_name","openmrs_entity":"person"}},{"control":{"appearance":"minimal"},"name":"ethnicity","bind":{"required":"yes"},"label":{"Urdu":"قومیت","English":"Ethnicity","Roman Urdu":"Qomiat"},"instance":{"openmrs_entity_id":"163153AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"163215AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"punjabi","label":{"Urdu":"پنجابی","Roman Urdu":"Punjabi","English":"Punjabi"}},{"instance":{"openmrs_code":"163216AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pushtuns","label":{"Urdu":"پشتون","Roman Urdu":"Pushtun","English":"Pushtun"}},{"instance":{"openmrs_code":"163217AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"sindhi","label":{"Urdu":"سندھی","Roman Urdu":"Sindhi","English":"Sindhi"}},{"instance":{"openmrs_code":"163218AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"saraiki","label":{"Urdu":"سرائیکی","Roman Urdu":"Saraiki","English":"Saraiki"}},{"instance":{"openmrs_code":"163219AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"muhajir","label":{"Urdu":"مہاجر","Roman Urdu":"Muhajir","English":"Muhajir"}},{"instance":{"openmrs_code":"163220AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"balochi","label":{"Urdu":"بلوچی","Roman Urdu":"Balochi","English":"Balochi"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}}]},{"bind":{"relevant":"selected(${ethnicity}, 'other')"},"type":"text","instance":{"openmrs_entity":"concept","openmrs_entity_id":"160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"163330AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ethnicity_other","label":{"Urdu":"وضاحت کریں","Roman Urdu":"Wazaahat karain","English":"Please specify:"}},{"control":{"appearance":"minimal"},"name":"province","default":"${provider_province}","bind":{"required":"yes"},"label":{"Urdu":"صوبہ","Roman Urdu":"Suba","English":"Province"},"instance":{"openmrs_entity":"person_address","openmrs_entity_id":"stateProvince","openmrs_entity_parent":"usual_residence"},"type":"select one","children":[{"name":"kpk","label":{"Urdu":"خیبر پختون خواہ","English":"Khyber Pakhtunkhwa","Roman Urdu":"Khyber Pakhtunkhwa"}},{"name":"sindh","label":{"Urdu":"سندھ","English":"Sindh","Roman Urdu":"Sindh"}},{"name":"balochistan","label":{"Urdu":"بلوچستان","English":"Balochistan","Roman Urdu":"Balochistan"}},{"name":"punjab","label":{"Urdu":"پنجاب","English":"Punjab","Roman Urdu":"Punjab"}},{"name":"gilgit_baltistan","label":{"Urdu":"گلگت بلتستان","English":"Gilgit Baltistan","Roman Urdu":"Gilgit Baltistan"}},{"name":"kashmir","label":{"Urdu":"کشمیر","English":"Kashmir","Roman Urdu":"Kashmir"}},{"name":"fata","label":{"Urdu":"فاٹا","English":"FATA","Roman Urdu":"FATA"}},{"name":"out_of_country","label":{"Urdu":"ملک سے باہر","English":"Out of Country","Roman Urdu":"Mulk se baahir"}}]},{"control":{"appearance":"minimal"},"name":"city_village","choice_filter":"province=${province} or province='na'","default":"${provider_city}","bind":{"required":"yes"},"label":{"Urdu":"شہر","Roman Urdu":"Shehr","English":"City"},"itemset":"cities","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"cityVillage","openmrs_entity_parent":"usual_residence"},"type":"select one"},{"control":{"appearance":"minimal"},"name":"town","choice_filter":"(province=${province} and city=${city_village} ) or city='na'","bind":{"required":"yes"},"label":{"Urdu":"ٹاٰئون/ قصبہ/ بستی","Roman Urdu":"Town / Qasbah / Basti","English":"Town"},"itemset":"towns","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"town","openmrs_entity_parent":"usual_residence"},"type":"select one"},{"control":{"appearance":"minimal"},"name":"union_council","choice_filter":"(province=${province} and city=${city_village} and town=${town}) or town='na'","bind":{"required":"yes"},"label":{"Urdu":"یونین کونسل","Roman Urdu":"Union Council","English":"Union Council"},"itemset":"ucs","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"subTown","openmrs_entity_parent":"usual_residence"},"type":"select one"},{"bind":{"required":"yes"},"type":"text","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"house","openmrs_entity_parent":"usual_residence"},"name":"house_number","label":{"Urdu":"گھر کا نمبر","Roman Urdu":"Ghar ka number","English":"House Number"}},{"bind":{"required":"yes"},"type":"text","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"street","openmrs_entity_parent":"usual_residence"},"name":"street","label":{"Urdu":"گلی/کالونی/محلہ","Roman Urdu":"Gali/Colony/Mohalla","English":"Street"}},{"bind":{"required":"yes"},"type":"text","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"landmark","openmrs_entity_parent":"usual_residence"},"name":"landmark","label":{"Urdu":"گھر کے قریب کوئی مشہور جگہ","Roman Urdu":"Ghar ke qareeb koi mashoor jagah","English":"Land Mark"}},{"bind":{"calculate":"jr:choice-name(${province}, '${province}')"},"type":"calculate","name":"provincename"},{"bind":{"calculate":"jr:choice-name(${city_village}, '${city_village}')"},"type":"calculate","name":"city_villagename"},{"bind":{"calculate":"jr:choice-name(${town}, '${town}')"},"type":"calculate","name":"townname"},{"bind":{"calculate":"jr:choice-name(${union_council}, '${union_council}')"},"type":"calculate","name":"union_councilname"},{"type":"note","name":"address","label":{"Urdu":"پتہ: ${house_number}, ${street}, ${landmark}, ${union_councilname}, ${townname}, ${city_villagename}, ${provincename}","English":"Address: ${house_number}, ${street}, ${landmark}, ${union_councilname}, ${townname}, ${city_villagename}, ${provincename}","Roman Urdu":"Pata: ${house_number}, ${street}, ${landmark}, ${union_councilname}, ${townname}, ${city_villagename}, ${provincename}"}},{"instance":{"openmrs_entity_id":"163277AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"geopoint","name":"centre_gps","label":{"Urdu":"حاصل کردہ معلومات کی جگہ کے GPS کارڈینیٹس درج کریں","English":"Collect GPS coordinates of data entry location","Roman Urdu":"Hasil karda malomaat ki jaga ke GPS coordinates darj karain"}},{"name":"reminders_approval","bind":{"required":"yes"},"label":{"Urdu":"کیا آپ اپنے بچے کی اگلی ویکسین کی تاریخ کے لیے SMS موصول کرنا چاہتے ہیں؟","English":"Are you willing to receive SMS reminders for your next visit?","Roman Urdu":"Kya aap apnay bachay ki agli vaccine ki tareekh ke liye SMS mausool karna chahtay hain?"},"instance":{"openmrs_entity_id":"163089AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}]},{"bind":{"jr:constraintMsg":{"Urdu":"فون نمبر گیارہ ہندسوں پر مشتمل اور مندرجہ ذیل شکل میں ہونا چاہئے: *********03","English":"Phone number should be 11 digits in the following format: 03*********","Roman Urdu":"Phone number 11 hindason par mushtamil aur mundarja zail shakal main hona chahiey: 03*********"},"relevant":"${reminders_approval}='yes'","constraint":"regex(., '^03[0-9]{9}$')"},"type":"text","instance":{"openmrs_entity_id":"159635AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"contact_phone_number","label":{"Urdu":"موبائل نمبر:","English":"Mobile Number:","Roman Urdu":"Mobile number:"}},{"instance":{"openmrs_entity_id":"5272AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"label":{"Urdu":"کیا خا تون حاملہ ہیں؟","English":"Is female pregnant?","Roman Urdu":"Kia khatoon haamla hain?"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}],"name":"pregnant"},{"name":"edd_lmp","bind":{"relevant":"selected (${pregnant}, 'yes')"},"label":{"Urdu":"کیا آپ کو اپنی پچھلی ماہواری کی تاریخ، زچگی کی متوقع تاریخ، یا الٹرا سائونڈ کا علم ہے؟","English":"Do you know your LMP, EDD or last Ultrasound information?","Roman Urdu":"Kya aap ko apni pichli mahwaari ki tareekh, zachgi ki mutawaqqa tareekh ya ultrasound ka ilm hai?"},"instance":{"openmrs_entity_id":"160697AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"5596AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"edd","label":{"Urdu":"زچگی کی متوقع تاریخ","Roman Urdu":"EDD","English":"EDD"}},{"instance":{"openmrs_code":"1427AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"lmp","label":{"Urdu":"پچھلی مہواری کی تاریخ","Roman Urdu":"LMP","English":"LMP"}},{"instance":{"openmrs_code":"159617AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ultrasound","label":{"Urdu":"الٹرا سائونڈ","Roman Urdu":"Ultrasound","English":"Ultrasound"}},{"instance":{"openmrs_code":"1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"none","label":{"Urdu":"کوئی بھی نہیں","Roman Urdu":"Koi bhi nahi","English":"None of the above"}}]},{"bind":{"jr:constraintMsg":{"Urdu":"زچگی کی متوقع تاریخ ماضی کی نہیں ہو سکتی","Roman Urdu":"Zachgi ki mutawaqqa tareekh maazi ki nahi hosakti","English":"EDD cannot be in the past"},"relevant":"selected (${edd_lmp}, 'edd')","constraint":".>=${today}"},"type":"date","name":"edd","label":{"Urdu":"زچگی کی متوقع تاریخ","Roman Urdu":"Zachgi ki mutawaqqa tareekh","English":"EDD"}},{"bind":{"jr:constraintMsg":{"Urdu":"پچھلی ماہواری کی تاریخ مستقبل کی نہیں ہوسکتی","Roman Urdu":"Pichli mahwaari ki tareekh mustaqbil ki nahi hosakti","English":"LMP cannot be in the future"},"relevant":"selected (${edd_lmp}, 'lmp')","constraint":".<=${today}"},"type":"date","name":"lmp","label":{"Urdu":"پچھلی ماہواری کی تاریخ","Roman Urdu":"Pichli mahwaari ki tareekh","English":"LMP"}},{"bind":{"relevant":"selected (${edd_lmp}, 'ultrasound')"},"type":"date","instance":{"openmrs_entity_id":"163165AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"ultrasound_date","label":{"Urdu":"الٹرا سائونڈ کی تاریخ","English":"Ultrasound Date","Roman Urdu":"Ultrasound ki tareekh"}},{"bind":{"relevant":"selected (${edd_lmp}, 'ultrasound')"},"type":"integer","name":"ultrasound_weeks","label":{"Urdu":"الٹرا سائونڈ کی مدد سے حمل کی مدت [ہفتوں میں]","Roman Urdu":"Ultrasound ki madad se hamal ki muddat (hafton me)","English":"Gestational age determined by ultrasound"}},{"bind":{"calculate":"date(${lmp}+280)"},"type":"calculate","name":"edd_calc_lmp"},{"bind":{"calculate":"date((280-(${ultrasound_weeks}*7)+${ultrasound_date} ))"},"type":"calculate","name":"edd_calc_ultrasound"},{"bind":{"calculate":"format-date(${edd_calc_lmp}, '%Y-%n-%e')"},"type":"calculate","name":"edd_calc_lmp_formatted"},{"bind":{"calculate":"format-date(${edd_calc_ultrasound}, '%Y-%n-%e')"},"type":"calculate","name":"edd_calc_ultrasound_formatted"},{"bind":{"calculate":"date(${edd}-280)"},"type":"calculate","name":"lmp_calc_edd"},{"bind":{"calculate":"date(${ultrasound_date}-(${ultrasound_weeks}*7))"},"type":"calculate","name":"lmp_calc_ultrasound"},{"bind":{"calculate":"format-date(${lmp_calc_edd}, '%Y-%n-%e')"},"type":"calculate","name":"lmp_calc_edd_formatted"},{"bind":{"calculate":"format-date(${lmp_calc_ultrasound}, '%Y-%n-%e')"},"type":"calculate","name":"lmp_calc_ultrasound_formatted"},{"bind":{"calculate":"if(${edd_lmp}='lmp',${edd_calc_lmp_formatted},if(${edd_lmp}='edd',${edd} ,if(${edd_lmp}='ultrasound',${edd_calc_ultrasound_formatted},'')))"},"type":"calculate","name":"final_edd","instance":{"openmrs_entity_id":"5596AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"bind":{"calculate":"if(${edd_lmp}='lmp',${lmp},if(${edd_lmp}='edd',${lmp_calc_edd_formatted} ,if(${edd_lmp}='ultrasound',${lmp_calc_ultrasound_formatted},'')))"},"type":"calculate","name":"final_lmp","instance":{"openmrs_entity_id":"1427AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"bind":{"calculate":"int((${today} - (${edd}-280))div7)"},"type":"calculate","name":"ga_edd"},{"bind":{"calculate":"int((${today} - ${lmp})div7)"},"type":"calculate","name":"ga_lmp"},{"bind":{"calculate":"int((${today} -(${ultrasound_date}-(${ultrasound_weeks}*7)))div7)"},"type":"calculate","name":"ga_ult"},{"bind":{"relevant":"selected (${pregnant}, 'yes')"},"type":"note","name":"final_edd_note","label":{"Urdu":"${final_edd}: زچگی کی متوقع تاریخ","Roman Urdu":"Zachgi ki mutawaqqa tareekh: ${final_edd}","English":"EDD: ${final_edd}"}},{"bind":{"relevant":"selected (${pregnant}, 'yes')"},"type":"note","name":"final_lmp_note","label":{"Urdu":"پچھلی ماہواری کی تاریخ :{final_lmp}$","Roman Urdu":"Pichli mahwaari ki tareekh: ${final_lmp}","English":"LMP: ${final_lmp}"}},{"bind":{"calculate":"if(${edd_lmp}='lmp',${ga_lmp},if(${edd_lmp}='edd',${ga_edd} ,if(${edd_lmp}='ultrasound',${ga_ult},'')))"},"type":"calculate","name":"final_ga","instance":{"openmrs_entity_id":"163166AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"bind":{"relevant":"selected (${pregnant}, 'yes')"},"type":"note","name":"final_ga_note","label":{"Urdu":"حمل کی مُدّت: {final_ga}$ ہفتے","Roman Urdu":"Hamal ki muddat: ${final_ga} weeks","English":"GA: ${final_ga} weeks"}},{"name":"vaccines","bind":{"calculate":"minimal"},"label":{"Urdu":"پچھلی تاریخ جب کسی اور سینٹر پر ٹیکہ لگوایا گیا یا قطرے پلائے گئے","Roman Urdu":"Pichli tareekh jab kissi aur center par teeka lagwaya gaya ya katray pilaey gaye","English":"Retro vaccines"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"984AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1421AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"select all that apply","children":[{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT1","label":{"Urdu":"ٹی ٹی 1","Roman Urdu":"TT1","English":"TT1"}},{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT2","label":{"Urdu":"ٹی ٹی 2","Roman Urdu":"TT2","English":"TT2"}},{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT3","label":{"Urdu":"ٹی ٹی 3","Roman Urdu":"TT3","English":"TT3"}},{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT4","label":{"Urdu":"ٹی ٹی 4","Roman Urdu":"TT4","English":"TT4"}},{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT5","label":{"Urdu":"ٹی ٹی 5","Roman Urdu":"TT5","English":"TT5"}}]},{"bind":{"relevant":"selected(${vaccines},'TT1')","constraint":"(.<=${today} and .<=${client_reg_date})"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tt1_retro","label":{"Urdu":"ٹی ٹی 1","Roman Urdu":"TT1","English":"TT1"}},{"bind":{"relevant":"selected(${vaccines},'TT1')","calculate":"1"},"type":"calculate","name":"tt_1_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines},'TT2')","constraint":"(.<=${today} and .>=${tt1_retro} and ((selected(${vaccines}, 'TT1'))))"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tt2_retro","label":{"Urdu":"ٹی ٹی 2","Roman Urdu":"TT2","English":"TT2"}},{"bind":{"relevant":"selected(${vaccines},'TT2')","calculate":"2"},"type":"calculate","name":"tt_2_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines},'TT3')","constraint":"(.<=${today} and .>=${tt2_retro} and ((selected(${vaccines}, 'TT2'))))"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tt3_retro","label":{"Urdu":"ٹی ٹی 3","Roman Urdu":"TT3","English":"TT3"}},{"bind":{"relevant":"selected(${vaccines},'TT3')","calculate":"3"},"type":"calculate","name":"tt_3_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines},'TT4')","constraint":"(.<=${today} and .>=${tt3_retro} and ((selected(${vaccines}, 'TT3'))))"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tt4_retro","label":{"Urdu":"ٹی ٹی 4","Roman Urdu":"TT4","English":"TT4"}},{"bind":{"relevant":"selected(${vaccines},'TT4')","calculate":"4"},"type":"calculate","name":"tt_4_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"name":"vaccines_2","choice_filter":"name = if(selected(${vaccines}, 'TT1'), '', 'TT1') or \nname = if(selected(${vaccines}, 'TT2'), '', 'TT2') or \nname = if(selected(${vaccines}, 'TT3'), '', 'TT3') or \nname = if(selected(${vaccines}, 'TT4'), '', 'TT4') or \nname = if(selected(${vaccines}, 'TT5'), '', 'TT5')","bind":{"required":"yes"},"label":{"Urdu":"آج کون کون سی ویکسین دی گئی ہیں؟","Roman Urdu":"Aaj kon kon si vaccine di gai hain?","English":"Vaccine administered today"},"itemset":"vaccines","instance":{"openmrs_entity":"concept","openmrs_entity_id":"984AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1441AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"select all that apply"},{"bind":{"calculate":"if(selected(${vaccines_2}, 'TT1'),${client_reg_date},'')"},"type":"calculate","name":"tt1","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2},'TT1')","calculate":"1"},"type":"calculate","name":"tt_1_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'TT2'),${client_reg_date},'')"},"type":"calculate","name":"tt2","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2},'TT2')","calculate":"2"},"type":"calculate","name":"tt_2_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'TT3'),${client_reg_date},'')"},"type":"calculate","name":"tt3","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2},'TT3')","calculate":"3"},"type":"calculate","name":"tt_3_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'TT4'),${client_reg_date},'')"},"type":"calculate","name":"tt4","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2},'TT4')","calculate":"4"},"type":"calculate","name":"tt_4_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'TT5'),${client_reg_date},'')"},"type":"calculate","name":"tt5","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2},'TT5')","calculate":"5"},"type":"calculate","name":"tt_5_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"control":{"bodyless":true},"type":"group","children":[{"bind":{"readonly":"true()","calculate":"concat('uuid:', uuid())"},"type":"calculate","name":"instanceID"}],"name":"meta"}]} \ No newline at end of file diff --git a/opensrp-connector/src/test/resources/form/woman_enrollment/form.xml b/opensrp-connector/src/test/resources/form/woman_enrollment/form.xml deleted file mode 100644 index ebbd597bbb..0000000000 --- a/opensrp-connector/src/test/resources/form/woman_enrollment/form.xml +++ /dev/null @@ -1,1550 +0,0 @@ -
- - -

خواتین انرولمنٹ فارم برائے ٹی ٹی ٹیکاجات - Woman TT Enrollment Form

-
-
- - کیا تاریخ پیدائش معلوم ہے؟ - Is birthdate known? - - Kya tareekh-e-pedaaish maloom hai? -
- - -
-
-
-
- - کیا آپ شادی شدہ ہیں؟ - Are you married? - - Kya aap shaadi shuda hain? -
- - -
-
-
-
- - کیا آپ اپنے بچے کی اگلی ویکسین کی تاریخ کے لیے SMS موصول کرنا چاہتے ہیں؟ - Are you willing to receive SMS reminders for your next visit? - - Kya aap apnay bachay ki agli vaccine ki tareekh ke liye SMS mausool karna chahtay hain? - * -
- - -
-
-
-
- - کیا خا تون حاملہ ہیں؟ - Is female pregnant? - - Kia khatoon haamla hain? -
- - -
-
-
-
- - کیا آپ کو اپنی پچھلی ماہواری کی تاریخ، زچگی کی متوقع تاریخ، یا الٹرا سائونڈ کا علم ہے؟ - Do you know your LMP, EDD or last Ultrasound information? - - Kya aap ko apni pichli mahwaari ki tareekh, zachgi ki mutawaqqa tareekh ya ultrasound ka ilm hai? -
- - - - -
-
-
-
- - پچھلی تاریخ جب کسی اور سینٹر پر ٹیکہ لگوایا گیا یا قطرے پلائے گئے - Retro vaccines - - Pichli tareekh jab kissi aur center par teeka lagwaya gaya ya katray pilaey gaye -
- - - - - -
-
-
-
- - آج کون کون سی ویکسین دی گئی ہیں؟ - Vaccine administered today - - Aaj kon kon si vaccine di gai hain? - * -
- - - ٹی ٹی 1 - TT1 - - TT1 - ٹی ٹی 2 - TT2 - - TT2 - ٹی ٹی 3 - TT3 - - TT3 - ٹی ٹی 4 - TT4 - - TT4 - ٹی ٹی 5 - TT5 - - TT5 -
-
-
- -
diff --git a/opensrp-connector/src/test/resources/form/woman_enrollment/form_definition.json b/opensrp-connector/src/test/resources/form/woman_enrollment/form_definition.json deleted file mode 100644 index 5d6cbabe33..0000000000 --- a/opensrp-connector/src/test/resources/form/woman_enrollment/form_definition.json +++ /dev/null @@ -1,311 +0,0 @@ -{ - "form_data_definition_version" : "1", - "form" : { - "bind_type" : "pkwoman", - "default_bind_path" : "/model/instance/Woman_TT_Enrollment_Form/", - "fields" : [ { - "name" : "id", - "shouldLoadValue" : true - }, { - "name" : "provider_uc", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/provider_uc", - "shouldLoadValue" : true - }, { - "name" : "provider_town", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/provider_town", - "shouldLoadValue" : true - }, { - "name" : "provider_city", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/provider_city", - "shouldLoadValue" : true - }, { - "name" : "provider_province", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/provider_province", - "shouldLoadValue" : true - }, { - "name" : "provider_id", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/provider_id", - "shouldLoadValue" : true - }, { - "name" : "provider_location_id", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/provider_location_id", - "shouldLoadValue" : true - }, { - "name" : "existing_program_client_id", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/existing_program_client_id", - "shouldLoadValue" : true - }, { - "name" : "provider_location_name", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/provider_location_name", - "shouldLoadValue" : true - }, { - "name" : "gender", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/gender", - "shouldLoadValue" : true - }, { - "name" : "provider_location_note", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/provider_location_note" - }, { - "name" : "start", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/start" - }, { - "name" : "end", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/end" - }, { - "name" : "today", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/today" - }, { - "name" : "deviceid", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/deviceid" - }, { - "name" : "subscriberid", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/subscriberid" - }, { - "name" : "simserial", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/simserial" - }, { - "name" : "phonenumber", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/phonenumber" - }, { - "name" : "client_reg_date", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/client_reg_date" - }, { - "name" : "program_client_id", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/program_client_id" - }, { - "name" : "epi_card_number", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/epi_card_number" - }, { - "name" : "first_name", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/first_name" - }, { - "name" : "birth_date_known", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/member_birth_date_known" - }, { - "name" : "birth_date", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/member_birth_date" - }, { - "name" : "age", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/age" - }, { - "name" : "calc_age", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/calc_age" - }, { - "name" : "calc_dob", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/calc_dob" - }, { - "name" : "dob", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/calc_dob_confirm" - }, { - "name" : "calc_dob_estimated", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/calc_dob_estimated" - }, { - "name" : "calc_age_confirm", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/calc_age_confirm" - }, { - "name" : "birth_date_note", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/birth_date_note" - }, { - "name" : "note_age", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/note_age" - }, { - "name" : "gender1", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/gender1" - }, { - "name" : "father_name", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/father_name" - }, { - "name" : "marriage", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/marriage" - }, { - "name" : "husband_name", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/husband_name" - }, { - "name" : "last_name", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/last_name" - }, { - "name" : "ethnicity", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/ethnicity" - }, { - "name" : "ethnicity_other", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/ethnicity_other" - }, { - "name" : "province", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/province" - }, { - "name" : "city_village", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/city_village" - }, { - "name" : "town", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/town" - }, { - "name" : "union_council", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/union_council" - }, { - "name" : "house_number", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/house_number" - }, { - "name" : "street", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/street" - }, { - "name" : "landmark", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/landmark" - }, { - "name" : "provincename", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/provincename" - }, { - "name" : "city_villagename", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/city_villagename" - }, { - "name" : "townname", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/townname" - }, { - "name" : "union_councilname", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/union_councilname" - }, { - "name" : "address", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/address" - }, { - "name" : "centre_gps", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/centre_gps" - }, { - "name" : "reminders_approval", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/reminders_approval" - }, { - "name" : "contact_phone_number", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/contact_phone_number" - }, { - "name" : "pregnant", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/pregnant" - }, { - "name" : "edd_lmp", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/edd_lmp" - }, { - "name" : "edd", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/edd" - }, { - "name" : "lmp", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/lmp" - }, { - "name" : "ultrasound_date", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/ultrasound_date" - }, { - "name" : "ultrasound_weeks", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/ultrasound_weeks" - }, { - "name" : "edd_calc_lmp", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/edd_calc_lmp" - }, { - "name" : "edd_calc_ultrasound", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/edd_calc_ultrasound" - }, { - "name" : "edd_calc_lmp_formatted", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/edd_calc_lmp_formatted" - }, { - "name" : "edd_calc_ultrasound_formatted", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/edd_calc_ultrasound_formatted" - }, { - "name" : "lmp_calc_edd", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/lmp_calc_edd" - }, { - "name" : "lmp_calc_ultrasound", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/lmp_calc_ultrasound" - }, { - "name" : "lmp_calc_edd_formatted", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/lmp_calc_edd_formatted" - }, { - "name" : "lmp_calc_ultrasound_formatted", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/lmp_calc_ultrasound_formatted" - }, { - "name" : "final_edd", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/final_edd" - }, { - "name" : "final_lmp", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/final_lmp" - }, { - "name" : "ga_edd", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/ga_edd" - }, { - "name" : "ga_lmp", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/ga_lmp" - }, { - "name" : "ga_ult", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/ga_ult" - }, { - "name" : "final_edd_note", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/final_edd_note" - }, { - "name" : "final_lmp_note", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/final_lmp_note" - }, { - "name" : "final_ga", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/final_ga" - }, { - "name" : "final_ga_note", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/final_ga_note" - }, { - "name" : "vaccines", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/vaccines" - }, { - "name" : "tt1_retro", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/tt1_retro" - }, { - "name" : "tt_1_dose", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/tt_1_dose" - }, { - "name" : "tt2_retro", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/tt2_retro" - }, { - "name" : "tt_2_dose", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/tt_2_dose" - }, { - "name" : "tt3_retro", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/tt3_retro" - }, { - "name" : "tt_3_dose", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/tt_3_dose" - }, { - "name" : "tt4_retro", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/tt4_retro" - }, { - "name" : "tt_4_dose", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/tt_4_dose" - }, { - "name" : "vaccines_2", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/vaccines_2" - }, { - "name" : "tt1", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/tt1" - }, { - "name" : "tt_1_dose_today", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/tt_1_dose_today" - }, { - "name" : "tt2", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/tt2" - }, { - "name" : "tt_2_dose_today", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/tt_2_dose_today" - }, { - "name" : "tt3", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/tt3" - }, { - "name" : "tt_3_dose_today", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/tt_3_dose_today" - }, { - "name" : "tt4", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/tt4" - }, { - "name" : "tt_4_dose_today", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/tt_4_dose_today" - }, { - "name" : "tt5", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/tt5" - }, { - "name" : "tt_5_dose_today", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/tt_5_dose_today" - }, { - "name" : "instanceID", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/meta/instanceID" - } ] - } -} \ No newline at end of file diff --git a/opensrp-connector/src/test/resources/form/woman_enrollment/form_submission.json b/opensrp-connector/src/test/resources/form/woman_enrollment/form_submission.json deleted file mode 100644 index 836ef1f491..0000000000 --- a/opensrp-connector/src/test/resources/form/woman_enrollment/form_submission.json +++ /dev/null @@ -1,580 +0,0 @@ -{ - "_id": "70c2c9b6fd400241fe78a328a302f798", - "_rev": "1-7039267b1d815eaa821e5345444aff6c", - "type": "FormSubmission", - "anmId": "demotest", - "instanceId": "de408c93-2ec5-40bc-a957-eaf375583e27", - "formName": "woman_enrollment", - "entityId": "69995674-bb29-4985-967a-fec8d372a475", - "clientVersion": 1459855439521, - "formDataDefinitionVersion": "1", - "formInstance": { - "form_data_definition_version": "1", - "form": { - "bind_type": "pkwoman", - "default_bind_path": "/model/instance/Woman_TT_Enrollment_Form/", - "fields": [ - { - "name": "id", - "value": "69995674-bb29-4985-967a-fec8d372a475", - "source": "pkwoman.id" - }, - { - "name": "provider_uc", - "value": "Zaman Town", - "source": "pkwoman.provider_uc" - }, - { - "name": "provider_town", - "value": "Korangi", - "source": "pkwoman.provider_town" - }, - { - "name": "provider_city", - "value": "Karachi", - "source": "pkwoman.provider_city" - }, - { - "name": "provider_province", - "value": "Sindh", - "source": "pkwoman.provider_province" - }, - { - "name": "provider_id", - "value": "demotest", - "source": "pkwoman.provider_id" - }, - { - "name": "provider_location_id", - "value": "Homeopathic Center", - "source": "pkwoman.provider_location_id" - }, - { - "name": "existing_program_client_id", - "value": "14608844", - "source": "pkwoman.existing_program_client_id" - }, - { - "name": "provider_location_name", - "value": "Homeopathic Center", - "source": "pkwoman.provider_location_name" - }, - { - "name": "gender", - "value": "female", - "source": "pkwoman.gender" - }, - { - "name": "provider_location_note", - "value": "", - "source": "pkwoman.provider_location_note" - }, - { - "name": "start", - "value": "2016-04-05 16:21:32", - "source": "pkwoman.start" - }, - { - "name": "end", - "value": "2016-04-05 16:23:59", - "source": "pkwoman.end" - }, - { - "name": "today", - "value": "2016-04-05", - "source": "pkwoman.today" - }, - { - "name": "deviceid", - "value": "Error: could not determine deviceID", - "source": "pkwoman.deviceid" - }, - { - "name": "subscriberid", - "value": "no subscriberid property in enketo", - "source": "pkwoman.subscriberid" - }, - { - "name": "simserial", - "value": "no simserial property in enketo", - "source": "pkwoman.simserial" - }, - { - "name": "phonenumber", - "value": "no phonenumber property in enketo", - "source": "pkwoman.phonenumber" - }, - { - "name": "client_reg_date", - "value": "2016-04-05", - "source": "pkwoman.client_reg_date" - }, - { - "name": "program_client_id", - "value": "14608844", - "source": "pkwoman.program_client_id" - }, - { - "name": "epi_card_number", - "value": "20160003", - "source": "pkwoman.epi_card_number" - }, - { - "name": "first_name", - "value": "barsaat", - "source": "pkwoman.first_name" - }, - { - "name": "birth_date_known", - "value": "yes", - "source": "pkwoman.birth_date_known" - }, - { - "name": "birth_date", - "value": "1979-04-05", - "source": "pkwoman.birth_date" - }, - { - "name": "age", - "value": "", - "source": "pkwoman.age" - }, - { - "name": "calc_age", - "value": "37", - "source": "pkwoman.calc_age" - }, - { - "name": "calc_dob", - "value": "Invalid Date", - "source": "pkwoman.calc_dob" - }, - { - "name": "dob", - "value": "1979-04-05", - "source": "pkwoman.dob" - }, - { - "name": "calc_dob_estimated", - "value": "0", - "source": "pkwoman.calc_dob_estimated" - }, - { - "name": "calc_age_confirm", - "value": "37", - "source": "pkwoman.calc_age_confirm" - }, - { - "name": "birth_date_note", - "value": "", - "source": "pkwoman.birth_date_note" - }, - { - "name": "note_age", - "source": "pkwoman.note_age" - }, - { - "name": "gender1", - "value": "female", - "source": "pkwoman.gender1" - }, - { - "name": "father_name", - "value": "samandar", - "source": "pkwoman.father_name" - }, - { - "name": "marriage", - "value": "yes", - "source": "pkwoman.marriage" - }, - { - "name": "husband_name", - "value": "badal", - "source": "pkwoman.husband_name" - }, - { - "name": "last_name", - "value": "badal", - "source": "pkwoman.last_name" - }, - { - "name": "ethnicity", - "value": "sindhi", - "source": "pkwoman.ethnicity" - }, - { - "name": "ethnicity_other", - "source": "pkwoman.ethnicity_other" - }, - { - "name": "province", - "value": "sindh", - "source": "pkwoman.province" - }, - { - "name": "city_village", - "value": "karachi", - "source": "pkwoman.city_village" - }, - { - "name": "town", - "value": "liaquatabad", - "source": "pkwoman.town" - }, - { - "name": "union_council", - "value": "sharifabad", - "source": "pkwoman.union_council" - }, - { - "name": "house_number", - "value": "6h", - "source": "pkwoman.house_number" - }, - { - "name": "street", - "value": "mohalla", - "source": "pkwoman.street" - }, - { - "name": "landmark", - "value": "nishaani", - "source": "pkwoman.landmark" - }, - { - "name": "provincename", - "value": "Sindh", - "source": "pkwoman.provincename" - }, - { - "name": "city_villagename", - "value": "Karachi", - "source": "pkwoman.city_villagename" - }, - { - "name": "townname", - "value": "Liaquatabad", - "source": "pkwoman.townname" - }, - { - "name": "union_councilname", - "value": "Sharifabad", - "source": "pkwoman.union_councilname" - }, - { - "name": "address", - "value": "", - "source": "pkwoman.address" - }, - { - "name": "centre_gps", - "value": "24.86391 67.07603 0 40.5", - "source": "pkwoman.centre_gps" - }, - { - "name": "pregnant", - "value": "no", - "source": "pkwoman.pregnant" - }, - { - "name": "edd_lmp", - "source": "pkwoman.edd_lmp" - }, - { - "name": "edd", - "value": "", - "source": "pkwoman.edd" - }, - { - "name": "lmp", - "value": "", - "source": "pkwoman.lmp" - }, - { - "name": "ultrasound_date", - "source": "pkwoman.ultrasound_date" - }, - { - "name": "ultrasound_weeks", - "value": "", - "source": "pkwoman.ultrasound_weeks" - }, - { - "name": "edd_calc_lmp", - "value": "Invalid Date", - "source": "pkwoman.edd_calc_lmp" - }, - { - "name": "edd_calc_ultrasound", - "value": "Invalid Date", - "source": "pkwoman.edd_calc_ultrasound" - }, - { - "name": "edd_calc_lmp_formatted", - "value": "Invalid Date", - "source": "pkwoman.edd_calc_lmp_formatted" - }, - { - "name": "edd_calc_ultrasound_formatted", - "value": "Invalid Date", - "source": "pkwoman.edd_calc_ultrasound_formatted" - }, - { - "name": "lmp_calc_edd", - "value": "Invalid Date", - "source": "pkwoman.lmp_calc_edd" - }, - { - "name": "lmp_calc_ultrasound", - "value": "Invalid Date", - "source": "pkwoman.lmp_calc_ultrasound" - }, - { - "name": "lmp_calc_edd_formatted", - "value": "Invalid Date", - "source": "pkwoman.lmp_calc_edd_formatted" - }, - { - "name": "lmp_calc_ultrasound_formatted", - "value": "Invalid Date", - "source": "pkwoman.lmp_calc_ultrasound_formatted" - }, - { - "name": "final_edd", - "source": "pkwoman.final_edd" - }, - { - "name": "final_lmp", - "source": "pkwoman.final_lmp" - }, - { - "name": "ga_edd", - "value": "NaN", - "source": "pkwoman.ga_edd" - }, - { - "name": "ga_lmp", - "value": "NaN", - "source": "pkwoman.ga_lmp" - }, - { - "name": "ga_ult", - "value": "NaN", - "source": "pkwoman.ga_ult" - }, - { - "name": "final_edd_note", - "value": "", - "source": "pkwoman.final_edd_note" - }, - { - "name": "final_lmp_note", - "value": "", - "source": "pkwoman.final_lmp_note" - }, - { - "name": "final_ga", - "source": "pkwoman.final_ga" - }, - { - "name": "final_ga_note", - "value": "", - "source": "pkwoman.final_ga_note" - }, - { - "name": "vaccines", - "value": "TT1 TT2", - "source": "pkwoman.vaccines" - }, - { - "name": "tt1_retro", - "value": "2015-09-05", - "source": "pkwoman.tt1_retro" - }, - { - "name": "tt_1_dose", - "value": "1", - "source": "pkwoman.tt_1_dose" - }, - { - "name": "tt2_retro", - "value": "2015-10-05", - "source": "pkwoman.tt2_retro" - }, - { - "name": "tt_2_dose", - "value": "2", - "source": "pkwoman.tt_2_dose" - }, - { - "name": "tt3_retro", - "source": "pkwoman.tt3_retro" - }, - { - "name": "tt_3_dose", - "source": "pkwoman.tt_3_dose" - }, - { - "name": "tt4_retro", - "source": "pkwoman.tt4_retro" - }, - { - "name": "tt_4_dose", - "source": "pkwoman.tt_4_dose" - }, - { - "name": "vaccines_2", - "value": "TT3", - "source": "pkwoman.vaccines_2" - }, - { - "name": "tt1", - "source": "pkwoman.tt1" - }, - { - "name": "tt_1_dose_today", - "source": "pkwoman.tt_1_dose_today" - }, - { - "name": "tt2", - "source": "pkwoman.tt2" - }, - { - "name": "tt_2_dose_today", - "source": "pkwoman.tt_2_dose_today" - }, - { - "name": "tt3", - "value": "2016-04-05", - "source": "pkwoman.tt3" - }, - { - "name": "tt_3_dose_today", - "value": "3", - "source": "pkwoman.tt_3_dose_today" - }, - { - "name": "tt4", - "source": "pkwoman.tt4" - }, - { - "name": "tt_4_dose_today", - "source": "pkwoman.tt_4_dose_today" - }, - { - "name": "tt5", - "source": "pkwoman.tt5" - }, - { - "name": "tt_5_dose_today", - "source": "pkwoman.tt_5_dose_today" - }, - { - "name": "instanceID", - "value": "uuid:700c6ebf-0e02-4ac7-995d-0086c8f782e5", - "source": "pkwoman.instanceID" - } - ], - "fieldsAsMap": { - "lmp_calc_ultrasound_formatted": "Invalid Date", - "tt_2_dose": "2", - "lmp_calc_ultrasound": "Invalid Date", - "provider_id": "demotest", - "instanceID": "uuid:700c6ebf-0e02-4ac7-995d-0086c8f782e5", - "street": "mohalla", - "ga_ult": "NaN", - "gender1": "female", - "father_name": "samandar", - "deviceid": "Error: could not determine deviceID", - "client_reg_date": "2016-04-05", - "townname": "Liaquatabad", - "lmp_calc_edd": "Invalid Date", - "first_name": "barsaat", - "final_ga": null, - "age": "", - "province": "sindh", - "gender": "female", - "provider_province": "Sindh", - "provider_location_id": "Homeopathic Center", - "calc_age_confirm": "37", - "simserial": "no simserial property in enketo", - "phonenumber": "no phonenumber property in enketo", - "tt_1_dose": "1", - "birth_date": "1979-04-05", - "provider_uc": "Zaman Town", - "tt_3_dose_today": "3", - "tt_5_dose_today": null, - "edd_lmp": null, - "provider_city": "Karachi", - "provider_location_note": "", - "tt5": null, - "tt4": null, - "landmark": "nishaani", - "city_village": "karachi", - "house_number": "6h", - "subscriberid": "no subscriberid property in enketo", - "tt1": null, - "start": "2016-04-05 16:21:32", - "tt3": "2016-04-05", - "tt2": null, - "pregnant": "no", - "last_name": "badal", - "ga_lmp": "NaN", - "town": "liaquatabad", - "epi_card_number": "20160003", - "vaccines": "TT1 TT2", - "program_client_id": "14608844", - "edd": "", - "today": "2016-04-05", - "birth_date_note": "", - "city_villagename": "Karachi", - "final_ga_note": "", - "union_council": "sharifabad", - "id": "69995674-bb29-4985-967a-fec8d372a475", - "ethnicity_other": null, - "husband_name": "badal", - "provincename": "Sindh", - "ga_edd": "NaN", - "note_age": null, - "final_lmp": null, - "tt3_retro": null, - "birth_date_known": "yes", - "tt_1_dose_today": null, - "final_edd": null, - "edd_calc_ultrasound": "Invalid Date", - "ultrasound_weeks": "", - "end": "2016-04-05 16:23:59", - "tt_4_dose": null, - "tt_3_dose": null, - "tt2_retro": "2015-10-05", - "edd_calc_ultrasound_formatted": "Invalid Date", - "lmp": "", - "provider_location_name": "Homeopathic Center", - "tt_4_dose_today": null, - "union_councilname": "Sharifabad", - "final_lmp_note": "", - "ultrasound_date": null, - "tt1_retro": "2015-09-05", - "calc_dob": "Invalid Date", - "existing_program_client_id": "14608844", - "marriage": "yes", - "vaccines_2": "TT3", - "calc_age": "37", - "tt_2_dose_today": null, - "edd_calc_lmp": "Invalid Date", - "edd_calc_lmp_formatted": "Invalid Date", - "centre_gps": "24.86391 67.07603 0 40.5", - "tt4_retro": null, - "address": "", - "dob": "1979-04-05", - "calc_dob_estimated": "0", - "provider_town": "Korangi", - "lmp_calc_edd_formatted": "Invalid Date", - "final_edd_note": "", - "ethnicity": "sindhi" - } - } - }, - "serverVersion": 1459855677842 -} \ No newline at end of file diff --git a/opensrp-connector/src/test/resources/form/woman_enrollment/model.xml b/opensrp-connector/src/test/resources/form/woman_enrollment/model.xml deleted file mode 100644 index 7da9aa806c..0000000000 --- a/opensrp-connector/src/test/resources/form/woman_enrollment/model.xml +++ /dev/null @@ -1,1659 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - yes - - - - - - - - - - female - - - - - - - ${provider_province} - ${provider_city} - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - static_instance-provinces-0 - kpk - - - static_instance-provinces-1 - sindh - - - static_instance-provinces-2 - balochistan - - - static_instance-provinces-3 - punjab - - - static_instance-provinces-4 - gilgit_baltistan - - - static_instance-provinces-5 - kashmir - - - static_instance-provinces-6 - fata - - - static_instance-provinces-7 - out_of_country - - - - - - - static_instance-ucs-0 - sindh - karachi - korangi - bilal_colony - - - static_instance-ucs-1 - sindh - karachi - korangi - nasir_colony - - - static_instance-ucs-2 - sindh - karachi - korangi - chakra_goth - - - static_instance-ucs-3 - sindh - karachi - korangi - mustafa_taj_colony - - - static_instance-ucs-4 - sindh - karachi - korangi - hundred_quarters - - - static_instance-ucs-5 - sindh - karachi - korangi - gulzar_colony - - - static_instance-ucs-6 - sindh - karachi - korangi - korangi_sector_33 - - - static_instance-ucs-7 - sindh - karachi - korangi - zaman_town - - - static_instance-ucs-8 - sindh - karachi - korangi - hasrat_mohani_colony - - - static_instance-ucs-9 - sindh - karachi - baldia - gulshan_e_ghazi - - - static_instance-ucs-10 - sindh - karachi - baldia - ittehad_town - - - static_instance-ucs-11 - sindh - karachi - baldia - islam_nagar - - - static_instance-ucs-12 - sindh - karachi - baldia - nai_abadi - - - static_instance-ucs-13 - sindh - karachi - baldia - saeedabad - - - static_instance-ucs-14 - sindh - karachi - baldia - muslim_mujahid_colony - - - static_instance-ucs-15 - sindh - karachi - baldia - muhajir_camp - - - static_instance-ucs-16 - sindh - karachi - baldia - rasheedabad - - - static_instance-ucs-17 - sindh - karachi - bin_qasim - ibrahim_hyderi - - - static_instance-ucs-18 - sindh - karachi - bin_qasim - rehri - - - static_instance-ucs-19 - sindh - karachi - bin_qasim - cattle_colony - - - static_instance-ucs-20 - sindh - karachi - bin_qasim - qaidabad - - - static_instance-ucs-21 - sindh - karachi - bin_qasim - landhi_colony - - - static_instance-ucs-22 - sindh - karachi - bin_qasim - gulshan_e_hadeed - - - static_instance-ucs-23 - sindh - karachi - bin_qasim - gaghar - - - static_instance-ucs-24 - sindh - karachi - gadap - murad_memon_goth - - - static_instance-ucs-25 - sindh - karachi - gadap - darsano_chana - - - static_instance-ucs-26 - sindh - karachi - gadap - gujro - - - static_instance-ucs-27 - sindh - karachi - gadap - songal - - - static_instance-ucs-28 - sindh - karachi - gadap - maymarabad - - - static_instance-ucs-29 - sindh - karachi - gadap - yousuf_goth - - - static_instance-ucs-30 - sindh - karachi - gadap - manghopir - - - static_instance-ucs-31 - sindh - karachi - gulberg - azizabad - - - static_instance-ucs-32 - sindh - karachi - gulberg - karimabad - - - static_instance-ucs-33 - sindh - karachi - gulberg - aisha_manzil - - - static_instance-ucs-34 - sindh - karachi - gulberg - ancholi - - - static_instance-ucs-35 - sindh - karachi - gulberg - naseerabad - - - static_instance-ucs-36 - sindh - karachi - gulberg - yaseenabad - - - static_instance-ucs-37 - sindh - karachi - gulberg - water_pump - - - static_instance-ucs-38 - sindh - karachi - gulberg - shafiq_mill_colony - - - static_instance-ucs-39 - sindh - karachi - gulshan - delhi_mercantile_society - - - static_instance-ucs-40 - sindh - karachi - gulshan - civic_centre - - - static_instance-ucs-41 - sindh - karachi - gulshan - pir_ilahi_buksh_colony - - - static_instance-ucs-42 - sindh - karachi - gulshan - essa_nagri - - - static_instance-ucs-43 - sindh - karachi - gulshan - gulshan_e_iqbal - - - static_instance-ucs-44 - sindh - karachi - gulshan - gillani_railway_station - - - static_instance-ucs-45 - sindh - karachi - gulshan - shanti_nagar - - - static_instance-ucs-46 - sindh - karachi - gulshan - jamali_colony - - - static_instance-ucs-47 - sindh - karachi - gulshan - gulshan_e_iqbal_ii - - - static_instance-ucs-48 - sindh - karachi - gulshan - pehlwan_goth - - - static_instance-ucs-49 - sindh - karachi - gulshan - matrovil_colony - - - static_instance-ucs-50 - sindh - karachi - gulshan - gulzar_e_hijri - - - static_instance-ucs-51 - sindh - karachi - gulshan - safooran_goth - - - static_instance-ucs-52 - sindh - karachi - jamshed - akhtar_colony - - - static_instance-ucs-53 - sindh - karachi - jamshed - manzoor_colony - - - static_instance-ucs-54 - sindh - karachi - jamshed - azam_basti - - - static_instance-ucs-55 - sindh - karachi - jamshed - chanesar_goth - - - static_instance-ucs-56 - sindh - karachi - jamshed - mahmudabad - - - static_instance-ucs-57 - sindh - karachi - jamshed - pechs - - - static_instance-ucs-58 - sindh - karachi - jamshed - pechs_ii - - - static_instance-ucs-59 - sindh - karachi - jamshed - jut_line - - - static_instance-ucs-60 - sindh - karachi - jamshed - central_jacob_lines - - - static_instance-ucs-61 - sindh - karachi - jamshed - jamshed_quarters - - - static_instance-ucs-62 - sindh - karachi - jamshed - garden_east - - - static_instance-ucs-63 - sindh - karachi - jamshed - soldier_bazar - - - static_instance-ucs-64 - sindh - karachi - jamshed - pakistan_quarters - - - static_instance-ucs-65 - sindh - karachi - kiamari - bhutta_village - - - static_instance-ucs-66 - sindh - karachi - kiamari - sultanabad - - - static_instance-ucs-67 - sindh - karachi - kiamari - kiamari_uc - - - static_instance-ucs-68 - sindh - karachi - kiamari - baba_bhit - - - static_instance-ucs-69 - sindh - karachi - kiamari - machar_colony - - - static_instance-ucs-70 - sindh - karachi - kiamari - maripur - - - static_instance-ucs-71 - sindh - karachi - kiamari - shershah - - - static_instance-ucs-72 - sindh - karachi - kiamari - gabo_pat - - - static_instance-ucs-73 - sindh - karachi - landhi - muzafarabad - - - static_instance-ucs-74 - sindh - karachi - landhi - muslimabad - - - static_instance-ucs-75 - sindh - karachi - landhi - dawood_chowrangi - - - static_instance-ucs-76 - sindh - karachi - landhi - moinabad - - - static_instance-ucs-77 - sindh - karachi - landhi - sharafi_goth - - - static_instance-ucs-78 - sindh - karachi - landhi - bhutto_nagar - - - static_instance-ucs-79 - sindh - karachi - landhi - khawaja_ajmeer_colony - - - static_instance-ucs-80 - sindh - karachi - landhi - landhi_uc - - - static_instance-ucs-81 - sindh - karachi - landhi - awami_colony - - - static_instance-ucs-82 - sindh - karachi - landhi - burmee_colony - - - static_instance-ucs-83 - sindh - karachi - landhi - korangi_uc - - - static_instance-ucs-84 - sindh - karachi - landhi - sherabad - - - static_instance-ucs-85 - sindh - karachi - liaquatabad - rizvia_society - - - static_instance-ucs-86 - sindh - karachi - liaquatabad - firdous_colony - - - static_instance-ucs-87 - sindh - karachi - liaquatabad - super_market - - - static_instance-ucs-88 - sindh - karachi - liaquatabad - dak_khana - - - static_instance-ucs-89 - sindh - karachi - liaquatabad - qasimabad - - - static_instance-ucs-90 - sindh - karachi - liaquatabad - bandhani_colony - - - static_instance-ucs-91 - sindh - karachi - liaquatabad - sharifabad - - - static_instance-ucs-92 - sindh - karachi - liaquatabad - commercial_area - - - static_instance-ucs-93 - sindh - karachi - liaquatabad - mujahid_colony - - - static_instance-ucs-94 - sindh - karachi - liaquatabad - nazimabad - - - static_instance-ucs-95 - sindh - karachi - liaquatabad - abbasi_shaheed - - - static_instance-ucs-96 - sindh - karachi - lyari - agra_taj_colony - - - static_instance-ucs-97 - sindh - karachi - lyari - daryaabad - - - static_instance-ucs-98 - sindh - karachi - lyari - nawabad - - - static_instance-ucs-99 - sindh - karachi - lyari - khada_memon_society - - - static_instance-ucs-100 - sindh - karachi - lyari - baghdadi - - - static_instance-ucs-101 - sindh - karachi - lyari - shah_baig_line - - - static_instance-ucs-102 - sindh - karachi - lyari - bihar_colony - - - static_instance-ucs-103 - sindh - karachi - lyari - ragiwara - - - static_instance-ucs-104 - sindh - karachi - lyari - singo_line - - - static_instance-ucs-105 - sindh - karachi - lyari - chakiwara - - - static_instance-ucs-106 - sindh - karachi - lyari - allama_iqbal_colony - - - static_instance-ucs-107 - sindh - karachi - malir - model_colony - - - static_instance-ucs-108 - sindh - karachi - malir - kala_board - - - static_instance-ucs-109 - sindh - karachi - malir - saudabad - - - static_instance-ucs-110 - sindh - karachi - malir - khokhra_par - - - static_instance-ucs-111 - sindh - karachi - malir - jafar_e_tayyar - - - static_instance-ucs-112 - sindh - karachi - malir - gharibabad - - - static_instance-ucs-113 - sindh - karachi - malir - ghazi_brohi_goth - - - static_instance-ucs-114 - sindh - karachi - new_karachi - kalyana - - - static_instance-ucs-115 - sindh - karachi - new_karachi - sir_syed_colony - - - static_instance-ucs-116 - sindh - karachi - new_karachi - fatima_jinnah_colony - - - static_instance-ucs-117 - sindh - karachi - new_karachi - godhra - - - static_instance-ucs-118 - sindh - karachi - new_karachi - abu_zar_ghaffari - - - static_instance-ucs-119 - sindh - karachi - new_karachi - hakim_ahsan - - - static_instance-ucs-120 - sindh - karachi - new_karachi - madina_colony - - - static_instance-ucs-121 - sindh - karachi - new_karachi - faisal_colony - - - static_instance-ucs-122 - sindh - karachi - new_karachi - khamiso_goth - - - static_instance-ucs-123 - sindh - karachi - new_karachi - mustufa_colony - - - static_instance-ucs-124 - sindh - karachi - new_karachi - khawaja_ajmeer_nagri - - - static_instance-ucs-125 - sindh - karachi - new_karachi - gulshan_e_saeed - - - static_instance-ucs-126 - sindh - karachi - new_karachi - shah_nawaz_bhutto_colony - - - static_instance-ucs-127 - sindh - karachi - north_nazimabad - paposh_nagar - - - static_instance-ucs-128 - sindh - karachi - north_nazimabad - pahar_ganj - - - static_instance-ucs-129 - sindh - karachi - north_nazimabad - khandu_goth - - - static_instance-ucs-130 - sindh - karachi - north_nazimabad - hyderi - - - static_instance-ucs-131 - sindh - karachi - north_nazimabad - sakhi_hassan - - - static_instance-ucs-132 - sindh - karachi - north_nazimabad - farooq_e_azam - - - static_instance-ucs-133 - sindh - karachi - north_nazimabad - nusrat_bhutto_colony - - - static_instance-ucs-134 - sindh - karachi - north_nazimabad - shadman_town - - - static_instance-ucs-135 - sindh - karachi - north_nazimabad - buffer_zone - - - static_instance-ucs-136 - sindh - karachi - north_nazimabad - buffer_zone_ii - - - static_instance-ucs-137 - sindh - karachi - orangi - mominabad - - - static_instance-ucs-138 - sindh - karachi - orangi - haryana_colony - - - static_instance-ucs-139 - sindh - karachi - orangi - hanifabad - - - static_instance-ucs-140 - sindh - karachi - orangi - mohammad_nagar - - - static_instance-ucs-141 - sindh - karachi - orangi - madina_colony_orangi - - - static_instance-ucs-142 - sindh - karachi - orangi - ghaziabad - - - static_instance-ucs-143 - sindh - karachi - orangi - chisti_nagar - - - static_instance-ucs-144 - sindh - karachi - orangi - bilal_colony_orangi - - - static_instance-ucs-145 - sindh - karachi - orangi - iqbal_baloch_colony - - - static_instance-ucs-146 - sindh - karachi - orangi - ghabool_town - - - static_instance-ucs-147 - sindh - karachi - orangi - data_nagar - - - static_instance-ucs-148 - sindh - karachi - orangi - mujahidabad - - - static_instance-ucs-149 - sindh - karachi - orangi - baloch_goth - - - static_instance-ucs-150 - sindh - karachi - saddar - old_haji_camp - - - static_instance-ucs-151 - sindh - karachi - saddar - garden - - - static_instance-ucs-152 - sindh - karachi - saddar - kharadar - - - static_instance-ucs-153 - sindh - karachi - saddar - city_railway_colony - - - static_instance-ucs-154 - sindh - karachi - saddar - nanak_wara - - - static_instance-ucs-155 - sindh - karachi - saddar - gazdarabad - - - static_instance-ucs-156 - sindh - karachi - saddar - millat_nagar_islam_pura - - - static_instance-ucs-157 - sindh - karachi - saddar - saddar_uc - - - static_instance-ucs-158 - sindh - karachi - saddar - civil_line - - - static_instance-ucs-159 - sindh - karachi - saddar - clifton - - - static_instance-ucs-160 - sindh - karachi - saddar - kehkashan - - - static_instance-ucs-161 - sindh - karachi - shah_faisal - natha_khan_goth - - - static_instance-ucs-162 - sindh - karachi - shah_faisal - pak_sadat_colony - - - static_instance-ucs-163 - sindh - karachi - shah_faisal - drigh_colony - - - static_instance-ucs-164 - sindh - karachi - shah_faisal - raita_plot - - - static_instance-ucs-165 - sindh - karachi - shah_faisal - moria_khan_goth - - - static_instance-ucs-166 - sindh - karachi - shah_faisal - rafa_e_aam_society - - - static_instance-ucs-167 - sindh - karachi - shah_faisal - al_falah_society - - - static_instance-ucs-168 - sindh - karachi - site - pak_colony - - - static_instance-ucs-169 - sindh - karachi - site - old_golimar - - - static_instance-ucs-170 - sindh - karachi - site - jahanabad - - - static_instance-ucs-171 - sindh - karachi - site - metrovil - - - static_instance-ucs-172 - sindh - karachi - site - bhawani_chali - - - static_instance-ucs-173 - sindh - karachi - site - frontier_colony - - - static_instance-ucs-174 - sindh - karachi - site - banaras_colony - - - static_instance-ucs-175 - sindh - karachi - site - qasba_colony - - - static_instance-ucs-176 - sindh - karachi - site - islamia_colony - - - static_instance-ucs-177 - na - na - na - other - - - static_instance-ucs-178 - na - na - na - not_applicable - - - - - - - static_instance-gender-0 - male - - - static_instance-gender-1 - female - - - static_instance-gender-2 - transgender - - - - - - - static_instance-vaccines-0 - TT1 - - - static_instance-vaccines-1 - TT2 - - - static_instance-vaccines-2 - TT3 - - - static_instance-vaccines-3 - TT4 - - - static_instance-vaccines-4 - TT5 - - - - - - - static_instance-towns-0 - sindh - karachi - korangi - - - static_instance-towns-1 - sindh - karachi - landhi - - - static_instance-towns-2 - sindh - karachi - baldia - - - static_instance-towns-3 - sindh - karachi - bin_qasim - - - static_instance-towns-4 - sindh - karachi - gadap - - - static_instance-towns-5 - sindh - karachi - gulberg - - - static_instance-towns-6 - sindh - karachi - gulshan - - - static_instance-towns-7 - sindh - karachi - jamshed - - - static_instance-towns-8 - sindh - karachi - kiamari - - - static_instance-towns-9 - sindh - karachi - liaquatabad - - - static_instance-towns-10 - sindh - karachi - lyari - - - static_instance-towns-11 - sindh - karachi - malir - - - static_instance-towns-12 - sindh - karachi - new_karachi - - - static_instance-towns-13 - sindh - karachi - north_nazimabad - - - static_instance-towns-14 - sindh - karachi - orangi - - - static_instance-towns-15 - sindh - karachi - saddar - - - static_instance-towns-16 - sindh - karachi - shah_faisal - - - static_instance-towns-17 - sindh - karachi - site - - - static_instance-towns-18 - na - na - other - - - static_instance-towns-19 - na - na - not_applicable - - - - - - - static_instance-cities-0 - sindh - karachi - - - static_instance-cities-1 - punjab - hafizabad - - - static_instance-cities-2 - punjab - muzaffargarh - - - static_instance-cities-3 - na - other - - - static_instance-cities-4 - na - not_applicable - - - - - - - static_instance-edd_lmp-0 - edd - - - static_instance-edd_lmp-1 - lmp - - - static_instance-edd_lmp-2 - ultrasound - - - static_instance-edd_lmp-3 - none - - - - - - - static_instance-ethnicity-0 - punjabi - - - static_instance-ethnicity-1 - pushtuns - - - static_instance-ethnicity-2 - sindhi - - - static_instance-ethnicity-3 - saraiki - - - static_instance-ethnicity-4 - muhajir - - - static_instance-ethnicity-5 - balochi - - - static_instance-ethnicity-6 - other - - - - - - - static_instance-yes_no-0 - yes - - - static_instance-yes_no-1 - no - - - - diff --git a/opensrp-connector/src/test/resources/form/woman_followup/form.json b/opensrp-connector/src/test/resources/form/woman_followup/form.json deleted file mode 100644 index 73ab628765..0000000000 --- a/opensrp-connector/src/test/resources/form/woman_followup/form.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"Woman_TT_Followup_Form","title":"خواتین فالواپ رجسٹر برائے ٹیکاجات - Woman TT Follow Up Form","sms_keyword":"woman_tt_followup_form","default_language":"English","choices":{"provinces":[{"name":"kpk","label":{"Urdu":"خیبر پختون خواہ","English":"Khyber Pakhtunkhwa","Roman Urdu":"Khyber Pakhtunkhwa"}},{"name":"sindh","label":{"Urdu":"سندھ","English":"Sindh","Roman Urdu":"Sindh"}},{"name":"balochistan","label":{"Urdu":"بلوچستان","English":"Balochistan","Roman Urdu":"Balochistan"}},{"name":"punjab","label":{"Urdu":"پنجاب","English":"Punjab","Roman Urdu":"Punjab"}},{"name":"gilgit_baltistan","label":{"Urdu":"گلگت بلتستان","English":"Gilgit Baltistan","Roman Urdu":"Gilgit Baltistan"}},{"name":"kashmir","label":{"Urdu":"کشمیر","English":"Kashmir","Roman Urdu":"Kashmir"}},{"name":"fata","label":{"Urdu":"فاٹا","English":"FATA","Roman Urdu":"FATA"}},{"name":"out_of_country","label":{"Urdu":"ملک سے باہر","English":"Out of Country","Roman Urdu":"Mulk se baahir"}}],"ucs":[{"province":"sindh","city":"karachi","town":"korangi","name":"bilal_colony","label":{"Urdu":"بلال کالونی","Roman Urdu":"Bilal Colony","English":"Bilal Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"nasir_colony","label":{"Urdu":"ناصر کالونی","Roman Urdu":"Nasir Colony","English":"Nasir Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"chakra_goth","label":{"Urdu":"چکرا گوٹھ","Roman Urdu":"Chakra Goth","English":"Chakra Goth"}},{"province":"sindh","city":"karachi","town":"korangi","name":"mustafa_taj_colony","label":{"Urdu":"مصطفی تاج کالونی","Roman Urdu":"Mustafa Taj Colony","English":"Mustafa Taj Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"hundred_quarters","label":{"Urdu":"ہنڈریڈ کوارٹر","Roman Urdu":"Hundred Quarters","English":"Hundred Quarters"}},{"province":"sindh","city":"karachi","town":"korangi","name":"gulzar_colony","label":{"Urdu":"گلزار کالونی","Roman Urdu":"Gulzar Colony","English":"Gulzar Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"korangi_sector_33","label":{"Urdu":"کورنگی سیکٹر 33","Roman Urdu":"Korangi Sector 33","English":"Korangi Sector 33"}},{"province":"sindh","city":"karachi","town":"korangi","name":"zaman_town","label":{"Urdu":"زمان ٹاوَن","Roman Urdu":"Zaman Town","English":"Zaman Town"}},{"province":"sindh","city":"karachi","town":"korangi","name":"hasrat_mohani_colony","label":{"Urdu":"حسرت موہانی کالونی","Roman Urdu":"Hasrat Mohani Colony","English":"Hasrat Mohani Colony"}},{"province":"sindh","city":"karachi","town":"baldia","name":"gulshan_e_ghazi","label":{"Urdu":"گلشن غازی","Roman Urdu":"Gulshan-e-Ghazi","English":"Gulshan-e-Ghazi"}},{"province":"sindh","city":"karachi","town":"baldia","name":"ittehad_town","label":{"Urdu":"اتحاد ٹاوَن","Roman Urdu":"Ittehad Town","English":"Ittehad Town"}},{"province":"sindh","city":"karachi","town":"baldia","name":"islam_nagar","label":{"Urdu":"اسلام نگر","Roman Urdu":"Islam Nagar","English":"Islam Nagar"}},{"province":"sindh","city":"karachi","town":"baldia","name":"nai_abadi","label":{"Urdu":"نئی آبادی","Roman Urdu":"Nai Abadi","English":"Nai Abadi"}},{"province":"sindh","city":"karachi","town":"baldia","name":"saeedabad","label":{"Urdu":"سعید آباد","Roman Urdu":"Saeedabad","English":"Saeedabad"}},{"province":"sindh","city":"karachi","town":"baldia","name":"muslim_mujahid_colony","label":{"Urdu":"مسلم مجاہد کالونی","Roman Urdu":"Muslim Mujahid Colony","English":"Muslim Mujahid Colony"}},{"province":"sindh","city":"karachi","town":"baldia","name":"muhajir_camp","label":{"Urdu":"مہاجر کیمپ","Roman Urdu":"Muhajir Camp","English":"Muhajir Camp"}},{"province":"sindh","city":"karachi","town":"baldia","name":"rasheedabad","label":{"Urdu":"رشید آباد","Roman Urdu":"Rasheedabad","English":"Rasheedabad"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"ibrahim_hyderi","label":{"Urdu":"ابراہیم حیدری","Roman Urdu":"Ibrahim Hyderi","English":"Ibrahim Hyderi"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"rehri","label":{"Urdu":"رہڑی","Roman Urdu":"Rehri","English":"Rehri"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"cattle_colony","label":{"Urdu":"کیٹل کالونی","Roman Urdu":"Cattle Colony","English":"Cattle Colony"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"qaidabad","label":{"Urdu":"قائدآباد","Roman Urdu":"Qaidabad","English":"Qaidabad"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"landhi_colony","label":{"Urdu":"لانڈھی کالونی","Roman Urdu":"Landhi Colony","English":"Landhi Colony"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"gulshan_e_hadeed","label":{"Urdu":"گلشن حدید","Roman Urdu":"Gulshan-e-Hadeed","English":"Gulshan-e-Hadeed"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"gaghar","label":{"Urdu":"گگر","Roman Urdu":"Gaghar","English":"Gaghar"}},{"province":"sindh","city":"karachi","town":"gadap","name":"murad_memon_goth","label":{"Urdu":"مراد میمن گوٹھ","Roman Urdu":"Murad Memon Goth","English":"Murad Memon Goth"}},{"province":"sindh","city":"karachi","town":"gadap","name":"darsano_chana","label":{"Urdu":"درشانو شنو","Roman Urdu":"Darsano Chana","English":"Darsano Chana"}},{"province":"sindh","city":"karachi","town":"gadap","name":"gujro","label":{"Urdu":"گجرو","Roman Urdu":"Gujro","English":"Gujro"}},{"province":"sindh","city":"karachi","town":"gadap","name":"songal","label":{"Urdu":"سنگل","Roman Urdu":"Songal","English":"Songal"}},{"province":"sindh","city":"karachi","town":"gadap","name":"maymarabad","label":{"Urdu":"معمار آباد","Roman Urdu":"Maymarabad","English":"Maymarabad"}},{"province":"sindh","city":"karachi","town":"gadap","name":"yousuf_goth","label":{"Urdu":"یوسف گوٹھ","Roman Urdu":"Yousuf Goth","English":"Yousuf Goth"}},{"province":"sindh","city":"karachi","town":"gadap","name":"manghopir","label":{"Urdu":"منگھوپیر","Roman Urdu":"Manghopir","English":"Manghopir"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"azizabad","label":{"Urdu":"عزیز آباد","Roman Urdu":"Azizabad","English":"Azizabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"karimabad","label":{"Urdu":"کریم آباد","Roman Urdu":"Karimabad","English":"Karimabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"aisha_manzil","label":{"Urdu":"عائشہ منزل","Roman Urdu":"Aisha Manzil","English":"Aisha Manzil"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"ancholi","label":{"Urdu":"انچولی","Roman Urdu":"Ancholi","English":"Ancholi"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"naseerabad","label":{"Urdu":"نصیرآباد","Roman Urdu":"Naseerabad","English":"Naseerabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"yaseenabad","label":{"Urdu":"یاسین آباد","Roman Urdu":"Yaseenabad","English":"Yaseenabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"water_pump","label":{"Urdu":"واٹرپمپ","Roman Urdu":"Water Pump","English":"Water Pump"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"shafiq_mill_colony","label":{"Urdu":"شفیق مل کالونی","Roman Urdu":"Shafiq Mill Colony","English":"Shafiq Mill Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"delhi_mercantile_society","label":{"Urdu":"دہلی مرچنٹائل سوسائٹی","Roman Urdu":"Delhi Mercantile Society","English":"Delhi Mercantile Society"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"civic_centre","label":{"Urdu":"سوک سینٹر","Roman Urdu":"Civic Centre","English":"Civic Centre"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"pir_ilahi_buksh_colony","label":{"Urdu":"پیر الہی بخش کالونی","Roman Urdu":"Pir Ilahi Buksh Colony","English":"Pir Ilahi Buksh Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"essa_nagri","label":{"Urdu":"عیسی نگری","Roman Urdu":"Essa Nagri","English":"Essa Nagri"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gulshan_e_iqbal","label":{"Urdu":"گلشن اقبال","Roman Urdu":"Gulshan-e-Iqbal","English":"Gulshan-e-Iqbal"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gillani_railway_station","label":{"Urdu":"گیلانی ریلوے اسٹیشن","Roman Urdu":"Gillani Railway Station","English":"Gillani Railway Station"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"shanti_nagar","label":{"Urdu":"شانتی نگر","Roman Urdu":"Shanti Nagar","English":"Shanti Nagar"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"jamali_colony","label":{"Urdu":"جمالی کالونی","Roman Urdu":"Jamali Colony","English":"Jamali Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gulshan_e_iqbal_ii","label":{"Urdu":"گلشن اقبال 2","Roman Urdu":"Gulshan-e-Iqbal II","English":"Gulshan-e-Iqbal II"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"pehlwan_goth","label":{"Urdu":"پہلوان گوٹھ","Roman Urdu":"Pehlwan Goth","English":"Pehlwan Goth"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"matrovil_colony","label":{"Urdu":"میٹروویل کالونی","Roman Urdu":"Matrovil Colony","English":"Matrovil Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gulzar_e_hijri","label":{"Urdu":"گلزار ہجری","Roman Urdu":"Gulzar-e-Hijri","English":"Gulzar-e-Hijri"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"safooran_goth","label":{"Urdu":"صفورا گوٹھ","Roman Urdu":"Safooran Goth","English":"Safooran Goth"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"akhtar_colony","label":{"Urdu":"اختر کالونی","Roman Urdu":"Akhtar Colony","English":"Akhtar Colony"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"manzoor_colony","label":{"Urdu":"منظور کالونی","Roman Urdu":"Manzoor Colony","English":"Manzoor Colony"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"azam_basti","label":{"Urdu":"اعظم بستی","Roman Urdu":"Azam Basti","English":"Azam Basti"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"chanesar_goth","label":{"Urdu":"چنیسر گوٹھ","Roman Urdu":"Chanesar Goth","English":"Chanesar Goth"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"mahmudabad","label":{"Urdu":"محمودآباد","Roman Urdu":"Mahmudabad","English":"Mahmudabad"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"pechs","label":{"Urdu":"پی۔ای۔سی۔ایچ۔ایس","Roman Urdu":"P.E.C.H.S.","English":"P.E.C.H.S."}},{"province":"sindh","city":"karachi","town":"jamshed","name":"pechs_ii","label":{"Urdu":"پی۔ای۔سی۔ایچ۔ایس 2","Roman Urdu":"P.E.C.H.S. II","English":"P.E.C.H.S. II"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"jut_line","label":{"Urdu":"جٹ لائن","Roman Urdu":"Jut Line","English":"Jut Line"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"central_jacob_lines","label":{"Urdu":"سینٹرل جیکب لائن","Roman Urdu":"Central Jacob Lines","English":"Central Jacob Lines"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"jamshed_quarters","label":{"Urdu":"جمشید کوارٹر","Roman Urdu":"Jamshed Quarters","English":"Jamshed Quarters"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"garden_east","label":{"Urdu":"گارڈن ایسٹ","Roman Urdu":"Garden East","English":"Garden East"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"soldier_bazar","label":{"Urdu":"سولجر بازار","Roman Urdu":"Soldier Bazar","English":"Soldier Bazar"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"pakistan_quarters","label":{"Urdu":"پاکستان کوارٹر","Roman Urdu":"Pakistan Quarters","English":"Pakistan Quarters"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"bhutta_village","label":{"Urdu":"بھٹا ولیج","Roman Urdu":"Bhutta Village","English":"Bhutta Village"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"sultanabad","label":{"Urdu":"سلطان آباد","Roman Urdu":"Sultanabad","English":"Sultanabad"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"kiamari_uc","label":{"Urdu":"کیماری یوسی","Roman Urdu":"Kiamari UC","English":"Kiamari UC"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"baba_bhit","label":{"Urdu":"بابا بھٹ","Roman Urdu":"Baba Bhit","English":"Baba Bhit"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"machar_colony","label":{"Urdu":"مچھر کالونی","Roman Urdu":"Machar Colony","English":"Machar Colony"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"maripur","label":{"Urdu":"ماڑی پور","Roman Urdu":"Maripur","English":"Maripur"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"shershah","label":{"Urdu":"شیرشاہ","Roman Urdu":"SherShah","English":"SherShah"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"gabo_pat","label":{"Urdu":"گابو پٹ","Roman Urdu":"Gabo Pat","English":"Gabo Pat"}},{"province":"sindh","city":"karachi","town":"landhi","name":"muzafarabad","label":{"Urdu":"مظفرآباد","Roman Urdu":"Muzafarabad","English":"Muzafarabad"}},{"province":"sindh","city":"karachi","town":"landhi","name":"muslimabad","label":{"Urdu":"مسلم آباد","Roman Urdu":"Muslimabad","English":"Muslimabad"}},{"province":"sindh","city":"karachi","town":"landhi","name":"dawood_chowrangi","label":{"Urdu":"داوَد چورنگی","Roman Urdu":"Dawood Chowrangi","English":"Dawood Chowrangi"}},{"province":"sindh","city":"karachi","town":"landhi","name":"moinabad","label":{"Urdu":"معین آباد","Roman Urdu":"Moinabad","English":"Moinabad"}},{"province":"sindh","city":"karachi","town":"landhi","name":"sharafi_goth","label":{"Urdu":"شرافی گوٹھ","Roman Urdu":"Sharafi Goth","English":"Sharafi Goth"}},{"province":"sindh","city":"karachi","town":"landhi","name":"bhutto_nagar","label":{"Urdu":"بھٹو نگر","Roman Urdu":"Bhutto Nagar","English":"Bhutto Nagar"}},{"province":"sindh","city":"karachi","town":"landhi","name":"khawaja_ajmeer_colony","label":{"Urdu":"خواجہ اجمیر کالونی","Roman Urdu":"Khawaja Ajmeer Colony","English":"Khawaja Ajmeer Colony"}},{"province":"sindh","city":"karachi","town":"landhi","name":"landhi_uc","label":{"Urdu":"لانڈھی یوسی","Roman Urdu":"Landhi UC","English":"Landhi UC"}},{"province":"sindh","city":"karachi","town":"landhi","name":"awami_colony","label":{"Urdu":"عوامی کالونی","Roman Urdu":"Awami Colony","English":"Awami Colony"}},{"province":"sindh","city":"karachi","town":"landhi","name":"burmee_colony","label":{"Urdu":"برمی کالونی","Roman Urdu":"Burmee Colony","English":"Burmee Colony"}},{"province":"sindh","city":"karachi","town":"landhi","name":"korangi_uc","label":{"Urdu":"کورنگی یوسی","Roman Urdu":"Korangi UC","English":"Korangi UC"}},{"province":"sindh","city":"karachi","town":"landhi","name":"sherabad","label":{"Urdu":"شیرآباد","Roman Urdu":"Sherabad","English":"Sherabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"rizvia_society","label":{"Urdu":"رضویہ سوسائٹی","Roman Urdu":"Rizvia Society","English":"Rizvia Society"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"firdous_colony","label":{"Urdu":"فردوس کالونی","Roman Urdu":"Firdous Colony","English":"Firdous Colony"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"super_market","label":{"Urdu":"سپر مارکیٹ","Roman Urdu":"Super Market","English":"Super Market"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"dak_khana","label":{"Urdu":"دک کھانہ","Roman Urdu":"Dak Khana","English":"Dak Khana"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"qasimabad","label":{"Urdu":"قاسم آباد","Roman Urdu":"Qasimabad","English":"Qasimabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"bandhani_colony","label":{"Urdu":"بندھانی کالونی","Roman Urdu":"Bandhani Colony","English":"Bandhani Colony"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"sharifabad","label":{"Urdu":"شریف آباد","Roman Urdu":"Sharifabad","English":"Sharifabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"commercial_area","label":{"Urdu":"کمرشل ایریا","Roman Urdu":"Commercial Area","English":"Commercial Area"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"mujahid_colony","label":{"Urdu":"مجاہد کالونی","Roman Urdu":"Mujahid Colony","English":"Mujahid Colony"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"nazimabad","label":{"Urdu":"ناظم آباد","Roman Urdu":"Nazimabad","English":"Nazimabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"abbasi_shaheed","label":{"Urdu":"عباسی شہید","Roman Urdu":"Abbasi Shaheed","English":"Abbasi Shaheed"}},{"province":"sindh","city":"karachi","town":"lyari","name":"agra_taj_colony","label":{"Urdu":"آگرہ تاج کالونی","Roman Urdu":"Agra Taj Colony","English":"Agra Taj Colony"}},{"province":"sindh","city":"karachi","town":"lyari","name":"daryaabad","label":{"Urdu":"دریاآباد","Roman Urdu":"Daryaabad","English":"Daryaabad"}},{"province":"sindh","city":"karachi","town":"lyari","name":"nawabad","label":{"Urdu":"نواآباد","Roman Urdu":"Nawabad","English":"Nawabad"}},{"province":"sindh","city":"karachi","town":"lyari","name":"khada_memon_society","label":{"Urdu":"خدا- میمن- سوساَٹی","Roman Urdu":"Khada Memon Society","English":"Khada Memon Society"}},{"province":"sindh","city":"karachi","town":"lyari","name":"baghdadi","label":{"Urdu":"بغدادی","Roman Urdu":"Baghdadi","English":"Baghdadi"}},{"province":"sindh","city":"karachi","town":"lyari","name":"shah_baig_line","label":{"Urdu":"شاھ باغ لائن","Roman Urdu":"Shah Baig Line","English":"Shah Baig Line"}},{"province":"sindh","city":"karachi","town":"lyari","name":"bihar_colony","label":{"Urdu":"بہار کالونی","Roman Urdu":"Bihar Colony","English":"Bihar Colony"}},{"province":"sindh","city":"karachi","town":"lyari","name":"ragiwara","label":{"Urdu":"راگی واڑا","Roman Urdu":"Ragiwara","English":"Ragiwara"}},{"province":"sindh","city":"karachi","town":"lyari","name":"singo_line","label":{"Urdu":"سنگولائن","Roman Urdu":"Singo Line","English":"Singo Line"}},{"province":"sindh","city":"karachi","town":"lyari","name":"chakiwara","label":{"Urdu":"چاکی واڑا","Roman Urdu":"Chakiwara","English":"Chakiwara"}},{"province":"sindh","city":"karachi","town":"lyari","name":"allama_iqbal_colony","label":{"Urdu":"علامہ اقبال کالونی","Roman Urdu":"Allama Iqbal Colony","English":"Allama Iqbal Colony"}},{"province":"sindh","city":"karachi","town":"malir","name":"model_colony","label":{"Urdu":"موڈل کالونی","Roman Urdu":"Model Colony","English":"Model Colony"}},{"province":"sindh","city":"karachi","town":"malir","name":"kala_board","label":{"Urdu":"کالا بورڈ","Roman Urdu":"Kala Board","English":"Kala Board"}},{"province":"sindh","city":"karachi","town":"malir","name":"saudabad","label":{"Urdu":"سعودآباد","Roman Urdu":"Saudabad","English":"Saudabad"}},{"province":"sindh","city":"karachi","town":"malir","name":"khokhra_par","label":{"Urdu":"کھوکھرا پار","Roman Urdu":"Khokhra Par","English":"Khokhra Par"}},{"province":"sindh","city":"karachi","town":"malir","name":"jafar_e_tayyar","label":{"Urdu":"جعفر تیار","Roman Urdu":"Jafar-e-Tayyar","English":"Jafar-e-Tayyar"}},{"province":"sindh","city":"karachi","town":"malir","name":"gharibabad","label":{"Urdu":"غریب آباد","Roman Urdu":"Gharibabad","English":"Gharibabad"}},{"province":"sindh","city":"karachi","town":"malir","name":"ghazi_brohi_goth","label":{"Urdu":"غازی بروہی گوٹھ","Roman Urdu":"Ghazi Brohi Goth","English":"Ghazi Brohi Goth"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"kalyana","label":{"Urdu":"کالیانہ","Roman Urdu":"Kalyana","English":"Kalyana"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"sir_syed_colony","label":{"Urdu":"سر سید کالونی","Roman Urdu":"Sir Syed Colony","English":"Sir Syed Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"fatima_jinnah_colony","label":{"Urdu":"فاطمہ جناح کالونی","Roman Urdu":"Fatima Jinnah Colony","English":"Fatima Jinnah Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"godhra","label":{"Urdu":"گودھرا","Roman Urdu":"Godhra","English":"Godhra"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"abu_zar_ghaffari","label":{"Urdu":"ابو زر غفاری","Roman Urdu":"Abu Zar Ghaffari","English":"Abu Zar Ghaffari"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"hakim_ahsan","label":{"Urdu":"حاکم احسان","Roman Urdu":"Hakim Ahsan","English":"Hakim Ahsan"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"madina_colony","label":{"Urdu":"مدینہ کالونی","Roman Urdu":"Madina Colony","English":"Madina Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"faisal_colony","label":{"Urdu":"فیصل کالونی","Roman Urdu":"Faisal Colony","English":"Faisal Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"khamiso_goth","label":{"Urdu":"خمیسو گوٹھ","Roman Urdu":"Khamiso Goth","English":"Khamiso Goth"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"mustufa_colony","label":{"Urdu":"مصطفی کالونی","Roman Urdu":"Mustufa Colony","English":"Mustufa Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"khawaja_ajmeer_nagri","label":{"Urdu":"خواجہ اجمیر نگری","Roman Urdu":"Khawaja Ajmeer Nagri","English":"Khawaja Ajmeer Nagri"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"gulshan_e_saeed","label":{"Urdu":"گلشن سعید","Roman Urdu":"Gulshan-e-Saeed","English":"Gulshan-e-Saeed"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"shah_nawaz_bhutto_colony","label":{"Urdu":"شاہ نواز بھٹو کالونی","Roman Urdu":"Shah Nawaz Bhutto Colony","English":"Shah Nawaz Bhutto Colony"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"paposh_nagar","label":{"Urdu":"پاپوش نگر","Roman Urdu":"Paposh Nagar","English":"Paposh Nagar"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"pahar_ganj","label":{"Urdu":"پہاڑ گنج","Roman Urdu":"Pahar Ganj","English":"Pahar Ganj"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"khandu_goth","label":{"Urdu":"کھنڑو گوٹھ","Roman Urdu":"Khandu Goth","English":"Khandu Goth"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"hyderi","label":{"Urdu":"حیدری","Roman Urdu":"Hyderi","English":"Hyderi"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"sakhi_hassan","label":{"Urdu":"سخی حسن","Roman Urdu":"Sakhi Hassan","English":"Sakhi Hassan"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"farooq_e_azam","label":{"Urdu":"فاروق اعظم","Roman Urdu":"Farooq-e-Azam","English":"Farooq-e-Azam"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"nusrat_bhutto_colony","label":{"Urdu":"نصرت بھٹو کالونی","Roman Urdu":"Nusrat Bhutto Colony","English":"Nusrat Bhutto Colony"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"shadman_town","label":{"Urdu":"شادمان ٹاوَن","Roman Urdu":"Shadman Town","English":"Shadman Town"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"buffer_zone","label":{"Urdu":"بفرزون","Roman Urdu":"Buffer Zone","English":"Buffer Zone"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"buffer_zone_ii","label":{"Urdu":"بفرزون 2","Roman Urdu":"Buffer Zone II","English":"Buffer Zone II"}},{"province":"sindh","city":"karachi","town":"orangi","name":"mominabad","label":{"Urdu":"مومن آباد","Roman Urdu":"Mominabad","English":"Mominabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"haryana_colony","label":{"Urdu":"حریانہ کالونی","Roman Urdu":"Haryana Colony","English":"Haryana Colony"}},{"province":"sindh","city":"karachi","town":"orangi","name":"hanifabad","label":{"Urdu":"حنیف آباد","Roman Urdu":"Hanifabad","English":"Hanifabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"mohammad_nagar","label":{"Urdu":"محمد نگر","Roman Urdu":"Mohammad Nagar","English":"Mohammad Nagar"}},{"province":"sindh","city":"karachi","town":"orangi","name":"madina_colony_orangi","label":{"Urdu":"مدینہ کالونی اورنگی","Roman Urdu":"Madina Colony Orangi","English":"Madina Colony Orangi"}},{"province":"sindh","city":"karachi","town":"orangi","name":"ghaziabad","label":{"Urdu":"غازی آباد","Roman Urdu":"Ghaziabad","English":"Ghaziabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"chisti_nagar","label":{"Urdu":"چشتی نگر","Roman Urdu":"Chisti Nagar","English":"Chisti Nagar"}},{"province":"sindh","city":"karachi","town":"orangi","name":"bilal_colony_orangi","label":{"Urdu":"بلال کالونی اورنگی","Roman Urdu":"Bilal Colony Orangi","English":"Bilal Colony Orangi"}},{"province":"sindh","city":"karachi","town":"orangi","name":"iqbal_baloch_colony","label":{"Urdu":"اقبال بلوچ کالونی","Roman Urdu":"Iqbal Baloch Colony","English":"Iqbal Baloch Colony"}},{"province":"sindh","city":"karachi","town":"orangi","name":"ghabool_town","label":{"Urdu":"گبول ٹاوَن","Roman Urdu":"Ghabool Town","English":"Ghabool Town"}},{"province":"sindh","city":"karachi","town":"orangi","name":"data_nagar","label":{"Urdu":"داتا نگر","Roman Urdu":"Data Nagar","English":"Data Nagar"}},{"province":"sindh","city":"karachi","town":"orangi","name":"mujahidabad","label":{"Urdu":"مجاہد آباد","Roman Urdu":"Mujahidabad","English":"Mujahidabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"baloch_goth","label":{"Urdu":"بلوچ گوٹھ","Roman Urdu":"Baloch Goth","English":"Baloch Goth"}},{"province":"sindh","city":"karachi","town":"saddar","name":"old_haji_camp","label":{"Urdu":"پرانہ حاجی کیمپ","Roman Urdu":"Old Haji Camp","English":"Old Haji Camp"}},{"province":"sindh","city":"karachi","town":"saddar","name":"garden","label":{"Urdu":"گارڈن","Roman Urdu":"Garden","English":"Garden"}},{"province":"sindh","city":"karachi","town":"saddar","name":"kharadar","label":{"Urdu":"کھارادر","Roman Urdu":"Kharadar","English":"Kharadar"}},{"province":"sindh","city":"karachi","town":"saddar","name":"city_railway_colony","label":{"Urdu":"سٹی ریلوے کالونی","Roman Urdu":"City Railway Colony","English":"City Railway Colony"}},{"province":"sindh","city":"karachi","town":"saddar","name":"nanak_wara","label":{"Urdu":"ناناک واڑا","Roman Urdu":"Nanak Wara","English":"Nanak Wara"}},{"province":"sindh","city":"karachi","town":"saddar","name":"gazdarabad","label":{"Urdu":"گزدرآباد","Roman Urdu":"Gazdarabad","English":"Gazdarabad"}},{"province":"sindh","city":"karachi","town":"saddar","name":"millat_nagar_islam_pura","label":{"Urdu":"ملت نگر اسلام پورا","Roman Urdu":"Millat Nagar/Islam Pura","English":"Millat Nagar/Islam Pura"}},{"province":"sindh","city":"karachi","town":"saddar","name":"saddar_uc","label":{"Urdu":"صدر یو سی","Roman Urdu":"Saddar UC","English":"Saddar UC"}},{"province":"sindh","city":"karachi","town":"saddar","name":"civil_line","label":{"Urdu":"سول لائن","Roman Urdu":"Civil Line","English":"Civil Line"}},{"province":"sindh","city":"karachi","town":"saddar","name":"clifton","label":{"Urdu":"کلفٹن","Roman Urdu":"Clifton","English":"Clifton"}},{"province":"sindh","city":"karachi","town":"saddar","name":"kehkashan","label":{"Urdu":"کہکشان","Roman Urdu":"Kehkashan","English":"Kehkashan"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"natha_khan_goth","label":{"Urdu":"ناتھا خان گوٹھ","Roman Urdu":"Natha Khan Goth","English":"Natha Khan Goth"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"pak_sadat_colony","label":{"Urdu":"پاک صدر کالونی","Roman Urdu":"Pak Sadat Colony","English":"Pak Sadat Colony"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"drigh_colony","label":{"Urdu":"ڈرگ کالونی","Roman Urdu":"Drigh Colony","English":"Drigh Colony"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"raita_plot","label":{"Urdu":"رائتا پلاٹ","Roman Urdu":"Raita Plot","English":"Raita Plot"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"moria_khan_goth","label":{"Urdu":"موریا خان گوٹھ","Roman Urdu":"Moria Khan Goth","English":"Moria Khan Goth"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"rafa_e_aam_society","label":{"Urdu":"رفا عام سوسا ئٹی","Roman Urdu":"Rafa-e-Aam Society","English":"Rafa-e-Aam Society"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"al_falah_society","label":{"Urdu":"الفلاح سوسا ئٹی","Roman Urdu":"Al-Falah Society","English":"Al-Falah Society"}},{"province":"sindh","city":"karachi","town":"site","name":"pak_colony","label":{"Urdu":"پاک کالونی","Roman Urdu":"Pak Colony","English":"Pak Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"old_golimar","label":{"Urdu":"پرانہ گولی مار","Roman Urdu":"Old Golimar","English":"Old Golimar"}},{"province":"sindh","city":"karachi","town":"site","name":"jahanabad","label":{"Urdu":"جہان آباد","Roman Urdu":"Jahanabad","English":"Jahanabad"}},{"province":"sindh","city":"karachi","town":"site","name":"metrovil","label":{"Urdu":"میٹروویل","Roman Urdu":"Metrovil","English":"Metrovil"}},{"province":"sindh","city":"karachi","town":"site","name":"bhawani_chali","label":{"Urdu":"بہوانی چالی","Roman Urdu":"Bhawani Chali","English":"Bhawani Chali"}},{"province":"sindh","city":"karachi","town":"site","name":"frontier_colony","label":{"Urdu":"فرونٹر کالونی","Roman Urdu":"Frontier Colony","English":"Frontier Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"banaras_colony","label":{"Urdu":"بنارس کالونی","Roman Urdu":"Banaras Colony","English":"Banaras Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"qasba_colony","label":{"Urdu":"قصبہ کالونی","Roman Urdu":"Qasba Colony","English":"Qasba Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"islamia_colony","label":{"Urdu":"اسلامیہ کالونی","Roman Urdu":"Islamia Colony","English":"Islamia Colony"}},{"province":"na","city":"na","town":"na","name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}},{"province":"na","city":"na","town":"na","name":"not_applicable","label":{"Urdu":"قابل اطلاق نہیں","Roman Urdu":"Qaabil-e-atlaaq nahi","English":"Not Applicable"}}],"gender":[{"instance":{"openmrs_code":"1534AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"male","label":{"Urdu":"مرد/ لڑکا","Roman Urdu":"Mard/larka","English":"Male"}},{"instance":{"openmrs_code":"1535AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"female","label":{"Urdu":"عورت/لڑکی","Roman Urdu":"Aurat/larki","English":"Female"}},{"instance":{"openmrs_code":"163163AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"transgender","label":{"Urdu":"خواجہ سرہ","Roman Urdu":"Khwaja sira","English":"Transgender"}}],"vaccines":[{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT1","label":{"Urdu":"ٹی ٹی 1","Roman Urdu":"TT1","English":"TT1"}},{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT2","label":{"Urdu":"ٹی ٹی 2","Roman Urdu":"TT2","English":"TT2"}},{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT3","label":{"Urdu":"ٹی ٹی 3","Roman Urdu":"TT3","English":"TT3"}},{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT4","label":{"Urdu":"ٹی ٹی 4","Roman Urdu":"TT4","English":"TT4"}},{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT5","label":{"Urdu":"ٹی ٹی 5","Roman Urdu":"TT5","English":"TT5"}}],"towns":[{"province":"sindh","city":"karachi","name":"korangi","label":{"Urdu":"کورنگی","Roman Urdu":"Korangi","English":"Korangi"}},{"province":"sindh","city":"karachi","name":"landhi","label":{"Urdu":"لانڈھی","Roman Urdu":"Landhi","English":"Landhi"}},{"province":"sindh","city":"karachi","name":"baldia","label":{"Urdu":"بلدیہ","Roman Urdu":"Baldia","English":"Baldia"}},{"province":"sindh","city":"karachi","name":"bin_qasim","label":{"Urdu":"بن قاسم","Roman Urdu":"Bin Qasim","English":"Bin Qasim"}},{"province":"sindh","city":"karachi","name":"gadap","label":{"Urdu":"گڈاپ","Roman Urdu":"Gadap","English":"Gadap"}},{"province":"sindh","city":"karachi","name":"gulberg","label":{"Urdu":"گلبرگ","Roman Urdu":"Gulberg","English":"Gulberg"}},{"province":"sindh","city":"karachi","name":"gulshan","label":{"Urdu":"گلشن","Roman Urdu":"Gulshan","English":"Gulshan"}},{"province":"sindh","city":"karachi","name":"jamshed","label":{"Urdu":"جمشید","Roman Urdu":"Jamshed","English":"Jamshed"}},{"province":"sindh","city":"karachi","name":"kiamari","label":{"Urdu":"کیماری","Roman Urdu":"Kiamari","English":"Kiamari"}},{"province":"sindh","city":"karachi","name":"liaquatabad","label":{"Urdu":"لیاقت آباد","Roman Urdu":"Liaquatabad","English":"Liaquatabad"}},{"province":"sindh","city":"karachi","name":"lyari","label":{"Urdu":"لیاری","Roman Urdu":"Lyari","English":"Lyari"}},{"province":"sindh","city":"karachi","name":"malir","label":{"Urdu":"ملیر","Roman Urdu":"Malir","English":"Malir"}},{"province":"sindh","city":"karachi","name":"new_karachi","label":{"Urdu":"نیو کراچی","Roman Urdu":"New Karachi","English":"New Karachi"}},{"province":"sindh","city":"karachi","name":"north_nazimabad","label":{"Urdu":"نارتھ ناظم آباد","Roman Urdu":"North Nazimabad","English":"North Nazimabad"}},{"province":"sindh","city":"karachi","name":"orangi","label":{"Urdu":"اورنگی","Roman Urdu":"Orangi","English":"Orangi"}},{"province":"sindh","city":"karachi","name":"saddar","label":{"Urdu":"صدر","Roman Urdu":"Saddar","English":"Saddar"}},{"province":"sindh","city":"karachi","name":"shah_faisal","label":{"Urdu":"شاہ فیصل","Roman Urdu":"Shah Faisal","English":"Shah Faisal"}},{"province":"sindh","city":"karachi","name":"site","label":{"Urdu":"سائٹ","Roman Urdu":"S.I.T.E.","English":"S.I.T.E."}},{"province":"na","city":"na","name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}},{"province":"na","city":"na","name":"not_applicable","label":{"Urdu":"قابل اطلاق نہیں","Roman Urdu":"Qaabil-e-atlaaq nahi","English":"Not Applicable"}}],"cities":[{"province":"sindh","name":"karachi","label":{"Urdu":"کراچی","Roman Urdu":"Karachi","English":"Karachi"}},{"province":"punjab","name":"hafizabad","label":{"Urdu":"حافظ آباد","Roman Urdu":"Hafizabad","English":"Hafizabad"}},{"province":"punjab","name":"muzaffargarh","label":{"Urdu":"مظفر گڑھ","Roman Urdu":"Muzaffargarh","English":"Muzaffargarh"}},{"province":"na","name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}},{"province":"na","name":"not_applicable","label":{"Urdu":"قابل اطلاق نہیں","Roman Urdu":"Not Applicable","English":"Not Applicable"}}],"edd_lmp":[{"instance":{"openmrs_code":"5596AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"edd","label":{"Urdu":"زچگی کی متوقع تاریخ","Roman Urdu":"EDD","English":"EDD"}},{"instance":{"openmrs_code":"1427AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"lmp","label":{"Urdu":"پچھلی مہواری کی تاریخ","Roman Urdu":"LMP","English":"LMP"}},{"instance":{"openmrs_code":"159617AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ultrasound","label":{"Urdu":"الٹرا سائونڈ","Roman Urdu":"Ultrasound","English":"Ultrasound"}},{"instance":{"openmrs_code":"1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"none","label":{"Urdu":"کوئی بھی نہیں","Roman Urdu":"Koi bhi nahi","English":"None of the above"}}],"yes_no":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}]},"instance":{"encounter_type":"Woman TT Follow Up"},"version":"201604080459","id_string":"woman_tt_followup_form","type":"survey","children":[{"type":"hidden","name":"provider_uc"},{"type":"hidden","name":"provider_town"},{"type":"hidden","name":"provider_city"},{"type":"hidden","name":"provider_province"},{"type":"hidden","name":"existing_landmark"},{"type":"hidden","name":"existing_house_number"},{"type":"hidden","name":"existing_street"},{"type":"hidden","name":"existing_union_council"},{"type":"hidden","name":"existing_town"},{"type":"hidden","name":"existing_city_village"},{"type":"hidden","name":"existing_province"},{"type":"hidden","name":"existing_union_councilname"},{"type":"hidden","name":"existing_townname"},{"type":"hidden","name":"existing_city_villagename"},{"type":"hidden","name":"existing_provincename"},{"type":"hidden","name":"existing_first_name"},{"type":"hidden","name":"existing_last_name"},{"type":"hidden","name":"existing_father_name"},{"type":"hidden","name":"existing_husband_name"},{"type":"hidden","name":"existing_marriage"},{"type":"hidden","name":"existing_calc_dob_confirm"},{"type":"hidden","name":"existing_gender"},{"type":"hidden","name":"existing_ethnicity"},{"type":"hidden","name":"existing_client_reg_date"},{"type":"hidden","name":"existing_program_client_id"},{"type":"hidden","name":"existing_epi_card_number"},{"type":"hidden","name":"existing_reminders_approval"},{"type":"hidden","name":"existing_contact_phone_number"},{"type":"hidden","name":"e_tt1"},{"type":"hidden","name":"e_tt2"},{"type":"hidden","name":"e_tt3"},{"type":"hidden","name":"e_tt4"},{"type":"hidden","name":"e_tt5"},{"type":"hidden","name":"provider_id"},{"instance":{"openmrs_entity_id":"location_id","openmrs_entity":"encounter"},"type":"hidden","name":"provider_location_id"},{"type":"hidden","name":"provider_location_name"},{"type":"note","name":"provider_location_note","label":{"Urdu":"شہر: ${provider_city} ; ٹائون: ${provider_town} ; یوسی: ${provider_uc} ; سینٹرکا نام: ${provider_location_name}","English":"City: ${provider_city} ; Town: ${provider_town} ; UC: ${provider_uc} ; Center Name: ${provider_location_name}"}},{"instance":{"openmrs_entity_id":"163137AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"start","name":"start"},{"instance":{"openmrs_entity_id":"163138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"end","name":"end"},{"instance":{"openmrs_entity_id":"163286AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"today","name":"today"},{"instance":{"openmrs_entity_id":"163149AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"deviceid","name":"deviceid"},{"instance":{"openmrs_entity_id":"163150AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"subscriberid","name":"subscriberid"},{"instance":{"openmrs_entity_id":"163151AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"simserial","name":"simserial"},{"instance":{"openmrs_entity_id":"163152AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"phonenumber","name":"phonenumber"},{"bind":{"required":"yes"},"type":"note","name":"client_reg_date_note","label":{"Urdu":"${existing_client_reg_date} :پروگرام میں اندراج کی تاریخ","Roman Urdu":"Program main andraaj ki tareekh: ${existing_client_reg_date}","English":"Client Registration date: ${existing_client_reg_date}"}},{"bind":{"required":"yes"},"type":"note","name":"program_client_id_note","label":{"Urdu":"${existing_program_client_id}:کلائنٹ کی پروگرام ائی ڈی","Roman Urdu":"Client ki program ID: ${existing_program_client_id}","English":"Program Client ID: ${existing_program_client_id}"}},{"bind":{"required":"yes"},"type":"note","name":"epi_card_number_note","label":{"Urdu":"${existing_epi_card_number}: کارڈ نمبر","Roman Urdu":"Card Number: ${existing_epi_card_number}","English":"EPI Card Number: ${existing_epi_card_number}"}},{"bind":{"required":"yes"},"type":"note","name":"first_name_note","label":{"Urdu":"${existing_first_name}: نام","Roman Urdu":"Naam: ${existing_first_name}","English":"First Name: ${existing_first_name}"}},{"bind":{"required":"yes"},"type":"note","name":"last_name_note","label":{"Urdu":"والد کا نام: ${existing_last_name}","Roman Urdu":"Waalid ka naam: ${existing_last_name}","English":"Last name: ${existing_last_name}"}},{"bind":{"calculate":"date( today() - (${existing_calc_dob_confirm} div 365))"},"type":"calculate","name":"client_age","instance":{"openmrs_entity_id":"154384AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"type":"note","name":"member_birth_date_note","label":{"Urdu":"کلائنٹ کی تاریخِ پیدائش: {existing_calc_dob_confirm}$ ({client_age}$) سال","English":"Client birth date: ${existing_calc_dob_confirm} (${client_age}) years","Roman Urdu":"Client ki tareekh-e-pedaaish: ${existing_calc_dob_confirm} (${client_age}) years"}},{"bind":{"required":"yes"},"type":"note","name":"gender_note","label":{"Urdu":"${existing_gender}: جنس","Roman Urdu":"Jins:${existing_gender}","English":"Gender: ${existing_gender}"}},{"type":"note","name":"father_name_note","label":{"Urdu":"والد کا نام: {existing_father_name}$","English":"Father's Name: ${existing_father_name}","Roman Urdu":"Waalid ka naam: ${existing_father_name}"}},{"type":"note","name":"marriage_note","label":{"Urdu":"کیا آپ شادی شدہ ہیں: {existing_marriage}$","English":"Are you married: ${existing_marriage}","Roman Urdu":"Kya aap shaadi shuda hain: ${existing_marriage}"}},{"type":"note","name":"husband_name_note","label":{"Urdu":"شوہر کا نام: {existing_husband_name}$","English":"Husband's name: ${existing_husband_name}","Roman Urdu":"Shohar ka naam: ${existing_husband_name}"}},{"bind":{"required":"yes"},"type":"note","name":"ethnicity_note","label":{"Urdu":"قومیت: {existing_ethnicity}$","Roman Urdu":"Qomiat: ${existing_ethnicity}","English":"Ethnicity: ${existing_ethnicity}"}},{"type":"note","name":"address","label":{"Urdu":"موجودہ پتہ: ${existing_house_number}, ${existing_street}, ${existing_landmark}, ${existing_union_councilname}, ${existing_townname}, ${existing_city_villagename}, ${existing_provincename}","English":"Current Address: ${existing_house_number}, ${existing_street}, ${existing_landmark}, ${existing_union_councilname}, ${existing_townname}, ${existing_city_villagename}, ${existing_provincename}","Roman Urdu":"Mojooda Address: ${existing_house_number}, ${existing_street}, ${existing_landmark}, ${existing_union_councilname}, ${existing_townname}, ${existing_city_villagename}, ${existing_provincename}"}},{"label":{"Urdu":"کیا آپ کا گھر کا پتہ بدلا ہے؟","English":"Has your home address changed?","Roman Urdu":"Kya aap ka ghar ka pata badla hai?"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}],"name":"address_change"},{"control":{"appearance":"minimal"},"name":"province","default":"${provider_province}","bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"label":{"Urdu":"صوبہ","Roman Urdu":"Suba","English":"Province"},"instance":{"openmrs_entity":"person_address","openmrs_entity_id":"stateProvince","openmrs_entity_parent":"usual_residence"},"type":"select one","children":[{"name":"kpk","label":{"Urdu":"خیبر پختون خواہ","English":"Khyber Pakhtunkhwa","Roman Urdu":"Khyber Pakhtunkhwa"}},{"name":"sindh","label":{"Urdu":"سندھ","English":"Sindh","Roman Urdu":"Sindh"}},{"name":"balochistan","label":{"Urdu":"بلوچستان","English":"Balochistan","Roman Urdu":"Balochistan"}},{"name":"punjab","label":{"Urdu":"پنجاب","English":"Punjab","Roman Urdu":"Punjab"}},{"name":"gilgit_baltistan","label":{"Urdu":"گلگت بلتستان","English":"Gilgit Baltistan","Roman Urdu":"Gilgit Baltistan"}},{"name":"kashmir","label":{"Urdu":"کشمیر","English":"Kashmir","Roman Urdu":"Kashmir"}},{"name":"fata","label":{"Urdu":"فاٹا","English":"FATA","Roman Urdu":"FATA"}},{"name":"out_of_country","label":{"Urdu":"ملک سے باہر","English":"Out of Country","Roman Urdu":"Mulk se baahir"}}]},{"control":{"appearance":"minimal"},"name":"city_village","choice_filter":"province=${province} or province='na'","default":"${provider_city}","bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"label":{"Urdu":"شہر","Roman Urdu":"Shehr","English":"City"},"itemset":"cities","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"cityVillage","openmrs_entity_parent":"usual_residence"},"type":"select one"},{"control":{"appearance":"minimal"},"name":"town","choice_filter":"(province=${province} and city=${city_village} ) or city='na'","bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"label":{"Urdu":"ٹاٰئون/ قصبہ/ بستی","Roman Urdu":"Town / Qasbah / Basti","English":"Town"},"itemset":"towns","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"town","openmrs_entity_parent":"usual_residence"},"type":"select one"},{"control":{"appearance":"minimal"},"name":"union_council","choice_filter":"(province=${province} and city=${city_village} and town=${town}) or town='na'","bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"label":{"Urdu":"یونین کونسل","Roman Urdu":"Union Council","English":"Union Council"},"itemset":"ucs","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"subTown","openmrs_entity_parent":"usual_residence"},"type":"select one"},{"bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"type":"text","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"house","openmrs_entity_parent":"usual_residence"},"name":"house_number","label":{"Urdu":"گھر کا نمبر","Roman Urdu":"Ghar ka number","English":"House Number"}},{"bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"type":"text","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"street","openmrs_entity_parent":"usual_residence"},"name":"street","label":{"Urdu":"گلی/کالونی/محلہ","Roman Urdu":"Gali/Colony/Mohalla","English":"Street"}},{"bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"type":"text","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"landmark","openmrs_entity_parent":"usual_residence"},"name":"landmark","label":{"Urdu":"گھر کے قریب کوئی مشہور جگہ","Roman Urdu":"Ghar ke qareeb koi mashoor jagah","English":"Land Mark"}},{"instance":{"openmrs_entity_id":"163277AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"geopoint","name":"center_gps","label":{"Urdu":"حاصل کردہ معلومات کی جگہ کے GPS کارڈینیٹس درج کریں","English":"Collect GPS coordinates of data entry location:","Roman Urdu":"Hasil karda malomaat ki jaga ke GPS coordinates darj karain"}},{"control":{"appearance":"minimal"},"name":"reminders_approval","bind":{"required":"yes"},"label":{"Urdu":"کیا آپ اپنے بچے کی اگلی ویکسین کی تاریخ کے لیے SMS موصول کرنا چاہتے ہیں؟ {existing_reminders_approval}$","English":"Are you willing to receive SMS reminders for your next visit? ${existing_reminders_approval}","Roman Urdu":"Kya aap apnay bachay ki agli vaccine ki tareekh ke liye SMS mausool karna chahtay hain? ${existing_reminders_approval}"},"instance":{"openmrs_entity_id":"163089AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}]},{"bind":{"jr:constraintMsg":{"Urdu":"فون نمبر گیارہ ہندسوں پر مشتمل اور مندرجہ ذیل شکل میں ہونا چاہئے: *********03","English":"Phone number should be 11 digits in the following format: 03*********","Roman Urdu":"Phone number 11 hindason par mushtamil aur mundarja zail shakal main hona chahiey: 03*********"},"relevant":"${existing_reminders_approval}='yes'","constraint":"regex(., '^03[0-9]{9}$')"},"type":"text","instance":{"openmrs_entity_id":"159635AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"contact_phone_number","label":{"Urdu":"موبائل نمبر:{existing_contact_phone_number}$","English":"Mobile Number: ${existing_contact_phone_number}","Roman Urdu":"Mobile Number: ${existing_contact_phone_number}"}},{"instance":{"openmrs_entity_id":"5272AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"label":{"Urdu":"کیا خا تون حاملہ ہیں؟","English":"Is female pregnant?","Roman Urdu":"Kia khatoon haamla hain?"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}],"name":"pregnant"},{"name":"edd_lmp","bind":{"relevant":"selected (${pregnant}, 'yes')"},"label":{"Urdu":"کیا آپ کو اپنی پچھلی ماہواری کی تاریخ، زچگی کی متوقع تاریخ، یا الٹرا سائونڈ کا علم ہے؟","English":"Do you know your LMP, EDD or last Ultrasound information?","Roman Urdu":"Kya aap ko apni pichli mahwaari ki tareekh, zachgi ki mutawaqqa tareekh ya ultrasound ka ilm hai?"},"instance":{"openmrs_entity_id":"160697AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"5596AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"edd","label":{"Urdu":"زچگی کی متوقع تاریخ","Roman Urdu":"EDD","English":"EDD"}},{"instance":{"openmrs_code":"1427AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"lmp","label":{"Urdu":"پچھلی مہواری کی تاریخ","Roman Urdu":"LMP","English":"LMP"}},{"instance":{"openmrs_code":"159617AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ultrasound","label":{"Urdu":"الٹرا سائونڈ","Roman Urdu":"Ultrasound","English":"Ultrasound"}},{"instance":{"openmrs_code":"1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"none","label":{"Urdu":"کوئی بھی نہیں","Roman Urdu":"Koi bhi nahi","English":"None of the above"}}]},{"bind":{"jr:constraintMsg":{"Urdu":"زچگی کی متوقع تاریخ ماضی کی نہیں ہو سکتی","Roman Urdu":"Zachgi ki mutawaqqa tareekh maazi ki nahi hosakti","English":"EDD cannot be in the past"},"relevant":"selected (${edd_lmp}, 'edd')","constraint":".>=${today}"},"type":"date","name":"edd","label":{"Urdu":"زچگی کی متوقع تاریخ","Roman Urdu":"Zachgi ki mutawaqqa tareekh","English":"EDD"}},{"bind":{"jr:constraintMsg":{"Urdu":"پچھلی ماہواری کی تاریخ مستقبل کی نہیں ہوسکتی","Roman Urdu":"Pichli mahwaari ki tareekh mustaqbil ki nahi hosakti","English":"LMP cannot be in the future"},"relevant":"selected (${edd_lmp}, 'lmp')","constraint":".<=${today}"},"type":"date","name":"lmp","label":{"Urdu":"پچھلی ماہواری کی تاریخ","Roman Urdu":"Pichli mahwaari ki tareekh","English":"LMP"}},{"bind":{"relevant":"selected (${edd_lmp}, 'ultrasound')"},"type":"date","instance":{"openmrs_entity_id":"163165AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"ultrasound_date","label":{"Urdu":"الٹرا سائونڈ کی تاریخ","English":"Ultrasound Date","Roman Urdu":"Ultrasound ki tareekh"}},{"bind":{"relevant":"selected (${edd_lmp}, 'ultrasound')"},"type":"integer","name":"ultrasound_weeks","label":{"Urdu":"الٹرا سائونڈ کی مدد سے حمل کی مدت [ہفتوں میں]","Roman Urdu":"Ultrasound ki madad se hamal ki muddat (hafton me)","English":"Gestational age determined by ultrasound"}},{"bind":{"calculate":"date(${lmp}+280)"},"type":"calculate","name":"edd_calc_lmp"},{"bind":{"calculate":"date((280-(${ultrasound_weeks}*7)+${ultrasound_date} ))"},"type":"calculate","name":"edd_calc_ultrasound"},{"bind":{"calculate":"format-date(${edd_calc_lmp}, '%Y-%n-%e')"},"type":"calculate","name":"edd_calc_lmp_formatted"},{"bind":{"calculate":"format-date(${edd_calc_ultrasound}, '%Y-%n-%e')"},"type":"calculate","name":"edd_calc_ultrasound_formatted"},{"bind":{"calculate":"date(${edd}-280)"},"type":"calculate","name":"lmp_calc_edd"},{"bind":{"calculate":"date(${ultrasound_date}-(${ultrasound_weeks}*7))"},"type":"calculate","name":"lmp_calc_ultrasound"},{"bind":{"calculate":"format-date(${lmp_calc_edd}, '%Y-%n-%e')"},"type":"calculate","name":"lmp_calc_edd_formatted"},{"bind":{"calculate":"format-date(${lmp_calc_ultrasound}, '%Y-%n-%e')"},"type":"calculate","name":"lmp_calc_ultrasound_formatted"},{"bind":{"calculate":"if(${edd_lmp}='lmp',${edd_calc_lmp_formatted},if(${edd_lmp}='edd',${edd} ,if(${edd_lmp}='ultrasound',${edd_calc_ultrasound_formatted},'')))"},"type":"calculate","name":"final_edd","instance":{"openmrs_entity_id":"5596AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"bind":{"calculate":"if(${edd_lmp}='lmp',${lmp},if(${edd_lmp}='edd',${lmp_calc_edd_formatted} ,if(${edd_lmp}='ultrasound',${lmp_calc_ultrasound_formatted},'')))"},"type":"calculate","name":"final_lmp","instance":{"openmrs_entity_id":"1427AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"bind":{"calculate":"int((${vaccination_date} - (${edd}-280))div7)"},"type":"calculate","name":"ga_edd"},{"bind":{"calculate":"int((${vaccination_date} - ${lmp})div7)"},"type":"calculate","name":"ga_lmp"},{"bind":{"calculate":"int((${vaccination_date} -(${ultrasound_date}-(${ultrasound_weeks}*7)))div7)"},"type":"calculate","name":"ga_ult"},{"bind":{"relevant":"selected (${pregnant}, 'yes')"},"type":"note","name":"final_edd_note","label":{"Urdu":"${final_edd}: زچگی کی متوقع تاریخ","Roman Urdu":"Zachgi ki mutawaqqa tareekh: ${final_edd}","English":"EDD: ${final_edd}"}},{"bind":{"relevant":"selected (${pregnant}, 'yes')"},"type":"note","name":"final_lmp_note","label":{"Urdu":"پچھلی ماہواری کی تاریخ :{final_lmp}$","Roman Urdu":"Pichli mahwaari ki tareekh: ${final_lmp}","English":"LMP: ${final_lmp}"}},{"bind":{"calculate":"if(${edd_lmp}='lmp',${ga_lmp},if(${edd_lmp}='edd',${ga_edd} ,if(${edd_lmp}='ultrasound',${ga_ult},'')))"},"type":"calculate","name":"final_ga","instance":{"openmrs_entity_id":"163166AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"bind":{"relevant":"selected (${pregnant}, 'yes')"},"type":"note","name":"final_ga_note","label":{"Urdu":"حمل کی مُدّت: {final_ga}$ ہفتے","Roman Urdu":"Hamal ki muddat: ${final_ga} weeks","English":"GA: ${final_ga} weeks"}},{"name":"vaccines","choice_filter":"name != if( ${e_tt1} != '', 'TT1' , '') and \nname != if( ${e_tt2} != '', 'TT2' , '') and \nname != if( ${e_tt3} != '', 'TT3' , '') and \nname != if( ${e_tt4} != '', 'TT4' , '') and \nname != if( ${e_tt5} != '', 'TT5' , '')","default":"minimal","label":{"Urdu":"پچھلی تاریخ جب کسی اور سینٹر پر ٹیکہ لگوایا گیا یا قطرے پلائے گئے","Roman Urdu":"Pichli tareekh jab kissi aur center par teeka lagwaya gaya ya katray pilaey gaye","English":"Retro vaccines"},"itemset":"vaccines","instance":{"openmrs_entity":"concept","openmrs_entity_id":"984AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1421AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"select all that apply"},{"bind":{"relevant":"selected(${vaccines},'TT1')","constraint":"(.<=${today} and .<=${existing_client_reg_date})"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tt1_retro","label":{"Urdu":"ٹی ٹی 1","Roman Urdu":"TT1","English":"TT1"}},{"bind":{"relevant":"selected(${vaccines},'TT1')","calculate":"1"},"type":"calculate","name":"tt_1_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines},'TT2')","constraint":"(.<=${today} and .>=${tt1_retro} and ((selected(${vaccines}, 'TT1'))))"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tt2_retro","label":{"Urdu":"ٹی ٹی 2","Roman Urdu":"TT2","English":"TT2"}},{"bind":{"relevant":"selected(${vaccines},'TT2')","calculate":"2"},"type":"calculate","name":"tt_2_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines},'TT3')","constraint":"(.<=${today} and .>=${tt2_retro} and ((selected(${vaccines}, 'TT2'))))"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tt3_retro","label":{"Urdu":"ٹی ٹی 3","Roman Urdu":"TT3","English":"TT3"}},{"bind":{"relevant":"selected(${vaccines},'TT3')","calculate":"3"},"type":"calculate","name":"tt_3_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines},'TT4')","constraint":"(.<=${today} and .>=${tt3_retro} and ((selected(${vaccines}, 'TT3'))))"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tt4_retro","label":{"Urdu":"ٹی ٹی 4","Roman Urdu":"TT4","English":"TT4"}},{"bind":{"relevant":"selected(${vaccines},'TT4')","calculate":"4"},"type":"calculate","name":"tt_4_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"name":"vaccines_2","choice_filter":"name != if( ${e_tt1} != '', 'TT1' , '') and \nname != if( ${e_tt2} != '', 'TT2' , '') and \nname != if( ${e_tt3} != '', 'TT3' , '') and \nname != if( ${e_tt4} != '', 'TT4' , '') and \nname != if( ${e_tt5} != '', 'TT5' , '') and \nname != if( selected(${vaccines}, 'TT1') , 'TT1', '') and \nname != if( selected(${vaccines}, 'TT2') , 'TT2', '') and \nname != if( selected(${vaccines}, 'TT3') , 'TT3', '') and \nname != if( selected(${vaccines}, 'TT4') , 'TT4', '') and \nname != if( selected(${vaccines}, 'TT5') , 'TT5', '')","bind":{"required":"yes"},"label":{"Urdu":"آج کون کون سی ویکسین دی گئی ہیں؟","Roman Urdu":"Aaj kon kon si vaccine di gai hain?","English":"Vaccine administered today"},"itemset":"vaccines","instance":{"openmrs_entity":"concept","openmrs_entity_id":"984AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1441AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"select all that apply"},{"bind":{"required":"yes"},"type":"date","instance":{"openmrs_entity_id":"encounter_date","openmrs_entity":"encounter"},"name":"vaccination_date","label":{"Urdu":"تاریخ","English":"Vaccination date","Roman Urdu":"Tareekh"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'TT1'),${vaccination_date},'')"},"type":"calculate","name":"tt1","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2},'TT1')","calculate":"1"},"type":"calculate","name":"tt_1_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'TT2'),${vaccination_date},'')"},"type":"calculate","name":"tt2","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2},'TT2')","calculate":"2"},"type":"calculate","name":"tt_2_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'TT3'),${vaccination_date},'')"},"type":"calculate","name":"tt3","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2},'TT3')","calculate":"3"},"type":"calculate","name":"tt_3_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'TT4'),${vaccination_date},'')"},"type":"calculate","name":"tt4","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2},'TT4')","calculate":"4"},"type":"calculate","name":"tt_4_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'TT5'),${vaccination_date},'')"},"type":"calculate","name":"tt5","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2},'TT5')","calculate":"5"},"type":"calculate","name":"tt_5_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"control":{"bodyless":true},"type":"group","children":[{"bind":{"readonly":"true()","calculate":"concat('uuid:', uuid())"},"type":"calculate","name":"instanceID"}],"name":"meta"}]} \ No newline at end of file diff --git a/opensrp-connector/src/test/resources/form/woman_followup/form.xml b/opensrp-connector/src/test/resources/form/woman_followup/form.xml deleted file mode 100644 index 678d93463a..0000000000 --- a/opensrp-connector/src/test/resources/form/woman_followup/form.xml +++ /dev/null @@ -1,1435 +0,0 @@ -
- - -

خواتین فالواپ رجسٹر برائے ٹیکاجات - Woman TT Follow Up Form

-
-
- - کیا آپ کا گھر کا پتہ بدلا ہے؟ - Kya aap ka ghar ka pata badla hai? - - Has your home address changed? -
- - -
-
-
-
- - کیا خا تون حاملہ ہیں؟ - Kia khatoon haamla hain? - - Is female pregnant? -
- - -
-
-
-
- - کیا آپ کو اپنی پچھلی ماہواری کی تاریخ، زچگی کی متوقع تاریخ، یا الٹرا سائونڈ کا علم ہے؟ - Kya aap ko apni pichli mahwaari ki tareekh, zachgi ki mutawaqqa tareekh ya ultrasound ka ilm hai? - - Do you know your LMP, EDD or last Ultrasound information? -
- - - - -
-
-
-
- - پچھلی تاریخ جب کسی اور سینٹر پر ٹیکہ لگوایا گیا یا قطرے پلائے گئے - Pichli tareekh jab kissi aur center par teeka lagwaya gaya ya katray pilaey gaye - - Retro vaccines -
- - - ٹی ٹی 1 - TT1 - - TT1 - ٹی ٹی 2 - TT2 - - TT2 - ٹی ٹی 3 - TT3 - - TT3 - ٹی ٹی 4 - TT4 - - TT4 - ٹی ٹی 5 - TT5 - - TT5 -
-
-
-
- - آج کون کون سی ویکسین دی گئی ہیں؟ - Aaj kon kon si vaccine di gai hain? - - Vaccine administered today - * -
- - - ٹی ٹی 1 - TT1 - - TT1 - ٹی ٹی 2 - TT2 - - TT2 - ٹی ٹی 3 - TT3 - - TT3 - ٹی ٹی 4 - TT4 - - TT4 - ٹی ٹی 5 - TT5 - - TT5 -
-
-
- -
diff --git a/opensrp-connector/src/test/resources/form/woman_followup/form_definition.json b/opensrp-connector/src/test/resources/form/woman_followup/form_definition.json deleted file mode 100644 index b1d257f7a1..0000000000 --- a/opensrp-connector/src/test/resources/form/woman_followup/form_definition.json +++ /dev/null @@ -1,384 +0,0 @@ -{ - "form_data_definition_version" : "1", - "form" : { - "bind_type" : "pkwoman", - "default_bind_path" : "/model/instance/Woman_TT_Followup_Form/", - "fields" : [ { - "name" : "id", - "shouldLoadValue" : true - }, { - "name" : "provider_uc", - "bind" : "/model/instance/Woman_TT_Followup_Form/provider_uc", - "shouldLoadValue" : true - }, { - "name" : "provider_town", - "bind" : "/model/instance/Woman_TT_Followup_Form/provider_town", - "shouldLoadValue" : true - }, { - "name" : "provider_city", - "bind" : "/model/instance/Woman_TT_Followup_Form/provider_city", - "shouldLoadValue" : true - }, { - "name" : "provider_province", - "bind" : "/model/instance/Woman_TT_Followup_Form/provider_province", - "shouldLoadValue" : true - }, { - "name" : "existing_landmark", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_landmark", - "shouldLoadValue" : true - }, { - "name" : "existing_house_number", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_house_number", - "shouldLoadValue" : true - }, { - "name" : "existing_street", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_street", - "shouldLoadValue" : true - }, { - "name" : "existing_union_council", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_union_council", - "shouldLoadValue" : true - }, { - "name" : "existing_town", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_town", - "shouldLoadValue" : true - }, { - "name" : "existing_city_village", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_city_village", - "shouldLoadValue" : true - }, { - "name" : "existing_province", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_province", - "shouldLoadValue" : true - }, { - "name" : "existing_union_councilname", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_union_councilname", - "shouldLoadValue" : true - }, { - "name" : "existing_townname", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_townname", - "shouldLoadValue" : true - }, { - "name" : "existing_city_villagename", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_city_villagename", - "shouldLoadValue" : true - }, { - "name" : "existing_provincename", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_provincename", - "shouldLoadValue" : true - }, { - "name" : "existing_first_name", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_first_name", - "shouldLoadValue" : true - }, { - "name" : "existing_last_name", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_last_name", - "shouldLoadValue" : true - }, { - "name" : "existing_father_name", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_father_name", - "shouldLoadValue" : true - }, { - "name" : "existing_husband_name", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_husband_name", - "shouldLoadValue" : true - }, { - "name" : "existing_marriage", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_marriage", - "shouldLoadValue" : true - }, { - "name" : "existing_birthdate", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_calc_dob_confirm", - "shouldLoadValue" : true - }, { - "name" : "existing_gender", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_gender", - "shouldLoadValue" : true - }, { - "name" : "existing_ethnicity", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_ethnicity", - "shouldLoadValue" : true - }, { - "name" : "existing_client_reg_date", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_client_reg_date", - "shouldLoadValue" : true - }, { - "name" : "existing_program_client_id", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_program_client_id", - "shouldLoadValue" : true - }, { - "name" : "existing_epi_card_number", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_epi_card_number", - "shouldLoadValue" : true - }, { - "name" : "existing_reminders_approval", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_reminders_approval" - }, { - "name" : "existing_contact_phone_number", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_contact_phone_number" - }, { - "name" : "e_tt1", - "bind" : "/model/instance/Woman_TT_Followup_Form/e_tt1", - "shouldLoadValue" : true - }, { - "name" : "e_tt2", - "bind" : "/model/instance/Woman_TT_Followup_Form/e_tt2", - "shouldLoadValue" : true - }, { - "name" : "e_tt3", - "bind" : "/model/instance/Woman_TT_Followup_Form/e_tt3", - "shouldLoadValue" : true - }, { - "name" : "e_tt4", - "bind" : "/model/instance/Woman_TT_Followup_Form/e_tt4", - "shouldLoadValue" : true - }, { - "name" : "e_tt5", - "bind" : "/model/instance/Woman_TT_Followup_Form/e_tt5", - "shouldLoadValue" : true - }, { - "name" : "provider_id", - "bind" : "/model/instance/Woman_TT_Followup_Form/provider_id", - "shouldLoadValue" : true - }, { - "name" : "provider_location_id", - "bind" : "/model/instance/Woman_TT_Followup_Form/provider_location_id", - "shouldLoadValue" : true - }, { - "name" : "provider_location_name", - "bind" : "/model/instance/Woman_TT_Followup_Form/provider_location_name", - "shouldLoadValue" : true - }, { - "name" : "provider_location_note", - "bind" : "/model/instance/Woman_TT_Followup_Form/provider_location_note" - }, { - "name" : "start", - "bind" : "/model/instance/Woman_TT_Followup_Form/start" - }, { - "name" : "end", - "bind" : "/model/instance/Woman_TT_Followup_Form/end" - }, { - "name" : "today", - "bind" : "/model/instance/Woman_TT_Followup_Form/today" - }, { - "name" : "deviceid", - "bind" : "/model/instance/Woman_TT_Followup_Form/deviceid" - }, { - "name" : "subscriberid", - "bind" : "/model/instance/Woman_TT_Followup_Form/subscriberid" - }, { - "name" : "simserial", - "bind" : "/model/instance/Woman_TT_Followup_Form/simserial" - }, { - "name" : "phonenumber", - "bind" : "/model/instance/Woman_TT_Followup_Form/phonenumber" - }, { - "name" : "client_reg_date_note", - "bind" : "/model/instance/Woman_TT_Followup_Form/client_reg_date_note" - }, { - "name" : "program_client_id_note", - "bind" : "/model/instance/Woman_TT_Followup_Form/program_client_id_note" - }, { - "name" : "epi_card_number_note", - "bind" : "/model/instance/Woman_TT_Followup_Form/epi_card_number_note" - }, { - "name" : "first_name_note", - "bind" : "/model/instance/Woman_TT_Followup_Form/first_name_note" - }, { - "name" : "last_name_note", - "bind" : "/model/instance/Woman_TT_Followup_Form/last_name_note" - }, { - "name" : "client_age", - "bind" : "/model/instance/Woman_TT_Followup_Form/client_age" - }, { - "name" : "member_birth_date_note", - "bind" : "/model/instance/Woman_TT_Followup_Form/member_birth_date_note" - }, { - "name" : "gender_note", - "bind" : "/model/instance/Woman_TT_Followup_Form/gender_note" - }, { - "name" : "father_name_note", - "bind" : "/model/instance/Woman_TT_Followup_Form/father_name_note" - }, { - "name" : "marriage_note", - "bind" : "/model/instance/Woman_TT_Followup_Form/marriage_note" - }, { - "name" : "husband_name_note", - "bind" : "/model/instance/Woman_TT_Followup_Form/husband_name_note" - }, { - "name" : "ethnicity_note", - "bind" : "/model/instance/Woman_TT_Followup_Form/ethnicity_note" - }, { - "name" : "address", - "bind" : "/model/instance/Woman_TT_Followup_Form/address" - }, { - "name" : "address_change", - "bind" : "/model/instance/Woman_TT_Followup_Form/address_change" - }, { - "name" : "province", - "bind" : "/model/instance/Woman_TT_Followup_Form/province" - }, { - "name" : "city_village", - "bind" : "/model/instance/Woman_TT_Followup_Form/city_village" - }, { - "name" : "town", - "bind" : "/model/instance/Woman_TT_Followup_Form/town" - }, { - "name" : "union_council", - "bind" : "/model/instance/Woman_TT_Followup_Form/union_council" - }, { - "name" : "house_number", - "bind" : "/model/instance/Woman_TT_Followup_Form/house_number" - }, { - "name" : "street", - "bind" : "/model/instance/Woman_TT_Followup_Form/street" - }, { - "name" : "landmark", - "bind" : "/model/instance/Woman_TT_Followup_Form/landmark" - }, { - "name" : "center_gps", - "bind" : "/model/instance/Woman_TT_Followup_Form/center_gps" - }, { - "name" : "reminders_approval", - "bind" : "/model/instance/Woman_TT_Followup_Form/reminders_approval" - }, { - "name" : "contact_phone_number", - "bind" : "/model/instance/Woman_TT_Followup_Form/contact_phone_number" - }, { - "name" : "pregnant", - "bind" : "/model/instance/Woman_TT_Followup_Form/pregnant" - }, { - "name" : "edd_lmp", - "bind" : "/model/instance/Woman_TT_Followup_Form/edd_lmp" - }, { - "name" : "edd", - "bind" : "/model/instance/Woman_TT_Followup_Form/edd" - }, { - "name" : "lmp", - "bind" : "/model/instance/Woman_TT_Followup_Form/lmp" - }, { - "name" : "ultrasound_date", - "bind" : "/model/instance/Woman_TT_Followup_Form/ultrasound_date" - }, { - "name" : "ultrasound_weeks", - "bind" : "/model/instance/Woman_TT_Followup_Form/ultrasound_weeks" - }, { - "name" : "edd_calc_lmp", - "bind" : "/model/instance/Woman_TT_Followup_Form/edd_calc_lmp" - }, { - "name" : "edd_calc_ultrasound", - "bind" : "/model/instance/Woman_TT_Followup_Form/edd_calc_ultrasound" - }, { - "name" : "edd_calc_lmp_formatted", - "bind" : "/model/instance/Woman_TT_Followup_Form/edd_calc_lmp_formatted" - }, { - "name" : "edd_calc_ultrasound_formatted", - "bind" : "/model/instance/Woman_TT_Followup_Form/edd_calc_ultrasound_formatted" - }, { - "name" : "lmp_calc_edd", - "bind" : "/model/instance/Woman_TT_Followup_Form/lmp_calc_edd" - }, { - "name" : "lmp_calc_ultrasound", - "bind" : "/model/instance/Woman_TT_Followup_Form/lmp_calc_ultrasound" - }, { - "name" : "lmp_calc_edd_formatted", - "bind" : "/model/instance/Woman_TT_Followup_Form/lmp_calc_edd_formatted" - }, { - "name" : "lmp_calc_ultrasound_formatted", - "bind" : "/model/instance/Woman_TT_Followup_Form/lmp_calc_ultrasound_formatted" - }, { - "name" : "final_edd", - "bind" : "/model/instance/Woman_TT_Followup_Form/final_edd" - }, { - "name" : "final_lmp", - "bind" : "/model/instance/Woman_TT_Followup_Form/final_lmp" - }, { - "name" : "ga_edd", - "bind" : "/model/instance/Woman_TT_Followup_Form/ga_edd" - }, { - "name" : "ga_lmp", - "bind" : "/model/instance/Woman_TT_Followup_Form/ga_lmp" - }, { - "name" : "ga_ult", - "bind" : "/model/instance/Woman_TT_Followup_Form/ga_ult" - }, { - "name" : "final_edd_note", - "bind" : "/model/instance/Woman_TT_Followup_Form/final_edd_note" - }, { - "name" : "final_lmp_note", - "bind" : "/model/instance/Woman_TT_Followup_Form/final_lmp_note" - }, { - "name" : "final_ga", - "bind" : "/model/instance/Woman_TT_Followup_Form/final_ga" - }, { - "name" : "final_ga_note", - "bind" : "/model/instance/Woman_TT_Followup_Form/final_ga_note" - }, { - "name" : "vaccines", - "bind" : "/model/instance/Woman_TT_Followup_Form/vaccines" - }, { - "name" : "tt1_retro", - "bind" : "/model/instance/Woman_TT_Followup_Form/tt1_retro" - }, { - "name" : "tt_1_dose", - "bind" : "/model/instance/Woman_TT_Followup_Form/tt_1_dose" - }, { - "name" : "tt2_retro", - "bind" : "/model/instance/Woman_TT_Followup_Form/tt2_retro" - }, { - "name" : "tt_2_dose", - "bind" : "/model/instance/Woman_TT_Followup_Form/tt_2_dose" - }, { - "name" : "tt3_retro", - "bind" : "/model/instance/Woman_TT_Followup_Form/tt3_retro" - }, { - "name" : "tt_3_dose", - "bind" : "/model/instance/Woman_TT_Followup_Form/tt_3_dose" - }, { - "name" : "tt4_retro", - "bind" : "/model/instance/Woman_TT_Followup_Form/tt4_retro" - }, { - "name" : "tt_4_dose", - "bind" : "/model/instance/Woman_TT_Followup_Form/tt_4_dose" - }, { - "name" : "vaccines_2", - "bind" : "/model/instance/Woman_TT_Followup_Form/vaccines_2" - }, { - "name" : "vaccination_date", - "bind" : "/model/instance/Woman_TT_Followup_Form/vaccination_date" - }, { - "name" : "tt1", - "bind" : "/model/instance/Woman_TT_Followup_Form/tt1" - }, { - "name" : "tt_1_dose_today", - "bind" : "/model/instance/Woman_TT_Followup_Form/tt_1_dose_today" - }, { - "name" : "tt2", - "bind" : "/model/instance/Woman_TT_Followup_Form/tt2" - }, { - "name" : "tt_2_dose_today", - "bind" : "/model/instance/Woman_TT_Followup_Form/tt_2_dose_today" - }, { - "name" : "tt3", - "bind" : "/model/instance/Woman_TT_Followup_Form/tt3" - }, { - "name" : "tt_3_dose_today", - "bind" : "/model/instance/Woman_TT_Followup_Form/tt_3_dose_today" - }, { - "name" : "tt4", - "bind" : "/model/instance/Woman_TT_Followup_Form/tt4" - }, { - "name" : "tt_4_dose_today", - "bind" : "/model/instance/Woman_TT_Followup_Form/tt_4_dose_today" - }, { - "name" : "tt5", - "bind" : "/model/instance/Woman_TT_Followup_Form/tt5" - }, { - "name" : "tt_5_dose_today", - "bind" : "/model/instance/Woman_TT_Followup_Form/tt_5_dose_today" - }, { - "name" : "instanceID", - "bind" : "/model/instance/Woman_TT_Followup_Form/meta/instanceID" - } ] - } -} \ No newline at end of file diff --git a/opensrp-connector/src/test/resources/form/woman_followup/model.xml b/opensrp-connector/src/test/resources/form/woman_followup/model.xml deleted file mode 100644 index e914536dda..0000000000 --- a/opensrp-connector/src/test/resources/form/woman_followup/model.xml +++ /dev/null @@ -1,1643 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - ${provider_province} - ${provider_city} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - minimal - - - - - - - - - - - - - - - - - - - - - - - - - - - - - static_instance-provinces-0 - kpk - - - static_instance-provinces-1 - sindh - - - static_instance-provinces-2 - balochistan - - - static_instance-provinces-3 - punjab - - - static_instance-provinces-4 - gilgit_baltistan - - - static_instance-provinces-5 - kashmir - - - static_instance-provinces-6 - fata - - - static_instance-provinces-7 - out_of_country - - - - - - - static_instance-ucs-0 - sindh - karachi - korangi - bilal_colony - - - static_instance-ucs-1 - sindh - karachi - korangi - nasir_colony - - - static_instance-ucs-2 - sindh - karachi - korangi - chakra_goth - - - static_instance-ucs-3 - sindh - karachi - korangi - mustafa_taj_colony - - - static_instance-ucs-4 - sindh - karachi - korangi - hundred_quarters - - - static_instance-ucs-5 - sindh - karachi - korangi - gulzar_colony - - - static_instance-ucs-6 - sindh - karachi - korangi - korangi_sector_33 - - - static_instance-ucs-7 - sindh - karachi - korangi - zaman_town - - - static_instance-ucs-8 - sindh - karachi - korangi - hasrat_mohani_colony - - - static_instance-ucs-9 - sindh - karachi - baldia - gulshan_e_ghazi - - - static_instance-ucs-10 - sindh - karachi - baldia - ittehad_town - - - static_instance-ucs-11 - sindh - karachi - baldia - islam_nagar - - - static_instance-ucs-12 - sindh - karachi - baldia - nai_abadi - - - static_instance-ucs-13 - sindh - karachi - baldia - saeedabad - - - static_instance-ucs-14 - sindh - karachi - baldia - muslim_mujahid_colony - - - static_instance-ucs-15 - sindh - karachi - baldia - muhajir_camp - - - static_instance-ucs-16 - sindh - karachi - baldia - rasheedabad - - - static_instance-ucs-17 - sindh - karachi - bin_qasim - ibrahim_hyderi - - - static_instance-ucs-18 - sindh - karachi - bin_qasim - rehri - - - static_instance-ucs-19 - sindh - karachi - bin_qasim - cattle_colony - - - static_instance-ucs-20 - sindh - karachi - bin_qasim - qaidabad - - - static_instance-ucs-21 - sindh - karachi - bin_qasim - landhi_colony - - - static_instance-ucs-22 - sindh - karachi - bin_qasim - gulshan_e_hadeed - - - static_instance-ucs-23 - sindh - karachi - bin_qasim - gaghar - - - static_instance-ucs-24 - sindh - karachi - gadap - murad_memon_goth - - - static_instance-ucs-25 - sindh - karachi - gadap - darsano_chana - - - static_instance-ucs-26 - sindh - karachi - gadap - gujro - - - static_instance-ucs-27 - sindh - karachi - gadap - songal - - - static_instance-ucs-28 - sindh - karachi - gadap - maymarabad - - - static_instance-ucs-29 - sindh - karachi - gadap - yousuf_goth - - - static_instance-ucs-30 - sindh - karachi - gadap - manghopir - - - static_instance-ucs-31 - sindh - karachi - gulberg - azizabad - - - static_instance-ucs-32 - sindh - karachi - gulberg - karimabad - - - static_instance-ucs-33 - sindh - karachi - gulberg - aisha_manzil - - - static_instance-ucs-34 - sindh - karachi - gulberg - ancholi - - - static_instance-ucs-35 - sindh - karachi - gulberg - naseerabad - - - static_instance-ucs-36 - sindh - karachi - gulberg - yaseenabad - - - static_instance-ucs-37 - sindh - karachi - gulberg - water_pump - - - static_instance-ucs-38 - sindh - karachi - gulberg - shafiq_mill_colony - - - static_instance-ucs-39 - sindh - karachi - gulshan - delhi_mercantile_society - - - static_instance-ucs-40 - sindh - karachi - gulshan - civic_centre - - - static_instance-ucs-41 - sindh - karachi - gulshan - pir_ilahi_buksh_colony - - - static_instance-ucs-42 - sindh - karachi - gulshan - essa_nagri - - - static_instance-ucs-43 - sindh - karachi - gulshan - gulshan_e_iqbal - - - static_instance-ucs-44 - sindh - karachi - gulshan - gillani_railway_station - - - static_instance-ucs-45 - sindh - karachi - gulshan - shanti_nagar - - - static_instance-ucs-46 - sindh - karachi - gulshan - jamali_colony - - - static_instance-ucs-47 - sindh - karachi - gulshan - gulshan_e_iqbal_ii - - - static_instance-ucs-48 - sindh - karachi - gulshan - pehlwan_goth - - - static_instance-ucs-49 - sindh - karachi - gulshan - matrovil_colony - - - static_instance-ucs-50 - sindh - karachi - gulshan - gulzar_e_hijri - - - static_instance-ucs-51 - sindh - karachi - gulshan - safooran_goth - - - static_instance-ucs-52 - sindh - karachi - jamshed - akhtar_colony - - - static_instance-ucs-53 - sindh - karachi - jamshed - manzoor_colony - - - static_instance-ucs-54 - sindh - karachi - jamshed - azam_basti - - - static_instance-ucs-55 - sindh - karachi - jamshed - chanesar_goth - - - static_instance-ucs-56 - sindh - karachi - jamshed - mahmudabad - - - static_instance-ucs-57 - sindh - karachi - jamshed - pechs - - - static_instance-ucs-58 - sindh - karachi - jamshed - pechs_ii - - - static_instance-ucs-59 - sindh - karachi - jamshed - jut_line - - - static_instance-ucs-60 - sindh - karachi - jamshed - central_jacob_lines - - - static_instance-ucs-61 - sindh - karachi - jamshed - jamshed_quarters - - - static_instance-ucs-62 - sindh - karachi - jamshed - garden_east - - - static_instance-ucs-63 - sindh - karachi - jamshed - soldier_bazar - - - static_instance-ucs-64 - sindh - karachi - jamshed - pakistan_quarters - - - static_instance-ucs-65 - sindh - karachi - kiamari - bhutta_village - - - static_instance-ucs-66 - sindh - karachi - kiamari - sultanabad - - - static_instance-ucs-67 - sindh - karachi - kiamari - kiamari_uc - - - static_instance-ucs-68 - sindh - karachi - kiamari - baba_bhit - - - static_instance-ucs-69 - sindh - karachi - kiamari - machar_colony - - - static_instance-ucs-70 - sindh - karachi - kiamari - maripur - - - static_instance-ucs-71 - sindh - karachi - kiamari - shershah - - - static_instance-ucs-72 - sindh - karachi - kiamari - gabo_pat - - - static_instance-ucs-73 - sindh - karachi - landhi - muzafarabad - - - static_instance-ucs-74 - sindh - karachi - landhi - muslimabad - - - static_instance-ucs-75 - sindh - karachi - landhi - dawood_chowrangi - - - static_instance-ucs-76 - sindh - karachi - landhi - moinabad - - - static_instance-ucs-77 - sindh - karachi - landhi - sharafi_goth - - - static_instance-ucs-78 - sindh - karachi - landhi - bhutto_nagar - - - static_instance-ucs-79 - sindh - karachi - landhi - khawaja_ajmeer_colony - - - static_instance-ucs-80 - sindh - karachi - landhi - landhi_uc - - - static_instance-ucs-81 - sindh - karachi - landhi - awami_colony - - - static_instance-ucs-82 - sindh - karachi - landhi - burmee_colony - - - static_instance-ucs-83 - sindh - karachi - landhi - korangi_uc - - - static_instance-ucs-84 - sindh - karachi - landhi - sherabad - - - static_instance-ucs-85 - sindh - karachi - liaquatabad - rizvia_society - - - static_instance-ucs-86 - sindh - karachi - liaquatabad - firdous_colony - - - static_instance-ucs-87 - sindh - karachi - liaquatabad - super_market - - - static_instance-ucs-88 - sindh - karachi - liaquatabad - dak_khana - - - static_instance-ucs-89 - sindh - karachi - liaquatabad - qasimabad - - - static_instance-ucs-90 - sindh - karachi - liaquatabad - bandhani_colony - - - static_instance-ucs-91 - sindh - karachi - liaquatabad - sharifabad - - - static_instance-ucs-92 - sindh - karachi - liaquatabad - commercial_area - - - static_instance-ucs-93 - sindh - karachi - liaquatabad - mujahid_colony - - - static_instance-ucs-94 - sindh - karachi - liaquatabad - nazimabad - - - static_instance-ucs-95 - sindh - karachi - liaquatabad - abbasi_shaheed - - - static_instance-ucs-96 - sindh - karachi - lyari - agra_taj_colony - - - static_instance-ucs-97 - sindh - karachi - lyari - daryaabad - - - static_instance-ucs-98 - sindh - karachi - lyari - nawabad - - - static_instance-ucs-99 - sindh - karachi - lyari - khada_memon_society - - - static_instance-ucs-100 - sindh - karachi - lyari - baghdadi - - - static_instance-ucs-101 - sindh - karachi - lyari - shah_baig_line - - - static_instance-ucs-102 - sindh - karachi - lyari - bihar_colony - - - static_instance-ucs-103 - sindh - karachi - lyari - ragiwara - - - static_instance-ucs-104 - sindh - karachi - lyari - singo_line - - - static_instance-ucs-105 - sindh - karachi - lyari - chakiwara - - - static_instance-ucs-106 - sindh - karachi - lyari - allama_iqbal_colony - - - static_instance-ucs-107 - sindh - karachi - malir - model_colony - - - static_instance-ucs-108 - sindh - karachi - malir - kala_board - - - static_instance-ucs-109 - sindh - karachi - malir - saudabad - - - static_instance-ucs-110 - sindh - karachi - malir - khokhra_par - - - static_instance-ucs-111 - sindh - karachi - malir - jafar_e_tayyar - - - static_instance-ucs-112 - sindh - karachi - malir - gharibabad - - - static_instance-ucs-113 - sindh - karachi - malir - ghazi_brohi_goth - - - static_instance-ucs-114 - sindh - karachi - new_karachi - kalyana - - - static_instance-ucs-115 - sindh - karachi - new_karachi - sir_syed_colony - - - static_instance-ucs-116 - sindh - karachi - new_karachi - fatima_jinnah_colony - - - static_instance-ucs-117 - sindh - karachi - new_karachi - godhra - - - static_instance-ucs-118 - sindh - karachi - new_karachi - abu_zar_ghaffari - - - static_instance-ucs-119 - sindh - karachi - new_karachi - hakim_ahsan - - - static_instance-ucs-120 - sindh - karachi - new_karachi - madina_colony - - - static_instance-ucs-121 - sindh - karachi - new_karachi - faisal_colony - - - static_instance-ucs-122 - sindh - karachi - new_karachi - khamiso_goth - - - static_instance-ucs-123 - sindh - karachi - new_karachi - mustufa_colony - - - static_instance-ucs-124 - sindh - karachi - new_karachi - khawaja_ajmeer_nagri - - - static_instance-ucs-125 - sindh - karachi - new_karachi - gulshan_e_saeed - - - static_instance-ucs-126 - sindh - karachi - new_karachi - shah_nawaz_bhutto_colony - - - static_instance-ucs-127 - sindh - karachi - north_nazimabad - paposh_nagar - - - static_instance-ucs-128 - sindh - karachi - north_nazimabad - pahar_ganj - - - static_instance-ucs-129 - sindh - karachi - north_nazimabad - khandu_goth - - - static_instance-ucs-130 - sindh - karachi - north_nazimabad - hyderi - - - static_instance-ucs-131 - sindh - karachi - north_nazimabad - sakhi_hassan - - - static_instance-ucs-132 - sindh - karachi - north_nazimabad - farooq_e_azam - - - static_instance-ucs-133 - sindh - karachi - north_nazimabad - nusrat_bhutto_colony - - - static_instance-ucs-134 - sindh - karachi - north_nazimabad - shadman_town - - - static_instance-ucs-135 - sindh - karachi - north_nazimabad - buffer_zone - - - static_instance-ucs-136 - sindh - karachi - north_nazimabad - buffer_zone_ii - - - static_instance-ucs-137 - sindh - karachi - orangi - mominabad - - - static_instance-ucs-138 - sindh - karachi - orangi - haryana_colony - - - static_instance-ucs-139 - sindh - karachi - orangi - hanifabad - - - static_instance-ucs-140 - sindh - karachi - orangi - mohammad_nagar - - - static_instance-ucs-141 - sindh - karachi - orangi - madina_colony_orangi - - - static_instance-ucs-142 - sindh - karachi - orangi - ghaziabad - - - static_instance-ucs-143 - sindh - karachi - orangi - chisti_nagar - - - static_instance-ucs-144 - sindh - karachi - orangi - bilal_colony_orangi - - - static_instance-ucs-145 - sindh - karachi - orangi - iqbal_baloch_colony - - - static_instance-ucs-146 - sindh - karachi - orangi - ghabool_town - - - static_instance-ucs-147 - sindh - karachi - orangi - data_nagar - - - static_instance-ucs-148 - sindh - karachi - orangi - mujahidabad - - - static_instance-ucs-149 - sindh - karachi - orangi - baloch_goth - - - static_instance-ucs-150 - sindh - karachi - saddar - old_haji_camp - - - static_instance-ucs-151 - sindh - karachi - saddar - garden - - - static_instance-ucs-152 - sindh - karachi - saddar - kharadar - - - static_instance-ucs-153 - sindh - karachi - saddar - city_railway_colony - - - static_instance-ucs-154 - sindh - karachi - saddar - nanak_wara - - - static_instance-ucs-155 - sindh - karachi - saddar - gazdarabad - - - static_instance-ucs-156 - sindh - karachi - saddar - millat_nagar_islam_pura - - - static_instance-ucs-157 - sindh - karachi - saddar - saddar_uc - - - static_instance-ucs-158 - sindh - karachi - saddar - civil_line - - - static_instance-ucs-159 - sindh - karachi - saddar - clifton - - - static_instance-ucs-160 - sindh - karachi - saddar - kehkashan - - - static_instance-ucs-161 - sindh - karachi - shah_faisal - natha_khan_goth - - - static_instance-ucs-162 - sindh - karachi - shah_faisal - pak_sadat_colony - - - static_instance-ucs-163 - sindh - karachi - shah_faisal - drigh_colony - - - static_instance-ucs-164 - sindh - karachi - shah_faisal - raita_plot - - - static_instance-ucs-165 - sindh - karachi - shah_faisal - moria_khan_goth - - - static_instance-ucs-166 - sindh - karachi - shah_faisal - rafa_e_aam_society - - - static_instance-ucs-167 - sindh - karachi - shah_faisal - al_falah_society - - - static_instance-ucs-168 - sindh - karachi - site - pak_colony - - - static_instance-ucs-169 - sindh - karachi - site - old_golimar - - - static_instance-ucs-170 - sindh - karachi - site - jahanabad - - - static_instance-ucs-171 - sindh - karachi - site - metrovil - - - static_instance-ucs-172 - sindh - karachi - site - bhawani_chali - - - static_instance-ucs-173 - sindh - karachi - site - frontier_colony - - - static_instance-ucs-174 - sindh - karachi - site - banaras_colony - - - static_instance-ucs-175 - sindh - karachi - site - qasba_colony - - - static_instance-ucs-176 - sindh - karachi - site - islamia_colony - - - static_instance-ucs-177 - na - na - na - other - - - static_instance-ucs-178 - na - na - na - not_applicable - - - - - - - static_instance-gender-0 - male - - - static_instance-gender-1 - female - - - static_instance-gender-2 - transgender - - - - - - - static_instance-vaccines-0 - TT1 - - - static_instance-vaccines-1 - TT2 - - - static_instance-vaccines-2 - TT3 - - - static_instance-vaccines-3 - TT4 - - - static_instance-vaccines-4 - TT5 - - - - - - - static_instance-towns-0 - sindh - karachi - korangi - - - static_instance-towns-1 - sindh - karachi - landhi - - - static_instance-towns-2 - sindh - karachi - baldia - - - static_instance-towns-3 - sindh - karachi - bin_qasim - - - static_instance-towns-4 - sindh - karachi - gadap - - - static_instance-towns-5 - sindh - karachi - gulberg - - - static_instance-towns-6 - sindh - karachi - gulshan - - - static_instance-towns-7 - sindh - karachi - jamshed - - - static_instance-towns-8 - sindh - karachi - kiamari - - - static_instance-towns-9 - sindh - karachi - liaquatabad - - - static_instance-towns-10 - sindh - karachi - lyari - - - static_instance-towns-11 - sindh - karachi - malir - - - static_instance-towns-12 - sindh - karachi - new_karachi - - - static_instance-towns-13 - sindh - karachi - north_nazimabad - - - static_instance-towns-14 - sindh - karachi - orangi - - - static_instance-towns-15 - sindh - karachi - saddar - - - static_instance-towns-16 - sindh - karachi - shah_faisal - - - static_instance-towns-17 - sindh - karachi - site - - - static_instance-towns-18 - na - na - other - - - static_instance-towns-19 - na - na - not_applicable - - - - - - - static_instance-cities-0 - sindh - karachi - - - static_instance-cities-1 - punjab - hafizabad - - - static_instance-cities-2 - punjab - muzaffargarh - - - static_instance-cities-3 - na - other - - - static_instance-cities-4 - na - not_applicable - - - - - - - static_instance-edd_lmp-0 - edd - - - static_instance-edd_lmp-1 - lmp - - - static_instance-edd_lmp-2 - ultrasound - - - static_instance-edd_lmp-3 - none - - - - - - - static_instance-yes_no-0 - yes - - - static_instance-yes_no-1 - no - - - - diff --git a/opensrp-connector/src/test/resources/test-applicationContext-opensrp-connector.xml b/opensrp-connector/src/test/resources/test-applicationContext-opensrp-connector.xml deleted file mode 100644 index 450cffba9d..0000000000 --- a/opensrp-connector/src/test/resources/test-applicationContext-opensrp-connector.xml +++ /dev/null @@ -1,87 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/opensrp-form/src/test/java/org/opensrp/form/domain/FormDataTest.java b/opensrp-form/src/test/java/org/opensrp/form/domain/FormDataTest.java deleted file mode 100644 index 25ad2200bf..0000000000 --- a/opensrp-form/src/test/java/org/opensrp/form/domain/FormDataTest.java +++ /dev/null @@ -1,81 +0,0 @@ -package org.opensrp.form.domain; - -import static org.junit.Assert.*; -import static org.junit.Assert.assertEquals; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import nl.jqno.equalsverifier.EqualsVerifier; -import nl.jqno.equalsverifier.Warning; - -import org.junit.Before; -import org.junit.Test; - -public class FormDataTest { - @Before - public void setUp() throws Exception { - - } - - @Test - public void shouldTestEqualsAndHash(){ - EqualsVerifier.forClass(FormData.class) - .suppress(Warning.STRICT_INHERITANCE) - .verify(); - } - @Test - public void shouldTestConstructor(){ - assertEquals(getForm().bindType(),"pkchild"); - assertNotSame(getForm().bindType(),"pkchilds"); - } - - @Test - public void shouldGetSubFormByName(){ - assertEquals("woman_registration", getForm().getSubFormByName("woman_registration").name()); - assertNotSame("woman_registrations", getForm().getSubFormByName("woman_registration").name()); - } - public FormData getForm(){ - String bind_type = "pkchild"; - String default_bind_path = "/model/instance/Child_Vaccination_Enrollment/"; - List fields = new ArrayList<>(); - FormField formField1 = new FormField("provider_town","pktown","pkchild.provider_town"); - FormField formField2 = new FormField("provider_city","providerCity","pkchild.provider_city"); - fields.add(formField1); - fields.add(formField2); - List sub_forms = new ArrayList<>(); - List> instances = new ArrayList<>(); - Map map = new HashMap<>(); - map.put("provider_town", "pktown"); - map.put("provider_city", "providerCity"); - instances.add(map); - SubFormData subFormData = new SubFormData("woman_registration", instances); - sub_forms.add(subFormData); - FormData formData2 = new FormData(bind_type,default_bind_path,fields,sub_forms); - return formData2; - } - @Test(expected=RuntimeException.class) - public void shouldGetRunTimeExceptionBygetSubFormByName(){ - String bind_type = "pkchild"; - String default_bind_path = "/model/instance/Child_Vaccination_Enrollment/"; - List fields = new ArrayList<>(); - FormField formField1 = new FormField("provider_town","pktown","pkchild.provider_town"); - FormField formField2 = new FormField("provider_city","providerCity","pkchild.provider_city"); - fields.add(formField1); - fields.add(formField2); - List sub_forms = new ArrayList<>(); - List> instances = new ArrayList<>(); - SubFormData subFormData = new SubFormData("woman_registration", instances); - FormData formData2 = new FormData(bind_type,default_bind_path,fields,sub_forms); - assertEquals("woman_registration", formData2.getSubFormByName("woman_registration").name()); - assertNotSame("woman_registrations", formData2.getSubFormByName("woman_registration").name()); - } - @Test - public void shouldGetFieldsAsMap(){ - assertEquals("providerCity", getForm().getFieldsAsMap().get("provider_city")); - assertNotSame("providerCity", getForm().getFieldsAsMap().get("provider_cityu")); - } - -} diff --git a/opensrp-form/src/test/java/org/opensrp/form/domain/FormFieldTest.java b/opensrp-form/src/test/java/org/opensrp/form/domain/FormFieldTest.java deleted file mode 100644 index 14d58a2f0f..0000000000 --- a/opensrp-form/src/test/java/org/opensrp/form/domain/FormFieldTest.java +++ /dev/null @@ -1,17 +0,0 @@ -package org.opensrp.form.domain; - -import nl.jqno.equalsverifier.EqualsVerifier; -import nl.jqno.equalsverifier.Warning; - -import org.junit.Test; - -public class FormFieldTest { - - @Test - public void shouldTestEqualsAndHash(){ - EqualsVerifier.forClass(FormField.class) - .suppress(Warning.STRICT_INHERITANCE) - .verify(); - } - -} diff --git a/opensrp-form/src/test/java/org/opensrp/form/domain/FormInstanceTest.java b/opensrp-form/src/test/java/org/opensrp/form/domain/FormInstanceTest.java deleted file mode 100644 index 4b776af015..0000000000 --- a/opensrp-form/src/test/java/org/opensrp/form/domain/FormInstanceTest.java +++ /dev/null @@ -1,40 +0,0 @@ -package org.opensrp.form.domain; - -import static org.junit.Assert.*; -import static org.junit.Assert.assertEquals; -import nl.jqno.equalsverifier.EqualsVerifier; -import nl.jqno.equalsverifier.Warning; - -import org.junit.Test; - -public class FormInstanceTest { - @Test - public void shouldTestEqualsAndHash(){ - EqualsVerifier.forClass(FormInstance.class) - .suppress(Warning.STRICT_INHERITANCE) - .verify(); - } - @Test - public void shouldTestCOnstructorAndGetSubFormByName(){ - FormDataTest formDataTest = new FormDataTest(); - FormData formData = formDataTest.getForm(); - FormInstance formInstance = new FormInstance(formData, "1"); - FormInstance formInstance1 = new FormInstance(formData); - formInstance1.toString(); - assertNotNull(formInstance1); - assertEquals("woman_registration",formInstance.getSubFormByName("woman_registration").name()); - assertNotSame("woman_registrations",formInstance.getSubFormByName("woman_registration").name()); - - } - - @Test(expected=RuntimeException.class) - public void shouldGetRuntimeExcemptionTestCOnstructorAndGetSubFormByName(){ - FormDataTest formDataTest = new FormDataTest(); - FormData formData = formDataTest.getForm(); - FormInstance formInstance = new FormInstance(formData, "1"); - FormInstance formInstance1 = new FormInstance(formData); - formInstance1.toString(); - formInstance.getSubFormByName("woman_registrations").name(); - } - -} diff --git a/opensrp-form/src/test/java/org/opensrp/form/domain/FormSubmissionTest.java b/opensrp-form/src/test/java/org/opensrp/form/domain/FormSubmissionTest.java deleted file mode 100644 index 8aeb3eea90..0000000000 --- a/opensrp-form/src/test/java/org/opensrp/form/domain/FormSubmissionTest.java +++ /dev/null @@ -1,78 +0,0 @@ -package org.opensrp.form.domain; - -import static org.junit.Assert.*; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotEquals; -import static org.junit.Assert.assertNull; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import org.junit.Test; - -public class FormSubmissionTest { - - @Test - public void shouldGetFields(){ - FormDataTest formDataTest = new FormDataTest(); - FormData formData = formDataTest.getForm(); - FormInstance formInstance = new FormInstance(formData, "1"); - List fieldNames = new ArrayList<>(); - fieldNames.add("provider_city"); - fieldNames.add("provider_town"); - FormSubmission formSubmission = new FormSubmission("ANM1", "", "pkchild", "", "1", 0l, formInstance); - assertEquals("providerCity", formSubmission.getFields(fieldNames).get("provider_city")); - assertNotEquals("providerCity", formSubmission.getFields(fieldNames).get("provider_citi")); - } - - @Test - public void shouldGetSubFormByName(){ - FormDataTest formDataTest = new FormDataTest(); - FormData formData = formDataTest.getForm(); - FormInstance formInstance = new FormInstance(formData, "1"); - List fieldNames = new ArrayList<>(); - fieldNames.add("provider_city"); - fieldNames.add("provider_town"); - FormSubmission formSubmission = new FormSubmission("ANM1", "", "pkchild", "", "1", 0l, formInstance); - assertEquals("woman_registration", formSubmission.getSubFormByName("woman_registration").name()); - assertNotSame("woman_registrationw", formSubmission.getSubFormByName("woman_registration").name()); - } - - - @Test(expected=RuntimeException.class) - public void shouldGetRuntimeExceptionWhenGetSubFormByName() throws Exception{ - FormDataTest formDataTest = new FormDataTest(); - FormData formData = formDataTest.getForm(); - FormInstance formInstance = new FormInstance(formData, "1"); - List fieldNames = new ArrayList<>(); - fieldNames.add("provider_city"); - fieldNames.add("provider_town"); - FormSubmission formSubmission = new FormSubmission("ANM1", "", "pkchild", "", "1", 0l, formInstance); - formSubmission.getSubFormByName("woman_registrations"); - } - - @Test - public void shouldAddMetadataAndGetMetadata(){ - FormDataTest formDataTest = new FormDataTest(); - FormData formData = formDataTest.getForm(); - FormInstance formInstance = new FormInstance(formData, "1"); - List fieldNames = new ArrayList<>(); - fieldNames.add("provider_city"); - fieldNames.add("provider_town"); - Map metadata = new HashMap<>(); - metadata.put("meta", "Meta"); - FormSubmission formSubmission = new FormSubmission("ANM1", "", "pkchild", "", "1", 0l, formInstance); - formSubmission.addMetadata("meta", "Meta"); - assertEquals(metadata, formSubmission.getMetadata()); - assertEquals("Meta", formSubmission.getMetadata("meta")); - Map metadata1 = new HashMap<>(); - metadata.put("meta1", "Meta"); - assertNotEquals("Meta1", formSubmission.getMetadata("meta")); - assertNotEquals(metadata1, formSubmission.getMetadata()); - FormSubmission formSubmission1 = new FormSubmission("ANM1", "", "pkchild", "", "1", 0l, formInstance); - assertNull(formSubmission1.getMetadata("meta")); - } - -} diff --git a/opensrp-form/src/test/java/org/opensrp/form/repository/it/AllSubmissionsIntegrationTest.java b/opensrp-form/src/test/java/org/opensrp/form/repository/it/AllSubmissionsIntegrationTest.java deleted file mode 100644 index 16b26d1df7..0000000000 --- a/opensrp-form/src/test/java/org/opensrp/form/repository/it/AllSubmissionsIntegrationTest.java +++ /dev/null @@ -1,127 +0,0 @@ -package org.opensrp.form.repository.it; - -import java.util.HashMap; -import java.util.Map; - -import org.junit.Before; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.motechproject.util.DateUtil; -import org.opensrp.form.domain.FormSubmission; -import org.opensrp.form.repository.AllFormSubmissions; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.test.context.ContextConfiguration; -import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; - -import static java.util.Arrays.asList; -import static junit.framework.Assert.*; - -@RunWith(SpringJUnit4ClassRunner.class) -@ContextConfiguration("classpath:applicationContext-opensrp-form.xml") -public class AllSubmissionsIntegrationTest extends TestDatabaseConfig { - @Autowired - private AllFormSubmissions formSubmissions; - - @Before - public void setUp() throws Exception { - formSubmissions.removeAll(); - } - - @Test - public void shouldCheckIfFormSubmissionExistsByInstanceId() throws Exception { - FormSubmission formSubmission = new FormSubmission("anm id 1", "instance id 1", "form name 1", "entity id 1", 1L, "1", null, 0L); - formSubmissions.add(formSubmission); - - assertTrue(formSubmissions.exists("instance id 1")); - assertFalse(formSubmissions.exists("Invalid Instance Id")); - } - - @Test - public void shouldFetchAllFormSubmissionsAfterServerVersion() throws Exception { - long baseTimeStamp = DateUtil.now().getMillis(); - - FormSubmission firstFormSubmission = new FormSubmission("anm id 1", "instance id 1", "form name 1", "entity id 1", 0L, "1", null, baseTimeStamp); - formSubmissions.add(firstFormSubmission); - - FormSubmission secondFormSubmission = new FormSubmission("anm id 2", "instance id 2", "form name 1", "entity id 2", 1L, "1", null, baseTimeStamp + 1); - formSubmissions.add(secondFormSubmission); - - FormSubmission thirdFormSubmission = new FormSubmission("anm id 3", "instance id 3", "form name 1", "entity id 3", 2L, "1", null, baseTimeStamp + 2); - formSubmissions.add(thirdFormSubmission); - - assertEquals(asList(firstFormSubmission, secondFormSubmission, thirdFormSubmission), formSubmissions.findByServerVersion(0L)); - assertEquals(asList(secondFormSubmission, thirdFormSubmission), formSubmissions.findByServerVersion(firstFormSubmission.serverVersion())); - assertEquals(asList(thirdFormSubmission), formSubmissions.findByServerVersion(secondFormSubmission.serverVersion())); - assertEquals(0, formSubmissions.findByServerVersion(thirdFormSubmission.serverVersion()).size()); - } - - @Test - public void shouldFetchAllFormSubmissions() throws Exception { - long baseTimeStamp = DateUtil.now().getMillis(); - - FormSubmission firstFormSubmission = new FormSubmission("anm id 1", "instance id 1", "form name 1", "entity id 1", 0L, "1", null, baseTimeStamp); - formSubmissions.add(firstFormSubmission); - - FormSubmission secondFormSubmission = new FormSubmission("anm id 2", "instance id 2", "form name 1", "entity id 2", 1L, "1", null, baseTimeStamp + 1); - formSubmissions.add(secondFormSubmission); - - FormSubmission thirdFormSubmission = new FormSubmission("anm id 3", "instance id 3", "form name 1", "entity id 3", 2L, "1", null, baseTimeStamp + 2); - formSubmissions.add(thirdFormSubmission); - - assertEquals(asList(firstFormSubmission, secondFormSubmission, thirdFormSubmission), formSubmissions.allFormSubmissions(0, 3)); - assertEquals(asList(firstFormSubmission, secondFormSubmission), formSubmissions.allFormSubmissions(0, 2)); - assertEquals(asList(firstFormSubmission, secondFormSubmission, thirdFormSubmission), formSubmissions.allFormSubmissions(0, 3)); - assertEquals(asList(secondFormSubmission, thirdFormSubmission), formSubmissions.allFormSubmissions(firstFormSubmission.serverVersion(), 3)); - - } - - @Test - public void shouldFetchFormSubmissionsBasedOnANMIDTimeStampAndBatchSize() throws Exception { - long baseTimeStamp = DateUtil.now().getMillis(); - FormSubmission firstFormSubmission = new FormSubmission("ANM 1", "instance id 1", "form name 1", "entity id 1", 0L, "1", null, baseTimeStamp); - formSubmissions.add(firstFormSubmission); - - FormSubmission secondFormSubmission = new FormSubmission("ANM 1", "instance id 2", "form name 1", "entity id 2", 1L, "1", null, baseTimeStamp + 1); - formSubmissions.add(secondFormSubmission); - - FormSubmission thirdFormSubmission = new FormSubmission("ANM 1", "instance id 3", "form name 1", "entity id 3", 2L, "1", null, baseTimeStamp + 2); - formSubmissions.add(thirdFormSubmission); - - assertEquals(asList(firstFormSubmission, secondFormSubmission, thirdFormSubmission), formSubmissions.findByANMIDAndServerVersion("ANM 1", 0L, null)); - assertEquals(asList(secondFormSubmission, thirdFormSubmission), formSubmissions.findByANMIDAndServerVersion("ANM 1", firstFormSubmission.serverVersion(), null)); - assertEquals(asList(thirdFormSubmission), formSubmissions.findByANMIDAndServerVersion("ANM 1", secondFormSubmission.serverVersion(), null)); - assertEquals(asList(firstFormSubmission, secondFormSubmission), formSubmissions.findByANMIDAndServerVersion("ANM 1", 0L, 2)); - - assertEquals(0, formSubmissions.findByANMIDAndServerVersion("ANM 1", thirdFormSubmission.serverVersion(), null).size()); - } - @Test - public void shouldFindByFormName(){ - long baseTimeStamp = DateUtil.now().getMillis(); - FormSubmission firstFormSubmission = new FormSubmission("ANM 1", "instance id 1", "DemoForm", "entity id 1", 0L, "1", null, baseTimeStamp); - formSubmissions.add(firstFormSubmission); - assertEquals(asList(firstFormSubmission), formSubmissions.findByFormName("DemoForm", 0l)); - FormSubmission secondFormSubmission = new FormSubmission("ANM 1", "instance id 2", "form name 1", "entity id 2", 1L, "1", null, baseTimeStamp + 1); - assertNotSame(asList(secondFormSubmission), formSubmissions.findByFormName("DemoForm", 0l)); - } - @Test - public void shouldGetAllFormSubmissions(){ - long baseTimeStamp = DateUtil.now().getMillis(); - FormSubmission firstFormSubmission = new FormSubmission("ANM 1", "instance id 1", "DemoForm Name", "entity id 1", 0L, "1", null, baseTimeStamp); - formSubmissions.add(firstFormSubmission); - assertEquals(asList(firstFormSubmission), formSubmissions.allFormSubmissions(getStdCouchDbConnectorForOpensrpForm(),0, 1)); - FormSubmission secondFormSubmission = new FormSubmission("ANM 1", "instance id 2", "form name 1", "entity id 2", 1L, "1", null, baseTimeStamp + 1); - assertNotSame(asList(secondFormSubmission), formSubmissions.allFormSubmissions(getStdCouchDbConnectorForOpensrpForm(),0, 1)); - } - @Test - public void shouldFindByMetadata(){ - long baseTimeStamp = DateUtil.now().getMillis(); - FormSubmission firstFormSubmission = new FormSubmission("ANM 2", "instance id 7", "DemoForm ff", "entity id 78", 0L, "1", null, baseTimeStamp); - Map metadata = new HashMap<>(); - metadata.put("formType", new String("type")); - firstFormSubmission.setMetadata(metadata); - formSubmissions.add(firstFormSubmission); - assertEquals(asList(firstFormSubmission), formSubmissions.findByMetadata("formType","type")); - FormSubmission secondFormSubmission = new FormSubmission("ANM 1", "instance id 2", "form name 1", "entity id 2", 1L, "1", null, baseTimeStamp + 1); - assertNotSame(asList(secondFormSubmission), formSubmissions.findByMetadata("formType","type")); - } -} diff --git a/opensrp-form/src/test/java/org/opensrp/form/repository/it/TestDatabaseConfig.java b/opensrp-form/src/test/java/org/opensrp/form/repository/it/TestDatabaseConfig.java deleted file mode 100644 index a3a0599cb0..0000000000 --- a/opensrp-form/src/test/java/org/opensrp/form/repository/it/TestDatabaseConfig.java +++ /dev/null @@ -1,63 +0,0 @@ -package org.opensrp.form.repository.it; - -import org.ektorp.CouchDbInstance; -import org.ektorp.http.HttpClient; -import org.ektorp.http.StdHttpClient; -import org.ektorp.impl.StdCouchDbConnector; -import org.ektorp.impl.StdCouchDbInstance; -import org.ektorp.impl.StdObjectMapperFactory; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.beans.factory.annotation.Value; - -import javax.annotation.PostConstruct; - -import static org.mockito.MockitoAnnotations.initMocks; - -public class TestDatabaseConfig { - - private CouchDbInstance dbInstance; - - private StdCouchDbConnector stdCouchDbConnectorOpensrpForm; - - @Autowired - //@Value("#{opensrp['openmrs.url']}") - @Value("#{opensrp['couchdb.username']}") - public String userName; - - @Autowired - @Value("#{opensrp['couchdb.password']}") - private String password; - - @Autowired - @Value("#{opensrp['couchdb.server']}") - private String url; - - @Autowired - @Value("#{opensrp['couchdb.port']}") - private int port; - - public TestDatabaseConfig() { - initMocks(this); - } - - @PostConstruct - public void intCouchDbConfiguration() { - HttpClient httpClient = new StdHttpClient.Builder().host(url).username(userName).password(password).port(port) - .socketTimeout(1000).build(); - dbInstance = new StdCouchDbInstance(httpClient); - stdCouchDbConnectorOpensrpForm = new StdCouchDbConnector("opensrp-form", dbInstance, new StdObjectMapperFactory()); - stdCouchDbConnectorOpensrpForm.createDatabaseIfNotExists(); - } - - public StdCouchDbConnector getStdCouchDbConnectorForOpensrpForm() { - return stdCouchDbConnectorOpensrpForm; - } - - public CouchDbInstance getDbInstance() { - return dbInstance; - } - - public void setDbInstance(CouchDbInstance dbInstance) { - this.dbInstance = dbInstance; - } -} diff --git a/opensrp-form/src/test/java/org/opensrp/form/service/FormAttributeParserTest.java b/opensrp-form/src/test/java/org/opensrp/form/service/FormAttributeParserTest.java deleted file mode 100644 index 63553fc7e1..0000000000 --- a/opensrp-form/src/test/java/org/opensrp/form/service/FormAttributeParserTest.java +++ /dev/null @@ -1,488 +0,0 @@ -package org.opensrp.form.service; - -import static org.hamcrest.Matchers.*; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; -import static org.junit.Assert.assertThat; -import static org.junit.Assert.assertTrue; -import static org.mockito.MockitoAnnotations.initMocks; - -import java.io.IOException; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; - -import javax.xml.parsers.ParserConfigurationException; -import javax.xml.xpath.XPathExpressionException; - -import org.hamcrest.Matchers; -import org.junit.Before; -import org.junit.Test; -import org.opensrp.form.domain.FormSubmission; -import org.xml.sax.SAXException; - -import com.google.gson.JsonIOException; -import com.google.gson.JsonSyntaxException; - - -public class FormAttributeParserTest extends TestResourceLoader{ - - public FormAttributeParserTest() throws IOException { - super(); - } - - FormAttributeParser fam; - - @Before - public void setUp() throws Exception { - initMocks(this); - fam = new FormAttributeParser(formDirPath); - } - - @SuppressWarnings({ "unchecked" }) - @Test - public void shouldValidateGeneratedFormSubmissionMap() throws JsonIOException, IOException, JsonSyntaxException, XPathExpressionException, ParserConfigurationException, SAXException { - FormSubmission fs = getFormSubmissionFor("basic_reg"); - FormSubmissionMap fsm = fam.createFormSubmissionMap(fs); - assertEquals("/model/instance/register_with_address/", fsm.bindPath()); - assertEquals("register_with_address", fsm.bindType()); - assertEquals(1426830449320L, fsm.clientTimestamp()); - assertEquals("b716d938-1aea-40ae-a081-9ddddddcccc9", fsm.entityId()); - - testFormField(fsm.fields(), "woman_name", "text", "test woman_name", - "/model/instance/register_with_address/woman_name", - fsm.getField("woman_name").fieldAttributes(), makeFieldAttributes("person", "first_name")); - testFormField(fsm.fields(), "last_name", "text", "test last_name", - "/model/instance/register_with_address/last_name", - fsm.getField("last_name").fieldAttributes(), makeFieldAttributes("person", "last_name")); - testFormField(fsm.fields(), "gender", "text", "FEMALE", - "/model/instance/register_with_address/gender", - fsm.getField("gender").fieldAttributes(), makeFieldAttributes("person", "gender")); - testFormField(fsm.fields(), "birthdate", "date", "2015-02-01", - "/model/instance/register_with_address/birthdate", - fsm.getField("birthdate").fieldAttributes(), makeFieldAttributes("person", "birthdate")); - testFormField(fsm.fields(), "location", "select one", "unknown location", - "/model/instance/register_with_address/location", - fsm.getField("location").fieldAttributes(), makeFieldAttributes("encounter", "location_id")); - testFormField(fsm.fields(), "anc_visit_date", "date", "2015-02-01", - "/model/instance/register_with_address/anc_visit_date", - fsm.getField("anc_visit_date").fieldAttributes(), makeFieldAttributes("encounter", "encounter_date")); - testFormField(fsm.fields(), "pulse_rate", "integer", "55", - "/model/instance/register_with_address/pulse_rate", - fsm.getField("pulse_rate").fieldAttributes(), makeFieldAttributes("concept", "5087AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA")); - testFormField(fsm.fields(), "temperature", "decimal", "37", - "/model/instance/register_with_address/temperature", - fsm.getField("temperature").fieldAttributes(), makeFieldAttributes("concept", "5088AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA")); - testFormField(fsm.fields(), "today", "today", "2015-02-01", - "/model/instance/register_with_address/today", - fsm.getField("today").fieldAttributes(), new HashMap()); - testFormField(fsm.fields(), "start", "start", "2015-02-01", - "/model/instance/register_with_address/start", - fsm.getField("start").fieldAttributes(), new HashMap()); - testFormField(fsm.fields(), "end", "end", "2015-02-01", - "/model/instance/register_with_address/end", - fsm.getField("end").fieldAttributes(), new HashMap()); - - testFormField(fsm.fields(), "birthplace_lat", "text", "test birthplace_lat", - "/model/instance/register_with_address/birthplace_address/birthplace_lat", - fsm.getField("birthplace_lat").fieldAttributes(), makeFieldAttributes("person_address", "latitude", "birthplace")); - testFormField(fsm.fields(), "birthplace_lon", "text", "test birthplace_lon", - "/model/instance/register_with_address/birthplace_address/birthplace_lon", - fsm.getField("birthplace_lon").fieldAttributes(), makeFieldAttributes("person_address", "longitute", "birthplace")); - testFormField(fsm.fields(), "birthplace_postcode", "text", "test birthplace_postcode", - "/model/instance/register_with_address/birthplace_address/birthplace_postcode", - fsm.getField("birthplace_postcode").fieldAttributes(), makeFieldAttributes("person_address", "postalcode", "birthplace")); - testFormField(fsm.fields(), "birthplace_house", "text", "test birthplace_house", - "/model/instance/register_with_address/birthplace_address/birthplace_house", - fsm.getField("birthplace_house").fieldAttributes(), makeFieldAttributes("person_address", "house_number", "birthplace")); - testFormField(fsm.fields(), "birthplace_street", "text", "test birthplace_street", - "/model/instance/register_with_address/birthplace_address/birthplace_street", - fsm.getField("birthplace_street").fieldAttributes(), makeFieldAttributes("person_address", "street", "birthplace")); - testFormField(fsm.fields(), "birthplace_area", "text", "test birthplace_area", - "/model/instance/register_with_address/birthplace_address/birthplace_area", - fsm.getField("birthplace_area").fieldAttributes(), makeFieldAttributes("person_address", "area", "birthplace")); - testFormField(fsm.fields(), "birthplace_town", "text", "test birthplace_town", - "/model/instance/register_with_address/birthplace_address/birthplace_town", - fsm.getField("birthplace_town").fieldAttributes(), makeFieldAttributes("person_address", "town", "birthplace")); - testFormField(fsm.fields(), "birthplace_busroute", "text", "test birthplace_busroute", - "/model/instance/register_with_address/birthplace_address/birthplace_busroute", - fsm.getField("birthplace_busroute").fieldAttributes(), makeFieldAttributes("person_address", "bus_route", "birthplace")); - testFormField(fsm.fields(), "birthplace_district", "text", "test birthplace_district", - "/model/instance/register_with_address/birthplace_address/birthplace_district", - fsm.getField("birthplace_district").fieldAttributes(), makeFieldAttributes("person_address", "district", "birthplace")); - testFormField(fsm.fields(), "birthplace_city", "text", "test birthplace_city", - "/model/instance/register_with_address/birthplace_address/birthplace_city", - fsm.getField("birthplace_city").fieldAttributes(), makeFieldAttributes("person_address", "city", "birthplace")); - testFormField(fsm.fields(), "birthplace_state", "text", "test birthplace_state", - "/model/instance/register_with_address/birthplace_address/birthplace_state", - fsm.getField("birthplace_state").fieldAttributes(), makeFieldAttributes("person_address", "state", "birthplace")); - testFormField(fsm.fields(), "birthplace_country", "text", "test birthplace_country", - "/model/instance/register_with_address/birthplace_address/birthplace_country", - fsm.getField("birthplace_country").fieldAttributes(), makeFieldAttributes("person_address", "country", "birthplace")); - - - testFormField(fsm.fields(), "usual_residence_lat", "text", "test usual_residence_lat", - "/model/instance/register_with_address/usual_residence_address/usual_residence_lat", - fsm.getField("usual_residence_lat").fieldAttributes(), makeFieldAttributes("person_address", "latitude", "usual_residence")); - testFormField(fsm.fields(), "usual_residence_lon", "text", "test usual_residence_lon", - "/model/instance/register_with_address/usual_residence_address/usual_residence_lon", - fsm.getField("usual_residence_lon").fieldAttributes(), makeFieldAttributes("person_address", "longitute", "usual_residence")); - testFormField(fsm.fields(), "usual_residence_postcode", "text", "test usual_residence_postcode", - "/model/instance/register_with_address/usual_residence_address/usual_residence_postcode", - fsm.getField("usual_residence_postcode").fieldAttributes(), makeFieldAttributes("person_address", "postalcode", "usual_residence")); - testFormField(fsm.fields(), "usual_residence_house", "text", "test usual_residence_house", - "/model/instance/register_with_address/usual_residence_address/usual_residence_house", - fsm.getField("usual_residence_house").fieldAttributes(), makeFieldAttributes("person_address", "unit", "usual_residence")); - testFormField(fsm.fields(), "usual_residence_street", "text", "test usual_residence_street", - "/model/instance/register_with_address/usual_residence_address/usual_residence_street", - fsm.getField("usual_residence_street").fieldAttributes(), makeFieldAttributes("person_address", "lane", "usual_residence")); - testFormField(fsm.fields(), "usual_residence_area", "text", "test usual_residence_area", - "/model/instance/register_with_address/usual_residence_address/usual_residence_area", - fsm.getField("usual_residence_area").fieldAttributes(), makeFieldAttributes("person_address", "sector", "usual_residence")); - testFormField(fsm.fields(), "usual_residence_town", "text", "test usual_residence_town", - "/model/instance/register_with_address/usual_residence_address/usual_residence_town", - fsm.getField("usual_residence_town").fieldAttributes(), makeFieldAttributes("person_address", "municipality", "usual_residence")); - testFormField(fsm.fields(), "usual_residence_start", "date", "2015-02-01", - "/model/instance/register_with_address/usual_residence_address/usual_residence_start", - fsm.getField("usual_residence_start").fieldAttributes(), makeFieldAttributes("person_address", "startdate", "usual_residence")); - testFormField(fsm.fields(), "usual_residence_district", "text", "test usual_residence_district", - "/model/instance/register_with_address/usual_residence_address/usual_residence_district", - fsm.getField("usual_residence_district").fieldAttributes(), makeFieldAttributes("person_address", "district", "usual_residence")); - testFormField(fsm.fields(), "usual_residence_city", "text", "test usual_residence_city", - "/model/instance/register_with_address/usual_residence_address/usual_residence_city", - fsm.getField("usual_residence_city").fieldAttributes(), makeFieldAttributes("person_address", "city", "usual_residence")); - testFormField(fsm.fields(), "usual_residence_state", "text", "test usual_residence_state", - "/model/instance/register_with_address/usual_residence_address/usual_residence_state", - fsm.getField("usual_residence_state").fieldAttributes(), makeFieldAttributes("person_address", "province", "usual_residence")); - testFormField(fsm.fields(), "usual_residence_country", "text", "test usual_residence_country", - "/model/instance/register_with_address/usual_residence_address/usual_residence_country", - fsm.getField("usual_residence_country").fieldAttributes(), makeFieldAttributes("person_address", "country", "usual_residence")); - - - assertThat(fsm.formAttributes(), Matchers.allOf( - Matchers.hasEntry("encounter_type", "patient_register"), - Matchers.hasEntry("id", "patient_basic_reg"), - Matchers.hasEntry("version", "201504030905"))); - assertEquals("basic_reg", fsm.formName()); - assertEquals("1", fsm.formVersion()); - //TODO assertEquals(, fsm.getSubform(entityId, subformName)); - assertEquals("88ceee24-10b4-44c2-9429-754b8d823776", fsm.instanceId()); - assertEquals("admin", fsm.providerId()); - assertEquals(1430998001293L, fsm.serverTimestamp()); - assertEquals(0, fsm.subforms().size()); - } - - @SuppressWarnings("unchecked") - @Test - public void shouldValidateGeneratedFormSubmissionMapWithSubform() throws JsonIOException, IOException, JsonSyntaxException, XPathExpressionException, ParserConfigurationException, SAXException { - FormSubmission fs = getFormSubmissionFor("new_household_registration", 7); - FormSubmissionMap fsm = fam.createFormSubmissionMap(fs); - assertEquals("/model/instance/FWNewHH", fsm.bindPath()); - assertEquals("household", fsm.bindType()); - assertEquals(1430997074596L, fsm.clientTimestamp()); - assertEquals("a3f2abf4-2699-4761-819a-cea739224164", fsm.entityId()); - - testFormField(fsm.fields(), "existing_location", "hidden", "KUPTALA", - "/model/instance/FWNewHH/existing_location", - fsm.getField("existing_location").fieldAttributes(), makeFieldAttributes("encounter", "location_id")); - testFormField(fsm.fields(), "today", "today", "2015-05-07", - "/model/instance/FWNewHH/today", - fsm.getField("today").fieldAttributes(), makeFieldAttributes("encounter", "encounter_date") ); - testFormField(fsm.fields(), "start", "start", "2015-05-07T17:07:21.000+06:00", - "/model/instance/FWNewHH/start", - fsm.getField("start").fieldAttributes(), new HashMap()); - testFormField(fsm.fields(), "end", "end", "2015-05-07T17:07:21.000+06:00", - "/model/instance/FWNewHH/end", - fsm.getField("end").fieldAttributes(), new HashMap()); - testFormField(fsm.fields(), "FWNHREGDATE", "date", "2015-05-07", - "/model/instance/FWNewHH/FWNHREGDATE", - fsm.getField("FWNHREGDATE").fieldAttributes(), makeFieldAttributes("concept", "160753AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA")); - testFormField(fsm.fields(), "FWGOBHHID", "text", "1234", - "/model/instance/FWNewHH/FWGOBHHID", - fsm.getField("FWGOBHHID").fieldAttributes(), makeFieldAttributes("person_identifier", "GOB HHID")); - testFormField(fsm.fields(), "FWJIVHHID", "text", "1234", - "/model/instance/FWNewHH/FWJIVHHID", - fsm.getField("FWJIVHHID").fieldAttributes(), makeFieldAttributes("person_identifier", "JiVitA HHID")); - testFormField(fsm.fields(), "FWNHNEARTO", "text", "nothing", - "/model/instance/FWNewHH/FWNHNEARTO", - fsm.getField("FWNHNEARTO").fieldAttributes(), makeFieldAttributes("person_address", "landmark", "usual_residence")); - testFormField(fsm.fields(), "FWNHHHGPS", "geopoint", "34 34 0 0", - "/model/instance/FWNewHH/FWNHHHGPS", - fsm.getField("FWNHHHGPS").fieldAttributes(), makeFieldAttributes("person_address", "geopoint", "usual_residence")); - testFormField(fsm.fields(), "FWHOHFNAME", "text", "test", - "/model/instance/FWNewHH/FWHOHFNAME", - fsm.getField("FWHOHFNAME").fieldAttributes(), makeFieldAttributes("person", "first_name")); -//TODO all other props - assertThat(fsm.formAttributes(), Matchers.allOf( - Matchers.hasEntry("encounter_type", "New Household Registration"), - Matchers.hasEntry("id", "FWNewHH"), - Matchers.hasEntry("version", "201505061341"))); - assertEquals("new_household_registration", fsm.formName()); - assertEquals("1", fsm.formVersion()); - assertEquals("88c0e824-10b4-44c2-9429-754b8d823776", fsm.instanceId()); - assertEquals("admin", fsm.providerId()); - assertEquals(1430998001293L, fsm.serverTimestamp()); - assertEquals(1, fsm.subforms().size()); - SubformMap sf = fsm.subforms().get(0); - assertEquals("elco", sf.bindType()); - assertEquals("/model/instance/FWNewHH/woman", sf.defaultBindPath()); - assertEquals("babcd9d2-b3e9-4f6d-8a06-2df8f5fbf01f", sf.entityId()); - - testFormField(sf.fields(), "FWWOMFNAME", "text", "tEST First", - "/model/instance/FWNewHH/woman/FWWOMFNAME", - sf.getField("FWWOMFNAME").fieldAttributes(), makeFieldAttributes("person", "first_name")); - testFormField(sf.fields(), "FWWOMLNAME", "calculate", " lastname", - "/model/instance/FWNewHH/woman/FWWOMLNAME", - sf.getField("FWWOMLNAME").fieldAttributes(), makeFieldAttributes("person", "last_name")); - testFormField(sf.fields(), "FWWOMNID", "text", "5478549854895", - "/model/instance/FWNewHH/woman/FWWOMNID", - sf.getField("FWWOMNID").fieldAttributes(), makeFieldAttributes("person_identifier", "NID")); - testFormField(sf.fields(), "FWWOMBID", "text", "43030293029323", - "/model/instance/FWNewHH/woman/FWWOMBID", - sf.getField("FWWOMBID").fieldAttributes(), makeFieldAttributes("person_identifier", "Birth Registration ID")); - - assertThat(sf.formAttributes(), Matchers.allOf( - Matchers.hasEntry("openmrs_entity", "person"), - Matchers.hasEntry("openmrs_entity_id", "Census and New Woman Registration"))); - assertEquals("elco_registration", sf.name()); - } - - @Test - public void shouldValidateGeneratedFormSubmissionMapWithNoLastName() throws JsonIOException, IOException, JsonSyntaxException, XPathExpressionException, ParserConfigurationException, SAXException { - FormSubmission fs = getFormSubmissionFor("new_household_registration_with_grouped_subform_data", 1); - FormSubmissionMap fsm = fam.createFormSubmissionMap(fs); - assertEquals("/model/instance/FWNewHH", fsm.bindPath()); - assertEquals("household", fsm.bindType()); - assertEquals(1444562091545L, fsm.clientTimestamp()); - assertEquals("4237d267-d438-49f2-7822-8968t555447c", fsm.entityId()); - - testFormField(fsm.fields(), "existing_location", "hidden", "2fc43738-ace5-g961-8e8f-ab7dg0e5bc63", - "/model/instance/FWNewHH/existing_location", - fsm.getField("existing_location").fieldAttributes(), makeFieldAttributes("encounter", "location_id")); - testFormField(fsm.fields(), "today", "today", "2015-10-11", - "/model/instance/FWNewHH/today", - fsm.getField("today").fieldAttributes(), makeFieldAttributes("encounter", "encounter_date") ); - testFormField(fsm.fields(), "start", "start", "2015-10-11T17:12:34.000+06:00", - "/model/instance/FWNewHH/start", - fsm.getField("start").fieldAttributes(), new HashMap()); - testFormField(fsm.fields(), "end", "end", "2015-10-11T17:12:34.000+06:00", - "/model/instance/FWNewHH/end", - fsm.getField("end").fieldAttributes(), new HashMap()); - testFormField(fsm.fields(), "FWNHREGDATE", "date", "2015-10-11", - "/model/instance/FWNewHH/FWNHREGDATE", - fsm.getField("FWNHREGDATE").fieldAttributes(), makeFieldAttributes("concept", "160753AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA")); - testFormField(fsm.fields(), "FWGOBHHID", "text", "2322", - "/model/instance/FWNewHH/FWGOBHHID", - fsm.getField("FWGOBHHID").fieldAttributes(), makeFieldAttributes("person_attribute", "GoB_HHID")); - testFormField(fsm.fields(), "FWJIVHHID", "text", "9889", - "/model/instance/FWNewHH/FWJIVHHID", - fsm.getField("FWJIVHHID").fieldAttributes(), makeFieldAttributes("person_attribute", "JiVitA_HHID")); - testFormField(fsm.fields(), "FWNHHHGPS", "geopoint", "23.8002 90.4068 0 10", - "/model/instance/FWNewHH/FWNHHHGPS", - fsm.getField("FWNHHHGPS").fieldAttributes(), makeFieldAttributes("person_address", "geopoint", "usual_residence")); - testFormField(fsm.fields(), "FWHOHFNAME", "text", "mango", - "/model/instance/FWNewHH/FWHOHFNAME", - fsm.getField("FWHOHFNAME").fieldAttributes(), makeFieldAttributes("person", "first_name")); -//TODO all other props - assertThat(fsm.formAttributes(), Matchers.allOf( - Matchers.hasEntry("encounter_type", "New Household Registration"), - Matchers.hasEntry("id", "FWNewHH"), - Matchers.hasEntry("version", "201510181114"))); - assertEquals("new_household_registration_with_grouped_subform_data", fsm.formName()); - assertEquals("12", fsm.formVersion()); - assertEquals("d304dbr7-3998-434f-8c5b-55d6f5fa4252", fsm.instanceId()); - assertEquals("opensrp", fsm.providerId()); - assertEquals(1444734863350L, fsm.serverTimestamp()); - assertEquals(1, fsm.subforms().size()); - SubformMap sf = fsm.subforms().get(0); - assertEquals("elco", sf.bindType()); - assertEquals("/model/instance/FWNewHH/woman", sf.defaultBindPath()); - assertEquals("ce71572a-8oc5-u32f-9d3b-4a6b568d5g77", sf.entityId()); - - testFormField(sf.fields(), "FWWOMFNAME", "text", "jackfruit", - "/model/instance/FWNewHH/woman/FWWOMFNAME", - sf.getField("FWWOMFNAME").fieldAttributes(), makeFieldAttributes("person", "first_name")); - testFormField(sf.fields(), "FWWOMLNAME", "calculate", ".", - "/model/instance/FWNewHH/woman/FWWOMLNAME", - sf.getField("FWWOMLNAME").fieldAttributes(), makeFieldAttributes("person", "last_name")); - testFormField(sf.fields(), "FWWOMRETYPENID", "text", "7675788777775", - "/model/instance/FWNewHH/woman/eligible/FWWOMRETYPENID", - sf.getField("FWWOMRETYPENID").fieldAttributes(), makeFieldAttributes("person_identifier", "NID")); - testFormField(sf.fields(), "FWWOMRETYPEBID", "text", "98899998888888888", - "/model/instance/FWNewHH/woman/eligible/FWWOMRETYPEBID", - sf.getField("FWWOMRETYPEBID").fieldAttributes(), makeFieldAttributes("person_identifier", "Birth Registration ID")); - - assertThat(sf.formAttributes(), Matchers.allOf( - Matchers.hasEntry("openmrs_entity", "person"), - Matchers.hasEntry("openmrs_entity_id", "New Woman Registration"))); - assertEquals("elco_registration", sf.name()); - } - - @Test - public void shouldValidateGeneratedFormSubmissionMapWithMultiselect() throws JsonIOException, IOException, JsonSyntaxException, XPathExpressionException, ParserConfigurationException, SAXException { - FormSubmission fs = getFormSubmissionFor("new_household_registration_with_grouped_subform_data", 1); - FormSubmissionMap fsm = fam.createFormSubmissionMap(fs); - - SubformMap sbf = fsm.getSubform("ce71572a-8oc5-u32f-9d3b-4a6b568d5g77", "elco_registration"); - String multiselectField = "FWWOMANYID"; - assertNotNull(sbf.getField(multiselectField)); - assertNotNull(sbf.getField(multiselectField).values()); - assertNotNull(sbf.getField(multiselectField).valuesCodes()); - assertEquals(2, sbf.getField(multiselectField).values().size()); - assertEquals(2, sbf.getField(multiselectField).valuesCodes().size()); - assertThat(sbf.getField(multiselectField).values(), Matchers.hasItems("1", "2")); - assertThat(sbf.getField(multiselectField).valuesCodes().keySet(), Matchers.hasItems("1", "2")); - assertThat(sbf.getField(multiselectField).valuesCodes().get("1"), Matchers.hasEntry("openmrs_code", "163084AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA")); - assertThat(sbf.getField(multiselectField).valuesCodes().get("2"), Matchers.hasEntry("openmrs_code", "163083AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA")); - } - - @SuppressWarnings("serial") - private Map makeFieldAttributes(final String entity, final String entityId) { - return new HashMap(){{ - put("openmrs_entity", entity); - put("openmrs_entity_id", entityId); - }}; - } - - private Map makeFieldAttributes(final String entity, final String entityId, final String parent) { - Map attr = makeFieldAttributes(entity, entityId); - attr.put("openmrs_entity_parent", parent); - return attr; - } - - @SuppressWarnings("unchecked") - private void testFormField(List fields, String name, String type, String value, - String bindPath, Map actualAttributes, Map expectedAttributes) { - assertThat(fields, Matchers.hasItem(Matchers.allOf( - Matchers.hasProperty("name",equalTo(name)), - Matchers.hasProperty("type",equalTo(type)), - Matchers.hasProperty("values", Matchers.allOf(Matchers.hasItem(value))), - Matchers.hasProperty("bindPath",equalTo(bindPath)), - Matchers.hasProperty("fieldAttributes"), - Matchers.hasProperty("valuesCodes") - ))); - for (Entry at : expectedAttributes.entrySet()) { - assertThat(actualAttributes, Matchers.hasEntry(at.getKey(), at.getValue())); - } - } - - @Test - public void shouldParseFormJSONToGetOpenMRSConcept() throws JsonSyntaxException, JsonIOException, IOException { - String field = "delivery_skilled"; - FormSubmission formSubmission = getFormSubmissionFor("pnc_1st_registration"); - String fieldValue = formSubmission.getField(field); - assertTrue(fam.getInstanceAttributesForFormFieldAndValue(field, fieldValue, null, formSubmission).get("openmrs_code").equalsIgnoreCase("1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA")); - } - - @Test - public void shouldParseModelXMLDocAndFormDefJSONToGetOpenMRSConcept() throws JsonSyntaxException, JsonIOException, IOException, XPathExpressionException, ParserConfigurationException, SAXException { - String field = "delivery_skilled"; - FormSubmission formSubmission = getFormSubmissionFor("pnc_1st_registration"); - Map attributeMap = fam.getAttributesForField(field, formSubmission.formName()); - assertTrue(fam.getFieldName(attributeMap, formSubmission).equalsIgnoreCase(field)); - String etypr = "encounter_type"; - List atl = new ArrayList<>(); - atl.add(etypr); - assertNotNull(fam.getUniqueAttributeValue(atl, formSubmission).get("encounter_type")); - } - - @Test - public void shouldMapAddressWithClient() throws IOException, JsonSyntaxException, XPathExpressionException, ParserConfigurationException, SAXException{ - String field = "birthplace_street"; - FormSubmission formSubmission = getFormSubmissionFor("basic_reg"); - assertNotNull(fam.getAttributesForField(field, formSubmission.formName())); - } - - @Test - public void shouldFetchCorrectOptionConcept() throws IOException{ - String field = "isThisOnlyDeliveryFacility"; - String fieldVal = "Yes"; - FormSubmission formSubmission = getFormSubmissionFor("repeatform"); - Map concept = fam.getInstanceAttributesForFormFieldAndValue(field, fieldVal, null, formSubmission); - assertNotNull(concept); - assertThat(concept, Matchers.hasEntry("openmrs_code", "1065")); - - field = "bloodGroup"; - fieldVal = "a_negative"; - String subform = "child_registration"; - concept = fam.getInstanceAttributesForFormFieldAndValue(field, fieldVal, subform, formSubmission); - assertNotNull(concept); - assertThat(concept, Matchers.hasEntry("openmrs_code", "34134")); - } - - @Test - public void shouldFetchSubformData() throws IOException, JsonSyntaxException, XPathExpressionException, ParserConfigurationException, SAXException{ - String subform = "child_registration"; - - FormSubmission fs = getFormSubmissionFor("repeatform"); - Map attrs = fam.getAttributesForSubform(subform, fs); - assertNotNull(attrs.get("openmrs_entity")); - assertNotNull(attrs.get("openmrs_entity_id")); - assertEquals(attrs.get("openmrs_entity"), "person"); - assertEquals(attrs.get("openmrs_entity_id"), "new registration"); - - String field = "premature"; - attrs = fam.getAttributesForField(field,subform, fs.formName()); - assertNotNull(attrs.get("openmrs_entity")); - assertNotNull(attrs.get("openmrs_entity_id")); - assertEquals(attrs.get("openmrs_entity"), "concept"); - assertEquals(attrs.get("openmrs_entity_id"), "232323"); - - attrs.clear(); - attrs.put("openmrs_entity", "person"); - attrs.put("openmrs_entity_id", "gender"); - String fn = fam.getFieldName(attrs, subform, fs); - assertNotNull(fn); - assertEquals(fn, "gender"); - } - - @SuppressWarnings("unchecked") - @Test - public void shouldGetCorrectAttributesFromFormSubmissionMap() throws JsonIOException, IOException, JsonSyntaxException, XPathExpressionException, ParserConfigurationException, SAXException{ - FormSubmission fs = getFormSubmissionFor("repeatform"); - - FormSubmissionMap fsm = fam.createFormSubmissionMap(fs); - assertEquals("/model/instance/PNC_Registration_EngKan/", fsm.bindPath()); - assertEquals("mother", fsm.bindType()); - assertEquals(1426830449320L, fsm.clientTimestamp()); - assertEquals("b716d938-1aea-40ae-a081-9ddddddcccc9", fsm.entityId()); - assertThat(fsm.formAttributes(), allOf( - hasEntry("id", "Delivery_Outcome_EngKan"), - hasEntry("encounter_type", "PNC Registration"), - hasEntry("version", "201503200602"))); - assertEquals("repeatform", fsm.formName()); - assertEquals("5", fsm.formVersion()); - assertEquals("f7974258-1aea-40ae-6676-9ddddddcccc9", fsm.instanceId()); - assertEquals("admin", fsm.providerId()); - assertEquals(1426877779320L, fsm.serverTimestamp()); - - assertTrue(fsm.subforms().size() == 3); - - for (SubformMap sf : fsm.subforms()) { - assertEquals("child", sf.bindType()); - assertEquals("/model/instance/PNC_Registration_EngKan/live_birth_group/child", sf.defaultBindPath()); - assertEquals("child_registration", sf.name()); - assertThat(sf.formAttributes(), allOf( - hasEntry("openmrs_entity", "person"), - hasEntry("openmrs_entity_id", "new registration"))); - - assertThat(sf.entityId(), anyOf( - equalTo("e9a91c61-0d33-42d3-bf9b-560b4d08c74f"), - equalTo("c7305d21-0b90-4c15-a88f-b08338d3aed9"), - equalTo("6c2d772b-7d6a-4a05-a83d-5168c183ef42") - )); - } - } - - @Test - public void shouldMapCorrectAttributesForFieldsInFormSubmissionMap() throws JsonIOException, IOException, JsonSyntaxException, XPathExpressionException, ParserConfigurationException, SAXException{ - FormSubmission fs = getFormSubmissionFor("new_household_registration_with_grouped_subform_data", 1); - - FormSubmissionMap fsm = fam.createFormSubmissionMap(fs); - FormFieldMap fl = fsm.getField("existing_location"); - //TODO - } - -} diff --git a/opensrp-form/src/test/java/org/opensrp/form/service/FormFieldMapTest.java b/opensrp-form/src/test/java/org/opensrp/form/service/FormFieldMapTest.java deleted file mode 100644 index 1095d0e212..0000000000 --- a/opensrp-form/src/test/java/org/opensrp/form/service/FormFieldMapTest.java +++ /dev/null @@ -1,37 +0,0 @@ -package org.opensrp.form.service; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; - -import java.util.HashMap; -import java.util.Map; - -import org.junit.Test; - -public class FormFieldMapTest { - - @Test - public void shouldGetFieldAttributesAndGetValuesCodesAndValueAndGetter(){ - String name = "provider_town"; - String value = "ProviderTown"; - String source = "pkchild.provider_town"; - String bindPath = "/model/instance/CensusNewMemberRegistration"; - String type = "FormSubmission"; - Map attributes = new HashMap<>(); - attributes.put("atr1", "atrValue1"); - attributes.put("atr2", "atrValue2"); - Map valueCodes = new HashMap<>(); - valueCodes.put("valueCode1", "valueCode11"); - valueCodes.put("valueCode2", "valueCode12"); - FormFieldMap FormFieldMap = new FormFieldMap(name, value, source, bindPath, type, attributes, valueCodes); - assertEquals(attributes,FormFieldMap.getFieldAttributes()); - assertNotNull(FormFieldMap.getValuesCodes()); - assertEquals(type, FormFieldMap.type()); - assertEquals(source, FormFieldMap.getSource()); - assertEquals(bindPath, FormFieldMap.getBindPath()); - assertEquals(source, FormFieldMap.source()); - assertEquals(bindPath, FormFieldMap.bindPath()); - assertEquals(valueCodes, FormFieldMap.valueCodes("ProviderTown")); - assertEquals("ProviderTown", FormFieldMap.value()); - } -} diff --git a/opensrp-form/src/test/java/org/opensrp/form/service/FormSubmissionConverterTest.java b/opensrp-form/src/test/java/org/opensrp/form/service/FormSubmissionConverterTest.java deleted file mode 100644 index 3cb711667d..0000000000 --- a/opensrp-form/src/test/java/org/opensrp/form/service/FormSubmissionConverterTest.java +++ /dev/null @@ -1,38 +0,0 @@ -package org.opensrp.form.service; - -import static org.junit.Assert.assertEquals; - -import org.junit.Test; -import org.opensrp.dto.form.FormSubmissionDTO; - -public class FormSubmissionConverterTest { - - @Test - public void shouldToFormSubmission(){ - String anmId ="ANM1"; - String instanceId = "instanceId"; - String entityId = "entityId"; - String formName = "woman_registration"; - String formInstance = null; - String clientVersion = "09999"; - String formDataDefinitionVersion = "1"; - FormSubmissionDTO formSubmissionDTO = new FormSubmissionDTO(anmId, instanceId, entityId, formName, formInstance, clientVersion, formDataDefinitionVersion); - formSubmissionDTO.withServerVersion("334545"); - FormSubmissionConverter.toFormSubmissionWithVersion(formSubmissionDTO); - assertEquals(anmId, FormSubmissionConverter.toFormSubmission(formSubmissionDTO).anmId()); - } - - @Test(expected=Exception.class) - public void shouldGetExceptionToFormSubmission(){ - String anmId ="ANM1"; - String instanceId = "instanceId"; - String entityId = "entityId"; - String formName = "woman_registration"; - String formInstance = "formInstance"; - String clientVersion = "09999"; - String formDataDefinitionVersion = "1"; - FormSubmissionDTO formSubmissionDTO = new FormSubmissionDTO(anmId, instanceId, entityId, formName, formInstance, clientVersion, formDataDefinitionVersion); - FormSubmissionConverter.toFormSubmission(formSubmissionDTO) ; - } - -} diff --git a/opensrp-form/src/test/java/org/opensrp/form/service/FormSubmissionServiceTest.java b/opensrp-form/src/test/java/org/opensrp/form/service/FormSubmissionServiceTest.java deleted file mode 100644 index b7f525b981..0000000000 --- a/opensrp-form/src/test/java/org/opensrp/form/service/FormSubmissionServiceTest.java +++ /dev/null @@ -1,108 +0,0 @@ -package org.opensrp.form.service; - -import org.joda.time.LocalDate; -import org.junit.Before; -import org.junit.Test; -import org.mockito.InOrder; -import org.mockito.Mock; -import org.motechproject.util.DateUtil; -import org.opensrp.dto.form.FormSubmissionDTO; -import org.opensrp.form.domain.FormSubmission; -import org.opensrp.form.repository.AllFormSubmissions; -import org.opensrp.form.service.FormSubmissionService; - -import java.util.List; - -import static java.lang.String.valueOf; -import static java.util.Arrays.asList; -import static org.junit.Assert.assertEquals; -import static org.mockito.Matchers.anyString; -import static org.mockito.Mockito.*; -import static org.mockito.MockitoAnnotations.initMocks; - -public class FormSubmissionServiceTest { - @Mock - private AllFormSubmissions allFormSubmissions; - - private FormSubmissionService formSubmissionService; - private long serverVersion; - - @Before - public void setUp() throws Exception { - initMocks(this); - formSubmissionService = new FormSubmissionService(allFormSubmissions); - LocalDate fakeDate = new LocalDate("2012-01-01"); - org.opensrp.common.util.DateUtil.fakeIt(fakeDate); - serverVersion = fakeDate.toDateTimeAtStartOfDay().getMillis(); - } - - @Test - public void shouldSortAllSubmissionsAndSaveEachOne() throws Exception { - long baseTimeStamp = DateUtil.now().getMillis(); - FormSubmissionDTO earlierFormSubmissionDTO = new FormSubmissionDTO("anm id 1", "instance id 1", "entity id 1", "form name 1", null, valueOf(baseTimeStamp), "1"); - FormSubmissionDTO laterFormSubmissionDTO = new FormSubmissionDTO("anm id 2", "instance id 2", "entity id 2", "form name 1", null, valueOf(baseTimeStamp + 1), "1"); - FormSubmissionDTO veryLateFormSubmissionDTO = new FormSubmissionDTO("anm id 2", "instance id 3", "entity id 3", "form name 1", null, valueOf(baseTimeStamp + 2), "1"); - FormSubmission earlierFormSubmission = new FormSubmission("anm id 1", "instance id 1", "form name 1", "entity id 1", baseTimeStamp, "1", null, serverVersion); - FormSubmission laterFormSubmission = new FormSubmission("anm id 2", "instance id 2", "form name 1", "entity id 2", baseTimeStamp + 1, "1", null, serverVersion); - FormSubmission veryLateFormSubmission = new FormSubmission("anm id 2", "instance id 3", "form name 1", "entity id 3", baseTimeStamp + 2, "1", null, serverVersion); - List formSubmissionsDTO = asList(laterFormSubmissionDTO, earlierFormSubmissionDTO, veryLateFormSubmissionDTO); - when(allFormSubmissions.exists(anyString())).thenReturn(false); - - formSubmissionService.submit(formSubmissionsDTO); - - InOrder inOrder = inOrder(allFormSubmissions); - inOrder.verify(allFormSubmissions).exists("instance id 1"); - inOrder.verify(allFormSubmissions).add(earlierFormSubmission); - inOrder.verify(allFormSubmissions).exists("instance id 2"); - inOrder.verify(allFormSubmissions).add(laterFormSubmission); - inOrder.verify(allFormSubmissions).exists("instance id 3"); - inOrder.verify(allFormSubmissions).add(veryLateFormSubmission); - verifyNoMoreInteractions(allFormSubmissions); - } - - @Test - public void shouldNotDelegateFormSubmissionIfAlreadyExists() throws Exception { - long baseTimeStamp = DateUtil.now().getMillis(); - FormSubmissionDTO firstFormSubmissionDTO = new FormSubmissionDTO("anm id 1", "instance id 1", "entity id 1", "form name 1", null, valueOf(baseTimeStamp), "1"); - FormSubmissionDTO secondFormSubmissionDTO = new FormSubmissionDTO("anm id 2", "instance id 2", "entity id 2", "form name 1", null, valueOf(baseTimeStamp + 1), "1"); - FormSubmission firstFormSubmission = new FormSubmission("anm id 1", "instance id 1", "form name 1", "entity id 1", baseTimeStamp, "1", null, serverVersion); - FormSubmission secondFormSubmission = new FormSubmission("anm id 2", "instance id 2", "form name 1", "entity id 2", baseTimeStamp + 1, "1", null, serverVersion); - when(allFormSubmissions.exists("instance id 1")).thenReturn(true); - when(allFormSubmissions.exists("instance id 2")).thenReturn(false); - - formSubmissionService.submit(asList(firstFormSubmissionDTO, secondFormSubmissionDTO)); - - InOrder inOrder = inOrder(allFormSubmissions); - inOrder.verify(allFormSubmissions).exists("instance id 1"); - inOrder.verify(allFormSubmissions, times(0)).add(firstFormSubmission); - inOrder.verify(allFormSubmissions).exists("instance id 2"); - inOrder.verify(allFormSubmissions).add(secondFormSubmission); - verifyNoMoreInteractions(allFormSubmissions); - } - - @Test - public void shouldFetchFormSubmissionsByGiven() throws Exception { - long baseTimeStamp = DateUtil.now().getMillis(); - FormSubmissionDTO firstFormSubmissionDTO = new FormSubmissionDTO("anm id 1", "instance id 1", "entity id 1", "form name 1", "", valueOf(baseTimeStamp), "1").withServerVersion("0"); - FormSubmissionDTO secondFormSubmissionDTO = new FormSubmissionDTO("anm id 2", "instance id 2", "entity id 2", "form name 1", "", valueOf(baseTimeStamp + 1), "1").withServerVersion("1"); - FormSubmission firstFormSubmission = new FormSubmission("anm id 1", "instance id 1", "form name 1", "entity id 1", baseTimeStamp, "1", null, 0L); - FormSubmission secondFormSubmission = new FormSubmission("anm id 2", "instance id 2", "form name 1", "entity id 2", baseTimeStamp + 1, "1", null, 1L); - when(allFormSubmissions.findByServerVersion(0L)).thenReturn(asList(firstFormSubmission, secondFormSubmission)); - - List formSubmissionDTOs = formSubmissionService.fetch(0L); - - assertEquals(asList(firstFormSubmissionDTO, secondFormSubmissionDTO), formSubmissionDTOs); - } - - @Test - public void shouldFetchAllFormSubmissions() throws Exception { - long baseTimeStamp = DateUtil.now().getMillis(); - FormSubmission firstFormSubmission = new FormSubmission("anm id 1", "instance id 1", "form name 1", "entity id 1", baseTimeStamp, "1", null, 0L); - FormSubmission secondFormSubmission = new FormSubmission("anm id 2", "instance id 2", "form name 1", "entity id 2", baseTimeStamp + 1, "1", null, 1L); - when(allFormSubmissions.allFormSubmissions(0, 2)).thenReturn(asList(firstFormSubmission, secondFormSubmission)); - - List formSubmissions = formSubmissionService.getAllSubmissions(0L, 2); - - assertEquals(asList(firstFormSubmission, secondFormSubmission), formSubmissions); - } -} diff --git a/opensrp-form/src/test/java/org/opensrp/form/service/SubformMapTest.java b/opensrp-form/src/test/java/org/opensrp/form/service/SubformMapTest.java deleted file mode 100644 index 3eda9b7cd3..0000000000 --- a/opensrp-form/src/test/java/org/opensrp/form/service/SubformMapTest.java +++ /dev/null @@ -1,41 +0,0 @@ -package org.opensrp.form.service; - -import static org.junit.Assert.*; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import org.junit.Test; - -public class SubformMapTest { - @Test - public void shouldGetFieldValueAndGetField(){ - String entityId = "entityId"; - String subformName ="woman_registration"; - String bindType = "woman"; - String defaultBindPath = "/model/instance/CensusNewMemberRegistration/HH_Member"; - Map formAttributes =new HashMap<>(); - List fields = new ArrayList<>(); - formAttributes.put("atr", "atrValue"); - String name = "provider_town"; - String value = "ProviderTown"; - String source = "pkchild.provider_town"; - String bindPath = "/model/instance/CensusNewMemberRegistration"; - String type = "FormSubmission"; - Map attributes = new HashMap<>(); - attributes.put("atr1", "atrValue1"); - attributes.put("atr2", "atrValue2"); - Map valueCodes = new HashMap<>(); - valueCodes.put("valueCode1", "valueCode11"); - valueCodes.put("valueCode2", "valueCode12"); - FormFieldMap FormFieldMap = new FormFieldMap(name, value, source, bindPath, type, attributes, valueCodes); - fields.add(FormFieldMap); - SubformMap subformMap = new SubformMap(entityId, subformName, bindType, defaultBindPath, formAttributes, fields); - assertEquals(value, subformMap.getFieldValue("provider_town")); - assertNull(subformMap.getFieldValue(null)); - assertNull(subformMap.getField(null)); - } - -} diff --git a/opensrp-form/src/test/java/org/opensrp/form/service/TestResourceLoader.java b/opensrp-form/src/test/java/org/opensrp/form/service/TestResourceLoader.java deleted file mode 100644 index d407a3d71f..0000000000 --- a/opensrp-form/src/test/java/org/opensrp/form/service/TestResourceLoader.java +++ /dev/null @@ -1,32 +0,0 @@ -package org.opensrp.form.service; -import java.io.File; -import java.io.FileReader; -import java.io.IOException; - -import org.opensrp.form.domain.FormSubmission; -import org.springframework.core.io.DefaultResourceLoader; -import org.springframework.core.io.ResourceLoader; - -import com.google.gson.Gson; -import com.google.gson.JsonIOException; - - -public class TestResourceLoader { - protected String formDirPath; - - - public TestResourceLoader() throws IOException { - formDirPath = "/form"; - } - - protected FormSubmission getFormSubmissionFor(String formName, Integer number) throws JsonIOException, IOException{ - ResourceLoader loader=new DefaultResourceLoader(); - String path = loader.getResource(formDirPath).getURI().getPath(); - File fsfile = new File(path+"/"+formName+"/form_submission"+(number==null?"":number)+".json"); - return new Gson().fromJson(new FileReader(fsfile), FormSubmission.class); - } - - protected FormSubmission getFormSubmissionFor(String formName) throws JsonIOException, IOException{ - return getFormSubmissionFor(formName, null); - } -} diff --git a/opensrp-form/src/test/java/org/opensrp/form/service/it/FormSubmissionServiceTest.java b/opensrp-form/src/test/java/org/opensrp/form/service/it/FormSubmissionServiceTest.java deleted file mode 100644 index 9e3cfd60dd..0000000000 --- a/opensrp-form/src/test/java/org/opensrp/form/service/it/FormSubmissionServiceTest.java +++ /dev/null @@ -1,108 +0,0 @@ -package org.opensrp.form.service.it; - -import static java.util.Arrays.asList; -import static junit.framework.Assert.assertEquals; -import static org.junit.Assert.assertNotSame; - -import java.util.HashMap; -import java.util.Map; - -import org.junit.Before; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.motechproject.util.DateUtil; -import org.opensrp.form.domain.FormSubmission; -import org.opensrp.form.repository.AllFormSubmissions; -import org.opensrp.form.repository.it.TestDatabaseConfig; -import org.opensrp.form.service.FormSubmissionService; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.test.context.ContextConfiguration; -import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; - -@RunWith(SpringJUnit4ClassRunner.class) -@ContextConfiguration("classpath:applicationContext-opensrp-form.xml") -public class FormSubmissionServiceTest extends TestDatabaseConfig{ - @Autowired - private AllFormSubmissions formSubmissions; - private FormSubmissionService formSubmissionService; - - @Before - public void setUp() throws Exception { - formSubmissionService = new FormSubmissionService(formSubmissions); - } - - @SuppressWarnings("deprecation") - @Test - public void shouldFindByFormName(){ - long baseTimeStamp = DateUtil.now().getMillis(); - String provider = "ANM 6"; - FormSubmission firstFormSubmission = new FormSubmission("ANM 6", "instance id 77", "DemoForm77", "entity id 778", 0L, "1", null, baseTimeStamp); - Map metadata = new HashMap<>(); - metadata.put("formType", new String("type")); - firstFormSubmission.setMetadata(metadata); - formSubmissions.add(firstFormSubmission); - assertEquals(provider, formSubmissionService.findByFormName("DemoForm77", 0l).get(0).anmId()); - assertNotSame("er", formSubmissionService.findByFormName("DemoForm77", 0l).get(0).anmId()); - } - - @Test(expected=IndexOutOfBoundsException.class) - public void shouldGetRuntimeExceptionForFindByFormName(){ - long baseTimeStamp = DateUtil.now().getMillis(); - String provider = "ANM 6"; - FormSubmission firstFormSubmission = new FormSubmission("ANM 6", "instance id 77", "DemoForm77", "entity id 778", 0L, "1", null, baseTimeStamp); - Map metadata = new HashMap<>(); - metadata.put("formType", new String("type")); - firstFormSubmission.setMetadata(metadata); - formSubmissions.add(firstFormSubmission); - formSubmissionService.findByFormName("DemoForm77t", 0l).get(0).anmId(); - } - - @SuppressWarnings("deprecation") - @Test - public void shouldFindByInstanceId(){ - long baseTimeStamp = DateUtil.now().getMillis(); - String provider = "ANM 6"; - String formName = "DemoForm77"; - FormSubmission firstFormSubmission = new FormSubmission("ANM 6", "instance id 77", formName, "entity id 778", 0L, "1", null, baseTimeStamp); - Map metadata = new HashMap<>(); - metadata.put("formType", new String("type")); - firstFormSubmission.setMetadata(metadata); - formSubmissions.add(firstFormSubmission); - assertEquals(formName, formSubmissionService.findByInstanceId("instance id 77").formName()); - assertNotSame("fff", formSubmissionService.findByInstanceId("instance id 77").formName()); - } - - @Test - public void shouldFindByMetadata(){ - long baseTimeStamp = DateUtil.now().getMillis(); - FormSubmission firstFormSubmission = new FormSubmission("ANM 2", "instance id 7", "DemoForm ff", "entity id 78", 0L, "1", null, baseTimeStamp); - Map metadata = new HashMap<>(); - metadata.put("formType", new String("type")); - firstFormSubmission.setMetadata(metadata); - formSubmissions.add(firstFormSubmission); - assertEquals("type", formSubmissionService.findByMetadata("formType","type").get(0).getMetadata("formType")); - assertNotSame("types", formSubmissionService.findByMetadata("formType","type").get(0).getMetadata("formType")); - } - - @Test - public void shouldGetNewSubmissionsForANM(){ - long baseTimeStamp = DateUtil.now().getMillis(); - String provider = "ANM 5"; - FormSubmission firstFormSubmission = new FormSubmission(provider, "instance id 7", "DemoForm ff", "entity id 78", 0L, "1", null, baseTimeStamp); - Map metadata = new HashMap<>(); - metadata.put("formType", new String("type")); - firstFormSubmission.setMetadata(metadata); - formSubmissions.add(firstFormSubmission); - assertEquals(provider, formSubmissionService.getNewSubmissionsForANM(provider,0l,1).get(0).anmId()); - assertNotSame("pro", formSubmissionService.getNewSubmissionsForANM(provider,0l,1).get(0).anmId()); - } - - @Test - public void shouldGetAllFormSubmissions(){ - long baseTimeStamp = DateUtil.now().getMillis(); - FormSubmission firstFormSubmission = new FormSubmission("ANM 1", "instance id 1", "DemoForm Name", "entity id 1", 0L, "1", null, baseTimeStamp); - formSubmissions.add(firstFormSubmission); - assertEquals(1, formSubmissionService.getAllSubmissions(getStdCouchDbConnectorForOpensrpForm(),0L, 1).size()); - } - -} diff --git a/opensrp-form/src/test/resources/form/basic_reg/form.json b/opensrp-form/src/test/resources/form/basic_reg/form.json deleted file mode 100644 index 1dcfa303dc..0000000000 --- a/opensrp-form/src/test/resources/form/basic_reg/form.json +++ /dev/null @@ -1,653 +0,0 @@ -{ - "default_language": "default", - "id_string": "patient_basic_reg", - "children": [ - { - "name": "woman_name", - "label": "First name", - "instance": { - "openmrs_entity_id": "first_name", - "openmrs_entity": "person" - }, - "type": "text" - }, - { - "name": "last_name", - "label": "Last name", - "instance": { - "openmrs_entity_id": "last_name", - "openmrs_entity": "person" - }, - "type": "text" - }, - { - "name": "gender", - "default": "female", - "label": "Gender", - "instance": { - "openmrs_entity_id": "gender", - "openmrs_entity": "person" - }, - "type": "text" - }, - { - "name": "birthdate", - "label": "DOB", - "instance": { - "openmrs_entity_id": "birthdate", - "openmrs_entity": "person" - }, - "type": "date" - }, - { - "children": [ - { - "name": "karachi", - "label": "Karachi", - "instance": { - "openmrs_code": "karachi" - } - }, - { - "name": "lahore", - "label": "Lahore", - "instance": { - "openmrs_code": "lahore" - } - } - ], - "name": "location", - "bind": { - "required": "yes" - }, - "label": "Location of ANC", - "instance": { - "openmrs_entity_id": "location_id", - "openmrs_entity": "encounter" - }, - "type": "select one" - }, - { - "name": "anc_visit_date", - "bind": { - "required": "yes", - "constraint": ".<=${today}" - }, - "label": "ANC visit date?", - "instance": { - "openmrs_entity_id": "encounter_date", - "openmrs_entity": "encounter" - }, - "type": "date" - }, - { - "name": "pulse_rate", - "bind": { - "constraint": ".>0" - }, - "label": "Pulse rate", - "instance": { - "openmrs_entity_id": "5087AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "integer" - }, - { - "name": "temperature", - "bind": { - "constraint": ".>0" - }, - "label": "Temperature (C)", - "instance": { - "openmrs_entity_id": "5088AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "decimal" - }, - { - "children": [ - { - "name": "birthplace_lat", - "label": "Latitude", - "instance": { - "openmrs_entity_parent": "birthplace", - "openmrs_entity_id": "latitude", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "birthplace_lon", - "label": "Longitude", - "instance": { - "openmrs_entity_parent": "birthplace", - "openmrs_entity_id": "longitute", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "birthplace_postcode", - "label": "postalCode / postal_code", - "instance": { - "openmrs_entity_parent": "birthplace", - "openmrs_entity_id": "postalcode", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "birthplace_house", - "label": "HOUSE_NUMBER / HOUSE / HOUSE_NO / UNIT / UNIT_NUMBER / UNIT_NO", - "instance": { - "openmrs_entity_parent": "birthplace", - "openmrs_entity_id": "house_number", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "birthplace_street", - "label": "STREET / STREET_NUMBER / LANE", - "instance": { - "openmrs_entity_parent": "birthplace", - "openmrs_entity_id": "street", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "birthplace_area", - "label": "SECTOR / AREA", - "instance": { - "openmrs_entity_parent": "birthplace", - "openmrs_entity_id": "area", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "birthplace_town", - "label": "MUNICIPALITY / TOWN / LOCALITY / REGION", - "instance": { - "openmrs_entity_parent": "birthplace", - "openmrs_entity_id": "town", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "birthplace_busroute", - "label": "Bus route custom field", - "instance": { - "openmrs_entity_parent": "birthplace", - "openmrs_entity_id": "bus_route", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "birthplace_district", - "label": "COUNTY / DISTRICT", - "instance": { - "openmrs_entity_parent": "birthplace", - "openmrs_entity_id": "district", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "birthplace_city", - "label": "CITY / VILLAGE", - "instance": { - "openmrs_entity_parent": "birthplace", - "openmrs_entity_id": "city", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "birthplace_state", - "label": "state / state_province / stateProvince/ province", - "instance": { - "openmrs_entity_parent": "birthplace", - "openmrs_entity_id": "state", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "birthplace_country", - "label": "country", - "instance": { - "openmrs_entity_parent": "birthplace", - "openmrs_entity_id": "country", - "openmrs_entity": "person_address" - }, - "type": "text" - } - ], - "name": "birthplace_address", - "label": "Birthplace", - "type": "group" - }, - { - "children": [ - { - "name": "usual_residence_start", - "label": "When started (startDate / start_date)", - "instance": { - "openmrs_entity_parent": "usual_residence", - "openmrs_entity_id": "startdate", - "openmrs_entity": "person_address" - }, - "type": "date" - }, - { - "name": "usual_residence_lat", - "label": "Latitude", - "instance": { - "openmrs_entity_parent": "usual_residence", - "openmrs_entity_id": "latitude", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "usual_residence_lon", - "label": "Longitude", - "instance": { - "openmrs_entity_parent": "usual_residence", - "openmrs_entity_id": "longitute", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "usual_residence_postcode", - "label": "postalCode / postal_code", - "instance": { - "openmrs_entity_parent": "usual_residence", - "openmrs_entity_id": "postalcode", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "usual_residence_house", - "label": "HOUSE_NUMBER / HOUSE / HOUSE_NO / UNIT / UNIT_NUMBER / UNIT_NO", - "instance": { - "openmrs_entity_parent": "usual_residence", - "openmrs_entity_id": "uniit", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "usual_residence_street", - "label": "STREET / STREET_NUMBER / LANE", - "instance": { - "openmrs_entity_parent": "usual_residence", - "openmrs_entity_id": "lane", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "usual_residence_area", - "label": "SECTOR / AREA", - "instance": { - "openmrs_entity_parent": "usual_residence", - "openmrs_entity_id": "sector", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "usual_residence_town", - "label": "MUNICIPALITY / TOWN / LOCALITY / REGION", - "instance": { - "openmrs_entity_parent": "usual_residence", - "openmrs_entity_id": "municipality", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "usual_residence_district", - "label": "COUNTY / DISTRICT", - "instance": { - "openmrs_entity_parent": "usual_residence", - "openmrs_entity_id": "district", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "usual_residence_city", - "label": "CITY / VILLAGE", - "instance": { - "openmrs_entity_parent": "usual_residence", - "openmrs_entity_id": "city", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "usual_residence_state", - "label": "state / state_province / stateProvince/ province", - "instance": { - "openmrs_entity_parent": "usual_residence", - "openmrs_entity_id": "province", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "usual_residence_country", - "label": "country", - "instance": { - "openmrs_entity_parent": "usual_residence", - "openmrs_entity_id": "country", - "openmrs_entity": "person_address" - }, - "type": "text" - } - ], - "name": "usual_residence_address", - "label": "Usual Residence", - "type": "group" - }, - { - "children": [ - { - "name": "previous_residence_start", - "label": "When started (startDate / start_date)", - "instance": { - "openmrs_entity_parent": "previous_residence", - "openmrs_entity_id": "startdate", - "openmrs_entity": "person_address" - }, - "type": "date" - }, - { - "name": "previous_residence_end", - "label": "When ended (endDate/end_date)", - "instance": { - "openmrs_entity_parent": "previous_residence", - "openmrs_entity_id": "enddate", - "openmrs_entity": "person_address" - }, - "type": "date" - }, - { - "name": "previous_residence_lat", - "label": "Latitude", - "instance": { - "openmrs_entity_parent": "previous_residence", - "openmrs_entity_id": "latitude", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "previous_residence_lon", - "label": "Longitude", - "instance": { - "openmrs_entity_parent": "previous_residence", - "openmrs_entity_id": "longitute", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "previous_residence_postcode", - "label": "postalCode / postal_code", - "instance": { - "openmrs_entity_parent": "previous_residence", - "openmrs_entity_id": "postalcode", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "previous_residence_house", - "label": "HOUSE_NUMBER / HOUSE / HOUSE_NO / UNIT / UNIT_NUMBER / UNIT_NO", - "instance": { - "openmrs_entity_parent": "previous_residence", - "openmrs_entity_id": "house", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "previous_residence_street", - "label": "STREET / STREET_NUMBER / LANE", - "instance": { - "openmrs_entity_parent": "previous_residence", - "openmrs_entity_id": "street", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "previous_residence_area", - "label": "SECTOR / AREA", - "instance": { - "openmrs_entity_parent": "previous_residence", - "openmrs_entity_id": "area", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "previous_residence_town", - "label": "MUNICIPALITY / TOWN / LOCALITY / REGION", - "instance": { - "openmrs_entity_parent": "previous_residence", - "openmrs_entity_id": "region", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "previous_residence_district", - "label": "COUNTY / DISTRICT", - "instance": { - "openmrs_entity_parent": "previous_residence", - "openmrs_entity_id": "county", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "previous_residence_city", - "label": "CITY / VILLAGE", - "instance": { - "openmrs_entity_parent": "previous_residence", - "openmrs_entity_id": "village", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "previous_residence_state", - "label": "state / state_province / stateProvince/ province", - "instance": { - "openmrs_entity_parent": "previous_residence", - "openmrs_entity_id": "state", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "previous_residence_country", - "label": "country", - "instance": { - "openmrs_entity_parent": "previous_residence", - "openmrs_entity_id": "country", - "openmrs_entity": "person_address" - }, - "type": "text" - } - ], - "name": "previous_residence_address", - "label": "Previous Residence", - "type": "group" - }, - { - "children": [ - { - "name": "deathplace_lat", - "label": "Latitude", - "instance": { - "openmrs_entity_parent": "deathplace", - "openmrs_entity_id": "latitude", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "deathplace_lon", - "label": "Longitude", - "instance": { - "openmrs_entity_parent": "deathplace", - "openmrs_entity_id": "longitute", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "deathplace_postcode", - "label": "postalCode / postal_code", - "instance": { - "openmrs_entity_parent": "deathplace", - "openmrs_entity_id": "postal_code", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "deathplace_house", - "label": "HOUSE_NUMBER / HOUSE / HOUSE_NO / UNIT / UNIT_NUMBER / UNIT_NO", - "instance": { - "openmrs_entity_parent": "deathplace", - "openmrs_entity_id": "unit", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "deathplace_street", - "label": "STREET / STREET_NUMBER / LANE", - "instance": { - "openmrs_entity_parent": "deathplace", - "openmrs_entity_id": "lane", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "deathplace_area", - "label": "SECTOR / AREA", - "instance": { - "openmrs_entity_parent": "deathplace", - "openmrs_entity_id": "area", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "deathplace_town", - "label": "MUNICIPALITY / TOWN / LOCALITY / REGION", - "instance": { - "openmrs_entity_parent": "deathplace", - "openmrs_entity_id": "region", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "deathplace_district", - "label": "COUNTY / DISTRICT", - "instance": { - "openmrs_entity_parent": "deathplace", - "openmrs_entity_id": "district", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "deathplace_city", - "label": "CITY / VILLAGE", - "instance": { - "openmrs_entity_parent": "deathplace", - "openmrs_entity_id": "city", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "deathplace_state", - "label": "state / state_province / stateProvince/ province", - "instance": { - "openmrs_entity_parent": "deathplace", - "openmrs_entity_id": "state_province", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "deathplace_country", - "label": "country", - "instance": { - "openmrs_entity_parent": "deathplace", - "openmrs_entity_id": "country", - "openmrs_entity": "person_address" - }, - "type": "text" - } - ], - "name": "deathplace_address", - "label": "Death Place", - "type": "group" - }, - { - "name": "today", - "type": "today" - }, - { - "name": "start", - "type": "start" - }, - { - "name": "end", - "type": "end" - }, - { - "control": { - "bodyless": true - }, - "children": [ - { - "name": "instanceID", - "bind": { - "readonly": "true()", - "calculate": "concat('uuid:', uuid())" - }, - "type": "calculate" - } - ], - "name": "meta", - "type": "group" - } - ], - "instance": { - "encounter_type": "patient_register" - }, - "version": "201504030905", - "type": "survey", - "name": "register_with_address", - "sms_keyword": "patient_basic_reg", - "title": "Patient Registration" -} \ No newline at end of file diff --git a/opensrp-form/src/test/resources/form/basic_reg/form.xml b/opensrp-form/src/test/resources/form/basic_reg/form.xml deleted file mode 100644 index 8926f192ec..0000000000 --- a/opensrp-form/src/test/resources/form/basic_reg/form.xml +++ /dev/null @@ -1,287 +0,0 @@ -
- - -

Register with address

- - - - -
-
- - Location of ANC - * - -
- - -
-
-
- - - -
-

- Birthplace -

- - - - - - - - - - - - -
- -
-

- Usual Residence -

- - - - - - - - - - - - -
- -
-

- Previous Residence -

- - - - - - - - - - - - - -
- -
-

- Death Place -

- - - - - - - - - - - -
- - - -
\ No newline at end of file diff --git a/opensrp-form/src/test/resources/form/basic_reg/form_definition.json b/opensrp-form/src/test/resources/form/basic_reg/form_definition.json deleted file mode 100644 index c6be057f92..0000000000 --- a/opensrp-form/src/test/resources/form/basic_reg/form_definition.json +++ /dev/null @@ -1,245 +0,0 @@ -{ - "form_data_definition_version": "1", - "form": { - "bind_type": "register_with_address", - "default_bind_path": "/model/instance/register_with_address/", - "fields": [ - { - "name": "woman_name", - "bind": "/model/instance/register_with_address/woman_name" - }, - { - "name": "last_name", - "bind": "/model/instance/register_with_address/last_name" - }, - { - "name": "gender", - "bind": "/model/instance/register_with_address/gender" - }, - { - "name": "birthdate", - "bind": "/model/instance/register_with_address/birthdate" - }, - { - "name": "location", - "bind": "/model/instance/register_with_address/location" - }, - { - "name": "anc_visit_date", - "bind": "/model/instance/register_with_address/anc_visit_date" - }, - { - "name": "pulse_rate", - "bind": "/model/instance/register_with_address/pulse_rate" - }, - { - "name": "temperature", - "bind": "/model/instance/register_with_address/temperature" - }, - { - "name": "birthplace_lat", - "bind": "/model/instance/register_with_address/birthplace_address/birthplace_lat" - }, - { - "name": "birthplace_lon", - "bind": "/model/instance/register_with_address/birthplace_address/birthplace_lon" - }, - { - "name": "birthplace_postcode", - "bind": "/model/instance/register_with_address/birthplace_address/birthplace_postcode" - }, - { - "name": "birthplace_house", - "bind": "/model/instance/register_with_address/birthplace_address/birthplace_house" - }, - { - "name": "birthplace_street", - "bind": "/model/instance/register_with_address/birthplace_address/birthplace_street" - }, - { - "name": "birthplace_area", - "bind": "/model/instance/register_with_address/birthplace_address/birthplace_area" - }, - { - "name": "birthplace_town", - "bind": "/model/instance/register_with_address/birthplace_address/birthplace_town" - }, - { - "name": "birthplace_busroute", - "bind": "/model/instance/register_with_address/birthplace_address/birthplace_busroute" - }, - { - "name": "birthplace_district", - "bind": "/model/instance/register_with_address/birthplace_address/birthplace_district" - }, - { - "name": "birthplace_city", - "bind": "/model/instance/register_with_address/birthplace_address/birthplace_city" - }, - { - "name": "birthplace_state", - "bind": "/model/instance/register_with_address/birthplace_address/birthplace_state" - }, - { - "name": "birthplace_country", - "bind": "/model/instance/register_with_address/birthplace_address/birthplace_country" - }, - { - "name": "usual_residence_start", - "bind": "/model/instance/register_with_address/usual_residence_address/usual_residence_start" - }, - { - "name": "usual_residence_lat", - "bind": "/model/instance/register_with_address/usual_residence_address/usual_residence_lat" - }, - { - "name": "usual_residence_lon", - "bind": "/model/instance/register_with_address/usual_residence_address/usual_residence_lon" - }, - { - "name": "usual_residence_postcode", - "bind": "/model/instance/register_with_address/usual_residence_address/usual_residence_postcode" - }, - { - "name": "usual_residence_house", - "bind": "/model/instance/register_with_address/usual_residence_address/usual_residence_house" - }, - { - "name": "usual_residence_street", - "bind": "/model/instance/register_with_address/usual_residence_address/usual_residence_street" - }, - { - "name": "usual_residence_area", - "bind": "/model/instance/register_with_address/usual_residence_address/usual_residence_area" - }, - { - "name": "usual_residence_town", - "bind": "/model/instance/register_with_address/usual_residence_address/usual_residence_town" - }, - { - "name": "usual_residence_district", - "bind": "/model/instance/register_with_address/usual_residence_address/usual_residence_district" - }, - { - "name": "usual_residence_city", - "bind": "/model/instance/register_with_address/usual_residence_address/usual_residence_city" - }, - { - "name": "usual_residence_state", - "bind": "/model/instance/register_with_address/usual_residence_address/usual_residence_state" - }, - { - "name": "usual_residence_country", - "bind": "/model/instance/register_with_address/usual_residence_address/usual_residence_country" - }, - { - "name": "previous_residence_start", - "bind": "/model/instance/register_with_address/previous_residence_address/previous_residence_start" - }, - { - "name": "previous_residence_end", - "bind": "/model/instance/register_with_address/previous_residence_address/previous_residence_end" - }, - { - "name": "previous_residence_lat", - "bind": "/model/instance/register_with_address/previous_residence_address/previous_residence_lat" - }, - { - "name": "previous_residence_lon", - "bind": "/model/instance/register_with_address/previous_residence_address/previous_residence_lon" - }, - { - "name": "previous_residence_postcode", - "bind": "/model/instance/register_with_address/previous_residence_address/previous_residence_postcode" - }, - { - "name": "previous_residence_house", - "bind": "/model/instance/register_with_address/previous_residence_address/previous_residence_house" - }, - { - "name": "previous_residence_street", - "bind": "/model/instance/register_with_address/previous_residence_address/previous_residence_street" - }, - { - "name": "previous_residence_area", - "bind": "/model/instance/register_with_address/previous_residence_address/previous_residence_area" - }, - { - "name": "previous_residence_town", - "bind": "/model/instance/register_with_address/previous_residence_address/previous_residence_town" - }, - { - "name": "previous_residence_district", - "bind": "/model/instance/register_with_address/previous_residence_address/previous_residence_district" - }, - { - "name": "previous_residence_city", - "bind": "/model/instance/register_with_address/previous_residence_address/previous_residence_city" - }, - { - "name": "previous_residence_state", - "bind": "/model/instance/register_with_address/previous_residence_address/previous_residence_state" - }, - { - "name": "previous_residence_country", - "bind": "/model/instance/register_with_address/previous_residence_address/previous_residence_country" - }, - { - "name": "deathplace_lat", - "bind": "/model/instance/register_with_address/deathplace_address/deathplace_lat" - }, - { - "name": "deathplace_lon", - "bind": "/model/instance/register_with_address/deathplace_address/deathplace_lon" - }, - { - "name": "deathplace_postcode", - "bind": "/model/instance/register_with_address/deathplace_address/deathplace_postcode" - }, - { - "name": "deathplace_house", - "bind": "/model/instance/register_with_address/deathplace_address/deathplace_house" - }, - { - "name": "deathplace_street", - "bind": "/model/instance/register_with_address/deathplace_address/deathplace_street" - }, - { - "name": "deathplace_area", - "bind": "/model/instance/register_with_address/deathplace_address/deathplace_area" - }, - { - "name": "deathplace_town", - "bind": "/model/instance/register_with_address/deathplace_address/deathplace_town" - }, - { - "name": "deathplace_district", - "bind": "/model/instance/register_with_address/deathplace_address/deathplace_district" - }, - { - "name": "deathplace_city", - "bind": "/model/instance/register_with_address/deathplace_address/deathplace_city" - }, - { - "name": "deathplace_state", - "bind": "/model/instance/register_with_address/deathplace_address/deathplace_state" - }, - { - "name": "deathplace_country", - "bind": "/model/instance/register_with_address/deathplace_address/deathplace_country" - }, - { - "name": "today", - "bind": "/model/instance/register_with_address/today" - }, - { - "name": "start", - "bind": "/model/instance/register_with_address/start" - }, - { - "name": "end", - "bind": "/model/instance/register_with_address/end" - } - ] - } -} \ No newline at end of file diff --git a/opensrp-form/src/test/resources/form/basic_reg/form_submission.json b/opensrp-form/src/test/resources/form/basic_reg/form_submission.json deleted file mode 100644 index 84c463821c..0000000000 --- a/opensrp-form/src/test/resources/form/basic_reg/form_submission.json +++ /dev/null @@ -1,254 +0,0 @@ -{ - "anmId": "admin", - "instanceId": "88ceee24-10b4-44c2-9429-754b8d823776", - "clientVersion": "1426830449320", - "entityId": "b716d938-1aea-40ae-a081-9ddddddcccc9", - "formDataDefinitionVersion": "1", - "formName": "basic_reg", - "formInstance": { - "form_data_definition_version": "1", - "form": { - "bind_type": "register_with_address", - "default_bind_path": "/model/instance/register_with_address/", - "fields": [ - { - "name": "woman_name", - "value": "test woman_name" - }, - { - "name": "last_name", - "value": "test last_name" - }, - { - "name": "gender", - "value": "FEMALE" - }, - { - "name": "birthdate", - "value": "2015-02-01" - }, - { - "name": "location", - "value": "unknown location" - }, - { - "name": "anc_visit_date", - "value": "2015-02-01" - }, - { - "name": "pulse_rate", - "value": "55" - }, - { - "name": "temperature", - "value": "37" - }, - { - "name": "birthplace_lat", - "value": "test birthplace_lat" - }, - { - "name": "birthplace_lon", - "value": "test birthplace_lon" - }, - { - "name": "birthplace_postcode", - "value": "test birthplace_postcode" - }, - { - "name": "birthplace_house", - "value": "test birthplace_house" - }, - { - "name": "birthplace_street", - "value": "test birthplace_street" - }, - { - "name": "birthplace_area", - "value": "test birthplace_area" - }, - { - "name": "birthplace_town", - "value": "test birthplace_town" - }, - { - "name": "birthplace_busroute", - "value": "test birthplace_busroute" - }, - { - "name": "birthplace_district", - "value": "test birthplace_district" - }, - { - "name": "birthplace_city", - "value": "test birthplace_city" - }, - { - "name": "birthplace_state", - "value": "test birthplace_state" - }, - { - "name": "birthplace_country", - "value": "test birthplace_country" - }, - { - "name": "usual_residence_start", - "value": "2015-02-01" - }, - { - "name": "usual_residence_lat", - "value": "test usual_residence_lat" - }, - { - "name": "usual_residence_lon", - "value": "test usual_residence_lon" - }, - { - "name": "usual_residence_postcode", - "value": "test usual_residence_postcode" - }, - { - "name": "usual_residence_house", - "value": "test usual_residence_house" - }, - { - "name": "usual_residence_street", - "value": "test usual_residence_street" - }, - { - "name": "usual_residence_area", - "value": "test usual_residence_area" - }, - { - "name": "usual_residence_town", - "value": "test usual_residence_town" - }, - { - "name": "usual_residence_district", - "value": "test usual_residence_district" - }, - { - "name": "usual_residence_city", - "value": "test usual_residence_city" - }, - { - "name": "usual_residence_state", - "value": "test usual_residence_state" - }, - { - "name": "usual_residence_country", - "value": "test usual_residence_country" - }, - { - "name": "previous_residence_start", - "value": "2015-02-01" - }, - { - "name": "previous_residence_end", - "value": "2015-02-01" - }, - { - "name": "previous_residence_lat", - "value": "test previous_residence_lat" - }, - { - "name": "previous_residence_lon", - "value": "test previous_residence_lon" - }, - { - "name": "previous_residence_postcode", - "value": "test previous_residence_postcode" - }, - { - "name": "previous_residence_house", - "value": "test previous_residence_house" - }, - { - "name": "previous_residence_street", - "value": "test previous_residence_street" - }, - { - "name": "previous_residence_area", - "value": "test previous_residence_area" - }, - { - "name": "previous_residence_town", - "value": "test previous_residence_town" - }, - { - "name": "previous_residence_district", - "value": "test previous_residence_district" - }, - { - "name": "previous_residence_city", - "value": "test previous_residence_city" - }, - { - "name": "previous_residence_state", - "value": "test previous_residence_state" - }, - { - "name": "previous_residence_country", - "value": "test previous_residence_country" - }, - { - "name": "deathplace_lat", - "value": "test deathplace_lat" - }, - { - "name": "deathplace_lon", - "value": "test deathplace_lon" - }, - { - "name": "deathplace_postcode", - "value": "test deathplace_postcode" - }, - { - "name": "deathplace_house", - "value": "test deathplace_house" - }, - { - "name": "deathplace_street", - "value": "test deathplace_street" - }, - { - "name": "deathplace_area", - "value": "test deathplace_area" - }, - { - "name": "deathplace_town", - "value": "test deathplace_town" - }, - { - "name": "deathplace_district", - "value": "test deathplace_district" - }, - { - "name": "deathplace_city", - "value": "test deathplace_city" - }, - { - "name": "deathplace_state", - "value": "test deathplace_state" - }, - { - "name": "deathplace_country", - "value": "test deathplace_country" - }, - { - "name": "today", - "value": "2015-02-01" - }, - { - "name": "start", - "value": "2015-02-01" - }, - { - "name": "end", - "value": "2015-02-01" - } - ] - } - }, - "serverVersion": 1430998001293 -} \ No newline at end of file diff --git a/opensrp-form/src/test/resources/form/basic_reg/model.xml b/opensrp-form/src/test/resources/form/basic_reg/model.xml deleted file mode 100644 index 06822afad1..0000000000 --- a/opensrp-form/src/test/resources/form/basic_reg/model.xml +++ /dev/null @@ -1,79 +0,0 @@ - - - - - - - - - female - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/opensrp-form/src/test/resources/form/new_household_registration/form.json b/opensrp-form/src/test/resources/form/new_household_registration/form.json deleted file mode 100644 index 0288ac30df..0000000000 --- a/opensrp-form/src/test/resources/form/new_household_registration/form.json +++ /dev/null @@ -1,655 +0,0 @@ -{ - "default_language": "Bengali", - "id_string": "FWNewHH_1", - "children": [ - { - "name": "existing_location", - "instance": { - "openmrs_entity_id": "location_id", - "openmrs_entity": "encounter" - }, - "type": "hidden" - }, - { - "name": "today", - "instance": { - "openmrs_entity_id": "encounter_date", - "openmrs_entity": "encounter" - }, - "type": "today" - }, - { - "name": "start", - "instance": { - "openmrs_entity_id": "encounter_start", - "openmrs_entity": "encounter" - }, - "type": "start" - }, - { - "name": "end", - "instance": { - "openmrs_entity_id": "encounter_end", - "openmrs_entity": "encounter" - }, - "type": "end" - }, - { - "name": "FWNHREGDATE", - "hint": { - "Bengali": "আজকের তারিখ দিন", - "English": "Confirm Today’s date is correct" - }, - "bind": { - "jr:constraintMsg": { - "Bengali": "তারিখ আজকের তারিখের চেয়ে বেশী হতে পারবেনা", - "English": "Date cannot be greater than current date." - }, - "required": "yes", - "constraint": ".<=${today}" - }, - "label": { - "Bengali": "তথ্য সংগ্রহের তারিখ", - "English": "Date of Interview" - }, - "instance": { - "openmrs_entity_id": "160753AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "date" - }, - { - "control": { - "appearance": "numbers" - }, - "name": "FWGOBHHID", - "hint": { - "Bengali": "অনুগ্রহ করে খানার দরজাতে লেখা কালো রঙের JiVitA/Study household ID (HHID) টি টাইপ করুন", - "English": "Please input the Black – painted Government household ID (HHID) as displayed on the door/wall of the HH." - }, - "bind": { - "jr:constraintMsg": { - "Bengali": "অনুগ্রহ করে ০০০১ থেকে ৯৯৯৯ এর মধ্যে ৪ ডিজিটের GoB HHID টাইপ করুন", - "English": "Please enter 4 digits of GoB HHID from 0001 to 9999" - }, - "required": "yes", - "constraint": "regex(., '^(?!0{4})[0-9]{4}$')" - }, - "label": { - "Bengali": "GoB HHID", - "English": "GoB HHID" - }, - "instance": { - "openmrs_entity_id": "GOB HHID", - "openmrs_entity": "person_identifier" - }, - "type": "text" - }, - { - "control": { - "appearance": "numbers" - }, - "name": "FWJIVHHID", - "hint": { - "Bengali": "অনুগ্রহ করে খানার দরজাতে লেখা লাল রঙের JiVitA/Study household ID (HHID) টি টাইপ করুন", - "English": "Please input the RED – painted JiVitA / Study household ID (HHID) as displayed on the door/wall of the HH." - }, - "bind": { - "jr:constraintMsg": { - "Bengali": "অনুগ্রহ করে ০০০১ থেকে ৯৯৯৯ এর মধ্যে ৪ ডিজিটের JiVitA HHID টাইপ করুন", - "English": "Please enter 4 digits of JiVitA HHID from 0001 to 9999" - }, - "required": "yes", - "constraint": "regex(., '^(?!0{4})[0-9]{4}$')" - }, - "label": { - "Bengali": "JiVitA HHID", - "English": "JiVitA HHID" - }, - "instance": { - "openmrs_entity_id": "JiVitA HHID", - "openmrs_entity": "person_identifier" - }, - "type": "text" - }, - { - "name": "FWNHNEARTO", - "label": { - "Bengali": "নিকটবর্তী স্থান", - "English": "Near to" - }, - "instance": { - "openmrs_entity_parent": "usual_residence", - "openmrs_entity_id": "landmark", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "FWNHHHGPS", - "bind": { - "required": "yes" - }, - "label": { - "Bengali": "জি পি এস", - "English": "Collect GPS Location of HH" - }, - "instance": { - "openmrs_entity_parent": "usual_residence", - "openmrs_entity_id": "geopoint", - "openmrs_entity": "person_address" - }, - "type": "geopoint" - }, - { - "name": "FWHOHFNAME", - "bind": { - "required": "yes" - }, - "label": { - "Bengali": "খানা প্রধানের নাম-", - "English": "Head of Household Name" - }, - "instance": { - "openmrs_entity_id": "first_name", - "openmrs_entity": "person" - }, - "type": "text" - }, - { - "name": "FWHOHLNAME", - "bind": { - "calculate": "\".\"" - }, - "instance": { - "openmrs_entity_id": "last_name", - "openmrs_entity": "person" - }, - "type": "calculate" - }, - { - "name": "FWHOHBIRTHDATE", - "bind": { - "calculate": "\"1900-01-01\"" - }, - "instance": { - "openmrs_entity_id": "birthdate", - "openmrs_entity": "person" - }, - "type": "calculate" - }, - { - "name": "FWHOHGENDER", - "bind": { - "calculate": "\"male\"" - }, - "instance": { - "openmrs_entity_id": "gender", - "openmrs_entity": "person" - }, - "type": "calculate" - }, - { - "name": "FWNHHMBRNUM", - "label": { - "Bengali": "খানা সদস্যের সংখ্যা কত?", - "English": "How many people are currently living in this household?" - }, - "instance": { - "openmrs_entity_id": "5611AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "integer" - }, - { - "children": [ - { - "name": "0", - "label": { - "Bengali": "না", - "English": "No" - }, - "instance": { - "openmrs_code": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - } - }, - { - "name": "1", - "label": { - "Bengali": "হ্যাঁ", - "English": "Yes" - }, - "instance": { - "openmrs_code": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - } - }, - { - "name": "9", - "label": { - "Bengali": "জানিনা", - "English": "Don't know" - }, - "instance": { - "openmrs_code": "1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - } - } - ], - "name": "FWNHHMWRA", - "label": { - "Bengali": "এই খানায় কি প্রজনন বয়সী বিবাহিত মহিলা আছেন?", - "English": "Are there any MWRAs in this Household?" - }, - "type": "select one" - }, - { - "children": [ - { - "name": "FWWOMFNAME", - "hint": { - "Bengali": "অনুগ্রহ করে মহিলার নাম টাইপ করুন", - "English": "Please type woman's name" - }, - "bind": { - "required": "yes" - }, - "label": { - "Bengali": "মহিলার নাম-", - "English": "Woman Name" - }, - "instance": { - "openmrs_entity_id": "first_name", - "openmrs_entity": "person" - }, - "type": "text" - }, - { - "name": "FWWOMLNAME", - "bind": { - "calculate": "\".\"" - }, - "instance": { - "openmrs_entity_id": "last_name", - "openmrs_entity": "person" - }, - "type": "calculate" - }, - { - "control": { - "appearance": "numbers" - }, - "name": "FWWOMNID", - "hint": { - "Bengali": "অনুগ্রহ করে জাতীয় পরিচয়পত্র কার্ড দেখে সরকার প্রদত্ত আইডি টাইপ করুন", - "English": "Please input the Government ID as displayed on the national ID card" - }, - "bind": { - "jr:constraintMsg": { - "Bengali": "জাতীয় পরিচয়পত্র নং ১৩ অথবা ১৭ ডিজিটের হবে", - "English": "National ID should be 13 or 17 digits" - }, - "constraint": "regex(., '^(?!0{13})[0-9]{13}$') or regex(., '^(?!0{17})[0-9]{17}$')" - }, - "label": { - "Bengali": "মহিলার জাতীয় পরিচয়পত্র নং-", - "English": "Woman's National ID Number" - }, - "instance": { - "openmrs_entity_id": "NID", - "openmrs_entity": "person_identifier" - }, - "type": "text" - }, - { - "control": { - "appearance": "numbers" - }, - "name": "FWWOMBID", - "hint": { - "Bengali": "অনুগ্রহ করে জন্ম নিবন্ধন সনদ দেখে সরকার প্রদত্ত আইডি টাইপ করুন", - "English": "Please input the Government ID as displayed on the birth certificate" - }, - "bind": { - "jr:constraintMsg": { - "Bengali": "জন্ম নিবন্ধন সনদ নং ১৭ ডিজিটের হবে", - "English": "Birth Registration ID should be 17 digits" - }, - "required": "yes", - "constraint": "regex(., '^(?!0{17})[0-9]{17}$')" - }, - "label": { - "Bengali": "মহিলার জন্ম নিবন্ধন সনদ নং-", - "English": "Woman's Birth Registration ID" - }, - "instance": { - "openmrs_entity_id": "Birth Registration ID", - "openmrs_entity": "person_identifier" - }, - "type": "text" - }, - { - "name": "FWHUSNAME", - "hint": { - "Bengali": "অনুগ্রহ করে স্বামীর নাম টাইপ করুন", - "English": "Please type husband's name" - }, - "bind": { - "required": "yes" - }, - "label": { - "Bengali": "স্বামীর নাম-", - "English": "Husband Name" - }, - "instance": { - "openmrs_entity_id": "161135AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "text" - }, - { - "name": "FWBIRTHDATE", - "hint": { - "Bengali": "মহিলার জন্ম নিবন্ধন পত্র থাকলে সেখান থেকে জন্ম তারিখটি লিখে নিন। যদি জন্ম তারিখ জানা না থাকে তবে তারিখ ১৫ সিলেক্ট করুন, যদি মাস জানা না থাকে তবে মাস ৬ (জুন) সিলেক্ট করুন", - "English": "If birth certificate is available, take date of birth from the birth certificate. \nIf date of birth is unknown, choose 15th as the date of birth. If month is unknown, choose month 06 (June) as month of birth." - }, - "bind": { - "jr:constraintMsg": { - "Bengali": "মহিলার বয়স অবশ্যই ১৩ বছরের বেশী হবে", - "English": "Woman must be older than 13 years of age" - }, - "required": "yes", - "constraint": "((${FWBIRTHDATE})+4745) <= today()" - }, - "label": { - "Bengali": "মহিলার জন্ম তারিখ", - "English": "Woman's Date of Birth" - }, - "instance": { - "openmrs_entity_id": "birthdate", - "openmrs_entity": "person" - }, - "type": "date" - }, - { - "name": "FWGENDER", - "bind": { - "calculate": "\"female\"" - }, - "instance": { - "openmrs_entity_id": "gender", - "openmrs_entity": "person" - }, - "type": "calculate" - }, - { - "name": "FWWOMAGE", - "bind": { - "calculate": "round(((${today} - ${FWBIRTHDATE}) div 365.25),0)" - }, - "type": "calculate" - }, - { - "name": "display_age", - "label": { - "Bengali": "মহিলার বয়স ${FWWOMAGE}", - "English": "The woman's age is ${FWWOMAGE}." - }, - "type": "note" - }, - { - "children": [ - { - "name": "0", - "label": { - "Bengali": "না", - "English": "No" - }, - "instance": { - "openmrs_code": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - } - }, - { - "name": "1", - "label": { - "Bengali": "হ্যাঁ", - "English": "Yes" - }, - "instance": { - "openmrs_code": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - } - }, - { - "name": "9", - "label": { - "Bengali": "জানিনা", - "English": "Don't know" - }, - "instance": { - "openmrs_code": "1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - } - } - ], - "name": "FWNHWOMSTRMEN", - "bind": { - "required": "yes" - }, - "label": { - "Bengali": "আপনার কি মাসিক একেবারে উঠে গেছে/আপনি কি স্থায়ী জন্মনিয়ন্ত্রন পদ্ধতি গ্রহণ করেছেন?", - "English": "Are you currently menopausal or sterilized?" - }, - "type": "select one" - }, - { - "children": [ - { - "name": "0", - "label": { - "Bengali": "মারা গেছেন", - "English": "Deceased" - }, - "instance": { - "openmrs_code": "159AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - } - }, - { - "name": "1", - "label": { - "Bengali": "বেঁচে আছেন", - "English": "Alive" - }, - "instance": { - "openmrs_code": "160429AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - } - }, - { - "name": "9", - "label": { - "Bengali": "জানিনা", - "English": "Don't know" - }, - "instance": { - "openmrs_code": "1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - } - } - ], - "name": "FWNHWOMHUSALV", - "bind": { - "relevant": "${FWNHWOMSTRMEN}='0'", - "required": "yes" - }, - "label": { - "Bengali": "আপনার স্বামী কি বেঁচে আছেন?", - "English": "Is the husband alive?" - }, - "instance": { - "openmrs_entity_id": "5561AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "select one" - }, - { - "children": [ - { - "name": "0", - "label": { - "Bengali": "না", - "English": "No" - }, - "instance": { - "openmrs_code": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - } - }, - { - "name": "1", - "label": { - "Bengali": "হ্যাঁ", - "English": "Yes" - }, - "instance": { - "openmrs_code": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - } - }, - { - "name": "9", - "label": { - "Bengali": "জানিনা", - "English": "Don't know" - }, - "instance": { - "openmrs_code": "1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - } - } - ], - "name": "FWNHWOMHUSLIV", - "bind": { - "relevant": "${FWNHWOMSTRMEN}='0' and ${FWNHWOMHUSALV}='1'", - "required": "yes" - }, - "label": { - "Bengali": "আপনি কি বর্তমানে আপনার স্বামীর সাথে বসবাস করছেন?", - "English": "Are you currently living with your husband?" - }, - "instance": { - "openmrs_entity_id": "1060AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "select one" - }, - { - "children": [ - { - "name": "0", - "label": { - "Bengali": "না", - "English": "No" - }, - "instance": { - "openmrs_code": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - } - }, - { - "name": "1", - "label": { - "Bengali": "হ্যাঁ", - "English": "Yes" - }, - "instance": { - "openmrs_code": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - } - }, - { - "name": "9", - "label": { - "Bengali": "জানিনা", - "English": "Don't know" - }, - "instance": { - "openmrs_code": "1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - } - } - ], - "name": "FWNHWOMHUSSTR", - "bind": { - "relevant": "${FWNHWOMSTRMEN}='0' and ${FWNHWOMHUSLIV}='1'", - "required": "yes" - }, - "label": { - "Bengali": "আপনার স্বামী কি স্থায়ী জন্মনিয়ন্ত্রন পদ্ধতি গ্রহণ করেছেন?", - "English": "Is the husband sterilized?" - }, - "type": "select one" - }, - { - "name": "FWELIGIBLE", - "bind": { - "calculate": "if(${FWNHWOMSTRMEN}='0' and ${FWNHWOMHUSLIV}='1' and ${FWNHWOMHUSSTR}='0',1,0)" - }, - "type": "calculate" - }, - { - "name": "add_women", - "label": { - "Bengali": "এই খানায় যদি আরও কোন মহিলা থাকে যাকে রেজিস্ট্রেশন করা হয়নি, তাহলে '+' অপশনটি বাছুন এবং একই প্রক্রিয়ায় পরবর্তী মহিলাকে রেজিস্ট্রেশন করুন", - "English": "If there are any additional unregistered women in this household, select the '+' to add them now." - }, - "type": "note" - } - ], - "name": "woman", - "hint": { - "Bengali": "আমরা এখন মহিলাটির রেজিস্ট্রেশন প্রক্রিয়া শুরু করতে যাচ্ছি। অনুগ্রহ করে মহিলাটিরে তার জন্ম নিবন্ধন স ও জাতীয় পরিচয়পত্র নিয়ে আসতে বলুন।", - "English": "We will now register the woman. Please ask her to bring her National ID Card and Birth Certificate." - }, - "bind": { - "relevant": "${FWNHHMWRA}='1'" - }, - "label": { - "Bengali": "মহিলা তথ্যঃ", - "English": "New Woman Registration" - }, - "instance": { - "openmrs_entity_id": "Census and New Woman Registration", - "openmrs_entity": "person" - }, - "type": "repeat" - }, - { - "name": "join_names", - "bind": { - "calculate": "join(' ', ${FWWOMFNAME})" - }, - "type": "calculate" - }, - { - "name": "MWRA", - "bind": { - "calculate": "if(${join_names} = '', 0, count(${woman}))" - }, - "type": "calculate" - }, - { - "control": { - "bodyless": true - }, - "children": [ - { - "name": "instanceID", - "bind": { - "readonly": "true()", - "calculate": "concat('uuid:', uuid())" - }, - "type": "calculate" - } - ], - "name": "meta", - "type": "group" - } - ], - "instance": { - "encounter_type": "New Household Registration" - }, - "version": "201505070930", - "type": "survey", - "name": "FWNewHH", - "sms_keyword": "FWNewHH", - "title": "FW new HH Reg" -} \ No newline at end of file diff --git a/opensrp-form/src/test/resources/form/new_household_registration/form.xml b/opensrp-form/src/test/resources/form/new_household_registration/form.xml deleted file mode 100644 index 85089deaa5..0000000000 --- a/opensrp-form/src/test/resources/form/new_household_registration/form.xml +++ /dev/null @@ -1,26 +0,0 @@ - -
-

নতুন খানা রেজিস্ট্রেশন ফর্ম

- - - - - - - - - -
এই খানায় কি প্রজনন বয়সী বিবাহিত মহিলা আছেন?Are there any MWRAs in this Household? -
-

মহিলা তথ্যঃNew Woman Registration

আপনার কি মাসিক একেবারে উঠে গেছে/আপনি কি স্থায়ী জন্মনিয়ন্ত্রন পদ্ধতি গ্রহণ করেছেন?Are you currently menopausal or sterilized?* -
আপনার স্বামী কি বেঁচে আছেন?Is the husband alive?* -
আপনি কি বর্তমানে আপনার স্বামীর সাথে বসবাস করছেন?Are you currently living with your husband?* -
আপনার স্বামী কি স্থায়ী জন্মনিয়ন্ত্রন পদ্ধতি গ্রহণ করেছেন?Is the husband sterilized?* -
-
-
- -
XML to HTML transformation for form took 0.03 secondsThis validation is yet not functional.
diff --git a/opensrp-form/src/test/resources/form/new_household_registration/form_definition.json b/opensrp-form/src/test/resources/form/new_household_registration/form_definition.json deleted file mode 100644 index f1dea2a941..0000000000 --- a/opensrp-form/src/test/resources/form/new_household_registration/form_definition.json +++ /dev/null @@ -1,166 +0,0 @@ -{ - "form_data_definition_version": "1", - "form": { - "default_bind_path": "/model/instance/FWNewHH", - "bind_type": "household", - "fields": [ - { - "name": "id", - "shouldLoadValue": true - }, - { - "name": "existing_location", - "bind": "/model/instance/FWNewHH/existing_location" - }, - { - "name": "today", - "bind": "/model/instance/FWNewHH/today" - }, - { - "name": "start", - "bind": "/model/instance/FWNewHH/start" - }, - { - "name": "end", - "bind": "/model/instance/FWNewHH/end" - }, - { - "name": "FWNHREGDATE", - "bind": "/model/instance/FWNewHH/FWNHREGDATE" - }, - { - "name": "FWGOBHHID", - "bind": "/model/instance/FWNewHH/FWGOBHHID" - }, - { - "name": "FWJIVHHID", - "bind": "/model/instance/FWNewHH/FWJIVHHID" - }, - { - "name": "FWNHNEARTO", - "bind": "/model/instance/FWNewHH/FWNHNEARTO" - }, - { - "name": "FWNHHHGPS", - "bind": "/model/instance/FWNewHH/FWNHHHGPS" - }, - { - "name": "FWHOHFNAME", - "bind": "/model/instance/FWNewHH/FWHOHFNAME" - }, - { - "name": "FWHOHLNAME", - "bind": "/model/instance/FWNewHH/FWHOHLNAME" - }, - { - "name": "FWHOHBIRTHDATE", - "bind": "/model/instance/FWNewHH/FWHOHBIRTHDATE" - }, - { - "name": "FWHOHBIRTHDATEAPPROX", - "bind": "/model/instance/FWNewHH/FWHOHBIRTHDATEAPPROX" - }, - { - "name": "FWHOHGENDER", - "bind": "/model/instance/FWNewHH/FWHOHGENDER" - }, - { - "name": "FWNHHMBRNUM", - "bind": "/model/instance/FWNewHH/FWNHHMBRNUM" - }, - { - "name": "FWNHHMWRA", - "bind": "/model/instance/FWNewHH/FWNHHMWRA" - }, - { - "name": "join_names", - "bind": "/model/instance/FWNewHH/join_names" - }, - { - "name": "MWRA", - "bind": "/model/instance/FWNewHH/MWRA" - } - ], - "sub_forms": [ - { - "name": "elco_registration", - "bind_type": "elco", - "default_bind_path": "/model/instance/FWNewHH/woman", - "fields": [ - { - "name": "id", - "shouldLoadValue": true - }, - { - "name": "GOBHHID", - "bind": "/model/instance/FWNewHH/woman/GOBHHID" - }, - { - "name": "JiVitAHHID", - "bind": "/model/instance/FWNewHH/woman/JiVitAHHID" - }, - { - "name": "FWWOMFNAME", - "bind": "/model/instance/FWNewHH/woman/FWWOMFNAME" - }, - { - "name": "FWWOMLNAME", - "bind": "/model/instance/FWNewHH/woman/FWWOMLNAME" - }, - { - "name": "FWWOMNID", - "bind": "/model/instance/FWNewHH/woman/FWWOMNID" - }, - { - "name": "FWWOMBID", - "bind": "/model/instance/FWNewHH/woman/FWWOMBID" - }, - { - "name": "FWHUSNAME", - "bind": "/model/instance/FWNewHH/woman/FWHUSNAME" - }, - { - "name": "FWBIRTHDATE", - "bind": "/model/instance/FWNewHH/woman/FWBIRTHDATE" - }, - { - "name": "FWBIRTHDATEAPPROX", - "bind": "/model/instance/FWNewHH/woman/FWBIRTHDATEAPPROX" - }, - { - "name": "FWGENDER", - "bind": "/model/instance/FWNewHH/woman/FWGENDER" - }, - { - "name": "FWWOMAGE", - "bind": "/model/instance/FWNewHH/woman/FWWOMAGE" - }, - { - "name": "display_age", - "bind": "/model/instance/FWNewHH/woman/display_age" - }, - { - "name": "FWNHWOMSTRMEN", - "bind": "/model/instance/FWNewHH/woman/FWNHWOMSTRMEN" - }, - { - "name": "FWNHWOMHUSALV", - "bind": "/model/instance/FWNewHH/woman/FWNHWOMHUSALV" - }, - { - "name": "FWNHWOMHUSLIV", - "bind": "/model/instance/FWNewHH/woman/FWNHWOMHUSLIV" - }, - { - "name": "FWNHWOMHUSSTR", - "bind": "/model/instance/FWNewHH/woman/FWNHWOMHUSSTR" - }, - { - "name": "FWELIGIBLE", - "bind": "/model/instance/FWNewHH/woman/FWELIGIBLE" - } - ] - } - ] - } -} \ No newline at end of file diff --git a/opensrp-form/src/test/resources/form/new_household_registration/form_submission1.json b/opensrp-form/src/test/resources/form/new_household_registration/form_submission1.json deleted file mode 100644 index a6a2f189a5..0000000000 --- a/opensrp-form/src/test/resources/form/new_household_registration/form_submission1.json +++ /dev/null @@ -1,228 +0,0 @@ -{ - "_id": "251ca0ef09df9af88f0e9d5f180115a3", - "_rev": "1-e73e1d93acdcdaeb1d41a738da5d9284", - "type": "FormSubmission", - "anmId": "demotest", - "instanceId": "88c0e824-10b4-44c2-9429-754b8d823776", - "formName": "new_household_registration", - "entityId": "a3f2abf4-2699-4761-819a-cea739224164", - "clientVersion": 1430997074596, - "formDataDefinitionVersion": "1", - "formInstance": { - "form_data_definition_version": "1", - "form": { - "bind_type": "household", - "default_bind_path": "/model/instance/FWNewHH", - "fields": [ - { - "name": "id", - "value": "a3f2abf4-2699-4761-819a-cea739224164", - "source": "household.id" - }, - { - "name": "existing_location", - "value": "KUPTALA", - "source": "household.existing_location" - }, - { - "name": "today", - "value": "2015-05-07", - "source": "household.today" - }, - { - "name": "start", - "value": "2015-05-07T17:07:21.000+06:00", - "source": "household.start" - }, - { - "name": "end", - "value": "2015-05-07T17:07:21.000+06:00", - "source": "household.end" - }, - { - "name": "FWNHREGDATE", - "value": "2015-05-07", - "source": "household.FWNHREGDATE" - }, - { - "name": "FWGOBHHID", - "value": "1234", - "source": "household.FWGOBHHID" - }, - { - "name": "FWJIVHHID", - "value": "1234", - "source": "household.FWJIVHHID" - }, - { - "name": "FWNHNEARTO", - "value": "nothing", - "source": "household.FWNHNEARTO" - }, - { - "name": "FWNHHHGPS", - "value": "34 34 0 0", - "source": "household.FWNHHHGPS" - }, - { - "name": "FWHOHFNAME", - "value": "test", - "source": "household.FWHOHFNAME" - }, - { - "name": "FWHOHLNAME", - "value": ".", - "source": "household.FWHOHLNAME" - }, - { - "name": "FWHOHBIRTHDATE", - "value": "1900-01-01", - "source": "household.FWHOHBIRTHDATE" - }, - { - "name": "FWHOHGENDER", - "value": "male", - "source": "household.FWHOHGENDER" - }, - { - "name": "FWNHHMBRNUM", - "value": "2", - "source": "household.FWNHHMBRNUM" - }, - { - "name": "FWNHHMWRA", - "value": "1", - "source": "household.FWNHHMWRA" - }, - { - "name": "join_names", - "value": "shumi sumaita", - "source": "household.join_names" - }, - { - "name": "MWRA", - "value": "2", - "source": "household.MWRA" - } - ], - "sub_forms": [ - { - "name": "elco_registration", - "bind_type": "elco", - "default_bind_path": "/model/instance/FWNewHH/woman", - "fields": [ - { - "name": "id", - "source": "elco.id" - }, - { - "name": "GOBHHID", - "source": "elco.GOBHHID" - }, - { - "name": "JiVitAHHID", - "source": "elco.JiVitAHHID" - }, - { - "name": "FWWOMFNAME", - "source": "elco.FWWOMFNAME" - }, - { - "name": "FWWOMLNAME", - "source": "elco.FWWOMLNAME" - }, - { - "name": "FWWOMNID", - "source": "elco.FWWOMNID" - }, - { - "name": "FWWOMBID", - "source": "elco.FWWOMBID" - }, - { - "name": "FWHUSNAME", - "source": "elco.FWHUSNAME" - }, - { - "name": "FWBIRTHDATE", - "source": "elco.FWBIRTHDATE" - }, - { - "name": "FWGENDER", - "source": "elco.FWGENDER" - }, - { - "name": "FWWOMAGE", - "source": "elco.FWWOMAGE" - }, - { - "name": "display_age", - "source": "elco.display_age" - }, - { - "name": "FWNHWOMSTRMEN", - "source": "elco.FWNHWOMSTRMEN" - }, - { - "name": "FWNHWOMHUSALV", - "source": "elco.FWNHWOMHUSALV" - }, - { - "name": "FWNHWOMHUSLIV", - "source": "elco.FWNHWOMHUSLIV" - }, - { - "name": "FWNHWOMHUSSTR", - "source": "elco.FWNHWOMHUSSTR" - }, - { - "name": "FWELIGIBLE", - "source": "elco.FWELIGIBLE" - } - ], - "instances": [ - { - "GOBHHID": "1234323", - "JiVitAHHID": "123465656", - "FWWOMFNAME": "shumi", - "FWWOMLNAME": ".", - "FWWOMNID": "", - "FWWOMBID": "54676545676787876", - "FWHUSNAME": "selim", - "FWBIRTHDATE": "1998-02-04", - "FWGENDER": "female", - "FWWOMAGE": "17", - "display_age": "", - "FWNHWOMSTRMEN": "1", - "FWNHWOMHUSALV": "", - "FWNHWOMHUSLIV": "", - "FWNHWOMHUSSTR": "", - "FWELIGIBLE": "0", - "id": "babcd9d2-b3e9-4f6d-8a06-2df8f5fbf01f" - }, - { - "GOBHHID": "1234121", - "JiVitAHHID": "12348787", - "FWWOMFNAME": "sumaita", - "FWWOMLNAME": ".", - "FWWOMNID": "", - "FWWOMBID": "56543456567654567", - "FWHUSNAME": "razzak", - "FWBIRTHDATE": "1989-08-18", - "FWGENDER": "female", - "FWWOMAGE": "26", - "display_age": "", - "FWNHWOMSTRMEN": "0", - "FWNHWOMHUSALV": "1", - "FWNHWOMHUSLIV": "1", - "FWNHWOMHUSSTR": "1", - "FWELIGIBLE": "0", - "id": "74eebb60-a1b9-4691-81a4-5c04ecce7ae9" - } - ] - } - ] - } - }, - "serverVersion": 1430998001293 -} \ No newline at end of file diff --git a/opensrp-form/src/test/resources/form/new_household_registration/form_submission2.json b/opensrp-form/src/test/resources/form/new_household_registration/form_submission2.json deleted file mode 100644 index 76f8e41550..0000000000 --- a/opensrp-form/src/test/resources/form/new_household_registration/form_submission2.json +++ /dev/null @@ -1,207 +0,0 @@ -{ - "_id": "251ca0ef09df9af88f0e9d5f18000df2", - "_rev": "1-0cec42380dce0fef7b1263aad8652c3f", - "type": "FormSubmission", - "anmId": "demotest", - "instanceId": "916363c4-a10e-488d-8de4-9be7a05d43cd", - "formName": "new_household_registration", - "entityId": "0aac6d81-b51f-4096-b354-5a5786e406c8", - "clientVersion": 1430924780686, - "formDataDefinitionVersion": "1", - "formInstance": { - "form_data_definition_version": "1", - "form": { - "bind_type": "household", - "default_bind_path": "/model/instance/FWNewHH", - "fields": [ - { - "name": "id", - "value": "0aac6d81-b51f-4096-b354-5a5786e406c8", - "source": "household.id" - }, - { - "name": "existing_location", - "value": "KUPTALA", - "source": "household.existing_location" - }, - { - "name": "today", - "value": "2015-05-06", - "source": "household.today" - }, - { - "name": "start", - "value": "2015-05-06T21:05:35.000+06:00", - "source": "household.start" - }, - { - "name": "end", - "value": "2015-05-06T21:05:35.000+06:00", - "source": "household.end" - }, - { - "name": "FWNHREGDATE", - "value": "2015-05-06", - "source": "household.FWNHREGDATE" - }, - { - "name": "FWGOBHHID", - "value": "0002", - "source": "household.FWGOBHHID" - }, - { - "name": "FWJIVHHID", - "value": "0002", - "source": "household.FWJIVHHID" - }, - { - "name": "FWNHNEARTO", - "source": "household.FWNHNEARTO" - }, - { - "name": "FWNHHHGPS", - "value": "23.7984 90.4019 0 25", - "source": "household.FWNHHHGPS" - }, - { - "name": "FWHOHFNAME", - "value": "karim mia", - "source": "household.FWHOHFNAME" - }, - { - "name": "FWHOHLNAME", - "value": ".", - "source": "household.FWHOHLNAME" - }, - { - "name": "FWHOHBIRTHDATE", - "value": "1900-01-01", - "source": "household.FWHOHBIRTHDATE" - }, - { - "name": "FWHOHGENDER", - "value": "male", - "source": "household.FWHOHGENDER" - }, - { - "name": "FWNHHMBRNUM", - "value": "1", - "source": "household.FWNHHMBRNUM" - }, - { - "name": "FWNHHMWRA", - "value": "0", - "source": "household.FWNHHMWRA" - }, - { - "name": "join_names", - "source": "household.join_names" - }, - { - "name": "MWRA", - "value": "0", - "source": "household.MWRA" - } - ], - "sub_forms": [ - { - "name": "elco_registration", - "bind_type": "elco", - "default_bind_path": "/model/instance/FWNewHH/woman", - "fields": [ - { - "name": "id", - "source": "elco.id" - }, - { - "name": "GOBHHID", - "source": "elco.GOBHHID" - }, - { - "name": "JiVitAHHID", - "source": "elco.JiVitAHHID" - }, - { - "name": "FWWOMFNAME", - "source": "elco.FWWOMFNAME" - }, - { - "name": "FWWOMLNAME", - "source": "elco.FWWOMLNAME" - }, - { - "name": "FWWOMNID", - "source": "elco.FWWOMNID" - }, - { - "name": "FWWOMBID", - "source": "elco.FWWOMBID" - }, - { - "name": "FWHUSNAME", - "source": "elco.FWHUSNAME" - }, - { - "name": "FWBIRTHDATE", - "source": "elco.FWBIRTHDATE" - }, - { - "name": "FWGENDER", - "source": "elco.FWGENDER" - }, - { - "name": "FWWOMAGE", - "source": "elco.FWWOMAGE" - }, - { - "name": "display_age", - "source": "elco.display_age" - }, - { - "name": "FWNHWOMSTRMEN", - "source": "elco.FWNHWOMSTRMEN" - }, - { - "name": "FWNHWOMHUSALV", - "source": "elco.FWNHWOMHUSALV" - }, - { - "name": "FWNHWOMHUSLIV", - "source": "elco.FWNHWOMHUSLIV" - }, - { - "name": "FWNHWOMHUSSTR", - "source": "elco.FWNHWOMHUSSTR" - }, - { - "name": "FWELIGIBLE", - "source": "elco.FWELIGIBLE" - } - ], - "instances": [ - { - "GOBHHID": "0002", - "JiVitAHHID": "042002", - "FWWOMFNAME": "fana", - "FWWOMLNAME": ".", - "FWWOMNID": "", - "FWWOMBID": "9999999999999999", - "FWHUSNAME": "", - "FWBIRTHDATE": "2000-12-12", - "FWGENDER": "female", - "FWWOMAGE": "NaN", - "display_age": "", - "FWNHWOMSTRMEN": "", - "FWNHWOMHUSALV": "", - "FWNHWOMHUSLIV": "", - "FWNHWOMHUSSTR": "", - "FWELIGIBLE": "0", - "id": "b19db74f-6e96-4652-a765-5078beb12434" - } - ] - } - ] - } - }, - "serverVersion": 1430924937728 -} \ No newline at end of file diff --git a/opensrp-form/src/test/resources/form/new_household_registration/form_submission3.json b/opensrp-form/src/test/resources/form/new_household_registration/form_submission3.json deleted file mode 100644 index 113c3c0829..0000000000 --- a/opensrp-form/src/test/resources/form/new_household_registration/form_submission3.json +++ /dev/null @@ -1,208 +0,0 @@ -{ - "_id": "251ca0ef09df9af88f0e9d5f1800160d", - "_rev": "1-89988ca8cc2db0cd67afc292263137fe", - "type": "FormSubmission", - "anmId": "demotest", - "instanceId": "1cdf1628-86f2-440b-b5b0-4bc612d2fd2f", - "formName": "new_household_registration", - "entityId": "baf59aa4-64e9-46fc-99e6-8cd8f01618ff", - "clientVersion": 1430925173098, - "formDataDefinitionVersion": "1", - "formInstance": { - "form_data_definition_version": "1", - "form": { - "bind_type": "household", - "default_bind_path": "/model/instance/FWNewHH", - "fields": [ - { - "name": "id", - "value": "baf59aa4-64e9-46fc-99e6-8cd8f01618ff", - "source": "household.id" - }, - { - "name": "existing_location", - "value": "LAKSHMIPUR", - "source": "household.existing_location" - }, - { - "name": "today", - "value": "2015-05-06", - "source": "household.today" - }, - { - "name": "start", - "value": "2015-05-06T21:09:22.000+06:00", - "source": "household.start" - }, - { - "name": "end", - "value": "2015-05-06T21:09:22.000+06:00", - "source": "household.end" - }, - { - "name": "FWNHREGDATE", - "value": "2015-05-06", - "source": "household.FWNHREGDATE" - }, - { - "name": "FWGOBHHID", - "value": "0091", - "source": "household.FWGOBHHID" - }, - { - "name": "FWJIVHHID", - "value": "0091", - "source": "household.FWJIVHHID" - }, - { - "name": "FWNHNEARTO", - "source": "household.FWNHNEARTO" - }, - { - "name": "FWNHHHGPS", - "value": "23.7984 90.402 0 40", - "source": "household.FWNHHHGPS" - }, - { - "name": "FWHOHFNAME", - "value": "hasan ferox", - "source": "household.FWHOHFNAME" - }, - { - "name": "FWHOHLNAME", - "value": ".", - "source": "household.FWHOHLNAME" - }, - { - "name": "FWHOHBIRTHDATE", - "value": "1900-01-01", - "source": "household.FWHOHBIRTHDATE" - }, - { - "name": "FWHOHGENDER", - "value": "male", - "source": "household.FWHOHGENDER" - }, - { - "name": "FWNHHMBRNUM", - "value": "1", - "source": "household.FWNHHMBRNUM" - }, - { - "name": "FWNHHMWRA", - "value": "1", - "source": "household.FWNHHMWRA" - }, - { - "name": "join_names", - "value": "mithila", - "source": "household.join_names" - }, - { - "name": "MWRA", - "value": "1", - "source": "household.MWRA" - } - ], - "sub_forms": [ - { - "name": "elco_registration", - "bind_type": "elco", - "default_bind_path": "/model/instance/FWNewHH/woman", - "fields": [ - { - "name": "id", - "source": "elco.id" - }, - { - "name": "GOBHHID", - "source": "elco.GOBHHID" - }, - { - "name": "JiVitAHHID", - "source": "elco.JiVitAHHID" - }, - { - "name": "FWWOMFNAME", - "source": "elco.FWWOMFNAME" - }, - { - "name": "FWWOMLNAME", - "source": "elco.FWWOMLNAME" - }, - { - "name": "FWWOMNID", - "source": "elco.FWWOMNID" - }, - { - "name": "FWWOMBID", - "source": "elco.FWWOMBID" - }, - { - "name": "FWHUSNAME", - "source": "elco.FWHUSNAME" - }, - { - "name": "FWBIRTHDATE", - "source": "elco.FWBIRTHDATE" - }, - { - "name": "FWGENDER", - "source": "elco.FWGENDER" - }, - { - "name": "FWWOMAGE", - "source": "elco.FWWOMAGE" - }, - { - "name": "display_age", - "source": "elco.display_age" - }, - { - "name": "FWNHWOMSTRMEN", - "source": "elco.FWNHWOMSTRMEN" - }, - { - "name": "FWNHWOMHUSALV", - "source": "elco.FWNHWOMHUSALV" - }, - { - "name": "FWNHWOMHUSLIV", - "source": "elco.FWNHWOMHUSLIV" - }, - { - "name": "FWNHWOMHUSSTR", - "source": "elco.FWNHWOMHUSSTR" - }, - { - "name": "FWELIGIBLE", - "source": "elco.FWELIGIBLE" - } - ], - "instances": [ - { - "GOBHHID": "0091", - "JiVitAHHID": "0524091", - "FWWOMFNAME": "mithila", - "FWWOMLNAME": ".", - "FWWOMNID": "1111111111111", - "FWWOMBID": "12345678912345678", - "FWHUSNAME": "hasan feroz", - "FWBIRTHDATE": "1989-01-01", - "FWGENDER": "female", - "FWWOMAGE": "26", - "display_age": "", - "FWNHWOMSTRMEN": "0", - "FWNHWOMHUSALV": "1", - "FWNHWOMHUSLIV": "1", - "FWNHWOMHUSSTR": "1", - "FWELIGIBLE": "0", - "id": "409b44c4-262a-40b8-ad7d-748c480c7c13" - } - ] - } - ] - } - }, - "serverVersion": 1430925176060 -} \ No newline at end of file diff --git a/opensrp-form/src/test/resources/form/new_household_registration/form_submission4.json b/opensrp-form/src/test/resources/form/new_household_registration/form_submission4.json deleted file mode 100644 index 7665de2411..0000000000 --- a/opensrp-form/src/test/resources/form/new_household_registration/form_submission4.json +++ /dev/null @@ -1,208 +0,0 @@ -{ - "_id": "251ca0ef09df9af88f0e9d5f18001e50", - "_rev": "1-3a413b7428ae33aafd08898dc2c974d4", - "type": "FormSubmission", - "anmId": "demotest", - "instanceId": "cad01d9c-9f7f-4e0b-a66a-2d1121bf8b8d", - "formName": "new_household_registration", - "entityId": "f92ee1b5-c3ce-42fb-bbc8-e01f474acc5a", - "clientVersion": 1430926871912, - "formDataDefinitionVersion": "1", - "formInstance": { - "form_data_definition_version": "1", - "form": { - "bind_type": "household", - "default_bind_path": "/model/instance/FWNewHH", - "fields": [ - { - "name": "id", - "value": "f92ee1b5-c3ce-42fb-bbc8-e01f474acc5a", - "source": "household.id" - }, - { - "name": "existing_location", - "value": "KUPTALA", - "source": "household.existing_location" - }, - { - "name": "today", - "value": "2015-05-06", - "source": "household.today" - }, - { - "name": "start", - "value": "2015-05-06T21:38:52.000+06:00", - "source": "household.start" - }, - { - "name": "end", - "value": "2015-05-06T21:38:52.000+06:00", - "source": "household.end" - }, - { - "name": "FWNHREGDATE", - "value": "2015-05-06", - "source": "household.FWNHREGDATE" - }, - { - "name": "FWGOBHHID", - "value": "4567", - "source": "household.FWGOBHHID" - }, - { - "name": "FWJIVHHID", - "value": "5678", - "source": "household.FWJIVHHID" - }, - { - "name": "FWNHNEARTO", - "source": "household.FWNHNEARTO" - }, - { - "name": "FWNHHHGPS", - "value": "23.7984 90.4021 0 37", - "source": "household.FWNHHHGPS" - }, - { - "name": "FWHOHFNAME", - "value": "jashim mia", - "source": "household.FWHOHFNAME" - }, - { - "name": "FWHOHLNAME", - "value": ".", - "source": "household.FWHOHLNAME" - }, - { - "name": "FWHOHBIRTHDATE", - "value": "1900-01-01", - "source": "household.FWHOHBIRTHDATE" - }, - { - "name": "FWHOHGENDER", - "value": "male", - "source": "household.FWHOHGENDER" - }, - { - "name": "FWNHHMBRNUM", - "value": "5", - "source": "household.FWNHHMBRNUM" - }, - { - "name": "FWNHHMWRA", - "value": "1", - "source": "household.FWNHHMWRA" - }, - { - "name": "join_names", - "value": "razia sultana", - "source": "household.join_names" - }, - { - "name": "MWRA", - "value": "1", - "source": "household.MWRA" - } - ], - "sub_forms": [ - { - "name": "elco_registration", - "bind_type": "elco", - "default_bind_path": "/model/instance/FWNewHH/woman", - "fields": [ - { - "name": "id", - "source": "elco.id" - }, - { - "name": "GOBHHID", - "source": "elco.GOBHHID" - }, - { - "name": "JiVitAHHID", - "source": "elco.JiVitAHHID" - }, - { - "name": "FWWOMFNAME", - "source": "elco.FWWOMFNAME" - }, - { - "name": "FWWOMLNAME", - "source": "elco.FWWOMLNAME" - }, - { - "name": "FWWOMNID", - "source": "elco.FWWOMNID" - }, - { - "name": "FWWOMBID", - "source": "elco.FWWOMBID" - }, - { - "name": "FWHUSNAME", - "source": "elco.FWHUSNAME" - }, - { - "name": "FWBIRTHDATE", - "source": "elco.FWBIRTHDATE" - }, - { - "name": "FWGENDER", - "source": "elco.FWGENDER" - }, - { - "name": "FWWOMAGE", - "source": "elco.FWWOMAGE" - }, - { - "name": "display_age", - "source": "elco.display_age" - }, - { - "name": "FWNHWOMSTRMEN", - "source": "elco.FWNHWOMSTRMEN" - }, - { - "name": "FWNHWOMHUSALV", - "source": "elco.FWNHWOMHUSALV" - }, - { - "name": "FWNHWOMHUSLIV", - "source": "elco.FWNHWOMHUSLIV" - }, - { - "name": "FWNHWOMHUSSTR", - "source": "elco.FWNHWOMHUSSTR" - }, - { - "name": "FWELIGIBLE", - "source": "elco.FWELIGIBLE" - } - ], - "instances": [ - { - "GOBHHID": "4567", - "JiVitAHHID": "5678", - "FWWOMFNAME": "razia sultana", - "FWWOMLNAME": ".", - "FWWOMNID": "0987654321123", - "FWWOMBID": "09876543211234567", - "FWHUSNAME": "jashim mia", - "FWBIRTHDATE": "1991-02-27", - "FWGENDER": "female", - "FWWOMAGE": "24", - "display_age": "", - "FWNHWOMSTRMEN": "0", - "FWNHWOMHUSALV": "1", - "FWNHWOMHUSLIV": "1", - "FWNHWOMHUSSTR": "0", - "FWELIGIBLE": "1", - "id": "0036b7ca-36ec-4242-9885-a0a03a666cda" - } - ] - } - ] - } - }, - "serverVersion": 1430926886181 -} \ No newline at end of file diff --git a/opensrp-form/src/test/resources/form/new_household_registration/form_submission5.json b/opensrp-form/src/test/resources/form/new_household_registration/form_submission5.json deleted file mode 100644 index 8447c0ff4a..0000000000 --- a/opensrp-form/src/test/resources/form/new_household_registration/form_submission5.json +++ /dev/null @@ -1,209 +0,0 @@ -{ - "_id": "251ca0ef09df9af88f0e9d5f180115a3", - "_rev": "1-e73e1d93acdcdaeb1d41a738da5d9284", - "type": "FormSubmission", - "anmId": "demotest", - "instanceId": "88c0e824-10b4-44c2-9429-754b8d823776", - "formName": "new_household_registration", - "entityId": "a3f2abf4-2699-4761-819a-cea739224164", - "clientVersion": 1430997074596, - "formDataDefinitionVersion": "1", - "formInstance": { - "form_data_definition_version": "1", - "form": { - "bind_type": "household", - "default_bind_path": "/model/instance/FWNewHH", - "fields": [ - { - "name": "id", - "value": "a3f2abf4-2699-4761-819a-cea739224164", - "source": "household.id" - }, - { - "name": "existing_location", - "value": "KUPTALA", - "source": "household.existing_location" - }, - { - "name": "today", - "value": "2015-05-07", - "source": "household.today" - }, - { - "name": "start", - "value": "2015-05-07T17:07:21.000+06:00", - "source": "household.start" - }, - { - "name": "end", - "value": "2015-05-07T17:07:21.000+06:00", - "source": "household.end" - }, - { - "name": "FWNHREGDATE", - "value": "2015-05-07", - "source": "household.FWNHREGDATE" - }, - { - "name": "FWGOBHHID", - "value": "1234", - "source": "household.FWGOBHHID" - }, - { - "name": "FWJIVHHID", - "value": "1234", - "source": "household.FWJIVHHID" - }, - { - "name": "FWNHNEARTO", - "value": "nothing", - "source": "household.FWNHNEARTO" - }, - { - "name": "FWNHHHGPS", - "value": "34 34 0 0", - "source": "household.FWNHHHGPS" - }, - { - "name": "FWHOHFNAME", - "value": "test", - "source": "household.FWHOHFNAME" - }, - { - "name": "FWHOHLNAME", - "value": ".", - "source": "household.FWHOHLNAME" - }, - { - "name": "FWHOHBIRTHDATE", - "value": "1900-01-01", - "source": "household.FWHOHBIRTHDATE" - }, - { - "name": "FWHOHGENDER", - "value": "male", - "source": "household.FWHOHGENDER" - }, - { - "name": "FWNHHMBRNUM", - "value": "2", - "source": "household.FWNHHMBRNUM" - }, - { - "name": "FWNHHMWRA", - "value": "1", - "source": "household.FWNHHMWRA" - }, - { - "name": "join_names", - "value": "shumi sumaita", - "source": "household.join_names" - }, - { - "name": "MWRA", - "value": "2", - "source": "household.MWRA" - } - ], - "sub_forms": [ - { - "name": "elco_registration", - "bind_type": "elco", - "default_bind_path": "/model/instance/FWNewHH/woman", - "fields": [ - { - "name": "id", - "source": "elco.id" - }, - { - "name": "GOBHHID", - "source": "elco.GOBHHID" - }, - { - "name": "JiVitAHHID", - "source": "elco.JiVitAHHID" - }, - { - "name": "FWWOMFNAME", - "source": "elco.FWWOMFNAME" - }, - { - "name": "FWWOMLNAME", - "source": "elco.FWWOMLNAME" - }, - { - "name": "FWWOMNID", - "source": "elco.FWWOMNID" - }, - { - "name": "FWWOMBID", - "source": "elco.FWWOMBID" - }, - { - "name": "FWHUSNAME", - "source": "elco.FWHUSNAME" - }, - { - "name": "FWBIRTHDATE", - "source": "elco.FWBIRTHDATE" - }, - { - "name": "FWGENDER", - "source": "elco.FWGENDER" - }, - { - "name": "FWWOMAGE", - "source": "elco.FWWOMAGE" - }, - { - "name": "display_age", - "source": "elco.display_age" - }, - { - "name": "FWNHWOMSTRMEN", - "source": "elco.FWNHWOMSTRMEN" - }, - { - "name": "FWNHWOMHUSALV", - "source": "elco.FWNHWOMHUSALV" - }, - { - "name": "FWNHWOMHUSLIV", - "source": "elco.FWNHWOMHUSLIV" - }, - { - "name": "FWNHWOMHUSSTR", - "source": "elco.FWNHWOMHUSSTR" - }, - { - "name": "FWELIGIBLE", - "source": "elco.FWELIGIBLE" - } - ], - "instances": [ - { - "GOBHHID": "", - "JiVitAHHID": "", - "FWWOMFNAME": "", - "FWWOMLNAME": "", - "FWWOMNID": "", - "FWWOMBID": "", - "FWHUSNAME": "", - "FWBIRTHDATE": "", - "FWGENDER": "", - "FWWOMAGE": "", - "display_age": "", - "FWNHWOMSTRMEN": "", - "FWNHWOMHUSALV": "", - "FWNHWOMHUSLIV": "", - "FWNHWOMHUSSTR": "", - "FWELIGIBLE": "", - "id": "babcd9d2-b3e9-4f6d-8a06-2df8f5fbf01f" - } - ] - } - ] - } - }, - "serverVersion": 1430998001293 -} \ No newline at end of file diff --git a/opensrp-form/src/test/resources/form/new_household_registration/form_submission6.json b/opensrp-form/src/test/resources/form/new_household_registration/form_submission6.json deleted file mode 100644 index 8f3ec6c5ad..0000000000 --- a/opensrp-form/src/test/resources/form/new_household_registration/form_submission6.json +++ /dev/null @@ -1,216 +0,0 @@ -{ - "_id": "251ca0ef09df9af88f0e9d5f180115a3", - "_rev": "1-e73e1d93acdcdaeb1d41a738da5d9284", - "type": "FormSubmission", - "anmId": "admin", - "instanceId": "88c0e824-10b4-44c2-9429-754b8d823776", - "formName": "new_household_registration", - "entityId": "a3f2abf4-2699-4761-819a-cea739224164", - "clientVersion": 1430997074596, - "formDataDefinitionVersion": "1", - "formInstance": { - "form_data_definition_version": "1", - "form": { - "bind_type": "household", - "default_bind_path": "/model/instance/FWNewHH", - "fields": [ - { - "name": "id", - "value": "a3f2abf4-2699-4761-819a-cea739224164", - "source": "household.id" - }, - { - "name": "existing_location", - "value": "KUPTALA", - "source": "household.existing_location" - }, - { - "name": "today", - "value": "2015-05-07", - "source": "household.today" - }, - { - "name": "start", - "value": "2015-05-07T17:07:21.000+06:00", - "source": "household.start" - }, - { - "name": "end", - "value": "2015-05-07T17:07:21.000+06:00", - "source": "household.end" - }, - { - "name": "FWNHREGDATE", - "value": "2015-05-07", - "source": "household.FWNHREGDATE" - }, - { - "name": "FWGOBHHID", - "value": "1234", - "source": "household.FWGOBHHID" - }, - { - "name": "FWJIVHHID", - "value": "1234", - "source": "household.FWJIVHHID" - }, - { - "name": "FWNHNEARTO", - "value": "nothing", - "source": "household.FWNHNEARTO" - }, - { - "name": "FWNHHHGPS", - "value": "34 34 0 0", - "source": "household.FWNHHHGPS" - }, - { - "name": "FWHOHFNAME", - "value": "test", - "source": "household.FWHOHFNAME" - }, - { - "name": "FWHOHLNAME", - "value": ".", - "source": "household.FWHOHLNAME" - }, - { - "name": "FWHOHBIRTHDATE", - "value": "1900-01-01", - "source": "household.FWHOHBIRTHDATE" - }, - { - "name": "FWHOHBIRTHDATEAPPROX", - "value": "1", - "source": "household.FWHOHBIRTHDATEAPPROX" - }, - { - "name": "FWHOHGENDER", - "value": "male", - "source": "household.FWHOHGENDER" - }, - { - "name": "FWNHHMBRNUM", - "source": "household.FWNHHMBRNUM" - }, - { - "name": "FWNHHMWRA", - "source": "household.FWNHHMWRA" - }, - { - "name": "join_names", - "value": "shumi sumaita", - "source": "household.join_names" - }, - { - "name": "MWRA", - "source": "household.MWRA" - } - ], - "sub_forms": [ - { - "name": "elco_registration", - "bind_type": "elco", - "default_bind_path": "/model/instance/FWNewHH/woman", - "fields": [ - { - "name": "id", - "source": "elco.id" - }, - { - "name": "GOBHHID", - "source": "elco.GOBHHID" - }, - { - "name": "JiVitAHHID", - "source": "elco.JiVitAHHID" - }, - { - "name": "FWWOMFNAME", - "source": "elco.FWWOMFNAME" - }, - { - "name": "FWWOMLNAME", - "source": "elco.FWWOMLNAME" - }, - { - "name": "FWWOMNID", - "source": "elco.FWWOMNID" - }, - { - "name": "FWWOMBID", - "source": "elco.FWWOMBID" - }, - { - "name": "FWHUSNAME", - "source": "elco.FWHUSNAME" - }, - { - "name": "FWBIRTHDATE", - "source": "elco.FWBIRTHDATE" - }, - { - "name": "FWBIRTHDATEAPPROX", - "source": "elco.FWBIRTHDATEAPPROX" - }, - { - "name": "FWGENDER", - "source": "elco.FWGENDER" - }, - { - "name": "FWWOMAGE", - "source": "elco.FWWOMAGE" - }, - { - "name": "display_age", - "source": "elco.display_age" - }, - { - "name": "FWNHWOMSTRMEN", - "source": "elco.FWNHWOMSTRMEN" - }, - { - "name": "FWNHWOMHUSALV", - "source": "elco.FWNHWOMHUSALV" - }, - { - "name": "FWNHWOMHUSLIV", - "source": "elco.FWNHWOMHUSLIV" - }, - { - "name": "FWNHWOMHUSSTR", - "source": "elco.FWNHWOMHUSSTR" - }, - { - "name": "FWELIGIBLE", - "source": "elco.FWELIGIBLE" - } - ], - "instances": [ - { - "GOBHHID": "48374", - "JiVitAHHID": "78748", - "FWWOMFNAME": "tEST First", - "FWWOMLNAME": " lastname", - "FWWOMNID": "", - "FWWOMBID": "", - "FWHUSNAME": "", - "FWBIRTHDATE": "2000-05-07", - "FWBIRTHDATEAPPROX":"1", - "FWGENDER": "Female", - "FWWOMAGE": "", - "display_age": "", - "FWNHWOMSTRMEN": "", - "FWNHWOMHUSALV": "", - "FWNHWOMHUSLIV": "", - "FWNHWOMHUSSTR": "", - "FWELIGIBLE": "", - "id": "babcd9d2-b3e9-4f6d-8a06-2df8f5fbf01f" - } - ] - } - ] - } - }, - "serverVersion": 1430998001293 -} \ No newline at end of file diff --git a/opensrp-form/src/test/resources/form/new_household_registration/form_submission7.json b/opensrp-form/src/test/resources/form/new_household_registration/form_submission7.json deleted file mode 100644 index 443ced2385..0000000000 --- a/opensrp-form/src/test/resources/form/new_household_registration/form_submission7.json +++ /dev/null @@ -1,216 +0,0 @@ -{ - "_id": "251ca0ef09df9af88f0e9d5f180115a3", - "_rev": "1-e73e1d93acdcdaeb1d41a738da5d9284", - "type": "FormSubmission", - "anmId": "admin", - "instanceId": "88c0e824-10b4-44c2-9429-754b8d823776", - "formName": "new_household_registration", - "entityId": "a3f2abf4-2699-4761-819a-cea739224164", - "clientVersion": 1430997074596, - "formDataDefinitionVersion": "1", - "formInstance": { - "form_data_definition_version": "1", - "form": { - "bind_type": "household", - "default_bind_path": "/model/instance/FWNewHH", - "fields": [ - { - "name": "id", - "value": "a3f2abf4-2699-4761-819a-cea739224164", - "source": "household.id" - }, - { - "name": "existing_location", - "value": "KUPTALA", - "source": "household.existing_location" - }, - { - "name": "today", - "value": "2015-05-07", - "source": "household.today" - }, - { - "name": "start", - "value": "2015-05-07T17:07:21.000+06:00", - "source": "household.start" - }, - { - "name": "end", - "value": "2015-05-07T17:07:21.000+06:00", - "source": "household.end" - }, - { - "name": "FWNHREGDATE", - "value": "2015-05-07", - "source": "household.FWNHREGDATE" - }, - { - "name": "FWGOBHHID", - "value": "1234", - "source": "household.FWGOBHHID" - }, - { - "name": "FWJIVHHID", - "value": "1234", - "source": "household.FWJIVHHID" - }, - { - "name": "FWNHNEARTO", - "value": "nothing", - "source": "household.FWNHNEARTO" - }, - { - "name": "FWNHHHGPS", - "value": "34 34 0 0", - "source": "household.FWNHHHGPS" - }, - { - "name": "FWHOHFNAME", - "value": "test", - "source": "household.FWHOHFNAME" - }, - { - "name": "FWHOHLNAME", - "value": ".", - "source": "household.FWHOHLNAME" - }, - { - "name": "FWHOHBIRTHDATE", - "value": "1900-01-01", - "source": "household.FWHOHBIRTHDATE" - }, - { - "name": "FWHOHBIRTHDATEAPPROX", - "value": "1", - "source": "household.FWHOHBIRTHDATEAPPROX" - }, - { - "name": "FWHOHGENDER", - "value": "male", - "source": "household.FWHOHGENDER" - }, - { - "name": "FWNHHMBRNUM", - "source": "household.FWNHHMBRNUM" - }, - { - "name": "FWNHHMWRA", - "source": "household.FWNHHMWRA" - }, - { - "name": "join_names", - "value": "shumi sumaita", - "source": "household.join_names" - }, - { - "name": "MWRA", - "source": "household.MWRA" - } - ], - "sub_forms": [ - { - "name": "elco_registration", - "bind_type": "elco", - "default_bind_path": "/model/instance/FWNewHH/woman", - "fields": [ - { - "name": "id", - "source": "elco.id" - }, - { - "name": "GOBHHID", - "source": "elco.GOBHHID" - }, - { - "name": "JiVitAHHID", - "source": "elco.JiVitAHHID" - }, - { - "name": "FWWOMFNAME", - "source": "elco.FWWOMFNAME" - }, - { - "name": "FWWOMLNAME", - "source": "elco.FWWOMLNAME" - }, - { - "name": "FWWOMNID", - "source": "elco.FWWOMNID" - }, - { - "name": "FWWOMBID", - "source": "elco.FWWOMBID" - }, - { - "name": "FWHUSNAME", - "source": "elco.FWHUSNAME" - }, - { - "name": "FWBIRTHDATE", - "source": "elco.FWBIRTHDATE" - }, - { - "name": "FWBIRTHDATEAPPROX", - "source": "elco.FWBIRTHDATEAPPROX" - }, - { - "name": "FWGENDER", - "source": "elco.FWGENDER" - }, - { - "name": "FWWOMAGE", - "source": "elco.FWWOMAGE" - }, - { - "name": "display_age", - "source": "elco.display_age" - }, - { - "name": "FWNHWOMSTRMEN", - "source": "elco.FWNHWOMSTRMEN" - }, - { - "name": "FWNHWOMHUSALV", - "source": "elco.FWNHWOMHUSALV" - }, - { - "name": "FWNHWOMHUSLIV", - "source": "elco.FWNHWOMHUSLIV" - }, - { - "name": "FWNHWOMHUSSTR", - "source": "elco.FWNHWOMHUSSTR" - }, - { - "name": "FWELIGIBLE", - "source": "elco.FWELIGIBLE" - } - ], - "instances": [ - { - "GOBHHID": "48374", - "JiVitAHHID": "78748", - "FWWOMFNAME": "tEST First", - "FWWOMLNAME": " lastname", - "FWWOMNID": "5478549854895", - "FWWOMBID": "43030293029323", - "FWHUSNAME": "husb", - "FWBIRTHDATE": "2000-05-07", - "FWBIRTHDATEAPPROX":"0", - "FWGENDER": "Female", - "FWWOMAGE": "21", - "display_age": "", - "FWNHWOMSTRMEN": "", - "FWNHWOMHUSALV": "", - "FWNHWOMHUSLIV": "", - "FWNHWOMHUSSTR": "", - "FWELIGIBLE": "", - "id": "babcd9d2-b3e9-4f6d-8a06-2df8f5fbf01f" - } - ] - } - ] - } - }, - "serverVersion": 1430998001293 -} \ No newline at end of file diff --git a/opensrp-form/src/test/resources/form/new_household_registration/form_submission8.json b/opensrp-form/src/test/resources/form/new_household_registration/form_submission8.json deleted file mode 100644 index 0c1850d4ed..0000000000 --- a/opensrp-form/src/test/resources/form/new_household_registration/form_submission8.json +++ /dev/null @@ -1,211 +0,0 @@ -{ - "_id": "251ca0ef09df9af88f0e9d5f180115a3", - "_rev": "1-e73e1d93acdcdaeb1d41a738da5d9284", - "type": "FormSubmission", - "anmId": "admin", - "instanceId": "88c0e824-10b4-44c2-9429-754b8d823776", - "formName": "new_household_registration", - "entityId": "a3f2abf4-2699-4761-819a-cea739224164", - "clientVersion": 1430997074596, - "formDataDefinitionVersion": "1", - "formInstance": { - "form_data_definition_version": "1", - "form": { - "bind_type": "household", - "default_bind_path": "/model/instance/FWNewHH", - "fields": [ - { - "name": "id", - "value": "a3f2abf4-2699-4761-819a-cea739224164", - "source": "household.id" - }, - { - "name": "existing_location", - "value": "KUPTALA", - "source": "household.existing_location" - }, - { - "name": "today", - "value": "2015-05-07", - "source": "household.today" - }, - { - "name": "start", - "value": "2015-05-07T17:07:21.000+06:00", - "source": "household.start" - }, - { - "name": "end", - "value": "2015-05-07T17:07:21.000+06:00", - "source": "household.end" - }, - { - "name": "FWNHREGDATE", - "value": "2015-05-07", - "source": "household.FWNHREGDATE" - }, - { - "name": "FWGOBHHID", - "value": "1234", - "source": "household.FWGOBHHID" - }, - { - "name": "FWJIVHHID", - "value": "1234", - "source": "household.FWJIVHHID" - }, - { - "name": "FWNHNEARTO", - "value": "nothing", - "source": "household.FWNHNEARTO" - }, - { - "name": "FWNHHHGPS", - "value": "34 34 0 0", - "source": "household.FWNHHHGPS" - }, - { - "name": "FWHOHFNAME", - "value": "test", - "source": "household.FWHOHFNAME" - }, - { - "name": "FWHOHLNAME", - "value": ".", - "source": "household.FWHOHLNAME" - }, - { - "name": "FWHOHBIRTHDATE", - "value": "1900-01-01", - "source": "household.FWHOHBIRTHDATE" - }, - { - "name": "FWHOHGENDER", - "value": "male", - "source": "household.FWHOHGENDER" - }, - { - "name": "FWNHHMBRNUM", - "source": "household.FWNHHMBRNUM" - }, - { - "name": "FWNHHMWRA", - "source": "household.FWNHHMWRA" - }, - { - "name": "join_names", - "value": "shumi sumaita", - "source": "household.join_names" - }, - { - "name": "MWRA", - "source": "household.MWRA" - } - ], - "sub_forms": [ - { - "name": "elco_registration", - "bind_type": "elco", - "default_bind_path": "/model/instance/FWNewHH/woman", - "fields": [ - { - "name": "id", - "source": "elco.id" - }, - { - "name": "GOBHHID", - "source": "elco.GOBHHID" - }, - { - "name": "JiVitAHHID", - "source": "elco.JiVitAHHID" - }, - { - "name": "FWWOMFNAME", - "source": "elco.FWWOMFNAME" - }, - { - "name": "FWWOMLNAME", - "source": "elco.FWWOMLNAME" - }, - { - "name": "FWWOMNID", - "source": "elco.FWWOMNID" - }, - { - "name": "FWWOMBID", - "source": "elco.FWWOMBID" - }, - { - "name": "FWHUSNAME", - "source": "elco.FWHUSNAME" - }, - { - "name": "FWBIRTHDATE", - "source": "elco.FWBIRTHDATE" - }, - { - "name": "FWBIRTHDATEAPPROX", - "source": "elco.FWBIRTHDATEAPPROX" - }, - { - "name": "FWGENDER", - "source": "elco.FWGENDER" - }, - { - "name": "FWWOMAGE", - "source": "elco.FWWOMAGE" - }, - { - "name": "display_age", - "source": "elco.display_age" - }, - { - "name": "FWNHWOMSTRMEN", - "source": "elco.FWNHWOMSTRMEN" - }, - { - "name": "FWNHWOMHUSALV", - "source": "elco.FWNHWOMHUSALV" - }, - { - "name": "FWNHWOMHUSLIV", - "source": "elco.FWNHWOMHUSLIV" - }, - { - "name": "FWNHWOMHUSSTR", - "source": "elco.FWNHWOMHUSSTR" - }, - { - "name": "FWELIGIBLE", - "source": "elco.FWELIGIBLE" - } - ], - "instances": [ - { - "GOBHHID": "48374", - "JiVitAHHID": "78748", - "FWWOMFNAME": "tEST First", - "FWWOMLNAME": " lastname", - "FWWOMNID": "", - "FWWOMBID": "", - "FWHUSNAME": "", - "FWBIRTHDATE": "2000-05-07", - "FWBIRTHDATEAPPROX":"", - "FWGENDER": "Female", - "FWWOMAGE": "", - "display_age": "", - "FWNHWOMSTRMEN": "", - "FWNHWOMHUSALV": "", - "FWNHWOMHUSLIV": "", - "FWNHWOMHUSSTR": "", - "FWELIGIBLE": "", - "id": "babcd9d2-b3e9-4f6d-8a06-2df8f5fbf01f" - } - ] - } - ] - } - }, - "serverVersion": 1430998001293 -} \ No newline at end of file diff --git a/opensrp-form/src/test/resources/form/new_household_registration/model.xml b/opensrp-form/src/test/resources/form/new_household_registration/model.xml deleted file mode 100644 index a0cabcad26..0000000000 --- a/opensrp-form/src/test/resources/form/new_household_registration/model.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/opensrp-form/src/test/resources/form/new_household_registration_with_grouped_subform_data/form.json b/opensrp-form/src/test/resources/form/new_household_registration_with_grouped_subform_data/form.json deleted file mode 100644 index 99dadab7ad..0000000000 --- a/opensrp-form/src/test/resources/form/new_household_registration_with_grouped_subform_data/form.json +++ /dev/null @@ -1,1100 +0,0 @@ -{ - "name": "FWNewHH", - "title": "নতুন খানা নিবন্ধন ফর্ম", - "sms_keyword": "FWNewHH", - "default_language": "Bengali", - "instance": { - "encounter_type": "New Household Registration" - }, - "version": "201510181114", - "id_string": "FWNewHH", - "type": "survey", - "children": [ - { - "type": "hidden", - "name": "version", - "label": { - "English": "TechVersion: v1.4 Aug 26, 2015\nFormVersion: v1.0" - } - }, - { - "type": "hidden", - "name": "changes", - "label": { - "English": "NN: \n1. Added a calculation field 'REGDATE' under 'woman' group\n2. Removed the conceptIDs which have Datatype N/A\n3. Define NID as person_attribute\nKZ: Dropped 9=DK from Vitsts choices\nCG: Added person_address mappings and NN added Variable Names for these address fields\nCG: Change NID back to person_identifier\nCG: Delete location_name field - need to communicate this change to Raihan - mauzapara name coming from existing_Mauzapara instead.\nCG: Added concept IDs for woman and husband unable to have children.\nKZ: 9/9\n1. Added photo capture of ID cards\n2. Added double entry of both IDs\n3. Added the which ID? screening question\n4. Changed the number of MWRAs in HH question to integer.\n5. Moved eligibility screening questions above ID questions, as in Census.\nCG: Updated address mappings so address5 is mapped to HHID\nCG: Added id_type to choices sheet.\n15/9\nKZ: Added Bangla to id_type choices, What type of ID and Re-Type National ID.\nKZ: Made FWWOMANYID field hidden until we come to a final decision on how to do this image capture.\nKZ: Removed leading zero from the '01' on the labels in HH Inhabitant number question.\nNN: Updated the constraint of 'How many member....' from \"regex(., '^(?!0{2})[0-9]{2}$')\" to \" .< 31 or .=99\"\nNN: Updated the 'relevant' logic of NID/BRID questions. added 'selected' logic\nKH: 16/9\n1. Added datatype / leading zeroes question as comment for FWNHHMBRNUM\n2. Changed constraint for FWNHHMBRNUM to exclude 0 as option\n3. Added \"Respondent Age\" concept UID to FWWOMAGE for data collection/analysis.\n4. Added \"Meets eligibility criteria for clinical trial or study\" concept UID to FWELIGIBLE to match FD form\nNN: 22/9\n1. Added entity:concept for FWELIGIBLE\n---\nKZ: 27/9\n1. Changed HHNUMB to text, still need to update the constraint to match with text.\nNN: 28/9\nUpdated the constraint of 'How many member....' from \".< 3 1 or .=99\" to \"regex(., '^(?!0{2})[0-9]{2}$')\"\nKZ (28/9):\n1. Change NUMMWRA to select one with yesno responses. Removed hints and constraints\n2. Updated hints and constraints for HH INhabitants to include leading zeros\nNN (8/10):\nAdd DoB, Gender questions before 'eligible' group\nMade FWNHHMBRNUM and FWNHHMWRA required field\nUpdated the constraing of 'how many member....' --> (regex(., '^(?!0{2})[0-9]{2}$') and .<31) or .=99\nUpdated the logic of Age (should not accept less than 12 years\nUpdated the hint/constraint message with english numeric input e.g 13 instead of ১৩\nCG (15/10):\nAdd ELCO count calculation; strike-through MWRA calculation\nNN (18/10): \nRemoved the Strikethrough fields.\nAdded two hidden variables for developers use- user_type and external_user_ID" - } - }, - { - "instance": { - "openmrs_entity_id": "location_id", - "openmrs_entity": "encounter" - }, - "type": "hidden", - "name": "existing_location" - }, - { - "type": "hidden", - "name": "existing_Country" - }, - { - "type": "hidden", - "name": "existing_Division" - }, - { - "type": "hidden", - "name": "existing_District" - }, - { - "type": "hidden", - "name": "existing_Upazilla" - }, - { - "type": "hidden", - "name": "existing_Union" - }, - { - "type": "hidden", - "name": "existing_Ward" - }, - { - "type": "hidden", - "name": "existing_Subunit" - }, - { - "type": "hidden", - "name": "existing_Mauzapara" - }, - { - "instance": { - "openmrs_entity_id": "encounter_date", - "openmrs_entity": "encounter" - }, - "type": "today", - "name": "today" - }, - { - "instance": { - "openmrs_entity_id": "encounter_start", - "openmrs_entity": "encounter" - }, - "type": "start", - "name": "start" - }, - { - "instance": { - "openmrs_entity_id": "encounter_end", - "openmrs_entity": "encounter" - }, - "type": "end", - "name": "end" - }, - { - "name": "FWNHREGDATE", - "hint": { - "Bengali": "আজকের তারিখ দিন", - "English": "Please enter today's date." - }, - "bind": { - "jr:constraintMsg": { - "Bengali": "আজকের তারিখের পরের কোন তারিখ\nহতে পারবে না", - "English": "Date cannot be greater than current date." - }, - "required": "yes", - "constraint": ".<=${today}" - }, - "label": { - "Bengali": "সাক্ষাৎকারের তারিখ", - "English": "Date of Interview" - }, - "instance": { - "openmrs_entity_id": "160753AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "date" - }, - { - "control": { - "appearance": "numbers" - }, - "name": "FWGOBHHID", - "hint": { - "Bengali": "কালো কালিতে লেখা সরকারী খানা নম্বর (HHID) যেভাবে ঘরের দেয়াল বা দরজায় দেওয়া আছে সেভাবেই ইনপুট দিন।\nসরকারী খানা নম্বর (HHID) পাওয়া না গেলে ৯৯৯৯ ইনপুট দিন", - "English": "Please input the Black – painted Government household ID (HHID) as displayed on the door/wall of the HH. If there is no Government HHID, enter 9999." - }, - "bind": { - "jr:constraintMsg": { - "Bengali": "অনুগ্রহ করে ০০০১ থেকে ৯৯৯৯ এর মধ্যে ৪ ডিজিটের GoB HHID টাইপ করুন", - "English": "Please enter 4 digits of GoB HHID from 0001 to 9999" - }, - "required": "yes", - "constraint": "regex(., '^(?!0{4})[0-9]{4}$')" - }, - "label": { - "Bengali": "GoB HHID", - "English": "GoB HHID" - }, - "instance": { - "openmrs_entity_id": "GoB_HHID", - "openmrs_entity": "person_attribute" - }, - "type": "text" - }, - { - "control": { - "appearance": "numbers" - }, - "name": "FWJIVHHID", - "hint": { - "Bengali": "লাল কালিতে দেয়া জীবিতা খানা নম্বর (HHID) যেভাবে দেয়ালে বা দরজায় দেওয়া আছে সেভাবেই ইনপুট দিন ।\nজীবিতা খানা নম্বর (HHID) পাওয়া না গেলে ৯৯৯৯ ইনপুট দিন", - "English": "Please input the RED – painted JiVitA / Study household ID (HHID) as displayed on the door/wall of the HH. Enter 9999 if JiVitA HHID is not found." - }, - "bind": { - "jr:constraintMsg": { - "Bengali": "অনুগ্রহ করে ০০০১ থেকে ৯৯৯৯ এর মধ্যে ৪ ডিজিটের JiVitA HHID টাইপ করুন", - "English": "Please enter 4 digits of JiVitA HHID from 0001 to 9999" - }, - "required": "yes", - "constraint": "regex(., '^(?!0{4})[0-9]{4}$')" - }, - "label": { - "Bengali": "JiVitA HHID", - "English": "JiVitA HHID" - }, - "instance": { - "openmrs_entity_id": "JiVitA_HHID", - "openmrs_entity": "person_attribute" - }, - "type": "text" - }, - { - "bind": { - "calculate": "${existing_Country}" - }, - "type": "calculate", - "name": "FWCOUNTRY", - "instance": { - "openmrs_entity": "person_address", - "openmrs_entity_id": "country", - "openmrs_entity_parent": "usual_residence" - } - }, - { - "bind": { - "calculate": "${existing_Division}" - }, - "type": "calculate", - "name": "FWDIVISION", - "instance": { - "openmrs_entity": "person_address", - "openmrs_entity_id": "stateProvince", - "openmrs_entity_parent": "usual_residence" - } - }, - { - "bind": { - "calculate": "${existing_District}" - }, - "type": "calculate", - "name": "FWDISTRICT", - "instance": { - "openmrs_entity": "person_address", - "openmrs_entity_id": "countyDistrict", - "openmrs_entity_parent": "usual_residence" - } - }, - { - "bind": { - "calculate": "${existing_Upazilla}" - }, - "type": "calculate", - "name": "FWUPAZILLA", - "instance": { - "openmrs_entity": "person_address", - "openmrs_entity_id": "cityVillage", - "openmrs_entity_parent": "usual_residence" - } - }, - { - "bind": { - "calculate": "${existing_Union}" - }, - "type": "calculate", - "name": "FWUNION", - "instance": { - "openmrs_entity": "person_address", - "openmrs_entity_id": "address1", - "openmrs_entity_parent": "usual_residence" - } - }, - { - "bind": { - "calculate": "${existing_Ward}" - }, - "type": "calculate", - "name": "FWWARD", - "instance": { - "openmrs_entity": "person_address", - "openmrs_entity_id": "address2", - "openmrs_entity_parent": "usual_residence" - } - }, - { - "bind": { - "calculate": "${existing_Subunit}" - }, - "type": "calculate", - "name": "FWSUBUNIT", - "instance": { - "openmrs_entity": "person_address", - "openmrs_entity_id": "address3", - "openmrs_entity_parent": "usual_residence" - } - }, - { - "bind": { - "calculate": "${existing_Mauzapara}" - }, - "type": "calculate", - "name": "FWMAUZA_PARA", - "instance": { - "openmrs_entity": "person_address", - "openmrs_entity_id": "address4", - "openmrs_entity_parent": "usual_residence" - } - }, - { - "bind": { - "calculate": "${FWGOBHHID}" - }, - "type": "calculate", - "name": "FWGOB_HHID", - "instance": { - "openmrs_entity": "person_address", - "openmrs_entity_id": "address5", - "openmrs_entity_parent": "usual_residence" - } - }, - { - "bind": { - "required": "yes" - }, - "type": "geopoint", - "instance": { - "openmrs_entity": "person_address", - "openmrs_entity_id": "geopoint", - "openmrs_entity_parent": "usual_residence" - }, - "name": "FWNHHHGPS", - "label": { - "Bengali": "জি পি এস", - "English": "Collect GPS Location of HH" - } - }, - { - "bind": { - "required": "yes" - }, - "type": "text", - "instance": { - "openmrs_entity_id": "first_name", - "openmrs_entity": "person" - }, - "name": "FWHOHFNAME", - "label": { - "Bengali": "খানা প্রধানের নাম-", - "English": "Head of Household Name" - } - }, - { - "bind": { - "calculate": "\".\"" - }, - "type": "calculate", - "name": "FWHOHLNAME", - "instance": { - "openmrs_entity_id": "last_name", - "openmrs_entity": "person" - } - }, - { - "bind": { - "calculate": "\"1900-01-01\"" - }, - "type": "calculate", - "name": "FWHOHBIRTHDATE", - "instance": { - "openmrs_entity_id": "birthdate", - "openmrs_entity": "person" - } - }, - { - "name": "FWHOHGENDER", - "bind": { - "required": "yes" - }, - "label": { - "Bengali": "খানা প্রধানের লিঙ্গ", - "English": "Head of Household Gender" - }, - "instance": { - "openmrs_entity_id": "gender", - "openmrs_entity": "person" - }, - "type": "select one", - "children": [ - { - "name": "1", - "label": { - "Bengali": "ছেলে", - "English": "Male" - } - }, - { - "name": "2", - "label": { - "Bengali": "মেয়ে", - "English": "Female" - } - } - ] - }, - { - "control": { - "appearance": "numbers" - }, - "name": "FWNHHMBRNUM", - "hint": { - "Bengali": "খানার সদস্য সংখ্যা লিখতে 01-29 লিখুন । 30 বা তার বেশী হলে 30 লিখুন। খানার সদস্যের সংখ্যা জানা না থাকলে 99 লিখুন ।", - "English": "Enter 01-29 for the number of household members. Enter 30 if 30 or more. Enter 99 if the total number is unknown." - }, - "bind": { - "jr:constraintMsg": { - "Bengali": "খানার সদস্য সংখ্যাকে দুই ডিজিট হিসেবে এন্ট্রি করতে হবে। খানার সদস্য সংখ্যা লিখতে 01- 29 লিখুন । খানার সদস্যের সংখ্যা 30 বা তার বেশি হলে 30 লিখুন। খানার সদস্যের সংখ্যা জানা না থাকলে 99 লিখুন ।", - "English": "Number should be entered as two digits. Enter 01-29 for the number of household members. Enter 30 if there are 30 or more household members. Enter 99 if the total number is unknown." - }, - "required": "yes", - "constraint": "(regex(., '^(?!0{2})[0-9]{2}$') and .<31) or .=99" - }, - "label": { - "Bengali": "এই খানায় বর্তমানে কতজন মানুষ বসবাস করছে?", - "English": "How many people are currently living in this household?" - }, - "instance": { - "openmrs_entity_id": "5611AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "text" - }, - { - "name": "FWNHHMWRA", - "bind": { - "required": "yes" - }, - "label": { - "Bengali": "এই খানায় কি ১৫ থেকে ৪৯ বছর বয়সের কোন বিবাহিত মহিলা আছেন?", - "English": "Are there any married women between the ages of 15 - 49 live in this household?" - }, - "instance": { - "openmrs_entity_id": "1901AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "select one", - "children": [ - { - "instance": { - "openmrs_code": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "0", - "label": { - "Bengali": "না", - "English": "No" - } - }, - { - "instance": { - "openmrs_code": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "1", - "label": { - "Bengali": "হ্যাঁ", - "English": "Yes" - } - }, - { - "instance": { - "openmrs_code": "1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "9", - "label": { - "Bengali": "জানি না", - "English": "Don't know" - } - } - ] - }, - { - "name": "woman", - "hint": { - "Bengali": "আমরা এখন মহিলাকে নিবন্ধন করব। তাকে জাতীয় পরিচয়পত্র এবং জন্ম নিবন্ধন সনদপত্র নিয়ে আসতে অনুরোধ করুন।", - "English": "We will now register the woman. Please ask her to bring her National ID Card and Birth Certificate." - }, - "bind": { - "relevant": "${FWNHHMWRA}='1'" - }, - "label": { - "Bengali": "মহিলার তথ্যঃ", - "English": "New Woman Registration" - }, - "instance": { - "openmrs_entity_id": "New Woman Registration", - "openmrs_entity": "person" - }, - "type": "repeat", - "children": [ - { - "bind": { - "calculate": "${FWGOBHHID}" - }, - "type": "calculate", - "name": "GOBHHID", - "instance": { - "openmrs_entity_id": "GoB_HHID", - "openmrs_entity": "person_attribute" - } - }, - { - "bind": { - "calculate": "${FWJIVHHID}" - }, - "type": "calculate", - "name": "JiVitAHHID", - "instance": { - "openmrs_entity_id": "JiVitA_HHID", - "openmrs_entity": "person_attribute" - } - }, - { - "bind": { - "calculate": "${FWNHREGDATE}" - }, - "type": "calculate", - "name": "REGDATE" - }, - { - "name": "FWWOMFNAME", - "hint": { - "Bengali": "মহিলার নাম টাইপ করুন", - "English": "Please type woman's name" - }, - "bind": { - "required": "yes" - }, - "label": { - "Bengali": "মহিলার নাম-", - "English": "Woman Name" - }, - "instance": { - "openmrs_entity_id": "first_name", - "openmrs_entity": "person" - }, - "type": "text" - }, - { - "bind": { - "calculate": "\".\"" - }, - "type": "calculate", - "name": "FWWOMLNAME", - "instance": { - "openmrs_entity_id": "last_name", - "openmrs_entity": "person" - } - }, - { - "name": "FWBIRTHDATE", - "hint": { - "Bengali": "“যদি জন্মনিবন্ধন সনদপত্র থাকে তাহলে জন্মতারিখ সেখান থেকেই সংগ্রহ করুন। যদি জন্মতারিখ বলতে না পারে তাহলে মাসের ১৫ তারিখকে জন্মতারিখ হিসেবে বেছে নিন। যদি জন্মমাস বলতে না পারে তাহলে ৬ বা জুনকে মাস হিসেবে বেছে নিন এবং মহিলা যে বছরটিতে তার জন্ম বলবে সেটি এন্ট্রি করুন।”", - "English": "If birth certificate is available take date of birth from birth certificate. If date of birth is unknown choose 15 as the date of birth, if month is unknown choose 06 (June) as month of birth and enter the year of birth as mentioned by the woman." - }, - "default": "2000-01-02 00:00:00", - "bind": { - "jr:constraintMsg": { - "Bengali": "মহিলার বয়স অবশ্যই ১২ বছরের বেশী হবে", - "English": "Woman must be older than 12 years of age" - }, - "required": "yes", - "constraint": "((${FWBIRTHDATE})+4380) <= today()" - }, - "label": { - "Bengali": "মহিলার জন্ম তারিখ", - "English": "Woman's Date of Birth" - }, - "instance": { - "openmrs_entity_id": "birthdate", - "openmrs_entity": "person" - }, - "type": "date" - }, - { - "bind": { - "calculate": "\"female\"" - }, - "type": "calculate", - "name": "FWGENDER", - "instance": { - "openmrs_entity_id": "gender", - "openmrs_entity": "person" - } - }, - { - "bind": { - "calculate": "round(((${today} - ${FWBIRTHDATE}) div 365.25),0)" - }, - "type": "calculate", - "name": "FWWOMAGE", - "instance": { - "openmrs_entity_id": "1532AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - } - }, - { - "type": "note", - "name": "display_age", - "label": { - "Bengali": "মহিলার বয়স ${FWWOMAGE}", - "English": "The woman's age is ${FWWOMAGE}." - } - }, - { - "control": { - "appearance": "yes" - }, - "name": "FWNHWOMSTRMEN", - "label": { - "Bengali": "আপনার কি বর্তমানে মাসিক একেবারে উঠে গেছে বা আপনি কি বর্তমানে স্থায়ী জন্মনিয়ন্ত্রন পদ্ধতি গ্রহণ করেছেন?", - "English": "Are you currently menopausal or sterilized?" - }, - "instance": { - "openmrs_entity_id": "163006AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "select one", - "children": [ - { - "instance": { - "openmrs_code": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "0", - "label": { - "Bengali": "না", - "English": "No" - } - }, - { - "instance": { - "openmrs_code": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "1", - "label": { - "Bengali": "হ্যাঁ", - "English": "Yes" - } - }, - { - "instance": { - "openmrs_code": "1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "9", - "label": { - "Bengali": "জানি না", - "English": "Don't know" - } - } - ] - }, - { - "control": { - "appearance": "yes" - }, - "name": "FWNHWOMHUSLIV", - "bind": { - "relevant": "selected(${FWNHWOMSTRMEN}, '0') or selected(${FWNHWOMSTRMEN}, '9')" - }, - "label": { - "Bengali": "আপনি কি বর্তমানে আপনার স্বামীর সাথে বসবাস করছেন?", - "English": "Are you currently living with your husband?" - }, - "instance": { - "openmrs_entity_id": "162994AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "select one", - "children": [ - { - "instance": { - "openmrs_code": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "0", - "label": { - "Bengali": "না", - "English": "No" - } - }, - { - "instance": { - "openmrs_code": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "1", - "label": { - "Bengali": "হ্যাঁ", - "English": "Yes" - } - }, - { - "instance": { - "openmrs_code": "1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "9", - "label": { - "Bengali": "জানি না", - "English": "Don't know" - } - } - ] - }, - { - "control": { - "appearance": "yes" - }, - "name": "FWNHWOMHUSALV", - "bind": { - "relevant": "selected(${FWNHWOMHUSLIV}, '0') or selected(${FWNHWOMHUSLIV}, '9')" - }, - "label": { - "Bengali": "আপনার স্বামী কি জীবিত আছেন?", - "English": "Is the husband alive?" - }, - "instance": { - "openmrs_entity_id": "5561AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "select one", - "children": [ - { - "instance": { - "openmrs_code": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "0", - "label": { - "Bengali": "না", - "English": "No" - } - }, - { - "instance": { - "openmrs_code": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "1", - "label": { - "Bengali": "হ্যাঁ", - "English": "Yes" - } - } - ] - }, - { - "control": { - "appearance": "yes" - }, - "name": "FWNHWOMHUSSTR", - "bind": { - "relevant": "selected(${FWNHWOMHUSLIV}, '1') or (selected(${FWNHWOMHUSLIV}, '9') and selected(${FWNHWOMHUSALV}, '1'))" - }, - "label": { - "Bengali": "আপনার স্বামী কি স্থায়ী জন্মনিয়ন্ত্রন পদ্ধতি গ্রহণ করেছেন?", - "English": "Is the husband sterilized?" - }, - "instance": { - "openmrs_entity_id": "162959AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "select one", - "children": [ - { - "instance": { - "openmrs_code": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "0", - "label": { - "Bengali": "না", - "English": "No" - } - }, - { - "instance": { - "openmrs_code": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "1", - "label": { - "Bengali": "হ্যাঁ", - "English": "Yes" - } - }, - { - "instance": { - "openmrs_code": "1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "9", - "label": { - "Bengali": "জানি না", - "English": "Don't know" - } - } - ] - }, - { - "bind": { - "calculate": "if(${FWNHWOMSTRMEN}='0' and ${FWNHWOMHUSLIV}='1' and ${FWNHWOMHUSSTR}='0','1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA','1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')" - }, - "type": "calculate", - "name": "FWELIGIBLE", - "instance": { - "openmrs_entity_id": "162699AAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - } - }, - { - "bind": { - "relevant": "${FWELIGIBLE}='1'" - }, - "type": "group", - "children": [ - { - "name": "FWWOMANYID", - "hint": { - "Bengali": "প্রযোজ্য সবগুলো উত্তর নির্বাচন করুন", - "English": "Select all that apply." - }, - "label": { - "Bengali": "নিচের কোন পরিচয় পত্রটি মহিলার কাছে আছে?", - "English": "Which of the following IDs does the woman have?" - }, - "instance": { - "openmrs_entity_id": "163087AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "select all that apply", - "children": [ - { - "instance": { - "openmrs_code": "163084AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "1", - "label": { - "Bengali": "জাতীয় পরিচয়পত্র নম্বর", - "English": "National ID Number" - } - }, - { - "instance": { - "openmrs_code": "163083AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "2", - "label": { - "Bengali": "জন্ম নিবন্ধন সনদপত্র নম্বর", - "English": "Birth Registration ID Number" - } - } - ] - }, - { - "control": { - "appearance": "numbers" - }, - "name": "FWWOMNID", - "hint": { - "Bengali": "জাতীয় পরিচয়পত্রে দেওয়া সরকারী নম্বর যেভাবে দেওয়া আছে সেভাবেই প্রবেশ করান", - "English": "Please input the Government ID as displayed on the national ID card" - }, - "bind": { - "relevant": "selected(${FWWOMANYID},'1')", - "jr:constraintMsg": { - "Bengali": "জাতীয় পরিচয়পত্র নং ১৩ অথবা ১৭ ডিজিটের হবে", - "English": "National ID should be 13 or 17 digits" - }, - "required": "yes", - "constraint": "regex(., '^(?!0{13})[0-9]{13}$') or regex(., '^(?!0{17})[0-9]{17}$')" - }, - "label": { - "Bengali": "মহিলার জাতীয় পরিচয়পত্র নং-", - "English": "Woman's National ID Number" - }, - "type": "text" - }, - { - "control": { - "appearance": "numbers" - }, - "name": "FWWOMRETYPENID", - "hint": { - "Bengali": "জাতীয় পরিচয়পত্রের নম্বরটি পুনরায় প্রবেশ করান", - "English": "Please re-input the National ID number" - }, - "bind": { - "relevant": "selected(${FWWOMANYID},'1')", - "jr:constraintMsg": { - "Bengali": "এই নম্বরটি ও পূর্বের স্ক্রিনে দেওয়া জন্ম নিবন্ধন নম্বরটি একই হতে হবে", - "English": "This number and the one in the previous screen should be same" - }, - "required": "yes", - "constraint": ".=${FWWOMNID}" - }, - "label": { - "Bengali": "মহিলার জাতীয় পরিচয়পত্র নম্বরটি পুনরায় লিখুন", - "English": "Re-Type Woman's National ID Number" - }, - "instance": { - "openmrs_entity_id": "NID", - "openmrs_entity": "person_identifier" - }, - "type": "text" - }, - { - "control": { - "appearance": "numbers" - }, - "name": "FWWOMBID", - "hint": { - "Bengali": "জন্ম নিবন্ধন সনদপত্রের সরকারী নম্বর যেভাবে দেওয়া আছে সেভাবেই ইনপুট দিন।", - "English": "Please input the Government ID as displayed on the birth certificate" - }, - "bind": { - "relevant": "selected(${FWWOMANYID},'2')", - "jr:constraintMsg": { - "Bengali": "জন্ম নিবন্ধন সনদ নং ১৭ ডিজিটের হবে", - "English": "Birth Registration ID should be 17 digits" - }, - "required": "yes", - "constraint": "regex(., '^(?!0{17})[0-9]{17}$')" - }, - "label": { - "Bengali": "মহিলার জন্ম নিবন্ধন সনদ নং-", - "English": "Woman's Birth Registration ID" - }, - "type": "text" - }, - { - "control": { - "appearance": "numbers" - }, - "name": "FWWOMRETYPEBID", - "hint": { - "Bengali": "জন্ম নিবন্ধন নম্বরটি পূনরায় প্রবেশ করান", - "English": "Please re-input the Birth Registration Number" - }, - "bind": { - "relevant": "selected(${FWWOMANYID},'2')", - "jr:constraintMsg": { - "Bengali": "এই নম্বরটি ও পূর্বের স্ক্রিনে দেওয়া জন্ম নিবন্ধন নম্বরটি একই হতে হবে", - "English": "This number and the one in the previous screen should be same" - }, - "required": "yes", - "constraint": ".=${FWWOMBID}" - }, - "label": { - "Bengali": "মহিলার জন্ম নিবন্ধন সনদ নং-", - "English": "Woman's Birth Registration ID" - }, - "instance": { - "openmrs_entity_id": "Birth Registration ID", - "openmrs_entity": "person_identifier" - }, - "type": "text" - }, - { - "name": "FWHUSNAME", - "hint": { - "Bengali": "স্বামীর নাম টাইপ করুন", - "English": "Please type husband's name" - }, - "bind": { - "required": "yes" - }, - "label": { - "Bengali": "স্বামীর নাম-", - "English": "Husband's Name" - }, - "instance": { - "openmrs_entity_id": "161135AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "text" - }, - { - "bind": { - "calculate": "${existing_Country}" - }, - "type": "calculate", - "name": "FWWOMCOUNTRY", - "instance": { - "openmrs_entity": "person_address", - "openmrs_entity_id": "country", - "openmrs_entity_parent": "usual_residence" - } - }, - { - "bind": { - "calculate": "${existing_Division}" - }, - "type": "calculate", - "name": "FWWOMDIVISION", - "instance": { - "openmrs_entity": "person_address", - "openmrs_entity_id": "stateProvince", - "openmrs_entity_parent": "usual_residence" - } - }, - { - "bind": { - "calculate": "${existing_District}" - }, - "type": "calculate", - "name": "FWWOMDISTRICT", - "instance": { - "openmrs_entity": "person_address", - "openmrs_entity_id": "countyDistrict", - "openmrs_entity_parent": "usual_residence" - } - }, - { - "bind": { - "calculate": "${existing_Upazilla}" - }, - "type": "calculate", - "name": "FWWOMUPAZILLA", - "instance": { - "openmrs_entity": "person_address", - "openmrs_entity_id": "cityVillage", - "openmrs_entity_parent": "usual_residence" - } - }, - { - "bind": { - "calculate": "${existing_Union}" - }, - "type": "calculate", - "name": "FWWOMUNION", - "instance": { - "openmrs_entity": "person_address", - "openmrs_entity_id": "address1", - "openmrs_entity_parent": "usual_residence" - } - }, - { - "bind": { - "calculate": "${existing_Ward}" - }, - "type": "calculate", - "name": "FWWOMWARD", - "instance": { - "openmrs_entity": "person_address", - "openmrs_entity_id": "address2", - "openmrs_entity_parent": "usual_residence" - } - }, - { - "bind": { - "calculate": "${existing_Subunit}" - }, - "type": "calculate", - "name": "FWWOMSUBUNIT", - "instance": { - "openmrs_entity": "person_address", - "openmrs_entity_id": "address3", - "openmrs_entity_parent": "usual_residence" - } - }, - { - "bind": { - "calculate": "${existing_Mauzapara}" - }, - "type": "calculate", - "name": "FWWOMMAUZA_PARA", - "instance": { - "openmrs_entity": "person_address", - "openmrs_entity_id": "address4", - "openmrs_entity_parent": "usual_residence" - } - }, - { - "bind": { - "calculate": "${FWGOBHHID}" - }, - "type": "calculate", - "name": "FWWOMGOBHHID", - "instance": { - "openmrs_entity": "person_address", - "openmrs_entity_id": "address5", - "openmrs_entity_parent": "usual_residence" - } - }, - { - "bind": { - "calculate": "${FWNHHHGPS}" - }, - "type": "calculate", - "name": "FWWOMGPS", - "instance": { - "openmrs_entity": "person_address", - "openmrs_entity_id": "geopoint", - "openmrs_entity_parent": "usual_residence" - } - } - ], - "name": "eligible" - }, - { - "type": "note", - "name": "add_women", - "label": { - "Bengali": "নির্দেশনাঃ এই খানায় যদি আরও কোন মহিলা থাকে যাকে রেজিস্ট্রেশন করা হয়নি, তাহলে '+' এ ক্লিক করুন এবং একই প্রক্রিয়ায় পরবর্তী মহিলাকে রেজিস্ট্রেশন করুন", - "English": "If there are any additional unregistered women in this household, select the '+' to add them now." - } - } - ] - }, - { - "bind": { - "calculate": "sum(${FWELIGIBLE})" - }, - "type": "calculate", - "name": "ELCO" - }, - { - "default": "FWA", - "type": "hidden", - "name": "user_type" - }, - { - "type": "hidden", - "name": "external_user_ID" - }, - { - "control": { - "bodyless": true - }, - "type": "group", - "children": [ - { - "bind": { - "readonly": "true()", - "calculate": "concat('uuid:', uuid())" - }, - "type": "calculate", - "name": "instanceID" - } - ], - "name": "meta" - } - ] -} \ No newline at end of file diff --git a/opensrp-form/src/test/resources/form/new_household_registration_with_grouped_subform_data/form.xml b/opensrp-form/src/test/resources/form/new_household_registration_with_grouped_subform_data/form.xml deleted file mode 100644 index bda24f905a..0000000000 --- a/opensrp-form/src/test/resources/form/new_household_registration_with_grouped_subform_data/form.xml +++ /dev/null @@ -1,31 +0,0 @@ - -
-

নতুন খানা নিবন্ধন ফর্ম

- - - - - - - -
খানা প্রধানের লিঙ্গHead of Household Gender* -
- -
এই খানায় কি ১৫ থেকে ৪৯ বছর বয়সের কোন বিবাহিত মহিলা আছেন?Are there any married women between the ages of 15 - 49 live in this household?* -
-

মহিলার তথ্যঃNew Woman Registration

আপনার কি বর্তমানে মাসিক একেবারে উঠে গেছে বা আপনি কি বর্তমানে স্থায়ী জন্মনিয়ন্ত্রন পদ্ধতি গ্রহণ করেছেন?Are you currently menopausal or sterilized? -
আপনি কি বর্তমানে আপনার স্বামীর সাথে বসবাস করছেন?Are you currently living with your husband? -
আপনার স্বামী কি জীবিত আছেন?Is the husband alive? -
আপনার স্বামী কি স্থায়ী জন্মনিয়ন্ত্রন পদ্ধতি গ্রহণ করেছেন?Is the husband sterilized? -
নিচের কোন পরিচয় পত্রটি মহিলার কাছে আছে?Which of the following IDs does the woman have?প্রযোজ্য সবগুলো উত্তর নির্বাচন করুনSelect all that apply. -
-
-
-
- -
XML to HTML transformation for form took 0.05 secondsThis validation is yet not functional.
diff --git a/opensrp-form/src/test/resources/form/new_household_registration_with_grouped_subform_data/form_definition.json b/opensrp-form/src/test/resources/form/new_household_registration_with_grouped_subform_data/form_definition.json deleted file mode 100644 index 916bdf7aa8..0000000000 --- a/opensrp-form/src/test/resources/form/new_household_registration_with_grouped_subform_data/form_definition.json +++ /dev/null @@ -1,290 +0,0 @@ -{ - "form_data_definition_version": "13", - "form": { - "default_bind_path": "/model/instance/FWNewHH", - "bind_type": "household", - "fields": [ - { - "name": "id", - "shouldLoadValue": true - }, - { - "name": "location_name", - "bind": "/model/instance/FWNewHH/existing_Mauzapara" - }, - { - "name": "existing_location", - "bind": "/model/instance/FWNewHH/existing_location" - }, - { - "name": "existing_Country", - "bind": "/model/instance/FWNewHH/existing_Country" - }, - { - "name": "existing_Division", - "bind": "/model/instance/FWNewHH/existing_Division" - }, - { - "name": "existing_District", - "bind": "/model/instance/FWNewHH/existing_District" - }, - { - "name": "existing_Upazilla", - "bind": "/model/instance/FWNewHH/existing_Upazilla" - }, - { - "name": "existing_Union", - "bind": "/model/instance/FWNewHH/existing_Union" - }, - { - "name": "existing_Ward", - "bind": "/model/instance/FWNewHH/existing_Ward" - }, - { - "name": "existing_Subunit", - "bind": "/model/instance/FWNewHH/existing_Subunit" - }, - { - "name": "existing_Mauzapara", - "bind": "/model/instance/FWNewHH/existing_Mauzapara" - }, - { - "name": "today", - "bind": "/model/instance/FWNewHH/today" - }, - { - "name": "start", - "bind": "/model/instance/FWNewHH/start" - }, - { - "name": "end", - "bind": "/model/instance/FWNewHH/end" - }, - { - "name": "FWNHREGDATE", - "bind": "/model/instance/FWNewHH/FWNHREGDATE" - }, - { - "name": "FWGOBHHID", - "bind": "/model/instance/FWNewHH/FWGOBHHID" - }, - { - "name": "FWJIVHHID", - "bind": "/model/instance/FWNewHH/FWJIVHHID" - }, - { - "name": "FWCOUNTRY", - "bind": "/model/instance/FWNewHH/FWCOUNTRY" - }, - { - "name": "FWDIVISION", - "bind": "/model/instance/FWNewHH/FWDIVISION" - }, - { - "name": "FWDISTRICT", - "bind": "/model/instance/FWNewHH/FWDISTRICT" - }, - { - "name": "FWUPAZILLA", - "bind": "/model/instance/FWNewHH/FWUPAZILLA" - }, - { - "name": "FWUNION", - "bind": "/model/instance/FWNewHH/FWUNION" - }, - { - "name": "FWWARD", - "bind": "/model/instance/FWNewHH/FWWARD" - }, - { - "name": "FWSUBUNIT", - "bind": "/model/instance/FWNewHH/FWSUBUNIT" - }, - { - "name": "FWMAUZA_PARA", - "bind": "/model/instance/FWNewHH/FWMAUZA_PARA" - }, - { - "name": "FWNHHHGPS", - "bind": "/model/instance/FWNewHH/FWNHHHGPS" - }, - { - "name": "FWHOHFNAME", - "bind": "/model/instance/FWNewHH/FWHOHFNAME" - }, - { - "name": "FWHOHLNAME", - "bind": "/model/instance/FWNewHH/FWHOHLNAME" - }, - { - "name": "FWHOHBIRTHDATE", - "bind": "/model/instance/FWNewHH/FWHOHBIRTHDATE" - }, - { - "name": "FWHOHGENDER", - "bind": "/model/instance/FWNewHH/FWHOHGENDER" - }, - { - "name": "FWNHHMBRNUM", - "bind": "/model/instance/FWNewHH/FWNHHMBRNUM" - }, - { - "name": "FWNHHMWRA", - "bind": "/model/instance/FWNewHH/FWNHHMWRA" - }, - { - "name": "join_names", - "bind": "/model/instance/FWNewHH/join_names" - }, - { - "name": "ELCO", - "bind": "/model/instance/FWNewHH/ELCO" - }, - { - "name": "user_type", - "bind": "/model/instance/FWNewHH/user_type" - }, - { - "name": "external_user_ID", - "bind": "/model/instance/FWNewHH/external_user_ID" - } - ], - "sub_forms": [ - { - "name": "elco_registration", - "bind_type": "elco", - "default_bind_path": "/model/instance/FWNewHH/woman", - "fields": [ - { - "name": "id", - "shouldLoadValue": true - }, - { - "name": "relationalid", - "shouldLoadValue": true - }, - { - "name": "WomanREGDATE", - "bind": "/model/instance/FWNewHH/woman/REGDATE" - }, - { - "name": "GOBHHID", - "bind": "/model/instance/FWNewHH/woman/GOBHHID" - }, - { - "name": "JiVitAHHID", - "bind": "/model/instance/FWNewHH/woman/JiVitAHHID" - }, - { - "name": "FWWOMFNAME", - "bind": "/model/instance/FWNewHH/woman/FWWOMFNAME" - }, - { - "name": "FWWOMLNAME", - "bind": "/model/instance/FWNewHH/woman/FWWOMLNAME" - }, - { - "name": "FWBIRTHDATE", - "bind": "/model/instance/FWNewHH/woman/FWBIRTHDATE" - }, - { - "name": "FWGENDER", - "bind": "/model/instance/FWNewHH/woman/FWGENDER" - }, - { - "name": "FWWOMAGE", - "bind": "/model/instance/FWNewHH/woman/FWWOMAGE" - }, - { - "name": "display_age", - "bind": "/model/instance/FWNewHH/woman/display_age" - }, - { - "name": "FWNHWOMSTRMEN", - "bind": "/model/instance/FWNewHH/woman/FWNHWOMSTRMEN" - }, - { - "name": "FWNHWOMHUSALV", - "bind": "/model/instance/FWNewHH/woman/FWNHWOMHUSALV" - }, - { - "name": "FWNHWOMHUSLIV", - "bind": "/model/instance/FWNewHH/woman/FWNHWOMHUSLIV" - }, - { - "name": "FWNHWOMHUSSTR", - "bind": "/model/instance/FWNewHH/woman/FWNHWOMHUSSTR" - }, - { - "name": "FWELIGIBLE", - "bind": "/model/instance/FWNewHH/woman/FWELIGIBLE" - }, - { - "name": "FWWOMANYID", - "bind": "/model/instance/FWNewHH/woman/eligible/FWWOMANYID" - }, - { - "name": "FWWOMNID", - "bind": "/model/instance/FWNewHH/woman/eligible/FWWOMNID" - }, - { - "name": "FWWOMRETYPENID", - "bind": "/model/instance/FWNewHH/woman/eligible/FWWOMRETYPENID" - }, - { - "name": "FWWOMBID", - "bind": "/model/instance/FWNewHH/woman/eligible/FWWOMBID" - }, - { - "name": "FWWOMRETYPEBID", - "bind": "/model/instance/FWNewHH/woman/eligible/FWWOMRETYPEBID" - }, - { - "name": "FWHUSNAME", - "bind": "/model/instance/FWNewHH/woman/eligible/FWHUSNAME" - }, - { - "name": "FWWOMCOUNTRY", - "bind": "/model/instance/FWNewHH/woman/eligible/FWWOMCOUNTRY" - }, - { - "name": "FWWOMDIVISION", - "bind": "/model/instance/FWNewHH/woman/eligible/FWWOMDIVISION" - }, - { - "name": "FWWOMDISTRICT", - "bind": "/model/instance/FWNewHH/woman/eligible/FWWOMDISTRICT" - }, - { - "name": "FWWOMUPAZILLA", - "bind": "/model/instance/FWNewHH/woman/eligible/FWWOMUPAZILLA" - }, - { - "name": "FWWOMUNION", - "bind": "/model/instance/FWNewHH/woman/eligible/FWWOMUNION" - }, - { - "name": "FWWOMWARD", - "bind": "/model/instance/FWNewHH/woman/eligible/FWWOMWARD" - }, - { - "name": "FWWOMSUBUNIT", - "bind": "/model/instance/FWNewHH/woman/eligible/FWWOMSUBUNIT" - }, - { - "name": "FWWOMMAUZA_PARA", - "bind": "/model/instance/FWNewHH/woman/eligible/FWWOMMAUZA_PARA" - }, - { - "name": "FWWOMGOBHHID", - "bind": "/model/instance/FWNewHH/woman/eligible/FWWOMGOBHHID" - }, - { - "name": "FWWOMGPS", - "bind": "/model/instance/FWNewHH/woman/eligible/FWWOMGPS" - } - ] - } - ] - } -} \ No newline at end of file diff --git a/opensrp-form/src/test/resources/form/new_household_registration_with_grouped_subform_data/form_submission1.json b/opensrp-form/src/test/resources/form/new_household_registration_with_grouped_subform_data/form_submission1.json deleted file mode 100644 index 75775ca8cd..0000000000 --- a/opensrp-form/src/test/resources/form/new_household_registration_with_grouped_subform_data/form_submission1.json +++ /dev/null @@ -1,363 +0,0 @@ -{ - "id": "5ec11f03071ef0929839079530028992", - "_rev": "2-ddf675dd499e017538671b94843aeefc", - "type": "FormSubmission", - "anmId": "opensrp", - "instanceId": "d304dbr7-3998-434f-8c5b-55d6f5fa4252", - "formName": "new_household_registration_with_grouped_subform_data", - "entityId": "4237d267-d438-49f2-7822-8968t555447c", - "clientVersion": 1444562091545, - "formDataDefinitionVersion": "12", - "formInstance": { - "form_data_definition_version": "12", - "form": { - "bind_type": "household", - "default_bind_path": "/model/instance/FWNewHH", - "fields": [ - { - "name": "id", - "value": "4237d267-d438-49f2-7822-8968t555447c", - "source": "household.id" - }, - { - "name": "location_name", - "value": "DASLIA-_ALL_PARAS", - "source": "household.location_name" - }, - { - "name": "existing_location", - "value": "2fc43738-ace5-g961-8e8f-ab7dg0e5bc63", - "source": "household.existing_location" - }, - { - "name": "existing_Country", - "value": "Bangladesh", - "source": "household.existing_Country" - }, - { - "name": "existing_Division", - "value": "RANGPUR", - "source": "household.existing_Division" - }, - { - "name": "existing_District", - "value": "GAIBANDHA", - "source": "household.existing_District" - }, - { - "name": "existing_Upazilla", - "value": "SADULLAPUR", - "source": "household.existing_Upazilla" - }, - { - "name": "existing_Union", - "value": "NALDANGA", - "source": "household.existing_Union" - }, - { - "name": "existing_Ward", - "value": "Ward-3", - "source": "household.existing_Ward" - }, - { - "name": "existing_Subunit", - "value": "3-KHA", - "source": "household.existing_Subunit" - }, - { - "name": "existing_Mauzapara", - "value": "DASLIA+-+ALL+PARAS", - "source": "household.existing_Mauzapara" - }, - { - "name": "today", - "value": "2015-10-11", - "source": "household.today" - }, - { - "name": "start", - "value": "2015-10-11T17:12:34.000+06:00", - "source": "household.start" - }, - { - "name": "end", - "value": "2015-10-11T17:12:34.000+06:00", - "source": "household.end" - }, - { - "name": "FWNHREGDATE", - "value": "2015-10-11", - "source": "household.FWNHREGDATE" - }, - { - "name": "FWGOBHHID", - "value": "2322", - "source": "household.FWGOBHHID" - }, - { - "name": "FWJIVHHID", - "value": "9889", - "source": "household.FWJIVHHID" - }, - { - "name": "FWCOUNTRY", - "value": "Bangladesh", - "source": "household.FWCOUNTRY" - }, - { - "name": "FWDIVISION", - "value": "RANGPUR", - "source": "household.FWDIVISION" - }, - { - "name": "FWDISTRICT", - "value": "GAIBANDHA", - "source": "household.FWDISTRICT" - }, - { - "name": "FWUPAZILLA", - "value": "SADULLAPUR", - "source": "household.FWUPAZILLA" - }, - { - "name": "FWUNION", - "value": "NALDANGA", - "source": "household.FWUNION" - }, - { - "name": "FWWARD", - "value": "Ward-3", - "source": "household.FWWARD" - }, - { - "name": "FWSUBUNIT", - "value": "3-KHA", - "source": "household.FWSUBUNIT" - }, - { - "name": "FWMAUZA_PARA", - "value": "DASLIA+-+ALL+PARAS", - "source": "household.FWMAUZA_PARA" - }, - { - "name": "FWNHHHGPS", - "value": "23.8002 90.4068 0 10", - "source": "household.FWNHHHGPS" - }, - { - "name": "FWHOHFNAME", - "value": "mango", - "source": "household.FWHOHFNAME" - }, - { - "name": "FWHOHLNAME", - "value": ".", - "source": "household.FWHOHLNAME" - }, - { - "name": "FWHOHBIRTHDATE", - "value": "1900-01-01", - "source": "household.FWHOHBIRTHDATE" - }, - { - "name": "FWHOHGENDER", - "value": "2", - "source": "household.FWHOHGENDER" - }, - { - "name": "FWNHHMBRNUM", - "value": "23", - "source": "household.FWNHHMBRNUM" - }, - { - "name": "FWNHHMWRA", - "value": "1", - "source": "household.FWNHHMWRA" - }, - { - "name": "join_names", - "value": "hoby", - "source": "household.join_names" - }, - { - "name": "MWRA", - "value": "1", - "source": "household.MWRA" - } - ], - "sub_forms": [ - { - "name": "elco_registration", - "bind_type": "elco", - "default_bind_path": "/model/instance/FWNewHH/woman", - "fields": [ - { - "name": "id", - "source": "elco.id" - }, - { - "name": "relationalid", - "source": "elco.relationalid" - }, - { - "name": "WomanREGDATE", - "source": "elco.WomanREGDATE" - }, - { - "name": "GOBHHID", - "source": "elco.GOBHHID" - }, - { - "name": "JiVitAHHID", - "source": "elco.JiVitAHHID" - }, - { - "name": "FWWOMFNAME", - "source": "elco.FWWOMFNAME" - }, - { - "name": "FWWOMLNAME", - "source": "elco.FWWOMLNAME" - }, - { - "name": "FWBIRTHDATE", - "source": "elco.FWBIRTHDATE" - }, - { - "name": "FWGENDER", - "source": "elco.FWGENDER" - }, - { - "name": "FWWOMAGE", - "source": "elco.FWWOMAGE" - }, - { - "name": "display_age", - "source": "elco.display_age" - }, - { - "name": "FWNHWOMSTRMEN", - "source": "elco.FWNHWOMSTRMEN" - }, - { - "name": "FWNHWOMHUSALV", - "source": "elco.FWNHWOMHUSALV" - }, - { - "name": "FWNHWOMHUSLIV", - "source": "elco.FWNHWOMHUSLIV" - }, - { - "name": "FWNHWOMHUSSTR", - "source": "elco.FWNHWOMHUSSTR" - }, - { - "name": "FWELIGIBLE", - "source": "elco.FWELIGIBLE" - }, - { - "name": "FWWOMANYID", - "source": "elco.FWWOMANYID" - }, - { - "name": "FWWOMNID", - "source": "elco.FWWOMNID" - }, - { - "name": "FWWOMRETYPENID", - "source": "elco.FWWOMRETYPENID" - }, - { - "name": "FWWOMBID", - "source": "elco.FWWOMBID" - }, - { - "name": "FWWOMRETYPEBID", - "source": "elco.FWWOMRETYPEBID" - }, - { - "name": "FWHUSNAME", - "source": "elco.FWHUSNAME" - }, - { - "name": "FWWOMCOUNTRY", - "source": "elco.FWWOMCOUNTRY" - }, - { - "name": "FWWOMDIVISION", - "source": "elco.FWWOMDIVISION" - }, - { - "name": "FWWOMDISTRICT", - "source": "elco.FWWOMDISTRICT" - }, - { - "name": "FWWOMUPAZILLA", - "source": "elco.FWWOMUPAZILLA" - }, - { - "name": "FWWOMUNION", - "source": "elco.FWWOMUNION" - }, - { - "name": "FWWOMWARD", - "source": "elco.FWWOMWARD" - }, - { - "name": "FWWOMSUBUNIT", - "source": "elco.FWWOMSUBUNIT" - }, - { - "name": "FWWOMMAUZA_PARA", - "source": "elco.FWWOMMAUZA_PARA" - }, - { - "name": "FWWOMGOBHHID", - "source": "elco.FWWOMGOBHHID" - }, - { - "name": "FWWOMGPS", - "source": "elco.FWWOMGPS" - } - ], - "instances": [ - { - "GOBHHID": "2322", - "JiVitAHHID": "9889", - "WomanREGDATE": "2015-10-11", - "FWWOMFNAME": "jackfruit", - "FWWOMLNAME": ".", - "FWBIRTHDATE": "1988-10-08", - "FWGENDER": "female", - "FWWOMAGE": "27", - "display_age": "", - "FWNHWOMSTRMEN": "0", - "FWNHWOMHUSLIV": "1", - "FWNHWOMHUSALV": "", - "FWNHWOMHUSSTR": "0", - "FWELIGIBLE": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "FWWOMANYID": "1 2", - "FWWOMNID": "7675788777775", - "FWWOMRETYPENID": "7675788777775", - "FWWOMBID": "98899998888888888", - "FWWOMRETYPEBID": "98899998888888888", - "FWHUSNAME": "zoom", - "FWWOMCOUNTRY": "Bangladesh", - "FWWOMDIVISION": "RANGPUR", - "FWWOMDISTRICT": "GAIBANDHA", - "FWWOMUPAZILLA": "SADULLAPUR", - "FWWOMUNION": "NALDANGA", - "FWWOMWARD": "Ward-3", - "FWWOMSUBUNIT": "3-KHA", - "FWWOMMAUZA_PARA": "DASLIA+-+ALL+PARAS", - "FWWOMGOBHHID": "2322", - "FWWOMGPS": "23.8002 90.4068 0 10", - "id": "ce71572a-8oc5-u32f-9d3b-4a6b568d5g77" - } - ] - } - ] - } - }, - "serverVersion": 1444734863350 -} \ No newline at end of file diff --git a/opensrp-form/src/test/resources/form/new_household_registration_with_grouped_subform_data/model.xml b/opensrp-form/src/test/resources/form/new_household_registration_with_grouped_subform_data/model.xml deleted file mode 100644 index 49e8d05084..0000000000 --- a/opensrp-form/src/test/resources/form/new_household_registration_with_grouped_subform_data/model.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2000-01-02 00:00:00 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - FWA - - - - - - - \ No newline at end of file diff --git a/opensrp-form/src/test/resources/form/pnc_1st_registration/form.json b/opensrp-form/src/test/resources/form/pnc_1st_registration/form.json deleted file mode 100644 index ac61605e10..0000000000 --- a/opensrp-form/src/test/resources/form/pnc_1st_registration/form.json +++ /dev/null @@ -1,373 +0,0 @@ -{ - "name": "pnc_first_registration_motherdetails", - "title": "PNC Registration", - "sms_keyword": "pnc_1st_registration", - "default_language": "default", - "instance": { - "encounter_type": "PNC Registration" - }, - "version": "201504011203", - "id_string": "pnc_1st_registration", - "type": "survey", - "children": [ - { - "instance": { - "openmrs_entity_id": "location_id", - "openmrs_entity": "encounter" - }, - "type": "text", - "name": "location", - "label": "Location" - }, - { - "instance": { - "openmrs_entity_id": "encounter_date", - "openmrs_entity": "encounter" - }, - "type": "today", - "name": "today" - }, - { - "instance": { - "openmrs_entity_id": "encounter_start", - "openmrs_entity": "encounter" - }, - "type": "start", - "name": "start" - }, - { - "instance": { - "openmrs_entity_id": "encounter_end", - "openmrs_entity": "encounter" - }, - "type": "end", - "name": "end" - }, - { - "instance": { - "openmrs_entity_id": "OpenSRPID", - "openmrs_entity": "person_identifier" - }, - "type": "integer", - "name": "mother_id", - "label": "Mother ID number:" - }, - { - "name": "gender", - "bind": { - "required": "yes" - }, - "label": "Gender? ಮಗುವಿನ ಲಿಂಗ?", - "instance": { - "openmrs_entity_id": "gender", - "openmrs_entity": "person" - }, - "type": "select one", - "children": [ - { - "instance": { - "openmrs_code": "1534AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "male", - "label": "Male ಗಂಡು" - }, - { - "instance": { - "openmrs_code": "1535AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "female", - "label": "Female ಹೆಣ್ಣು" - } - ] - }, - { - "instance": { - "openmrs_entity_id": "birthdate", - "openmrs_entity": "person" - }, - "type": "date", - "name": "mother_birthdate", - "label": "Mother's DOB?" - }, - { - "instance": { - "openmrs_entity_id": "first_name", - "openmrs_entity": "person" - }, - "type": "text", - "name": "mother_first_name", - "label": "Mother's first name?" - }, - { - "instance": { - "openmrs_entity_id": "last_name", - "openmrs_entity": "person" - }, - "type": "text", - "name": "mother_last_name", - "label": "Mother's last name?" - }, - { - "bind": { - "required": "yes", - "constraint": ".<=${today}" - }, - "type": "date", - "instance": { - "openmrs_entity_id": "5599AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "name": "delivery_date", - "label": "Delivery date? ಹೆರಿಗೆ ದಿನಾಂಕ?" - }, - { - "instance": { - "openmrs_entity_id": "162724AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "text", - "name": "delivery_facility_name", - "label": "Name of delivery facility? ಹೆರಿಗೆಯಾದ ಸ್ಥಳದ ಹೆಸರು?" - }, - { - "name": "delivery_skilled", - "bind": { - "required": "yes" - }, - "label": "Delivery attended by SBA? ತರಬೇತಿ ಹೊಂದಿದ ಹೆರಿಗೆ ಸಹಾಯಕರು ಹೆರಿಗೆಯಲ್ಲಿ ಹಾಜರಿದ್ದರೆ?", - "instance": { - "openmrs_entity_id": "160083AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "select one", - "children": [ - { - "instance": { - "openmrs_code": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "yes", - "label": "Yes ಹೌದು" - }, - { - "instance": { - "openmrs_code": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "no", - "label": "No ಇಲ್ಲ" - } - ] - }, - { - "instance": { - "openmrs_entity_id": "5630AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "label": "Type of delivery? ಯಾವ ವಿಧದ ಹೆರಿಗೆ?", - "type": "select one", - "children": [ - { - "instance": { - "openmrs_code": "1170AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "normal", - "label": "Normal ಸಾಮಾನ್ಯ" - }, - { - "instance": { - "openmrs_code": "1171AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "cesarean", - "label": "Cesarean ಸಿಸೇರಿಯನ್" - }, - { - "instance": { - "openmrs_code": "118159AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "instrumental_forcep", - "label": "Instrumental / Forcep ಉಪಕರಣಗಳಿಂದ ಮಾಡುವ ಹೆರಿಗೆ" - } - ], - "name": "delivery_type" - }, - { - "name": "delivery_outcome", - "bind": { - "required": "yes" - }, - "label": "Delivery outcome? ಹೆರಿಗೆ ಫಲಿತಾಂಶವೇನು?", - "instance": { - "openmrs_entity_id": "159917AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "select one", - "children": [ - { - "instance": { - "openmrs_code": "151849AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "live_birth", - "label": "Live Birth ಜೀವಂತ ಜನನ" - }, - { - "instance": { - "openmrs_code": "125872AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "still_birth", - "label": "Still Birth ನಿರ್ಜೀವ ಜನನ" - } - ] - }, - { - "instance": { - "openmrs_entity_id": "1053AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "int", - "name": "parity", - "label": "Parity" - }, - { - "bind": { - "relevant": "${delivery_outcome} = 'live_birth'" - }, - "type": "int", - "instance": { - "openmrs_entity_id": "160601AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "name": "num_livebirths", - "label": "Live births" - }, - { - "bind": { - "relevant": "${delivery_outcome} = 'still_birth'" - }, - "type": "int", - "instance": { - "openmrs_entity_id": "160077AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "name": "num_stillbirths", - "label": "Still births" - }, - { - "instance": { - "openmrs_entity_id": "1576AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "label": "What delivery complications were there? ಯಾವ ಹೆರಿಗೆ ತೊಂದರೆಗಳು ಉಂಟಾದವು?", - "type": "select all that apply", - "children": [ - { - "instance": { - "openmrs_code": "230AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "hemorrhage", - "label": "Hemorrhage ರಕ್ತಸ್ರಾವ" - }, - { - "instance": { - "openmrs_code": "114127AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "placenta_previa", - "label": "Placenta previa ಹಿಂದಿನ ಗರ್ಭದಲ್ಲಿ ಮಾಸು ಮುಂದಿರುವುದು" - }, - { - "instance": { - "openmrs_code": "128420AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "cord_prolapse", - "label": "Cord prolapse ಬಳ್ಳಿಯ ಸರಿತ" - }, - { - "instance": { - "openmrs_code": "115036AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "prolonged_labor", - "label": "Prolonged / obstructed labor ದೀರ್ಘಕಾಲೀನ / ಅಡಚಣೆಯನ್ನು ತಂದೊಡ್ಡುವ ಹೆರಿಗೆ ನೋವು" - }, - { - "instance": { - "openmrs_code": "1172AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "abnormal_presentation", - "label": "Abnormal presentation ಅಪಸಾಮಾನ್ಯ ಪ್ರಸ್ತುತಿ" - }, - { - "instance": { - "openmrs_code": "126886AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "perineal_tear_2nd_degree", - "label": "Perineal tear (2 degree)" - }, - { - "instance": { - "openmrs_code": "124857AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "perineal_tear_3rd_degree", - "label": "Perineal tear (3 degree)" - }, - { - "instance": { - "openmrs_code": "39911AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "perineal_tear_4th_degree", - "label": "Perineal tear (4 degree)" - }, - { - "instance": { - "openmrs_code": "120222AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "others", - "label": "Others ಇತರೆ" - } - ], - "name": "complications" - }, - { - "name": "woman_survived", - "bind": { - "required": "yes" - }, - "label": "Woman survived childbirth? ಮಗುವಿನ ಜನನದ ನಂತರ ಮಹಿಳೆ ಬದುಕುಳಿದರೆ?", - "instance": { - "openmrs_entity_id": "134612AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "select one", - "children": [ - { - "instance": { - "openmrs_code": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "yes", - "label": "Yes ಹೌದು" - }, - { - "instance": { - "openmrs_code": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "no", - "label": "No ಇಲ್ಲ" - } - ] - }, - { - "control": { - "bodyless": true - }, - "type": "group", - "children": [ - { - "bind": { - "readonly": "true()", - "calculate": "concat('uuid:', uuid())" - }, - "type": "calculate", - "name": "instanceID" - } - ], - "name": "meta" - } - ] -} \ No newline at end of file diff --git a/opensrp-form/src/test/resources/form/pnc_1st_registration/form.xml b/opensrp-form/src/test/resources/form/pnc_1st_registration/form.xml deleted file mode 100644 index d9501c2e3c..0000000000 --- a/opensrp-form/src/test/resources/form/pnc_1st_registration/form.xml +++ /dev/null @@ -1,29 +0,0 @@ - -
-

PNC Registration

- - - - -
Gender? ಮಗುವಿನ ಲಿಂಗ?* -
- - - - - -
Delivery attended by SBA? ತರಬೇತಿ ಹೊಂದಿದ ಹೆರಿಗೆ ಸಹಾಯಕರು ಹೆರಿಗೆಯಲ್ಲಿ ಹಾಜರಿದ್ದರೆ?* -
-
Type of delivery? ಯಾವ ವಿಧದ ಹೆರಿಗೆ? -
-
Delivery outcome? ಹೆರಿಗೆ ಫಲಿತಾಂಶವೇನು?* -
- - - -
What delivery complications were there? ಯಾವ ಹೆರಿಗೆ ತೊಂದರೆಗಳು ಉಂಟಾದವು? -
-
Woman survived childbirth? ಮಗುವಿನ ಜನನದ ನಂತರ ಮಹಿಳೆ ಬದುಕುಳಿದರೆ?* -
- -
XML to HTML transformation for form took 0.03 secondsThis validation is yet not functional.
diff --git a/opensrp-form/src/test/resources/form/pnc_1st_registration/form_definition.json b/opensrp-form/src/test/resources/form/pnc_1st_registration/form_definition.json deleted file mode 100644 index f715275a86..0000000000 --- a/opensrp-form/src/test/resources/form/pnc_1st_registration/form_definition.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "form_data_definition_version": "1", - "form": { - "default_bind_path": "/model/instance/pnc_first_registration_motherdetails", - "bind_type": "demo_mother", - "fields": [ - { - "name":"id", - "shouldLoadValue": true - }, - { - "name": "location", - "bind": "/model/instance/pnc_first_registration_motherdetails/location" - }, - { - "name": "today", - "bind": "/model/instance/pnc_first_registration_motherdetails/today" - }, - { - "name": "start", - "bind": "/model/instance/pnc_first_registration_motherdetails/start" - }, - { - "name": "end", - "bind": "/model/instance/pnc_first_registration_motherdetails/end" - }, - { - "name": "mother_id", - "bind": "/model/instance/pnc_first_registration_motherdetails/mother_id" - }, - { - "name": "gender", - "bind": "/model/instance/pnc_first_registration_motherdetails/gender" - }, - { - "name": "mother_birthdate", - "bind": "/model/instance/pnc_first_registration_motherdetails/mother_birthdate" - }, - { - "name": "mother_first_name", - "bind": "/model/instance/pnc_first_registration_motherdetails/mother_first_name" - }, - { - "name": "mother_last_name", - "bind": "/model/instance/pnc_first_registration_motherdetails/mother_last_name" - }, - { - "name": "delivery_date", - "bind": "/model/instance/pnc_first_registration_motherdetails/delivery_date" - }, - { - "name": "delivery_facility_name", - "bind": "/model/instance/pnc_first_registration_motherdetails/delivery_facility_name" - }, - { - "name": "delivery_skilled", - "bind": "/model/instance/pnc_first_registration_motherdetails/delivery_skilled" - }, - { - "name": "delivery_type", - "bind": "/model/instance/pnc_first_registration_motherdetails/delivery_type" - }, - { - "name": "delivery_outcome", - "bind": "/model/instance/pnc_first_registration_motherdetails/delivery_outcome" - }, - { - "name": "parity", - "bind": "/model/instance/pnc_first_registration_motherdetails/parity" - }, - { - "name": "num_livebirths", - "bind": "/model/instance/pnc_first_registration_motherdetails/num_livebirths" - }, - { - "name": "num_stillbirths", - "bind": "/model/instance/pnc_first_registration_motherdetails/num_stillbirths" - }, - { - "name": "complications", - "bind": "/model/instance/pnc_first_registration_motherdetails/complications" - }, - { - "name": "woman_survived", - "bind": "/model/instance/pnc_first_registration_motherdetails/woman_survived" - } - ] - } -} \ No newline at end of file diff --git a/opensrp-form/src/test/resources/form/pnc_1st_registration/form_submission.json b/opensrp-form/src/test/resources/form/pnc_1st_registration/form_submission.json deleted file mode 100644 index 7cdcb1c63b..0000000000 --- a/opensrp-form/src/test/resources/form/pnc_1st_registration/form_submission.json +++ /dev/null @@ -1,135 +0,0 @@ -{ - "anmId": "admin", - "clientVersion": "1426830449320", - "entityId": "b716d938-1aea-40ae-a081-9ddddddcccc9", - "formDataDefinitionVersion": "5", - "formName": "pnc_1st_registration", - "formInstance": { - "form_data_definition_version": "1", - "form": { - "default_bind_path": "/model/instance/pnc_first_registration_motherdetails", - "bind_type": "demo_mother", - "fields": [ - { - "name": "id", - "shouldLoadValue": true, - "source": "demo_mother.id", - "value": "aec8e1a5-ab11-47ac-8bc0-ff1e7146e342" - }, - { - "name": "location", - "bind": "/model/instance/pnc_first_registration_motherdetails/location", - "source": "demo_mother.location", - "value": "testloc" - }, - { - "name": "today", - "bind": "/model/instance/pnc_first_registration_motherdetails/today", - "source": "demo_mother.today", - "value": "2015-04-02" - }, - { - "name": "start", - "bind": "/model/instance/pnc_first_registration_motherdetails/start", - "source": "demo_mother.start", - "value": "2015-04-02T04:49:16.000-00:00" - }, - { - "name": "end", - "bind": "/model/instance/pnc_first_registration_motherdetails/end", - "source": "demo_mother.end", - "value": "2015-04-02T04:49:16.000-00:00" - }, - { - "name": "mother_id", - "bind": "/model/instance/pnc_first_registration_motherdetails/mother_id", - "source": "demo_mother.mother_id", - "value": "234" - }, - { - "name": "gender", - "bind": "/model/instance/pnc_first_registration_motherdetails/gender", - "source": "demo_mother.gender", - "value": "male" - }, - { - "name": "mother_birthdate", - "bind": "/model/instance/pnc_first_registration_motherdetails/mother_birthdate", - "source": "demo_mother.mother_birthdate", - "value": "1989-01-31" - }, - { - "name": "mother_first_name", - "bind": "/model/instance/pnc_first_registration_motherdetails/mother_first_name", - "source": "demo_mother.mother_first_name", - "value": "jamila" - }, - { - "name": "mother_last_name", - "bind": "/model/instance/pnc_first_registration_motherdetails/mother_last_name", - "source": "demo_mother.mother_last_name", - "value": "rashid" - }, - { - "name": "delivery_date", - "bind": "/model/instance/pnc_first_registration_motherdetails/delivery_date", - "source": "demo_mother.delivery_date", - "value": "2015-04-01" - }, - { - "name": "delivery_facility_name", - "bind": "/model/instance/pnc_first_registration_motherdetails/delivery_facility_name", - "source": "demo_mother.delivery_facility_name", - "value": "moghbazar health center" - }, - { - "name": "delivery_skilled", - "bind": "/model/instance/pnc_first_registration_motherdetails/delivery_skilled", - "source": "demo_mother.delivery_skilled", - "value": "yes" - }, - { - "name": "delivery_type", - "bind": "/model/instance/pnc_first_registration_motherdetails/delivery_type", - "source": "demo_mother.delivery_type", - "value": "normal" - }, - { - "name": "delivery_outcome", - "bind": "/model/instance/pnc_first_registration_motherdetails/delivery_outcome", - "source": "demo_mother.delivery_outcome", - "value": "live_birth" - }, - { - "name": "parity", - "bind": "/model/instance/pnc_first_registration_motherdetails/parity", - "source": "demo_mother.parity", - "value": "1" - }, - { - "name": "num_livebirths", - "bind": "/model/instance/pnc_first_registration_motherdetails/num_livebirths", - "source": "demo_mother.num_livebirths", - "value": "1" - }, - { - "name": "num_stillbirths", - "bind": "/model/instance/pnc_first_registration_motherdetails/num_stillbirths", - "source": "demo_mother.num_stillbirths" - }, - { - "name": "complications", - "bind": "/model/instance/pnc_first_registration_motherdetails/complications", - "source": "demo_mother.complications", - "value": "hemorrhage" - }, - { - "name": "woman_survived", - "bind": "/model/instance/pnc_first_registration_motherdetails/woman_survived", - "source": "demo_mother.woman_survived", - "value": "yes" - } - ] - } - } -} \ No newline at end of file diff --git a/opensrp-form/src/test/resources/form/pnc_1st_registration/model.xml b/opensrp-form/src/test/resources/form/pnc_1st_registration/model.xml deleted file mode 100644 index 02529770ad..0000000000 --- a/opensrp-form/src/test/resources/form/pnc_1st_registration/model.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/opensrp-form/src/test/resources/form/repeatform/form.json b/opensrp-form/src/test/resources/form/repeatform/form.json deleted file mode 100644 index 5fd76f37d0..0000000000 --- a/opensrp-form/src/test/resources/form/repeatform/form.json +++ /dev/null @@ -1,1381 +0,0 @@ -{ - "default_language": "default", - "id_string": "Delivery_Outcome_EngKan", - "children": [ - { - "name": "today", - "type": "today" - }, - { - "name": "case_lmp", - "instance": { - "openmrs_entity_id": "1100282", - "openmrs_entity": "concept" - }, - "type": "hidden" - }, - { - "name": "delivery_date", - "bind": { - "required": "yes", - "constraint": ".<=${today}" - }, - "label": "Delivery date? ಹೆರಿಗೆ ದಿನಾಂಕ?", - "instance": { - "openmrs_entity_id": "2129182", - "openmrs_entity": "concept" - }, - "type": "date" - }, - { - "name": "delivery_reg_date", - "bind": { - "required": "yes", - "constraint": ".<=${today} and .>= ${delivery_date}" - }, - "label": "PNC registration date? ಬಾಣಂತಿ ದಾಖಲಾತಿ ದಿನಾಂಕ?", - "instance": { - "openmrs_entity_id": "encounter_date", - "openmrs_entity": "encounter" - }, - "type": "date" - }, - { - "children": [ - { - "name": "home", - "label": "Home ಮನೆ", - "instance": { - "openmrs_code": "32323213" - } - }, - { - "name": "subcenter", - "label": "Sub Center ಉಪ ಕೇಂದ್ರ", - "instance": { - "openmrs_code": "2321321" - } - }, - { - "name": "phc", - "label": "PHC ಪ್ರಾಥಮಿಕ ಆರೋಗ್ಯ ಕೇಂದ್ರ", - "instance": { - "openmrs_code": "323213" - } - }, - { - "name": "chc", - "label": "CHC ಸಮುದಾಯ ಆರೋಗ್ಯ ಕೇಂದ್ರ", - "instance": { - "openmrs_code": "1213213" - } - }, - { - "name": "sdh", - "label": "SDH ಉಪ ಜಿಲ್ಲಾ ಆಸ್ಪತ್ರೆ", - "instance": { - "openmrs_code": "23123" - } - }, - { - "name": "dh", - "label": "DH ಜಿಲ್ಲಾ ಆಸ್ಪತ್ರೆ", - "instance": { - "openmrs_code": "232113" - } - }, - { - "name": "private_facility", - "label": "Private ಖಾಸಗಿ", - "instance": { - "openmrs_code": "123123" - } - } - ], - "name": "place_delivery", - "bind": { - "required": "yes" - }, - "label": "Place of delivery? ಹೆರಿಗೆಯಾದ ಸ್ಥಳ?", - "instance": { - "openmrs_entity_id": "location_id", - "openmrs_entity": "encounter" - }, - "type": "select one" - }, - { - "name": "name_delivery_facility", - "bind": { - "relevant": "${place_delivery} != 'home'" - }, - "label": "Name of delivery place? ಹೆರಿಗೆಯಾದ ಸ್ಥಳದ ಹೆಸರು?", - "instance": { - "openmrs_entity_id": "4787232", - "openmrs_entity": "concept" - }, - "type": "text" - }, - { - "children": [ - { - "name": "yes", - "label": "Yes ಹೌದು", - "instance": { - "openmrs_code": "1065" - } - }, - { - "name": "no", - "label": "No ಇಲ್ಲ", - "instance": { - "openmrs_code": "1066" - } - } - ], - "name": "only_delivery_facility", - "label": "Is this the only place woman went for delivery? ಹೆರಿಗೆಗೆ ಇದೊಂದೆ ಸ್ಥಳಕ್ಕೆ ಹೋಗಿದ್ದರೆ?", - "instance": { - "openmrs_entity_id": "120009", - "openmrs_entity": "concept" - }, - "type": "select one" - }, - { - "children": [ - { - "name": "home", - "label": "Home ಮನೆ", - "instance": { - "openmrs_code": "32323213" - } - }, - { - "name": "subcenter", - "label": "Sub Center ಉಪ ಕೇಂದ್ರ", - "instance": { - "openmrs_code": "2321321" - } - }, - { - "name": "phc", - "label": "PHC ಪ್ರಾಥಮಿಕ ಆರೋಗ್ಯ ಕೇಂದ್ರ", - "instance": { - "openmrs_code": "323213" - } - }, - { - "name": "chc", - "label": "CHC ಸಮುದಾಯ ಆರೋಗ್ಯ ಕೇಂದ್ರ", - "instance": { - "openmrs_code": "1213213" - } - }, - { - "name": "sdh", - "label": "SDH ಉಪ ಜಿಲ್ಲಾ ಆಸ್ಪತ್ರೆ", - "instance": { - "openmrs_code": "23123" - } - }, - { - "name": "dh", - "label": "DH ಜಿಲ್ಲಾ ಆಸ್ಪತ್ರೆ", - "instance": { - "openmrs_code": "232113" - } - }, - { - "name": "private_facility", - "label": "Private ಖಾಸಗಿ", - "instance": { - "openmrs_code": "123123" - } - } - ], - "name": "addl_delivery_facility", - "bind": { - "relevant": "${only_delivery_facility} = 'no'" - }, - "label": "Where else did she go for delivery? ಹೆರಿಗೆಗೆ ಇನ್ಯಾವ ಸ್ಥಳಕ್ಕೆ ಹೋಗಿದ್ದರೆ?", - "instance": { - "openmrs_entity_id": "124433", - "openmrs_entity": "concept" - }, - "type": "select all that apply" - }, - { - "children": [ - { - "name": "no_staff", - "label": "No staff available for delivery ಹೆರಿಗೆಗೆ ಸಿಬ್ಬಂಧಿಯು ಲಭ್ಯವಿಲ್ಲ", - "instance": { - "openmrs_code": "4123" - } - }, - { - "name": "referred_higher_facility", - "label": "Referred to higher facility ಹೆಚ್ಚಿನ ಸೌಲಭ್ಯಕ್ಕೆ ರೆಫರ್ ಮಾಡಲಾಗಿದೆ", - "instance": { - "openmrs_code": "21312312" - } - }, - { - "name": "lack_of_supplies", - "label": "Lack of supplies ಸರಬರಾಜು ಕೊರತೆ", - "instance": { - "openmrs_code": "134134" - } - }, - { - "name": "no_electricity", - "label": "No electricity ವಿದ್ಯುತ್ ಇಲ್ಲ", - "instance": { - "openmrs_code": "34134134" - } - }, - { - "name": "family_insisted_elsewhere", - "label": "Family insisted on going elsewhere ಕುಟುಂಬಕ್ಕೆ ಬೇರೇಡೆಗೆ ಹೋಗಲು ಒತ್ತಾಯಿಸಿದರು", - "instance": { - "openmrs_code": "341341" - } - }, - { - "name": "no_money", - "label": "Not enough money ಸಾಕಷ್ಟು ಹಣವಿಲ್ಲ", - "instance": { - "openmrs_code": "43434432" - } - }, - { - "name": "others", - "label": "Others ಇತರೆ", - "instance": { - "openmrs_code": "323243224" - } - } - ], - "name": "reasons_addl_delivery_facility", - "bind": { - "relevant": "${only_delivery_facility} = 'no'" - }, - "label": "Select the reasons why more than one place. ಬೇರೆ ಸ್ಥಳಕ್ಕೆ ಹೋಗಿದ್ದಕ್ಕೆ ಕಾರಣವನ್ನು ಆಯ್ಕೆ ಮಾಡಿ.", - "instance": { - "openmrs_entity_id": "100933", - "openmrs_entity": "concept" - }, - "type": "select all that apply" - }, - { - "name": "other_reasons_addl_delivery_facility", - "bind": { - "relevant": "selected(${reasons_addl_delivery_facility}, 'others')" - }, - "label": "Others ಇತರೆ:", - "instance": { - "openmrs_entity_id": "2323233", - "openmrs_entity": "concept" - }, - "type": "text" - }, - { - "children": [ - { - "name": "yes", - "label": "Yes ಹೌದು", - "instance": { - "openmrs_code": "1065" - } - }, - { - "name": "no", - "label": "No ಇಲ್ಲ", - "instance": { - "openmrs_code": "1066" - } - } - ], - "name": "skilled_delivery", - "bind": { - "relevant": "${place_delivery} = 'home'", - "required": "yes" - }, - "label": "Delivery attended by SBA? ತರಬೇತಿ ಹೊಂದಿದ ಹೆರಿಗೆ ಸಹಾಯಕರು ಹೆರಿಗೆಯಲ್ಲಿ ಹಾಜರಿದ್ದರೆ?", - "instance": { - "openmrs_entity_id": "3231212", - "openmrs_entity": "concept" - }, - "type": "select one" - }, - { - "children": [ - { - "name": "normal", - "label": "Normal ಸಾಮಾನ್ಯ", - "instance": { - "openmrs_code": "43123" - } - }, - { - "name": "cesarean", - "label": "Cesarean ಸಿಸೇರಿಯನ್", - "instance": { - "openmrs_code": "3232" - } - }, - { - "name": "instrumental_forcep", - "label": "Instrumental / Forcep ಉಪಕರಣಗಳಿಂದ ಮಾಡುವ ಹೆರಿಗೆ", - "instance": { - "openmrs_code": "4134123" - } - } - ], - "name": "type_delivery", - "label": "Type of delivery? ಯಾವ ವಿಧದ ಹೆರಿಗೆ?", - "instance": { - "openmrs_entity_id": "120009", - "openmrs_entity": "concept" - }, - "type": "select one" - }, - { - "children": [ - { - "name": "live_birth", - "label": "Live Birth ಜೀವಂತ ಜನನ", - "instance": { - "openmrs_code": "38493849" - } - }, - { - "name": "still_birth", - "label": "Still Birth ನಿರ್ಜೀವ ಜನನ", - "instance": { - "openmrs_code": "343434" - } - } - ], - "name": "delivery_outcome", - "bind": { - "required": "yes" - }, - "label": "Delivery outcome? ಹೆರಿಗೆ ಫಲಿತಾಂಶವೇನು?", - "instance": { - "openmrs_entity_id": "124433", - "openmrs_entity": "concept" - }, - "type": "select one" - }, - { - "name": "case_parity", - "instance": { - "openmrs_entity_id": "100933", - "openmrs_entity": "concept" - }, - "type": "hidden" - }, - { - "name": "parity", - "bind": { - "calculate": "${case_parity} + 1" - }, - "instance": { - "openmrs_entity_id": "434343", - "openmrs_entity": "concept" - }, - "type": "calculate" - }, - { - "name": "case_num_livebirths", - "instance": { - "openmrs_entity_id": "34324234", - "openmrs_entity": "concept" - }, - "type": "hidden" - }, - { - "name": "num_livebirths", - "bind": { - "relevant": "${delivery_outcome} = 'live_birth'", - "calculate": "${case_num_livebirths} + 1" - }, - "instance": { - "openmrs_entity_id": "3423423", - "openmrs_entity": "concept" - }, - "type": "calculate" - }, - { - "name": "youngestchild_date_of_birth", - "bind": { - "relevant": "${delivery_outcome} = 'live_birth'", - "calculate": "${delivery_date}" - }, - "instance": { - "openmrs_entity_id": "120009", - "openmrs_entity": "concept" - }, - "type": "calculate" - }, - { - "name": "youngestchild_age", - "bind": { - "calculate": "int((${today} - ${youngestchild_date_of_birth}) div 30)" - }, - "instance": { - "openmrs_entity_id": "124433", - "openmrs_entity": "concept" - }, - "type": "calculate" - }, - { - "name": "case_num_stillbirths", - "instance": { - "openmrs_entity_id": "100933", - "openmrs_entity": "concept" - }, - "type": "hidden" - }, - { - "name": "num_stillbirths", - "bind": { - "relevant": "${delivery_outcome} = 'still_birth'", - "calculate": "${case_num_stillbirths} + 1" - }, - "instance": { - "openmrs_entity_id": "3432434", - "openmrs_entity": "concept" - }, - "type": "calculate" - }, - { - "children": [ - { - "children": [ - { - "name": "infection_during_preg", - "label": "Infection during pregnancy ಗರ್ಭಾವಸ್ಥೆಯಲ್ಲಿ ಸೋಂಕು", - "instance": { - "openmrs_code": "2323" - } - }, - { - "name": "gest_hypertension", - "label": "Gestational hypertension ಗರ್ಭಾಧಾರಣೆಯಲ್ಲಿನ ಅಧಿಕ ರಕ್ತದೊತ್ತಡ", - "instance": { - "openmrs_code": "2323" - } - }, - { - "name": "gest_diabetes", - "label": "Gestational diabetes ಗರ್ಭಾಧಾರಣೆಯಲ್ಲಿನ ಸಕ್ಕರೆ ಕಾಯಿಲೆ", - "instance": { - "openmrs_code": "23213" - } - }, - { - "name": "fetal_growth_restriction", - "label": "Fetal growth restriction ಭ್ರೂಣದ ಬೆಳವಣಿಗೆಯಲ್ಲಿ ನಿರ್ಬಂಧ", - "instance": { - "openmrs_code": "23123" - } - }, - { - "name": "birth_defects", - "label": "Birth defects ಜನ್ಮ ನ್ಯೂನ್ಯತೆಗಳು", - "instance": { - "openmrs_code": "23213" - } - }, - { - "name": "unknown", - "label": "Cause not identified ಕಾರಣವನ್ನು ಗುರುತಿಸಲ್ಪಟ್ಟಿಲ್ಲ", - "instance": { - "openmrs_code": "2323" - } - }, - { - "name": "others", - "label": "Others ಇತರೆ", - "instance": { - "openmrs_code": "23213" - } - } - ], - "name": "cause_of_still_birth", - "label": "Cause of still birth? ನಿರ್ಜೀವ ಜನನದ ಕಾರಣಗಳು?", - "instance": { - "openmrs_entity_parent": "65435", - "openmrs_entity_id": "4323232", - "openmrs_entity": "concept" - }, - "type": "select one" - }, - { - "children": [ - { - "name": "yes", - "label": "Yes ಹೌದು", - "instance": { - "openmrs_code": "1065" - } - }, - { - "name": "no", - "label": "No ಇಲ್ಲ", - "instance": { - "openmrs_code": "1066" - } - } - ], - "name": "woman_survived", - "bind": { - "required": "yes" - }, - "label": "Woman survived childbirth? ಮಗುವಿನ ಜನನದ ನಂತರ ಮಹಿಳೆ ಬದುಕುಳಿದರೆ?", - "instance": { - "openmrs_entity_parent": "65435", - "openmrs_entity_id": "100009", - "openmrs_entity": "concept" - }, - "type": "select one" - } - ], - "name": "still_birth_group", - "bind": { - "relevant": "${delivery_outcome} = 'still_birth'" - }, - "instance": { - "openmrs_entity_id": "65435", - "openmrs_entity": "concept" - }, - "type": "group" - }, - { - "children": [ - { - "children": [ - { - "children": [ - { - "name": "male", - "label": "Male ಗಂಡು", - "instance": { - "openmrs_code": "21321" - } - }, - { - "name": "female", - "label": "Female ಹೆಣ್ಣು", - "instance": { - "openmrs_code": "312312" - } - } - ], - "name": "sex_child", - "bind": { - "required": "yes" - }, - "label": "Sex of child? ಮಗುವಿನ ಲಿಂಗ?", - "instance": { - "openmrs_entity_id": "gender", - "openmrs_entity": "patient" - }, - "type": "select one" - }, - { - "name": "sex_child_female", - "bind": { - "calculate": "if(${sex_child} = 'female', 1, 0)" - }, - "type": "calculate" - }, - { - "name": "sex_child_male", - "bind": { - "calculate": "if(${sex_child} = 'male', 1, 0)" - }, - "type": "calculate" - }, - { - "name": "birthweight", - "label": "Child birthweight (in kgs)? ಹುಟ್ಟಿದ ಮಗುವಿನ ತೂಕ (ಕೆ.ಜಿ. ಗಳಲ್ಲಿ)?", - "instance": { - "openmrs_entity_id": "323232", - "openmrs_entity": "concept" - }, - "type": "decimal" - }, - { - "control": { - "appearance": "minimal" - }, - "children": [ - { - "name": "a_positive", - "label": "A+", - "instance": { - "openmrs_code": "34324" - } - }, - { - "name": "a_negative", - "label": "A-", - "instance": { - "openmrs_code": "34134" - } - }, - { - "name": "b_positive", - "label": "B+", - "instance": { - "openmrs_code": "1321312" - } - }, - { - "name": "b_negative", - "label": "B-", - "instance": { - "openmrs_code": "43434" - } - }, - { - "name": "ab_positive", - "label": "AB+", - "instance": { - "openmrs_code": "12323214" - } - }, - { - "name": "ab_negative", - "label": "AB-", - "instance": { - "openmrs_code": "11343141" - } - }, - { - "name": "o_positive", - "label": "O+", - "instance": { - "openmrs_code": "134343" - } - }, - { - "name": "o_negative", - "label": "O-", - "instance": { - "openmrs_code": "432434" - } - } - ], - "name": "child_blood_group", - "label": "Child blood group? ಮಗುವಿನ ರಕ್ತದ ಗುಂಪು?", - "instance": { - "openmrs_entity_id": "232112", - "openmrs_entity": "concept" - }, - "type": "select one" - }, - { - "children": [ - { - "name": "bcg", - "label": "BCG ಬಿ.ಸಿ.ಜಿ", - "instance": { - "openmrs_code": "23123" - } - }, - { - "name": "opv_0", - "label": "OPV 0 ಒ.ಪಿ.ವಿ 0", - "instance": { - "openmrs_code": "12312" - } - }, - { - "name": "hepb_0", - "label": "Hep B 0 ಹೆಪಟೆಟಿಸ್ ಬಿ 0", - "instance": { - "openmrs_code": "213123" - } - } - ], - "name": "immunizations_atbirth", - "label": "Immunizations provided at birth? ಹುಟ್ಟಿದ ಮಗುವಿಗೆ ಇಮ್ಯುನೈಜೇಷನ್ ನೀಡಲಾಯಿತೆ?", - "instance": { - "openmrs_entity_id": "199277", - "openmrs_entity": "concept" - }, - "type": "select all that apply" - }, - { - "name": "case_hepb", - "instance": { - "openmrs_entity_id": "100285", - "openmrs_entity": "concept" - }, - "type": "hidden" - }, - { - "children": [ - { - "name": "yes", - "label": "Yes ಹೌದು", - "instance": { - "openmrs_code": "1065" - } - }, - { - "name": "no", - "label": "No ಇಲ್ಲ", - "instance": { - "openmrs_code": "1066" - } - } - ], - "name": "hepb_prophylaxis_provided", - "bind": { - "relevant": "${case_hepb} != ''" - }, - "label": "Hep B prophylaxis provided? ಹೆಪಟೆಟಿಸ್ ಬಿ ರೋಗನಿರೋಧಕ ಚಿಕಿತ್ಸೆ ನೀಡಲಾಗಿದೆತೇ?", - "instance": { - "openmrs_entity_id": "3321323", - "openmrs_entity": "concept" - }, - "type": "select one" - }, - { - "name": "lbw", - "bind": { - "calculate": "if(${birthweight} >= 1.5 and ${birthweight} < 2.5, 'Low_Birth_Weight','')" - }, - "instance": { - "openmrs_entity_id": "1232132", - "openmrs_entity": "concept" - }, - "type": "calculate" - }, - { - "name": "vlbw", - "bind": { - "calculate": "if(${birthweight} < 1.5, 'Very_Low_Birth_Weight', '')" - }, - "instance": { - "openmrs_entity_id": "232133", - "openmrs_entity": "concept" - }, - "type": "calculate" - }, - { - "name": "num_preg_days", - "bind": { - "calculate": "int(date(${delivery_date}) - date(${case_lmp}))" - }, - "instance": { - "openmrs_entity_id": "232323", - "openmrs_entity": "concept" - }, - "type": "calculate" - }, - { - "name": "premature", - "bind": { - "calculate": "if(${num_preg_days} < 259, 'Premature', '')" - }, - "instance": { - "openmrs_entity_id": "232323", - "openmrs_entity": "concept" - }, - "type": "calculate" - }, - { - "name": "premature_message1", - "bind": { - "relevant": "${premature} != ''" - }, - "label": "Baby is premature! Advise kangaroo care and rooming in. ಅವಧಿಗೆ ಮುನ್ನ ಜನಿಸಿದ ಮಗು! ಕಾಂಗರೋ ಆರೈಕೆ ಮತ್ತು ಒಂದೇ ರೂಮಿನಲ್ಲಿಡುವಂತೆ ಸಲಹೆ ನೀಡಿ.", - "type": "note" - }, - { - "name": "is_child_high_risk1", - "bind": { - "calculate": "if(${premature} != '' or ${lbw} != '' or ${vlbw} != '', 'yes', 'no')" - }, - "instance": { - "openmrs_entity_id": "342343", - "openmrs_entity": "concept" - }, - "type": "calculate" - }, - { - "name": "child_high_risk_reasons", - "bind": { - "calculate": "concat(${premature}, ' ', ${lbw}, ' ', ${vlbw})" - }, - "instance": { - "openmrs_entity_id": "423434", - "openmrs_entity": "concept" - }, - "type": "calculate" - }, - { - "name": "high_risk_note_child", - "bind": { - "relevant": "${is_child_high_risk1} = 'yes'" - }, - "label": "Child is at risk because of, ಈಗ ಮಗು ಅಪಾಯದಲ್ಲಿದೆ ಏಕೆಂದರೆ: ${child_high_risk_reasons}", - "type": "note" - }, - { - "children": [ - { - "name": "yes", - "label": "Yes ಹೌದು", - "instance": { - "openmrs_code": "1065" - } - }, - { - "name": "no", - "label": "No ಇಲ್ಲ", - "instance": { - "openmrs_code": "1066" - } - } - ], - "name": "is_child_high_risk", - "bind": { - "required": "yes" - }, - "label": "Do you want to mark child as HR (High Risk)? \nನೀವು ಮಗುವನ್ನು HR (ಹೆಚ್ಚು ಅಪಾಯವಿದೆ) ಎಂದು ಗುರುತಿಸಲು ಬಯಸುವಿರಾ?", - "instance": { - "openmrs_entity_id": "4342343", - "openmrs_entity": "concept" - }, - "type": "select one" - }, - { - "name": "addl_pnc_visit_message", - "bind": { - "relevant": "${is_child_high_risk1} = 'yes'" - }, - "label": "Child needs 3 more PNC visits on days 14, 21, and 28 because of, 14, 21 ಮತ್ತು 28 ನೇ ದಿನಗಳೊಂದು ಮಗುವಿಗೆ 3 ಹೆಚ್ಚಿನ ಭೇಟಿಯ ಅಗತ್ಯವಿದೆ, ಏಕೆಂದರೆ: ${child_high_risk_reasons}", - "type": "note" - } - ], - "name": "child", - "label": "Please enter birth information for each child born. ಜನನವಾದ ಪ್ರತಿ ಮಗುವಿನ ಜನ್ಮ ಮಾಹಿತಿಯನ್ನು ದಯವಿಟ್ಟು ನಮೂದಿಸಿ.", - "instance": { - "openmrs_entity_id": "100029", - "openmrs_entity": "concept" - }, - "type": "repeat" - }, - { - "children": [ - { - "name": "yes", - "label": "Yes ಹೌದು", - "instance": { - "openmrs_code": "1065" - } - }, - { - "name": "no", - "label": "No ಇಲ್ಲ", - "instance": { - "openmrs_code": "1066" - } - } - ], - "name": "mother_survived", - "bind": { - "required": "yes" - }, - "label": "Mother survived childbirth? ಮಗುವಿನ ಜನನದ ನಂತರ ಮಹಿಳೆ ಬದುಕುಳಿದರೆ?", - "instance": { - "openmrs_entity_id": "343434", - "openmrs_entity": "concept" - }, - "type": "select one" - }, - { - "children": [ - { - "name": "yes", - "label": "Yes ಹೌದು", - "instance": { - "openmrs_code": "1065" - } - }, - { - "name": "no", - "label": "No ಇಲ್ಲ", - "instance": { - "openmrs_code": "1066" - } - } - ], - "name": "breastfeeding_postbirth", - "bind": { - "relevant": "${mother_survived} = 'yes'", - "required": "yes" - }, - "label": "Was breastfeeding started within 1 hour of birth? ಹುಟ್ಟಿದ ಒಂದು ಗಂಟೆಯ ಒಳಗೆ ಎದೆಹಾಲು ನೀಡಲಾಯಿತೆ?", - "instance": { - "openmrs_entity_id": "434343", - "openmrs_entity": "concept" - }, - "type": "select one" - } - ], - "name": "live_birth_group", - "bind": { - "relevant": "${delivery_outcome} = 'live_birth'" - }, - "type": "group" - }, - { - "name": "case_num_livingchildren", - "instance": { - "openmrs_entity_id": "434344", - "openmrs_entity": "concept" - }, - "type": "hidden" - }, - { - "name": "num_children_born", - "bind": { - "calculate": "if(${delivery_outcome} = 'still_birth', 0, count(${sex_child}))" - }, - "instance": { - "openmrs_entity_id": "43432", - "openmrs_entity": "concept" - }, - "type": "calculate" - }, - { - "name": "num_livingchildren", - "bind": { - "calculate": "${case_num_livingchildren} + ${num_children_born}" - }, - "instance": { - "openmrs_entity_id": "54541", - "openmrs_entity": "concept" - }, - "type": "calculate" - }, - { - "name": "case_numlivingchildren_female", - "instance": { - "openmrs_entity_id": "57467", - "openmrs_entity": "concept" - }, - "type": "hidden" - }, - { - "name": "num_female_children_born", - "bind": { - "calculate": "sum(${sex_child_female})" - }, - "instance": { - "openmrs_entity_id": "687832", - "openmrs_entity": "concept" - }, - "type": "calculate" - }, - { - "name": "numlivingchildren_female", - "bind": { - "calculate": "${case_numlivingchildren_female} + ${num_female_children_born}" - }, - "instance": { - "openmrs_entity_id": "098343", - "openmrs_entity": "concept" - }, - "type": "calculate" - }, - { - "name": "case_numlivingchildren_male", - "instance": { - "openmrs_entity_id": "98664", - "openmrs_entity": "concept" - }, - "type": "hidden" - }, - { - "name": "num_male_children_born", - "bind": { - "calculate": "sum(${sex_child_male})" - }, - "instance": { - "openmrs_entity_id": "4343656", - "openmrs_entity": "concept" - }, - "type": "calculate" - }, - { - "name": "numlivingchildren_male", - "bind": { - "calculate": "${case_numlivingchildren_male} + ${num_male_children_born}" - }, - "instance": { - "openmrs_entity_id": "342325", - "openmrs_entity": "concept" - }, - "type": "calculate" - }, - { - "children": [ - { - "children": [ - { - "name": "prolonged_obstructed_labor", - "label": "Prolonged / obstructed labor ದೀರ್ಘಕಾಲೀನ / ಅಡಚಣೆಯನ್ನು ತಂದೊಡ್ಡುವ ಹೆರಿಗೆ ನೋವು", - "instance": { - "openmrs_code": "23123" - } - }, - { - "name": "hypertension_fits", - "label": "Severe hypertension / fits ತೀವ್ರತರವಾದ ಅಧಿಕ ರಕ್ತದೊತ್ತಡ / ಮೂರ್ಚೆರೋಗ", - "instance": { - "openmrs_code": "23213" - } - }, - { - "name": "bleeding_hemorrhage", - "label": "Bleeding / hemorrhage ರಕ್ತಸ್ರಾವ", - "instance": { - "openmrs_code": "23123" - } - }, - { - "name": "fever_infection", - "label": "High fever / infection ಅಧಿಕ ಜ್ವರ / ಸೊಂಕು", - "instance": { - "openmrs_code": "2323" - } - }, - { - "name": "cause_not_identified", - "label": "Cause not identified ಕಾರಣವನ್ನು ಗುರುತಿಸಲ್ಪಟ್ಟಿಲ್ಲ", - "instance": { - "openmrs_code": "23213" - } - }, - { - "name": "others", - "label": "Others ಇತರೆ", - "instance": { - "openmrs_code": "23213" - } - } - ], - "name": "maternal_death_cause", - "label": "Cause of maternal death? ತಾಯಿಯ ಮರಣಕ್ಕೆ ಕಾರಣಗಳು?", - "instance": { - "openmrs_entity_id": "43434", - "openmrs_entity": "concept" - }, - "type": "select one" - }, - { - "name": "other_maternal_death_cause", - "bind": { - "relevant": "${maternal_death_cause} = 'others'" - }, - "label": "Others ಇತರೆ:", - "instance": { - "openmrs_entity_id": "43221", - "openmrs_entity": "concept" - }, - "type": "text" - } - ], - "name": "maternal_death_group", - "bind": { - "relevant": "(${woman_survived} = 'no' or ${mother_survived} = 'no')" - }, - "type": "group" - }, - { - "children": [ - { - "name": "case_w_rh_negative", - "instance": { - "openmrs_entity_id": "4324234", - "openmrs_entity": "concept" - }, - "type": "hidden" - }, - { - "children": [ - { - "name": "yes", - "label": "Yes ಹೌದು", - "instance": { - "openmrs_code": "1065" - } - }, - { - "name": "no", - "label": "No ಇಲ್ಲ", - "instance": { - "openmrs_code": "1066" - } - } - ], - "name": "rh_injection_given", - "bind": { - "relevant": "${case_w_rh_negative} != ''" - }, - "label": "Rh injection given to woman? ಮಹಿಳೆಗೆ Rh ಚುಚ್ಚುಮದ್ದು ನೀಡಲಾಯಿತೆ?", - "instance": { - "openmrs_entity_id": "32323", - "openmrs_entity": "concept" - }, - "type": "select one" - }, - { - "children": [ - { - "name": "yes", - "label": "Yes ಹೌದು", - "instance": { - "openmrs_code": "1065" - } - }, - { - "name": "no", - "label": "No ಇಲ್ಲ", - "instance": { - "openmrs_code": "1066" - } - } - ], - "name": "had_delivery_complications", - "label": "Were there delivery complications? ಹೆರಿಗೆಯಲ್ಲಿ ತೊಡಕುಂಟಾಯಿತೆ?", - "instance": { - "openmrs_entity_id": "233234", - "openmrs_entity": "concept" - }, - "type": "select one" - }, - { - "children": [ - { - "name": "hemorrhage", - "label": "Hemorrhage ರಕ್ತಸ್ರಾವ", - "instance": { - "openmrs_code": "4123213" - } - }, - { - "name": "placenta_previa", - "label": "Placenta previa ಹಿಂದಿನ ಗರ್ಭದಲ್ಲಿ ಮಾಸು ಮುಂದಿರುವುದು", - "instance": { - "openmrs_code": "2131413" - } - }, - { - "name": "cord_prolapse", - "label": "Cord prolapse ಬಳ್ಳಿಯ ಸರಿತ", - "instance": { - "openmrs_code": "4134123" - } - }, - { - "name": "prolonged_labor", - "label": "Prolonged / obstructed labor ದೀರ್ಘಕಾಲೀನ / ಅಡಚಣೆಯನ್ನು ತಂದೊಡ್ಡುವ ಹೆರಿಗೆ ನೋವು", - "instance": { - "openmrs_code": "213124123" - } - }, - { - "name": "abnormal_presentation", - "label": "Abnormal presentation ಅಪಸಾಮಾನ್ಯ ಪ್ರಸ್ತುತಿ", - "instance": { - "openmrs_code": "14123123" - } - }, - { - "name": "perineal_tear", - "label": "Perineal tear (2, 3, or 4 degree)", - "instance": { - "openmrs_code": "23123" - } - }, - { - "name": "others", - "label": "Others ಇತರೆ", - "instance": { - "openmrs_code": "32123" - } - } - ], - "name": "complications", - "bind": { - "relevant": "${had_delivery_complications} = 'yes'" - }, - "label": "What delivery complications were there? ಯಾವ ಹೆರಿಗೆ ತೊಂದರೆಗಳು ಉಂಟಾದವು?", - "instance": { - "openmrs_entity_id": "25343", - "openmrs_entity": "concept" - }, - "type": "select all that apply" - }, - { - "name": "delivery_complications_other", - "bind": { - "relevant": "selected(${complications}, 'others')" - }, - "label": "Others ಇತರೆ:", - "instance": { - "openmrs_entity_id": "2355435", - "openmrs_entity": "concept" - }, - "type": "text" - } - ], - "name": "woman_survived_group", - "bind": { - "relevant": "(${woman_survived} = 'yes' or ${mother_survived} = 'yes')" - }, - "type": "group" - }, - { - "name": "case_is_high_risk_till_pnc_close", - "instance": { - "openmrs_entity_id": "8768767", - "openmrs_entity": "concept" - }, - "type": "hidden" - }, - { - "name": "case_is_high_risk_till_pnc_close_reason", - "instance": { - "openmrs_entity_id": "676576", - "openmrs_entity": "concept" - }, - "type": "hidden" - }, - { - "name": "case_anaemic_status", - "instance": { - "openmrs_entity_id": "76767", - "openmrs_entity": "concept" - }, - "type": "hidden" - }, - { - "name": "case_pih", - "instance": { - "openmrs_entity_id": "36787", - "openmrs_entity": "concept" - }, - "type": "hidden" - }, - { - "name": "case_pre_eclampsia", - "instance": { - "openmrs_entity_id": "376784", - "openmrs_entity": "concept" - }, - "type": "hidden" - }, - { - "name": "case_jaundice", - "instance": { - "openmrs_entity_id": "343434", - "openmrs_entity": "concept" - }, - "type": "hidden" - }, - { - "name": "is_high_risk1", - "bind": { - "calculate": "if(${case_is_high_risk_till_pnc_close} = 'yes' or ${case_anaemic_status} != '' or ${case_pih} != '' or ${case_pre_eclampsia} != '' or ${case_jaundice} != '', 'yes', 'no')" - }, - "instance": { - "openmrs_entity_id": "4746767", - "openmrs_entity": "concept" - }, - "type": "calculate" - }, - { - "name": "high_risk_reason", - "bind": { - "calculate": "concat(${case_is_high_risk_till_pnc_close_reason}, ' ', ${case_anaemic_status}, ' ', ${case_pih}, ' ', ${case_pre_eclampsia}, ' ', ${case_jaundice})" - }, - "instance": { - "openmrs_entity_id": "5656", - "openmrs_entity": "concept" - }, - "type": "calculate" - }, - { - "name": "high_risk_note_mother", - "bind": { - "relevant": "${is_high_risk1} = 'yes'" - }, - "label": "Woman is still at risk because of, ಮಹಿಳೆಯು ಈಗಲೂ ಅಪಾಯದಲ್ಲಿದ್ದಾಳೆ ಏಕೆಂದರೆ: ${high_risk_reason}", - "type": "note" - }, - { - "children": [ - { - "name": "yes", - "label": "Yes ಹೌದು", - "instance": { - "openmrs_code": "1065" - } - }, - { - "name": "no", - "label": "No ಇಲ್ಲ", - "instance": { - "openmrs_code": "1066" - } - } - ], - "name": "is_high_risk", - "bind": { - "relevant": "(${woman_survived} = 'yes' or ${mother_survived} = 'yes')", - "required": "yes" - }, - "label": "Do you want to mark woman as HR (High Risk)?\nನೀವು ಮಹಿಳೆಯನ್ನು HR (ಹೆಚ್ಚು ಅಪಾಯವಿದೆ) ಎಂದು ಗುರುತಿಸಲು ಬಯಸುವಿರಾ?", - "instance": { - "openmrs_entity_id": "424253", - "openmrs_entity": "concept" - }, - "type": "select one" - }, - { - "control": { - "bodyless": true - }, - "children": [ - { - "name": "instanceID", - "bind": { - "readonly": "true()", - "calculate": "concat('uuid:', uuid())" - }, - "type": "calculate" - } - ], - "name": "meta", - "type": "group" - } - ], - "instance": { - "encounter_type": "PNC Registration" - }, - "version": "201504300627", - "type": "survey", - "name": "PNC_Registration_EngKan", - "sms_keyword": "Delivery_Outcome_EngKan", - "title": "PNC Registration" -} \ No newline at end of file diff --git a/opensrp-form/src/test/resources/form/repeatform/form_definition.json b/opensrp-form/src/test/resources/form/repeatform/form_definition.json deleted file mode 100644 index c64ffdc42f..0000000000 --- a/opensrp-form/src/test/resources/form/repeatform/form_definition.json +++ /dev/null @@ -1,315 +0,0 @@ -{ - "form_data_definition_version": "5", - "form": { - "bind_type": "mother", - "default_bind_path": "/model/instance/PNC_Registration_EngKan/", - "fields": [ - { - "name": "id", - "shouldLoadValue": true - }, - { - "name": "ecId", - "shouldLoadValue": true, - "source": "mother.eligible_couple.id" - }, - { - "name": "referenceDate", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_lmp" - }, - { - "name": "referenceDate", - "bind": "/model/instance/PNC_Registration_EngKan/delivery_date" - }, - { - "name": "deliveryRegistrationDate", - "bind": "/model/instance/PNC_Registration_EngKan/delivery_reg_date" - }, - { - "name": "deliveryPlace", - "bind": "/model/instance/PNC_Registration_EngKan/place_delivery" - }, - { - "name": "deliveryFacilityName", - "bind": "/model/instance/PNC_Registration_EngKan/name_delivery_facility" - }, - { - "name": "isThisOnlyDeliveryFacility", - "bind": "/model/instance/PNC_Registration_EngKan/only_delivery_facility" - }, - { - "name": "additionalDeliveryFacility", - "bind": "/model/instance/PNC_Registration_EngKan/addl_delivery_facility" - }, - { - "name": "reasonsForAdditionalDeliveryFacility", - "bind": "/model/instance/PNC_Registration_EngKan/reasons_addl_delivery_facility" - }, - { - "name": "otherReasonsForAdditionalDeliveryFacility", - "bind": "/model/instance/PNC_Registration_EngKan/other_reasons_addl_delivery_facility" - }, - { - "name": "isSkilledDelivery", - "bind": "/model/instance/PNC_Registration_EngKan/skilled_delivery" - }, - { - "name": "deliveryType", - "bind": "/model/instance/PNC_Registration_EngKan/type_delivery" - }, - { - "name": "deliveryOutcome", - "bind": "/model/instance/PNC_Registration_EngKan/delivery_outcome" - }, - { - "name": "parity", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_parity", - "source": "mother.eligible_couple.parity" - }, - { - "name": "parity", - "bind": "/model/instance/PNC_Registration_EngKan/parity", - "source": "mother.eligible_couple.parity" - }, - { - "name": "numberOfLiveBirths", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_num_livebirths", - "source": "mother.eligible_couple.numberOfLiveBirths" - }, - { - "name": "numberOfLiveBirths", - "bind": "/model/instance/PNC_Registration_EngKan/num_livebirths", - "source": "mother.eligible_couple.numberOfLiveBirths" - }, - { - "name": "numberOfStillBirths", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_num_stillbirths", - "source": "mother.eligible_couple.numberOfStillBirths" - }, - { - "name": "numberOfStillBirths", - "bind": "/model/instance/PNC_Registration_EngKan/num_stillbirths", - "source": "mother.eligible_couple.numberOfStillBirths" - }, - { - "name": "causeOfStillBirth", - "bind": "/model/instance/PNC_Registration_EngKan/still_birth_group/cause_of_still_birth" - }, - { - "name": "didWomanSurvive", - "bind": "/model/instance/PNC_Registration_EngKan/still_birth_group/woman_survived" - }, - { - "name": "didMotherSurvive", - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/mother_survived" - }, - { - "name": "didBreastfeedingStart", - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/breastfeeding_postbirth" - }, - { - "name": "maternalDeathCause", - "bind": "/model/instance/PNC_Registration_EngKan/maternal_death_group/maternal_death_cause" - }, - { - "name": "otherMaternalDeathCause", - "bind": "/model/instance/PNC_Registration_EngKan/maternal_death_group/other_maternal_death_cause" - }, - { - "name": "isRHNegative", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/woman_survived_group/case_w_rh_negative" - }, - { - "name": "isRHInjectionGiven", - "bind": "/model/instance/PNC_Registration_EngKan/woman_survived_group/rh_injection_given" - }, - { - "name": "hadDeliveryComplications", - "bind": "/model/instance/PNC_Registration_EngKan/woman_survived_group/had_delivery_complications" - }, - { - "name": "deliveryComplications", - "bind": "/model/instance/PNC_Registration_EngKan/woman_survived_group/complications" - }, - { - "name": "otherDeliveryComplications", - "bind": "/model/instance/PNC_Registration_EngKan/woman_survived_group/delivery_complications_other" - }, - { - "name": "isHighRiskTillPNCClose", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_is_high_risk_till_pnc_close" - }, - { - "name": "highRiskTillPNCCloseReason", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_is_high_risk_till_pnc_close_reason" - }, - { - "name": "anemicStatus", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_anaemic_status" - }, - { - "name": "pih", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_pih" - }, - { - "name": "preEclampsia", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_pre_eclampsia" - }, - { - "name": "jaundice", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_jaundice" - }, - { - "name": "isHighRisk", - "bind": "/model/instance/PNC_Registration_EngKan/is_high_risk" - }, - { - "name": "isBirthPlanningDone", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_birth_planning" - }, - { - "name": "highRiskReason", - "bind": "/model/instance/PNC_Registration_EngKan/high_risk_reason" - }, - { - "name": "submissionDate", - "bind": "/model/instance/PNC_Registration_EngKan/today" - }, - { - "name": "type", - "value": "PNC", - "source": "mother.type" - }, - { - "name": "numberOfLivingChildren", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_num_livingchildren", - "source": "mother.eligible_couple.numberOfLivingChildren" - }, - { - "name": "numberOfLivingChildren", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/num_livingchildren", - "source": "mother.eligible_couple.numberOfLivingChildren" - }, - { - "name": "numberOfChildrenBorn", - "bind": "/model/instance/PNC_Registration_EngKan/num_children_born" - }, - { - "name": "numberOfFemaleChildrenBorn", - "bind": "/model/instance/PNC_Registration_EngKan/num_female_children_born" - }, - { - "name": "numberOfMaleChildrenBorn", - "bind": "/model/instance/PNC_Registration_EngKan/num_male_children_born" - }, - { - "name": "numberOfLivingFemaleChild", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_numlivingchildren_female", - "source": "mother.eligible_couple.numberOfLivingChildrenFemale" - }, - { - "name": "numberOfLivingFemaleChild", - "bind": "/model/instance/PNC_Registration_EngKan/numlivingchildren_female", - "source": "mother.eligible_couple.numberOfLivingChildrenFemale" - }, - { - "name": "numberOfLivingMaleChild", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_numlivingchildren_male", - "source": "mother.eligible_couple.numberOfLivingMaleChild" - }, - { - "name": "numberOfLivingMaleChild", - "bind": "/model/instance/PNC_Registration_EngKan/numlivingchildren_male", - "source": "mother.eligible_couple.numberOfLivingMaleChild" - }, - { - "name": "youngestChildDOB", - "bind": "/model/instance/PNC_Registration_EngKan/youngestchild_date_of_birth", - "source": "mother.eligible_couple.youngestChildDOB" - }, - { - "name": "youngestChildAge", - "bind": "/model/instance/PNC_Registration_EngKan/youngestchild_age", - "source": "mother.eligible_couple.youngestChildAge" - } - ], - "sub_forms": [ - { - "name": "child_registration", - "bind_type": "child", - "default_bind_path": "/model/instance/PNC_Registration_EngKan/live_birth_group/child", - "fields": [ - { - "name": "id", - "shouldLoadValue": true - }, - { - "name": "gender", - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/child/sex_child" - }, - { - "name": "weight", - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/child/birthweight" - }, - { - "name": "bloodGroup", - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/child/child_blood_group" - }, - { - "name": "immunizationsGiven", - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/child/immunizations_atbirth" - }, - { - "name": "hepB", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/child/case_hepb" - }, - { - "name": "isHepBProphylaxisProvided", - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/child/hepb_prophylaxis_provided" - }, - { - "name": "isChildHighRisk1", - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/child/is_child_high_risk1" - }, - { - "name": "childHighRiskReasons", - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/child/child_high_risk_reasons" - }, - { - "name": "isChildHighRisk", - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/child/is_child_high_risk" - }, - { - "name": "lbw", - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/child/lbw" - }, - { - "name": "vlbw", - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/child/vlbw" - }, - { - "name": "premature", - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/child/premature" - } - ] - } - ] - } -} diff --git a/opensrp-form/src/test/resources/form/repeatform/form_submission.json b/opensrp-form/src/test/resources/form/repeatform/form_submission.json deleted file mode 100644 index b3b6f6de29..0000000000 --- a/opensrp-form/src/test/resources/form/repeatform/form_submission.json +++ /dev/null @@ -1,452 +0,0 @@ -{ - "anmId": "admin", - "instanceId": "f7974258-1aea-40ae-6676-9ddddddcccc9", - "clientVersion": "1426830449320", - "entityId": "b716d938-1aea-40ae-a081-9ddddddcccc9", - "formDataDefinitionVersion": "5", - "formName": "repeatform", - "formInstance": { - "form_data_definition_version": "5", - "form": { - "bind_type": "mother", - "default_bind_path": "/model/instance/PNC_Registration_EngKan/", - "fields": [ - { - "name": "id", - "shouldLoadValue": true, - "source": "mother.id", - "value": "7efb9e31-0e26-496e-bd16-e09a3b0d1a31" - }, - { - "name": "ecId", - "shouldLoadValue": true, - "source": "mother.eligible_couple.id", - "value": "aa786612-e7a8-4fea-b733-3de4d898f4d6" - }, - { - "name": "referenceDate", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_lmp", - "source": "mother.referenceDate", - "value": "2014-02-20" - }, - { - "name": "referenceDate", - "bind": "/model/instance/PNC_Registration_EngKan/delivery_date", - "source": "mother.referenceDate", - "value": "2015-02-20" - }, - { - "name": "deliveryRegistrationDate", - "bind": "/model/instance/PNC_Registration_EngKan/delivery_reg_date", - "source": "mother.deliveryRegistrationDate", - "value": "2015-03-20" - }, - { - "name": "deliveryPlace", - "bind": "/model/instance/PNC_Registration_EngKan/place_delivery", - "source": "mother.deliveryPlace", - "value": "home" - }, - { - "name": "deliveryFacilityName", - "bind": "/model/instance/PNC_Registration_EngKan/name_delivery_facility", - "source": "mother.deliveryFacilityName" - }, - { - "name": "isThisOnlyDeliveryFacility", - "bind": "/model/instance/PNC_Registration_EngKan/only_delivery_facility", - "source": "mother.isThisOnlyDeliveryFacility", - "value": "yes" - }, - { - "name": "additionalDeliveryFacility", - "bind": "/model/instance/PNC_Registration_EngKan/addl_delivery_facility", - "source": "mother.additionalDeliveryFacility" - }, - { - "name": "reasonsForAdditionalDeliveryFacility", - "bind": "/model/instance/PNC_Registration_EngKan/reasons_addl_delivery_facility", - "source": "mother.reasonsForAdditionalDeliveryFacility" - }, - { - "name": "otherReasonsForAdditionalDeliveryFacility", - "bind": "/model/instance/PNC_Registration_EngKan/other_reasons_addl_delivery_facility", - "source": "mother.otherReasonsForAdditionalDeliveryFacility" - }, - { - "name": "isSkilledDelivery", - "bind": "/model/instance/PNC_Registration_EngKan/skilled_delivery", - "source": "mother.isSkilledDelivery", - "value": "yes" - }, - { - "name": "deliveryType", - "bind": "/model/instance/PNC_Registration_EngKan/type_delivery", - "source": "mother.deliveryType", - "value": "normal" - }, - { - "name": "deliveryOutcome", - "bind": "/model/instance/PNC_Registration_EngKan/delivery_outcome", - "source": "mother.deliveryOutcome", - "value": "live_birth" - }, - { - "name": "parity", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_parity", - "source": "mother.eligible_couple.parity", - "value": "0" - }, - { - "name": "parity", - "bind": "/model/instance/PNC_Registration_EngKan/parity", - "source": "mother.eligible_couple.parity", - "value": "1" - }, - { - "name": "numberOfLiveBirths", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_num_livebirths", - "source": "mother.eligible_couple.numberOfLiveBirths", - "value": "0" - }, - { - "name": "numberOfLiveBirths", - "bind": "/model/instance/PNC_Registration_EngKan/num_livebirths", - "source": "mother.eligible_couple.numberOfLiveBirths", - "value": "1" - }, - { - "name": "numberOfStillBirths", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_num_stillbirths", - "source": "mother.eligible_couple.numberOfStillBirths", - "value": "0" - }, - { - "name": "numberOfStillBirths", - "bind": "/model/instance/PNC_Registration_EngKan/num_stillbirths", - "source": "mother.eligible_couple.numberOfStillBirths" - }, - { - "name": "causeOfStillBirth", - "bind": "/model/instance/PNC_Registration_EngKan/still_birth_group/cause_of_still_birth", - "source": "mother.causeOfStillBirth" - }, - { - "name": "didWomanSurvive", - "bind": "/model/instance/PNC_Registration_EngKan/still_birth_group/woman_survived", - "source": "mother.didWomanSurvive" - }, - { - "name": "didMotherSurvive", - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/mother_survived", - "source": "mother.didMotherSurvive", - "value": "yes" - }, - { - "name": "didBreastfeedingStart", - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/breastfeeding_postbirth", - "source": "mother.didBreastfeedingStart", - "value": "yes" - }, - { - "name": "maternalDeathCause", - "bind": "/model/instance/PNC_Registration_EngKan/maternal_death_group/maternal_death_cause", - "source": "mother.maternalDeathCause" - }, - { - "name": "otherMaternalDeathCause", - "bind": "/model/instance/PNC_Registration_EngKan/maternal_death_group/other_maternal_death_cause", - "source": "mother.otherMaternalDeathCause" - }, - { - "name": "isRHNegative", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/woman_survived_group/case_w_rh_negative", - "source": "mother.isRHNegative" - }, - { - "name": "isRHInjectionGiven", - "bind": "/model/instance/PNC_Registration_EngKan/woman_survived_group/rh_injection_given", - "source": "mother.isRHInjectionGiven" - }, - { - "name": "hadDeliveryComplications", - "bind": "/model/instance/PNC_Registration_EngKan/woman_survived_group/had_delivery_complications", - "source": "mother.hadDeliveryComplications", - "value": "yes" - }, - { - "name": "deliveryComplications", - "bind": "/model/instance/PNC_Registration_EngKan/woman_survived_group/complications", - "source": "mother.deliveryComplications", - "value": "hemorrhage placenta_previa" - }, - { - "name": "otherDeliveryComplications", - "bind": "/model/instance/PNC_Registration_EngKan/woman_survived_group/delivery_complications_other", - "source": "mother.otherDeliveryComplications" - }, - { - "name": "isHighRiskTillPNCClose", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_is_high_risk_till_pnc_close", - "source": "mother.isHighRiskTillPNCClose", - "value": "no" - }, - { - "name": "highRiskTillPNCCloseReason", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_is_high_risk_till_pnc_close_reason", - "source": "mother.highRiskTillPNCCloseReason" - }, - { - "name": "anemicStatus", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_anaemic_status", - "source": "mother.anemicStatus" - }, - { - "name": "pih", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_pih", - "source": "mother.pih" - }, - { - "name": "preEclampsia", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_pre_eclampsia", - "source": "mother.preEclampsia" - }, - { - "name": "jaundice", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_jaundice", - "source": "mother.jaundice" - }, - { - "name": "isHighRisk", - "bind": "/model/instance/PNC_Registration_EngKan/is_high_risk", - "source": "mother.isHighRisk", - "value": "yes" - }, - { - "name": "isBirthPlanningDone", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_birth_planning", - "source": "mother.isBirthPlanningDone" - }, - { - "name": "highRiskReason", - "bind": "/model/instance/PNC_Registration_EngKan/high_risk_reason", - "source": "mother.highRiskReason" - }, - { - "name": "submissionDate", - "bind": "/model/instance/PNC_Registration_EngKan/today", - "source": "mother.submissionDate", - "value": "2015-03-20" - }, - { - "name": "type", - "value": "PNC", - "source": "mother.type" - }, - { - "name": "numberOfLivingChildren", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_num_livingchildren", - "source": "mother.eligible_couple.numberOfLivingChildren", - "value": "0" - }, - { - "name": "numberOfLivingChildren", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/num_livingchildren", - "source": "mother.eligible_couple.numberOfLivingChildren", - "value": "3" - }, - { - "name": "numberOfChildrenBorn", - "bind": "/model/instance/PNC_Registration_EngKan/num_children_born", - "source": "mother.numberOfChildrenBorn", - "value": "3" - }, - { - "name": "numberOfFemaleChildrenBorn", - "bind": "/model/instance/PNC_Registration_EngKan/num_female_children_born", - "source": "mother.numberOfFemaleChildrenBorn", - "value": "1" - }, - { - "name": "numberOfMaleChildrenBorn", - "bind": "/model/instance/PNC_Registration_EngKan/num_male_children_born", - "source": "mother.numberOfMaleChildrenBorn", - "value": "2" - }, - { - "name": "numberOfLivingFemaleChild", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_numlivingchildren_female", - "source": "mother.eligible_couple.numberOfLivingChildrenFemale" - }, - { - "name": "numberOfLivingFemaleChild", - "bind": "/model/instance/PNC_Registration_EngKan/numlivingchildren_female", - "source": "mother.eligible_couple.numberOfLivingChildrenFemale", - "value": "NaN" - }, - { - "name": "numberOfLivingMaleChild", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/case_numlivingchildren_male", - "source": "mother.eligible_couple.numberOfLivingMaleChild" - }, - { - "name": "numberOfLivingMaleChild", - "bind": "/model/instance/PNC_Registration_EngKan/numlivingchildren_male", - "source": "mother.eligible_couple.numberOfLivingMaleChild", - "value": "NaN" - }, - { - "name": "youngestChildDOB", - "bind": "/model/instance/PNC_Registration_EngKan/youngestchild_date_of_birth", - "source": "mother.eligible_couple.youngestChildDOB", - "value": "2015-02-20" - }, - { - "name": "youngestChildAge", - "bind": "/model/instance/PNC_Registration_EngKan/youngestchild_age", - "source": "mother.eligible_couple.youngestChildAge", - "value": "0" - } - ], - "sub_forms": [ - { - "name": "child_registration", - "bind_type": "child", - "default_bind_path": "/model/instance/PNC_Registration_EngKan/live_birth_group/child", - "fields": [ - { - "name": "id", - "shouldLoadValue": true, - "source": "child.id" - }, - { - "name": "gender", - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/child/sex_child", - "source": "child.gender" - }, - { - "name": "weight", - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/child/birthweight", - "source": "child.weight" - }, - { - "name": "bloodGroup", - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/child/child_blood_group", - "source": "child.bloodGroup" - }, - { - "name": "immunizationsGiven", - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/child/immunizations_atbirth", - "source": "child.immunizationsGiven" - }, - { - "name": "hepB", - "shouldLoadValue": true, - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/child/case_hepb", - "source": "child.hepB" - }, - { - "name": "isHepBProphylaxisProvided", - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/child/hepb_prophylaxis_provided", - "source": "child.isHepBProphylaxisProvided" - }, - { - "name": "isChildHighRisk1", - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/child/is_child_high_risk1", - "source": "child.isChildHighRisk1" - }, - { - "name": "childHighRiskReasons", - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/child/child_high_risk_reasons", - "source": "child.childHighRiskReasons" - }, - { - "name": "isChildHighRisk", - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/child/is_child_high_risk", - "source": "child.isChildHighRisk" - }, - { - "name": "lbw", - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/child/lbw", - "source": "child.lbw" - }, - { - "name": "vlbw", - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/child/vlbw", - "source": "child.vlbw" - }, - { - "name": "premature", - "bind": "/model/instance/PNC_Registration_EngKan/live_birth_group/child/premature", - "source": "child.premature" - } - ], - "instances": [ - { - "gender": "male", - "weight": "2", - "bloodGroup": "a_negative", - "immunizationsGiven": "bcg", - "hepB": "", - "isHepBProphylaxisProvided": "", - "lbw": "Low_Birth_Weight", - "vlbw": "", - "premature": "", - "isChildHighRisk1": "yes", - "childHighRiskReasons": " Low_Birth_Weight ", - "isChildHighRisk": "yes", - "id": "e9a91c61-0d33-42d3-bf9b-560b4d08c74f" - }, - { - "gender": "male", - "weight": "", - "bloodGroup": "a_negative", - "immunizationsGiven": "bcg", - "hepB": "", - "isHepBProphylaxisProvided": "", - "lbw": "", - "vlbw": "", - "premature": "", - "isChildHighRisk1": "no", - "childHighRiskReasons": "", - "isChildHighRisk": "yes", - "id": "c7305d21-0b90-4c15-a88f-b08338d3aed9" - }, - { - "gender": "female", - "weight": "", - "bloodGroup": "a_negative", - "immunizationsGiven": "bcg", - "hepB": "", - "isHepBProphylaxisProvided": "", - "lbw": "", - "vlbw": "", - "premature": "", - "isChildHighRisk1": "no", - "childHighRiskReasons": "", - "isChildHighRisk": "no", - "id": "6c2d772b-7d6a-4a05-a83d-5168c183ef42" - } - ] - } - ] - } - }, - "serverVersion": "1426877779320" -} \ No newline at end of file diff --git a/opensrp-form/src/test/resources/form/repeatform/model.xml b/opensrp-form/src/test/resources/form/repeatform/model.xml deleted file mode 100644 index 21130a05e8..0000000000 --- a/opensrp-form/src/test/resources/form/repeatform/model.xml +++ /dev/null @@ -1,91 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/opensrp-interface/src/test/java/org.opensrp.dto/ANMDTOTest.java b/opensrp-interface/src/test/java/org.opensrp.dto/ANMDTOTest.java deleted file mode 100644 index 2fd48cef60..0000000000 --- a/opensrp-interface/src/test/java/org.opensrp.dto/ANMDTOTest.java +++ /dev/null @@ -1,35 +0,0 @@ -package org.opensrp.dto; - -import nl.jqno.equalsverifier.EqualsVerifier; -import nl.jqno.equalsverifier.Warning; -import org.junit.Test; -import org.opensrp.dto.utils.PojoTestUtils; - -import static org.junit.Assert.*; - -public class ANMDTOTest { - @Test - public void testAccesors_shouldAccessProperField() { - PojoTestUtils.validateAccessors(ANMDTO.class); - } - - @Test - public void testEqualsAndHashCode() { - EqualsVerifier.forClass(ANMDTO.class).suppress(Warning.NONFINAL_FIELDS).verify(); - } - - @Test - public void testToString() { - String sub_center = "nandanpur"; - String district = "luxmipur"; - LocationDTO locationDTO = new LocationDTO(sub_center, "", "", district, ""); - String name = "1971"; - ANMDTO anmdto = new ANMDTO("", name, locationDTO); - - assertEquals("1971", anmdto.getName()); - assertNotSame("xyz", anmdto.getIdentifier()); - - assertTrue(anmdto.getLocation().toString().contains("sub_center=nandanpur")); - assertFalse(anmdto.toString().contains("district=dhaka")); - } -} diff --git a/opensrp-interface/src/test/java/org.opensrp.dto/ActionDataTest.java b/opensrp-interface/src/test/java/org.opensrp.dto/ActionDataTest.java deleted file mode 100644 index 09bb4d468e..0000000000 --- a/opensrp-interface/src/test/java/org.opensrp.dto/ActionDataTest.java +++ /dev/null @@ -1,103 +0,0 @@ -package org.opensrp.dto; - -import nl.jqno.equalsverifier.EqualsVerifier; -import nl.jqno.equalsverifier.Warning; -import org.joda.time.DateTime; -import org.joda.time.LocalDate; -import org.joda.time.format.DateTimeFormat; -import org.joda.time.format.DateTimeFormatter; -import org.junit.Test; -import org.opensrp.dto.utils.PojoTestUtils; - -import java.util.HashMap; -import java.util.Map; - -import static org.junit.Assert.*; - -public class ActionDataTest { - @Test - public void testAccesors_shouldAccessProperField() { - PojoTestUtils.validateAccessors(ActionData.class); - } - - @Test - public void testEqualsAndHashCode() { - EqualsVerifier.forClass(ActionData.class).suppress(Warning.NONFINAL_FIELDS).verify(); - } - - @Test - public void testCreateAlert() { - String dateString = "2017-07-20"; - DateTimeFormatter formatter = DateTimeFormat.forPattern("yyyy-MM-dd"); - DateTime dt = formatter.parseDateTime(dateString); - AlertStatus alertStatus = AlertStatus.closed; - DateTime startDate = dt; - DateTime expiryDate = dt; - - ActionData actionData = ActionData.createAlert(BeneficiaryType.mother.toString(), ActionData.SCHEDULE_NAME, - ActionData.VISIT_CODE, alertStatus, startDate, expiryDate); - assertEquals("alert", actionData.getTarget()); - assertEquals("createAlert", actionData.getType()); - assertNotSame("xyz", actionData.getTarget()); - - assertEquals("mother", actionData.getData().get(ActionData.BENEFICIARY_TYPE)); - assertEquals("2017-07-20", actionData.getData().get(ActionData.START_DATE)); - assertNotSame(new DateTime().toLocalDate().toString(), actionData.getData().get(ActionData.START_DATE)); - - assertTrue(actionData.toString().contains("alert")); - assertFalse(actionData.toString().contains("Hooooooooo")); - } - - @Test - public void testMarkAlertAsClosed() { - ActionData actionData = ActionData.markAlertAsClosed(ActionData.VISIT_CODE, ActionData.COMPLETION_DATE); - assertEquals("closeAlert", actionData.getType()); - assertNotSame("createAlert", actionData.getType()); - - assertEquals("visitCode", actionData.getData().get(ActionData.VISIT_CODE)); - assertEquals("completionDate", actionData.getData().get(ActionData.COMPLETION_DATE)); - assertNotSame("Habijabi", actionData.getData().get(ActionData.COMPLETION_DATE)); - } - - @Test - public void testreportForIndicator() { - ActionData actionData = ActionData.reportForIndicator("", ActionData.ANNUAL_TARGET, ActionData.MONTHLY_SUMMARIES); - assertEquals("report", actionData.getTarget()); - assertNotSame("indicator", actionData.getType()); - - assertEquals("annualTarget", actionData.getData().get(ActionData.ANNUAL_TARGET)); - assertEquals("monthlySummaries", actionData.getData().get(ActionData.MONTHLY_SUMMARIES)); - assertNotSame("Habijabi", actionData.getData().get(ActionData.ANNUAL_TARGET)); - } - - @Test - public void testcloseBeneficiary() { - ActionData actionData = ActionData.closeBeneficiary("", ActionData.REASON_FOR_CLOSE); - assertEquals("close", actionData.getType()); - assertNotSame("target", actionData.getTarget()); - - assertEquals("reasonForClose", actionData.getData().get(ActionData.REASON_FOR_CLOSE)); - assertNotSame("Habijabi", actionData.getData().get(ActionData.REASON_FOR_CLOSE)); - } - - @Test - public void testFrom() { - Map dataMap = new HashMap<>(); - dataMap.put(BeneficiaryType.child.toString(), "khuki"); - Map detailsMap = new HashMap<>(); - detailsMap.put("village", "nandanpur"); - detailsMap.put("district", "luxmipur"); - String actionType = "type"; - String actionTarget = "actionTarget"; - ActionData actionData = ActionData.from(actionType, actionTarget, dataMap, detailsMap); - - assertEquals("type", actionData.getType()); - assertNotSame("target", actionData.getTarget()); - - - assertEquals("khuki", actionData.getData().get(BeneficiaryType.child.toString())); - assertEquals("luxmipur", actionData.getDetails().get("district")); - assertNotSame("gangapur", actionData.getDetails().get("village")); - - } -} diff --git a/opensrp-interface/src/test/java/org.opensrp.dto/ActionTest.java b/opensrp-interface/src/test/java/org.opensrp.dto/ActionTest.java deleted file mode 100644 index d0da559def..0000000000 --- a/opensrp-interface/src/test/java/org.opensrp.dto/ActionTest.java +++ /dev/null @@ -1,43 +0,0 @@ -package org.opensrp.dto; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; - -import java.util.HashMap; -import java.util.Map; - -import org.junit.Test; -import org.opensrp.dto.utils.PojoTestUtils; - -import nl.jqno.equalsverifier.EqualsVerifier; -import nl.jqno.equalsverifier.Warning; - -public class ActionTest { - @Test - public void testAccesors_shouldAccessProperField() { - PojoTestUtils.validateAccessors(Action.class); - } - - @Test - public void testEqualsAndHashCode() { - EqualsVerifier.forClass(Action.class).suppress(Warning.NONFINAL_FIELDS).verify(); - } - - @Test - public void testToStringAndConstructor() { - String caseID = "AAA7"; - String actionTarget = ""; - String actionType = ""; - Map dataMap = new HashMap<>(); - dataMap.put("1", "data1"); - dataMap.put("2", "data2"); - String timeStamp = ""; - Boolean isActionActive = true; - Map detailsMapd = new HashMap<>(); - Action action = new Action(caseID, actionTarget, actionType, dataMap, timeStamp, isActionActive, detailsMapd); - assertEquals("data2", action.get("2")); - assertTrue(action.toString().contains(caseID)); - assertFalse(action.toString().contains("80%")); - } -} diff --git a/opensrp-interface/src/test/java/org.opensrp.dto/MonthSummaryDatumTest.java b/opensrp-interface/src/test/java/org.opensrp.dto/MonthSummaryDatumTest.java deleted file mode 100644 index d6923eb469..0000000000 --- a/opensrp-interface/src/test/java/org.opensrp.dto/MonthSummaryDatumTest.java +++ /dev/null @@ -1,41 +0,0 @@ -package org.opensrp.dto; - -import nl.jqno.equalsverifier.EqualsVerifier; -import nl.jqno.equalsverifier.Warning; -import org.junit.Test; -import org.opensrp.dto.utils.PojoTestUtils; - -import java.util.ArrayList; -import java.util.List; - -import static org.junit.Assert.*; - -public class MonthSummaryDatumTest { - @Test - public void testAccesors_shouldAccessProperField() { - PojoTestUtils.validateAccessors(MonthSummaryDatum.class); - } - - @Test - public void testEqualsAndHashCode() { - EqualsVerifier.forClass(MonthSummaryDatum.class).suppress(Warning.NONFINAL_FIELDS).verify(); - } - - @Test - public void testToStringAndConstructors() { - List externalIDsList = new ArrayList<>(); - externalIDsList.add("999"); - String month = "7"; - String year = "2017"; - String currentProgress = "80%"; - String aggregatedProgress = "50%"; - MonthSummaryDatum monthSummaryDatum = new MonthSummaryDatum(month, year, currentProgress, aggregatedProgress, externalIDsList); - - assertEquals("7", monthSummaryDatum.getMonth()); - assertNotSame("2018", monthSummaryDatum.getYear()); - - assertTrue(monthSummaryDatum.toString().contains(currentProgress)); - assertFalse(monthSummaryDatum.toString().contains("898")); - - } -} diff --git a/opensrp-interface/src/test/java/org.opensrp.dto/VillagesDTOTest.java b/opensrp-interface/src/test/java/org.opensrp.dto/VillagesDTOTest.java deleted file mode 100644 index 3d3f59c24a..0000000000 --- a/opensrp-interface/src/test/java/org.opensrp.dto/VillagesDTOTest.java +++ /dev/null @@ -1,39 +0,0 @@ -package org.opensrp.dto; - -import nl.jqno.equalsverifier.EqualsVerifier; -import nl.jqno.equalsverifier.Warning; -import org.junit.Test; -import org.opensrp.dto.utils.PojoTestUtils; - -import java.util.ArrayList; -import java.util.List; - -import static org.junit.Assert.*; - -public class VillagesDTOTest { - @Test - public void testAccesors_shouldAccessProperField() { - PojoTestUtils.validateAccessors(VillagesDTO.class); - } - - @Test - public void testEqualsAndHashCode() { - EqualsVerifier.forClass(VillagesDTO.class).suppress(Warning.NONFINAL_FIELDS).verify(); - } - - - @Test - public void testToString() { - String sub_center = "nandanpur"; - String district = "luxmipur"; - List villagesList = new ArrayList<>(); - VillagesDTO villagesDTO = new VillagesDTO(district, "", "", sub_center, villagesList); - System.out.println(villagesDTO.toString()); - assertEquals("luxmipur", villagesDTO.getDistrict()); - assertNotSame("xyz", villagesDTO.getPhcIdentifier()); - - assertTrue(villagesDTO.toString().contains("subCenter=nandanpur")); - assertFalse(villagesDTO.toString().contains("district=dhaka")); - } - -} diff --git a/opensrp-interface/src/test/java/org.opensrp.dto/aggregatorResponse/AggregatorResponseDTOTest.java b/opensrp-interface/src/test/java/org.opensrp.dto/aggregatorResponse/AggregatorResponseDTOTest.java deleted file mode 100644 index 130d51f10a..0000000000 --- a/opensrp-interface/src/test/java/org.opensrp.dto/aggregatorResponse/AggregatorResponseDTOTest.java +++ /dev/null @@ -1,35 +0,0 @@ -package org.opensrp.dto.aggregatorResponse; - - -import nl.jqno.equalsverifier.EqualsVerifier; -import nl.jqno.equalsverifier.Warning; -import org.junit.Test; - -import static junit.framework.Assert.assertEquals; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertNotSame; -import static org.junit.Assert.assertTrue; - -/** - * Created by real on 13/07/17. - */ -public class AggregatorResponseDTOTest { - @Test - public void testConstructorsNGetters() { - AggregatorResponseDTO aggregatorResponseDTO = new AggregatorResponseDTO("indicator", 7); - assertEquals("indicator", aggregatorResponseDTO.indicator()); - assertNotSame("no Indicator", aggregatorResponseDTO.indicator()); - - assertEquals((Integer) 7, aggregatorResponseDTO.count()); - assertNotSame((Integer) 8, aggregatorResponseDTO.count()); - - assertTrue(aggregatorResponseDTO.toString().contains("indicator=indicator")); - assertFalse(aggregatorResponseDTO.toString().contains("nrhm_report_indicator_count=3")); - } - - @Test - public void testEqualsAndHashCode() { - EqualsVerifier.forClass(AggregatorResponseDTO.class).suppress(Warning.NONFINAL_FIELDS).verify(); - } - -} diff --git a/opensrp-interface/src/test/java/org.opensrp.dto/form/FormSubmissionDTOTest.java b/opensrp-interface/src/test/java/org.opensrp.dto/form/FormSubmissionDTOTest.java deleted file mode 100644 index f484db663c..0000000000 --- a/opensrp-interface/src/test/java/org.opensrp.dto/form/FormSubmissionDTOTest.java +++ /dev/null @@ -1,36 +0,0 @@ -package org.opensrp.dto.form; - -import nl.jqno.equalsverifier.EqualsVerifier; -import nl.jqno.equalsverifier.Warning; -import org.junit.Test; -import org.opensrp.dto.utils.PojoTestUtils; - -import static org.junit.Assert.*; - -/** - * Created by real on 13/07/17. - */ -public class FormSubmissionDTOTest { - - @Test - public void testAccesors_shouldAccessProperField() { - PojoTestUtils.validateAccessors(FormSubmissionDTO.class); - } - - @Test - public void testEqualsAndHashCode() { - EqualsVerifier.forClass(FormSubmissionDTO.class).suppress(Warning.NONFINAL_FIELDS).verify(); - } - - @Test - public void testWithServerVersion() { - FormSubmissionDTO formSubmissionDTO = new FormSubmissionDTO("anmId", "hi", "", "", "", "", ""); - formSubmissionDTO.withServerVersion("version"); - assertEquals("version", formSubmissionDTO.getServerVersion()); - assertNotSame("null ", formSubmissionDTO.getServerVersion()); - - assertTrue(formSubmissionDTO.toString().contains("anmId=anmId")); - assertFalse(formSubmissionDTO.toString().contains("instanceId=instanceId")); - } -} - diff --git a/opensrp-interface/src/test/java/org.opensrp.dto/form/MultimediaDTOTest.java b/opensrp-interface/src/test/java/org.opensrp.dto/form/MultimediaDTOTest.java deleted file mode 100644 index b075b0c6f9..0000000000 --- a/opensrp-interface/src/test/java/org.opensrp.dto/form/MultimediaDTOTest.java +++ /dev/null @@ -1,35 +0,0 @@ -package org.opensrp.dto.form; - -import nl.jqno.equalsverifier.EqualsVerifier; -import nl.jqno.equalsverifier.Warning; -import org.junit.Test; -import org.opensrp.dto.utils.PojoTestUtils; - -import static org.junit.Assert.*; - - -/** - * Created by real on 13/07/17. - */ -public class MultimediaDTOTest { - @Test - public void testAccesors_shouldAccessProperField() { - PojoTestUtils.validateAccessors(MultimediaDTO.class); - } - - @Test - public void testEqualsAndHashCode() { - EqualsVerifier.forClass(MultimediaDTO.class).suppress(Warning.NONFINAL_FIELDS).verify(); - } - - @Test - public void testWithFilePath_Constructor_toString() { - MultimediaDTO multimediaDTO = new MultimediaDTO("786", "", "", "", ""); - multimediaDTO.withFilePath("desktop"); - assertEquals("desktop", multimediaDTO.getFilePath()); - assertNotSame("home", multimediaDTO.getFilePath()); - - assertTrue(multimediaDTO.toString().contains("caseId=786")); - assertFalse(multimediaDTO.toString().contains("providerId=222")); - } -} diff --git a/opensrp-interface/src/test/java/org.opensrp.dto/register/ANCRegisterDTOTest.java b/opensrp-interface/src/test/java/org.opensrp.dto/register/ANCRegisterDTOTest.java deleted file mode 100644 index 7670484efc..0000000000 --- a/opensrp-interface/src/test/java/org.opensrp.dto/register/ANCRegisterDTOTest.java +++ /dev/null @@ -1,34 +0,0 @@ -package org.opensrp.dto.register; - -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; - -import java.util.ArrayList; -import java.util.List; - -import org.junit.Test; - -import nl.jqno.equalsverifier.EqualsVerifier; -import nl.jqno.equalsverifier.Warning; - -/** - * Created by real on 13/07/17. - */ -public class ANCRegisterDTOTest { - @Test - public void testEqualsAndHashCode() { - EqualsVerifier.forClass(ANCRegisterDTO.class).suppress(Warning.NONFINAL_FIELDS).verify(); - } - - @Test - public void testConstructor_toString() { - List ancRegisterEntries = new ArrayList<>(); - ANCRegisterEntryDTO ancRegisterEntryDTO = new ANCRegisterEntryDTO(); - ancRegisterEntries.add(ancRegisterEntryDTO.withANCNumber("anc1")); - ANCRegisterDTO ancRegisterDTO = new ANCRegisterDTO(ancRegisterEntries); - - assertTrue(ancRegisterDTO.toString().contains("ancNumber=anc1")); - assertFalse(ancRegisterDTO.toString().contains("registrationDate=2017-07-13")); - } - -} diff --git a/opensrp-interface/src/test/java/org.opensrp.dto/register/ANCRegisterEntryDTOTest.java b/opensrp-interface/src/test/java/org.opensrp.dto/register/ANCRegisterEntryDTOTest.java deleted file mode 100644 index fa53c2777c..0000000000 --- a/opensrp-interface/src/test/java/org.opensrp.dto/register/ANCRegisterEntryDTOTest.java +++ /dev/null @@ -1,90 +0,0 @@ -package org.opensrp.dto.register; - -import nl.jqno.equalsverifier.EqualsVerifier; -import nl.jqno.equalsverifier.Warning; -import org.junit.Test; -import org.opensrp.dto.utils.PojoTestUtils; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; - -/** - * Created by real on 13/07/17. - */ -public class ANCRegisterEntryDTOTest { - - @Test - public void testWithANCNumber() { - Map mapUtils = new HashMap<>(); - mapUtils.put("key", "value"); - - List> ancVisitsList = new ArrayList<>(); - ancVisitsList.add(mapUtils); - - List> ifaTabletsList = new ArrayList<>(); - ifaTabletsList.add(mapUtils); - - List> ttDosesList = new ArrayList<>(); - ttDosesList.add(mapUtils); - - List> hbTestsList = new ArrayList<>(); - hbTestsList.add(mapUtils); - - List> ancInvestigationsList = new ArrayList<>(); - ancInvestigationsList.add(mapUtils); - - ANCRegisterEntryDTO ancRegisterEntryDTO = new ANCRegisterEntryDTO() - .withANCNumber("anc1") - .withRegistrationDate("registrationDate") - .withECNumber("") - .withThayiCardNumber("") - .withAadharCardNumber("") - .withWifeName("") - .withHusbandName("") - .withAddress("") - .withWifeDOB("") - .withPhoneNumber("") - .withWifeEducationLevel("") - .withHusbandEducationLevel("") - .withCaste("") - .withReligion("") - .withEconomicStatus("") - .withBPLCardNumber("") - .withJSYBeneficiary("") - .withGravida("") - .withParity("") - .withNumberOfLivingChildren("") - .withNumberOfStillBirths("") - .withNumberOfAbortions("") - .withYoungestChildDOB("") - .withLMP("") - .withEDD("") - .withHeight("") - .withBloodGroup("") - .withIsHRP("") - .withANCVisits(ancVisitsList) - .withIFATablets(ifaTabletsList) - .withTTDoses(ttDosesList) - .withHBTests(hbTestsList) - .withANCInvestigations(ancInvestigationsList); - System.out.println(ancRegisterEntryDTO.toString()); - - assertTrue(ancRegisterEntryDTO.toString().contains("ancNumber=anc1")); - assertFalse(ancRegisterEntryDTO.toString().contains("husbandName=real")); - } - - @Test - public void testAccesors_shouldAccessProperField() { - PojoTestUtils.validateAccessors(ANCRegisterEntryDTO.class); - } - - @Test - public void testEqualsAndHashCode() { - EqualsVerifier.forClass(ANCRegisterEntryDTO.class).suppress(Warning.NONFINAL_FIELDS).verify(); - } -} diff --git a/opensrp-interface/src/test/java/org.opensrp.dto/register/ANMDetailDTOTest.java b/opensrp-interface/src/test/java/org.opensrp.dto/register/ANMDetailDTOTest.java deleted file mode 100644 index 58f8e20763..0000000000 --- a/opensrp-interface/src/test/java/org.opensrp.dto/register/ANMDetailDTOTest.java +++ /dev/null @@ -1,33 +0,0 @@ -package org.opensrp.dto.register; - -import nl.jqno.equalsverifier.EqualsVerifier; -import nl.jqno.equalsverifier.Warning; -import org.junit.Test; -import org.opensrp.dto.LocationDTO; -import org.opensrp.dto.utils.PojoTestUtils; - -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; - -/** - * Created by real on 13/07/17. - */ -public class ANMDetailDTOTest { - @Test - public void testAccesors_shouldAccessProperField() { - PojoTestUtils.validateAccessors(ANMDetailDTO.class); - } - - @Test - public void testEqualsAndHashCode() { - EqualsVerifier.forClass(ANMDetailDTO.class).suppress(Warning.NONFINAL_FIELDS).verify(); - } - - @Test - public void testToString() { - LocationDTO location = new LocationDTO("nandanpur", "", "", "", ""); - ANMDetailDTO anmDetailDTO = new ANMDetailDTO("", "real", location, 1, 2, 3, 4, 5); - assertTrue(anmDetailDTO.toString().contains("name=real")); - assertFalse(anmDetailDTO.toString().contains("identifier= 123")); - } -} diff --git a/opensrp-interface/src/test/java/org.opensrp.dto/register/ANMDetailsDTOTest.java b/opensrp-interface/src/test/java/org.opensrp.dto/register/ANMDetailsDTOTest.java deleted file mode 100644 index 1bac0d060f..0000000000 --- a/opensrp-interface/src/test/java/org.opensrp.dto/register/ANMDetailsDTOTest.java +++ /dev/null @@ -1,41 +0,0 @@ -package org.opensrp.dto.register; - -import nl.jqno.equalsverifier.EqualsVerifier; -import nl.jqno.equalsverifier.Warning; -import org.junit.Test; -import org.opensrp.dto.LocationDTO; -import org.opensrp.dto.utils.PojoTestUtils; - -import java.util.ArrayList; -import java.util.List; - -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; - -/** - * Created by real on 13/07/17. - */ -public class ANMDetailsDTOTest { - @Test - public void testAccesors_shouldAccessProperField() { - PojoTestUtils.validateAccessors(ANMDetailsDTO.class); - } - - @Test - public void testEqualsAndHashCode() { - EqualsVerifier.forClass(ANMDetailsDTO.class).suppress(Warning.NONFINAL_FIELDS).verify(); - } - - @Test - public void testConstructorAndToString() { - List anmDetailList = new ArrayList<>(); - LocationDTO location = new LocationDTO("nandanpur", "", "", "", ""); - ANMDetailDTO anmDetailDTO = new ANMDetailDTO("", "real", location, 1, 2, 3, 4, 5); - anmDetailList.add(anmDetailDTO); - ANMDetailsDTO anmDetailsDTO = new ANMDetailsDTO(anmDetailList); - - assertTrue(anmDetailsDTO.toString().contains("name=real")); - assertTrue(anmDetailsDTO.toString().contains("sub_center=nandanpur")); - assertFalse(anmDetailsDTO.toString().contains("district= luxmipur")); - } -} diff --git a/opensrp-interface/src/test/java/org.opensrp.dto/register/ChildRegisterDTOTest.java b/opensrp-interface/src/test/java/org.opensrp.dto/register/ChildRegisterDTOTest.java deleted file mode 100644 index 248b4fd9cc..0000000000 --- a/opensrp-interface/src/test/java/org.opensrp.dto/register/ChildRegisterDTOTest.java +++ /dev/null @@ -1,39 +0,0 @@ -package org.opensrp.dto.register; - -import nl.jqno.equalsverifier.EqualsVerifier; -import nl.jqno.equalsverifier.Warning; -import org.junit.Test; -import org.opensrp.dto.utils.PojoTestUtils; - -import java.util.ArrayList; -import java.util.List; - -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; - -/** - * Created by real on 17/07/17. - */ -public class ChildRegisterDTOTest { - @Test - public void testAccesors_shouldAccessProperField() { - PojoTestUtils.validateAccessors(ChildRegisterDTO.class); - } - - @Test - public void testEqualsAndHashCode() { - EqualsVerifier.forClass(ChildRegisterDTO.class).suppress(Warning.NONFINAL_FIELDS).verify(); - } - - @Test - public void testToStringOfChildRegisterDTO() { - ChildRegisterEntryDTO childRegisterEntryDTO = new ChildRegisterEntryDTO().withVillage("gangapur"); - List childRegisterEntriesList = new ArrayList<>(); - childRegisterEntriesList.add(childRegisterEntryDTO); - - ChildRegisterDTO childRegisterDTO = new ChildRegisterDTO(childRegisterEntriesList); - assertTrue(childRegisterDTO.toString().contains("village=gangapur")); - assertFalse(childRegisterDTO.toString().contains("thayiCardNumber=19945114390000347")); - - } -} diff --git a/opensrp-interface/src/test/java/org.opensrp.dto/register/ChildRegisterEntryDTOTest.java b/opensrp-interface/src/test/java/org.opensrp.dto/register/ChildRegisterEntryDTOTest.java deleted file mode 100644 index a77f4245ba..0000000000 --- a/opensrp-interface/src/test/java/org.opensrp.dto/register/ChildRegisterEntryDTOTest.java +++ /dev/null @@ -1,50 +0,0 @@ -package org.opensrp.dto.register; - -import nl.jqno.equalsverifier.EqualsVerifier; -import nl.jqno.equalsverifier.Warning; -import org.junit.Test; -import org.opensrp.dto.utils.PojoTestUtils; - -import java.util.HashMap; -import java.util.Map; - -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; - -public class ChildRegisterEntryDTOTest { - @Test - public void testAccesors_shouldAccessProperField() { - PojoTestUtils.validateAccessors(ChildRegisterEntryDTO.class); - } - - @Test - public void testEqualsAndHashCode() { - EqualsVerifier.forClass(ChildRegisterEntryDTO.class).suppress(Warning.NONFINAL_FIELDS).verify(); - } - - @Test - public void testSettersOfChildRegisterEntryDTO() { - Map immunizationsMap = new HashMap<>(); - immunizationsMap.put("1", "sunday"); - Map vitaminADosesMap = new HashMap<>(); - vitaminADosesMap.put("1", "vitamin A"); - - ChildRegisterEntryDTO childRegisterEntryDTO = new ChildRegisterEntryDTO(); - childRegisterEntryDTO.withThayiCardNumber(""); - childRegisterEntryDTO.withWifeName(""); - childRegisterEntryDTO.withHusbandName("real"); - childRegisterEntryDTO.withVillage("nandanpur"); - childRegisterEntryDTO.withSubCenter(""); - childRegisterEntryDTO.withWifeDOB(""); - childRegisterEntryDTO.withDOB(""); - childRegisterEntryDTO.withImmunizations(immunizationsMap); - childRegisterEntryDTO.withVitaminADoses(vitaminADosesMap); - - //System.out.println(childRegisterEntryDTO.toString()); - assertTrue(childRegisterEntryDTO.toString().contains("village=nandanpur")); - assertTrue(childRegisterEntryDTO.toString().contains("vitaminADoses={1=vitamin A}")); - assertFalse(childRegisterEntryDTO.toString().contains("husband=mamun")); - - - } -} diff --git a/opensrp-interface/src/test/java/org.opensrp.dto/register/CondomFPDetailsDTOTest.java b/opensrp-interface/src/test/java/org.opensrp.dto/register/CondomFPDetailsDTOTest.java deleted file mode 100644 index 2cd98a6d5b..0000000000 --- a/opensrp-interface/src/test/java/org.opensrp.dto/register/CondomFPDetailsDTOTest.java +++ /dev/null @@ -1,40 +0,0 @@ -package org.opensrp.dto.register; - -import nl.jqno.equalsverifier.EqualsVerifier; -import nl.jqno.equalsverifier.Warning; -import org.junit.Test; -import org.opensrp.dto.utils.PojoTestUtils; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; - -public class CondomFPDetailsDTOTest { - @Test - public void testAccesors_shouldAccessProperField() { - PojoTestUtils.validateAccessors(CondomFPDetailsDTO.class); - } - - @Test - public void testEqualsAndHashCode() { - EqualsVerifier.forClass(CondomFPDetailsDTO.class).suppress(Warning.NONFINAL_FIELDS).verify(); - } - - @Test - public void testToString() { - Map map = new HashMap<>(); - List> refillsList = new ArrayList<>(); - map.put("a", "panther"); - map.put("b", "raja"); - refillsList.add(map); - CondomFPDetailsDTO condomFPDetailsDTO = new CondomFPDetailsDTO("19-07-2017", refillsList); - - assertTrue(condomFPDetailsDTO.toString().contains("fpAcceptanceDate=19-07-2017")); - assertTrue(condomFPDetailsDTO.toString().contains("a=panther")); - assertFalse(condomFPDetailsDTO.toString().contains("b=sensation")); - } -} diff --git a/opensrp-interface/src/test/java/org.opensrp.dto/register/CondomRegisterEntryDTOTest.java b/opensrp-interface/src/test/java/org.opensrp.dto/register/CondomRegisterEntryDTOTest.java deleted file mode 100644 index 3e32d4ae7f..0000000000 --- a/opensrp-interface/src/test/java/org.opensrp.dto/register/CondomRegisterEntryDTOTest.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.opensrp.dto.register; - -import nl.jqno.equalsverifier.EqualsVerifier; -import nl.jqno.equalsverifier.Warning; -import org.junit.Test; -import org.opensrp.dto.utils.PojoTestUtils; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; - -public class CondomRegisterEntryDTOTest { - @Test - public void testAccesors_shouldAccessProperField() { - PojoTestUtils.validateAccessors(CondomRegisterEntryDTO.class); - } - - @Test - public void testEqualsAndHashCode() { - EqualsVerifier.forClass(CondomRegisterEntryDTO.class).suppress(Warning.NONFINAL_FIELDS).verify(); - } - - @Test - public void testToString() { - Map map = new HashMap<>(); - List> refillsList = new ArrayList<>(); - map.put("a", "panther"); - map.put("b", "raja"); - refillsList.add(map); - CondomFPDetailsDTO condomFPDetailsDTO = new CondomFPDetailsDTO("19-07-2017", refillsList); - - CondomRegisterEntryDTO condomRegisterEntryDTO = new CondomRegisterEntryDTO().withEcNumber("") - .withWifeName("akhi") - .withHusbandName("") - .withVillage("gangapur") - .withSubCenter("nandanpur") - .withWifeAge("16") - .withCaste("") - .withReligion("") - .withNumberOfLivingMaleChildren("") - .withNumberOfLivingFemaleChildren("") - .withHusbandEducationLevel("") - .withWifeEducationLevel("") - .withFpDetails(condomFPDetailsDTO); - - assertTrue(condomRegisterEntryDTO.toString().contains("wifeName=akhi")); - assertFalse(condomRegisterEntryDTO.toString().contains("wifeAge=18")); - } -} diff --git a/opensrp-interface/src/test/java/org.opensrp.dto/register/ECRegisterDTOTest.java b/opensrp-interface/src/test/java/org.opensrp.dto/register/ECRegisterDTOTest.java deleted file mode 100644 index ccfbd4ed7b..0000000000 --- a/opensrp-interface/src/test/java/org.opensrp.dto/register/ECRegisterDTOTest.java +++ /dev/null @@ -1,36 +0,0 @@ -package org.opensrp.dto.register; - -import nl.jqno.equalsverifier.EqualsVerifier; -import nl.jqno.equalsverifier.Warning; -import org.junit.Test; -import org.opensrp.dto.utils.PojoTestUtils; - -import java.util.ArrayList; -import java.util.List; - -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; - -public class ECRegisterDTOTest { - @Test - public void testAccesors_shouldAccessProperField() { - PojoTestUtils.validateAccessors(ECRegisterDTO.class); - } - - @Test - public void testEqualsAndHashCode() { - EqualsVerifier.forClass(ECRegisterDTO.class).suppress(Warning.NONFINAL_FIELDS).verify(); - } - - @Test - public void testToString() { - List ecRegisterEntriesList = new ArrayList<>(); - ECRegisterEntryDTO ecRegisterEntryDTO = new ECRegisterEntryDTO().withVillage("nandanpur"); - ecRegisterEntriesList.add(ecRegisterEntryDTO); - - ECRegisterDTO ecRegisterDTO = new ECRegisterDTO(ecRegisterEntriesList); - - assertTrue(ecRegisterDTO.toString().contains("village=nandanpur")); - assertFalse(ecRegisterDTO.toString().contains("wifeAge=18")); - } -} diff --git a/opensrp-interface/src/test/java/org.opensrp.dto/register/ECRegisterEntryDTOTest.java b/opensrp-interface/src/test/java/org.opensrp.dto/register/ECRegisterEntryDTOTest.java deleted file mode 100644 index 5b4072ebcf..0000000000 --- a/opensrp-interface/src/test/java/org.opensrp.dto/register/ECRegisterEntryDTOTest.java +++ /dev/null @@ -1,60 +0,0 @@ -package org.opensrp.dto.register; - -import nl.jqno.equalsverifier.EqualsVerifier; -import nl.jqno.equalsverifier.Warning; -import org.junit.Test; -import org.opensrp.dto.utils.PojoTestUtils; - -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertSame; -import static org.junit.Assert.assertTrue; - -public class ECRegisterEntryDTOTest { - @Test - public void testAccesors_shouldAccessProperField() { - PojoTestUtils.validateAccessors(ECRegisterEntryDTO.class); - } - - @Test - public void testEqualsAndHashCode() { - EqualsVerifier.forClass(ECRegisterEntryDTO.class).suppress(Warning.NONFINAL_FIELDS).verify(); - } - - @Test - public void testToStringAndSetters() { - String headOfHousehold = "shawpan"; - String village = "gangpapur"; - ECRegisterEntryDTO ecRegisterEntryDTO = new ECRegisterEntryDTO() - .withRegistrationDate("") - .withECNumber("") - .withWifeName("") - .withHusbandName("") - .withHouseholdAddress("") - .withHouseholdNumber("") - .withHeadOfHousehold(headOfHousehold) - .withVillage(village) - .withSubCenter("") - .withPHC("") - .withWifeAge("") - .withWifeEducationLevel("") - .withHusbandAge("") - .withHusbandEducationLevel("") - .withCaste("") - .withReligion("") - .withEconomicStatus("") - .withGravida("") - .withParity("") - .withNumberOfAbortions("") - .withNumberOfLivingChildren("") - .withNumberOfLivingFemaleChildren("") - .withNumberOfLivingMaleChildren("") - .withNumberOfStillBirths("") - .withYoungestChildAge("") - .withCurrentFPMethod("") - .withCurrentFPMethodStartDate("") - .withPregnancyStatus(""); - - assertTrue(ecRegisterEntryDTO.toString().contains("village=gangpapur")); - assertFalse(ecRegisterEntryDTO.toString().contains("wifeAge=18")); - } -} diff --git a/opensrp-interface/src/test/java/org.opensrp.dto/register/EntityDetailDTOTest.java b/opensrp-interface/src/test/java/org.opensrp.dto/register/EntityDetailDTOTest.java deleted file mode 100644 index 3ea4de8887..0000000000 --- a/opensrp-interface/src/test/java/org.opensrp.dto/register/EntityDetailDTOTest.java +++ /dev/null @@ -1,36 +0,0 @@ -package org.opensrp.dto.register; - -import nl.jqno.equalsverifier.EqualsVerifier; -import nl.jqno.equalsverifier.Warning; -import org.junit.Test; -import org.opensrp.dto.utils.PojoTestUtils; - -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; - -public class EntityDetailDTOTest { - @Test - public void testAccesors_shouldAccessProperField() { - PojoTestUtils.validateAccessors(EntityDetailDTO.class); - } - - @Test - public void testEqualsAndHashCode() { - EqualsVerifier.forClass(EntityDetailDTO.class).suppress(Warning.NONFINAL_FIELDS).verify(); - } - - @Test - public void testToStringAndSetters() { - String entityId = "x2"; - String type = "private"; - final String anmIdentifier = ""; - EntityDetailDTO entityDetailDTO = new EntityDetailDTO() - .withEntityID(entityId) - .withEntityType(type) - .withThayiCardNumber("") - .withECNumber("") - .withANMIdentifier(anmIdentifier); - assertTrue(entityDetailDTO.toString().contains(entityId)); - assertFalse(entityDetailDTO.toString().contains("anmIdentifier=boss")); - } -} diff --git a/opensrp-interface/src/test/java/org.opensrp.dto/register/FPRegisterDTOTest.java b/opensrp-interface/src/test/java/org.opensrp.dto/register/FPRegisterDTOTest.java deleted file mode 100644 index 6f1a4201dd..0000000000 --- a/opensrp-interface/src/test/java/org.opensrp.dto/register/FPRegisterDTOTest.java +++ /dev/null @@ -1,46 +0,0 @@ -package org.opensrp.dto.register; - -import nl.jqno.equalsverifier.EqualsVerifier; -import nl.jqno.equalsverifier.Warning; -import org.junit.Test; -import org.opensrp.dto.utils.PojoTestUtils; - -import java.util.ArrayList; -import java.util.List; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; - -public class FPRegisterDTOTest { - @Test - public void testAccesors_shouldAccessProperField() { - PojoTestUtils.validateAccessors(FPRegisterDTO.class); - } - - @Test - public void testEqualsAndHashCode() { - EqualsVerifier.forClass(FPRegisterDTO.class).suppress(Warning.NONFINAL_FIELDS).verify(); - } - - @Test - public void testToStringAndSetters() { - List iudRegisterEntriesList = new ArrayList<>(); - String husbandName = "sajid"; - IUDRegisterEntryDTO iudRegisterEntryDTO = new IUDRegisterEntryDTO().withHusbandName(husbandName); - iudRegisterEntriesList.add(iudRegisterEntryDTO); - - List condomRegisterEntriesList = new ArrayList<>(); - List ocpRegisterEntriesList = new ArrayList<>(); - List maleSterilizationRegisterEntriesList = new ArrayList<>(); - List femaleSterilizationRegisterEntriesList = new ArrayList<>(); - - Integer reportingYear = 2017; - FPRegisterDTO fpRegisterDTO = new FPRegisterDTO(iudRegisterEntriesList, condomRegisterEntriesList, - ocpRegisterEntriesList, maleSterilizationRegisterEntriesList, femaleSterilizationRegisterEntriesList, reportingYear); - - assertEquals((Integer) 2017, fpRegisterDTO.getReportingYear()); - assertTrue(fpRegisterDTO.toString().contains(husbandName)); - assertFalse(fpRegisterDTO.toString().contains("lmpDate=2017-08-19")); - } -} diff --git a/opensrp-interface/src/test/java/org.opensrp.dto/register/FemaleSterilizationFPDetailsDTOTest.java b/opensrp-interface/src/test/java/org.opensrp.dto/register/FemaleSterilizationFPDetailsDTOTest.java deleted file mode 100644 index adf58e7d3b..0000000000 --- a/opensrp-interface/src/test/java/org.opensrp.dto/register/FemaleSterilizationFPDetailsDTOTest.java +++ /dev/null @@ -1,36 +0,0 @@ -package org.opensrp.dto.register; - -import nl.jqno.equalsverifier.EqualsVerifier; -import nl.jqno.equalsverifier.Warning; -import org.junit.Test; -import org.opensrp.dto.utils.PojoTestUtils; - -import java.util.ArrayList; -import java.util.List; - -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertSame; -import static org.junit.Assert.assertTrue; - -public class FemaleSterilizationFPDetailsDTOTest { - @Test - public void testAccesors_shouldAccessProperField() { - PojoTestUtils.validateAccessors(FemaleSterilizationFPDetailsDTO.class); - } - - @Test - public void testEqualsAndHashCode() { - EqualsVerifier.forClass(FemaleSterilizationFPDetailsDTO.class).suppress(Warning.NONFINAL_FIELDS).verify(); - } - - @Test - public void testToString() { - List followupVisitDatesList = new ArrayList<>(); - String sterilization = "pill"; - FemaleSterilizationFPDetailsDTO femaleSterilizationFPDetailsDTO = new FemaleSterilizationFPDetailsDTO - (sterilization, "", followupVisitDatesList); - assertSame("pill", femaleSterilizationFPDetailsDTO.getTypeOfSterilization()); - assertTrue(femaleSterilizationFPDetailsDTO.toString().contains(sterilization)); - assertFalse(femaleSterilizationFPDetailsDTO.toString().contains("sterilizationDate=2017-07-19")); - } -} diff --git a/opensrp-interface/src/test/java/org.opensrp.dto/register/FemaleSterilizationRegisterEntryDTOTest.java b/opensrp-interface/src/test/java/org.opensrp.dto/register/FemaleSterilizationRegisterEntryDTOTest.java deleted file mode 100644 index 939400b6d6..0000000000 --- a/opensrp-interface/src/test/java/org.opensrp.dto/register/FemaleSterilizationRegisterEntryDTOTest.java +++ /dev/null @@ -1,56 +0,0 @@ -package org.opensrp.dto.register; - -import nl.jqno.equalsverifier.EqualsVerifier; -import nl.jqno.equalsverifier.Warning; -import org.junit.Test; -import org.opensrp.dto.utils.PojoTestUtils; - -import java.util.ArrayList; -import java.util.List; - -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertSame; -import static org.junit.Assert.assertTrue; - -public class FemaleSterilizationRegisterEntryDTOTest { - @Test - public void testAccesors_shouldAccessProperField() { - PojoTestUtils.validateAccessors(FemaleSterilizationRegisterEntryDTO.class); - } - - @Test - public void testEqualsAndHashCode() { - EqualsVerifier.forClass(FemaleSterilizationRegisterEntryDTO.class).suppress(Warning.NONFINAL_FIELDS).verify(); - } - - @Test - public void testToStringAndSetters() { - List followupVisitDatesList = new ArrayList<>(); - String sterilization = "pill"; - FemaleSterilizationFPDetailsDTO femaleSterilizationFPDetailsDTO = new FemaleSterilizationFPDetailsDTO - (sterilization, "", followupVisitDatesList); - - String wifeAge = "16"; - String husbandName = "sajid"; - String husbandAge = "24"; - FemaleSterilizationRegisterEntryDTO femaleSterilizationRegisterEntryDTO = new FemaleSterilizationRegisterEntryDTO() - .withEcNumber("") - .withWifeName("") - .withWifeAge(wifeAge) - .withWifeEducationLevel("") - .withHusbandName(husbandName) - .withHusbandAge(husbandAge) - .withHusbandEducationLevel("") - .withVillage("charpara") - .withSubCenter("") - .withReligion("islam") - .withNumberOfLivingFemaleChildren("") - .withNumberOfLivingMaleChildren("") - .withCaste("") - .withFpDetails(femaleSterilizationFPDetailsDTO); - - assertSame("sajid", femaleSterilizationRegisterEntryDTO.getHusbandName()); - assertTrue(femaleSterilizationRegisterEntryDTO.toString().contains(wifeAge)); - assertFalse(femaleSterilizationRegisterEntryDTO.toString().contains("village=nandanpur")); - } -} diff --git a/opensrp-interface/src/test/java/org.opensrp.dto/register/IUDFPDetailsDTOTest.java b/opensrp-interface/src/test/java/org.opensrp.dto/register/IUDFPDetailsDTOTest.java deleted file mode 100644 index bc9287bb24..0000000000 --- a/opensrp-interface/src/test/java/org.opensrp.dto/register/IUDFPDetailsDTOTest.java +++ /dev/null @@ -1,30 +0,0 @@ -package org.opensrp.dto.register; - -import nl.jqno.equalsverifier.EqualsVerifier; -import nl.jqno.equalsverifier.Warning; -import org.junit.Test; -import org.opensrp.dto.utils.PojoTestUtils; - -import static org.junit.Assert.*; - -public class IUDFPDetailsDTOTest { - @Test - public void testAccesors_shouldAccessProperField() { - PojoTestUtils.validateAccessors(IUDFPDetailsDTO.class); - } - - @Test - public void testEqualsAndHashCode() { - EqualsVerifier.forClass(IUDFPDetailsDTO.class).suppress(Warning.NONFINAL_FIELDS).verify(); - } - - @Test - public void testToString() { - String fpAcceptanceDate = "2017-07-19"; - IUDFPDetailsDTO iudfpDetailsDTO = new IUDFPDetailsDTO(fpAcceptanceDate, "", "", ""); - System.out.println(iudfpDetailsDTO.toString()); - assertEquals("2017-07-19", iudfpDetailsDTO.getFpAcceptanceDate()); - assertTrue(iudfpDetailsDTO.toString().contains(fpAcceptanceDate)); - assertFalse(iudfpDetailsDTO.toString().contains("lmpDate=2017-08-19")); - } -} diff --git a/opensrp-interface/src/test/java/org.opensrp.dto/register/IUDRegisterEntryDTOTest.java b/opensrp-interface/src/test/java/org.opensrp.dto/register/IUDRegisterEntryDTOTest.java deleted file mode 100644 index 82683b8b0d..0000000000 --- a/opensrp-interface/src/test/java/org.opensrp.dto/register/IUDRegisterEntryDTOTest.java +++ /dev/null @@ -1,54 +0,0 @@ -package org.opensrp.dto.register; - -import nl.jqno.equalsverifier.EqualsVerifier; -import nl.jqno.equalsverifier.Warning; -import org.junit.Test; -import org.opensrp.dto.utils.PojoTestUtils; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; - -public class IUDRegisterEntryDTOTest { - @Test - public void testAccesors_shouldAccessProperField() { - PojoTestUtils.validateAccessors(IUDRegisterEntryDTO.class); - } - - @Test - public void testEqualsAndHashCode() { - EqualsVerifier.forClass(IUDRegisterEntryDTO.class).suppress(Warning.NONFINAL_FIELDS).verify(); - } - - @Test - public void testToStringAndSetters() { - String wifeAge = "16"; - String husbandName = "sajid"; - String husbandAge = "24"; - String fpAcceptanceDate = "2017-07-19"; - IUDFPDetailsDTO iudfpDetailsDTO = new IUDFPDetailsDTO(fpAcceptanceDate, "", "", ""); - - IUDRegisterEntryDTO iudRegisterEntryDTO = new IUDRegisterEntryDTO() - .withEcNumber("") - .withWifeName("") - .withWifeAge(wifeAge) - .withWifeEducationLevel("") - .withHusbandName(husbandName) - .withHusbandAge(husbandAge) - .withHusbandEducationLevel("") - .withVillage("charpara") - .withSubCenter("") - .withReligion("islam") - .withNumberOfLivingFemaleChildren("") - .withNumberOfLivingMaleChildren("") - .withCaste("") - .withLmpDate("") - .withUptResult("") - .withFpDetails(iudfpDetailsDTO); - - assertEquals("sajid", iudRegisterEntryDTO.getHusbandName()); - assertTrue(iudRegisterEntryDTO.toString().contains(wifeAge)); - assertFalse(iudRegisterEntryDTO.toString().contains("lmpDate=2017-08-19")); - } - -} diff --git a/opensrp-interface/src/test/java/org.opensrp.dto/register/MaleSterilizationFPDetailsDTOTest.java b/opensrp-interface/src/test/java/org.opensrp.dto/register/MaleSterilizationFPDetailsDTOTest.java deleted file mode 100644 index 66c47c4a84..0000000000 --- a/opensrp-interface/src/test/java/org.opensrp.dto/register/MaleSterilizationFPDetailsDTOTest.java +++ /dev/null @@ -1,36 +0,0 @@ -package org.opensrp.dto.register; - -import nl.jqno.equalsverifier.EqualsVerifier; -import nl.jqno.equalsverifier.Warning; -import org.junit.Test; -import org.opensrp.dto.utils.PojoTestUtils; - -import java.util.ArrayList; -import java.util.List; - -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertSame; -import static org.junit.Assert.assertTrue; - -public class MaleSterilizationFPDetailsDTOTest { - @Test - public void testAccesors_shouldAccessProperField() { - PojoTestUtils.validateAccessors(MaleSterilizationFPDetailsDTO.class); - } - - @Test - public void testEqualsAndHashCode() { - EqualsVerifier.forClass(MaleSterilizationFPDetailsDTO.class).suppress(Warning.NONFINAL_FIELDS).verify(); - } - - @Test - public void testToString() { - List followupVisitDatesList = new ArrayList<>(); - - String typeOfSterilization = "oldness"; - MaleSterilizationFPDetailsDTO maleSterilizationFPDetailsDTO = new MaleSterilizationFPDetailsDTO(typeOfSterilization, "", followupVisitDatesList); - assertSame("oldness", maleSterilizationFPDetailsDTO.getTypeOfSterilization()); - assertTrue(maleSterilizationFPDetailsDTO.toString().contains(typeOfSterilization)); - assertFalse(maleSterilizationFPDetailsDTO.toString().contains("sterilizationDate=2017-07-19")); - } -} diff --git a/opensrp-interface/src/test/java/org.opensrp.dto/register/MaleSterilizationRegisterEntryDTOTest.java b/opensrp-interface/src/test/java/org.opensrp.dto/register/MaleSterilizationRegisterEntryDTOTest.java deleted file mode 100644 index 22771bd4f0..0000000000 --- a/opensrp-interface/src/test/java/org.opensrp.dto/register/MaleSterilizationRegisterEntryDTOTest.java +++ /dev/null @@ -1,56 +0,0 @@ -package org.opensrp.dto.register; - -import nl.jqno.equalsverifier.EqualsVerifier; -import nl.jqno.equalsverifier.Warning; -import org.junit.Test; -import org.opensrp.dto.utils.PojoTestUtils; - -import java.util.ArrayList; -import java.util.List; - -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertSame; -import static org.junit.Assert.assertTrue; - -public class MaleSterilizationRegisterEntryDTOTest { - @Test - public void testAccesors_shouldAccessProperField() { - PojoTestUtils.validateAccessors(MaleSterilizationRegisterEntryDTO.class); - } - - @Test - public void testEqualsAndHashCode() { - EqualsVerifier.forClass(MaleSterilizationRegisterEntryDTO.class).suppress(Warning.NONFINAL_FIELDS).verify(); - } - - @Test - public void testToStringAndSetters() { - List followupVisitDatesList = new ArrayList<>(); - - String typeOfSterilization = "oldness"; - MaleSterilizationFPDetailsDTO maleSterilizationFPDetailsDTO = new MaleSterilizationFPDetailsDTO - (typeOfSterilization, "", followupVisitDatesList); - String wifeAge = "16"; - String husbandName = "sajid"; - String husbandAge = "24"; - MaleSterilizationRegisterEntryDTO maleSterilizationRegisterEntryDTO = new MaleSterilizationRegisterEntryDTO() - .withEcNumber("") - .withWifeName("") - .withWifeAge(wifeAge) - .withWifeEducationLevel("") - .withHusbandName(husbandName) - .withHusbandAge(husbandAge) - .withHusbandEducationLevel("") - .withVillage("charpara") - .withSubCenter("") - .withReligion("islam") - .withNumberOfLivingFemaleChildren("") - .withNumberOfLivingMaleChildren("") - .withCaste("") - .withFpDetails(maleSterilizationFPDetailsDTO); - - assertSame("sajid", maleSterilizationRegisterEntryDTO.getHusbandName()); - assertTrue(maleSterilizationRegisterEntryDTO.toString().contains(wifeAge)); - assertFalse(maleSterilizationRegisterEntryDTO.toString().contains("village=nandanpur")); - } -} diff --git a/opensrp-interface/src/test/java/org.opensrp.dto/register/OCPFPDetailsDTOTest.java b/opensrp-interface/src/test/java/org.opensrp.dto/register/OCPFPDetailsDTOTest.java deleted file mode 100644 index f03ac8e0cd..0000000000 --- a/opensrp-interface/src/test/java/org.opensrp.dto/register/OCPFPDetailsDTOTest.java +++ /dev/null @@ -1,43 +0,0 @@ -package org.opensrp.dto.register; - -import nl.jqno.equalsverifier.EqualsVerifier; -import nl.jqno.equalsverifier.Warning; -import org.junit.Test; -import org.opensrp.dto.utils.PojoTestUtils; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; - -public class OCPFPDetailsDTOTest { - @Test - public void testAccesors_shouldAccessProperField() { - PojoTestUtils.validateAccessors(OCPFPDetailsDTO.class); - } - - @Test - public void testEqualsAndHashCode() { - EqualsVerifier.forClass(OCPFPDetailsDTO.class).suppress(Warning.NONFINAL_FIELDS).verify(); - } - - @Test - public void testToString() { - String fpAcceptanceDate = "2017-07-19"; - Map map = new HashMap<>(); - List> refillsList = new ArrayList<>(); - map.put("a", "femicon"); - map.put("b", "omicon"); - refillsList.add(map); - OCPFPDetailsDTO ocpfpDetailsDTO = new OCPFPDetailsDTO(fpAcceptanceDate, refillsList, "", ""); - - assertEquals("2017-07-19", ocpfpDetailsDTO.getFpAcceptanceDate()); - assertTrue(ocpfpDetailsDTO.toString().contains(fpAcceptanceDate)); - assertFalse(ocpfpDetailsDTO.toString().contains("lmpDate=2017-08-19")); - } -} - diff --git a/opensrp-interface/src/test/java/org.opensrp.dto/register/OCPRegisterEntryDTOTest.java b/opensrp-interface/src/test/java/org.opensrp.dto/register/OCPRegisterEntryDTOTest.java deleted file mode 100644 index f37069269a..0000000000 --- a/opensrp-interface/src/test/java/org.opensrp.dto/register/OCPRegisterEntryDTOTest.java +++ /dev/null @@ -1,63 +0,0 @@ -package org.opensrp.dto.register; - -import nl.jqno.equalsverifier.EqualsVerifier; -import nl.jqno.equalsverifier.Warning; -import org.junit.Test; -import org.opensrp.dto.utils.PojoTestUtils; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; - -public class OCPRegisterEntryDTOTest { - @Test - public void testAccesors_shouldAccessProperField() { - PojoTestUtils.validateAccessors(OCPRegisterEntryDTO.class); - } - - @Test - public void testEqualsAndHashCode() { - EqualsVerifier.forClass(OCPRegisterEntryDTO.class).suppress(Warning.NONFINAL_FIELDS).verify(); - } - - @Test - public void testToStringAndSetters() { - String wifeAge = "16"; - String husbandName = "sajid"; - String husbandAge = "24"; - - String fpAcceptanceDate = "2017-07-19"; - Map map = new HashMap<>(); - List> refillsList = new ArrayList<>(); - map.put("a", "femicon"); - map.put("b", "omicon"); - refillsList.add(map); - OCPFPDetailsDTO ocpfpDetailsDTO = new OCPFPDetailsDTO(fpAcceptanceDate, refillsList, "", ""); - - OCPRegisterEntryDTO ocpRegisterEntryDTO = new OCPRegisterEntryDTO() - .withEcNumber("") - .withWifeName("") - .withWifeAge(wifeAge) - .withWifeEducationLevel("") - .withHusbandName(husbandName) - .withHusbandEducationLevel("") - .withVillage("charpara") - .withSubCenter("") - .withReligion("islam") - .withNumberOfLivingFemaleChildren("") - .withNumberOfLivingMaleChildren("") - .withCaste("") - .withLmpDate("") - .withUptResult("") - .withFpDetails(ocpfpDetailsDTO); - - assertEquals("sajid", ocpRegisterEntryDTO.getHusbandName()); - assertTrue(ocpRegisterEntryDTO.toString().contains(wifeAge)); - assertFalse(ocpRegisterEntryDTO.toString().contains("lmpDate=2017-08-19")); - } -} diff --git a/opensrp-interface/src/test/java/org.opensrp.dto/register/PNCRegisterDTOTest.java b/opensrp-interface/src/test/java/org.opensrp.dto/register/PNCRegisterDTOTest.java deleted file mode 100644 index b8c23b7b01..0000000000 --- a/opensrp-interface/src/test/java/org.opensrp.dto/register/PNCRegisterDTOTest.java +++ /dev/null @@ -1,36 +0,0 @@ -package org.opensrp.dto.register; - -import nl.jqno.equalsverifier.EqualsVerifier; -import nl.jqno.equalsverifier.Warning; -import org.junit.Test; -import org.opensrp.dto.utils.PojoTestUtils; - -import java.util.ArrayList; -import java.util.List; - -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; - -public class PNCRegisterDTOTest { - @Test - public void testAccesors_shouldAccessProperField() { - PojoTestUtils.validateAccessors(PNCRegisterDTO.class); - } - - @Test - public void testEqualsAndHashCode() { - EqualsVerifier.forClass(PNCRegisterDTO.class).suppress(Warning.NONFINAL_FIELDS).verify(); - } - - @Test - public void testToString() { - List pncRegisterEntriesList = new ArrayList<>(); - String address = "mPower"; - PNCRegisterEntryDTO pncRegisterEntryDTO = new PNCRegisterEntryDTO().withAddress(address); - pncRegisterEntriesList.add(pncRegisterEntryDTO); - PNCRegisterDTO pncRegisterDTO = new PNCRegisterDTO(pncRegisterEntriesList); - - assertTrue(pncRegisterDTO.toString().contains(address)); - assertFalse(pncRegisterDTO.toString().contains("wifeName=Sadna")); - } -} diff --git a/opensrp-interface/src/test/java/org.opensrp.dto/register/PNCRegisterEntryDTOTest.java b/opensrp-interface/src/test/java/org.opensrp.dto/register/PNCRegisterEntryDTOTest.java deleted file mode 100644 index 1952aa7983..0000000000 --- a/opensrp-interface/src/test/java/org.opensrp.dto/register/PNCRegisterEntryDTOTest.java +++ /dev/null @@ -1,55 +0,0 @@ -package org.opensrp.dto.register; - -import nl.jqno.equalsverifier.EqualsVerifier; -import nl.jqno.equalsverifier.Warning; -import org.junit.Test; -import org.opensrp.dto.utils.PojoTestUtils; - -import java.util.ArrayList; -import java.util.List; -import java.util.Map; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; - -public class PNCRegisterEntryDTOTest { - @Test - public void testAccesors_shouldAccessProperField() { - PojoTestUtils.validateAccessors(PNCRegisterEntryDTO.class); - } - - @Test - public void testEqualsAndHashCode() { - EqualsVerifier.forClass(PNCRegisterEntryDTO.class).suppress(Warning.NONFINAL_FIELDS).verify(); - } - - @Test - public void testToStringAndSetters() { - String husbandName = "sajid"; - - List> childrenDetailsList = new ArrayList<>(); - List pncVisitsList = new ArrayList<>(); - - PNCRegisterEntryDTO pncRegisterEntryDTO = new PNCRegisterEntryDTO(); - pncRegisterEntryDTO.withRegistrationDate(""); - pncRegisterEntryDTO.withThayiCardNumber(""); - pncRegisterEntryDTO.withWifeName(""); - pncRegisterEntryDTO.withHusbandName(husbandName); - pncRegisterEntryDTO.withWifeDOB(""); - pncRegisterEntryDTO.withAddress(""); - pncRegisterEntryDTO.withDateOfDelivery(""); - pncRegisterEntryDTO.withPlaceOfDelivery(""); - pncRegisterEntryDTO.withTypeOfDelivery(""); - pncRegisterEntryDTO.withDischargeDate(""); - pncRegisterEntryDTO.withFPMethodName(""); - pncRegisterEntryDTO.withFPMethodDate(""); - pncRegisterEntryDTO.withDeliveryComplications(""); - pncRegisterEntryDTO.withChildrenDetails(childrenDetailsList); - pncRegisterEntryDTO.withPNCVisits(pncVisitsList); - - assertTrue(pncRegisterEntryDTO.toString().contains(husbandName)); - assertFalse(pncRegisterEntryDTO.toString().contains("wifeDob=2017-08-19")); - - } -} diff --git a/opensrp-interface/src/test/java/org.opensrp.dto/register/PNCVisitDTOTest.java b/opensrp-interface/src/test/java/org.opensrp.dto/register/PNCVisitDTOTest.java deleted file mode 100644 index 5ef07e45d2..0000000000 --- a/opensrp-interface/src/test/java/org.opensrp.dto/register/PNCVisitDTOTest.java +++ /dev/null @@ -1,46 +0,0 @@ -package org.opensrp.dto.register; - -import nl.jqno.equalsverifier.EqualsVerifier; -import nl.jqno.equalsverifier.Warning; -import org.junit.Test; -import org.opensrp.dto.utils.PojoTestUtils; - -import java.util.ArrayList; -import java.util.List; -import java.util.Map; - -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; - -public class PNCVisitDTOTest { - @Test - public void testAccesors_shouldAccessProperField() { - PojoTestUtils.validateAccessors(PNCVisitDTO.class); - } - - @Test - public void testEqualsAndHashCode() { - EqualsVerifier.forClass(PNCVisitDTO.class).suppress(Warning.NONFINAL_FIELDS).verify(); - } - - @Test - public void testToStringAndSetters() { - String person = "khusi"; - String place = "rupnagar"; - List> childrenDetailsList = new ArrayList<>(); - - PNCVisitDTO pncVisitDTO = new PNCVisitDTO() - .withDate("") - .withPerson(person) - .withPlace(place) - .withDifficulties("") - .withAbdominalProblems("") - .withVaginalProblems("") - .withUrinalProblems("") - .withBreastProblems("") - .withChildrenDetails(childrenDetailsList); - - assertTrue(pncVisitDTO.toString().contains(person)); - assertFalse(pncVisitDTO.toString().contains("difficulties=no")); - } -} diff --git a/opensrp-interface/src/test/java/org.opensrp.dto/report/AggregatedReportsDTOTest.java b/opensrp-interface/src/test/java/org.opensrp.dto/report/AggregatedReportsDTOTest.java deleted file mode 100644 index 5992e5a626..0000000000 --- a/opensrp-interface/src/test/java/org.opensrp.dto/report/AggregatedReportsDTOTest.java +++ /dev/null @@ -1,38 +0,0 @@ -package org.opensrp.dto.report; - -import nl.jqno.equalsverifier.EqualsVerifier; -import nl.jqno.equalsverifier.Warning; -import org.junit.Test; -import org.opensrp.dto.LocationDTO; -import org.opensrp.dto.utils.PojoTestUtils; - -import java.util.HashMap; -import java.util.Map; - -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; - -/** - * Created by real on 13/07/17. - */ -public class AggregatedReportsDTOTest { - @Test - public void testAccesors_shouldAccessProperField() { - PojoTestUtils.validateAccessors(AggregatedReportsDTO.class); - } - - @Test - public void testEqualsAndHashCode() { - EqualsVerifier.forClass(AggregatedReportsDTO.class).suppress(Warning.NONFINAL_FIELDS).verify(); - } - - @Test - public void testConstructorAndtoString() { - Map indicatorSummary = new HashMap<>(); - indicatorSummary.put("one", 1); - LocationDTO loc = new LocationDTO("", "", "", "", ""); - AggregatedReportsDTO aggregatedReportsDTO = new AggregatedReportsDTO(indicatorSummary, loc); - assertTrue(aggregatedReportsDTO.toString().contains("ind={one=1}")); - assertFalse(aggregatedReportsDTO.toString().contains("ind=null")); - } -} diff --git a/opensrp-interface/src/test/java/org.opensrp.dto/report/ServiceProvidedReportDTOTest.java b/opensrp-interface/src/test/java/org.opensrp.dto/report/ServiceProvidedReportDTOTest.java deleted file mode 100644 index dceb1c940f..0000000000 --- a/opensrp-interface/src/test/java/org.opensrp.dto/report/ServiceProvidedReportDTOTest.java +++ /dev/null @@ -1,41 +0,0 @@ -package org.opensrp.dto.report; - -import nl.jqno.equalsverifier.EqualsVerifier; -import nl.jqno.equalsverifier.Warning; -import org.joda.time.LocalDate; -import org.junit.Test; -import org.opensrp.dto.utils.PojoTestUtils; - -import static org.junit.Assert.*; - -/** - * Created by real on 13/07/17. - */ -public class ServiceProvidedReportDTOTest { - @Test - public void testAccesors_shouldAccessProperField() { - PojoTestUtils.validateAccessors(ServiceProvidedReportDTO.class); - } - - @Test - public void testEqualsAndHashCode() { - EqualsVerifier.forClass(ServiceProvidedReportDTO.class).suppress(Warning.NONFINAL_FIELDS).verify(); - } - - @Test - public void testConstructorAndwithSettersAndtoString() { - ServiceProvidedReportDTO serviceProvidedReportDTO, serviceProvidedReportDTO2; - serviceProvidedReportDTO = new ServiceProvidedReportDTO(); - serviceProvidedReportDTO.withId(3); - serviceProvidedReportDTO.withDate(new LocalDate()); - serviceProvidedReportDTO.withNRHMReportMonth(7); - serviceProvidedReportDTO.withNRHMReportYear(2017); - assertEquals((Integer) 3, serviceProvidedReportDTO.getId()); - assertNotSame((Integer) 8, serviceProvidedReportDTO.getNrhm_report_month()); - - serviceProvidedReportDTO2 = new ServiceProvidedReportDTO(1, "", "", "", new LocalDate(), "", "", "", "", "", ""); - assertTrue(serviceProvidedReportDTO2.toString().contains("id=1")); - assertFalse(serviceProvidedReportDTO2.toString().contains("village=gangapur")); - } - -} diff --git a/opensrp-interface/src/test/java/org.opensrp.dto/utils/PojoTestUtils.java b/opensrp-interface/src/test/java/org.opensrp.dto/utils/PojoTestUtils.java deleted file mode 100644 index 2374ea91ca..0000000000 --- a/opensrp-interface/src/test/java/org.opensrp.dto/utils/PojoTestUtils.java +++ /dev/null @@ -1,21 +0,0 @@ -package org.opensrp.dto.utils; - -import com.openpojo.reflection.impl.PojoClassFactory; -import com.openpojo.validation.Validator; -import com.openpojo.validation.ValidatorBuilder; -import com.openpojo.validation.test.impl.GetterTester; -import com.openpojo.validation.test.impl.SetterTester; - -/** - * Created by real on 13/07/17. - */ -public class PojoTestUtils { - private static final Validator ACCESSOR_VALIDATOR = ValidatorBuilder.create() - .with(new GetterTester()) - .with(new SetterTester()) - .build(); - - public static void validateAccessors(final Class clazz) { - ACCESSOR_VALIDATOR.validate(PojoClassFactory.getPojoClass(clazz)); - } -} diff --git a/opensrp-register/src/test/java/org/opensrp/register/it/CreateFormSubmissions.java b/opensrp-register/src/test/java/org/opensrp/register/it/CreateFormSubmissions.java deleted file mode 100644 index 88f54bfe76..0000000000 --- a/opensrp-register/src/test/java/org/opensrp/register/it/CreateFormSubmissions.java +++ /dev/null @@ -1,195 +0,0 @@ -package org.opensrp.register.it; - -import org.joda.time.DateTime; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.opensrp.form.domain.FormData; -import org.opensrp.form.domain.FormField; -import org.opensrp.form.domain.FormInstance; -import org.opensrp.form.domain.FormSubmission; -import org.opensrp.form.repository.AllFormSubmissions; -import org.opensrp.register.thrivepk.FormSubmissionView; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.test.context.ContextConfiguration; -import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; - -import java.util.ArrayList; -import java.util.List; -import java.util.Random; -import java.util.UUID; - -@RunWith(SpringJUnit4ClassRunner.class) -@ContextConfiguration("classpath:test-applicationContext-opensrp-register.xml") -public class CreateFormSubmissions { - - @Autowired - FormSubmissionView fsv; - - @Autowired - AllFormSubmissions fService; - - @Test - public void shouldEnrollChildrenUnder6Years() { - for (int i = 100; i < 200; i++) { - String insId = UUID.randomUUID().toString(); - String eid = UUID.randomUUID().toString(); - FormData form = new FormData("pkchild", "/model/instance/Child_Vaccination_Enrollment/", - generateChildFields(eid, insId, "Zaman Town", "demotest", "Homeopathic Center", DateTime.now().minusDays(2), i+1+new Random().nextInt(1850)), null); - FormInstance formInstance = new FormInstance(form, "1"); - FormSubmission fs = new FormSubmission("demotest", insId, "child_enrollment", eid, DateTime.now().minusDays(5).getMillis(), "1", formInstance, DateTime.now().minusDays(5).getMillis()); - fService.add(fs); - } - - } - - private void addField(List fields, String name, String value, String bindType) { - fields.add(new FormField(name, value, bindType+"."+name)); - } - - private List generateChildFields(String entityId, String instanceId, String uc, String provider, String center, DateTime regDate, int maxAge) { - List fields = new ArrayList<>(); - String df = "yyyy-MM-dd"; - String bindType = "pkchild"; - addField(fields, "id", entityId, bindType); - addField(fields, "instanceID", "uid:"+instanceId, bindType); - addField(fields, "provider_province", "Sindh", bindType); - addField(fields, "provider_province", "Sindh", bindType); - addField(fields, "provider_uc", uc, bindType); - addField(fields, "provider_town", "Korangi", bindType); - addField(fields, "provider_city", "Karachi", bindType); - addField(fields, "provider_id", provider, bindType); - addField(fields, "provider_location_id", center, bindType); - addField(fields, "start", regDate.toString(), bindType); - addField(fields, "end", regDate.toString(), bindType); - addField(fields, "today", regDate.toString(df), bindType); - addField(fields, "client_reg_date", regDate.toString(df), bindType); - String id = UUID.randomUUID().getLeastSignificantBits()+""; - addField(fields, "program_client_id", id, bindType); - addField(fields, "existing_program_client_id", id, bindType); - addField(fields, "epi_card_number", (new Random().nextInt(19999999)+80000000)+"", bindType); - boolean male = new Random().nextInt(10)%2==0; - addField(fields, "first_name", pickName(male), bindType); - addField(fields, "last_name", pickName(true), bindType); - addField(fields, "birth_date_known", new Random().nextInt(10)%2==0?"yes":"no", bindType); - int age = new Random().nextInt(maxAge); - DateTime bd = DateTime.now().minusDays(age); - addField(fields, "birth_date", bd.toString(df), bindType); - addField(fields, "age", age+"", bindType); - addField(fields, "dob", bd.toString(df), bindType); - addField(fields, "calc_dob_estimated", new Random().nextInt(10)%5==0?"true":"false", bindType); - addField(fields, "gender", male ?"Male":"Female", bindType); - addField(fields, "mother_name", pickName(false), bindType); - addField(fields, "ethnicity", "sindhi", bindType); - addField(fields, "province", "sindh", bindType); - addField(fields, "city_village", "karachi", bindType); - addField(fields, "town", "korangi", bindType); - addField(fields, "union_council", "zaman_town", bindType); - addField(fields, "address1", "437 n", bindType); - addField(fields, "landmark", "nishani mark", bindType); - addField(fields, "provincename", "Sindh", bindType); - addField(fields, "city_villagename", "Karachi", bindType); - addField(fields, "townname", "Korangi", bindType); - addField(fields, "union_councilname", "Zaman Town", bindType); - addField(fields, "address", "73 h", bindType); - addField(fields, "child_was_suffering_from_a_disease_at_birth", new Random().nextInt(10)%2==0?"yes":"no", bindType); - addField(fields, "reminders_approval", new Random().nextInt(10)%2==0?"yes":"no", bindType); - addField(fields, "contact_phone_number", "03343800000", bindType); - if(age > 12*30){ - addField(fields, "vaccines", "measles1", bindType); - } - else if(age > 14*7){ - addField(fields, "vaccines", "penta3 pcv3 opv3 ipv", bindType); - } - else if(age > 10*7){ - addField(fields, "vaccines", "penta2 pcv2 opv2", bindType); - } - else if(age > 6*7){ - addField(fields, "vaccines", "penta1 pcv1 opv1", bindType); - } - else{ - addField(fields, "vaccines", "bcg opv0", bindType); - } - - addField(fields, "bcg_retro", age>42?bd.plusDays(12).toString(df):null, bindType); - addField(fields, "opv0_retro", age>42?bd.plusDays(12).toString(df):null, bindType); - addField(fields, "opv0_dose", "0", bindType); - addField(fields, "pcv1_retro", age>70?bd.plusDays(45).toString(df):null, bindType); - addField(fields, "pcv1_dose", "1", bindType); - addField(fields, "opv1_retro", age>70?bd.plusDays(45).toString(df):null, bindType); - addField(fields, "opv1_dose", "1", bindType); - addField(fields, "penta1_retro", age>70?bd.plusDays(45).toString(df):null, bindType); - addField(fields, "penta1_dose", "1", bindType); - addField(fields, "pcv2_retro", age>98?bd.plusDays(80).toString(df):null, bindType); - addField(fields, "pcv2_dose", "2", bindType); - addField(fields, "opv2_retro", age>98?bd.plusDays(80).toString(df):null, bindType); - addField(fields, "opv2_dose", "2", bindType); - addField(fields, "penta2_retro", age>98?bd.plusDays(80).toString(df):null, bindType); - addField(fields, "penta2_dose", "2", bindType); - addField(fields, "pcv3_retro", age>150?bd.plusDays(105).toString(df):null, bindType); - addField(fields, "pcv3_dose", "3", bindType); - addField(fields, "opv3_retro", age>150?bd.plusDays(105).toString(df):null, bindType); - addField(fields, "opv3_dose", "3", bindType); - addField(fields, "penta3_retro", age>150?bd.plusDays(105).toString(df):null, bindType); - addField(fields, "penta3_dose", "3", bindType); - addField(fields, "ipv_retro", age>150?bd.plusDays(105).toString(df):null, bindType); - addField(fields, "measles1_retro", age>300?bd.plusDays(270).toString(df):null, bindType); - addField(fields, "measles1_dose", "1", bindType); - - - - if(age<42){ - addField(fields, "vaccines_2", "bcg opv0", bindType); - } - else if(age>40&&age<70){ - addField(fields, "vaccines_2", "penta1 opv1 pcv1", bindType); - } - else if(age>70&&age<98){ - addField(fields, "vaccines_2", "penta2 opv2 pcv2", bindType); - } - else if(age>98&&age<200){ - addField(fields, "vaccines_2", "penta3 opv3 pcv3 ipv", bindType); - } - else if(age>200&&age<400){ - addField(fields, "vaccines_2", "measles1", bindType); - } - else if(age>400){ - addField(fields, "vaccines_2", "measles2", bindType); - } - - addField(fields, "bcg", age<42?regDate.toString(df):null, bindType); - addField(fields, "opv0", age<42?regDate.toString(df):null, bindType); - addField(fields, "opv0_dose_today", "0", bindType); - addField(fields, "pcv1", age>40&&age<70?regDate.toString(df):null, bindType); - addField(fields, "pcv1_dose_today", "1", bindType); - addField(fields, "opv1", age>40&&age<70?regDate.toString(df):null, bindType); - addField(fields, "opv1_dose_today", "1", bindType); - addField(fields, "penta1", age>40&&age<70?regDate.toString(df):null, bindType); - addField(fields, "penta1_dose_today", "1", bindType); - addField(fields, "pcv2", age>70&&age<98?regDate.toString(df):null, bindType); - addField(fields, "pcv2_dose_today", "2", bindType); - addField(fields, "opv2", age>70&&age<98?regDate.toString(df):null, bindType); - addField(fields, "opv2_dose_today", "2", bindType); - addField(fields, "penta2", age>70&&age<98?regDate.toString(df):null, bindType); - addField(fields, "penta2_dose_today", "2", bindType); - addField(fields, "pcv3", age>98&&age<200?regDate.toString(df):null, bindType); - addField(fields, "pcv3_dose_today", "3", bindType); - addField(fields, "opv3", age>98&&age<200?regDate.toString(df):null, bindType); - addField(fields, "opv3_dose_today", "3", bindType); - addField(fields, "penta3", age>98&&age<200?regDate.toString(df):null, bindType); - addField(fields, "penta3_dose_today", "3", bindType); - addField(fields, "ipv", age>98&&age<200?regDate.toString(df):null, bindType); - addField(fields, "measles1", age>200&&age<400?regDate.toString(df):null, bindType); - addField(fields, "measles1_dose_today", "1", bindType); - addField(fields, "measles2", age>400?regDate.toString(df):null, bindType); - addField(fields, "measles2_dose_today", "2", bindType); - return fields; - } - - private String pickName(boolean male) { - String[] ml = new String[]{"Ali", "Ahmed", "Isran", "Aurang", "Ibad", "Mohammad", "Omar", "Osman", - "Jamal", "Bilal", "Daood", "Eman", "Farman", "Ghous", "Hadi"}; - String[] fl = new String[]{"Isra", "Aiman", "Beena", "Durdana", "Zeest", "Minal", "Maneer", "Bisma", - "Jaisha", "Zuni", "Sitwat", "Eman", "Fareeha", "Fara", "Hareem"}; - return male?ml[new Random().nextInt(ml.length)]:fl[new Random().nextInt(fl.length)]; - } -} diff --git a/opensrp-register/src/test/java/org/opensrp/register/service/handler/ANCScheduleHandlerTest.java b/opensrp-register/src/test/java/org/opensrp/register/service/handler/ANCScheduleHandlerTest.java deleted file mode 100644 index 7930ce3458..0000000000 --- a/opensrp-register/src/test/java/org/opensrp/register/service/handler/ANCScheduleHandlerTest.java +++ /dev/null @@ -1,74 +0,0 @@ -package org.opensrp.register.service.handler; - -import static org.mockito.Mockito.inOrder; -import static org.mockito.MockitoAnnotations.initMocks; - -import java.util.List; - -import org.joda.time.LocalDate; -import org.json.JSONArray; -import org.json.JSONObject; -import org.junit.Before; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.mockito.InOrder; -import org.mockito.Mock; -import org.opensrp.domain.Event; -import org.opensrp.register.service.handler.BaseScheduleHandler.ActionType; -import org.opensrp.register.service.scheduling.AnteNatalCareSchedulesService; -import org.opensrp.scheduler.HealthSchedulerService; -import org.powermock.core.classloader.annotations.PowerMockIgnore; -import org.powermock.modules.junit4.PowerMockRunner; - -@RunWith(PowerMockRunner.class) -@PowerMockIgnore({ "org.apache.log4j.*", "org.apache.commons.logging.*" }) -public class ANCScheduleHandlerTest extends TestResourceLoader { - @Mock - private AnteNatalCareSchedulesService anteNatalCareSchedulesService; - private ANCScheduleHandler aNCScheduleHandler; - @Mock - private HealthSchedulerService scheduler; - private static final String JSON_KEY_TYPES = "types"; - private static final String JSON_KEY_EVENTS = "events"; - - @Before - public void setUp() throws Exception { - initMocks(this); - aNCScheduleHandler = new ANCScheduleHandler(anteNatalCareSchedulesService); - } - - @Test - public void shouldTestANCScheduleHandler() throws Exception { - Event event = geteventOfVaccination(); - JSONArray schedulesJsonObject = new JSONArray("[" + getFile() + "]"); - String scheduleName = null; - for (int i = 0; i < schedulesJsonObject.length(); i++) { - JSONObject scheduleJsonObject = schedulesJsonObject.getJSONObject(i); - JSONArray eventsJsonArray = scheduleJsonObject.getJSONArray(JSON_KEY_EVENTS); - for (int j = 0; j < eventsJsonArray.length(); j++) { - JSONObject scheduleConfigEvent = eventsJsonArray.getJSONObject(j); - JSONArray eventTypesJsonArray = scheduleConfigEvent.getJSONArray(JSON_KEY_TYPES); - List eventsList = jsonArrayToList(eventTypesJsonArray); - if (eventsList.contains(event.getEventType())) { - String action = aNCScheduleHandler.getAction(scheduleConfigEvent); - String milestone = aNCScheduleHandler.getMilestone(scheduleConfigEvent); - LocalDate date = LocalDate.parse("2016-07-10"); - if (milestone.equalsIgnoreCase("opv2") && action.equalsIgnoreCase(ActionType.enroll.toString())) { - aNCScheduleHandler.handle(event,scheduleConfigEvent, scheduleName); - InOrder inOrder = inOrder(anteNatalCareSchedulesService); - inOrder.verify(anteNatalCareSchedulesService).enrollMother(event.getBaseEntityId(),"Ante Natal Care Reminder Visit", LocalDate.parse("2016-07-10"), - event.getId()); - } - else if (milestone.equalsIgnoreCase("opv2") && action.equalsIgnoreCase(ActionType.fulfill.toString())) { - aNCScheduleHandler.handle(event,scheduleConfigEvent, scheduleName); - InOrder inOrder = inOrder(anteNatalCareSchedulesService); - inOrder.verify(anteNatalCareSchedulesService).fullfillMilestone(event.getBaseEntityId(), event.getProviderId(), "Ante Natal Care Reminder Visit", date, event.getId()); - } else { - - } - } - } - } - } - -} diff --git a/opensrp-register/src/test/java/org/opensrp/register/service/handler/BNFScheduleHandlerTest.java b/opensrp-register/src/test/java/org/opensrp/register/service/handler/BNFScheduleHandlerTest.java deleted file mode 100644 index 8557ba07e5..0000000000 --- a/opensrp-register/src/test/java/org/opensrp/register/service/handler/BNFScheduleHandlerTest.java +++ /dev/null @@ -1,71 +0,0 @@ -package org.opensrp.register.service.handler; - -import static org.mockito.Mockito.inOrder; -import static org.mockito.MockitoAnnotations.initMocks; - -import java.util.List; - -import org.joda.time.LocalDate; -import org.json.JSONArray; -import org.json.JSONObject; -import org.junit.Before; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.mockito.InOrder; -import org.mockito.Mock; -import org.opensrp.domain.Event; -import org.opensrp.register.service.handler.BaseScheduleHandler.ActionType; -import org.opensrp.register.service.scheduling.BNFSchedulesService; -import org.opensrp.scheduler.HealthSchedulerService; -import org.powermock.core.classloader.annotations.PowerMockIgnore; -import org.powermock.modules.junit4.PowerMockRunner; - -@RunWith(PowerMockRunner.class) -@PowerMockIgnore({ "org.apache.log4j.*", "org.apache.commons.logging.*" }) -public class BNFScheduleHandlerTest extends TestResourceLoader { - - @Mock - private BNFSchedulesService bnfSchedulesService; - - private BNFScheduleHandler bnfScheduleHandler; - - @Mock - private HealthSchedulerService scheduler; - - private static final String JSON_KEY_TYPES = "types"; - - private static final String JSON_KEY_EVENTS = "events"; - - @Before - public void setUp() throws Exception { - initMocks(this); - bnfScheduleHandler = new BNFScheduleHandler(bnfSchedulesService); - } - - @Test - public void shouldTestBNFScheduleHandler() throws Exception { - Event event = geteventOfVaccination(); - JSONArray schedulesJsonObject = new JSONArray("[" + getFile() + "]"); - String scheduleName = null; - for (int i = 0; i < schedulesJsonObject.length(); i++) { - JSONObject scheduleJsonObject = schedulesJsonObject.getJSONObject(i); - JSONArray eventsJsonArray = scheduleJsonObject.getJSONArray(JSON_KEY_EVENTS); - for (int j = 0; j < eventsJsonArray.length(); j++) { - JSONObject scheduleConfigEvent = eventsJsonArray.getJSONObject(j); - JSONArray eventTypesJsonArray = scheduleConfigEvent.getJSONArray(JSON_KEY_TYPES); - List eventsList = jsonArrayToList(eventTypesJsonArray); - if (eventsList.contains(event.getEventType())) { - String action = bnfScheduleHandler.getAction(scheduleConfigEvent); - String milestone = bnfScheduleHandler.getMilestone(scheduleConfigEvent); - if (milestone.equalsIgnoreCase("opv2") && action.equalsIgnoreCase(ActionType.enroll.toString())) { - bnfScheduleHandler.handle(event, scheduleConfigEvent, scheduleName); - InOrder inOrder = inOrder(bnfSchedulesService); - inOrder.verify(bnfSchedulesService).enrollBNF(event.getBaseEntityId(), - "BirthNotificationPregnancyStatusFollowUp", LocalDate.parse("2016-07-10"), event.getId()); - } - } - } - } - } - -} diff --git a/opensrp-register/src/test/java/org/opensrp/register/service/handler/BaseScheduleHandlerTest.java b/opensrp-register/src/test/java/org/opensrp/register/service/handler/BaseScheduleHandlerTest.java deleted file mode 100644 index 9dceecb9e3..0000000000 --- a/opensrp-register/src/test/java/org/opensrp/register/service/handler/BaseScheduleHandlerTest.java +++ /dev/null @@ -1,100 +0,0 @@ -package org.opensrp.register.service.handler; - -import static org.mockito.Matchers.anyString; -import static org.mockito.Mockito.inOrder; -import static org.mockito.Mockito.times; -import static org.mockito.MockitoAnnotations.initMocks; -import static org.powermock.api.mockito.PowerMockito.when; -import static org.powermock.api.support.membermodification.MemberMatcher.method; - -import java.util.List; - -import org.apache.log4j.Level; -import org.apache.log4j.Logger; -import org.apache.log4j.spi.LoggingEvent; -import org.joda.time.DateTime; -import org.joda.time.LocalDate; -import org.json.JSONArray; -import org.json.JSONException; -import org.json.JSONObject; -import org.junit.Assert; -import org.junit.Before; -import org.junit.Ignore; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.mockito.InOrder; -import org.mockito.Mock; -import org.motechproject.model.Time; -import org.motechproject.scheduletracking.api.domain.Enrollment; -import org.motechproject.scheduletracking.api.domain.EnrollmentStatus; -import org.motechproject.scheduletracking.api.domain.Schedule; -import org.opensrp.common.util.TestLoggerAppender; -import org.opensrp.domain.Client; -import org.opensrp.domain.Event; -import org.opensrp.register.service.handler.BaseScheduleHandler.ActionType; -import org.opensrp.repository.couch.AllEvents; -import org.opensrp.scheduler.HealthSchedulerService; -import org.opensrp.service.ClientService; -import org.powermock.modules.junit4.PowerMockRunner; - -import com.fasterxml.jackson.core.JsonParseException; - -/*@RunWith(SpringJUnit4ClassRunner.class) -@ContextConfiguration("classpath:test-applicationContext-opensrp-register.xml")*/ -@RunWith(PowerMockRunner.class) -//@PrepareForTest(AllEvents.class) -public class BaseScheduleHandlerTest extends TestResourceLoader { - @Mock - private HealthSchedulerService scheduler; - @Mock - private AllEvents allEvents; - @Mock - private ClientService clientService; - private VaccinesScheduleHandler vaccinesScheduleHandler; - private static final String JSON_KEY_HANDLER = "handler"; - private static final String JSON_KEY_TYPES = "types"; - private static final String JSON_KEY_SCHEDULE_NAME = "name"; - private static final String JSON_KEY_EVENTS = "events"; - - @Before - public void setUp() throws Exception { - initMocks(this); - vaccinesScheduleHandler = new VaccinesScheduleHandler(scheduler, allEvents); - vaccinesScheduleHandler.setClientService(clientService); - } - - @Test - public void shouldTestgetReferenceDateForSchedule() throws Exception { - Event event = geteventOfBirthRegistration(); - List events = getEvents("2016-02-03"); - when(allEvents, method(AllEvents.class, "findByBaseEntityIdAndConceptParentCode", String.class, String.class,String.class)) - .withArguments(anyString(), anyString(),anyString()) - .thenReturn(events); - - when(clientService, method(ClientService.class, "getByBaseEntityId", String.class)) - .withArguments("ooo-yyy-yyy") - .thenReturn(getClients().get(0)); - JSONArray schedulesJsonObject = new JSONArray("[" + getFile() + "]"); - String scheduleName = "PENTA 1"; - for (int i = 0; i < schedulesJsonObject.length(); i++) { - JSONObject scheduleJsonObject = schedulesJsonObject.getJSONObject(i); - JSONArray eventsJsonArray = scheduleJsonObject.getJSONArray(JSON_KEY_EVENTS); - scheduleName = scheduleJsonObject.getString(JSON_KEY_SCHEDULE_NAME); - for (int j = 0; j < eventsJsonArray.length(); j++) { - JSONObject scheduleConfigEvent = eventsJsonArray.getJSONObject(j); - JSONArray eventTypesJsonArray = scheduleConfigEvent.getJSONArray(JSON_KEY_TYPES); - List eventsList = jsonArrayToList(eventTypesJsonArray); - if (eventsList.contains(event.getEventType())) { - scheduleName = scheduleJsonObject.getString(JSON_KEY_SCHEDULE_NAME);; - String action = vaccinesScheduleHandler.getAction(scheduleConfigEvent); - String milestone = vaccinesScheduleHandler.getMilestone(scheduleConfigEvent); - LocalDate date = LocalDate.parse("2016-07-10"); - vaccinesScheduleHandler.handle(event,scheduleConfigEvent, scheduleName); - vaccinesScheduleHandler.getReferenceDateForSchedule(event, scheduleConfigEvent, action); - } - } - } - - } - -} diff --git a/opensrp-register/src/test/java/org/opensrp/register/service/handler/ChildScheduleHandlerTest.java b/opensrp-register/src/test/java/org/opensrp/register/service/handler/ChildScheduleHandlerTest.java deleted file mode 100644 index e1cb8d6627..0000000000 --- a/opensrp-register/src/test/java/org/opensrp/register/service/handler/ChildScheduleHandlerTest.java +++ /dev/null @@ -1,88 +0,0 @@ -package org.opensrp.register.service.handler; - -import static org.mockito.Mockito.inOrder; -import static org.mockito.MockitoAnnotations.initMocks; -import static org.powermock.api.mockito.PowerMockito.when; -import static org.powermock.api.support.membermodification.MemberMatcher.method; - -import java.text.DateFormat; -import java.text.SimpleDateFormat; -import java.util.Calendar; -import java.util.Date; -import java.util.List; - -import org.joda.time.LocalDate; -import org.json.JSONArray; -import org.json.JSONObject; -import org.junit.Before; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.mockito.InOrder; -import org.mockito.Mock; -import org.opensrp.domain.Event; -import org.opensrp.register.service.handler.BaseScheduleHandler.ActionType; -import org.opensrp.register.service.scheduling.ENCCSchedulesService; -import org.opensrp.service.ClientService; -import org.powermock.core.classloader.annotations.PowerMockIgnore; -import org.powermock.modules.junit4.PowerMockRunner; - -@RunWith(PowerMockRunner.class) -@PowerMockIgnore({ "org.apache.log4j.*", "org.apache.commons.logging.*" }) -public class ChildScheduleHandlerTest extends TestResourceLoader { - @Mock - private ENCCSchedulesService enccSchedulesService; - private ChildScheduleHandler childScheduleHandler; - @Mock - private ClientService clientService; - private static final String JSON_KEY_TYPES = "types"; - private static final String JSON_KEY_EVENTS = "events"; - protected static DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd"); - - @Before - public void setUp() throws Exception { - initMocks(this); - childScheduleHandler = new ChildScheduleHandler(enccSchedulesService,clientService); - } - - @Test - public void shouldTestChilsScheduleHandler() throws Exception { - Event event = geteventOfVaccination(); - JSONArray schedulesJsonObject = new JSONArray("[" + getFile() + "]"); - String scheduleName =null; - Date dateCreated = event.getDateCreated().toDate(); - Calendar cal = Calendar.getInstance(); - cal.setTime(dateCreated); - cal.add(Calendar.DATE, 1); - String dateTo = dateFormat.format(cal.getTime()); - cal = Calendar.getInstance(); - cal.setTime(dateCreated); - cal.add(Calendar.DATE, -1); - String dateFrom = dateFormat.format(cal.getTime()); - when(clientService, method(ClientService.class, "findByRelationshipIdAndDateCreated", String.class,String.class,String.class)) - .withArguments("ooo-yyy-yyy",dateFrom,dateTo) - .thenReturn(getClients()); - for (int i = 0; i < schedulesJsonObject.length(); i++) { - JSONObject scheduleJsonObject = schedulesJsonObject.getJSONObject(i); - JSONArray eventsJsonArray = scheduleJsonObject.getJSONArray(JSON_KEY_EVENTS); - for (int j = 0; j < eventsJsonArray.length(); j++) { - JSONObject scheduleConfigEvent = eventsJsonArray.getJSONObject(j); - JSONArray eventTypesJsonArray = scheduleConfigEvent.getJSONArray(JSON_KEY_TYPES); - List eventsList = jsonArrayToList(eventTypesJsonArray); - if (eventsList.contains(event.getEventType())) { - String action = childScheduleHandler.getAction(scheduleConfigEvent); - String milestone = childScheduleHandler.getMilestone(scheduleConfigEvent); - if (milestone.equalsIgnoreCase("opv2") && action.equalsIgnoreCase(ActionType.enroll.toString())) { - childScheduleHandler.handle(event,scheduleConfigEvent, scheduleName); - InOrder inOrder = inOrder(enccSchedulesService); - inOrder.verify(enccSchedulesService).enrollIntoCorrectMilestoneOfENCCCare("ooo-yyy-yyy", "BirthNotificationPregnancyStatusFollowUp", LocalDate.parse("2016-07-10"), event.getId()); - } else if (milestone.equalsIgnoreCase("opv2") && action.equalsIgnoreCase(ActionType.fulfill.toString())) { - childScheduleHandler.handle(event,scheduleConfigEvent, scheduleName); - InOrder inOrder = inOrder(enccSchedulesService); - inOrder.verify(enccSchedulesService).fullfillMilestone(event.getBaseEntityId(), event.getProviderId(), "BirthNotificationPregnancyStatusFollowUp", LocalDate.parse("2016-07-10"), event.getId()); - } - } - } - } - } - -} diff --git a/opensrp-register/src/test/java/org/opensrp/register/service/handler/ElcoScheduleHandlerTest.java b/opensrp-register/src/test/java/org/opensrp/register/service/handler/ElcoScheduleHandlerTest.java deleted file mode 100644 index 4a9f48d627..0000000000 --- a/opensrp-register/src/test/java/org/opensrp/register/service/handler/ElcoScheduleHandlerTest.java +++ /dev/null @@ -1,80 +0,0 @@ -package org.opensrp.register.service.handler; - -import static org.mockito.Mockito.inOrder; -import static org.mockito.MockitoAnnotations.initMocks; -import static org.powermock.api.mockito.PowerMockito.when; -import static org.powermock.api.support.membermodification.MemberMatcher.method; - -import java.text.DateFormat; -import java.text.SimpleDateFormat; -import java.util.Calendar; -import java.util.Date; -import java.util.List; - -import org.joda.time.LocalDate; -import org.json.JSONArray; -import org.json.JSONObject; -import org.junit.Before; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.mockito.InOrder; -import org.mockito.Mock; -import org.opensrp.domain.Event; -import org.opensrp.register.service.handler.BaseScheduleHandler.ActionType; -import org.opensrp.register.service.scheduling.ELCOScheduleService; -import org.opensrp.register.service.scheduling.ENCCSchedulesService; -import org.opensrp.register.service.scheduling.HHSchedulesService; -import org.opensrp.service.ClientService; -import org.powermock.core.classloader.annotations.PowerMockIgnore; -import org.powermock.modules.junit4.PowerMockRunner; - -@RunWith(PowerMockRunner.class) -@PowerMockIgnore({ "org.apache.log4j.*", "org.apache.commons.logging.*" }) -public class ElcoScheduleHandlerTest extends TestResourceLoader { - @Mock - private ELCOScheduleService elcoScheduleService; - private ElcoScheduleHandler elcoScheduleHandler; - private static final String JSON_KEY_TYPES = "types"; - private static final String JSON_KEY_EVENTS = "events"; - protected static DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd"); - public static final String ELCO_SCHEDULE_PSRF = "ELCO PSRF"; - public static final String MIS_ELCO = "mis_elco"; - - @Before - public void setUp() throws Exception { - initMocks(this); - elcoScheduleHandler = new ElcoScheduleHandler(elcoScheduleService); - } - - @Test - public void shouldTestElcoScheduleHandler() throws Exception { - Event event = geteventOfVaccination(); - JSONArray schedulesJsonObject = new JSONArray("[" + getFile() + "]"); - String scheduleName =null; - for (int i = 0; i < schedulesJsonObject.length(); i++) { - JSONObject scheduleJsonObject = schedulesJsonObject.getJSONObject(i); - JSONArray eventsJsonArray = scheduleJsonObject.getJSONArray(JSON_KEY_EVENTS); - for (int j = 0; j < eventsJsonArray.length(); j++) { - JSONObject scheduleConfigEvent = eventsJsonArray.getJSONObject(j); - JSONArray eventTypesJsonArray = scheduleConfigEvent.getJSONArray(JSON_KEY_TYPES); - List eventsList = jsonArrayToList(eventTypesJsonArray); - if (eventsList.contains(event.getEventType())) { - String action = elcoScheduleHandler.getAction(scheduleConfigEvent); - String milestone=elcoScheduleHandler.getMilestone(scheduleConfigEvent); - if (milestone.equalsIgnoreCase("opv2") && action.equalsIgnoreCase(ActionType.enroll.toString())) { - elcoScheduleHandler.handle(event,scheduleConfigEvent, scheduleName); - InOrder inOrder = inOrder(elcoScheduleService); - inOrder.verify(elcoScheduleService).imediateEnrollIntoMilestoneOfPSRF(event.getBaseEntityId(), - "2016-07-10", event.getProviderId(), - ELCO_SCHEDULE_PSRF, event.getId()); - } else if(milestone.equalsIgnoreCase("opv2") && action.equalsIgnoreCase(ActionType.fulfill.toString())) { - elcoScheduleHandler.handle(event,scheduleConfigEvent, scheduleName); - InOrder inOrder = inOrder(elcoScheduleService); - inOrder.verify(elcoScheduleService).fullfillMilestone(event.getBaseEntityId(), event.getProviderId(), ELCO_SCHEDULE_PSRF, LocalDate.parse("2016-07-10"), event.getId()); - } - } - } - } - } - -} diff --git a/opensrp-register/src/test/java/org/opensrp/register/service/handler/HHScheduleHandlerTest.java b/opensrp-register/src/test/java/org/opensrp/register/service/handler/HHScheduleHandlerTest.java deleted file mode 100644 index 31ade5e8cb..0000000000 --- a/opensrp-register/src/test/java/org/opensrp/register/service/handler/HHScheduleHandlerTest.java +++ /dev/null @@ -1,76 +0,0 @@ -package org.opensrp.register.service.handler; - -import static org.mockito.Mockito.inOrder; -import static org.mockito.MockitoAnnotations.initMocks; -import static org.powermock.api.mockito.PowerMockito.when; -import static org.powermock.api.support.membermodification.MemberMatcher.method; - -import java.text.DateFormat; -import java.text.SimpleDateFormat; -import java.util.Calendar; -import java.util.Date; -import java.util.List; - -import org.joda.time.LocalDate; -import org.json.JSONArray; -import org.json.JSONObject; -import org.junit.Before; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.mockito.InOrder; -import org.mockito.Mock; -import org.opensrp.domain.Event; -import org.opensrp.register.service.handler.BaseScheduleHandler.ActionType; -import org.opensrp.register.service.scheduling.ENCCSchedulesService; -import org.opensrp.register.service.scheduling.HHSchedulesService; -import org.opensrp.service.ClientService; -import org.powermock.core.classloader.annotations.PowerMockIgnore; -import org.powermock.modules.junit4.PowerMockRunner; - -@RunWith(PowerMockRunner.class) -@PowerMockIgnore({ "org.apache.log4j.*", "org.apache.commons.logging.*" }) -public class HHScheduleHandlerTest extends TestResourceLoader { - @Mock - private HHSchedulesService hhSchedulesService; - private HHScheduleHandler hhScheduleHandler; - private static final String JSON_KEY_TYPES = "types"; - private static final String JSON_KEY_EVENTS = "events"; - protected static DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd"); - - @Before - public void setUp() throws Exception { - initMocks(this); - hhScheduleHandler = new HHScheduleHandler(hhSchedulesService); - } - - @Test - public void shouldTestChilsScheduleHandler() throws Exception { - Event event = geteventOfVaccination(); - JSONArray schedulesJsonObject = new JSONArray("[" + getFile() + "]"); - String scheduleName =null; - for (int i = 0; i < schedulesJsonObject.length(); i++) { - JSONObject scheduleJsonObject = schedulesJsonObject.getJSONObject(i); - JSONArray eventsJsonArray = scheduleJsonObject.getJSONArray(JSON_KEY_EVENTS); - for (int j = 0; j < eventsJsonArray.length(); j++) { - JSONObject scheduleConfigEvent = eventsJsonArray.getJSONObject(j); - JSONArray eventTypesJsonArray = scheduleConfigEvent.getJSONArray(JSON_KEY_TYPES); - List eventsList = jsonArrayToList(eventTypesJsonArray); - if (eventsList.contains(event.getEventType())) { - String action = hhScheduleHandler.getAction(scheduleConfigEvent); - String milestone=hhScheduleHandler.getMilestone(scheduleConfigEvent); - if (milestone.equalsIgnoreCase("opv2") && action.equalsIgnoreCase(ActionType.enroll.toString())) { - hhScheduleHandler.handle(event,scheduleConfigEvent, scheduleName); - InOrder inOrder = inOrder(hhSchedulesService); - inOrder.verify(hhSchedulesService).enrollIntoMilestoneOfCensus(event.getBaseEntityId(), - "2016-07-10", event.getProviderId(), "opv2",event.getId()); - } else if(milestone.equalsIgnoreCase("opv2") && action.equalsIgnoreCase(ActionType.fulfill.toString())) { - hhScheduleHandler.handle(event,scheduleConfigEvent, scheduleName); - InOrder inOrder = inOrder(hhSchedulesService); - inOrder.verify(hhSchedulesService).fullfillMilestone(event.getBaseEntityId(), event.getProviderId(), "FW CENSUS", LocalDate.parse("2016-07-10"), event.getId()); - } - } - } - } - } - -} diff --git a/opensrp-register/src/test/java/org/opensrp/register/service/handler/PNCScheduleHandlerTest.java b/opensrp-register/src/test/java/org/opensrp/register/service/handler/PNCScheduleHandlerTest.java deleted file mode 100644 index ece4ee44f1..0000000000 --- a/opensrp-register/src/test/java/org/opensrp/register/service/handler/PNCScheduleHandlerTest.java +++ /dev/null @@ -1,123 +0,0 @@ -package org.opensrp.register.service.handler; - -import static org.mockito.Mockito.inOrder; -import static org.mockito.Mockito.verifyNoMoreInteractions; -import static org.mockito.MockitoAnnotations.initMocks; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import org.joda.time.DateTime; -import org.joda.time.LocalDate; -import org.json.JSONArray; -import org.json.JSONException; -import org.json.JSONObject; -import org.junit.Before; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.mockito.InOrder; -import org.mockito.Mock; -import org.mockito.Mockito; -import org.motechproject.model.Time; -import org.motechproject.scheduletracking.api.domain.Enrollment; -import org.motechproject.scheduletracking.api.domain.EnrollmentStatus; -import org.motechproject.scheduletracking.api.repository.AllEnrollments; -import org.motechproject.scheduletracking.api.repository.AllSchedules; -import org.opensrp.domain.Client; -import org.opensrp.domain.Event; -import org.opensrp.domain.Obs; -import org.opensrp.register.service.handler.BaseScheduleHandler.ActionType; -import org.opensrp.register.service.scheduling.AnteNatalCareSchedulesService; -import org.opensrp.register.service.scheduling.PNCSchedulesService; -import org.opensrp.repository.couch.AllClients; -import org.opensrp.scheduler.HealthSchedulerService; -import org.opensrp.scheduler.service.ScheduleService; -import org.powermock.core.classloader.annotations.PowerMockIgnore; -import org.powermock.core.classloader.annotations.PrepareForTest; -import org.powermock.modules.junit4.PowerMockRunner; - -/*@RunWith(SpringJUnit4ClassRunner.class) -@ContextConfiguration("classpath:test-applicationContext-opensrp-register.xml") -*/ -@RunWith(PowerMockRunner.class) -//@PrepareForTest({PNCSchedulesService.class}) -@PowerMockIgnore({ "org.apache.log4j.*", "org.apache.commons.logging.*" }) -public class PNCScheduleHandlerTest extends TestResourceLoader { - public PNCScheduleHandlerTest() { - - } - private PNCScheduleHandler pncScheduleHandler; - @Mock - private AnteNatalCareSchedulesService anteNatalCareSchedulesService; - @Mock - private AllClients allClients; - @Mock - private AllSchedules allSchedules; - @Mock - private AllEnrollments allEnrollments; - @Mock - private PNCSchedulesService pncSchedulesService; - @Mock - private ScheduleService scheduleService; - @Mock - private HealthSchedulerService scheduler; - private static final String JSON_KEY_HANDLER = "handler"; - private static final String JSON_KEY_TYPES = "types"; - private static final String JSON_KEY_EVENTS = "events"; - - @Before - public void setUp() throws Exception { - initMocks(this); - pncScheduleHandler = new PNCScheduleHandler(pncSchedulesService); - } - - @Test - public void shouldTestPNCScheduleHandler() throws Exception { - Event event = geteventOfVaccination(); - JSONArray schedulesJsonObject = new JSONArray("[" + getFile() + "]"); - for (int i = 0; i < schedulesJsonObject.length(); i++) { - JSONObject scheduleJsonObject = schedulesJsonObject.getJSONObject(i); - JSONArray eventsJsonArray = scheduleJsonObject.getJSONArray(JSON_KEY_EVENTS); - for (int j = 0; j < eventsJsonArray.length(); j++) { - JSONObject scheduleConfigEvent = eventsJsonArray.getJSONObject(j); - JSONArray eventTypesJsonArray = scheduleConfigEvent.getJSONArray(JSON_KEY_TYPES); - List eventsList = jsonArrayToList(eventTypesJsonArray); - if (eventsList.contains(event.getEventType())) { - String action = pncScheduleHandler.getAction(scheduleConfigEvent); - String milestone=pncScheduleHandler.getMilestone(scheduleConfigEvent); - if (milestone.equalsIgnoreCase("opv2") && action.equalsIgnoreCase(ActionType.enroll.toString())) { - pncScheduleHandler.handle(event,scheduleConfigEvent, null); - InOrder inOrder = inOrder(pncSchedulesService); - LocalDate date = LocalDate.parse(pncScheduleHandler.getReferenceDateForSchedule(event, scheduleConfigEvent, action)); - inOrder.verify(pncSchedulesService).enrollPNCRVForMother(event.getBaseEntityId(), "Post Natal Care Reminder Visit",date , milestone, event.getId()); - } - else if (milestone.equalsIgnoreCase("opv2") && action.equalsIgnoreCase(ActionType.fulfill.toString())) { - pncScheduleHandler.handle(event,scheduleConfigEvent, null); - InOrder inOrder = inOrder(pncSchedulesService); - LocalDate date = LocalDate.parse(pncScheduleHandler.getReferenceDateForSchedule(event, scheduleConfigEvent, action)); - inOrder.verify(pncSchedulesService).fullfillMilestone(event.getBaseEntityId(), event.getProviderId(), "Post Natal Care Reminder Visit", date, event.getId()); - } else { - - } - } - } - } - } - - @Test(expected=JSONException.class) - public void shouldReturnExceptionWhenTestPNCScheduleHandler() throws Exception { - Event event = geteventOfVaccination(); - JSONArray schedulesJsonObject = new JSONArray("[" + getFile() + "]"); - for (int i = 0; i < schedulesJsonObject.length(); i++) { - JSONObject scheduleJsonObject = schedulesJsonObject.getJSONObject(i); - JSONArray eventsJsonArray = scheduleJsonObject.getJSONArray(JSON_KEY_EVENTS); - for (int j = 0; j < eventsJsonArray.length(); j++) { - JSONObject scheduleConfigEvent = new JSONObject("df"); - pncScheduleHandler.handle(event,scheduleConfigEvent, scheduleName); - } - } - } - -} diff --git a/opensrp-register/src/test/java/org/opensrp/register/service/handler/TestResourceLoader.java b/opensrp-register/src/test/java/org/opensrp/register/service/handler/TestResourceLoader.java deleted file mode 100644 index 01135ab196..0000000000 --- a/opensrp-register/src/test/java/org/opensrp/register/service/handler/TestResourceLoader.java +++ /dev/null @@ -1,226 +0,0 @@ -package org.opensrp.register.service.handler; - -import static org.mockito.MockitoAnnotations.initMocks; - -import java.io.File; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import org.apache.commons.io.FileUtils; -import org.joda.time.DateTime; -import org.json.JSONArray; -import org.json.JSONException; -import org.junit.Before; -import org.motechproject.scheduletracking.api.repository.AllSchedules; -import org.opensrp.domain.Client; -import org.opensrp.domain.Event; -import org.opensrp.domain.Obs; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.core.io.DefaultResourceLoader; -import org.springframework.core.io.ResourceLoader; - - -public class TestResourceLoader { - public String entityId = "entityId1"; - public String scheduleName = "opv 1"; - public String provider = "anm"; - public String eventId = "eventID 1"; - public String caseId = "caseId"; - public String milestone = "milestone"; - @Autowired - private AllSchedules allSchedules; - - - public String getFile() throws IOException { - ResourceLoader loader = new DefaultResourceLoader(); - String scheduleConfigFilesPath = "./../assets/schedules/schedule-configs"; - File scheduleConfigsFolder = null; - if (scheduleConfigsFolder == null && loader.getResource(scheduleConfigFilesPath).exists()) - scheduleConfigFilesPath = loader.getResource(scheduleConfigFilesPath).getURI().getPath(); - scheduleConfigsFolder = new File(scheduleConfigFilesPath); - String scheduleConfigMapping = ""; - File[] scheduleFiles = scheduleConfigsFolder.listFiles(); - for (int i = 0; i < scheduleFiles.length; i++) { - final File fileEntry = scheduleFiles[i]; - String scheduleConfig = FileUtils.readFileToString(new File(fileEntry.getAbsolutePath()), "UTF-8"); - scheduleConfigMapping += (i + 1 == scheduleFiles.length) ? scheduleConfig : scheduleConfig.concat(","); - } - return scheduleConfigMapping; - } - - - public List jsonArrayToList(JSONArray jsonArray) throws JSONException { - List values = new ArrayList(); - if (jsonArray == null) { - return values; - } - for (int i = 0; i < jsonArray.length(); i++) { - values.add((String) jsonArray.get(i)); - } - return values; - } - - public List getEvents(String opv3Date) { - List events = new ArrayList<>(); - Event eventObj1 = new Event(); - eventObj1.setBaseEntityId("ooo-yyy-yyy"); - eventObj1.setEventType("Vaccination"); - eventObj1.setProviderId("anm"); - - List observations1 = new ArrayList<>(); - Obs obs1 = new Obs(); - obs1.setFieldCode("1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"); - obs1.setFieldDataType("calculate"); - obs1.setFieldType("concept"); - obs1.setParentCode("783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"); - obs1.setFormSubmissionField("opv1_dose"); - List value = new ArrayList<>(); - value.add("1"); - obs1.setValues(value); - observations1.add(obs1); - - Obs obs2 = new Obs(); - obs2.setFieldCode("1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"); - obs2.setFieldDataType("date"); - obs2.setFieldType("concept"); - obs2.setParentCode("783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"); - obs2.setFormSubmissionField("opv1_retro"); - List value2 = new ArrayList<>(); - value2.add("2015-12-16"); - obs2.setValues(value); - observations1.add(obs2); - eventObj1.setObs(observations1); - - Event eventObj2 = new Event(); - eventObj2.setBaseEntityId("ooo-yyy-yyy"); - eventObj2.setEventType("Vaccination"); - eventObj2.setProviderId("anm"); - List observations2 = new ArrayList<>(); - - - Obs obs3 = new Obs(); - obs3.setFieldCode("1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"); - obs3.setFieldDataType("calculate"); - obs3.setFieldType("concept"); - obs3.setParentCode("783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"); - obs3.setFormSubmissionField("opv0_dose"); - List value3 = new ArrayList<>(); - value3.add("0"); - obs3.setValues(value3); - observations2.add(obs3); - - Obs obs4 = new Obs(); - obs4.setFieldCode("1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"); - obs4.setFieldDataType("date"); - obs4.setFieldType("concept"); - obs4.setParentCode("783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"); - obs4.setFormSubmissionField("opv0_retro"); - List value4 = new ArrayList<>(); - value4.add("2013-12-16"); - obs4.setValues(value4); - observations2.add(obs4); - - eventObj2.setObs(observations2); - - - Event eventObj3 = new Event(); - eventObj3.setBaseEntityId("ooo-yyy-yyy"); - eventObj3.setEventType("Vaccination"); - eventObj3.setProviderId("anm"); - List observations3 = new ArrayList<>(); - - - Obs obs5 = new Obs(); - obs5.setFieldCode("1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"); - obs5.setFieldDataType("calculate"); - obs5.setFieldType("concept"); - obs5.setParentCode("783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"); - obs5.setFormSubmissionField("opv3_dose"); - List value5 = new ArrayList<>(); - value5.add("3"); - obs5.setValues(value5); - observations3.add(obs5); - - Obs obs6 = new Obs(); - obs6.setFieldCode("1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"); - obs6.setFieldDataType("date"); - obs6.setFieldType("concept"); - obs6.setParentCode("783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"); - obs6.setFormSubmissionField("opv3_retro"); - List value6 = new ArrayList<>(); - value6.add(opv3Date); - obs6.setValues(value6); - observations3.add(obs6); - - eventObj3.setObs(observations3); - - events.add(eventObj1); - events.add(eventObj2); - events.add(eventObj3); - return events; - } - public Event geteventOfVaccination() throws IOException { - String baseEntityId = "ooo-yyy-yyy"; - String eventType = "Vaccination"; - DateTime eventDate = new DateTime(); - String entityType = ""; - String providerId = "anm"; - String locationId = ""; - String formSubmissionId = ""; - Event event = new Event(baseEntityId, eventType, eventDate, entityType, providerId, locationId, formSubmissionId); - event.setId("23456"); - event.setDateCreated(new DateTime("2017-02-02")); - String scheduleName = "VIT A 1"; - String schedulesStr = getFile(); - List values = new ArrayList<>(); - values.add("2016-07-10"); - Obs observation1 = new Obs("concept", "date", "1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", values, "", ""); - List obs = new ArrayList<>(); - obs.add(observation1); - Client client = new Client("ooo-yyy-yyy", "hmmm", "hummm", "lssssss", new DateTime("1995-12-28T00:00:00.000Z"), new DateTime(), true, true, "Female", "", ""); - List values1 = new ArrayList<>(); - values1.add("2017-06-08 09:33:39"); - Obs observation2 = new Obs("client", "birthdate", "163137AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", values1, "", "birthdate"); - event.addObs(observation1); - event.addObs(observation2); - return event; - } - - public Event geteventOfBirthRegistration() throws IOException { - String baseEntityId = "ooo-yyy-yyy"; - String eventType = "Birth Registration"; - DateTime eventDate = new DateTime(); - String entityType = ""; - String providerId = "anm"; - String locationId = ""; - String formSubmissionId = ""; - Event event = new Event(baseEntityId, eventType, eventDate, entityType, providerId, locationId, formSubmissionId); - event.setId("23456"); - event.setDateCreated(new DateTime("2017-02-02")); - String scheduleName = "VIT A 1"; - String schedulesStr = getFile(); - List values = new ArrayList<>(); - values.add("2016-07-10"); - Obs observation1 = new Obs("concept", "date", "1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", values, "", ""); - List obs = new ArrayList<>(); - obs.add(observation1); - Client client = new Client("ooo-yyy-yyy", "hmmm", "hummm", "lssssss", new DateTime("1995-12-28T00:00:00.000Z"), new DateTime(), true, true, "Female", "", ""); - List values1 = new ArrayList<>(); - values1.add("2017-06-08 09:33:39"); - Obs observation2 = new Obs("client", "birthdate", "163137AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", values1, "", "birthdate"); - event.addObs(observation1); - event.addObs(observation2); - return event; - } - public List getClients() { - List clients = new ArrayList<>(); - Client client = new Client("ooo-yyy-yyy"); - client.setFirstName("Client"); - client.setId("2345"); - clients.add(client); - client.setBirthdate(new DateTime()); - return clients; - } - -} diff --git a/opensrp-register/src/test/java/org/opensrp/register/service/handler/VaccinesScheduleHandlerTest.java b/opensrp-register/src/test/java/org/opensrp/register/service/handler/VaccinesScheduleHandlerTest.java deleted file mode 100644 index 7e0105d0e9..0000000000 --- a/opensrp-register/src/test/java/org/opensrp/register/service/handler/VaccinesScheduleHandlerTest.java +++ /dev/null @@ -1,250 +0,0 @@ -package org.opensrp.register.service.handler; - -import static org.mockito.Matchers.anyString; -import static org.mockito.Mockito.inOrder; -import static org.mockito.Mockito.times; -import static org.mockito.MockitoAnnotations.initMocks; -import static org.powermock.api.mockito.PowerMockito.when; -import static org.powermock.api.support.membermodification.MemberMatcher.method; - -import java.util.List; - -import org.apache.log4j.Level; -import org.apache.log4j.Logger; -import org.apache.log4j.spi.LoggingEvent; -import org.joda.time.DateTime; -import org.joda.time.LocalDate; -import org.json.JSONArray; -import org.json.JSONException; -import org.json.JSONObject; -import org.junit.Assert; -import org.junit.Before; -import org.junit.Ignore; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.mockito.InOrder; -import org.mockito.Mock; -import org.motechproject.model.Time; -import org.motechproject.scheduletracking.api.domain.Enrollment; -import org.motechproject.scheduletracking.api.domain.EnrollmentStatus; -import org.motechproject.scheduletracking.api.domain.Schedule; -import org.opensrp.common.util.TestLoggerAppender; -import org.opensrp.domain.Event; -import org.opensrp.register.service.handler.BaseScheduleHandler.ActionType; -import org.opensrp.repository.couch.AllEvents; -import org.opensrp.scheduler.HealthSchedulerService; -import org.powermock.modules.junit4.PowerMockRunner; - -import com.fasterxml.jackson.core.JsonParseException; - -/*@RunWith(SpringJUnit4ClassRunner.class) -@ContextConfiguration("classpath:test-applicationContext-opensrp-register.xml")*/ -@RunWith(PowerMockRunner.class) -//@PrepareForTest(AllEvents.class) -public class VaccinesScheduleHandlerTest extends TestResourceLoader { - @Mock - private HealthSchedulerService scheduler; - @Mock - private AllEvents allEvents; - private VaccinesScheduleHandler vaccinesScheduleHandler; - private static final String JSON_KEY_HANDLER = "handler"; - private static final String JSON_KEY_TYPES = "types"; - private static final String JSON_KEY_SCHEDULE_NAME = "name"; - private static final String JSON_KEY_EVENTS = "events"; - - @Before - public void setUp() throws Exception { - initMocks(this); - vaccinesScheduleHandler = new VaccinesScheduleHandler(scheduler, allEvents); - } - - @Test - public void shouldVaccinesScheduleHandlerForVIT() throws Exception { - Event event = geteventOfVaccination(); - String scheduleName = ""; - Schedule schedule = new Schedule("VIT A 1"); - Enrollment enrollment = new Enrollment("ooo-yyy-yyy", schedule, "", new DateTime(), new DateTime(), new Time(), EnrollmentStatus.ACTIVE, null); - JSONArray schedulesJsonObject = new JSONArray("[" + getFile() + "]"); - when(scheduler, method(HealthSchedulerService.class, "getActiveEnrollment", String.class,String.class)) - .withArguments("ooo-yyy-yyy", "VIT A 1") - .thenReturn(enrollment); - for (int i = 0; i < schedulesJsonObject.length(); i++) { - JSONObject scheduleJsonObject = schedulesJsonObject.getJSONObject(i); - JSONArray eventsJsonArray = scheduleJsonObject.getJSONArray(JSON_KEY_EVENTS); - scheduleName = scheduleJsonObject.getString(JSON_KEY_SCHEDULE_NAME); - for (int j = 0; j < eventsJsonArray.length(); j++) { - JSONObject scheduleConfigEvent = eventsJsonArray.getJSONObject(j); - JSONArray eventTypesJsonArray = scheduleConfigEvent.getJSONArray(JSON_KEY_TYPES); - List eventsList = jsonArrayToList(eventTypesJsonArray); - if (eventsList.contains(event.getEventType())) { - String milestone=vaccinesScheduleHandler.getMilestone(scheduleConfigEvent); - if(milestone.equalsIgnoreCase("opv2")){ - vaccinesScheduleHandler.handle(event,scheduleConfigEvent, "VIT A 1"); - scheduleName = "VIT A 1"; - String action = vaccinesScheduleHandler.getAction(scheduleConfigEvent); - InOrder inOrder = inOrder(scheduler); - inOrder.verify(scheduler).getActiveEnrollment("ooo-yyy-yyy", "VIT A 1"); - inOrder.verify(scheduler).unEnrollFromSchedule("ooo-yyy-yyy", "anm", "VIT A 1", event.getId()); - LocalDate date = LocalDate.parse(vaccinesScheduleHandler.getReferenceDateForSchedule(event, scheduleConfigEvent, action)); - inOrder.verify(scheduler).enrollIntoSchedule(event.getBaseEntityId(), scheduleName, milestone, - vaccinesScheduleHandler.getReferenceDateForSchedule(event, scheduleConfigEvent, action), event.getId()); - } - } - } - } - } - @Test - public void shouldVaccinesScheduleHandlerForMEASLES() throws Exception { - Event event = geteventOfVaccination(); - String scheduleName = ""; - JSONArray schedulesJsonObject = new JSONArray("[" + getFile() + "]"); - for (int i = 0; i < schedulesJsonObject.length(); i++) { - JSONObject scheduleJsonObject = schedulesJsonObject.getJSONObject(i); - JSONArray eventsJsonArray = scheduleJsonObject.getJSONArray(JSON_KEY_EVENTS); - scheduleName = scheduleJsonObject.getString(JSON_KEY_SCHEDULE_NAME); - for (int j = 0; j < eventsJsonArray.length(); j++) { - JSONObject scheduleConfigEvent = eventsJsonArray.getJSONObject(j); - JSONArray eventTypesJsonArray = scheduleConfigEvent.getJSONArray(JSON_KEY_TYPES); - List eventsList = jsonArrayToList(eventTypesJsonArray); - if (eventsList.contains(event.getEventType())) { - vaccinesScheduleHandler.handle(event,scheduleConfigEvent, "MEASLES 1"); - String milestone=vaccinesScheduleHandler.getMilestone(scheduleConfigEvent); - if(milestone.equalsIgnoreCase("Opv4")){ - String action = vaccinesScheduleHandler.getAction(scheduleConfigEvent); - InOrder inOrder = inOrder(scheduler); - LocalDate date = LocalDate.parse(vaccinesScheduleHandler.getReferenceDateForSchedule(event, scheduleConfigEvent, action)); - inOrder.verify(scheduler).enrollIntoSchedule(event.getBaseEntityId(), "MEASLES 1", "opv2", - vaccinesScheduleHandler.getReferenceDateForSchedule(event, scheduleConfigEvent, action), event.getId()); - inOrder.verify(scheduler).unEnrollFromSchedule(event.getBaseEntityId(), event.getProviderId(), "MR 1", event.getId()); - inOrder.verify(scheduler).unEnrollFromSchedule(event.getBaseEntityId(), event.getProviderId(), "MR 2", event.getId()); - inOrder.verify(scheduler).fullfillMilestoneAndCloseAlert(event.getBaseEntityId(), event.getProviderId(), - "MEASLES 1", date, event.getId()); - } - } - } - } - } - @Test - public void shouldVaccinesScheduleHandlerForMR() throws Exception { - Event event = geteventOfVaccination(); - String scheduleName = ""; - JSONArray schedulesJsonObject = new JSONArray("[" + getFile() + "]"); - for (int i = 0; i < schedulesJsonObject.length(); i++) { - JSONObject scheduleJsonObject = schedulesJsonObject.getJSONObject(i); - JSONArray eventsJsonArray = scheduleJsonObject.getJSONArray(JSON_KEY_EVENTS); - scheduleName = scheduleJsonObject.getString(JSON_KEY_SCHEDULE_NAME); - for (int j = 0; j < eventsJsonArray.length(); j++) { - JSONObject scheduleConfigEvent = eventsJsonArray.getJSONObject(j); - JSONArray eventTypesJsonArray = scheduleConfigEvent.getJSONArray(JSON_KEY_TYPES); - List eventsList = jsonArrayToList(eventTypesJsonArray); - if (eventsList.contains(event.getEventType())) { - String milestone=vaccinesScheduleHandler.getMilestone(scheduleConfigEvent); - scheduleConfigEvent.remove("milestone"); - if(milestone.equalsIgnoreCase("Opv4")){ - String action = vaccinesScheduleHandler.getAction(scheduleConfigEvent); - vaccinesScheduleHandler.handle(event,scheduleConfigEvent, "MR 1"); - InOrder inOrder = inOrder(scheduler); - inOrder.verify(scheduler).unEnrollFromSchedule(event.getBaseEntityId(), event.getProviderId(), "MEASLES 1", event.getId()); - inOrder.verify(scheduler).unEnrollFromSchedule(event.getBaseEntityId(), event.getProviderId(), "MEASLES 2", event.getId()); - } - } - } - } - } - @Test - public void shouldVaccinesScheduleHandlerForOPV() throws Exception { - Event event = geteventOfVaccination(); - List events = getEvents("2016-02-03"); - when(allEvents, method(AllEvents.class, "findByBaseEntityIdAndConceptParentCode", String.class, String.class,String.class)) - .withArguments(anyString(), anyString(),anyString()) - .thenReturn(events); - JSONArray schedulesJsonObject = new JSONArray("[" + getFile() + "]"); - String scheduleName = ""; - for (int i = 0; i < schedulesJsonObject.length(); i++) { - JSONObject scheduleJsonObject = schedulesJsonObject.getJSONObject(i); - JSONArray eventsJsonArray = scheduleJsonObject.getJSONArray(JSON_KEY_EVENTS); - scheduleName = scheduleJsonObject.getString(JSON_KEY_SCHEDULE_NAME); - for (int j = 0; j < eventsJsonArray.length(); j++) { - JSONObject scheduleConfigEvent = eventsJsonArray.getJSONObject(j); - JSONArray eventTypesJsonArray = scheduleConfigEvent.getJSONArray(JSON_KEY_TYPES); - List eventsList = jsonArrayToList(eventTypesJsonArray); - if (eventsList.contains(event.getEventType())) { - String action = vaccinesScheduleHandler.getAction(scheduleConfigEvent); - String milestone=vaccinesScheduleHandler.getMilestone(scheduleConfigEvent); - LocalDate date = LocalDate.parse("2016-07-10"); - if (milestone.equalsIgnoreCase("opv3")) { - vaccinesScheduleHandler.handle(event,scheduleConfigEvent, "OPV 4"); - InOrder inOrder = inOrder(scheduler); - inOrder.verify(scheduler).enrollIntoSchedule(event.getBaseEntityId(), "OPV 4", "opv3", - "2016-07-10", event.getId()); - } - } - } - } - - } - @Test - public void shouldTestNUllOrEmptyMilestone() throws Exception { - Event event = geteventOfVaccination(); - List events = getEvents("2016-02-03"); - when(allEvents, method(AllEvents.class, "findByBaseEntityIdAndConceptParentCode", String.class, String.class,String.class)) - .withArguments(anyString(), anyString(),anyString()) - .thenReturn(events); - JSONArray schedulesJsonObject = new JSONArray("[" + getFile() + "]"); - String scheduleName = ""; - for (int i = 0; i < schedulesJsonObject.length(); i++) { - JSONObject scheduleJsonObject = schedulesJsonObject.getJSONObject(i); - JSONArray eventsJsonArray = scheduleJsonObject.getJSONArray(JSON_KEY_EVENTS); - scheduleName = scheduleJsonObject.getString(JSON_KEY_SCHEDULE_NAME); - for (int j = 0; j < eventsJsonArray.length(); j++) { - JSONObject scheduleConfigEvent = eventsJsonArray.getJSONObject(j); - JSONArray eventTypesJsonArray = scheduleConfigEvent.getJSONArray(JSON_KEY_TYPES); - List eventsList = jsonArrayToList(eventTypesJsonArray); - if (eventsList.contains(event.getEventType())) { - String milestone=vaccinesScheduleHandler.getMilestone(scheduleConfigEvent); - scheduleConfigEvent.remove("milestone"); - String action = vaccinesScheduleHandler.getAction(scheduleConfigEvent); - if (action.equalsIgnoreCase(ActionType.enroll.toString())) { - vaccinesScheduleHandler.handle(event,scheduleConfigEvent, "OPV 4"); - } - } - } - } - InOrder inOrder = inOrder(scheduler); - inOrder.verify(scheduler,times(2)).enrollIntoSchedule(event.getBaseEntityId(), "OPV 4", - "2016-07-10", event.getId()); - } - - @Test - public void shouldTestExceptionForVaccinesScheduleHandlerForOPV() throws Exception { - Event event = geteventOfVaccination(); - List events = getEvents("Not A Valid Date"); - when(allEvents, method(AllEvents.class, "findByBaseEntityIdAndConceptParentCode", String.class, String.class,String.class)) - .withArguments(anyString(), anyString(),anyString()) - .thenReturn(events); - JSONArray schedulesJsonObject = new JSONArray("[" + getFile() + "]"); - final TestLoggerAppender appender = new TestLoggerAppender(); - final Logger logger = Logger.getLogger(BaseScheduleHandler.class.toString()); - logger.setLevel(Level.ALL); - logger.addAppender(appender); - String scheduleName = ""; - for (int i = 0; i < schedulesJsonObject.length(); i++) { - JSONObject scheduleJsonObject = schedulesJsonObject.getJSONObject(i); - JSONArray eventsJsonArray = scheduleJsonObject.getJSONArray(JSON_KEY_EVENTS); - scheduleName = scheduleJsonObject.getString(JSON_KEY_SCHEDULE_NAME); - for (int j = 0; j < eventsJsonArray.length(); j++) { - JSONObject scheduleConfigEvent = eventsJsonArray.getJSONObject(j); - JSONArray eventTypesJsonArray = scheduleConfigEvent.getJSONArray(JSON_KEY_TYPES); - List eventsList = jsonArrayToList(eventTypesJsonArray); - if (eventsList.contains(event.getEventType())) { - vaccinesScheduleHandler.handle(event,scheduleConfigEvent, "OPV 4"); - } - } - } - final List log = appender.getLog(); - final LoggingEvent firstLogEntry = log.get(0); - Assert.assertEquals(firstLogEntry.getRenderedMessage(), "Unparseable date: \"Not A Valid Date\""); - logger.removeAllAppenders(); - } - -} diff --git a/opensrp-register/src/test/java/org/opensrp/register/service/scheduling/AnteNatalCareSchedulesServiceTest.java b/opensrp-register/src/test/java/org/opensrp/register/service/scheduling/AnteNatalCareSchedulesServiceTest.java deleted file mode 100644 index 151da04d45..0000000000 --- a/opensrp-register/src/test/java/org/opensrp/register/service/scheduling/AnteNatalCareSchedulesServiceTest.java +++ /dev/null @@ -1,71 +0,0 @@ -package org.opensrp.register.service.scheduling; - -import static org.mockito.Mockito.inOrder; -import static org.mockito.MockitoAnnotations.initMocks; - -import java.util.List; - -import org.apache.log4j.Level; -import org.apache.log4j.Logger; -import org.apache.log4j.spi.LoggingEvent; -import org.joda.time.LocalDate; -import org.junit.Assert; -import org.junit.Before; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.mockito.InOrder; -import org.mockito.Mock; -import org.mockito.Mockito; -import org.opensrp.common.util.TestLoggerAppender; -import org.opensrp.register.service.handler.TestResourceLoader; -import org.opensrp.scheduler.HealthSchedulerService; -import org.powermock.core.classloader.annotations.PowerMockIgnore; -import org.powermock.modules.junit4.PowerMockRunner; -import static org.mockito.Mockito.doThrow;; - -@RunWith(PowerMockRunner.class) -@PowerMockIgnore({ "org.apache.log4j.*", "org.apache.commons.logging.*" }) -public class AnteNatalCareSchedulesServiceTest extends TestResourceLoader { - - private AnteNatalCareSchedulesService anteNatalCareSchedulesService; - @Mock - private HealthSchedulerService scheduler; - @Before - public void setUp() throws Exception { - initMocks(this); - anteNatalCareSchedulesService = new AnteNatalCareSchedulesService(scheduler); - } - - @Test - public void shouldTestAnteNatalCareSchedulesServiceMthods() { - - final TestLoggerAppender appender = new TestLoggerAppender(); - final Logger logger = Logger.getLogger(AnteNatalCareSchedulesService.class.toString()); - logger.setLevel(Level.ALL); - logger.addAppender(appender); - anteNatalCareSchedulesService.enrollMother(entityId, scheduleName, LocalDate.now(), eventId); - InOrder inOrder = inOrder(scheduler); - inOrder.verify(scheduler).enrollIntoSchedule(entityId,scheduleName, LocalDate.now().toString(), - "eventID 1"); - anteNatalCareSchedulesService.unEnrollFromAllSchedules(entityId, eventId); - inOrder.verify(scheduler).unEnrollFromAllSchedules(entityId, eventId); - anteNatalCareSchedulesService.unEnrollFromSchedule(entityId,provider, scheduleName,eventId); - inOrder.verify(scheduler).unEnrollFromSchedule(entityId, provider, scheduleName, eventId); - anteNatalCareSchedulesService.fullfillMilestone(entityId, provider, scheduleName, LocalDate.now(), eventId); - inOrder.verify(scheduler).fullfillMilestoneAndCloseAlert(entityId, provider, scheduleName, LocalDate.now(), eventId); - final List log = appender.getLog(); - final LoggingEvent secondLogEntry = log.get(1); - Assert.assertEquals(secondLogEntry.getRenderedMessage(), "fullfillMilestone with id: :" + entityId); - final LoggingEvent firstLogEntry = log.get(0); - Assert.assertEquals(firstLogEntry.getRenderedMessage(), "Un-enrolling ANC with Entity id:entityId1 from schedule: opv 1"); - logger.removeAllAppenders(); - } - - @Test - public void shouldGetException() { - Mockito.doThrow(new RuntimeException()).when(scheduler).fullfillMilestoneAndCloseAlert(entityId, provider, scheduleName, null, eventId); - anteNatalCareSchedulesService.fullfillMilestone(entityId, provider, scheduleName, null, eventId); - - } - -} diff --git a/opensrp-register/src/test/java/org/opensrp/register/service/scheduling/BNFSchedulesServiceTest.java b/opensrp-register/src/test/java/org/opensrp/register/service/scheduling/BNFSchedulesServiceTest.java deleted file mode 100644 index 86636f675c..0000000000 --- a/opensrp-register/src/test/java/org/opensrp/register/service/scheduling/BNFSchedulesServiceTest.java +++ /dev/null @@ -1,52 +0,0 @@ -package org.opensrp.register.service.scheduling; - -import static org.mockito.Mockito.times; -import static org.mockito.MockitoAnnotations.initMocks; - -import java.util.List; - -import org.apache.log4j.Level; -import org.apache.log4j.Logger; -import org.apache.log4j.spi.LoggingEvent; -import org.joda.time.LocalDate; -import org.junit.Assert; -import org.junit.Before; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.mockito.Mock; -import org.mockito.Mockito; -import org.opensrp.common.util.TestLoggerAppender; -import org.opensrp.register.service.handler.TestResourceLoader; -import org.opensrp.scheduler.HealthSchedulerService; -import org.powermock.core.classloader.annotations.PowerMockIgnore; -import org.powermock.modules.junit4.PowerMockRunner; - -@RunWith(PowerMockRunner.class) -@PowerMockIgnore({ "org.apache.log4j.*", "org.apache.commons.logging.*" }) -public class BNFSchedulesServiceTest extends TestResourceLoader { - - private BNFSchedulesService bnfSchedulesService; - @Mock - private HealthSchedulerService scheduler; - @Before - public void setUp() throws Exception { - initMocks(this); - bnfSchedulesService = new BNFSchedulesService(scheduler); - } - - @Test - public void shouldTestAnteNatalCareSchedulesServiceMthods() { - - final TestLoggerAppender appender = new TestLoggerAppender(); - final Logger logger = Logger.getLogger(BNFSchedulesService.class.toString()); - logger.setLevel(Level.ALL); - logger.addAppender(appender); - bnfSchedulesService.enrollBNF(entityId, scheduleName, LocalDate.now(), eventId); - Mockito.verify(scheduler,times(1)).enrollIntoSchedule(entityId, scheduleName, LocalDate.now(), eventId); - final List log = appender.getLog(); - final LoggingEvent firstLogEntry = log.get(0); - Assert.assertEquals(firstLogEntry.getRenderedMessage(), "Enrolling Mother into BNF schedule. Id: eventID 1"); - logger.removeAllAppenders(); - } - -} diff --git a/opensrp-register/src/test/java/org/opensrp/register/service/scheduling/ENCCSchedulesServiceTest.java b/opensrp-register/src/test/java/org/opensrp/register/service/scheduling/ENCCSchedulesServiceTest.java deleted file mode 100644 index 4b6f2a973f..0000000000 --- a/opensrp-register/src/test/java/org/opensrp/register/service/scheduling/ENCCSchedulesServiceTest.java +++ /dev/null @@ -1,72 +0,0 @@ -package org.opensrp.register.service.scheduling; - -import static org.mockito.Mockito.times; -import static org.mockito.MockitoAnnotations.initMocks; - -import java.util.List; - -import org.apache.log4j.Level; -import org.apache.log4j.Logger; -import org.apache.log4j.spi.LoggingEvent; -import org.joda.time.LocalDate; -import org.junit.Assert; -import org.junit.Before; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.mockito.Mock; -import org.mockito.Mockito; -import org.opensrp.common.util.TestLoggerAppender; -import org.opensrp.register.service.handler.TestResourceLoader; -import org.opensrp.scheduler.HealthSchedulerService; -import org.powermock.core.classloader.annotations.PowerMockIgnore; -import org.powermock.modules.junit4.PowerMockRunner; - - -@RunWith(PowerMockRunner.class) -@PowerMockIgnore({ "org.apache.log4j.*", "org.apache.commons.logging.*" }) -public class ENCCSchedulesServiceTest extends TestResourceLoader { - - private ENCCSchedulesService enccSchedulesService; - @Mock - private HealthSchedulerService scheduler; - @Before - public void setUp() throws Exception { - initMocks(this); - enccSchedulesService = new ENCCSchedulesService(scheduler); - } - - @Test - public void shouldTestELCOScheduleServiceMethods() { - final TestLoggerAppender appender = new TestLoggerAppender(); - final Logger logger = Logger.getLogger(ENCCSchedulesService.class.toString()); - logger.setLevel(Level.ALL); - logger.addAppender(appender); - - enccSchedulesService.enrollIntoCorrectMilestoneOfENCCCare(entityId,scheduleName, LocalDate.now(), - eventId); - Mockito.verify(scheduler,times(1)).enrollIntoSchedule(entityId, scheduleName,LocalDate.now().toString(), eventId); - - enccSchedulesService.fullfillMilestone(entityId, provider,scheduleName, LocalDate.now(), - eventId); - Mockito.verify(scheduler,times(1)).fullfillMilestoneAndCloseAlert(entityId, provider, scheduleName, LocalDate.now(), eventId); - - enccSchedulesService.unEnrollFromSchedule(entityId, provider, scheduleName,eventId); - Mockito.verify(scheduler,times(1)).unEnrollFromSchedule(entityId, provider, scheduleName, eventId); - - final List log = appender.getLog(); - final LoggingEvent firstLogEntry = log.get(0); - Assert.assertEquals(firstLogEntry.getRenderedMessage(), "Enrolling with Entity id:entityId1 to ENCC schedule, milestone: opv 1."); - final LoggingEvent secondLogEntry = log.get(1); - Assert.assertEquals(secondLogEntry.getRenderedMessage(), "fullfillMilestone with id: :entityId1"); - final LoggingEvent thirdLogEntry = log.get(2); - Assert.assertEquals(thirdLogEntry.getRenderedMessage(), "Un-enrolling ENCC with Entity id:entityId1 from schedule: opv 1"); - logger.removeAllAppenders(); - } - - @Test - public void shouldGetException() { - Mockito.doThrow(new RuntimeException()).when(scheduler).fullfillMilestoneAndCloseAlert(Mockito.anyString(), Mockito.anyString(), Mockito.anyString(), Mockito.any(LocalDate.class), Mockito.anyString()); - enccSchedulesService.fullfillMilestone("", "", "", null,""); - } - -} diff --git a/opensrp-register/src/test/java/org/opensrp/register/service/scheduling/ElcoSchedulesServiceTest.java b/opensrp-register/src/test/java/org/opensrp/register/service/scheduling/ElcoSchedulesServiceTest.java deleted file mode 100644 index 745b06166c..0000000000 --- a/opensrp-register/src/test/java/org/opensrp/register/service/scheduling/ElcoSchedulesServiceTest.java +++ /dev/null @@ -1,83 +0,0 @@ -package org.opensrp.register.service.scheduling; - -import static org.mockito.Mockito.inOrder; -import static org.mockito.MockitoAnnotations.initMocks; - -import java.util.List; - -import org.apache.log4j.Level; -import org.apache.log4j.Logger; -import org.apache.log4j.spi.LoggingEvent; -import org.joda.time.LocalDate; -import org.junit.Assert; -import org.junit.Before; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.mockito.InOrder; -import org.mockito.Mock; -import org.mockito.Mockito; -import org.opensrp.common.util.TestLoggerAppender; -import org.opensrp.register.service.handler.TestResourceLoader; -import org.opensrp.scheduler.HealthSchedulerService; -import org.powermock.core.classloader.annotations.PowerMockIgnore; -import org.powermock.modules.junit4.PowerMockRunner; -import static org.mockito.Mockito.doThrow; -import static org.mockito.Mockito.times; - - -@RunWith(PowerMockRunner.class) -@PowerMockIgnore({ "org.apache.log4j.*", "org.apache.commons.logging.*" }) -public class ElcoSchedulesServiceTest extends TestResourceLoader { - - private ELCOScheduleService elcoScheduleService; - @Mock - private HealthSchedulerService scheduler; - @Before - public void setUp() throws Exception { - initMocks(this); - elcoScheduleService = new ELCOScheduleService(scheduler); - } - - @Test - public void shouldTestELCOScheduleServiceMethods() { - - final TestLoggerAppender appender = new TestLoggerAppender(); - final Logger logger = Logger.getLogger(ELCOScheduleService.class.toString()); - logger.setLevel(Level.ALL); - logger.addAppender(appender); - - elcoScheduleService.enrollIntoMilestoneOfMisElco(caseId, "2017-02-02",eventId,scheduleName) ; - Mockito.verify(scheduler,times(1)).enrollIntoSchedule(caseId, scheduleName, "2017-02-02", eventId); - - elcoScheduleService.imediateEnrollIntoMilestoneOfPSRF(caseId, "2017-02-02", provider, scheduleName,eventId); - Mockito.verify(scheduler,times(2)).enrollIntoSchedule(caseId, scheduleName, "2017-02-02", eventId); - - elcoScheduleService.unEnrollFromScheduleCensus(caseId,provider,scheduleName,eventId); - Mockito.verify(scheduler,times(1)).fullfillMilestoneAndCloseAlert(caseId, provider, scheduleName, new LocalDate(), eventId); - - elcoScheduleService.unEnrollFromScheduleOfPSRF(caseId, provider, scheduleName, eventId); - Mockito.verify(scheduler,times(2)).fullfillMilestoneAndCloseAlert(caseId, provider, scheduleName, new LocalDate(), eventId); - - elcoScheduleService.fullfillMilestone(entityId, provider, scheduleName, LocalDate.now(), - eventId); - Mockito.verify(scheduler).fullfillMilestoneAndCloseAlert(entityId, provider, scheduleName, LocalDate.now(), eventId); - - final List log = appender.getLog(); - final LoggingEvent firstLogEntry = log.get(0); - Assert.assertEquals(firstLogEntry.getRenderedMessage(), "Enrolling Elco into MisElco schedule. Id: caseId"); - final LoggingEvent secondLogEntry = log.get(1); - Assert.assertEquals(secondLogEntry.getRenderedMessage(), "Enrolling Elco into PSRF schedule. Id: caseId"); - logger.removeAllAppenders(); - } - - @Test - public void shouldGetException() { - Mockito.doThrow(new RuntimeException()).when(scheduler).fullfillMilestoneAndCloseAlert(Mockito.anyString(), Mockito.anyString(), Mockito.anyString(), Mockito.any(LocalDate.class), Mockito.anyString()); - elcoScheduleService.fullfillMilestone("", "", "", null,""); - elcoScheduleService.unEnrollFromScheduleCensus("","","",""); - elcoScheduleService.unEnrollFromScheduleOfPSRF(caseId, provider, scheduleName, eventId); - - - } - -} diff --git a/opensrp-register/src/test/java/org/opensrp/register/service/scheduling/HHSchedulesServiceTest.java b/opensrp-register/src/test/java/org/opensrp/register/service/scheduling/HHSchedulesServiceTest.java deleted file mode 100644 index 923da0b72d..0000000000 --- a/opensrp-register/src/test/java/org/opensrp/register/service/scheduling/HHSchedulesServiceTest.java +++ /dev/null @@ -1,56 +0,0 @@ -package org.opensrp.register.service.scheduling; - -import static org.mockito.Mockito.times; -import static org.mockito.MockitoAnnotations.initMocks; - -import java.util.List; - -import org.apache.log4j.Level; -import org.apache.log4j.Logger; -import org.apache.log4j.spi.LoggingEvent; -import org.joda.time.LocalDate; -import org.junit.Assert; -import org.junit.Before; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.mockito.Mock; -import org.mockito.Mockito; -import org.opensrp.common.util.TestLoggerAppender; -import org.opensrp.register.service.handler.TestResourceLoader; -import org.opensrp.scheduler.HealthSchedulerService; -import org.powermock.core.classloader.annotations.PowerMockIgnore; -import org.powermock.modules.junit4.PowerMockRunner; - -@RunWith(PowerMockRunner.class) -@PowerMockIgnore({ "org.apache.log4j.*", "org.apache.commons.logging.*" }) -public class HHSchedulesServiceTest extends TestResourceLoader { - - private HHSchedulesService hhSchedulesService; - @Mock - private HealthSchedulerService scheduler; - @Before - public void setUp() throws Exception { - initMocks(this); - hhSchedulesService = new HHSchedulesService(scheduler); - } - - @Test - public void shouldTestAnteNatalCareSchedulesServiceMthods() { - - final TestLoggerAppender appender = new TestLoggerAppender(); - final Logger logger = Logger.getLogger(HHSchedulesService.class.toString()); - logger.setLevel(Level.ALL); - logger.addAppender(appender); - hhSchedulesService.enrollIntoMilestoneOfCensus(entityId,LocalDate.now().toString(), provider, - scheduleName,eventId); - Mockito.verify(scheduler,times(1)).enrollIntoSchedule(entityId, scheduleName, LocalDate.now().toString(), eventId); - - hhSchedulesService.fullfillMilestone(entityId, provider, scheduleName, LocalDate.now(), eventId); - Mockito.verify(scheduler,times(1)).fullfillMilestoneAndCloseAlert(entityId, provider, scheduleName, LocalDate.now(), eventId); - final List log = appender.getLog(); - final LoggingEvent firstLogEntry = log.get(0); - Assert.assertEquals(firstLogEntry.getRenderedMessage(), "Enrolling household into Census schedule. Id: entityId1"); - logger.removeAllAppenders(); - } - -} diff --git a/opensrp-register/src/test/java/org/opensrp/register/service/scheduling/PNCSchedulesServiceTest.java b/opensrp-register/src/test/java/org/opensrp/register/service/scheduling/PNCSchedulesServiceTest.java deleted file mode 100644 index e0868a2734..0000000000 --- a/opensrp-register/src/test/java/org/opensrp/register/service/scheduling/PNCSchedulesServiceTest.java +++ /dev/null @@ -1,72 +0,0 @@ -package org.opensrp.register.service.scheduling; - -import static org.mockito.Mockito.times; -import static org.mockito.MockitoAnnotations.initMocks; - -import java.util.List; - -import org.apache.log4j.Level; -import org.apache.log4j.Logger; -import org.apache.log4j.spi.LoggingEvent; -import org.joda.time.LocalDate; -import org.junit.Assert; -import org.junit.Before; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.mockito.Mock; -import org.mockito.Mockito; -import org.opensrp.common.util.TestLoggerAppender; -import org.opensrp.register.service.handler.TestResourceLoader; -import org.opensrp.scheduler.HealthSchedulerService; -import org.powermock.core.classloader.annotations.PowerMockIgnore; -import org.powermock.modules.junit4.PowerMockRunner; - - -@RunWith(PowerMockRunner.class) -@PowerMockIgnore({ "org.apache.log4j.*", "org.apache.commons.logging.*" }) -public class PNCSchedulesServiceTest extends TestResourceLoader { - - private PNCSchedulesService pncSchedulesService; - @Mock - private HealthSchedulerService scheduler; - @Before - public void setUp() throws Exception { - initMocks(this); - pncSchedulesService = new PNCSchedulesService(scheduler); - } - - @Test - public void shouldTestELCOScheduleServiceMethods() { - final TestLoggerAppender appender = new TestLoggerAppender(); - final Logger logger = Logger.getLogger(PNCSchedulesService.class.toString()); - logger.setLevel(Level.ALL); - logger.addAppender(appender); - - pncSchedulesService.enrollPNCRVForMother(entityId,scheduleName, LocalDate.now(),milestone,eventId); - Mockito.verify(scheduler,times(1)).enrollIntoSchedule(entityId, scheduleName, milestone, LocalDate.now().toString(), eventId); - - pncSchedulesService.fullfillMilestone(entityId,provider,scheduleName, LocalDate.now(), - eventId); - Mockito.verify(scheduler,times(1)).fullfillMilestoneAndCloseAlert(entityId, provider, scheduleName, LocalDate.now(), eventId); - - pncSchedulesService.unEnrollFromSchedule(entityId, provider, scheduleName, eventId); - Mockito.verify(scheduler,times(1)).unEnrollFromSchedule(entityId, provider, scheduleName, eventId); - - pncSchedulesService.unEnrollFromAllSchedules(entityId, eventId); - Mockito.verify(scheduler,times(1)).unEnrollFromAllSchedules(entityId, eventId); - - final List log = appender.getLog(); - final LoggingEvent firstLogEntry = log.get(0); - Assert.assertEquals(firstLogEntry.getRenderedMessage(), "Fullfill Milestone with id: :entityId1"); - final LoggingEvent secondLogEntry = log.get(1); - Assert.assertEquals(secondLogEntry.getRenderedMessage(), "Un-enrolling PNC with Entity id:entityId1 from schedule: opv 1"); - logger.removeAllAppenders(); - } - - @Test - public void shouldGetException() { - Mockito.doThrow(new RuntimeException()).when(scheduler).fullfillMilestoneAndCloseAlert(Mockito.anyString(), Mockito.anyString(), Mockito.anyString(), Mockito.any(LocalDate.class), Mockito.anyString()); - pncSchedulesService.fullfillMilestone("", "", "", null,""); - } - -} diff --git a/opensrp-register/src/test/java/org/opensrp/register/util/Event.java b/opensrp-register/src/test/java/org/opensrp/register/util/Event.java deleted file mode 100644 index 770a481835..0000000000 --- a/opensrp-register/src/test/java/org/opensrp/register/util/Event.java +++ /dev/null @@ -1,7 +0,0 @@ -package org.opensrp.register.util; - -public class Event { - public static EventBuilder create() { - return new EventBuilder(); - } -} diff --git a/opensrp-register/src/test/java/org/opensrp/register/util/EventBuilder.java b/opensrp-register/src/test/java/org/opensrp/register/util/EventBuilder.java deleted file mode 100644 index 8884ab1594..0000000000 --- a/opensrp-register/src/test/java/org/opensrp/register/util/EventBuilder.java +++ /dev/null @@ -1,78 +0,0 @@ -package org.opensrp.register.util; - -import static org.mockito.Mockito.mock; -import static org.mockito.Mockito.when; -import static org.motechproject.scheduletracking.api.events.constants.EventDataKeys.EXTERNAL_ID; -import static org.motechproject.scheduletracking.api.events.constants.EventDataKeys.MILESTONE_NAME; -import static org.motechproject.scheduletracking.api.events.constants.EventDataKeys.SCHEDULE_NAME; -import static org.motechproject.scheduletracking.api.events.constants.EventDataKeys.WINDOW_NAME; - -import java.util.HashMap; -import java.util.Map; - -import org.joda.time.DateTime; -import org.motechproject.scheduler.domain.MotechEvent; -import org.motechproject.scheduletracking.api.domain.MilestoneAlert; -import org.motechproject.scheduletracking.api.domain.WindowName; - -public class EventBuilder { - private String scheduleName; - private String milestone; - private WindowName window; - private String externalID; - private DateTime maxWindowStartDate; - private DateTime lateWindowStartDate; - private DateTime dueWindowStartDate; - - public EventBuilder withSchedule(String scheduleName) { - this.scheduleName = scheduleName; - return this; - } - - public EventBuilder withMilestone(String milestone) { - this.milestone = milestone; - return this; - } - - public EventBuilder withWindow(WindowName window) { - this.window = window; - return this; - } - - public EventBuilder withExternalId(String externalID) { - this.externalID = externalID; - return this; - } - - public EventBuilder withDueWindowStartDate(DateTime dueWindowStartDate) { - this.dueWindowStartDate = dueWindowStartDate; - return this; - } - - public EventBuilder withLateWindowStartDate(DateTime lateWindowStartDate) { - this.lateWindowStartDate = lateWindowStartDate; - return this; - } - - public EventBuilder withMaxWindowStartDate(DateTime maxWindowStartDate) { - this.maxWindowStartDate = maxWindowStartDate; - return this; - } - - public MotechEvent build() { - MilestoneAlert alert = mock(MilestoneAlert.class); - when(alert.getMilestoneName()).thenReturn(milestone); - when(alert.getDueDateTime()).thenReturn(dueWindowStartDate); - when(alert.getLateDateTime()).thenReturn(lateWindowStartDate); - when(alert.getDefaultmentDateTime()).thenReturn(maxWindowStartDate); - - Map parameters = new HashMap<>(); - - parameters.put(SCHEDULE_NAME, scheduleName); - parameters.put(MILESTONE_NAME, alert); - parameters.put(WINDOW_NAME, window.toString()); - parameters.put(EXTERNAL_ID, externalID); - - return new MotechEvent("Subject", parameters); - } -} diff --git a/opensrp-register/src/test/java/org/opensrp/register/util/FormSubmissionBuilder.java b/opensrp-register/src/test/java/org/opensrp/register/util/FormSubmissionBuilder.java deleted file mode 100644 index f18eb7cbb7..0000000000 --- a/opensrp-register/src/test/java/org/opensrp/register/util/FormSubmissionBuilder.java +++ /dev/null @@ -1,78 +0,0 @@ -package org.opensrp.register.util; - -import static java.util.Arrays.asList; - -import java.util.ArrayList; -import java.util.Collections; -import java.util.List; -import java.util.Map; - -import org.opensrp.form.domain.FormData; -import org.opensrp.form.domain.FormField; -import org.opensrp.form.domain.FormInstance; -import org.opensrp.form.domain.FormSubmission; -import org.opensrp.form.domain.SubFormData; - -public class FormSubmissionBuilder { - private String anmId = "anmId"; - private String instanceId = "instance id 1"; - private String entityId = "entity id 1"; - private String formName = "form name 1"; - private String bind_type = "entity 1"; - private String default_bind_path = "bind path 1"; - private String formDataDefinitionVersion = "1"; - private SubFormData subFormData = new SubFormData("sub form name", Collections.>emptyList()); - private List fields = new ArrayList<>(); - private Long timestamp = 0L; - private long serverVersion = 0L; - - public static FormSubmissionBuilder create() { - return new FormSubmissionBuilder(); - } - - public FormSubmission build() { - FormInstance formInstance = new FormInstance(new FormData(bind_type, default_bind_path, fields, asList(subFormData))); - return new FormSubmission(anmId, instanceId, formName, entityId, timestamp, formDataDefinitionVersion, formInstance, serverVersion); - } - - public FormSubmissionBuilder addFormField(String name, String value) { - fields.add(new FormField(name, value, name)); - return this; - } - - public FormSubmissionBuilder withTimeStamp(Long timestamp) { - this.timestamp = timestamp; - return this; - } - - public FormSubmissionBuilder withANMId(String anmId) { - this.anmId = anmId; - return this; - } - - public FormSubmissionBuilder withInstanceId(String instanceId) { - this.instanceId = instanceId; - return this; - } - - public FormSubmissionBuilder withEntityId(String entityId) { - this.entityId = entityId; - addFormField("id", entityId); - return this; - } - - public FormSubmissionBuilder withFormName(String formName) { - this.formName = formName; - return this; - } - - public FormSubmissionBuilder withSubForm(SubFormData subFormData) { - this.subFormData = subFormData; - return this; - } - - public FormSubmissionBuilder withServerVersion(long serverVersion) { - this.serverVersion = serverVersion; - return this; - } -} diff --git a/opensrp-register/src/test/java/org/opensrp/register/util/Matcher.java b/opensrp-register/src/test/java/org/opensrp/register/util/Matcher.java deleted file mode 100644 index f022b8a155..0000000000 --- a/opensrp-register/src/test/java/org/opensrp/register/util/Matcher.java +++ /dev/null @@ -1,27 +0,0 @@ -package org.opensrp.register.util; - -import static org.mockito.Matchers.argThat; - -import org.apache.commons.lang.builder.EqualsBuilder; -import org.hamcrest.Description; -import org.mockito.ArgumentMatcher; - -public class Matcher { - public static T objectWithSameFieldsAs(final T other) { - return argThat(hasSameFieldsAs(other)); - } - - public static ArgumentMatcher hasSameFieldsAs(final T other) { - return new ArgumentMatcher() { - @Override - public boolean matches(Object o) { - return EqualsBuilder.reflectionEquals(other, o); - } - - @Override - public void describeTo(Description description) { - description.appendValue(other); - } - }; - } -} diff --git a/opensrp-register/src/test/resources/form/child_enrollment/form.json b/opensrp-register/src/test/resources/form/child_enrollment/form.json deleted file mode 100644 index 68aae63f70..0000000000 --- a/opensrp-register/src/test/resources/form/child_enrollment/form.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"Child_Vaccination_Enrollment","title":"بچّوں کا انرولمنٹ رجسٹر برائے ٹیکاجات - Child Enrollment Vaccination Register","sms_keyword":"child_vaccination_enrollment","default_language":"English","choices":{"provinces":[{"name":"kpk","label":{"Urdu":"خیبر پختون خواہ","English":"Khyber Pakhtunkhwa","Roman Urdu":"Khyber Pakhtunkhwa"}},{"name":"sindh","label":{"Urdu":"سندھ","English":"Sindh","Roman Urdu":"Sindh"}},{"name":"balochistan","label":{"Urdu":"بلوچستان","English":"Balochistan","Roman Urdu":"Balochistan"}},{"name":"punjab","label":{"Urdu":"پنجاب","English":"Punjab","Roman Urdu":"Punjab"}},{"name":"gilgit_baltistan","label":{"Urdu":"گلگت بلتستان","English":"Gilgit Baltistan","Roman Urdu":"Gilgit Baltistan"}},{"name":"kashmir","label":{"Urdu":"کشمیر","English":"Kashmir","Roman Urdu":"Kashmir"}},{"name":"fata","label":{"Urdu":"فاٹا","English":"FATA","Roman Urdu":"FATA"}},{"name":"out_of_country","label":{"Urdu":"ملک سے باہر","English":"Out of Country","Roman Urdu":"Mulk se baahir"}}],"ucs":[{"province":"sindh","city":"karachi","town":"korangi","name":"bilal_colony","label":{"Urdu":"بلال کالونی","Roman Urdu":"Bilal Colony","English":"Bilal Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"nasir_colony","label":{"Urdu":"ناصر کالونی","Roman Urdu":"Nasir Colony","English":"Nasir Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"chakra_goth","label":{"Urdu":"چکرا گوٹھ","Roman Urdu":"Chakra Goth","English":"Chakra Goth"}},{"province":"sindh","city":"karachi","town":"korangi","name":"mustafa_taj_colony","label":{"Urdu":"مصطفی تاج کالونی","Roman Urdu":"Mustafa Taj Colony","English":"Mustafa Taj Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"hundred_quarters","label":{"Urdu":"ہنڈریڈ کوارٹر","Roman Urdu":"Hundred Quarters","English":"Hundred Quarters"}},{"province":"sindh","city":"karachi","town":"korangi","name":"gulzar_colony","label":{"Urdu":"گلزار کالونی","Roman Urdu":"Gulzar Colony","English":"Gulzar Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"korangi_sector_33","label":{"Urdu":"کورنگی سیکٹر 33","Roman Urdu":"Korangi Sector 33","English":"Korangi Sector 33"}},{"province":"sindh","city":"karachi","town":"korangi","name":"zaman_town","label":{"Urdu":"زمان ٹاوَن","Roman Urdu":"Zaman Town","English":"Zaman Town"}},{"province":"sindh","city":"karachi","town":"korangi","name":"hasrat_mohani_colony","label":{"Urdu":"حسرت موہانی کالونی","Roman Urdu":"Hasrat Mohani Colony","English":"Hasrat Mohani Colony"}},{"province":"sindh","city":"karachi","town":"baldia","name":"gulshan_e_ghazi","label":{"Urdu":"گلشن غازی","Roman Urdu":"Gulshan-e-Ghazi","English":"Gulshan-e-Ghazi"}},{"province":"sindh","city":"karachi","town":"baldia","name":"ittehad_town","label":{"Urdu":"اتحاد ٹاوَن","Roman Urdu":"Ittehad Town","English":"Ittehad Town"}},{"province":"sindh","city":"karachi","town":"baldia","name":"islam_nagar","label":{"Urdu":"اسلام نگر","Roman Urdu":"Islam Nagar","English":"Islam Nagar"}},{"province":"sindh","city":"karachi","town":"baldia","name":"nai_abadi","label":{"Urdu":"نئی آبادی","Roman Urdu":"Nai Abadi","English":"Nai Abadi"}},{"province":"sindh","city":"karachi","town":"baldia","name":"saeedabad","label":{"Urdu":"سعید آباد","Roman Urdu":"Saeedabad","English":"Saeedabad"}},{"province":"sindh","city":"karachi","town":"baldia","name":"muslim_mujahid_colony","label":{"Urdu":"مسلم مجاہد کالونی","Roman Urdu":"Muslim Mujahid Colony","English":"Muslim Mujahid Colony"}},{"province":"sindh","city":"karachi","town":"baldia","name":"muhajir_camp","label":{"Urdu":"مہاجر کیمپ","Roman Urdu":"Muhajir Camp","English":"Muhajir Camp"}},{"province":"sindh","city":"karachi","town":"baldia","name":"rasheedabad","label":{"Urdu":"رشید آباد","Roman Urdu":"Rasheedabad","English":"Rasheedabad"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"ibrahim_hyderi","label":{"Urdu":"ابراہیم حیدری","Roman Urdu":"Ibrahim Hyderi","English":"Ibrahim Hyderi"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"rehri","label":{"Urdu":"رہڑی","Roman Urdu":"Rehri","English":"Rehri"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"cattle_colony","label":{"Urdu":"کیٹل کالونی","Roman Urdu":"Cattle Colony","English":"Cattle Colony"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"qaidabad","label":{"Urdu":"قائدآباد","Roman Urdu":"Qaidabad","English":"Qaidabad"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"landhi_colony","label":{"Urdu":"لانڈھی کالونی","Roman Urdu":"Landhi Colony","English":"Landhi Colony"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"gulshan_e_hadeed","label":{"Urdu":"گلشن حدید","Roman Urdu":"Gulshan-e-Hadeed","English":"Gulshan-e-Hadeed"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"gaghar","label":{"Urdu":"گگر","Roman Urdu":"Gaghar","English":"Gaghar"}},{"province":"sindh","city":"karachi","town":"gadap","name":"murad_memon_goth","label":{"Urdu":"مراد میمن گوٹھ","Roman Urdu":"Murad Memon Goth","English":"Murad Memon Goth"}},{"province":"sindh","city":"karachi","town":"gadap","name":"darsano_chana","label":{"Urdu":"درشانو شنو","Roman Urdu":"Darsano Chana","English":"Darsano Chana"}},{"province":"sindh","city":"karachi","town":"gadap","name":"gujro","label":{"Urdu":"گجرو","Roman Urdu":"Gujro","English":"Gujro"}},{"province":"sindh","city":"karachi","town":"gadap","name":"songal","label":{"Urdu":"سنگل","Roman Urdu":"Songal","English":"Songal"}},{"province":"sindh","city":"karachi","town":"gadap","name":"maymarabad","label":{"Urdu":"معمار آباد","Roman Urdu":"Maymarabad","English":"Maymarabad"}},{"province":"sindh","city":"karachi","town":"gadap","name":"yousuf_goth","label":{"Urdu":"یوسف گوٹھ","Roman Urdu":"Yousuf Goth","English":"Yousuf Goth"}},{"province":"sindh","city":"karachi","town":"gadap","name":"manghopir","label":{"Urdu":"منگھوپیر","Roman Urdu":"Manghopir","English":"Manghopir"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"azizabad","label":{"Urdu":"عزیز آباد","Roman Urdu":"Azizabad","English":"Azizabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"karimabad","label":{"Urdu":"کریم آباد","Roman Urdu":"Karimabad","English":"Karimabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"aisha_manzil","label":{"Urdu":"عائشہ منزل","Roman Urdu":"Aisha Manzil","English":"Aisha Manzil"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"ancholi","label":{"Urdu":"انچولی","Roman Urdu":"Ancholi","English":"Ancholi"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"naseerabad","label":{"Urdu":"نصیرآباد","Roman Urdu":"Naseerabad","English":"Naseerabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"yaseenabad","label":{"Urdu":"یاسین آباد","Roman Urdu":"Yaseenabad","English":"Yaseenabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"water_pump","label":{"Urdu":"واٹرپمپ","Roman Urdu":"Water Pump","English":"Water Pump"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"shafiq_mill_colony","label":{"Urdu":"شفیق مل کالونی","Roman Urdu":"Shafiq Mill Colony","English":"Shafiq Mill Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"delhi_mercantile_society","label":{"Urdu":"دہلی مرچنٹائل سوسائٹی","Roman Urdu":"Delhi Mercantile Society","English":"Delhi Mercantile Society"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"civic_centre","label":{"Urdu":"سوک سینٹر","Roman Urdu":"Civic Centre","English":"Civic Centre"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"pir_ilahi_buksh_colony","label":{"Urdu":"پیر الہی بخش کالونی","Roman Urdu":"Pir Ilahi Buksh Colony","English":"Pir Ilahi Buksh Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"essa_nagri","label":{"Urdu":"عیسی نگری","Roman Urdu":"Essa Nagri","English":"Essa Nagri"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gulshan_e_iqbal","label":{"Urdu":"گلشن اقبال","Roman Urdu":"Gulshan-e-Iqbal","English":"Gulshan-e-Iqbal"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gillani_railway_station","label":{"Urdu":"گیلانی ریلوے اسٹیشن","Roman Urdu":"Gillani Railway Station","English":"Gillani Railway Station"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"shanti_nagar","label":{"Urdu":"شانتی نگر","Roman Urdu":"Shanti Nagar","English":"Shanti Nagar"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"jamali_colony","label":{"Urdu":"جمالی کالونی","Roman Urdu":"Jamali Colony","English":"Jamali Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gulshan_e_iqbal_ii","label":{"Urdu":"گلشن اقبال 2","Roman Urdu":"Gulshan-e-Iqbal II","English":"Gulshan-e-Iqbal II"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"pehlwan_goth","label":{"Urdu":"پہلوان گوٹھ","Roman Urdu":"Pehlwan Goth","English":"Pehlwan Goth"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"matrovil_colony","label":{"Urdu":"میٹروویل کالونی","Roman Urdu":"Matrovil Colony","English":"Matrovil Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gulzar_e_hijri","label":{"Urdu":"گلزار ہجری","Roman Urdu":"Gulzar-e-Hijri","English":"Gulzar-e-Hijri"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"safooran_goth","label":{"Urdu":"صفورا گوٹھ","Roman Urdu":"Safooran Goth","English":"Safooran Goth"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"akhtar_colony","label":{"Urdu":"اختر کالونی","Roman Urdu":"Akhtar Colony","English":"Akhtar Colony"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"manzoor_colony","label":{"Urdu":"منظور کالونی","Roman Urdu":"Manzoor Colony","English":"Manzoor Colony"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"azam_basti","label":{"Urdu":"اعظم بستی","Roman Urdu":"Azam Basti","English":"Azam Basti"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"chanesar_goth","label":{"Urdu":"چنیسر گوٹھ","Roman Urdu":"Chanesar Goth","English":"Chanesar Goth"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"mahmudabad","label":{"Urdu":"محمودآباد","Roman Urdu":"Mahmudabad","English":"Mahmudabad"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"pechs","label":{"Urdu":"پی۔ای۔سی۔ایچ۔ایس","Roman Urdu":"P.E.C.H.S.","English":"P.E.C.H.S."}},{"province":"sindh","city":"karachi","town":"jamshed","name":"pechs_ii","label":{"Urdu":"پی۔ای۔سی۔ایچ۔ایس 2","Roman Urdu":"P.E.C.H.S. II","English":"P.E.C.H.S. II"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"jut_line","label":{"Urdu":"جٹ لائن","Roman Urdu":"Jut Line","English":"Jut Line"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"central_jacob_lines","label":{"Urdu":"سینٹرل جیکب لائن","Roman Urdu":"Central Jacob Lines","English":"Central Jacob Lines"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"jamshed_quarters","label":{"Urdu":"جمشید کوارٹر","Roman Urdu":"Jamshed Quarters","English":"Jamshed Quarters"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"garden_east","label":{"Urdu":"گارڈن ایسٹ","Roman Urdu":"Garden East","English":"Garden East"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"soldier_bazar","label":{"Urdu":"سولجر بازار","Roman Urdu":"Soldier Bazar","English":"Soldier Bazar"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"pakistan_quarters","label":{"Urdu":"پاکستان کوارٹر","Roman Urdu":"Pakistan Quarters","English":"Pakistan Quarters"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"bhutta_village","label":{"Urdu":"بھٹا ولیج","Roman Urdu":"Bhutta Village","English":"Bhutta Village"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"sultanabad","label":{"Urdu":"سلطان آباد","Roman Urdu":"Sultanabad","English":"Sultanabad"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"kiamari_uc","label":{"Urdu":"کیماری یو- سی","Roman Urdu":"Kiamari UC","English":"Kiamari UC"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"baba_bhit","label":{"Urdu":"بابا بھٹ","Roman Urdu":"Baba Bhit","English":"Baba Bhit"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"machar_colony","label":{"Urdu":"مچھر کالونی","Roman Urdu":"Machar Colony","English":"Machar Colony"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"maripur","label":{"Urdu":"ماڑی پور","Roman Urdu":"Maripur","English":"Maripur"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"shershah","label":{"Urdu":"شیرشاہ","Roman Urdu":"SherShah","English":"SherShah"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"gabo_pat","label":{"Urdu":"گابو پٹ","Roman Urdu":"Gabo Pat","English":"Gabo Pat"}},{"province":"sindh","city":"karachi","town":"landhi","name":"muzafarabad","label":{"Urdu":"مظفرآباد","Roman Urdu":"Muzafarabad","English":"Muzafarabad"}},{"province":"sindh","city":"karachi","town":"landhi","name":"muslimabad","label":{"Urdu":"مسلم آباد","Roman Urdu":"Muslimabad","English":"Muslimabad"}},{"province":"sindh","city":"karachi","town":"landhi","name":"dawood_chowrangi","label":{"Urdu":"داوَد چورنگی","Roman Urdu":"Dawood Chowrangi","English":"Dawood Chowrangi"}},{"province":"sindh","city":"karachi","town":"landhi","name":"moinabad","label":{"Urdu":"معین آباد","Roman Urdu":"Moinabad","English":"Moinabad"}},{"province":"sindh","city":"karachi","town":"landhi","name":"sharafi_goth","label":{"Urdu":"شرافی گوٹھ","Roman Urdu":"Sharafi Goth","English":"Sharafi Goth"}},{"province":"sindh","city":"karachi","town":"landhi","name":"bhutto_nagar","label":{"Urdu":"بھٹو نگر","Roman Urdu":"Bhutto Nagar","English":"Bhutto Nagar"}},{"province":"sindh","city":"karachi","town":"landhi","name":"khawaja_ajmeer_colony","label":{"Urdu":"خواجہ اجمیر کالونی","Roman Urdu":"Khawaja Ajmeer Colony","English":"Khawaja Ajmeer Colony"}},{"province":"sindh","city":"karachi","town":"landhi","name":"landhi_uc","label":{"Urdu":"لانڈھی یوسی","Roman Urdu":"Landhi UC","English":"Landhi UC"}},{"province":"sindh","city":"karachi","town":"landhi","name":"awami_colony","label":{"Urdu":"عوامی کالونی","Roman Urdu":"Awami Colony","English":"Awami Colony"}},{"province":"sindh","city":"karachi","town":"landhi","name":"burmee_colony","label":{"Urdu":"برمی کالونی","Roman Urdu":"Burmee Colony","English":"Burmee Colony"}},{"province":"sindh","city":"karachi","town":"landhi","name":"korangi_uc","label":{"Urdu":"کورنگی یوسی","Roman Urdu":"Korangi UC","English":"Korangi UC"}},{"province":"sindh","city":"karachi","town":"landhi","name":"sherabad","label":{"Urdu":"شیرآباد","Roman Urdu":"Sherabad","English":"Sherabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"rizvia_society","label":{"Urdu":"رضویہ سوسائٹی","Roman Urdu":"Rizvia Society","English":"Rizvia Society"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"firdous_colony","label":{"Urdu":"فردوس کالونی","Roman Urdu":"Firdous Colony","English":"Firdous Colony"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"super_market","label":{"Urdu":"سپر مارکیٹ","Roman Urdu":"Super Market","English":"Super Market"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"dak_khana","label":{"Urdu":"دک کھانہ","Roman Urdu":"Dak Khana","English":"Dak Khana"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"qasimabad","label":{"Urdu":"قاسم آباد","Roman Urdu":"Qasimabad","English":"Qasimabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"bandhani_colony","label":{"Urdu":"بندھانی کالونی","Roman Urdu":"Bandhani Colony","English":"Bandhani Colony"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"sharifabad","label":{"Urdu":"شریف آباد","Roman Urdu":"Sharifabad","English":"Sharifabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"commercial_area","label":{"Urdu":"کمرشل ایریا","Roman Urdu":"Commercial Area","English":"Commercial Area"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"mujahid_colony","label":{"Urdu":"مجاہد کالونی","Roman Urdu":"Mujahid Colony","English":"Mujahid Colony"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"nazimabad","label":{"Urdu":"ناظم آباد","Roman Urdu":"Nazimabad","English":"Nazimabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"abbasi_shaheed","label":{"Urdu":"عباسی شہید","Roman Urdu":"Abbasi Shaheed","English":"Abbasi Shaheed"}},{"province":"sindh","city":"karachi","town":"lyari","name":"agra_taj_colony","label":{"Urdu":"آگرہ تاج کالونی","Roman Urdu":"Agra Taj Colony","English":"Agra Taj Colony"}},{"province":"sindh","city":"karachi","town":"lyari","name":"daryaabad","label":{"Urdu":"دریاآباد","Roman Urdu":"Daryaabad","English":"Daryaabad"}},{"province":"sindh","city":"karachi","town":"lyari","name":"nawabad","label":{"Urdu":"نواآباد","Roman Urdu":"Nawabad","English":"Nawabad"}},{"province":"sindh","city":"karachi","town":"lyari","name":"khada_memon_society","label":{"Urdu":"خدا- میمن- سوساَٹی","Roman Urdu":"Khada Memon Society","English":"Khada Memon Society"}},{"province":"sindh","city":"karachi","town":"lyari","name":"baghdadi","label":{"Urdu":"بغدادی","Roman Urdu":"Baghdadi","English":"Baghdadi"}},{"province":"sindh","city":"karachi","town":"lyari","name":"shah_baig_line","label":{"Urdu":"شاھ باغ لائن","Roman Urdu":"Shah Baig Line","English":"Shah Baig Line"}},{"province":"sindh","city":"karachi","town":"lyari","name":"bihar_colony","label":{"Urdu":"بہار کالونی","Roman Urdu":"Bihar Colony","English":"Bihar Colony"}},{"province":"sindh","city":"karachi","town":"lyari","name":"ragiwara","label":{"Urdu":"راگی واڑا","Roman Urdu":"Ragiwara","English":"Ragiwara"}},{"province":"sindh","city":"karachi","town":"lyari","name":"singo_line","label":{"Urdu":"سنگولائن","Roman Urdu":"Singo Line","English":"Singo Line"}},{"province":"sindh","city":"karachi","town":"lyari","name":"chakiwara","label":{"Urdu":"چاکی واڑا","Roman Urdu":"Chakiwara","English":"Chakiwara"}},{"province":"sindh","city":"karachi","town":"lyari","name":"allama_iqbal_colony","label":{"Urdu":"علامہ اقبال کالونی","Roman Urdu":"Allama Iqbal Colony","English":"Allama Iqbal Colony"}},{"province":"sindh","city":"karachi","town":"malir","name":"model_colony","label":{"Urdu":"موڈل کالونی","Roman Urdu":"Model Colony","English":"Model Colony"}},{"province":"sindh","city":"karachi","town":"malir","name":"kala_board","label":{"Urdu":"کالا بورڈ","Roman Urdu":"Kala Board","English":"Kala Board"}},{"province":"sindh","city":"karachi","town":"malir","name":"saudabad","label":{"Urdu":"سعودآباد","Roman Urdu":"Saudabad","English":"Saudabad"}},{"province":"sindh","city":"karachi","town":"malir","name":"khokhra_par","label":{"Urdu":"کھوکھرا پار","Roman Urdu":"Khokhra Par","English":"Khokhra Par"}},{"province":"sindh","city":"karachi","town":"malir","name":"jafar_e_tayyar","label":{"Urdu":"جعفر تیار","Roman Urdu":"Jafar-e-Tayyar","English":"Jafar-e-Tayyar"}},{"province":"sindh","city":"karachi","town":"malir","name":"gharibabad","label":{"Urdu":"غریب آباد","Roman Urdu":"Gharibabad","English":"Gharibabad"}},{"province":"sindh","city":"karachi","town":"malir","name":"ghazi_brohi_goth","label":{"Urdu":"غازی بروہی گوٹھ","Roman Urdu":"Ghazi Brohi Goth","English":"Ghazi Brohi Goth"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"kalyana","label":{"Urdu":"کالیانہ","Roman Urdu":"Kalyana","English":"Kalyana"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"sir_syed_colony","label":{"Urdu":"سر سید کالونی","Roman Urdu":"Sir Syed Colony","English":"Sir Syed Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"fatima_jinnah_colony","label":{"Urdu":"فاطمہ جناح کالونی","Roman Urdu":"Fatima Jinnah Colony","English":"Fatima Jinnah Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"godhra","label":{"Urdu":"گودھرا","Roman Urdu":"Godhra","English":"Godhra"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"abu_zar_ghaffari","label":{"Urdu":"ابو زر غفاری","Roman Urdu":"Abu Zar Ghaffari","English":"Abu Zar Ghaffari"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"hakim_ahsan","label":{"Urdu":"حاکم احسان","Roman Urdu":"Hakim Ahsan","English":"Hakim Ahsan"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"madina_colony","label":{"Urdu":"مدینہ کالونی","Roman Urdu":"Madina Colony","English":"Madina Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"faisal_colony","label":{"Urdu":"فیصل کالونی","Roman Urdu":"Faisal Colony","English":"Faisal Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"khamiso_goth","label":{"Urdu":"خمیسو گوٹھ","Roman Urdu":"Khamiso Goth","English":"Khamiso Goth"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"mustufa_colony","label":{"Urdu":"مصطفی کالونی","Roman Urdu":"Mustufa Colony","English":"Mustufa Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"khawaja_ajmeer_nagri","label":{"Urdu":"خواجہ اجمیر نگری","Roman Urdu":"Khawaja Ajmeer Nagri","English":"Khawaja Ajmeer Nagri"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"gulshan_e_saeed","label":{"Urdu":"گلشن سعید","Roman Urdu":"Gulshan-e-Saeed","English":"Gulshan-e-Saeed"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"shah_nawaz_bhutto_colony","label":{"Urdu":"شاہ نواز بھٹو کالونی","Roman Urdu":"Shah Nawaz Bhutto Colony","English":"Shah Nawaz Bhutto Colony"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"paposh_nagar","label":{"Urdu":"پاپوش نگر","Roman Urdu":"Paposh Nagar","English":"Paposh Nagar"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"pahar_ganj","label":{"Urdu":"پہاڑ گنج","Roman Urdu":"Pahar Ganj","English":"Pahar Ganj"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"khandu_goth","label":{"Urdu":"کھنڑو گوٹھ","Roman Urdu":"Khandu Goth","English":"Khandu Goth"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"hyderi","label":{"Urdu":"حیدری","Roman Urdu":"Hyderi","English":"Hyderi"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"sakhi_hassan","label":{"Urdu":"سخی حسن","Roman Urdu":"Sakhi Hassan","English":"Sakhi Hassan"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"farooq_e_azam","label":{"Urdu":"فاروق اعظم","Roman Urdu":"Farooq-e-Azam","English":"Farooq-e-Azam"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"nusrat_bhutto_colony","label":{"Urdu":"نصرت بھٹو کالونی","Roman Urdu":"Nusrat Bhutto Colony","English":"Nusrat Bhutto Colony"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"shadman_town","label":{"Urdu":"شادمان ٹاوَن","Roman Urdu":"Shadman Town","English":"Shadman Town"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"buffer_zone","label":{"Urdu":"بفرزون","Roman Urdu":"Buffer Zone","English":"Buffer Zone"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"buffer_zone_ii","label":{"Urdu":"بفرزون 2","Roman Urdu":"Buffer Zone II","English":"Buffer Zone II"}},{"province":"sindh","city":"karachi","town":"orangi","name":"mominabad","label":{"Urdu":"مومن آباد","Roman Urdu":"Mominabad","English":"Mominabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"haryana_colony","label":{"Urdu":"حریانہ کالونی","Roman Urdu":"Haryana Colony","English":"Haryana Colony"}},{"province":"sindh","city":"karachi","town":"orangi","name":"hanifabad","label":{"Urdu":"حنیف آباد","Roman Urdu":"Hanifabad","English":"Hanifabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"mohammad_nagar","label":{"Urdu":"محمد نگر","Roman Urdu":"Mohammad Nagar","English":"Mohammad Nagar"}},{"province":"sindh","city":"karachi","town":"orangi","name":"madina_colony_orangi","label":{"Urdu":"مدینہ کالونی اورنگی","Roman Urdu":"Madina Colony Orangi","English":"Madina Colony Orangi"}},{"province":"sindh","city":"karachi","town":"orangi","name":"ghaziabad","label":{"Urdu":"غازی آباد","Roman Urdu":"Ghaziabad","English":"Ghaziabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"chisti_nagar","label":{"Urdu":"چشتی نگر","Roman Urdu":"Chisti Nagar","English":"Chisti Nagar"}},{"province":"sindh","city":"karachi","town":"orangi","name":"bilal_colony_orangi","label":{"Urdu":"بلال کالونی اورنگی","Roman Urdu":"Bilal Colony Orangi","English":"Bilal Colony Orangi"}},{"province":"sindh","city":"karachi","town":"orangi","name":"iqbal_baloch_colony","label":{"Urdu":"اقبال بلوچ کالونی","Roman Urdu":"Iqbal Baloch Colony","English":"Iqbal Baloch Colony"}},{"province":"sindh","city":"karachi","town":"orangi","name":"ghabool_town","label":{"Urdu":"گبول ٹاوَن","Roman Urdu":"Ghabool Town","English":"Ghabool Town"}},{"province":"sindh","city":"karachi","town":"orangi","name":"data_nagar","label":{"Urdu":"داتا نگر","Roman Urdu":"Data Nagar","English":"Data Nagar"}},{"province":"sindh","city":"karachi","town":"orangi","name":"mujahidabad","label":{"Urdu":"مجاہد آباد","Roman Urdu":"Mujahidabad","English":"Mujahidabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"baloch_goth","label":{"Urdu":"بلوچ گوٹھ","Roman Urdu":"Baloch Goth","English":"Baloch Goth"}},{"province":"sindh","city":"karachi","town":"saddar","name":"old_haji_camp","label":{"Urdu":"پرانہ حاجی کیمپ","Roman Urdu":"Old Haji Camp","English":"Old Haji Camp"}},{"province":"sindh","city":"karachi","town":"saddar","name":"garden","label":{"Urdu":"گارڈن","Roman Urdu":"Garden","English":"Garden"}},{"province":"sindh","city":"karachi","town":"saddar","name":"kharadar","label":{"Urdu":"کھارادر","Roman Urdu":"Kharadar","English":"Kharadar"}},{"province":"sindh","city":"karachi","town":"saddar","name":"city_railway_colony","label":{"Urdu":"سٹی ریلوے کالونی","Roman Urdu":"City Railway Colony","English":"City Railway Colony"}},{"province":"sindh","city":"karachi","town":"saddar","name":"nanak_wara","label":{"Urdu":"ناناک واڑا","Roman Urdu":"Nanak Wara","English":"Nanak Wara"}},{"province":"sindh","city":"karachi","town":"saddar","name":"gazdarabad","label":{"Urdu":"گزدرآباد","Roman Urdu":"Gazdarabad","English":"Gazdarabad"}},{"province":"sindh","city":"karachi","town":"saddar","name":"millat_nagar_islam_pura","label":{"Urdu":"ملت نگر اسلام پورا","Roman Urdu":"Millat Nagar/Islam Pura","English":"Millat Nagar/Islam Pura"}},{"province":"sindh","city":"karachi","town":"saddar","name":"saddar_uc","label":{"Urdu":"صدر یو سی","Roman Urdu":"Saddar UC","English":"Saddar UC"}},{"province":"sindh","city":"karachi","town":"saddar","name":"civil_line","label":{"Urdu":"سول لائن","Roman Urdu":"Civil Line","English":"Civil Line"}},{"province":"sindh","city":"karachi","town":"saddar","name":"clifton","label":{"Urdu":"کلفٹن","Roman Urdu":"Clifton","English":"Clifton"}},{"province":"sindh","city":"karachi","town":"saddar","name":"kehkashan","label":{"Urdu":"کہکشان","Roman Urdu":"Kehkashan","English":"Kehkashan"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"natha_khan_goth","label":{"Urdu":"ناتھا خان گوٹھ","Roman Urdu":"Natha Khan Goth","English":"Natha Khan Goth"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"pak_sadat_colony","label":{"Urdu":"پاک صدر کالونی","Roman Urdu":"Pak Sadat Colony","English":"Pak Sadat Colony"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"drigh_colony","label":{"Urdu":"ڈرگ کالونی","Roman Urdu":"Drigh Colony","English":"Drigh Colony"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"raita_plot","label":{"Urdu":"رائتا پلاٹ","Roman Urdu":"Raita Plot","English":"Raita Plot"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"moria_khan_goth","label":{"Urdu":"موریا خان گوٹھ","Roman Urdu":"Moria Khan Goth","English":"Moria Khan Goth"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"rafa_e_aam_society","label":{"Urdu":"رفا عام سوسا ئٹی","Roman Urdu":"Rafa-e-Aam Society","English":"Rafa-e-Aam Society"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"al_falah_society","label":{"Urdu":"الفلاح سوسا ئٹی","Roman Urdu":"Al-Falah Society","English":"Al-Falah Society"}},{"province":"sindh","city":"karachi","town":"site","name":"pak_colony","label":{"Urdu":"پاک کالونی","Roman Urdu":"Pak Colony","English":"Pak Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"old_golimar","label":{"Urdu":"پرانہ گولی مار","Roman Urdu":"Old Golimar","English":"Old Golimar"}},{"province":"sindh","city":"karachi","town":"site","name":"jahanabad","label":{"Urdu":"جہان آباد","Roman Urdu":"Jahanabad","English":"Jahanabad"}},{"province":"sindh","city":"karachi","town":"site","name":"metrovil","label":{"Urdu":"میٹروویل","Roman Urdu":"Metrovil","English":"Metrovil"}},{"province":"sindh","city":"karachi","town":"site","name":"bhawani_chali","label":{"Urdu":"بہوانی چالی","Roman Urdu":"Bhawani Chali","English":"Bhawani Chali"}},{"province":"sindh","city":"karachi","town":"site","name":"frontier_colony","label":{"Urdu":"فرونٹر کالونی","Roman Urdu":"Frontier Colony","English":"Frontier Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"banaras_colony","label":{"Urdu":"بنارس کالونی","Roman Urdu":"Banaras Colony","English":"Banaras Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"qasba_colony","label":{"Urdu":"قصبہ کالونی","Roman Urdu":"Qasba Colony","English":"Qasba Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"islamia_colony","label":{"Urdu":"اسلامیہ کالونی","Roman Urdu":"Islamia Colony","English":"Islamia Colony"}},{"province":"na","city":"na","town":"na","name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}},{"province":"na","city":"na","town":"na","name":"not_applicable","label":{"Urdu":"قابل اطلاق نہیں","Roman Urdu":"Qaabil-e-atlaaq nahi","English":"Not Applicable"}}],"gender":[{"instance":{"openmrs_code":"1534AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"male","label":{"Urdu":"مرد/ لڑکا","Roman Urdu":"Mard/larka","English":"Male"}},{"instance":{"openmrs_code":"1535AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"female","label":{"Urdu":"عورت/لڑکی","Roman Urdu":"Aurat/larki","English":"Female"}},{"instance":{"openmrs_code":"163163AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"transgender","label":{"Urdu":"خواجہ سرہ","Roman Urdu":"Khwaja sira","English":"Transgender"}}],"vaccines":[{"instance":{"openmrs_code":"1570AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"bcg","label":{"Urdu":"بی سی جی","Roman Urdu":"BCG","English":"BCG"}},{"instance":{"openmrs_code":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv0","label":{"Urdu":"او پی وی 0","Roman Urdu":"OPV 0","English":"OPV 0"}},{"instance":{"openmrs_code":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv1","label":{"Urdu":"پی سی وی 1","Roman Urdu":"PCV 1","English":"PCV 1"}},{"instance":{"openmrs_code":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv1","label":{"Urdu":"او پی وی 1","Roman Urdu":"OPV 1","English":"OPV 1"}},{"instance":{"openmrs_code":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta1","label":{"Urdu":"پینٹا ویلنٹ 1","Roman Urdu":"Pentavalent 1","English":"Pentavalent 1"}},{"instance":{"openmrs_code":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv2","label":{"Urdu":"پی سی وی 2","Roman Urdu":"PCV 2","English":"PCV 2"}},{"instance":{"openmrs_code":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv2","label":{"Urdu":"او پی وی 2","Roman Urdu":"OPV 2","English":"OPV 2"}},{"instance":{"openmrs_code":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta2","label":{"Urdu":"پینٹا ویلنٹ 2","Roman Urdu":"Pentavalent 2","English":"Pentavalent 2"}},{"instance":{"openmrs_code":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv3","label":{"Urdu":"پی سی وی 3","Roman Urdu":"PCV 3","English":"PCV 3"}},{"instance":{"openmrs_code":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv3","label":{"Urdu":"او پی وی 3","Roman Urdu":"OPV 3","English":"OPV 3"}},{"instance":{"openmrs_code":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta3","label":{"Urdu":"پینٹا ویلنٹ 3","Roman Urdu":"Pentavalent 3","English":"Pentavalent 3"}},{"instance":{"openmrs_code":"82242AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ipv","label":{"Urdu":"آئی پی وی","Roman Urdu":"IPV","English":"IPV"}},{"instance":{"openmrs_code":"79409AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"measles1","label":{"Urdu":"خسرہ 1","Roman Urdu":"Khasra 1","English":"Measles 1"}},{"instance":{"openmrs_code":"79409AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"measles2","label":{"Urdu":"خسرہ 2","Roman Urdu":"Khasra 2","English":"Measles 2"}}],"towns":[{"province":"sindh","city":"karachi","name":"korangi","label":{"Urdu":"کورنگی","Roman Urdu":"Korangi","English":"Korangi"}},{"province":"sindh","city":"karachi","name":"landhi","label":{"Urdu":"لانڈھی","Roman Urdu":"Landhi","English":"Landhi"}},{"province":"sindh","city":"karachi","name":"baldia","label":{"Urdu":"بلدیہ","Roman Urdu":"Baldia","English":"Baldia"}},{"province":"sindh","city":"karachi","name":"bin_qasim","label":{"Urdu":"بن قاسم","Roman Urdu":"Bin Qasim","English":"Bin Qasim"}},{"province":"sindh","city":"karachi","name":"gadap","label":{"Urdu":"گڈاپ","Roman Urdu":"Gadap","English":"Gadap"}},{"province":"sindh","city":"karachi","name":"gulberg","label":{"Urdu":"گلبرگ","Roman Urdu":"Gulberg","English":"Gulberg"}},{"province":"sindh","city":"karachi","name":"gulshan","label":{"Urdu":"گلشن","Roman Urdu":"Gulshan","English":"Gulshan"}},{"province":"sindh","city":"karachi","name":"jamshed","label":{"Urdu":"جمشید","Roman Urdu":"Jamshed","English":"Jamshed"}},{"province":"sindh","city":"karachi","name":"kiamari","label":{"Urdu":"کیماری","Roman Urdu":"Kiamari","English":"Kiamari"}},{"province":"sindh","city":"karachi","name":"liaquatabad","label":{"Urdu":"لیاقت آباد","Roman Urdu":"Liaquatabad","English":"Liaquatabad"}},{"province":"sindh","city":"karachi","name":"lyari","label":{"Urdu":"لیاری","Roman Urdu":"Lyari","English":"Lyari"}},{"province":"sindh","city":"karachi","name":"malir","label":{"Urdu":"ملیر","Roman Urdu":"Malir","English":"Malir"}},{"province":"sindh","city":"karachi","name":"new_karachi","label":{"Urdu":"نیو کراچی","Roman Urdu":"New Karachi","English":"New Karachi"}},{"province":"sindh","city":"karachi","name":"north_nazimabad","label":{"Urdu":"نارتھ ناظم آباد","Roman Urdu":"North Nazimabad","English":"North Nazimabad"}},{"province":"sindh","city":"karachi","name":"orangi","label":{"Urdu":"اورنگی","Roman Urdu":"Orangi","English":"Orangi"}},{"province":"sindh","city":"karachi","name":"saddar","label":{"Urdu":"صدر","Roman Urdu":"Saddar","English":"Saddar"}},{"province":"sindh","city":"karachi","name":"shah_faisal","label":{"Urdu":"شاہ فیصل","Roman Urdu":"Shah Faisal","English":"Shah Faisal"}},{"province":"sindh","city":"karachi","name":"site","label":{"Urdu":"سائٹ","Roman Urdu":"S.I.T.E.","English":"S.I.T.E."}},{"province":"na","city":"na","name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}},{"province":"na","city":"na","name":"not_applicable","label":{"Urdu":"قابل اطلاق نہیں","Roman Urdu":"Qaabil-e-atlaaq nahi","English":"Not Applicable"}}],"cities":[{"province":"sindh","name":"karachi","label":{"Urdu":"کراچی","Roman Urdu":"Karachi","English":"Karachi"}},{"province":"punjab","name":"hafizabad","label":{"Urdu":"حافظ آباد","Roman Urdu":"Hafizabad","English":"Hafizabad"}},{"province":"punjab","name":"muzaffargarh","label":{"Urdu":"مظفر گڑھ","Roman Urdu":"Muzaffargarh","English":"Muzaffargarh"}},{"province":"na","name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}},{"province":"na","name":"not_applicable","label":{"Urdu":"قابل اطلاق نہیں","Roman Urdu":"Not Applicable","English":"Not Applicable"}}],"ethnicity":[{"instance":{"openmrs_code":"163215AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"punjabi","label":{"Urdu":"پنجابی","Roman Urdu":"Punjabi","English":"Punjabi"}},{"instance":{"openmrs_code":"163216AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pushtuns","label":{"Urdu":"پشتون","Roman Urdu":"Pushtun","English":"Pushtun"}},{"instance":{"openmrs_code":"163217AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"sindhi","label":{"Urdu":"سندھی","Roman Urdu":"Sindhi","English":"Sindhi"}},{"instance":{"openmrs_code":"163218AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"saraiki","label":{"Urdu":"سرائیکی","Roman Urdu":"Saraiki","English":"Saraiki"}},{"instance":{"openmrs_code":"163219AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"muhajir","label":{"Urdu":"مہاجر","Roman Urdu":"Muhajir","English":"Muhajir"}},{"instance":{"openmrs_code":"163220AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"balochi","label":{"Urdu":"بلوچی","Roman Urdu":"Balochi","English":"Balochi"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}}],"yes_no":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}]},"instance":{"encounter_type":"Child Vaccination Enrollment"},"version":"201604260934","id_string":"child_vaccination_enrollment","type":"survey","children":[{"type":"hidden","name":"provider_uc"},{"type":"hidden","name":"provider_town"},{"type":"hidden","name":"provider_city"},{"type":"hidden","name":"provider_province"},{"type":"hidden","name":"provider_id"},{"instance":{"openmrs_entity_id":"location_id","openmrs_entity":"encounter"},"type":"hidden","name":"provider_location_id"},{"instance":{"openmrs_entity_id":"Program Client ID","openmrs_entity":"person_identifier"},"type":"hidden","name":"existing_program_client_id"},{"type":"hidden","name":"provider_location_name"},{"type":"note","name":"provider_location_note","label":{"Urdu":"شہر: ${provider_city} ; ٹائون: ${provider_town} ; یوسی: ${provider_uc} ; سینٹرکا نام: ${provider_location_name}","English":"City: ${provider_city} ; Town: ${provider_town} ; UC: ${provider_uc} ; Center Name: ${provider_location_name}","Roman Urdu":"Shehr: ${provider_city} ; Town: ${provider_town} ; UC: ${provider_uc} ; Center ka naam: ${provider_location_name}"}},{"instance":{"openmrs_entity_id":"163137AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"start","name":"start"},{"instance":{"openmrs_entity_id":"163138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"end","name":"end"},{"instance":{"openmrs_entity_id":"163286AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"today","name":"today"},{"instance":{"openmrs_entity_id":"163149AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"deviceid","name":"deviceid"},{"instance":{"openmrs_entity_id":"163150AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"subscriberid","name":"subscriberid"},{"instance":{"openmrs_entity_id":"163151AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"simserial","name":"simserial"},{"instance":{"openmrs_entity_id":"163152AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"phonenumber","name":"phonenumber"},{"name":"client_reg_date","hint":{"Urdu":"بچے کو ویکسین لگنے کی تاریخ","English":"Date on which child was vaccinated","Roman Urdu":"Bachay ko vaccine lagnay ki tareekh"},"bind":{"jr:constraintMsg":{"Urdu":"بچے کی پروگرام میں اندراج کی تاریخ مستقبل کی نہیں ہوسکتی","English":"Child registration date cannot be in the future","Roman Urdu":"Bachay ki program mai andraaj ki tareekh mustaqbil ki nahi hosakti"},"required":"yes","constraint":".<=${today}"},"label":{"Urdu":"پروگرام میں اندراج کی تاریخ","English":"Program Registration date","Roman Urdu":"Program mai andraj ki tareekh"},"instance":{"openmrs_entity_id":"encounter_date","openmrs_entity":"encounter"},"type":"date"},{"bind":{"required":"yes"},"type":"note","name":"program_client_id","label":{"Urdu":"پروگرام آئی ڈی: ${existing_program_client_id}","Roman Urdu":"Program ID: ${existing_program_client_id}","English":"Program ID: ${existing_program_client_id}"}},{"bind":{"jr:constraintMsg":{"Urdu":"نمبر آٹھ ہندسوں پر مشتمل ہونا چاہئے","English":"Number should be 8 digits","Roman Urdu":"Number 8 hindason par mushtamil hona chahiye"},"required":"yes","constraint":"string-length(.) = 8"},"type":"integer","instance":{"openmrs_entity_id":"EPI Card Number","openmrs_entity":"person_attribute"},"name":"epi_card_number","label":{"Urdu":"ای پی آئی کارڈ نمبر","English":"EPI Card Number","Roman Urdu":"EPI Card Number"}},{"bind":{"jr:constraintMsg":{"Urdu":"درج کردہ معلومات درست نہیں","English":"Invalid data entered","Roman Urdu":"Darj karda maaloomaat durust nahi"},"required":"yes","constraint":"regex(., '^[a-zA-Z\\s\\.\\-]{3,25}$')"},"type":"text","instance":{"openmrs_entity_id":"first_name","openmrs_entity":"person"},"name":"first_name","label":{"Urdu":"نام","English":"First Name","Roman Urdu":"Naam"}},{"bind":{"jr:constraintMsg":{"Urdu":"درج کردہ معلومات درست نہیں","English":"Invalid data entered","Roman Urdu":"Darj karda maaloomaat durust nahi"},"required":"yes","constraint":"regex(., '^[a-zA-Z\\s\\.\\-]{3,25}$')"},"type":"text","instance":{"openmrs_entity_id":"last_name","openmrs_entity":"person"},"name":"last_name","label":{"Urdu":"والد کا نام","English":"Last name","Roman Urdu":"Waalid ka naam"}},{"default":"yes","label":{"Urdu":"کیا تاریخ پیدائش معلوم ہے؟","Roman Urdu":"Kya tareekh-e-pedaaish maloom hai?","English":"Is birthdate known?"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}],"name":"member_birth_date_known"},{"bind":{"required":"yes","jr:constraintMsg":{"Urdu":"اندراج کے لیے بچے کی عمر پانچ سال سے کم ہونی چاہئے۔","Roman Urdu":"Andraaj ke liye bachay ki umar paanch saal se kam honi chahiye.","English":"Child's age must be less than five years for enrollment."},"relevant":"selected(${member_birth_date_known}, 'yes')","constraint":".<=${today} and (int((${today} - ${member_birth_date}) div 365) < 5)"},"type":"date","name":"member_birth_date","label":{"Urdu":"تاریخ پیدائش","Roman Urdu":"Tareekh-e-pedaaish","English":"Birth date"}},{"bind":{"required":"yes","jr:constraintMsg":{"Urdu":"اندراج کے لیے بچے کی عمر پانچ سال سے کم ہونی چاہئے","Roman Urdu":"Andraaj ke liye bachay ki umar paanch saal se kam honi chahiye","English":"Child's age must be less than five years for enrollment"},"relevant":"selected(${member_birth_date_known}, 'no')","constraint":".<=60"},"type":"integer","name":"age","label":{"Urdu":"عمر (مہینوں میں)","Roman Urdu":"Umar (mahinon main)","English":"Age (months)"}},{"bind":{"calculate":"int((${today} - ${member_birth_date}) div 30.44)"},"type":"calculate","name":"calc_age"},{"bind":{"calculate":"format-date (date(${today} - int(${age} * 30.44)), '%Y-%m-%d')"},"type":"calculate","name":"calc_dob"},{"bind":{"calculate":"if(${member_birth_date_known}='yes', ${member_birth_date}, ${calc_dob})"},"type":"calculate","name":"calc_dob_confirm","instance":{"openmrs_entity_id":"birthdate","openmrs_entity":"person"}},{"bind":{"calculate":"if(${member_birth_date_known} = 'yes', '0', '1')"},"type":"calculate","name":"calc_dob_estimated","instance":{"openmrs_entity_id":"birthdate_estimated","openmrs_entity":"person"}},{"bind":{"calculate":"if(${member_birth_date_known}='yes', ${calc_age}, ${age})"},"type":"calculate","name":"calc_age_confirm","instance":{"openmrs_entity_id":"154384AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"type":"note","name":"member_birth_date_note","label":{"Urdu":"کلائنٹ کی تاریخ پیدائش: ${calc_dob_confirm}","English":"Member Date of Birth: ${calc_dob_confirm}","Roman Urdu":"Member ki Tareekh-e-pedaaish: ${calc_dob_confirm}"}},{"type":"note","name":"note_age","label":{"Urdu":"عمر: ${calc_age_confirm} مہینے","English":"Age: ${calc_age_confirm} months","Roman Urdu":"Umar: ${calc_age_confirm} mahinay"}},{"control":{"appearance":"minimal"},"name":"gender","bind":{"required":"yes"},"label":{"Urdu":"جنس","English":"Gender","Roman Urdu":"Jins"},"instance":{"openmrs_entity_id":"gender","openmrs_entity":"person"},"type":"select one","children":[{"instance":{"openmrs_code":"1534AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"male","label":{"Urdu":"مرد/ لڑکا","Roman Urdu":"Mard/larka","English":"Male"}},{"instance":{"openmrs_code":"1535AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"female","label":{"Urdu":"عورت/لڑکی","Roman Urdu":"Aurat/larki","English":"Female"}},{"instance":{"openmrs_code":"163163AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"transgender","label":{"Urdu":"خواجہ سرہ","Roman Urdu":"Khwaja sira","English":"Transgender"}}]},{"bind":{"jr:constraintMsg":{"Urdu":"درج کردہ معلومات درست نہیں","English":"Invalid data entered","Roman Urdu":"Darj karda maaloomaat durust nahi"},"constraint":"regex(., '^[a-zA-Z\\s\\.\\-]{3,25}$')"},"type":"text","instance":{"openmrs_entity_id":"1593AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"mother_name","label":{"Urdu":"والدہ کا نام","English":"Mother's Name","Roman Urdu":"Waaldah ka naam"}},{"control":{"appearance":"minimal"},"name":"ethnicity","bind":{"required":"yes"},"label":{"Urdu":"قومیت","English":"Ethnicity","Roman Urdu":"Qomiat"},"instance":{"openmrs_entity_id":"163153AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"163215AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"punjabi","label":{"Urdu":"پنجابی","Roman Urdu":"Punjabi","English":"Punjabi"}},{"instance":{"openmrs_code":"163216AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pushtuns","label":{"Urdu":"پشتون","Roman Urdu":"Pushtun","English":"Pushtun"}},{"instance":{"openmrs_code":"163217AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"sindhi","label":{"Urdu":"سندھی","Roman Urdu":"Sindhi","English":"Sindhi"}},{"instance":{"openmrs_code":"163218AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"saraiki","label":{"Urdu":"سرائیکی","Roman Urdu":"Saraiki","English":"Saraiki"}},{"instance":{"openmrs_code":"163219AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"muhajir","label":{"Urdu":"مہاجر","Roman Urdu":"Muhajir","English":"Muhajir"}},{"instance":{"openmrs_code":"163220AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"balochi","label":{"Urdu":"بلوچی","Roman Urdu":"Balochi","English":"Balochi"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}}]},{"bind":{"relevant":"selected(${ethnicity}, 'other')"},"type":"text","instance":{"openmrs_entity":"concept","openmrs_entity_id":"160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"163330AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ethnicity_other","label":{"Urdu":"وضاحت کریں","Roman Urdu":"Wazaahat karain","English":"Please specify:"}},{"control":{"appearance":"minimal"},"name":"province","default":"${provider_province}","bind":{"required":"yes"},"label":{"Urdu":"صوبہ","Roman Urdu":"Suba","English":"Province"},"instance":{"openmrs_entity":"person_address","openmrs_entity_id":"stateProvince","openmrs_entity_parent":"usual_residence"},"type":"select one","children":[{"name":"kpk","label":{"Urdu":"خیبر پختون خواہ","English":"Khyber Pakhtunkhwa","Roman Urdu":"Khyber Pakhtunkhwa"}},{"name":"sindh","label":{"Urdu":"سندھ","English":"Sindh","Roman Urdu":"Sindh"}},{"name":"balochistan","label":{"Urdu":"بلوچستان","English":"Balochistan","Roman Urdu":"Balochistan"}},{"name":"punjab","label":{"Urdu":"پنجاب","English":"Punjab","Roman Urdu":"Punjab"}},{"name":"gilgit_baltistan","label":{"Urdu":"گلگت بلتستان","English":"Gilgit Baltistan","Roman Urdu":"Gilgit Baltistan"}},{"name":"kashmir","label":{"Urdu":"کشمیر","English":"Kashmir","Roman Urdu":"Kashmir"}},{"name":"fata","label":{"Urdu":"فاٹا","English":"FATA","Roman Urdu":"FATA"}},{"name":"out_of_country","label":{"Urdu":"ملک سے باہر","English":"Out of Country","Roman Urdu":"Mulk se baahir"}}]},{"control":{"appearance":"minimal"},"name":"city_village","choice_filter":"province=${province} or province='na'","default":"${provider_city}","bind":{"required":"yes"},"label":{"Urdu":"شہر","Roman Urdu":"Shehr","English":"City"},"itemset":"cities","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"cityVillage","openmrs_entity_parent":"usual_residence"},"type":"select one"},{"control":{"appearance":"minimal"},"name":"town","choice_filter":"(province=${province} and city=${city_village} ) or city='na'","bind":{"required":"yes"},"label":{"Urdu":"ٹاٰئون/ قصبہ/ بستی","Roman Urdu":"Town / Qasbah / Basti","English":"Town"},"itemset":"towns","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"town","openmrs_entity_parent":"usual_residence"},"type":"select one"},{"control":{"appearance":"minimal"},"name":"union_council","choice_filter":"(province=${province} and city=${city_village} and town=${town}) or town='na'","bind":{"required":"yes"},"label":{"Urdu":"یونین کونسل","Roman Urdu":"Union Council","English":"Union Council"},"itemset":"ucs","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"subTown","openmrs_entity_parent":"usual_residence"},"type":"select one"},{"bind":{"required":"yes"},"type":"text","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"address1","openmrs_entity_parent":"usual_residence"},"name":"address1","label":{"Urdu":"گھر کا پتہ","Roman Urdu":"Ghar ka pata","English":"Home Address"}},{"instance":{"openmrs_entity":"person_address","openmrs_entity_id":"landmark","openmrs_entity_parent":"usual_residence"},"type":"text","name":"landmark","label":{"Urdu":"گھر کے قریب کوئی مشہور جگہ","Roman Urdu":"Ghar ke qareeb koi mashoor jagah","English":"Land Mark"}},{"bind":{"calculate":"jr:choice-name(${province}, '${province}')"},"type":"calculate","name":"provincename"},{"bind":{"calculate":"jr:choice-name(${city_village}, '${city_village}')"},"type":"calculate","name":"city_villagename"},{"bind":{"calculate":"jr:choice-name(${town}, '${town}')"},"type":"calculate","name":"townname"},{"bind":{"calculate":"jr:choice-name(${union_council}, '${union_council}')"},"type":"calculate","name":"union_councilname"},{"type":"note","name":"address","label":{"Urdu":"پتہ: ${address1}, ${landmark}, ${union_councilname}, ${townname}, ${city_villagename}, ${provincename}","English":"Address: ${address1}, ${landmark}, ${union_councilname}, ${townname}, ${city_villagename}, ${provincename}","Roman Urdu":"Pata: ${address1}, ${landmark}, ${union_councilname}, ${townname}, ${city_villagename}, ${provincename}"}},{"instance":{"openmrs_entity_id":"163277AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"geopoint","name":"centre_gps","label":{"Urdu":"حاصل کردہ معلومات کی جگہ کے GPS کارڈینیٹس درج کریں","English":"Collect GPS coordinates of data entry location","Roman Urdu":"Hasil karda malomaat ki jaga ke GPS coordinates darj karain"}},{"name":"child_was_suffering_from_a_disease_at_birth","bind":{"required":"yes"},"label":{"Urdu":"کیا بچہ پیدائش کے وقت کسی مرض میں مبتلا تھا؟","English":"Was the child suffering from a disease at birth?","Roman Urdu":"Kya bacha pedaaish ke waqt kissi marz mai mubtila tha?"},"instance":{"openmrs_entity_id":"159926AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}]},{"name":"reminders_approval","bind":{"required":"yes"},"label":{"Urdu":"کیا آپ اپنے بچے کی اگلی ویکسین کی تاریخ کے لیے SMS موصول کرنا چاہتے ہیں؟","English":"Are you willing to receive SMS reminders for your next visit?","Roman Urdu":"Kya aap apnay bachay ki agli vaccine ki tareekh ke liye SMS mausool karna chahtay hain?"},"instance":{"openmrs_entity_id":"163089AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}]},{"bind":{"jr:constraintMsg":{"Urdu":"فون نمبر گیارہ ہندسوں پر مشتمل اور مندرجہ ذیل شکل میں ہونا چاہئے: *********03","English":"Phone number should be 11 digits in the following format: 03*********","Roman Urdu":"Phone number 11 hindason par mushtamil aur mundarja zail shakal main hona chahiey: 03*********"},"relevant":"${reminders_approval}='yes'","constraint":"regex(., '^03[0-9]{9}$')"},"type":"text","instance":{"openmrs_entity_id":"159635AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"contact_phone_number","label":{"Urdu":"موبائل نمبر:","English":"Mobile Number:","Roman Urdu":"Mobile number:"}},{"bind":{"calculate":"${calc_dob_confirm} + 42"},"type":"calculate","name":"six_weeks"},{"bind":{"calculate":"${calc_dob_confirm} + 70"},"type":"calculate","name":"ten_weeks"},{"bind":{"calculate":"${calc_dob_confirm} + 98"},"type":"calculate","name":"forteen_weeks"},{"bind":{"calculate":"${calc_dob_confirm} + 245"},"type":"calculate","name":"nine_months"},{"bind":{"calculate":"${calc_dob_confirm} + 458"},"type":"calculate","name":"fifteen_months"},{"control":{"appearance":"minimal"},"name":"vaccines","label":{"Urdu":"پچھلی تاریخ جب کسی اور سینٹر پر ٹیکے لگواِے گیے یا قطرے پلائے گئے","Roman Urdu":"Pichli tareekh jab kissi aur center par teekay lagwaye gaye ya katray pilaey gaye","English":"Retro vaccines"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"984AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1421AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"select all that apply","children":[{"instance":{"openmrs_code":"1570AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"bcg","label":{"Urdu":"بی سی جی","Roman Urdu":"BCG","English":"BCG"}},{"instance":{"openmrs_code":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv0","label":{"Urdu":"او پی وی 0","Roman Urdu":"OPV 0","English":"OPV 0"}},{"instance":{"openmrs_code":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv1","label":{"Urdu":"پی سی وی 1","Roman Urdu":"PCV 1","English":"PCV 1"}},{"instance":{"openmrs_code":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv1","label":{"Urdu":"او پی وی 1","Roman Urdu":"OPV 1","English":"OPV 1"}},{"instance":{"openmrs_code":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta1","label":{"Urdu":"پینٹا ویلنٹ 1","Roman Urdu":"Pentavalent 1","English":"Pentavalent 1"}},{"instance":{"openmrs_code":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv2","label":{"Urdu":"پی سی وی 2","Roman Urdu":"PCV 2","English":"PCV 2"}},{"instance":{"openmrs_code":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv2","label":{"Urdu":"او پی وی 2","Roman Urdu":"OPV 2","English":"OPV 2"}},{"instance":{"openmrs_code":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta2","label":{"Urdu":"پینٹا ویلنٹ 2","Roman Urdu":"Pentavalent 2","English":"Pentavalent 2"}},{"instance":{"openmrs_code":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv3","label":{"Urdu":"پی سی وی 3","Roman Urdu":"PCV 3","English":"PCV 3"}},{"instance":{"openmrs_code":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv3","label":{"Urdu":"او پی وی 3","Roman Urdu":"OPV 3","English":"OPV 3"}},{"instance":{"openmrs_code":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta3","label":{"Urdu":"پینٹا ویلنٹ 3","Roman Urdu":"Pentavalent 3","English":"Pentavalent 3"}},{"instance":{"openmrs_code":"82242AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ipv","label":{"Urdu":"آئی پی وی","Roman Urdu":"IPV","English":"IPV"}},{"instance":{"openmrs_code":"79409AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"measles1","label":{"Urdu":"خسرہ 1","Roman Urdu":"Khasra 1","English":"Measles 1"}},{"instance":{"openmrs_code":"79409AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"measles2","label":{"Urdu":"خسرہ 2","Roman Urdu":"Khasra 2","English":"Measles 2"}}]},{"bind":{"relevant":"${vaccines} != ''"},"type":"group","children":[{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'bcg')","constraint":".>= ${calc_dob_confirm} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"886AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"bcg_retro","label":{"Urdu":"بی سی جی","Roman Urdu":"BCG","English":"BCG"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'opv0')","constraint":".>= ${calc_dob_confirm} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv0_retro","label":{"Urdu":"او پی وی 0","Roman Urdu":"OPV 0","English":"OPV 0"}},{"bind":{"relevant":"selected(${vaccines}, 'opv0')","calculate":"0"},"type":"calculate","name":"opv0_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'pcv1')","constraint":".>= ${calc_dob_confirm} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv1_retro","label":{"Urdu":"پی سی وی 1","Roman Urdu":"PCV1","English":"PCV1"}},{"bind":{"relevant":"selected(${vaccines}, 'pcv1')","calculate":"1"},"type":"calculate","name":"pcv1_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'opv1')","constraint":".>= ${calc_dob_confirm} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv1_retro","label":{"Urdu":"او پی وی1","Roman Urdu":"OPV 1","English":"OPV 1"}},{"bind":{"relevant":"selected(${vaccines}, 'opv1')","calculate":"1"},"type":"calculate","name":"opv1_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'penta1')","constraint":".>= ${calc_dob_confirm} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta1_retro","label":{"Urdu":"پینٹا ویلنٹ 1","Roman Urdu":"Pentavalent 1","English":"Pentavalent 1"}},{"bind":{"relevant":"selected(${vaccines}, 'penta1')","calculate":"1"},"type":"calculate","name":"penta1_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'pcv2')","constraint":".>= ${calc_dob_confirm} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv2_retro","label":{"Urdu":"پی سی وی 2","Roman Urdu":"PCV2","English":"PCV2"}},{"bind":{"relevant":"selected(${vaccines}, 'pcv2')","calculate":"2"},"type":"calculate","name":"pcv2_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'opv2')","constraint":".>= ${calc_dob_confirm} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv2_retro","label":{"Urdu":"او پی وی 2","Roman Urdu":"OPV 2","English":"OPV 2"}},{"bind":{"relevant":"selected(${vaccines}, 'opv2')","calculate":"2"},"type":"calculate","name":"opv2_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'penta2')","constraint":".>= ${calc_dob_confirm} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta2_retro","label":{"Urdu":"پینٹا ویلنٹ 2","Roman Urdu":"Pentavalent 2","English":"Pentavalent 2"}},{"bind":{"relevant":"selected(${vaccines}, 'penta2')","calculate":"2"},"type":"calculate","name":"penta2_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'pcv3')","constraint":".>= ${calc_dob_confirm} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv3_retro","label":{"Urdu":"پی سی وی 3","Roman Urdu":"PCV3","English":"PCV3"}},{"bind":{"relevant":"selected(${vaccines}, 'pcv3')","calculate":"3"},"type":"calculate","name":"pcv3_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'opv3')","constraint":".>= ${calc_dob_confirm} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv3_retro","label":{"Urdu":"او پی وی3","Roman Urdu":"OPV 3","English":"OPV 3"}},{"bind":{"relevant":"selected(${vaccines}, 'opv3')","calculate":"3"},"type":"calculate","name":"opv3_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'penta3')","constraint":".>= ${calc_dob_confirm} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta3_retro","label":{"Urdu":"پینٹا ویلنٹ 3","Roman Urdu":"Pentavalent 3","English":"Pentavalent 3"}},{"bind":{"relevant":"selected(${vaccines}, 'penta3')","calculate":"3"},"type":"calculate","name":"penta3_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'ipv')","constraint":".>= ${calc_dob_confirm} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1422AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ipv_retro","label":{"Urdu":"آئی پی وی","Roman Urdu":"IPV","English":"IPV"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'measles1')","constraint":".>= ${calc_dob_confirm} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"measles1_retro","label":{"Urdu":"خسرہ 1","Roman Urdu":"Measles 1","English":"Measles 1"}},{"bind":{"relevant":"selected(${vaccines}, 'measles1')","calculate":"1"},"type":"calculate","name":"measles1_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'measles2')","constraint":".>= ${calc_dob_confirm} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"measles2_retro","label":{"Urdu":"خسرہ 2","Roman Urdu":"Measles2","English":"Measles2"}},{"bind":{"relevant":"selected(${vaccines}, 'measles2')","calculate":"2"},"type":"calculate","name":"measles2_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}}],"name":"vaccines_group"},{"name":"vaccines_2","choice_filter":"name = if(selected(${vaccines}, 'bcg'), '', 'bcg') or \nname = if(selected(${vaccines}, 'opv0'), '', 'opv0') or \nname = if(selected(${vaccines}, 'penta1'), '', 'penta1') or \nname = if(selected(${vaccines}, 'opv1'), '', 'opv1') or \nname = if(selected(${vaccines}, 'pcv1'), '', 'pcv1') or \nname = if(selected(${vaccines}, 'penta2'), '', 'penta2') or \nname = if(selected(${vaccines}, 'opv2'), '', 'opv2') or \nname = if(selected(${vaccines}, 'pcv2'), '', 'pcv2') or \nname = if(selected(${vaccines}, 'penta3'), '', 'penta3') or \nname = if(selected(${vaccines}, 'pcv3'), '', 'pcv3') or \nname = if(selected(${vaccines}, 'opv3'), '', 'opv3') or \nname = if(selected(${vaccines}, 'ipv'), '', 'ipv') or \nname = if(selected(${vaccines}, 'measles1'), '', 'measles1') or \nname = if(selected(${vaccines}, 'measles2'), '', 'measles2')","bind":{"required":"yes"},"label":{"Urdu":"آج کون کون سی ویکسین دی گئی ہیں؟","Roman Urdu":"Aaj kon kon si vaccine di gai hain?","English":"Vaccines administered today"},"itemset":"vaccines","instance":{"openmrs_entity":"concept","openmrs_entity_id":"984AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1441AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"select all that apply"},{"bind":{"calculate":"if(selected(${vaccines_2}, 'bcg'),${client_reg_date},'')"},"type":"calculate","name":"bcg","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"886AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'opv0'),${client_reg_date},'')"},"type":"calculate","name":"opv0","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'opv0')","calculate":"0"},"type":"calculate","name":"opv0_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'pcv1'),${client_reg_date},'')"},"type":"calculate","name":"pcv1","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'pcv1')","calculate":"1"},"type":"calculate","name":"pcv1_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'opv1'),${client_reg_date},'')"},"type":"calculate","name":"opv1","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'opv1')","calculate":"1"},"type":"calculate","name":"opv1_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'penta1'),${client_reg_date},'')"},"type":"calculate","name":"penta1","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'penta1')","calculate":"1"},"type":"calculate","name":"penta1_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'pcv2'),${client_reg_date},'')"},"type":"calculate","name":"pcv2","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'pcv2')","calculate":"2"},"type":"calculate","name":"pcv2_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'opv2'),${client_reg_date},'')"},"type":"calculate","name":"opv2","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'opv2')","calculate":"2"},"type":"calculate","name":"opv2_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'penta2'),${client_reg_date},'')"},"type":"calculate","name":"penta2","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'penta2')","calculate":"2"},"type":"calculate","name":"penta2_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'pcv3'),${client_reg_date},'')"},"type":"calculate","name":"pcv3","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'pcv3')","calculate":"3"},"type":"calculate","name":"pcv3_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'opv3'),${client_reg_date},'')"},"type":"calculate","name":"opv3","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'opv3')","calculate":"3"},"type":"calculate","name":"opv3_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'penta3'),${client_reg_date},'')"},"type":"calculate","name":"penta3","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'penta3')","calculate":"3"},"type":"calculate","name":"penta3_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines}, 'ipv')","calculate":"if(selected(${vaccines_2}, 'ipv'),${client_reg_date},'')"},"type":"calculate","name":"ipv","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1422AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'measles1'),${client_reg_date},'')"},"type":"calculate","name":"measles1","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'measles1')","calculate":"1"},"type":"calculate","name":"measles1_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'measles2'),${client_reg_date},'')"},"type":"calculate","name":"measles2","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'measles2')","calculate":"2"},"type":"calculate","name":"measles2_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"control":{"bodyless":true},"type":"group","children":[{"bind":{"readonly":"true()","calculate":"concat('uuid:', uuid())"},"type":"calculate","name":"instanceID"}],"name":"meta"}]} \ No newline at end of file diff --git a/opensrp-register/src/test/resources/form/child_enrollment/form.xml b/opensrp-register/src/test/resources/form/child_enrollment/form.xml deleted file mode 100644 index 188aa85437..0000000000 --- a/opensrp-register/src/test/resources/form/child_enrollment/form.xml +++ /dev/null @@ -1,1699 +0,0 @@ -
- - -

بچّوں کا انرولمنٹ رجسٹر برائے ٹیکاجات - Child Enrollment Vaccination Register

-
-
- - کیا تاریخ پیدائش معلوم ہے؟ - Is birthdate known? - - Kya tareekh-e-pedaaish maloom hai? -
- - -
-
-
-
- - کیا بچہ پیدائش کے وقت کسی مرض میں مبتلا تھا؟ - Was the child suffering from a disease at birth? - - Kya bacha pedaaish ke waqt kissi marz mai mubtila tha? - * -
- - -
-
-
-
- - کیا آپ اپنے بچے کی اگلی ویکسین کی تاریخ کے لیے SMS موصول کرنا چاہتے ہیں؟ - Are you willing to receive SMS reminders for your next visit? - - Kya aap apnay bachay ki agli vaccine ki tareekh ke liye SMS mausool karna chahtay hain? - * -
- - -
-
-
- - - - - - - - - - - - - -
-
-
- - آج کون کون سی ویکسین دی گئی ہیں؟ - Vaccines administered today - - Aaj kon kon si vaccine di gai hain? - * -
- - - بی سی جی - BCG - 1570AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - BCG - او پی وی 0 - OPV 0 - 783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - OPV 0 - پی سی وی 1 - PCV 1 - 162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - PCV 1 - او پی وی 1 - OPV 1 - 783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - OPV 1 - پینٹا ویلنٹ 1 - Pentavalent 1 - 162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - Pentavalent 1 - پی سی وی 2 - PCV 2 - 162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - PCV 2 - او پی وی 2 - OPV 2 - 783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - OPV 2 - پینٹا ویلنٹ 2 - Pentavalent 2 - 162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - Pentavalent 2 - پی سی وی 3 - PCV 3 - 162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - PCV 3 - او پی وی 3 - OPV 3 - 783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - OPV 3 - پینٹا ویلنٹ 3 - Pentavalent 3 - 162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - Pentavalent 3 - آئی پی وی - IPV - 82242AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - IPV - خسرہ 1 - Measles 1 - 79409AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - Khasra 1 - خسرہ 2 - Measles 2 - 79409AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - Khasra 2 -
-
-
- -
diff --git a/opensrp-register/src/test/resources/form/child_enrollment/form_definition.json b/opensrp-register/src/test/resources/form/child_enrollment/form_definition.json deleted file mode 100644 index ad1aa7f618..0000000000 --- a/opensrp-register/src/test/resources/form/child_enrollment/form_definition.json +++ /dev/null @@ -1,343 +0,0 @@ -{ - "form_data_definition_version" : "1", - "form" : { - "bind_type" : "pkchild", - "default_bind_path" : "/model/instance/Child_Vaccination_Enrollment/", - "fields" : [ { - "name" : "id", - "shouldLoadValue" : true - }, { - "name" : "provider_uc", - "bind" : "/model/instance/Child_Vaccination_Enrollment/provider_uc", - "shouldLoadValue" : true - }, { - "name" : "provider_town", - "bind" : "/model/instance/Child_Vaccination_Enrollment/provider_town", - "shouldLoadValue" : true - }, { - "name" : "provider_city", - "bind" : "/model/instance/Child_Vaccination_Enrollment/provider_city", - "shouldLoadValue" : true - }, { - "name" : "provider_province", - "bind" : "/model/instance/Child_Vaccination_Enrollment/provider_province", - "shouldLoadValue" : true - }, { - "name" : "provider_id", - "bind" : "/model/instance/Child_Vaccination_Enrollment/provider_id", - "shouldLoadValue" : true - }, { - "name" : "provider_location_id", - "bind" : "/model/instance/Child_Vaccination_Enrollment/provider_location_id", - "shouldLoadValue" : true - }, { - "name" : "existing_program_client_id", - "bind" : "/model/instance/Child_Vaccination_Enrollment/existing_program_client_id", - "shouldLoadValue" : true - }, { - "name" : "provider_location_name", - "bind" : "/model/instance/Child_Vaccination_Enrollment/provider_location_name", - "shouldLoadValue" : true - }, { - "name" : "provider_location_note", - "bind" : "/model/instance/Child_Vaccination_Enrollment/provider_location_note" - }, { - "name" : "start", - "bind" : "/model/instance/Child_Vaccination_Enrollment/start" - }, { - "name" : "end", - "bind" : "/model/instance/Child_Vaccination_Enrollment/end" - }, { - "name" : "today", - "bind" : "/model/instance/Child_Vaccination_Enrollment/today" - }, { - "name" : "deviceid", - "bind" : "/model/instance/Child_Vaccination_Enrollment/deviceid" - }, { - "name" : "subscriberid", - "bind" : "/model/instance/Child_Vaccination_Enrollment/subscriberid" - }, { - "name" : "simserial", - "bind" : "/model/instance/Child_Vaccination_Enrollment/simserial" - }, { - "name" : "phonenumber", - "bind" : "/model/instance/Child_Vaccination_Enrollment/phonenumber" - }, { - "name" : "client_reg_date", - "bind" : "/model/instance/Child_Vaccination_Enrollment/client_reg_date" - }, { - "name" : "program_client_id", - "bind" : "/model/instance/Child_Vaccination_Enrollment/program_client_id" - }, { - "name" : "epi_card_number", - "bind" : "/model/instance/Child_Vaccination_Enrollment/epi_card_number" - }, { - "name" : "first_name", - "bind" : "/model/instance/Child_Vaccination_Enrollment/first_name" - }, { - "name" : "last_name", - "bind" : "/model/instance/Child_Vaccination_Enrollment/last_name" - }, { - "name" : "birth_date_known", - "bind" : "/model/instance/Child_Vaccination_Enrollment/member_birth_date_known" - }, { - "name" : "birth_date", - "bind" : "/model/instance/Child_Vaccination_Enrollment/member_birth_date" - }, { - "name" : "age", - "bind" : "/model/instance/Child_Vaccination_Enrollment/age" - }, { - "name" : "calc_age", - "bind" : "/model/instance/Child_Vaccination_Enrollment/calc_age" - }, { - "name" : "calc_dob", - "bind" : "/model/instance/Child_Vaccination_Enrollment/calc_dob" - }, { - "name" : "dob", - "bind" : "/model/instance/Child_Vaccination_Enrollment/calc_dob_confirm" - }, { - "name" : "calc_dob_estimated", - "bind" : "/model/instance/Child_Vaccination_Enrollment/calc_dob_estimated" - }, { - "name" : "calc_age_confirm", - "bind" : "/model/instance/Child_Vaccination_Enrollment/calc_age_confirm" - }, { - "name" : "gender", - "bind" : "/model/instance/Child_Vaccination_Enrollment/gender" - }, { - "name" : "mother_name", - "bind" : "/model/instance/Child_Vaccination_Enrollment/mother_name" - }, { - "name" : "ethnicity", - "bind" : "/model/instance/Child_Vaccination_Enrollment/ethnicity" - }, { - "name" : "ethnicity_other", - "bind" : "/model/instance/Child_Vaccination_Enrollment/ethnicity_other" - }, { - "name" : "province", - "bind" : "/model/instance/Child_Vaccination_Enrollment/province" - }, { - "name" : "city_village", - "bind" : "/model/instance/Child_Vaccination_Enrollment/city_village" - }, { - "name" : "town", - "bind" : "/model/instance/Child_Vaccination_Enrollment/town" - }, { - "name" : "union_council", - "bind" : "/model/instance/Child_Vaccination_Enrollment/union_council" - }, { - "name" : "address1", - "bind" : "/model/instance/Child_Vaccination_Enrollment/address1" - }, { - "name" : "landmark", - "bind" : "/model/instance/Child_Vaccination_Enrollment/landmark" - }, { - "name" : "provincename", - "bind" : "/model/instance/Child_Vaccination_Enrollment/provincename" - }, { - "name" : "city_villagename", - "bind" : "/model/instance/Child_Vaccination_Enrollment/city_villagename" - }, { - "name" : "townname", - "bind" : "/model/instance/Child_Vaccination_Enrollment/townname" - }, { - "name" : "union_councilname", - "bind" : "/model/instance/Child_Vaccination_Enrollment/union_councilname" - }, { - "name" : "address", - "bind" : "/model/instance/Child_Vaccination_Enrollment/address" - }, { - "name" : "centre_gps", - "bind" : "/model/instance/Child_Vaccination_Enrollment/centre_gps" - }, { - "name" : "child_was_suffering_from_a_disease_at_birth", - "bind" : "/model/instance/Child_Vaccination_Enrollment/child_was_suffering_from_a_disease_at_birth" - }, { - "name" : "reminders_approval", - "bind" : "/model/instance/Child_Vaccination_Enrollment/reminders_approval" - }, { - "name" : "contact_phone_number", - "bind" : "/model/instance/Child_Vaccination_Enrollment/contact_phone_number" - }, { - "name" : "six_weeks", - "bind" : "/model/instance/Child_Vaccination_Enrollment/six_weeks" - }, { - "name" : "ten_weeks", - "bind" : "/model/instance/Child_Vaccination_Enrollment/ten_weeks" - }, { - "name" : "forteen_weeks", - "bind" : "/model/instance/Child_Vaccination_Enrollment/forteen_weeks" - }, { - "name" : "nine_months", - "bind" : "/model/instance/Child_Vaccination_Enrollment/nine_months" - }, { - "name" : "fifteen_months", - "bind" : "/model/instance/Child_Vaccination_Enrollment/fifteen_months" - }, { - "name" : "vaccines", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines" - }, { - "name" : "bcg_retro", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/bcg_retro" - }, { - "name" : "opv0_retro", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/opv0_retro" - }, { - "name" : "opv0_dose", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/opv0_dose" - }, { - "name" : "pcv1_retro", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/pcv1_retro" - }, { - "name" : "pcv1_dose", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/pcv1_dose" - }, { - "name" : "opv1_retro", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/opv1_retro" - }, { - "name" : "opv1_dose", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/opv1_dose" - }, { - "name" : "penta1_retro", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/penta1_retro" - }, { - "name" : "penta1_dose", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/penta1_dose" - }, { - "name" : "pcv2_retro", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/pcv2_retro" - }, { - "name" : "pcv2_dose", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/pcv2_dose" - }, { - "name" : "opv2_retro", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/opv2_retro" - }, { - "name" : "opv2_dose", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/opv2_dose" - }, { - "name" : "penta2_retro", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/penta2_retro" - }, { - "name" : "penta2_dose", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/penta2_dose" - }, { - "name" : "pcv3_retro", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/pcv3_retro" - }, { - "name" : "pcv3_dose", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/pcv3_dose" - }, { - "name" : "opv3_retro", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/opv3_retro" - }, { - "name" : "opv3_dose", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/opv3_dose" - }, { - "name" : "penta3_retro", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/penta3_retro" - }, { - "name" : "penta3_dose", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/penta3_dose" - }, { - "name" : "ipv_retro", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/ipv_retro" - }, { - "name" : "measles1_retro", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/measles1_retro" - }, { - "name" : "measles1_dose", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/measles1_dose" - }, { - "name" : "measles2_retro", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/measles2_retro" - }, { - "name" : "measles2_dose", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/measles2_dose" - }, { - "name" : "vaccines_2", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_2" - }, { - "name" : "bcg", - "bind" : "/model/instance/Child_Vaccination_Enrollment/bcg" - }, { - "name" : "opv0", - "bind" : "/model/instance/Child_Vaccination_Enrollment/opv0" - }, { - "name" : "opv0_dose_today", - "bind" : "/model/instance/Child_Vaccination_Enrollment/opv0_dose_today" - }, { - "name" : "pcv1", - "bind" : "/model/instance/Child_Vaccination_Enrollment/pcv1" - }, { - "name" : "pcv1_dose_today", - "bind" : "/model/instance/Child_Vaccination_Enrollment/pcv1_dose_today" - }, { - "name" : "opv1", - "bind" : "/model/instance/Child_Vaccination_Enrollment/opv1" - }, { - "name" : "opv1_dose_today", - "bind" : "/model/instance/Child_Vaccination_Enrollment/opv1_dose_today" - }, { - "name" : "penta1", - "bind" : "/model/instance/Child_Vaccination_Enrollment/penta1" - }, { - "name" : "penta1_dose_today", - "bind" : "/model/instance/Child_Vaccination_Enrollment/penta1_dose_today" - }, { - "name" : "pcv2", - "bind" : "/model/instance/Child_Vaccination_Enrollment/pcv2" - }, { - "name" : "pcv2_dose_today", - "bind" : "/model/instance/Child_Vaccination_Enrollment/pcv2_dose_today" - }, { - "name" : "opv2", - "bind" : "/model/instance/Child_Vaccination_Enrollment/opv2" - }, { - "name" : "opv2_dose_today", - "bind" : "/model/instance/Child_Vaccination_Enrollment/opv2_dose_today" - }, { - "name" : "penta2", - "bind" : "/model/instance/Child_Vaccination_Enrollment/penta2" - }, { - "name" : "penta2_dose_today", - "bind" : "/model/instance/Child_Vaccination_Enrollment/penta2_dose_today" - }, { - "name" : "pcv3", - "bind" : "/model/instance/Child_Vaccination_Enrollment/pcv3" - }, { - "name" : "pcv3_dose_today", - "bind" : "/model/instance/Child_Vaccination_Enrollment/pcv3_dose_today" - }, { - "name" : "opv3", - "bind" : "/model/instance/Child_Vaccination_Enrollment/opv3" - }, { - "name" : "opv3_dose_today", - "bind" : "/model/instance/Child_Vaccination_Enrollment/opv3_dose_today" - }, { - "name" : "penta3", - "bind" : "/model/instance/Child_Vaccination_Enrollment/penta3" - }, { - "name" : "penta3_dose_today", - "bind" : "/model/instance/Child_Vaccination_Enrollment/penta3_dose_today" - }, { - "name" : "ipv", - "bind" : "/model/instance/Child_Vaccination_Enrollment/ipv" - }, { - "name" : "measles1", - "bind" : "/model/instance/Child_Vaccination_Enrollment/measles1" - }, { - "name" : "measles1_dose_today", - "bind" : "/model/instance/Child_Vaccination_Enrollment/measles1_dose_today" - }, { - "name" : "measles2", - "bind" : "/model/instance/Child_Vaccination_Enrollment/measles2" - }, { - "name" : "measles2_dose_today", - "bind" : "/model/instance/Child_Vaccination_Enrollment/measles2_dose_today" - }, { - "name" : "instanceID", - "bind" : "/model/instance/Child_Vaccination_Enrollment/meta/instanceID" - } ] - } -} \ No newline at end of file diff --git a/opensrp-register/src/test/resources/form/child_enrollment/model.xml b/opensrp-register/src/test/resources/form/child_enrollment/model.xml deleted file mode 100644 index f264edd831..0000000000 --- a/opensrp-register/src/test/resources/form/child_enrollment/model.xml +++ /dev/null @@ -1,1690 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - yes - - - - - - - - - - - - - - ${provider_province} - ${provider_city} - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - static_instance-provinces-0 - kpk - - - static_instance-provinces-1 - sindh - - - static_instance-provinces-2 - balochistan - - - static_instance-provinces-3 - punjab - - - static_instance-provinces-4 - gilgit_baltistan - - - static_instance-provinces-5 - kashmir - - - static_instance-provinces-6 - fata - - - static_instance-provinces-7 - out_of_country - - - - - - - static_instance-ucs-0 - sindh - karachi - korangi - bilal_colony - - - static_instance-ucs-1 - sindh - karachi - korangi - nasir_colony - - - static_instance-ucs-2 - sindh - karachi - korangi - chakra_goth - - - static_instance-ucs-3 - sindh - karachi - korangi - mustafa_taj_colony - - - static_instance-ucs-4 - sindh - karachi - korangi - hundred_quarters - - - static_instance-ucs-5 - sindh - karachi - korangi - gulzar_colony - - - static_instance-ucs-6 - sindh - karachi - korangi - korangi_sector_33 - - - static_instance-ucs-7 - sindh - karachi - korangi - zaman_town - - - static_instance-ucs-8 - sindh - karachi - korangi - hasrat_mohani_colony - - - static_instance-ucs-9 - sindh - karachi - baldia - gulshan_e_ghazi - - - static_instance-ucs-10 - sindh - karachi - baldia - ittehad_town - - - static_instance-ucs-11 - sindh - karachi - baldia - islam_nagar - - - static_instance-ucs-12 - sindh - karachi - baldia - nai_abadi - - - static_instance-ucs-13 - sindh - karachi - baldia - saeedabad - - - static_instance-ucs-14 - sindh - karachi - baldia - muslim_mujahid_colony - - - static_instance-ucs-15 - sindh - karachi - baldia - muhajir_camp - - - static_instance-ucs-16 - sindh - karachi - baldia - rasheedabad - - - static_instance-ucs-17 - sindh - karachi - bin_qasim - ibrahim_hyderi - - - static_instance-ucs-18 - sindh - karachi - bin_qasim - rehri - - - static_instance-ucs-19 - sindh - karachi - bin_qasim - cattle_colony - - - static_instance-ucs-20 - sindh - karachi - bin_qasim - qaidabad - - - static_instance-ucs-21 - sindh - karachi - bin_qasim - landhi_colony - - - static_instance-ucs-22 - sindh - karachi - bin_qasim - gulshan_e_hadeed - - - static_instance-ucs-23 - sindh - karachi - bin_qasim - gaghar - - - static_instance-ucs-24 - sindh - karachi - gadap - murad_memon_goth - - - static_instance-ucs-25 - sindh - karachi - gadap - darsano_chana - - - static_instance-ucs-26 - sindh - karachi - gadap - gujro - - - static_instance-ucs-27 - sindh - karachi - gadap - songal - - - static_instance-ucs-28 - sindh - karachi - gadap - maymarabad - - - static_instance-ucs-29 - sindh - karachi - gadap - yousuf_goth - - - static_instance-ucs-30 - sindh - karachi - gadap - manghopir - - - static_instance-ucs-31 - sindh - karachi - gulberg - azizabad - - - static_instance-ucs-32 - sindh - karachi - gulberg - karimabad - - - static_instance-ucs-33 - sindh - karachi - gulberg - aisha_manzil - - - static_instance-ucs-34 - sindh - karachi - gulberg - ancholi - - - static_instance-ucs-35 - sindh - karachi - gulberg - naseerabad - - - static_instance-ucs-36 - sindh - karachi - gulberg - yaseenabad - - - static_instance-ucs-37 - sindh - karachi - gulberg - water_pump - - - static_instance-ucs-38 - sindh - karachi - gulberg - shafiq_mill_colony - - - static_instance-ucs-39 - sindh - karachi - gulshan - delhi_mercantile_society - - - static_instance-ucs-40 - sindh - karachi - gulshan - civic_centre - - - static_instance-ucs-41 - sindh - karachi - gulshan - pir_ilahi_buksh_colony - - - static_instance-ucs-42 - sindh - karachi - gulshan - essa_nagri - - - static_instance-ucs-43 - sindh - karachi - gulshan - gulshan_e_iqbal - - - static_instance-ucs-44 - sindh - karachi - gulshan - gillani_railway_station - - - static_instance-ucs-45 - sindh - karachi - gulshan - shanti_nagar - - - static_instance-ucs-46 - sindh - karachi - gulshan - jamali_colony - - - static_instance-ucs-47 - sindh - karachi - gulshan - gulshan_e_iqbal_ii - - - static_instance-ucs-48 - sindh - karachi - gulshan - pehlwan_goth - - - static_instance-ucs-49 - sindh - karachi - gulshan - matrovil_colony - - - static_instance-ucs-50 - sindh - karachi - gulshan - gulzar_e_hijri - - - static_instance-ucs-51 - sindh - karachi - gulshan - safooran_goth - - - static_instance-ucs-52 - sindh - karachi - jamshed - akhtar_colony - - - static_instance-ucs-53 - sindh - karachi - jamshed - manzoor_colony - - - static_instance-ucs-54 - sindh - karachi - jamshed - azam_basti - - - static_instance-ucs-55 - sindh - karachi - jamshed - chanesar_goth - - - static_instance-ucs-56 - sindh - karachi - jamshed - mahmudabad - - - static_instance-ucs-57 - sindh - karachi - jamshed - pechs - - - static_instance-ucs-58 - sindh - karachi - jamshed - pechs_ii - - - static_instance-ucs-59 - sindh - karachi - jamshed - jut_line - - - static_instance-ucs-60 - sindh - karachi - jamshed - central_jacob_lines - - - static_instance-ucs-61 - sindh - karachi - jamshed - jamshed_quarters - - - static_instance-ucs-62 - sindh - karachi - jamshed - garden_east - - - static_instance-ucs-63 - sindh - karachi - jamshed - soldier_bazar - - - static_instance-ucs-64 - sindh - karachi - jamshed - pakistan_quarters - - - static_instance-ucs-65 - sindh - karachi - kiamari - bhutta_village - - - static_instance-ucs-66 - sindh - karachi - kiamari - sultanabad - - - static_instance-ucs-67 - sindh - karachi - kiamari - kiamari_uc - - - static_instance-ucs-68 - sindh - karachi - kiamari - baba_bhit - - - static_instance-ucs-69 - sindh - karachi - kiamari - machar_colony - - - static_instance-ucs-70 - sindh - karachi - kiamari - maripur - - - static_instance-ucs-71 - sindh - karachi - kiamari - shershah - - - static_instance-ucs-72 - sindh - karachi - kiamari - gabo_pat - - - static_instance-ucs-73 - sindh - karachi - landhi - muzafarabad - - - static_instance-ucs-74 - sindh - karachi - landhi - muslimabad - - - static_instance-ucs-75 - sindh - karachi - landhi - dawood_chowrangi - - - static_instance-ucs-76 - sindh - karachi - landhi - moinabad - - - static_instance-ucs-77 - sindh - karachi - landhi - sharafi_goth - - - static_instance-ucs-78 - sindh - karachi - landhi - bhutto_nagar - - - static_instance-ucs-79 - sindh - karachi - landhi - khawaja_ajmeer_colony - - - static_instance-ucs-80 - sindh - karachi - landhi - landhi_uc - - - static_instance-ucs-81 - sindh - karachi - landhi - awami_colony - - - static_instance-ucs-82 - sindh - karachi - landhi - burmee_colony - - - static_instance-ucs-83 - sindh - karachi - landhi - korangi_uc - - - static_instance-ucs-84 - sindh - karachi - landhi - sherabad - - - static_instance-ucs-85 - sindh - karachi - liaquatabad - rizvia_society - - - static_instance-ucs-86 - sindh - karachi - liaquatabad - firdous_colony - - - static_instance-ucs-87 - sindh - karachi - liaquatabad - super_market - - - static_instance-ucs-88 - sindh - karachi - liaquatabad - dak_khana - - - static_instance-ucs-89 - sindh - karachi - liaquatabad - qasimabad - - - static_instance-ucs-90 - sindh - karachi - liaquatabad - bandhani_colony - - - static_instance-ucs-91 - sindh - karachi - liaquatabad - sharifabad - - - static_instance-ucs-92 - sindh - karachi - liaquatabad - commercial_area - - - static_instance-ucs-93 - sindh - karachi - liaquatabad - mujahid_colony - - - static_instance-ucs-94 - sindh - karachi - liaquatabad - nazimabad - - - static_instance-ucs-95 - sindh - karachi - liaquatabad - abbasi_shaheed - - - static_instance-ucs-96 - sindh - karachi - lyari - agra_taj_colony - - - static_instance-ucs-97 - sindh - karachi - lyari - daryaabad - - - static_instance-ucs-98 - sindh - karachi - lyari - nawabad - - - static_instance-ucs-99 - sindh - karachi - lyari - khada_memon_society - - - static_instance-ucs-100 - sindh - karachi - lyari - baghdadi - - - static_instance-ucs-101 - sindh - karachi - lyari - shah_baig_line - - - static_instance-ucs-102 - sindh - karachi - lyari - bihar_colony - - - static_instance-ucs-103 - sindh - karachi - lyari - ragiwara - - - static_instance-ucs-104 - sindh - karachi - lyari - singo_line - - - static_instance-ucs-105 - sindh - karachi - lyari - chakiwara - - - static_instance-ucs-106 - sindh - karachi - lyari - allama_iqbal_colony - - - static_instance-ucs-107 - sindh - karachi - malir - model_colony - - - static_instance-ucs-108 - sindh - karachi - malir - kala_board - - - static_instance-ucs-109 - sindh - karachi - malir - saudabad - - - static_instance-ucs-110 - sindh - karachi - malir - khokhra_par - - - static_instance-ucs-111 - sindh - karachi - malir - jafar_e_tayyar - - - static_instance-ucs-112 - sindh - karachi - malir - gharibabad - - - static_instance-ucs-113 - sindh - karachi - malir - ghazi_brohi_goth - - - static_instance-ucs-114 - sindh - karachi - new_karachi - kalyana - - - static_instance-ucs-115 - sindh - karachi - new_karachi - sir_syed_colony - - - static_instance-ucs-116 - sindh - karachi - new_karachi - fatima_jinnah_colony - - - static_instance-ucs-117 - sindh - karachi - new_karachi - godhra - - - static_instance-ucs-118 - sindh - karachi - new_karachi - abu_zar_ghaffari - - - static_instance-ucs-119 - sindh - karachi - new_karachi - hakim_ahsan - - - static_instance-ucs-120 - sindh - karachi - new_karachi - madina_colony - - - static_instance-ucs-121 - sindh - karachi - new_karachi - faisal_colony - - - static_instance-ucs-122 - sindh - karachi - new_karachi - khamiso_goth - - - static_instance-ucs-123 - sindh - karachi - new_karachi - mustufa_colony - - - static_instance-ucs-124 - sindh - karachi - new_karachi - khawaja_ajmeer_nagri - - - static_instance-ucs-125 - sindh - karachi - new_karachi - gulshan_e_saeed - - - static_instance-ucs-126 - sindh - karachi - new_karachi - shah_nawaz_bhutto_colony - - - static_instance-ucs-127 - sindh - karachi - north_nazimabad - paposh_nagar - - - static_instance-ucs-128 - sindh - karachi - north_nazimabad - pahar_ganj - - - static_instance-ucs-129 - sindh - karachi - north_nazimabad - khandu_goth - - - static_instance-ucs-130 - sindh - karachi - north_nazimabad - hyderi - - - static_instance-ucs-131 - sindh - karachi - north_nazimabad - sakhi_hassan - - - static_instance-ucs-132 - sindh - karachi - north_nazimabad - farooq_e_azam - - - static_instance-ucs-133 - sindh - karachi - north_nazimabad - nusrat_bhutto_colony - - - static_instance-ucs-134 - sindh - karachi - north_nazimabad - shadman_town - - - static_instance-ucs-135 - sindh - karachi - north_nazimabad - buffer_zone - - - static_instance-ucs-136 - sindh - karachi - north_nazimabad - buffer_zone_ii - - - static_instance-ucs-137 - sindh - karachi - orangi - mominabad - - - static_instance-ucs-138 - sindh - karachi - orangi - haryana_colony - - - static_instance-ucs-139 - sindh - karachi - orangi - hanifabad - - - static_instance-ucs-140 - sindh - karachi - orangi - mohammad_nagar - - - static_instance-ucs-141 - sindh - karachi - orangi - madina_colony_orangi - - - static_instance-ucs-142 - sindh - karachi - orangi - ghaziabad - - - static_instance-ucs-143 - sindh - karachi - orangi - chisti_nagar - - - static_instance-ucs-144 - sindh - karachi - orangi - bilal_colony_orangi - - - static_instance-ucs-145 - sindh - karachi - orangi - iqbal_baloch_colony - - - static_instance-ucs-146 - sindh - karachi - orangi - ghabool_town - - - static_instance-ucs-147 - sindh - karachi - orangi - data_nagar - - - static_instance-ucs-148 - sindh - karachi - orangi - mujahidabad - - - static_instance-ucs-149 - sindh - karachi - orangi - baloch_goth - - - static_instance-ucs-150 - sindh - karachi - saddar - old_haji_camp - - - static_instance-ucs-151 - sindh - karachi - saddar - garden - - - static_instance-ucs-152 - sindh - karachi - saddar - kharadar - - - static_instance-ucs-153 - sindh - karachi - saddar - city_railway_colony - - - static_instance-ucs-154 - sindh - karachi - saddar - nanak_wara - - - static_instance-ucs-155 - sindh - karachi - saddar - gazdarabad - - - static_instance-ucs-156 - sindh - karachi - saddar - millat_nagar_islam_pura - - - static_instance-ucs-157 - sindh - karachi - saddar - saddar_uc - - - static_instance-ucs-158 - sindh - karachi - saddar - civil_line - - - static_instance-ucs-159 - sindh - karachi - saddar - clifton - - - static_instance-ucs-160 - sindh - karachi - saddar - kehkashan - - - static_instance-ucs-161 - sindh - karachi - shah_faisal - natha_khan_goth - - - static_instance-ucs-162 - sindh - karachi - shah_faisal - pak_sadat_colony - - - static_instance-ucs-163 - sindh - karachi - shah_faisal - drigh_colony - - - static_instance-ucs-164 - sindh - karachi - shah_faisal - raita_plot - - - static_instance-ucs-165 - sindh - karachi - shah_faisal - moria_khan_goth - - - static_instance-ucs-166 - sindh - karachi - shah_faisal - rafa_e_aam_society - - - static_instance-ucs-167 - sindh - karachi - shah_faisal - al_falah_society - - - static_instance-ucs-168 - sindh - karachi - site - pak_colony - - - static_instance-ucs-169 - sindh - karachi - site - old_golimar - - - static_instance-ucs-170 - sindh - karachi - site - jahanabad - - - static_instance-ucs-171 - sindh - karachi - site - metrovil - - - static_instance-ucs-172 - sindh - karachi - site - bhawani_chali - - - static_instance-ucs-173 - sindh - karachi - site - frontier_colony - - - static_instance-ucs-174 - sindh - karachi - site - banaras_colony - - - static_instance-ucs-175 - sindh - karachi - site - qasba_colony - - - static_instance-ucs-176 - sindh - karachi - site - islamia_colony - - - static_instance-ucs-177 - na - na - na - other - - - static_instance-ucs-178 - na - na - na - not_applicable - - - - - - - static_instance-gender-0 - male - - - static_instance-gender-1 - female - - - static_instance-gender-2 - transgender - - - - - - - static_instance-vaccines-0 - bcg - - - static_instance-vaccines-1 - opv0 - - - static_instance-vaccines-2 - pcv1 - - - static_instance-vaccines-3 - opv1 - - - static_instance-vaccines-4 - penta1 - - - static_instance-vaccines-5 - pcv2 - - - static_instance-vaccines-6 - opv2 - - - static_instance-vaccines-7 - penta2 - - - static_instance-vaccines-8 - pcv3 - - - static_instance-vaccines-9 - opv3 - - - static_instance-vaccines-10 - penta3 - - - static_instance-vaccines-11 - ipv - - - static_instance-vaccines-12 - measles1 - - - static_instance-vaccines-13 - measles2 - - - - - - - static_instance-towns-0 - sindh - karachi - korangi - - - static_instance-towns-1 - sindh - karachi - landhi - - - static_instance-towns-2 - sindh - karachi - baldia - - - static_instance-towns-3 - sindh - karachi - bin_qasim - - - static_instance-towns-4 - sindh - karachi - gadap - - - static_instance-towns-5 - sindh - karachi - gulberg - - - static_instance-towns-6 - sindh - karachi - gulshan - - - static_instance-towns-7 - sindh - karachi - jamshed - - - static_instance-towns-8 - sindh - karachi - kiamari - - - static_instance-towns-9 - sindh - karachi - liaquatabad - - - static_instance-towns-10 - sindh - karachi - lyari - - - static_instance-towns-11 - sindh - karachi - malir - - - static_instance-towns-12 - sindh - karachi - new_karachi - - - static_instance-towns-13 - sindh - karachi - north_nazimabad - - - static_instance-towns-14 - sindh - karachi - orangi - - - static_instance-towns-15 - sindh - karachi - saddar - - - static_instance-towns-16 - sindh - karachi - shah_faisal - - - static_instance-towns-17 - sindh - karachi - site - - - static_instance-towns-18 - na - na - other - - - static_instance-towns-19 - na - na - not_applicable - - - - - - - static_instance-cities-0 - sindh - karachi - - - static_instance-cities-1 - punjab - hafizabad - - - static_instance-cities-2 - punjab - muzaffargarh - - - static_instance-cities-3 - na - other - - - static_instance-cities-4 - na - not_applicable - - - - - - - static_instance-ethnicity-0 - punjabi - - - static_instance-ethnicity-1 - pushtuns - - - static_instance-ethnicity-2 - sindhi - - - static_instance-ethnicity-3 - saraiki - - - static_instance-ethnicity-4 - muhajir - - - static_instance-ethnicity-5 - balochi - - - static_instance-ethnicity-6 - other - - - - - - - static_instance-yes_no-0 - yes - - - static_instance-yes_no-1 - no - - - - diff --git a/opensrp-register/src/test/resources/form/child_followup/form.json b/opensrp-register/src/test/resources/form/child_followup/form.json deleted file mode 100644 index 7ecafcbbe1..0000000000 --- a/opensrp-register/src/test/resources/form/child_followup/form.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"Child_Vaccination_Followup","title":"بچّوں کا فالو اپ رجسٹر برائے ٹیکاجات - Child Follow Up Vaccination Register","sms_keyword":"child_vaccination_followup","default_language":"English","choices":{"provinces":[{"name":"kpk","label":{"Urdu":"خیبر پختون خواہ","English":"Khyber Pakhtunkhwa","Roman Urdu":"Khyber Pakhtunkhwa"}},{"name":"sindh","label":{"Urdu":"سندھ","English":"Sindh","Roman Urdu":"Sindh"}},{"name":"balochistan","label":{"Urdu":"بلوچستان","English":"Balochistan","Roman Urdu":"Balochistan"}},{"name":"punjab","label":{"Urdu":"پنجاب","English":"Punjab","Roman Urdu":"Punjab"}},{"name":"gilgit_baltistan","label":{"Urdu":"گلگت بلتستان","English":"Gilgit Baltistan","Roman Urdu":"Gilgit Baltistan"}},{"name":"kashmir","label":{"Urdu":"کشمیر","English":"Kashmir","Roman Urdu":"Kashmir"}},{"name":"fata","label":{"Urdu":"فاٹا","English":"FATA","Roman Urdu":"FATA"}},{"name":"out_of_country","label":{"Urdu":"ملک سے باہر","English":"Out of Country","Roman Urdu":"Out of Country"}}],"ucs":[{"province":"sindh","city":"karachi","town":"korangi","name":"bilal_colony","label":{"Urdu":"بلال کالونی","Roman Urdu":"Bilal Colony","English":"Bilal Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"nasir_colony","label":{"Urdu":"ناصر کالونی","Roman Urdu":"Nasir Colony","English":"Nasir Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"chakra_goth","label":{"Urdu":"چکرا گوٹھ","Roman Urdu":"Chakra Goth","English":"Chakra Goth"}},{"province":"sindh","city":"karachi","town":"korangi","name":"mustafa_taj_colony","label":{"Urdu":"مصطفی تاج کالونی","Roman Urdu":"Mustafa Taj Colony","English":"Mustafa Taj Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"hundred_quarters","label":{"Urdu":"ہنڈریڈ کوارٹر","Roman Urdu":"Hundred Quarters","English":"Hundred Quarters"}},{"province":"sindh","city":"karachi","town":"korangi","name":"gulzar_colony","label":{"Urdu":"گلزار کالونی","Roman Urdu":"Gulzar Colony","English":"Gulzar Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"korangi_sector_33","label":{"Urdu":"کورنگی سیکٹر 33","Roman Urdu":"Korangi Sector 33","English":"Korangi Sector 33"}},{"province":"sindh","city":"karachi","town":"korangi","name":"zaman_town","label":{"Urdu":"زمان ٹاوَن","Roman Urdu":"Zaman Town","English":"Zaman Town"}},{"province":"sindh","city":"karachi","town":"korangi","name":"hasrat_mohani_colony","label":{"Urdu":"حسرت موہانی کالونی","Roman Urdu":"Hasrat Mohani Colony","English":"Hasrat Mohani Colony"}},{"province":"sindh","city":"karachi","town":"baldia","name":"gulshan_e_ghazi","label":{"Urdu":"گلشن غازی","Roman Urdu":"Gulshan-e-Ghazi","English":"Gulshan-e-Ghazi"}},{"province":"sindh","city":"karachi","town":"baldia","name":"ittehad_town","label":{"Urdu":"اتحاد ٹاوَن","Roman Urdu":"Ittehad Town","English":"Ittehad Town"}},{"province":"sindh","city":"karachi","town":"baldia","name":"islam_nagar","label":{"Urdu":"اسلام نگر","Roman Urdu":"Islam Nagar","English":"Islam Nagar"}},{"province":"sindh","city":"karachi","town":"baldia","name":"nai_abadi","label":{"Urdu":"نئی آبادی","Roman Urdu":"Nai Abadi","English":"Nai Abadi"}},{"province":"sindh","city":"karachi","town":"baldia","name":"saeedabad","label":{"Urdu":"سعید آباد","Roman Urdu":"Saeedabad","English":"Saeedabad"}},{"province":"sindh","city":"karachi","town":"baldia","name":"muslim_mujahid_colony","label":{"Urdu":"مسلم مجاہد کالونی","Roman Urdu":"Muslim Mujahid Colony","English":"Muslim Mujahid Colony"}},{"province":"sindh","city":"karachi","town":"baldia","name":"muhajir_camp","label":{"Urdu":"مہاجر کیمپ","Roman Urdu":"Muhajir Camp","English":"Muhajir Camp"}},{"province":"sindh","city":"karachi","town":"baldia","name":"rasheedabad","label":{"Urdu":"رشید آباد","Roman Urdu":"Rasheedabad","English":"Rasheedabad"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"ibrahim_hyderi","label":{"Urdu":"ابراہیم حیدری","Roman Urdu":"Ibrahim Hyderi","English":"Ibrahim Hyderi"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"rehri","label":{"Urdu":"رہڑی","Roman Urdu":"Rehri","English":"Rehri"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"cattle_colony","label":{"Urdu":"کیٹل کالونی","Roman Urdu":"Cattle Colony","English":"Cattle Colony"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"qaidabad","label":{"Urdu":"قائدآباد","Roman Urdu":"Qaidabad","English":"Qaidabad"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"landhi_colony","label":{"Urdu":"لانڈھی کالونی","Roman Urdu":"Landhi Colony","English":"Landhi Colony"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"gulshan_e_hadeed","label":{"Urdu":"گلشن حدید","Roman Urdu":"Gulshan-e-Hadeed","English":"Gulshan-e-Hadeed"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"gaghar","label":{"Urdu":"گگر","Roman Urdu":"Gaghar","English":"Gaghar"}},{"province":"sindh","city":"karachi","town":"gadap","name":"murad_memon_goth","label":{"Urdu":"مراد میمن گوٹھ","Roman Urdu":"Murad Memon Goth","English":"Murad Memon Goth"}},{"province":"sindh","city":"karachi","town":"gadap","name":"darsano_chana","label":{"Urdu":"درشانو شنو","Roman Urdu":"Darsano Chana","English":"Darsano Chana"}},{"province":"sindh","city":"karachi","town":"gadap","name":"gujro","label":{"Urdu":"گجرو","Roman Urdu":"Gujro","English":"Gujro"}},{"province":"sindh","city":"karachi","town":"gadap","name":"songal","label":{"Urdu":"سنگل","Roman Urdu":"Songal","English":"Songal"}},{"province":"sindh","city":"karachi","town":"gadap","name":"maymarabad","label":{"Urdu":"معمار آباد","Roman Urdu":"Maymarabad","English":"Maymarabad"}},{"province":"sindh","city":"karachi","town":"gadap","name":"yousuf_goth","label":{"Urdu":"یوسف گوٹھ","Roman Urdu":"Yousuf Goth","English":"Yousuf Goth"}},{"province":"sindh","city":"karachi","town":"gadap","name":"manghopir","label":{"Urdu":"منگھوپیر","Roman Urdu":"Manghopir","English":"Manghopir"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"azizabad","label":{"Urdu":"عزیز آباد","Roman Urdu":"Azizabad","English":"Azizabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"karimabad","label":{"Urdu":"کریم آباد","Roman Urdu":"Karimabad","English":"Karimabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"aisha_manzil","label":{"Urdu":"عائشہ منزل","Roman Urdu":"Aisha Manzil","English":"Aisha Manzil"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"ancholi","label":{"Urdu":"انچولی","Roman Urdu":"Ancholi","English":"Ancholi"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"naseerabad","label":{"Urdu":"نصیرآباد","Roman Urdu":"Naseerabad","English":"Naseerabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"yaseenabad","label":{"Urdu":"یاسین آباد","Roman Urdu":"Yaseenabad","English":"Yaseenabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"water_pump","label":{"Urdu":"واٹرپمپ","Roman Urdu":"Water Pump","English":"Water Pump"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"shafiq_mill_colony","label":{"Urdu":"شفیق مل کالونی","Roman Urdu":"Shafiq Mill Colony","English":"Shafiq Mill Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"delhi_mercantile_society","label":{"Urdu":"دہلی مرچنٹائل سوسائٹی","Roman Urdu":"Delhi Mercantile Society","English":"Delhi Mercantile Society"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"civic_centre","label":{"Urdu":"سوک سینٹر","Roman Urdu":"Civic Centre","English":"Civic Centre"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"pir_ilahi_buksh_colony","label":{"Urdu":"پیر الہی بخش کالونی","Roman Urdu":"Pir Ilahi Buksh Colony","English":"Pir Ilahi Buksh Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"essa_nagri","label":{"Urdu":"عیسی نگری","Roman Urdu":"Essa Nagri","English":"Essa Nagri"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gulshan_e_iqbal","label":{"Urdu":"گلشن اقبال","Roman Urdu":"Gulshan-e-Iqbal","English":"Gulshan-e-Iqbal"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gillani_railway_station","label":{"Urdu":"گیلانی ریلوے اسٹیشن","Roman Urdu":"Gillani Railway Station","English":"Gillani Railway Station"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"shanti_nagar","label":{"Urdu":"شانتی نگر","Roman Urdu":"Shanti Nagar","English":"Shanti Nagar"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"jamali_colony","label":{"Urdu":"جمالی کالونی","Roman Urdu":"Jamali Colony","English":"Jamali Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gulshan_e_iqbal_ii","label":{"Urdu":"گلشن اقبال 2","Roman Urdu":"Gulshan-e-Iqbal II","English":"Gulshan-e-Iqbal II"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"pehlwan_goth","label":{"Urdu":"پہلوان گوٹھ","Roman Urdu":"Pehlwan Goth","English":"Pehlwan Goth"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"matrovil_colony","label":{"Urdu":"میٹروویل کالونی","Roman Urdu":"Matrovil Colony","English":"Matrovil Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gulzar_e_hijri","label":{"Urdu":"گلزار ہجری","Roman Urdu":"Gulzar-e-Hijri","English":"Gulzar-e-Hijri"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"safooran_goth","label":{"Urdu":"صفورا گوٹھ","Roman Urdu":"Safooran Goth","English":"Safooran Goth"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"akhtar_colony","label":{"Urdu":"اختر کالونی","Roman Urdu":"Akhtar Colony","English":"Akhtar Colony"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"manzoor_colony","label":{"Urdu":"منظور کالونی","Roman Urdu":"Manzoor Colony","English":"Manzoor Colony"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"azam_basti","label":{"Urdu":"اعظم بستی","Roman Urdu":"Azam Basti","English":"Azam Basti"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"chanesar_goth","label":{"Urdu":"چنیسر گوٹھ","Roman Urdu":"Chanesar Goth","English":"Chanesar Goth"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"mahmudabad","label":{"Urdu":"محمودآباد","Roman Urdu":"Mahmudabad","English":"Mahmudabad"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"pechs","label":{"Urdu":"پی۔ای۔سی۔ایچ۔ایس","Roman Urdu":"P.E.C.H.S.","English":"P.E.C.H.S."}},{"province":"sindh","city":"karachi","town":"jamshed","name":"pechs_ii","label":{"Urdu":"پی۔ای۔سی۔ایچ۔ایس 2","Roman Urdu":"P.E.C.H.S. II","English":"P.E.C.H.S. II"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"jut_line","label":{"Urdu":"جٹ لائن","Roman Urdu":"Jut Line","English":"Jut Line"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"central_jacob_lines","label":{"Urdu":"سینٹرل جیکب لائن","Roman Urdu":"Central Jacob Lines","English":"Central Jacob Lines"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"jamshed_quarters","label":{"Urdu":"جمشید کوارٹر","Roman Urdu":"Jamshed Quarters","English":"Jamshed Quarters"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"garden_east","label":{"Urdu":"گارڈن ایسٹ","Roman Urdu":"Garden East","English":"Garden East"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"soldier_bazar","label":{"Urdu":"سولجر بازار","Roman Urdu":"Soldier Bazar","English":"Soldier Bazar"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"pakistan_quarters","label":{"Urdu":"پاکستان کوارٹر","Roman Urdu":"Pakistan Quarters","English":"Pakistan Quarters"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"bhutta_village","label":{"Urdu":"بھٹا ولیج","Roman Urdu":"Bhutta Village","English":"Bhutta Village"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"sultanabad","label":{"Urdu":"سلطان آباد","Roman Urdu":"Sultanabad","English":"Sultanabad"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"kiamari_uc","label":{"Urdu":"کیماری یو- سی","Roman Urdu":"Kiamari UC","English":"Kiamari UC"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"baba_bhit","label":{"Urdu":"بابا بھٹ","Roman Urdu":"Baba Bhit","English":"Baba Bhit"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"machar_colony","label":{"Urdu":"مچھر کالونی","Roman Urdu":"Machar Colony","English":"Machar Colony"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"maripur","label":{"Urdu":"ماڑی پور","Roman Urdu":"Maripur","English":"Maripur"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"shershah","label":{"Urdu":"شیرشاہ","Roman Urdu":"SherShah","English":"SherShah"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"gabo_pat","label":{"Urdu":"گابو پٹ","Roman Urdu":"Gabo Pat","English":"Gabo Pat"}},{"province":"sindh","city":"karachi","town":"landhi","name":"muzafarabad","label":{"Urdu":"مظفرآباد","Roman Urdu":"Muzafarabad","English":"Muzafarabad"}},{"province":"sindh","city":"karachi","town":"landhi","name":"muslimabad","label":{"Urdu":"مسلم آباد","Roman Urdu":"Muslimabad","English":"Muslimabad"}},{"province":"sindh","city":"karachi","town":"landhi","name":"dawood_chowrangi","label":{"Urdu":"داوَد چورنگی","Roman Urdu":"Dawood Chowrangi","English":"Dawood Chowrangi"}},{"province":"sindh","city":"karachi","town":"landhi","name":"moinabad","label":{"Urdu":"معین آباد","Roman Urdu":"Moinabad","English":"Moinabad"}},{"province":"sindh","city":"karachi","town":"landhi","name":"sharafi_goth","label":{"Urdu":"شرافی گوٹھ","Roman Urdu":"Sharafi Goth","English":"Sharafi Goth"}},{"province":"sindh","city":"karachi","town":"landhi","name":"bhutto_nagar","label":{"Urdu":"بھٹو نگر","Roman Urdu":"Bhutto Nagar","English":"Bhutto Nagar"}},{"province":"sindh","city":"karachi","town":"landhi","name":"khawaja_ajmeer_colony","label":{"Urdu":"خواجہ اجمیر کالونی","Roman Urdu":"Khawaja Ajmeer Colony","English":"Khawaja Ajmeer Colony"}},{"province":"sindh","city":"karachi","town":"landhi","name":"landhi_uc","label":{"Urdu":"لانڈھی یوسی","Roman Urdu":"Landhi UC","English":"Landhi UC"}},{"province":"sindh","city":"karachi","town":"landhi","name":"awami_colony","label":{"Urdu":"عوامی کالونی","Roman Urdu":"Awami Colony","English":"Awami Colony"}},{"province":"sindh","city":"karachi","town":"landhi","name":"burmee_colony","label":{"Urdu":"برمی کالونی","Roman Urdu":"Burmee Colony","English":"Burmee Colony"}},{"province":"sindh","city":"karachi","town":"landhi","name":"korangi_uc","label":{"Urdu":"کورنگی یوسی","Roman Urdu":"Korangi UC","English":"Korangi UC"}},{"province":"sindh","city":"karachi","town":"landhi","name":"sherabad","label":{"Urdu":"شیرآباد","Roman Urdu":"Sherabad","English":"Sherabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"rizvia_society","label":{"Urdu":"رضویہ سوسائٹی","Roman Urdu":"Rizvia Society","English":"Rizvia Society"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"firdous_colony","label":{"Urdu":"فردوس کالونی","Roman Urdu":"Firdous Colony","English":"Firdous Colony"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"super_market","label":{"Urdu":"سپر مارکیٹ","Roman Urdu":"Super Market","English":"Super Market"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"dak_khana","label":{"Urdu":"دک کھانہ","Roman Urdu":"Dak Khana","English":"Dak Khana"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"qasimabad","label":{"Urdu":"قاسم آباد","Roman Urdu":"Qasimabad","English":"Qasimabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"bandhani_colony","label":{"Urdu":"بندھانی کالونی","Roman Urdu":"Bandhani Colony","English":"Bandhani Colony"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"sharifabad","label":{"Urdu":"شریف آباد","Roman Urdu":"Sharifabad","English":"Sharifabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"commercial_area","label":{"Urdu":"کمرشل ایریا","Roman Urdu":"Commercial Area","English":"Commercial Area"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"mujahid_colony","label":{"Urdu":"مجاہد کالونی","Roman Urdu":"Mujahid Colony","English":"Mujahid Colony"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"nazimabad","label":{"Urdu":"ناظم آباد","Roman Urdu":"Nazimabad","English":"Nazimabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"abbasi_shaheed","label":{"Urdu":"عباسی شہید","Roman Urdu":"Abbasi Shaheed","English":"Abbasi Shaheed"}},{"province":"sindh","city":"karachi","town":"lyari","name":"agra_taj_colony","label":{"Urdu":"آگرہ تاج کالونی","Roman Urdu":"Agra Taj Colony","English":"Agra Taj Colony"}},{"province":"sindh","city":"karachi","town":"lyari","name":"daryaabad","label":{"Urdu":"دریاآباد","Roman Urdu":"Daryaabad","English":"Daryaabad"}},{"province":"sindh","city":"karachi","town":"lyari","name":"nawabad","label":{"Urdu":"نواآباد","Roman Urdu":"Nawabad","English":"Nawabad"}},{"province":"sindh","city":"karachi","town":"lyari","name":"khada_memon_society","label":{"Urdu":"خدا- میمن- سوساَٹی","Roman Urdu":"Khada Memon Society","English":"Khada Memon Society"}},{"province":"sindh","city":"karachi","town":"lyari","name":"baghdadi","label":{"Urdu":"بغدادی","Roman Urdu":"Baghdadi","English":"Baghdadi"}},{"province":"sindh","city":"karachi","town":"lyari","name":"shah_baig_line","label":{"Urdu":"شاھ باغ لائن","Roman Urdu":"Shah Baig Line","English":"Shah Baig Line"}},{"province":"sindh","city":"karachi","town":"lyari","name":"bihar_colony","label":{"Urdu":"بہار کالونی","Roman Urdu":"Bihar Colony","English":"Bihar Colony"}},{"province":"sindh","city":"karachi","town":"lyari","name":"ragiwara","label":{"Urdu":"راگی واڑا","Roman Urdu":"Ragiwara","English":"Ragiwara"}},{"province":"sindh","city":"karachi","town":"lyari","name":"singo_line","label":{"Urdu":"سنگولائن","Roman Urdu":"Singo Line","English":"Singo Line"}},{"province":"sindh","city":"karachi","town":"lyari","name":"chakiwara","label":{"Urdu":"چاکی واڑا","Roman Urdu":"Chakiwara","English":"Chakiwara"}},{"province":"sindh","city":"karachi","town":"lyari","name":"allama_iqbal_colony","label":{"Urdu":"علامہ اقبال کالونی","Roman Urdu":"Allama Iqbal Colony","English":"Allama Iqbal Colony"}},{"province":"sindh","city":"karachi","town":"malir","name":"model_colony","label":{"Urdu":"موڈل کالونی","Roman Urdu":"Model Colony","English":"Model Colony"}},{"province":"sindh","city":"karachi","town":"malir","name":"kala_board","label":{"Urdu":"کالا بورڈ","Roman Urdu":"Kala Board","English":"Kala Board"}},{"province":"sindh","city":"karachi","town":"malir","name":"saudabad","label":{"Urdu":"سعودآباد","Roman Urdu":"Saudabad","English":"Saudabad"}},{"province":"sindh","city":"karachi","town":"malir","name":"khokhra_par","label":{"Urdu":"کھوکھرا پار","Roman Urdu":"Khokhra Par","English":"Khokhra Par"}},{"province":"sindh","city":"karachi","town":"malir","name":"jafar_e_tayyar","label":{"Urdu":"جعفر تیار","Roman Urdu":"Jafar-e-Tayyar","English":"Jafar-e-Tayyar"}},{"province":"sindh","city":"karachi","town":"malir","name":"gharibabad","label":{"Urdu":"غریب آباد","Roman Urdu":"Gharibabad","English":"Gharibabad"}},{"province":"sindh","city":"karachi","town":"malir","name":"ghazi_brohi_goth","label":{"Urdu":"غازی بروہی گوٹھ","Roman Urdu":"Ghazi Brohi Goth","English":"Ghazi Brohi Goth"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"kalyana","label":{"Urdu":"کالیانہ","Roman Urdu":"Kalyana","English":"Kalyana"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"sir_syed_colony","label":{"Urdu":"سر سید کالونی","Roman Urdu":"Sir Syed Colony","English":"Sir Syed Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"fatima_jinnah_colony","label":{"Urdu":"فاطمہ جناح کالونی","Roman Urdu":"Fatima Jinnah Colony","English":"Fatima Jinnah Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"godhra","label":{"Urdu":"گودھرا","Roman Urdu":"Godhra","English":"Godhra"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"abu_zar_ghaffari","label":{"Urdu":"ابو زر غفاری","Roman Urdu":"Abu Zar Ghaffari","English":"Abu Zar Ghaffari"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"hakim_ahsan","label":{"Urdu":"حاکم احسان","Roman Urdu":"Hakim Ahsan","English":"Hakim Ahsan"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"madina_colony","label":{"Urdu":"مدینہ کالونی","Roman Urdu":"Madina Colony","English":"Madina Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"faisal_colony","label":{"Urdu":"فیصل کالونی","Roman Urdu":"Faisal Colony","English":"Faisal Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"khamiso_goth","label":{"Urdu":"خمیسو گوٹھ","Roman Urdu":"Khamiso Goth","English":"Khamiso Goth"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"mustufa_colony","label":{"Urdu":"مصطفی کالونی","Roman Urdu":"Mustufa Colony","English":"Mustufa Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"khawaja_ajmeer_nagri","label":{"Urdu":"خواجہ اجمیر نگری","Roman Urdu":"Khawaja Ajmeer Nagri","English":"Khawaja Ajmeer Nagri"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"gulshan_e_saeed","label":{"Urdu":"گلشن سعید","Roman Urdu":"Gulshan-e-Saeed","English":"Gulshan-e-Saeed"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"shah_nawaz_bhutto_colony","label":{"Urdu":"شاہ نواز بھٹو کالونی","Roman Urdu":"Shah Nawaz Bhutto Colony","English":"Shah Nawaz Bhutto Colony"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"paposh_nagar","label":{"Urdu":"پاپوش نگر","Roman Urdu":"Paposh Nagar","English":"Paposh Nagar"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"pahar_ganj","label":{"Urdu":"پہاڑ گنج","Roman Urdu":"Pahar Ganj","English":"Pahar Ganj"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"khandu_goth","label":{"Urdu":"کھنڑو گوٹھ","Roman Urdu":"Khandu Goth","English":"Khandu Goth"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"hyderi","label":{"Urdu":"حیدری","Roman Urdu":"Hyderi","English":"Hyderi"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"sakhi_hassan","label":{"Urdu":"سخی حسن","Roman Urdu":"Sakhi Hassan","English":"Sakhi Hassan"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"farooq_e_azam","label":{"Urdu":"فاروق اعظم","Roman Urdu":"Farooq-e-Azam","English":"Farooq-e-Azam"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"nusrat_bhutto_colony","label":{"Urdu":"نصرت بھٹو کالونی","Roman Urdu":"Nusrat Bhutto Colony","English":"Nusrat Bhutto Colony"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"shadman_town","label":{"Urdu":"شادمان ٹاوَن","Roman Urdu":"Shadman Town","English":"Shadman Town"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"buffer_zone","label":{"Urdu":"بفرزون","Roman Urdu":"Buffer Zone","English":"Buffer Zone"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"buffer_zone_ii","label":{"Urdu":"بفرزون 2","Roman Urdu":"Buffer Zone II","English":"Buffer Zone II"}},{"province":"sindh","city":"karachi","town":"orangi","name":"mominabad","label":{"Urdu":"مومن آباد","Roman Urdu":"Mominabad","English":"Mominabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"haryana_colony","label":{"Urdu":"حریانہ کالونی","Roman Urdu":"Haryana Colony","English":"Haryana Colony"}},{"province":"sindh","city":"karachi","town":"orangi","name":"hanifabad","label":{"Urdu":"حنیف آباد","Roman Urdu":"Hanifabad","English":"Hanifabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"mohammad_nagar","label":{"Urdu":"محمد نگر","Roman Urdu":"Mohammad Nagar","English":"Mohammad Nagar"}},{"province":"sindh","city":"karachi","town":"orangi","name":"madina_colony_orangi","label":{"Urdu":"مدینہ کالونی اورنگی","Roman Urdu":"Madina Colony Orangi","English":"Madina Colony Orangi"}},{"province":"sindh","city":"karachi","town":"orangi","name":"ghaziabad","label":{"Urdu":"غازی آباد","Roman Urdu":"Ghaziabad","English":"Ghaziabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"chisti_nagar","label":{"Urdu":"چشتی نگر","Roman Urdu":"Chisti Nagar","English":"Chisti Nagar"}},{"province":"sindh","city":"karachi","town":"orangi","name":"bilal_colony_orangi","label":{"Urdu":"بلال کالونی اورنگی","Roman Urdu":"Bilal Colony Orangi","English":"Bilal Colony Orangi"}},{"province":"sindh","city":"karachi","town":"orangi","name":"iqbal_baloch_colony","label":{"Urdu":"اقبال بلوچ کالونی","Roman Urdu":"Iqbal Baloch Colony","English":"Iqbal Baloch Colony"}},{"province":"sindh","city":"karachi","town":"orangi","name":"ghabool_town","label":{"Urdu":"گبول ٹاوَن","Roman Urdu":"Ghabool Town","English":"Ghabool Town"}},{"province":"sindh","city":"karachi","town":"orangi","name":"data_nagar","label":{"Urdu":"داتا نگر","Roman Urdu":"Data Nagar","English":"Data Nagar"}},{"province":"sindh","city":"karachi","town":"orangi","name":"mujahidabad","label":{"Urdu":"مجاہد آباد","Roman Urdu":"Mujahidabad","English":"Mujahidabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"baloch_goth","label":{"Urdu":"بلوچ گوٹھ","Roman Urdu":"Baloch Goth","English":"Baloch Goth"}},{"province":"sindh","city":"karachi","town":"saddar","name":"old_haji_camp","label":{"Urdu":"پرانہ حاجی کیمپ","Roman Urdu":"Old Haji Camp","English":"Old Haji Camp"}},{"province":"sindh","city":"karachi","town":"saddar","name":"garden","label":{"Urdu":"گارڈن","Roman Urdu":"Garden","English":"Garden"}},{"province":"sindh","city":"karachi","town":"saddar","name":"kharadar","label":{"Urdu":"کھارادر","Roman Urdu":"Kharadar","English":"Kharadar"}},{"province":"sindh","city":"karachi","town":"saddar","name":"city_railway_colony","label":{"Urdu":"سٹی ریلوے کالونی","Roman Urdu":"City Railway Colony","English":"City Railway Colony"}},{"province":"sindh","city":"karachi","town":"saddar","name":"nanak_wara","label":{"Urdu":"ناناک واڑا","Roman Urdu":"Nanak Wara","English":"Nanak Wara"}},{"province":"sindh","city":"karachi","town":"saddar","name":"gazdarabad","label":{"Urdu":"گزدرآباد","Roman Urdu":"Gazdarabad","English":"Gazdarabad"}},{"province":"sindh","city":"karachi","town":"saddar","name":"millat_nagar_islam_pura","label":{"Urdu":"ملت نگر اسلام پورا","Roman Urdu":"Millat Nagar/Islam Pura","English":"Millat Nagar/Islam Pura"}},{"province":"sindh","city":"karachi","town":"saddar","name":"saddar_uc","label":{"Urdu":"صدر یو سی","Roman Urdu":"Saddar UC","English":"Saddar UC"}},{"province":"sindh","city":"karachi","town":"saddar","name":"civil_line","label":{"Urdu":"سول لائن","Roman Urdu":"Civil Line","English":"Civil Line"}},{"province":"sindh","city":"karachi","town":"saddar","name":"clifton","label":{"Urdu":"کلفٹن","Roman Urdu":"Clifton","English":"Clifton"}},{"province":"sindh","city":"karachi","town":"saddar","name":"kehkashan","label":{"Urdu":"کہکشان","Roman Urdu":"Kehkashan","English":"Kehkashan"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"natha_khan_goth","label":{"Urdu":"ناتھا خان گوٹھ","Roman Urdu":"Natha Khan Goth","English":"Natha Khan Goth"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"pak_sadat_colony","label":{"Urdu":"پاک صدر کالونی","Roman Urdu":"Pak Sadat Colony","English":"Pak Sadat Colony"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"drigh_colony","label":{"Urdu":"ڈرگ کالونی","Roman Urdu":"Drigh Colony","English":"Drigh Colony"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"raita_plot","label":{"Urdu":"رائتا پلاٹ","Roman Urdu":"Raita Plot","English":"Raita Plot"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"moria_khan_goth","label":{"Urdu":"موریا خان گوٹھ","Roman Urdu":"Moria Khan Goth","English":"Moria Khan Goth"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"rafa_e_aam_society","label":{"Urdu":"رفا عام سوسا ئٹی","Roman Urdu":"Rafa-e-Aam Society","English":"Rafa-e-Aam Society"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"al_falah_society","label":{"Urdu":"الفلاح سوسا ئٹی","Roman Urdu":"Al-Falah Society","English":"Al-Falah Society"}},{"province":"sindh","city":"karachi","town":"site","name":"pak_colony","label":{"Urdu":"پاک کالونی","Roman Urdu":"Pak Colony","English":"Pak Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"old_golimar","label":{"Urdu":"پرانہ گولی مار","Roman Urdu":"Old Golimar","English":"Old Golimar"}},{"province":"sindh","city":"karachi","town":"site","name":"jahanabad","label":{"Urdu":"جہان آباد","Roman Urdu":"Jahanabad","English":"Jahanabad"}},{"province":"sindh","city":"karachi","town":"site","name":"metrovil","label":{"Urdu":"میٹروویل","Roman Urdu":"Metrovil","English":"Metrovil"}},{"province":"sindh","city":"karachi","town":"site","name":"bhawani_chali","label":{"Urdu":"بہوانی چالی","Roman Urdu":"Bhawani Chali","English":"Bhawani Chali"}},{"province":"sindh","city":"karachi","town":"site","name":"frontier_colony","label":{"Urdu":"فرونٹر کالونی","Roman Urdu":"Frontier Colony","English":"Frontier Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"banaras_colony","label":{"Urdu":"بنارس کالونی","Roman Urdu":"Banaras Colony","English":"Banaras Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"qasba_colony","label":{"Urdu":"قصبہ کالونی","Roman Urdu":"Qasba Colony","English":"Qasba Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"islamia_colony","label":{"Urdu":"اسلامیہ کالونی","Roman Urdu":"Islamia Colony","English":"Islamia Colony"}},{"province":"na","city":"na","town":"na","name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}},{"province":"na","city":"na","town":"na","name":"not_applicable","label":{"Urdu":"قابل اطلاق نہیں","Roman Urdu":"Qaabil-e-atlaaq nahi","English":"Not Applicable"}}],"gender":[{"instance":{"openmrs_code":"1534AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"male","label":{"Urdu":"مرد/ لڑکا","Roman Urdu":"Mard/larka","English":"Male"}},{"instance":{"openmrs_code":"1535AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"female","label":{"Urdu":"عورت/لڑکی","Roman Urdu":"Aurat/larki","English":"Female"}},{"instance":{"openmrs_code":"163163AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"transgender","label":{"Urdu":"خواجہ سرہ","Roman Urdu":"Khwaja sira","English":"Transgender"}}],"vaccines":[{"instance":{"openmrs_code":"1570AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"bcg","label":{"Urdu":"بی سی جی","Roman Urdu":"BCG","English":"BCG"}},{"instance":{"openmrs_code":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv0","label":{"Urdu":"او پی وی 0","Roman Urdu":"OPV 0","English":"OPV 0"}},{"instance":{"openmrs_code":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv1","label":{"Urdu":"پی سی وی 1","Roman Urdu":"PCV 1","English":"PCV 1"}},{"instance":{"openmrs_code":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv1","label":{"Urdu":"او پی وی 1","Roman Urdu":"OPV 1","English":"OPV 1"}},{"instance":{"openmrs_code":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta1","label":{"Urdu":"پینٹا ویلنٹ 1","Roman Urdu":"Pentavalent 1","English":"Pentavalent 1"}},{"instance":{"openmrs_code":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv2","label":{"Urdu":"پی سی وی 2","Roman Urdu":"PCV 2","English":"PCV 2"}},{"instance":{"openmrs_code":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv2","label":{"Urdu":"او پی وی 2","Roman Urdu":"OPV 2","English":"OPV 2"}},{"instance":{"openmrs_code":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta2","label":{"Urdu":"پینٹا ویلنٹ 2","Roman Urdu":"Pentavalent 2","English":"Pentavalent 2"}},{"instance":{"openmrs_code":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv3","label":{"Urdu":"پی سی وی 3","Roman Urdu":"PCV 3","English":"PCV 3"}},{"instance":{"openmrs_code":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv3","label":{"Urdu":"او پی وی 3","Roman Urdu":"OPV 3","English":"OPV 3"}},{"instance":{"openmrs_code":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta3","label":{"Urdu":"پینٹا ویلنٹ 3","Roman Urdu":"Pentavalent 3","English":"Pentavalent 3"}},{"instance":{"openmrs_code":"82242AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ipv","label":{"Urdu":"آئی پی وی","Roman Urdu":"IPV","English":"IPV"}},{"instance":{"openmrs_code":"79409AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"measles1","label":{"Urdu":"خسرہ 1","Roman Urdu":"Khasra 1","English":"Measles 1"}},{"instance":{"openmrs_code":"79409AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"measles2","label":{"Urdu":"خسرہ 2","Roman Urdu":"Khasra 2","English":"Measles 2"}}],"towns":[{"province":"sindh","city":"karachi","name":"korangi","label":{"Urdu":"کورنگی","Roman Urdu":"Korangi","English":"Korangi"}},{"province":"sindh","city":"karachi","name":"landhi","label":{"Urdu":"لانڈھی","Roman Urdu":"Landhi","English":"Landhi"}},{"province":"sindh","city":"karachi","name":"baldia","label":{"Urdu":"بلدیہ","Roman Urdu":"Baldia","English":"Baldia"}},{"province":"sindh","city":"karachi","name":"bin_qasim","label":{"Urdu":"بن قاسم","Roman Urdu":"Bin Qasim","English":"Bin Qasim"}},{"province":"sindh","city":"karachi","name":"gadap","label":{"Urdu":"گڈاپ","Roman Urdu":"Gadap","English":"Gadap"}},{"province":"sindh","city":"karachi","name":"gulberg","label":{"Urdu":"گلبرگ","Roman Urdu":"Gulberg","English":"Gulberg"}},{"province":"sindh","city":"karachi","name":"gulshan","label":{"Urdu":"گلشن","Roman Urdu":"Gulshan","English":"Gulshan"}},{"province":"sindh","city":"karachi","name":"jamshed","label":{"Urdu":"جمشید","Roman Urdu":"Jamshed","English":"Jamshed"}},{"province":"sindh","city":"karachi","name":"kiamari","label":{"Urdu":"کیماری","Roman Urdu":"Kiamari","English":"Kiamari"}},{"province":"sindh","city":"karachi","name":"liaquatabad","label":{"Urdu":"لیاقت آباد","Roman Urdu":"Liaquatabad","English":"Liaquatabad"}},{"province":"sindh","city":"karachi","name":"lyari","label":{"Urdu":"لیاری","Roman Urdu":"Lyari","English":"Lyari"}},{"province":"sindh","city":"karachi","name":"malir","label":{"Urdu":"ملیر","Roman Urdu":"Malir","English":"Malir"}},{"province":"sindh","city":"karachi","name":"new_karachi","label":{"Urdu":"نیو کراچی","Roman Urdu":"New Karachi","English":"New Karachi"}},{"province":"sindh","city":"karachi","name":"north_nazimabad","label":{"Urdu":"نارتھ ناظم آباد","Roman Urdu":"North Nazimabad","English":"North Nazimabad"}},{"province":"sindh","city":"karachi","name":"orangi","label":{"Urdu":"اورنگی","Roman Urdu":"Orangi","English":"Orangi"}},{"province":"sindh","city":"karachi","name":"saddar","label":{"Urdu":"صدر","Roman Urdu":"Saddar","English":"Saddar"}},{"province":"sindh","city":"karachi","name":"shah_faisal","label":{"Urdu":"شاہ فیصل","Roman Urdu":"Shah Faisal","English":"Shah Faisal"}},{"province":"sindh","city":"karachi","name":"site","label":{"Urdu":"سائٹ","Roman Urdu":"S.I.T.E.","English":"S.I.T.E."}},{"province":"na","city":"na","name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}},{"province":"na","city":"na","name":"not_applicable","label":{"Urdu":"قابل اطلاق نہیں","Roman Urdu":"Qaabil-e-atlaaq nahi","English":"Not Applicable"}}],"cities":[{"province":"sindh","name":"karachi","label":{"Urdu":"کراچی","Roman Urdu":"Karachi","English":"Karachi"}},{"province":"punjab","name":"hafizabad","label":{"Urdu":"حافظ آباد","Roman Urdu":"Hafizabad","English":"Hafizabad"}},{"province":"punjab","name":"muzaffargarh","label":{"Urdu":"مظفر گڑھ","Roman Urdu":"Muzaffargarh","English":"Muzaffargarh"}},{"province":"na","name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}},{"province":"na","name":"not_applicable","label":{"Urdu":"قابل اطلاق نہیں","Roman Urdu":"Qaabil-e-atlaaq nahi","English":"Not Applicable"}}],"yes_no":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}]},"instance":{"encounter_type":"Child Vaccination Followup"},"version":"201604260934","id_string":"child_vaccination_followup","type":"survey","children":[{"type":"hidden","name":"provider_uc"},{"type":"hidden","name":"provider_town"},{"type":"hidden","name":"provider_city"},{"type":"hidden","name":"provider_province"},{"type":"hidden","name":"existing_first_name"},{"type":"hidden","name":"existing_last_name"},{"type":"hidden","name":"existing_mother_name"},{"type":"hidden","name":"existing_gender"},{"type":"hidden","name":"existing_birth_date"},{"type":"hidden","name":"existing_client_reg_date"},{"type":"hidden","name":"existing_landmark"},{"type":"hidden","name":"existing_address1"},{"type":"hidden","name":"existing_union_council"},{"type":"hidden","name":"existing_town"},{"type":"hidden","name":"existing_city_village"},{"type":"hidden","name":"existing_province"},{"type":"hidden","name":"existing_union_councilname"},{"type":"hidden","name":"existing_townname"},{"type":"hidden","name":"existing_city_villagename"},{"type":"hidden","name":"existing_provincename"},{"type":"hidden","name":"existing_ethnicity"},{"type":"hidden","name":"existing_program_client_id"},{"type":"hidden","name":"existing_epi_card_number"},{"type":"hidden","name":"existing_child_was_suffering_from_a_disease_at_birth"},{"type":"hidden","name":"existing_reminders_approval"},{"type":"hidden","name":"existing_contact_phone_number"},{"type":"hidden","name":"e_bcg"},{"type":"hidden","name":"e_opv0"},{"type":"hidden","name":"e_penta2"},{"type":"hidden","name":"e_penta1"},{"type":"hidden","name":"e_penta3"},{"type":"hidden","name":"e_opv1"},{"type":"hidden","name":"e_opv2"},{"type":"hidden","name":"e_opv3"},{"type":"hidden","name":"e_pcv1"},{"type":"hidden","name":"e_pcv2"},{"type":"hidden","name":"e_pcv3"},{"type":"hidden","name":"e_ipv"},{"type":"hidden","name":"e_measles1"},{"type":"hidden","name":"e_measles2"},{"type":"hidden","name":"provider_id"},{"instance":{"openmrs_entity_id":"location_id","openmrs_entity":"encounter"},"type":"hidden","name":"provider_location_id"},{"type":"hidden","name":"provider_location_name"},{"type":"note","name":"provider_location_note","label":{"Urdu":"شہر: ${provider_city} ; ٹائون: ${provider_town} ; یوسی: ${provider_uc} ; سینٹرکا نام: ${provider_location_name}","English":"City: ${provider_city} ; Town: ${provider_town} ; UC: ${provider_uc} ; Center Name: ${provider_location_name}","Roman Urdu":"Shehr: ${provider_city} ; Town: ${provider_town} ; UC: ${provider_uc} ; Center ka Naam: ${provider_location_name}"}},{"instance":{"openmrs_entity_id":"163137AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"start","name":"start"},{"instance":{"openmrs_entity_id":"163138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"end","name":"end"},{"instance":{"openmrs_entity_id":"163286AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"today","name":"today"},{"instance":{"openmrs_entity_id":"163149AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"deviceid","name":"deviceid"},{"instance":{"openmrs_entity_id":"163150AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"subscriberid","name":"subscriberid"},{"instance":{"openmrs_entity_id":"163151AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"simserial","name":"simserial"},{"instance":{"openmrs_entity_id":"163152AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"phonenumber","name":"phonenumber"},{"bind":{"required":"yes"},"label":{"Urdu":"پروگرام میں اندراج کی تاریخ: ${existing_client_reg_date}","Roman Urdu":"Program mai andraj ki tareekh: ${existing_client_reg_date}","English":"Program Registration date: ${existing_client_reg_date}"},"type":"note","name":"existing_client_reg_date_note","hint":{"Urdu":"بچے کو ویکسین لگنے کی تاریخ","Roman Urdu":"Bachay ko vaccine lagnay ki tareekh","English":"Date on which child was vaccinated"}},{"bind":{"required":"yes"},"type":"note","name":"program_client_id_note","label":{"Urdu":"پروگرام آئی ڈی: ${existing_program_client_id}","Roman Urdu":"Program ID: ${existing_program_client_id}","English":"Program ID: ${existing_program_client_id}"}},{"bind":{"required":"yes"},"type":"note","instance":{"openmrs_entity_id":"EPI Card Number","openmrs_entity":"person_attribute"},"name":"epi_card_number_note","label":{"Urdu":"ای پی آئی کارڈ نمبر: ${existing_epi_card_number}","English":"EPI Card Number: ${existing_epi_card_number}","Roman Urdu":"EPI Card Number: ${existing_epi_card_number}"}},{"bind":{"required":"yes"},"type":"note","name":"first_name_note","label":{"Urdu":"نام: ${existing_first_name}","Roman Urdu":"Naam: ${existing_first_name}","English":"First Name: ${existing_first_name}"}},{"bind":{"required":"yes"},"type":"note","name":"last_name_note","label":{"Urdu":"والد کا نام: ${existing_last_name}","Roman Urdu":"Waalid ka naam: ${existing_last_name}","English":"Last name: ${existing_last_name}"}},{"bind":{"calculate":"int((${today} - ${existing_birth_date}) div 30.42)"},"type":"calculate","name":"child_age","instance":{"openmrs_entity_id":"154384AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"type":"note","name":"calc_dob_note","label":{"Urdu":"بچے کی تاریخ پیدائش: ${existing_birth_date} (${child_age}) مہینے","English":"Child Date of Birth: ${existing_birth_date} (${child_age}) months","Roman Urdu":"Bachay ki tareekh-e-paidaish: ${existing_birth_date} (${child_age}) mahinay"}},{"bind":{"required":"yes"},"type":"note","name":"gender_note","label":{"Urdu":"جنس: ${existing_gender}","Roman Urdu":"Jins:${existing_gender}","English":"Gender: ${existing_gender}"}},{"type":"note","name":"mother_name_note","label":{"Urdu":"ماں کا نام: ${existing_mother_name}","English":"Mother's Name: ${existing_mother_name}","Roman Urdu":"Maa ka naam: ${existing_mother_name}"}},{"bind":{"required":"yes"},"type":"note","name":"exisiting_ethnicity_note","label":{"Urdu":"قومیت: ${existing_ethnicity}","Roman Urdu":"Qomiat: ${existing_ethnicity}","English":"Ethnicity: ${existing_ethnicity}"}},{"type":"note","name":"address","label":{"Urdu":"موجودہ پتہ: ${existing_address1}, ${existing_landmark}, ${existing_union_councilname}, ${existing_townname}, ${existing_city_villagename}, ${existing_provincename}","English":"Current Address: ${existing_address1}, ${existing_landmark}, ${existing_union_councilname}, ${existing_townname}, ${existing_city_villagename}, ${existing_provincename}","Roman Urdu":"Mojooda Address: ${existing_address1}, ${existing_landmark}, ${existing_union_councilname}, ${existing_townname}, ${existing_city_villagename}, ${existing_provincename}"}},{"label":{"Urdu":"کیا آپ کا گھر کا پتہ بدلا ہے؟","English":"Has your home address changed?","Roman Urdu":"Kya aap ka ghar ka pata badla hai?"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}],"name":"address_change"},{"control":{"appearance":"minimal"},"name":"province","default":"${provider_province}","bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"label":{"Urdu":"صوبہ","Roman Urdu":"Suba","English":"Province"},"instance":{"openmrs_entity":"person_address","openmrs_entity_id":"stateProvince","openmrs_entity_parent":"usual_residence"},"type":"select one","children":[{"name":"kpk","label":{"Urdu":"خیبر پختون خواہ","English":"Khyber Pakhtunkhwa","Roman Urdu":"Khyber Pakhtunkhwa"}},{"name":"sindh","label":{"Urdu":"سندھ","English":"Sindh","Roman Urdu":"Sindh"}},{"name":"balochistan","label":{"Urdu":"بلوچستان","English":"Balochistan","Roman Urdu":"Balochistan"}},{"name":"punjab","label":{"Urdu":"پنجاب","English":"Punjab","Roman Urdu":"Punjab"}},{"name":"gilgit_baltistan","label":{"Urdu":"گلگت بلتستان","English":"Gilgit Baltistan","Roman Urdu":"Gilgit Baltistan"}},{"name":"kashmir","label":{"Urdu":"کشمیر","English":"Kashmir","Roman Urdu":"Kashmir"}},{"name":"fata","label":{"Urdu":"فاٹا","English":"FATA","Roman Urdu":"FATA"}},{"name":"out_of_country","label":{"Urdu":"ملک سے باہر","English":"Out of Country","Roman Urdu":"Out of Country"}}]},{"control":{"appearance":"minimal"},"name":"city_village","choice_filter":"province=${province} or province='na'","default":"${provider_city}","bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"label":{"Urdu":"شہر","Roman Urdu":"Shehr","English":"City"},"itemset":"cities","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"cityVillage","openmrs_entity_parent":"usual_residence"},"type":"select one"},{"control":{"appearance":"minimal"},"name":"town","choice_filter":"(province=${province} and city=${city_village} ) or city='na'","bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"label":{"Urdu":"ٹاٰئون/ قصبہ/ بستی","Roman Urdu":"Town / Qasbah / Basti","English":"Town"},"itemset":"towns","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"town","openmrs_entity_parent":"usual_residence"},"type":"select one"},{"control":{"appearance":"minimal"},"name":"union_council","choice_filter":"(province=${province} and city=${city_village} and town=${town}) or town='na'","bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"label":{"Urdu":"یونین کونسل","Roman Urdu":"Union Council","English":"Union Council"},"itemset":"ucs","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"subTown","openmrs_entity_parent":"usual_residence"},"type":"select one"},{"bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"type":"text","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"address1","openmrs_entity_parent":"usual_residence"},"name":"address1","label":{"Urdu":"گھر کا پتہ","Roman Urdu":"Ghar ka pata","English":"Home Address"}},{"bind":{"relevant":"selected(${address_change}, 'yes')"},"type":"text","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"landmark","openmrs_entity_parent":"usual_residence"},"name":"landmark","label":{"Urdu":"گھر کے قریب کوئی مشہور جگہ","Roman Urdu":"Ghar ke qareeb koi mashoor jagah","English":"Land Mark"}},{"instance":{"openmrs_entity_id":"163277AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"geopoint","name":"center_gps","label":{"Urdu":"حاصل کردہ معلومات کی جگہ کے GPS کارڈینیٹس درج کریں","English":"Collect GPS coordinates of data entry location:","Roman Urdu":"Hasil karda malomaat ki jaga ke GPS coordinates darj karain"}},{"bind":{"required":"yes"},"type":"note","name":"child_was_suffering_from_a_disease_at_birth_note","label":{"Urdu":"کیا بچہ پیدائش کے وقت کسی مرض میں مبتلا تھا؟ ${existing_child_was_suffering_from_a_disease_at_birth}","Roman Urdu":"Kya bacha pedaaish k waqt kissi marz mai mubtila tha? ${existing_child_was_suffering_from_a_disease_at_birth}","English":"Child was suffering from a disease at birth: ${existing_child_was_suffering_from_a_disease_at_birth}"}},{"instance":{"openmrs_entity_id":"163162AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"text","name":"aefi","label":{"Urdu":"حفاظتی ٹیکوں کے مضر اثرات","English":"Temporary side-effects of immunization shots","Roman Urdu":"Hifazati teekon ke muzr asraat"}},{"name":"reminders_approval","bind":{"required":"yes"},"label":{"Urdu":"کیا آپ اپنے بچے کی اگلی ویکسین کی تاریخ کے لیے SMS موصول کرنا چاہتے ہیں؟ ${existing_reminders_approval}","English":"Are you willing to receive SMS reminders for your next visit? ${existing_reminders_approval}","Roman Urdu":"Kya aap apnay bachay ki agli vaccine ki tareekh ke liye SMS mausool karna chahtay hain? ${existing_reminders_approval}"},"instance":{"openmrs_entity_id":"163089AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}]},{"bind":{"jr:constraintMsg":{"Urdu":"فون نمبر گیارہ ہندسوں پر مشتمل اور مندرجہ ذیل شکل میں ہونا چاہئے: *********03","English":"Phone number should be 11 digits in the following format: 03*********","Roman Urdu":"Phone number 11 hindason par mushtamil aur mundarja zail shakal main hona chahiey: 03*********"},"relevant":"${reminders_approval}='yes'","constraint":"regex(., '^03[0-9]{9}$')"},"type":"text","instance":{"openmrs_entity_id":"159635AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"contact_phone_number","label":{"Urdu":"موبائل نمبر: ${existing_contact_phone_number}","English":"Mobile Number: ${existing_contact_phone_number}","Roman Urdu":"Mobile Number: ${existing_contact_phone_number}"}},{"bind":{"calculate":"${existing_birth_date} + 42"},"type":"calculate","name":"six_weeks"},{"bind":{"calculate":"${existing_birth_date} + 70"},"type":"calculate","name":"ten_weeks"},{"bind":{"calculate":"${existing_birth_date} + 98"},"type":"calculate","name":"forteen_weeks"},{"bind":{"calculate":"${existing_birth_date} + 245"},"type":"calculate","name":"nine_months"},{"bind":{"calculate":"${existing_birth_date} + 458"},"type":"calculate","name":"fifteen_months"},{"bind":{"relevant":"${e_bcg} != ''"},"type":"note","name":"bcg_note","label":{"Urdu":"${e_bcg}","Roman Urdu":"${e_bcg}","English":"${e_bcg}"}},{"bind":{"relevant":"${e_opv0} != ''"},"type":"note","name":"opv0_note","label":{"Urdu":"${e_opv0}","Roman Urdu":"${e_opv0}","English":"${e_opv0}"}},{"bind":{"relevant":"${e_penta2} != ''"},"type":"note","name":"opv1_note","label":{"Urdu":"${e_penta2}","Roman Urdu":"${e_penta2}","English":"${e_penta2}"}},{"bind":{"relevant":"${e_penta1} != ''"},"type":"note","name":"pcv1_note","label":{"Urdu":"${e_penta1}","Roman Urdu":"${e_penta1}","English":"${e_penta1}"}},{"bind":{"relevant":"${e_penta3} != ''"},"type":"note","name":"penta1_note","label":{"Urdu":"${e_penta3}","Roman Urdu":"${e_penta3}","English":"${e_penta3}"}},{"bind":{"relevant":"${e_opv1} != ''"},"type":"note","name":"opv2_note","label":{"Urdu":"${e_opv1}","Roman Urdu":"${e_opv1}","English":"${e_opv1}"}},{"bind":{"relevant":"${e_opv2} != ''"},"type":"note","name":"pcv2_note","label":{"Urdu":"${e_opv2}","Roman Urdu":"${e_opv2}","English":"${e_opv2}"}},{"bind":{"relevant":"${e_opv3} != ''"},"type":"note","name":"penta2_note","label":{"Urdu":"${e_opv3}","Roman Urdu":"${e_opv3}","English":"${e_opv3}"}},{"bind":{"relevant":"${e_pcv1} != ''"},"type":"note","name":"opv3_note","label":{"Urdu":"${e_pcv1}","Roman Urdu":"${e_pcv1}","English":"${e_pcv1}"}},{"bind":{"relevant":"${e_pcv2} != ''"},"type":"note","name":"pcv3_note","label":{"Urdu":"${e_pcv2}","Roman Urdu":"${e_pcv2}","English":"${e_pcv2}"}},{"bind":{"relevant":"${e_pcv3} != ''"},"type":"note","name":"penta3_note","label":{"Urdu":"${e_pcv3}","Roman Urdu":"${e_pcv3}","English":"${e_pcv3}"}},{"bind":{"relevant":"${e_ipv} != ''"},"type":"note","name":"ipv_note","label":{"Urdu":"${e_ipv}","Roman Urdu":"${e_ipv}","English":"${e_ipv}"}},{"bind":{"relevant":"${e_measles1} != ''"},"type":"note","name":"measles1_note","label":{"Urdu":"${e_measles1}","Roman Urdu":"${e_measles1}","English":"${e_measles1}"}},{"bind":{"relevant":"${e_measles2} != ''"},"type":"note","name":"measles2_note","label":{"Urdu":"${e_measles2}","Roman Urdu":"${e_measles2}","English":"${e_measles2}"}},{"control":{"appearance":"minimal"},"name":"vaccines","choice_filter":"name != if( ${e_bcg} != '', 'bcg' , '') and \nname != if( ${e_opv0} != '', 'opv0' , '') and \nname != if( ${e_penta1} != '', 'penta1' , '') and \nname != if( ${e_penta2} != '', 'penta2' , '') and \nname != if( ${e_penta3} != '', 'penta3' , '') and \nname != if( ${e_opv1} != '', 'opv1' , '') and \nname != if( ${e_opv2} != '', 'opv2' , '') and \nname != if( ${e_opv3} != '', 'opv3' , '') and \nname != if( ${e_pcv1} != '', 'pcv1' , '') and \nname != if( ${e_pcv2} != '', 'pcv2' , '') and \nname != if( ${e_pcv3} != '', 'pcv3' , '') and \nname != if( ${e_ipv} != '', 'ipv' , '') and \nname != if( ${e_measles1} != '', 'measles1' , '') and \nname != if( ${e_measles2} != '', 'measles2' , '')","label":{"Urdu":"پچھلی تاریخ جب کسی اور سینٹر پر ٹیکے لگواِے گیے یا قطرے پلائے گئے","Roman Urdu":"Pichli tareekh jab kissi aur center par teekay lagwaye gaye ya katray pilaey gaye","English":"Retro vaccines"},"itemset":"vaccines","instance":{"openmrs_entity":"concept","openmrs_entity_id":"984AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1421AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"select all that apply"},{"type":"group","children":[{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'bcg')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"886AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"bcg_retro","label":{"Urdu":"بی سی جی","Roman Urdu":"BCG","English":"BCG"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'opv0')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv0_retro","label":{"Urdu":"او پی وی 0","Roman Urdu":"OPV 0","English":"OPV 0"}},{"bind":{"relevant":"selected(${vaccines}, 'opv0')","calculate":"0"},"type":"calculate","name":"opv0_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'pcv1')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv1_retro","label":{"Urdu":"پی سی وی 1","Roman Urdu":"PCV1","English":"PCV1"}},{"bind":{"relevant":"selected(${vaccines}, 'pcv1')","calculate":"1"},"type":"calculate","name":"pcv1_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'opv1')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv1_retro","label":{"Urdu":"او پی وی1","Roman Urdu":"OPV 1","English":"OPV 1"}},{"bind":{"relevant":"selected(${vaccines}, 'opv1')","calculate":"1"},"type":"calculate","name":"opv1_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'penta1')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta1_retro","label":{"Urdu":"پینٹا ویلنٹ 1","Roman Urdu":"Pentavalent 1","English":"Pentavalent 1"}},{"bind":{"relevant":"selected(${vaccines}, 'penta1')","calculate":"1"},"type":"calculate","name":"penta1_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'pcv2')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv2_retro","label":{"Urdu":"پی سی وی 2","Roman Urdu":"PCV2","English":"PCV2"}},{"bind":{"relevant":"selected(${vaccines}, 'pcv2')","calculate":"2"},"type":"calculate","name":"pcv2_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'opv2')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv2_retro","label":{"Urdu":"او پی وی 2","Roman Urdu":"OPV 2","English":"OPV 2"}},{"bind":{"relevant":"selected(${vaccines}, 'opv2')","calculate":"2"},"type":"calculate","name":"opv2_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'penta2')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta2_retro","label":{"Urdu":"پینٹا ویلنٹ 2","Roman Urdu":"Pentavalent 2","English":"Pentavalent 2"}},{"bind":{"relevant":"selected(${vaccines}, 'penta2')","calculate":"2"},"type":"calculate","name":"penta2_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'pcv3')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv3_retro","label":{"Urdu":"پی سی وی 3","Roman Urdu":"PCV3","English":"PCV3"}},{"bind":{"relevant":"selected(${vaccines}, 'penta2')","calculate":"3"},"type":"calculate","name":"pcv3_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'opv3')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv3_retro","label":{"Urdu":"او پی وی3","Roman Urdu":"OPV 3","English":"OPV 3"}},{"bind":{"relevant":"selected(${vaccines}, 'opv3')","calculate":"3"},"type":"calculate","name":"opv3_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'penta3')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta3_retro","label":{"Urdu":"پینٹا ویلنٹ 3","Roman Urdu":"Pentavalent 3","English":"Pentavalent 3"}},{"bind":{"relevant":"selected(${vaccines}, 'penta3')","calculate":"3"},"type":"calculate","name":"penta3_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'ipv')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1422AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ipv_retro","label":{"Urdu":"آئی پی وی","Roman Urdu":"IPV","English":"IPV"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'measles1')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"measles1_retro","label":{"Urdu":"خسرہ 1","Roman Urdu":"Measles 1","English":"Measles 1"}},{"bind":{"relevant":"selected(${vaccines}, 'measles1')","calculate":"1"},"type":"calculate","name":"measles1_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'measles2')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"measles2_retro","label":{"Urdu":"خسرہ 2","Roman Urdu":"Measles2","English":"Measles2"}},{"bind":{"relevant":"selected(${vaccines}, 'measles2')","calculate":"2"},"type":"calculate","name":"measles2_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}}],"name":"vaccines_group"},{"control":{"appearance":"minimal"},"name":"vaccines_2","choice_filter":"name != if( ${e_bcg} != '', 'bcg' , '') and \nname != if( ${e_opv0} != '', 'opv0' , '') and \nname != if( ${e_penta2} != '', 'penta2' , '') and \nname != if( ${e_penta1} != '', 'penta1' , '') and \nname != if( ${e_penta3} != '', 'penta3' , '') and \nname != if( ${e_opv1} != '', 'opv1' , '') and \nname != if( ${e_opv2} != '', 'opv2' , '') and \nname != if( ${e_opv3} != '', 'opv3' , '') and \nname != if( ${e_pcv1} != '', 'pcv1' , '') and \nname != if( ${e_pcv2} != '', 'pcv2' , '') and \nname != if( ${e_pcv3} != '', 'pcv3' , '') and \nname != if( ${e_measles1} != '', 'measles1' , '') and \nname != if( ${e_measles2} != '', 'measles2' , '') and \nname != if(selected(${vaccines}, 'bcg'), 'bcg', '') and \nname != if(selected(${vaccines}, 'opv0'), 'opv0', '') and \nname != if(selected(${vaccines}, 'penta1'), 'penta1', '') and \nname != if(selected(${vaccines}, 'opv1'), 'opv1', '') and \nname != if(selected(${vaccines}, 'pcv1'), 'pcv1', '') and \nname != if(selected(${vaccines}, 'penta2'), 'penta2', '') and \nname != if(selected(${vaccines}, 'opv2'), 'opv2', '') and \nname != if(selected(${vaccines}, 'pcv2'), 'pcv2', '') and \nname != if(selected(${vaccines}, 'penta3'), 'penta3', '') and \nname != if(selected(${vaccines}, 'opv3'), 'opv3', '') and \nname != if(selected(${vaccines}, 'pcv3'), 'pcv3', '') and\nname != if(selected(${vaccines}, 'ipv'), 'ipv', '') and \nname != if(selected(${vaccines}, 'measles1'), 'measles1', '') and \nname != if(selected(${vaccines}, 'measles2'), 'measles2', '')","bind":{"required":"yes","constraint":"if(selected(${vaccines_2}, 'bcg') or selected(${vaccines_2}, 'opv0') , .>= ${existing_birth_date} and .<=${today}, if(selected(${vaccines_2}, 'opv1') or selected(${vaccines_2}, 'penta1'), .>= ${six_weeks} and .<=${today}, if(selected(${vaccines_2}, 'opv2') or selected(${vaccines_2}, 'penta2'), .>=${ten_weeks} and .<=${today}, if(selected(${vaccines_2}, 'opv3') or selected(${vaccines_2}, 'penta3'), .>=${forteen_weeks} and .<=${today}, if(selected(${vaccines_2}, 'measles1'), .>=${nine_months} and .<=${today}, if(selected(${vaccines_2}, 'measles2'), .>= ${fifteen_months} and .<=${today}))))))"},"label":{"Urdu":"آج کون کون سی ویکسین دی گئی ہیں؟","Roman Urdu":"Aaj kon kon si vaccine di gai hain?","English":"Vaccines administered"},"itemset":"vaccines","instance":{"openmrs_entity":"concept","openmrs_entity_id":"984AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1441AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"select all that apply"},{"name":"vaccination_date","default":"${today}","bind":{"required":"yes","constraint":"if(selected(${vaccines_2}, 'bcg') or selected(${vaccines_2}, 'opv0') , .>= ${existing_birth_date} and .<=${today}, if(selected(${vaccines_2}, 'opv1') or selected(${vaccines_2}, 'penta1'), .>= ${six_weeks} and .<=${today}, if(selected(${vaccines_2}, 'opv2') or selected(${vaccines_2}, 'penta2'), .>=${ten_weeks} and .<=${today}, if(selected(${vaccines_2}, 'opv3') or selected(${vaccines_2}, 'penta3'), .>=${forteen_weeks} and .<=${today}, if(selected(${vaccines_2}, 'measles1'), .>=${nine_months} and .<=${today}, if(selected(${vaccines_2}, 'measles2'), .>= ${fifteen_months} and .<=${today}))))))"},"label":{"Urdu":"تاریخ","English":"Vaccination date","Roman Urdu":"Tareekh"},"instance":{"openmrs_entity_id":"encounter_date","openmrs_entity":"encounter"},"type":"date"},{"bind":{"calculate":"if(selected(${vaccines_2}, 'bcg'),${vaccination_date},'')"},"type":"calculate","name":"bcg","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"886AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'opv0'),${vaccination_date},'')"},"type":"calculate","name":"opv0","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'opv0')","calculate":"0"},"type":"calculate","name":"opv0_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'pcv1'),${vaccination_date},'')"},"type":"calculate","name":"pcv1","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'pcv1')","calculate":"1"},"type":"calculate","name":"pcv1_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'opv1'),${vaccination_date},'')"},"type":"calculate","name":"opv1","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'opv1')","calculate":"1"},"type":"calculate","name":"opv1_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'penta1'),${vaccination_date},'')"},"type":"calculate","name":"penta1","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'penta1')","calculate":"1"},"type":"calculate","name":"penta1_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'pcv2'),${vaccination_date},'')"},"type":"calculate","name":"pcv2","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'pcv2')","calculate":"2"},"type":"calculate","name":"pcv2_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'opv2'),${vaccination_date},'')"},"type":"calculate","name":"opv2","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'opv2')","calculate":"2"},"type":"calculate","name":"opv2_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'penta2'),${vaccination_date},'')"},"type":"calculate","name":"penta2","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'penta2')","calculate":"2"},"type":"calculate","name":"penta2_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'pcv3'),${vaccination_date},'')"},"type":"calculate","name":"pcv3","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'pcv3')","calculate":"3"},"type":"calculate","name":"pcv3_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'opv3'),${vaccination_date},'')"},"type":"calculate","name":"opv3","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'opv3')","calculate":"3"},"type":"calculate","name":"opv3_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'penta3'),${vaccination_date},'')"},"type":"calculate","name":"penta3","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'penta3')","calculate":"3"},"type":"calculate","name":"penta3_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines}, 'ipv')","calculate":"if(selected(${vaccines_2}, 'ipv'),${vaccination_date},'')"},"type":"calculate","name":"ipv","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1422AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'measles1'),${vaccination_date},'')"},"type":"calculate","name":"measles1","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'measles1')","calculate":"1"},"type":"calculate","name":"measles1_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'measles2'),${vaccination_date},'')"},"type":"calculate","name":"measles2","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'measles2')","calculate":"2"},"type":"calculate","name":"measles2_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"control":{"bodyless":true},"type":"group","children":[{"bind":{"readonly":"true()","calculate":"concat('uuid:', uuid())"},"type":"calculate","name":"instanceID"}],"name":"meta"}]} \ No newline at end of file diff --git a/opensrp-register/src/test/resources/form/child_followup/form.xml b/opensrp-register/src/test/resources/form/child_followup/form.xml deleted file mode 100644 index 0aef19d800..0000000000 --- a/opensrp-register/src/test/resources/form/child_followup/form.xml +++ /dev/null @@ -1,1689 +0,0 @@ -
- - -

بچّوں کا فالو اپ رجسٹر برائے ٹیکاجات - Child Follow Up Vaccination Register

-
-
- - کیا آپ کا گھر کا پتہ بدلا ہے؟ - Has your home address changed? - - Kya aap ka ghar ka pata badla hai? -
- - -
-
-
-
- - کیا آپ اپنے بچے کی اگلی ویکسین کی تاریخ کے لیے SMS موصول کرنا چاہتے ہیں؟ - - Are you willing to receive SMS reminders for your next visit? - - - Kya aap apnay bachay ki agli vaccine ki tareekh ke liye SMS mausool karna chahtay hain? - - * -
- - -
-
-
- - - - - - - - - - - - - -
- - -
diff --git a/opensrp-register/src/test/resources/form/child_followup/form_definition.json b/opensrp-register/src/test/resources/form/child_followup/form_definition.json deleted file mode 100644 index 5b5743183f..0000000000 --- a/opensrp-register/src/test/resources/form/child_followup/form_definition.json +++ /dev/null @@ -1,459 +0,0 @@ -{ - "form_data_definition_version" : "1", - "form" : { - "bind_type" : "pkchild", - "default_bind_path" : "/model/instance/Child_Vaccination_Followup/", - "fields" : [ { - "name" : "id", - "shouldLoadValue" : true - }, { - "name" : "provider_uc", - "bind" : "/model/instance/Child_Vaccination_Followup/provider_uc", - "shouldLoadValue" : true - }, { - "name" : "provider_town", - "bind" : "/model/instance/Child_Vaccination_Followup/provider_town", - "shouldLoadValue" : true - }, { - "name" : "provider_city", - "bind" : "/model/instance/Child_Vaccination_Followup/provider_city", - "shouldLoadValue" : true - }, { - "name" : "provider_province", - "bind" : "/model/instance/Child_Vaccination_Followup/provider_province", - "shouldLoadValue" : true - }, { - "name" : "existing_first_name", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_first_name", - "shouldLoadValue" : true - }, { - "name" : "existing_last_name", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_last_name", - "shouldLoadValue" : true - }, { - "name" : "existing_mother_name", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_mother_name", - "shouldLoadValue" : true - }, { - "name" : "existing_gender", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_gender", - "shouldLoadValue" : true - }, { - "name" : "existing_birth_date", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_birth_date", - "shouldLoadValue" : true - }, { - "name" : "existing_client_reg_date", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_client_reg_date", - "shouldLoadValue" : true - }, { - "name" : "existing_landmark", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_landmark", - "shouldLoadValue" : true - }, { - "name" : "existing_address1", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_address1", - "shouldLoadValue" : true - }, { - "name" : "existing_union_council", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_union_council", - "shouldLoadValue" : true - }, { - "name" : "existing_town", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_town", - "shouldLoadValue" : true - }, { - "name" : "existing_city_village", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_city_village", - "shouldLoadValue" : true - }, { - "name" : "existing_province", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_province", - "shouldLoadValue" : true - }, { - "name" : "existing_union_councilname", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_union_councilname", - "shouldLoadValue" : true - }, { - "name" : "existing_townname", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_townname", - "shouldLoadValue" : true - }, { - "name" : "existing_city_villagename", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_city_villagename", - "shouldLoadValue" : true - }, { - "name" : "existing_provincename", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_provincename", - "shouldLoadValue" : true - }, { - "name" : "existing_ethnicity", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_ethnicity", - "shouldLoadValue" : true - }, { - "name" : "existing_program_client_id", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_program_client_id", - "shouldLoadValue" : true - }, { - "name" : "existing_epi_card_number", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_epi_card_number", - "shouldLoadValue" : true - }, { - "name" : "existing_child_was_suffering_from_a_disease_at_birth", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_child_was_suffering_from_a_disease_at_birth", - "shouldLoadValue" : true - }, { - "name" : "existing_reminders_approval", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_reminders_approval", - "shouldLoadValue" : true - }, { - "name" : "existing_contact_phone_number", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_contact_phone_number", - "shouldLoadValue" : true - }, { - "name" : "e_bcg", - "bind" : "/model/instance/Child_Vaccination_Followup/e_bcg", - "shouldLoadValue" : true - }, { - "name" : "e_opv0", - "bind" : "/model/instance/Child_Vaccination_Followup/e_opv0", - "shouldLoadValue" : true - }, { - "name" : "e_penta2", - "bind" : "/model/instance/Child_Vaccination_Followup/e_penta2", - "shouldLoadValue" : true - }, { - "name" : "e_penta1", - "bind" : "/model/instance/Child_Vaccination_Followup/e_penta1", - "shouldLoadValue" : true - }, { - "name" : "e_penta3", - "bind" : "/model/instance/Child_Vaccination_Followup/e_penta3", - "shouldLoadValue" : true - }, { - "name" : "e_opv1", - "bind" : "/model/instance/Child_Vaccination_Followup/e_opv1", - "shouldLoadValue" : true - }, { - "name" : "e_opv2", - "bind" : "/model/instance/Child_Vaccination_Followup/e_opv2", - "shouldLoadValue" : true - }, { - "name" : "e_opv3", - "bind" : "/model/instance/Child_Vaccination_Followup/e_opv3", - "shouldLoadValue" : true - }, { - "name" : "e_pcv1", - "bind" : "/model/instance/Child_Vaccination_Followup/e_pcv1", - "shouldLoadValue" : true - }, { - "name" : "e_pcv2", - "bind" : "/model/instance/Child_Vaccination_Followup/e_pcv2", - "shouldLoadValue" : true - }, { - "name" : "e_pcv3", - "bind" : "/model/instance/Child_Vaccination_Followup/e_pcv3", - "shouldLoadValue" : true - }, { - "name" : "e_ipv", - "bind" : "/model/instance/Child_Vaccination_Followup/e_ipv", - "shouldLoadValue" : true - }, { - "name" : "e_measles1", - "bind" : "/model/instance/Child_Vaccination_Followup/e_measles1", - "shouldLoadValue" : true - }, { - "name" : "e_measles2", - "bind" : "/model/instance/Child_Vaccination_Followup/e_measles2", - "shouldLoadValue" : true - }, { - "name" : "provider_id", - "bind" : "/model/instance/Child_Vaccination_Followup/provider_id", - "shouldLoadValue" : true - }, { - "name" : "provider_location_id", - "bind" : "/model/instance/Child_Vaccination_Followup/provider_location_id", - "shouldLoadValue" : true - }, { - "name" : "provider_location_name", - "bind" : "/model/instance/Child_Vaccination_Followup/provider_location_name", - "shouldLoadValue" : true - }, { - "name" : "provider_location_note", - "bind" : "/model/instance/Child_Vaccination_Followup/provider_location_note" - }, { - "name" : "start", - "bind" : "/model/instance/Child_Vaccination_Followup/start" - }, { - "name" : "end", - "bind" : "/model/instance/Child_Vaccination_Followup/end" - }, { - "name" : "today", - "bind" : "/model/instance/Child_Vaccination_Followup/today" - }, { - "name" : "deviceid", - "bind" : "/model/instance/Child_Vaccination_Followup/deviceid" - }, { - "name" : "subscriberid", - "bind" : "/model/instance/Child_Vaccination_Followup/subscriberid" - }, { - "name" : "simserial", - "bind" : "/model/instance/Child_Vaccination_Followup/simserial" - }, { - "name" : "phonenumber", - "bind" : "/model/instance/Child_Vaccination_Followup/phonenumber" - }, { - "name" : "existing_client_reg_date_note", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_client_reg_date_note" - }, { - "name" : "program_client_id_note", - "bind" : "/model/instance/Child_Vaccination_Followup/program_client_id_note" - }, { - "name" : "epi_card_number_note", - "bind" : "/model/instance/Child_Vaccination_Followup/epi_card_number_note" - }, { - "name" : "first_name_note", - "bind" : "/model/instance/Child_Vaccination_Followup/first_name_note" - }, { - "name" : "last_name_note", - "bind" : "/model/instance/Child_Vaccination_Followup/last_name_note" - }, { - "name" : "child_age", - "bind" : "/model/instance/Child_Vaccination_Followup/child_age" - }, { - "name" : "calc_dob_note", - "bind" : "/model/instance/Child_Vaccination_Followup/calc_dob_note" - }, { - "name" : "gender_note", - "bind" : "/model/instance/Child_Vaccination_Followup/gender_note" - }, { - "name" : "mother_name_note", - "bind" : "/model/instance/Child_Vaccination_Followup/mother_name_note" - }, { - "name" : "exisiting_ethnicity_note", - "bind" : "/model/instance/Child_Vaccination_Followup/exisiting_ethnicity_note" - }, { - "name" : "address", - "bind" : "/model/instance/Child_Vaccination_Followup/address" - }, { - "name" : "address_change", - "bind" : "/model/instance/Child_Vaccination_Followup/address_change" - }, { - "name" : "province", - "bind" : "/model/instance/Child_Vaccination_Followup/province" - }, { - "name" : "city_village", - "bind" : "/model/instance/Child_Vaccination_Followup/city_village" - }, { - "name" : "town", - "bind" : "/model/instance/Child_Vaccination_Followup/town" - }, { - "name" : "union_council", - "bind" : "/model/instance/Child_Vaccination_Followup/union_council" - }, { - "name" : "address1", - "bind" : "/model/instance/Child_Vaccination_Followup/address1" - }, { - "name" : "landmark", - "bind" : "/model/instance/Child_Vaccination_Followup/landmark" - }, { - "name" : "center_gps", - "bind" : "/model/instance/Child_Vaccination_Followup/center_gps" - }, { - "name" : "child_was_suffering_from_a_disease_at_birth_note", - "bind" : "/model/instance/Child_Vaccination_Followup/child_was_suffering_from_a_disease_at_birth_note" - }, { - "name" : "aefi", - "bind" : "/model/instance/Child_Vaccination_Followup/aefi" - }, { - "name" : "reminders_approval", - "bind" : "/model/instance/Child_Vaccination_Followup/reminders_approval" - }, { - "name" : "contact_phone_number", - "bind" : "/model/instance/Child_Vaccination_Followup/contact_phone_number" - }, { - "name" : "six_weeks", - "bind" : "/model/instance/Child_Vaccination_Followup/six_weeks" - }, { - "name" : "ten_weeks", - "bind" : "/model/instance/Child_Vaccination_Followup/ten_weeks" - }, { - "name" : "forteen_weeks", - "bind" : "/model/instance/Child_Vaccination_Followup/forteen_weeks" - }, { - "name" : "nine_months", - "bind" : "/model/instance/Child_Vaccination_Followup/nine_months" - }, { - "name" : "fifteen_months", - "bind" : "/model/instance/Child_Vaccination_Followup/fifteen_months" - }, { - "name" : "vaccines", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines" - }, { - "name" : "bcg_retro", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/bcg_retro" - }, { - "name" : "opv0_retro", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/opv0_retro" - }, { - "name" : "opv0_dose", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/opv0_dose" - }, { - "name" : "pcv1_retro", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/pcv1_retro" - }, { - "name" : "pcv1_dose", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/pcv1_dose" - }, { - "name" : "opv1_retro", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/opv1_retro" - }, { - "name" : "opv1_dose", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/opv1_dose" - }, { - "name" : "penta1_retro", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/penta1_retro" - }, { - "name" : "penta1_dose", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/penta1_dose" - }, { - "name" : "pcv2_retro", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/pcv2_retro" - }, { - "name" : "pcv2_dose", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/pcv2_dose" - }, { - "name" : "opv2_retro", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/opv2_retro" - }, { - "name" : "opv2_dose", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/opv2_dose" - }, { - "name" : "penta2_retro", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/penta2_retro" - }, { - "name" : "penta2_dose", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/penta2_dose" - }, { - "name" : "pcv3_retro", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/pcv3_retro" - }, { - "name" : "pcv3_dose", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/pcv3_dose" - }, { - "name" : "opv3_retro", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/opv3_retro" - }, { - "name" : "opv3_dose", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/opv3_dose" - }, { - "name" : "penta3_retro", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/penta3_retro" - }, { - "name" : "penta3_dose", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/penta3_dose" - }, { - "name" : "ipv_retro", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/ipv_retro" - }, { - "name" : "measles1_retro", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/measles1_retro" - }, { - "name" : "measles1_dose", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/measles1_dose" - }, { - "name" : "measles2_retro", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/measles2_retro" - }, { - "name" : "measles2_dose", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/measles2_dose" - }, { - "name" : "vaccines_2", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_2" - }, { - "name" : "vaccination_date", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccination_date" - }, { - "name" : "bcg", - "bind" : "/model/instance/Child_Vaccination_Followup/bcg" - }, { - "name" : "opv0", - "bind" : "/model/instance/Child_Vaccination_Followup/opv0" - }, { - "name" : "opv0_dose_today", - "bind" : "/model/instance/Child_Vaccination_Followup/opv0_dose_today" - }, { - "name" : "pcv1", - "bind" : "/model/instance/Child_Vaccination_Followup/pcv1" - }, { - "name" : "pcv1_dose_today", - "bind" : "/model/instance/Child_Vaccination_Followup/pcv1_dose_today" - }, { - "name" : "opv1", - "bind" : "/model/instance/Child_Vaccination_Followup/opv1" - }, { - "name" : "opv1_dose_today", - "bind" : "/model/instance/Child_Vaccination_Followup/opv1_dose_today" - }, { - "name" : "penta1", - "bind" : "/model/instance/Child_Vaccination_Followup/penta1" - }, { - "name" : "penta1_dose_today", - "bind" : "/model/instance/Child_Vaccination_Followup/penta1_dose_today" - }, { - "name" : "pcv2", - "bind" : "/model/instance/Child_Vaccination_Followup/pcv2" - }, { - "name" : "pcv2_dose_today", - "bind" : "/model/instance/Child_Vaccination_Followup/pcv2_dose_today" - }, { - "name" : "opv2", - "bind" : "/model/instance/Child_Vaccination_Followup/opv2" - }, { - "name" : "opv2_dose_today", - "bind" : "/model/instance/Child_Vaccination_Followup/opv2_dose_today" - }, { - "name" : "penta2", - "bind" : "/model/instance/Child_Vaccination_Followup/penta2" - }, { - "name" : "penta2_dose_today", - "bind" : "/model/instance/Child_Vaccination_Followup/penta2_dose_today" - }, { - "name" : "pcv3", - "bind" : "/model/instance/Child_Vaccination_Followup/pcv3" - }, { - "name" : "pcv3_dose_today", - "bind" : "/model/instance/Child_Vaccination_Followup/pcv3_dose_today" - }, { - "name" : "opv3", - "bind" : "/model/instance/Child_Vaccination_Followup/opv3" - }, { - "name" : "opv3_dose_today", - "bind" : "/model/instance/Child_Vaccination_Followup/opv3_dose_today" - }, { - "name" : "penta3", - "bind" : "/model/instance/Child_Vaccination_Followup/penta3" - }, { - "name" : "penta3_dose_today", - "bind" : "/model/instance/Child_Vaccination_Followup/penta3_dose_today" - }, { - "name" : "ipv", - "bind" : "/model/instance/Child_Vaccination_Followup/ipv" - }, { - "name" : "measles1", - "bind" : "/model/instance/Child_Vaccination_Followup/measles1" - }, { - "name" : "measles1_dose_today", - "bind" : "/model/instance/Child_Vaccination_Followup/measles1_dose_today" - }, { - "name" : "measles2", - "bind" : "/model/instance/Child_Vaccination_Followup/measles2" - }, { - "name" : "measles2_dose_today", - "bind" : "/model/instance/Child_Vaccination_Followup/measles2_dose_today" - }, { - "name" : "instanceID", - "bind" : "/model/instance/Child_Vaccination_Followup/meta/instanceID" - } ] - } -} \ No newline at end of file diff --git a/opensrp-register/src/test/resources/form/child_followup/model.xml b/opensrp-register/src/test/resources/form/child_followup/model.xml deleted file mode 100644 index 5a1a479061..0000000000 --- a/opensrp-register/src/test/resources/form/child_followup/model.xml +++ /dev/null @@ -1,1697 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - ${provider_province} - ${provider_city} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ${today} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - static_instance-provinces-0 - kpk - - - static_instance-provinces-1 - sindh - - - static_instance-provinces-2 - balochistan - - - static_instance-provinces-3 - punjab - - - static_instance-provinces-4 - gilgit_baltistan - - - static_instance-provinces-5 - kashmir - - - static_instance-provinces-6 - fata - - - static_instance-provinces-7 - out_of_country - - - - - - - static_instance-ucs-0 - sindh - karachi - korangi - bilal_colony - - - static_instance-ucs-1 - sindh - karachi - korangi - nasir_colony - - - static_instance-ucs-2 - sindh - karachi - korangi - chakra_goth - - - static_instance-ucs-3 - sindh - karachi - korangi - mustafa_taj_colony - - - static_instance-ucs-4 - sindh - karachi - korangi - hundred_quarters - - - static_instance-ucs-5 - sindh - karachi - korangi - gulzar_colony - - - static_instance-ucs-6 - sindh - karachi - korangi - korangi_sector_33 - - - static_instance-ucs-7 - sindh - karachi - korangi - zaman_town - - - static_instance-ucs-8 - sindh - karachi - korangi - hasrat_mohani_colony - - - static_instance-ucs-9 - sindh - karachi - baldia - gulshan_e_ghazi - - - static_instance-ucs-10 - sindh - karachi - baldia - ittehad_town - - - static_instance-ucs-11 - sindh - karachi - baldia - islam_nagar - - - static_instance-ucs-12 - sindh - karachi - baldia - nai_abadi - - - static_instance-ucs-13 - sindh - karachi - baldia - saeedabad - - - static_instance-ucs-14 - sindh - karachi - baldia - muslim_mujahid_colony - - - static_instance-ucs-15 - sindh - karachi - baldia - muhajir_camp - - - static_instance-ucs-16 - sindh - karachi - baldia - rasheedabad - - - static_instance-ucs-17 - sindh - karachi - bin_qasim - ibrahim_hyderi - - - static_instance-ucs-18 - sindh - karachi - bin_qasim - rehri - - - static_instance-ucs-19 - sindh - karachi - bin_qasim - cattle_colony - - - static_instance-ucs-20 - sindh - karachi - bin_qasim - qaidabad - - - static_instance-ucs-21 - sindh - karachi - bin_qasim - landhi_colony - - - static_instance-ucs-22 - sindh - karachi - bin_qasim - gulshan_e_hadeed - - - static_instance-ucs-23 - sindh - karachi - bin_qasim - gaghar - - - static_instance-ucs-24 - sindh - karachi - gadap - murad_memon_goth - - - static_instance-ucs-25 - sindh - karachi - gadap - darsano_chana - - - static_instance-ucs-26 - sindh - karachi - gadap - gujro - - - static_instance-ucs-27 - sindh - karachi - gadap - songal - - - static_instance-ucs-28 - sindh - karachi - gadap - maymarabad - - - static_instance-ucs-29 - sindh - karachi - gadap - yousuf_goth - - - static_instance-ucs-30 - sindh - karachi - gadap - manghopir - - - static_instance-ucs-31 - sindh - karachi - gulberg - azizabad - - - static_instance-ucs-32 - sindh - karachi - gulberg - karimabad - - - static_instance-ucs-33 - sindh - karachi - gulberg - aisha_manzil - - - static_instance-ucs-34 - sindh - karachi - gulberg - ancholi - - - static_instance-ucs-35 - sindh - karachi - gulberg - naseerabad - - - static_instance-ucs-36 - sindh - karachi - gulberg - yaseenabad - - - static_instance-ucs-37 - sindh - karachi - gulberg - water_pump - - - static_instance-ucs-38 - sindh - karachi - gulberg - shafiq_mill_colony - - - static_instance-ucs-39 - sindh - karachi - gulshan - delhi_mercantile_society - - - static_instance-ucs-40 - sindh - karachi - gulshan - civic_centre - - - static_instance-ucs-41 - sindh - karachi - gulshan - pir_ilahi_buksh_colony - - - static_instance-ucs-42 - sindh - karachi - gulshan - essa_nagri - - - static_instance-ucs-43 - sindh - karachi - gulshan - gulshan_e_iqbal - - - static_instance-ucs-44 - sindh - karachi - gulshan - gillani_railway_station - - - static_instance-ucs-45 - sindh - karachi - gulshan - shanti_nagar - - - static_instance-ucs-46 - sindh - karachi - gulshan - jamali_colony - - - static_instance-ucs-47 - sindh - karachi - gulshan - gulshan_e_iqbal_ii - - - static_instance-ucs-48 - sindh - karachi - gulshan - pehlwan_goth - - - static_instance-ucs-49 - sindh - karachi - gulshan - matrovil_colony - - - static_instance-ucs-50 - sindh - karachi - gulshan - gulzar_e_hijri - - - static_instance-ucs-51 - sindh - karachi - gulshan - safooran_goth - - - static_instance-ucs-52 - sindh - karachi - jamshed - akhtar_colony - - - static_instance-ucs-53 - sindh - karachi - jamshed - manzoor_colony - - - static_instance-ucs-54 - sindh - karachi - jamshed - azam_basti - - - static_instance-ucs-55 - sindh - karachi - jamshed - chanesar_goth - - - static_instance-ucs-56 - sindh - karachi - jamshed - mahmudabad - - - static_instance-ucs-57 - sindh - karachi - jamshed - pechs - - - static_instance-ucs-58 - sindh - karachi - jamshed - pechs_ii - - - static_instance-ucs-59 - sindh - karachi - jamshed - jut_line - - - static_instance-ucs-60 - sindh - karachi - jamshed - central_jacob_lines - - - static_instance-ucs-61 - sindh - karachi - jamshed - jamshed_quarters - - - static_instance-ucs-62 - sindh - karachi - jamshed - garden_east - - - static_instance-ucs-63 - sindh - karachi - jamshed - soldier_bazar - - - static_instance-ucs-64 - sindh - karachi - jamshed - pakistan_quarters - - - static_instance-ucs-65 - sindh - karachi - kiamari - bhutta_village - - - static_instance-ucs-66 - sindh - karachi - kiamari - sultanabad - - - static_instance-ucs-67 - sindh - karachi - kiamari - kiamari_uc - - - static_instance-ucs-68 - sindh - karachi - kiamari - baba_bhit - - - static_instance-ucs-69 - sindh - karachi - kiamari - machar_colony - - - static_instance-ucs-70 - sindh - karachi - kiamari - maripur - - - static_instance-ucs-71 - sindh - karachi - kiamari - shershah - - - static_instance-ucs-72 - sindh - karachi - kiamari - gabo_pat - - - static_instance-ucs-73 - sindh - karachi - landhi - muzafarabad - - - static_instance-ucs-74 - sindh - karachi - landhi - muslimabad - - - static_instance-ucs-75 - sindh - karachi - landhi - dawood_chowrangi - - - static_instance-ucs-76 - sindh - karachi - landhi - moinabad - - - static_instance-ucs-77 - sindh - karachi - landhi - sharafi_goth - - - static_instance-ucs-78 - sindh - karachi - landhi - bhutto_nagar - - - static_instance-ucs-79 - sindh - karachi - landhi - khawaja_ajmeer_colony - - - static_instance-ucs-80 - sindh - karachi - landhi - landhi_uc - - - static_instance-ucs-81 - sindh - karachi - landhi - awami_colony - - - static_instance-ucs-82 - sindh - karachi - landhi - burmee_colony - - - static_instance-ucs-83 - sindh - karachi - landhi - korangi_uc - - - static_instance-ucs-84 - sindh - karachi - landhi - sherabad - - - static_instance-ucs-85 - sindh - karachi - liaquatabad - rizvia_society - - - static_instance-ucs-86 - sindh - karachi - liaquatabad - firdous_colony - - - static_instance-ucs-87 - sindh - karachi - liaquatabad - super_market - - - static_instance-ucs-88 - sindh - karachi - liaquatabad - dak_khana - - - static_instance-ucs-89 - sindh - karachi - liaquatabad - qasimabad - - - static_instance-ucs-90 - sindh - karachi - liaquatabad - bandhani_colony - - - static_instance-ucs-91 - sindh - karachi - liaquatabad - sharifabad - - - static_instance-ucs-92 - sindh - karachi - liaquatabad - commercial_area - - - static_instance-ucs-93 - sindh - karachi - liaquatabad - mujahid_colony - - - static_instance-ucs-94 - sindh - karachi - liaquatabad - nazimabad - - - static_instance-ucs-95 - sindh - karachi - liaquatabad - abbasi_shaheed - - - static_instance-ucs-96 - sindh - karachi - lyari - agra_taj_colony - - - static_instance-ucs-97 - sindh - karachi - lyari - daryaabad - - - static_instance-ucs-98 - sindh - karachi - lyari - nawabad - - - static_instance-ucs-99 - sindh - karachi - lyari - khada_memon_society - - - static_instance-ucs-100 - sindh - karachi - lyari - baghdadi - - - static_instance-ucs-101 - sindh - karachi - lyari - shah_baig_line - - - static_instance-ucs-102 - sindh - karachi - lyari - bihar_colony - - - static_instance-ucs-103 - sindh - karachi - lyari - ragiwara - - - static_instance-ucs-104 - sindh - karachi - lyari - singo_line - - - static_instance-ucs-105 - sindh - karachi - lyari - chakiwara - - - static_instance-ucs-106 - sindh - karachi - lyari - allama_iqbal_colony - - - static_instance-ucs-107 - sindh - karachi - malir - model_colony - - - static_instance-ucs-108 - sindh - karachi - malir - kala_board - - - static_instance-ucs-109 - sindh - karachi - malir - saudabad - - - static_instance-ucs-110 - sindh - karachi - malir - khokhra_par - - - static_instance-ucs-111 - sindh - karachi - malir - jafar_e_tayyar - - - static_instance-ucs-112 - sindh - karachi - malir - gharibabad - - - static_instance-ucs-113 - sindh - karachi - malir - ghazi_brohi_goth - - - static_instance-ucs-114 - sindh - karachi - new_karachi - kalyana - - - static_instance-ucs-115 - sindh - karachi - new_karachi - sir_syed_colony - - - static_instance-ucs-116 - sindh - karachi - new_karachi - fatima_jinnah_colony - - - static_instance-ucs-117 - sindh - karachi - new_karachi - godhra - - - static_instance-ucs-118 - sindh - karachi - new_karachi - abu_zar_ghaffari - - - static_instance-ucs-119 - sindh - karachi - new_karachi - hakim_ahsan - - - static_instance-ucs-120 - sindh - karachi - new_karachi - madina_colony - - - static_instance-ucs-121 - sindh - karachi - new_karachi - faisal_colony - - - static_instance-ucs-122 - sindh - karachi - new_karachi - khamiso_goth - - - static_instance-ucs-123 - sindh - karachi - new_karachi - mustufa_colony - - - static_instance-ucs-124 - sindh - karachi - new_karachi - khawaja_ajmeer_nagri - - - static_instance-ucs-125 - sindh - karachi - new_karachi - gulshan_e_saeed - - - static_instance-ucs-126 - sindh - karachi - new_karachi - shah_nawaz_bhutto_colony - - - static_instance-ucs-127 - sindh - karachi - north_nazimabad - paposh_nagar - - - static_instance-ucs-128 - sindh - karachi - north_nazimabad - pahar_ganj - - - static_instance-ucs-129 - sindh - karachi - north_nazimabad - khandu_goth - - - static_instance-ucs-130 - sindh - karachi - north_nazimabad - hyderi - - - static_instance-ucs-131 - sindh - karachi - north_nazimabad - sakhi_hassan - - - static_instance-ucs-132 - sindh - karachi - north_nazimabad - farooq_e_azam - - - static_instance-ucs-133 - sindh - karachi - north_nazimabad - nusrat_bhutto_colony - - - static_instance-ucs-134 - sindh - karachi - north_nazimabad - shadman_town - - - static_instance-ucs-135 - sindh - karachi - north_nazimabad - buffer_zone - - - static_instance-ucs-136 - sindh - karachi - north_nazimabad - buffer_zone_ii - - - static_instance-ucs-137 - sindh - karachi - orangi - mominabad - - - static_instance-ucs-138 - sindh - karachi - orangi - haryana_colony - - - static_instance-ucs-139 - sindh - karachi - orangi - hanifabad - - - static_instance-ucs-140 - sindh - karachi - orangi - mohammad_nagar - - - static_instance-ucs-141 - sindh - karachi - orangi - madina_colony_orangi - - - static_instance-ucs-142 - sindh - karachi - orangi - ghaziabad - - - static_instance-ucs-143 - sindh - karachi - orangi - chisti_nagar - - - static_instance-ucs-144 - sindh - karachi - orangi - bilal_colony_orangi - - - static_instance-ucs-145 - sindh - karachi - orangi - iqbal_baloch_colony - - - static_instance-ucs-146 - sindh - karachi - orangi - ghabool_town - - - static_instance-ucs-147 - sindh - karachi - orangi - data_nagar - - - static_instance-ucs-148 - sindh - karachi - orangi - mujahidabad - - - static_instance-ucs-149 - sindh - karachi - orangi - baloch_goth - - - static_instance-ucs-150 - sindh - karachi - saddar - old_haji_camp - - - static_instance-ucs-151 - sindh - karachi - saddar - garden - - - static_instance-ucs-152 - sindh - karachi - saddar - kharadar - - - static_instance-ucs-153 - sindh - karachi - saddar - city_railway_colony - - - static_instance-ucs-154 - sindh - karachi - saddar - nanak_wara - - - static_instance-ucs-155 - sindh - karachi - saddar - gazdarabad - - - static_instance-ucs-156 - sindh - karachi - saddar - millat_nagar_islam_pura - - - static_instance-ucs-157 - sindh - karachi - saddar - saddar_uc - - - static_instance-ucs-158 - sindh - karachi - saddar - civil_line - - - static_instance-ucs-159 - sindh - karachi - saddar - clifton - - - static_instance-ucs-160 - sindh - karachi - saddar - kehkashan - - - static_instance-ucs-161 - sindh - karachi - shah_faisal - natha_khan_goth - - - static_instance-ucs-162 - sindh - karachi - shah_faisal - pak_sadat_colony - - - static_instance-ucs-163 - sindh - karachi - shah_faisal - drigh_colony - - - static_instance-ucs-164 - sindh - karachi - shah_faisal - raita_plot - - - static_instance-ucs-165 - sindh - karachi - shah_faisal - moria_khan_goth - - - static_instance-ucs-166 - sindh - karachi - shah_faisal - rafa_e_aam_society - - - static_instance-ucs-167 - sindh - karachi - shah_faisal - al_falah_society - - - static_instance-ucs-168 - sindh - karachi - site - pak_colony - - - static_instance-ucs-169 - sindh - karachi - site - old_golimar - - - static_instance-ucs-170 - sindh - karachi - site - jahanabad - - - static_instance-ucs-171 - sindh - karachi - site - metrovil - - - static_instance-ucs-172 - sindh - karachi - site - bhawani_chali - - - static_instance-ucs-173 - sindh - karachi - site - frontier_colony - - - static_instance-ucs-174 - sindh - karachi - site - banaras_colony - - - static_instance-ucs-175 - sindh - karachi - site - qasba_colony - - - static_instance-ucs-176 - sindh - karachi - site - islamia_colony - - - static_instance-ucs-177 - na - na - na - other - - - static_instance-ucs-178 - na - na - na - not_applicable - - - - - - - static_instance-gender-0 - male - - - static_instance-gender-1 - female - - - static_instance-gender-2 - transgender - - - - - - - static_instance-vaccines-0 - bcg - - - static_instance-vaccines-1 - opv0 - - - static_instance-vaccines-2 - pcv1 - - - static_instance-vaccines-3 - opv1 - - - static_instance-vaccines-4 - penta1 - - - static_instance-vaccines-5 - pcv2 - - - static_instance-vaccines-6 - opv2 - - - static_instance-vaccines-7 - penta2 - - - static_instance-vaccines-8 - pcv3 - - - static_instance-vaccines-9 - opv3 - - - static_instance-vaccines-10 - penta3 - - - static_instance-vaccines-11 - ipv - - - static_instance-vaccines-12 - measles1 - - - static_instance-vaccines-13 - measles2 - - - - - - - static_instance-towns-0 - sindh - karachi - korangi - - - static_instance-towns-1 - sindh - karachi - landhi - - - static_instance-towns-2 - sindh - karachi - baldia - - - static_instance-towns-3 - sindh - karachi - bin_qasim - - - static_instance-towns-4 - sindh - karachi - gadap - - - static_instance-towns-5 - sindh - karachi - gulberg - - - static_instance-towns-6 - sindh - karachi - gulshan - - - static_instance-towns-7 - sindh - karachi - jamshed - - - static_instance-towns-8 - sindh - karachi - kiamari - - - static_instance-towns-9 - sindh - karachi - liaquatabad - - - static_instance-towns-10 - sindh - karachi - lyari - - - static_instance-towns-11 - sindh - karachi - malir - - - static_instance-towns-12 - sindh - karachi - new_karachi - - - static_instance-towns-13 - sindh - karachi - north_nazimabad - - - static_instance-towns-14 - sindh - karachi - orangi - - - static_instance-towns-15 - sindh - karachi - saddar - - - static_instance-towns-16 - sindh - karachi - shah_faisal - - - static_instance-towns-17 - sindh - karachi - site - - - static_instance-towns-18 - na - na - other - - - static_instance-towns-19 - na - na - not_applicable - - - - - - - static_instance-cities-0 - sindh - karachi - - - static_instance-cities-1 - punjab - hafizabad - - - static_instance-cities-2 - punjab - muzaffargarh - - - static_instance-cities-3 - na - other - - - static_instance-cities-4 - na - not_applicable - - - - - - - static_instance-yes_no-0 - yes - - - static_instance-yes_no-1 - no - - - - diff --git a/opensrp-register/src/test/resources/form/offsite_child_followup/form.json b/opensrp-register/src/test/resources/form/offsite_child_followup/form.json deleted file mode 100644 index b6825ad6f8..0000000000 --- a/opensrp-register/src/test/resources/form/offsite_child_followup/form.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"Offsite_Child_Vaccination_Followup","title":"دوسرے سینٹر میں رجسٹرڈ بچّوں کا فالو اپ رجسٹر برائے ٹیکاجات - Off Site Child Follow Up Vaccination Register","sms_keyword":"offsite_child_vaccination_followup","default_language":"English","choices":{"provinces":[{"name":"kpk","label":{"Urdu":"خیبر پختون خواہ","English":"Khyber Pakhtunkhwa","Roman Urdu":"Khyber Pakhtunkhwa"}},{"name":"sindh","label":{"Urdu":"سندھ","English":"Sindh","Roman Urdu":"Sindh"}},{"name":"balochistan","label":{"Urdu":"بلوچستان","English":"Balochistan","Roman Urdu":"Balochistan"}},{"name":"punjab","label":{"Urdu":"پنجاب","English":"Punjab","Roman Urdu":"Punjab"}},{"name":"gilgit_baltistan","label":{"Urdu":"گلگت بلتستان","English":"Gilgit Baltistan","Roman Urdu":"Gilgit Baltistan"}},{"name":"kashmir","label":{"Urdu":"کشمیر","English":"Kashmir","Roman Urdu":"Kashmir"}},{"name":"fata","label":{"Urdu":"فاٹا","English":"FATA","Roman Urdu":"FATA"}},{"name":"out_of_country","label":{"Urdu":"ملک سے باہر","English":"Out of Country","Roman Urdu":"Out of Country"}}],"ucs":[{"province":"sindh","city":"karachi","town":"korangi","name":"bilal_colony","label":{"Urdu":"بلال کالونی","Roman Urdu":"Bilal Colony","English":"Bilal Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"nasir_colony","label":{"Urdu":"ناصر کالونی","Roman Urdu":"Nasir Colony","English":"Nasir Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"chakra_goth","label":{"Urdu":"چکرا گوٹھ","Roman Urdu":"Chakra Goth","English":"Chakra Goth"}},{"province":"sindh","city":"karachi","town":"korangi","name":"mustafa_taj_colony","label":{"Urdu":"مصطفی تاج کالونی","Roman Urdu":"Mustafa Taj Colony","English":"Mustafa Taj Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"hundred_quarters","label":{"Urdu":"ہنڈریڈ کوارٹر","Roman Urdu":"Hundred Quarters","English":"Hundred Quarters"}},{"province":"sindh","city":"karachi","town":"korangi","name":"gulzar_colony","label":{"Urdu":"گلزار کالونی","Roman Urdu":"Gulzar Colony","English":"Gulzar Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"korangi_sector_33","label":{"Urdu":"کورنگی سیکٹر 33","Roman Urdu":"Korangi Sector 33","English":"Korangi Sector 33"}},{"province":"sindh","city":"karachi","town":"korangi","name":"zaman_town","label":{"Urdu":"زمان ٹاوَن","Roman Urdu":"Zaman Town","English":"Zaman Town"}},{"province":"sindh","city":"karachi","town":"korangi","name":"hasrat_mohani_colony","label":{"Urdu":"حسرت موہانی کالونی","Roman Urdu":"Hasrat Mohani Colony","English":"Hasrat Mohani Colony"}},{"province":"sindh","city":"karachi","town":"baldia","name":"gulshan_e_ghazi","label":{"Urdu":"گلشن غازی","Roman Urdu":"Gulshan-e-Ghazi","English":"Gulshan-e-Ghazi"}},{"province":"sindh","city":"karachi","town":"baldia","name":"ittehad_town","label":{"Urdu":"اتحاد ٹاوَن","Roman Urdu":"Ittehad Town","English":"Ittehad Town"}},{"province":"sindh","city":"karachi","town":"baldia","name":"islam_nagar","label":{"Urdu":"اسلام نگر","Roman Urdu":"Islam Nagar","English":"Islam Nagar"}},{"province":"sindh","city":"karachi","town":"baldia","name":"nai_abadi","label":{"Urdu":"نئی آبادی","Roman Urdu":"Nai Abadi","English":"Nai Abadi"}},{"province":"sindh","city":"karachi","town":"baldia","name":"saeedabad","label":{"Urdu":"سعید آباد","Roman Urdu":"Saeedabad","English":"Saeedabad"}},{"province":"sindh","city":"karachi","town":"baldia","name":"muslim_mujahid_colony","label":{"Urdu":"مسلم مجاہد کالونی","Roman Urdu":"Muslim Mujahid Colony","English":"Muslim Mujahid Colony"}},{"province":"sindh","city":"karachi","town":"baldia","name":"muhajir_camp","label":{"Urdu":"مہاجر کیمپ","Roman Urdu":"Muhajir Camp","English":"Muhajir Camp"}},{"province":"sindh","city":"karachi","town":"baldia","name":"rasheedabad","label":{"Urdu":"رشید آباد","Roman Urdu":"Rasheedabad","English":"Rasheedabad"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"ibrahim_hyderi","label":{"Urdu":"ابراہیم حیدری","Roman Urdu":"Ibrahim Hyderi","English":"Ibrahim Hyderi"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"rehri","label":{"Urdu":"رہڑی","Roman Urdu":"Rehri","English":"Rehri"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"cattle_colony","label":{"Urdu":"کیٹل کالونی","Roman Urdu":"Cattle Colony","English":"Cattle Colony"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"qaidabad","label":{"Urdu":"قائدآباد","Roman Urdu":"Qaidabad","English":"Qaidabad"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"landhi_colony","label":{"Urdu":"لانڈھی کالونی","Roman Urdu":"Landhi Colony","English":"Landhi Colony"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"gulshan_e_hadeed","label":{"Urdu":"گلشن حدید","Roman Urdu":"Gulshan-e-Hadeed","English":"Gulshan-e-Hadeed"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"gaghar","label":{"Urdu":"گگر","Roman Urdu":"Gaghar","English":"Gaghar"}},{"province":"sindh","city":"karachi","town":"gadap","name":"murad_memon_goth","label":{"Urdu":"مراد میمن گوٹھ","Roman Urdu":"Murad Memon Goth","English":"Murad Memon Goth"}},{"province":"sindh","city":"karachi","town":"gadap","name":"darsano_chana","label":{"Urdu":"درشانو شنو","Roman Urdu":"Darsano Chana","English":"Darsano Chana"}},{"province":"sindh","city":"karachi","town":"gadap","name":"gujro","label":{"Urdu":"گجرو","Roman Urdu":"Gujro","English":"Gujro"}},{"province":"sindh","city":"karachi","town":"gadap","name":"songal","label":{"Urdu":"سنگل","Roman Urdu":"Songal","English":"Songal"}},{"province":"sindh","city":"karachi","town":"gadap","name":"maymarabad","label":{"Urdu":"معمار آباد","Roman Urdu":"Maymarabad","English":"Maymarabad"}},{"province":"sindh","city":"karachi","town":"gadap","name":"yousuf_goth","label":{"Urdu":"یوسف گوٹھ","Roman Urdu":"Yousuf Goth","English":"Yousuf Goth"}},{"province":"sindh","city":"karachi","town":"gadap","name":"manghopir","label":{"Urdu":"منگھوپیر","Roman Urdu":"Manghopir","English":"Manghopir"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"azizabad","label":{"Urdu":"عزیز آباد","Roman Urdu":"Azizabad","English":"Azizabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"karimabad","label":{"Urdu":"کریم آباد","Roman Urdu":"Karimabad","English":"Karimabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"aisha_manzil","label":{"Urdu":"عائشہ منزل","Roman Urdu":"Aisha Manzil","English":"Aisha Manzil"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"ancholi","label":{"Urdu":"انچولی","Roman Urdu":"Ancholi","English":"Ancholi"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"naseerabad","label":{"Urdu":"نصیرآباد","Roman Urdu":"Naseerabad","English":"Naseerabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"yaseenabad","label":{"Urdu":"یاسین آباد","Roman Urdu":"Yaseenabad","English":"Yaseenabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"water_pump","label":{"Urdu":"واٹرپمپ","Roman Urdu":"Water Pump","English":"Water Pump"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"shafiq_mill_colony","label":{"Urdu":"شفیق مل کالونی","Roman Urdu":"Shafiq Mill Colony","English":"Shafiq Mill Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"delhi_mercantile_society","label":{"Urdu":"دہلی مرچنٹائل سوسائٹی","Roman Urdu":"Delhi Mercantile Society","English":"Delhi Mercantile Society"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"civic_centre","label":{"Urdu":"سوک سینٹر","Roman Urdu":"Civic Centre","English":"Civic Centre"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"pir_ilahi_buksh_colony","label":{"Urdu":"پیر الہی بخش کالونی","Roman Urdu":"Pir Ilahi Buksh Colony","English":"Pir Ilahi Buksh Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"essa_nagri","label":{"Urdu":"عیسی نگری","Roman Urdu":"Essa Nagri","English":"Essa Nagri"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gulshan_e_iqbal","label":{"Urdu":"گلشن اقبال","Roman Urdu":"Gulshan-e-Iqbal","English":"Gulshan-e-Iqbal"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gillani_railway_station","label":{"Urdu":"گیلانی ریلوے اسٹیشن","Roman Urdu":"Gillani Railway Station","English":"Gillani Railway Station"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"shanti_nagar","label":{"Urdu":"شانتی نگر","Roman Urdu":"Shanti Nagar","English":"Shanti Nagar"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"jamali_colony","label":{"Urdu":"جمالی کالونی","Roman Urdu":"Jamali Colony","English":"Jamali Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gulshan_e_iqbal_ii","label":{"Urdu":"گلشن اقبال 2","Roman Urdu":"Gulshan-e-Iqbal II","English":"Gulshan-e-Iqbal II"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"pehlwan_goth","label":{"Urdu":"پہلوان گوٹھ","Roman Urdu":"Pehlwan Goth","English":"Pehlwan Goth"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"matrovil_colony","label":{"Urdu":"میٹروویل کالونی","Roman Urdu":"Matrovil Colony","English":"Matrovil Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gulzar_e_hijri","label":{"Urdu":"گلزار ہجری","Roman Urdu":"Gulzar-e-Hijri","English":"Gulzar-e-Hijri"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"safooran_goth","label":{"Urdu":"صفورا گوٹھ","Roman Urdu":"Safooran Goth","English":"Safooran Goth"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"akhtar_colony","label":{"Urdu":"اختر کالونی","Roman Urdu":"Akhtar Colony","English":"Akhtar Colony"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"manzoor_colony","label":{"Urdu":"منظور کالونی","Roman Urdu":"Manzoor Colony","English":"Manzoor Colony"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"azam_basti","label":{"Urdu":"اعظم بستی","Roman Urdu":"Azam Basti","English":"Azam Basti"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"chanesar_goth","label":{"Urdu":"چنیسر گوٹھ","Roman Urdu":"Chanesar Goth","English":"Chanesar Goth"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"mahmudabad","label":{"Urdu":"محمودآباد","Roman Urdu":"Mahmudabad","English":"Mahmudabad"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"pechs","label":{"Urdu":"پی۔ای۔سی۔ایچ۔ایس","Roman Urdu":"P.E.C.H.S.","English":"P.E.C.H.S."}},{"province":"sindh","city":"karachi","town":"jamshed","name":"pechs_ii","label":{"Urdu":"پی۔ای۔سی۔ایچ۔ایس 2","Roman Urdu":"P.E.C.H.S. II","English":"P.E.C.H.S. II"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"jut_line","label":{"Urdu":"جٹ لائن","Roman Urdu":"Jut Line","English":"Jut Line"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"central_jacob_lines","label":{"Urdu":"سینٹرل جیکب لائن","Roman Urdu":"Central Jacob Lines","English":"Central Jacob Lines"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"jamshed_quarters","label":{"Urdu":"جمشید کوارٹر","Roman Urdu":"Jamshed Quarters","English":"Jamshed Quarters"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"garden_east","label":{"Urdu":"گارڈن ایسٹ","Roman Urdu":"Garden East","English":"Garden East"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"soldier_bazar","label":{"Urdu":"سولجر بازار","Roman Urdu":"Soldier Bazar","English":"Soldier Bazar"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"pakistan_quarters","label":{"Urdu":"پاکستان کوارٹر","Roman Urdu":"Pakistan Quarters","English":"Pakistan Quarters"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"bhutta_village","label":{"Urdu":"بھٹا ولیج","Roman Urdu":"Bhutta Village","English":"Bhutta Village"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"sultanabad","label":{"Urdu":"سلطان آباد","Roman Urdu":"Sultanabad","English":"Sultanabad"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"kiamari_uc","label":{"Urdu":"کیماری یو- سی","Roman Urdu":"Kiamari UC","English":"Kiamari UC"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"baba_bhit","label":{"Urdu":"بابا بھٹ","Roman Urdu":"Baba Bhit","English":"Baba Bhit"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"machar_colony","label":{"Urdu":"مچھر کالونی","Roman Urdu":"Machar Colony","English":"Machar Colony"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"maripur","label":{"Urdu":"ماڑی پور","Roman Urdu":"Maripur","English":"Maripur"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"shershah","label":{"Urdu":"شیرشاہ","Roman Urdu":"SherShah","English":"SherShah"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"gabo_pat","label":{"Urdu":"گابو پٹ","Roman Urdu":"Gabo Pat","English":"Gabo Pat"}},{"province":"sindh","city":"karachi","town":"landhi","name":"muzafarabad","label":{"Urdu":"مظفرآباد","Roman Urdu":"Muzafarabad","English":"Muzafarabad"}},{"province":"sindh","city":"karachi","town":"landhi","name":"muslimabad","label":{"Urdu":"مسلم آباد","Roman Urdu":"Muslimabad","English":"Muslimabad"}},{"province":"sindh","city":"karachi","town":"landhi","name":"dawood_chowrangi","label":{"Urdu":"داوَد چورنگی","Roman Urdu":"Dawood Chowrangi","English":"Dawood Chowrangi"}},{"province":"sindh","city":"karachi","town":"landhi","name":"moinabad","label":{"Urdu":"معین آباد","Roman Urdu":"Moinabad","English":"Moinabad"}},{"province":"sindh","city":"karachi","town":"landhi","name":"sharafi_goth","label":{"Urdu":"شرافی گوٹھ","Roman Urdu":"Sharafi Goth","English":"Sharafi Goth"}},{"province":"sindh","city":"karachi","town":"landhi","name":"bhutto_nagar","label":{"Urdu":"بھٹو نگر","Roman Urdu":"Bhutto Nagar","English":"Bhutto Nagar"}},{"province":"sindh","city":"karachi","town":"landhi","name":"khawaja_ajmeer_colony","label":{"Urdu":"خواجہ اجمیر کالونی","Roman Urdu":"Khawaja Ajmeer Colony","English":"Khawaja Ajmeer Colony"}},{"province":"sindh","city":"karachi","town":"landhi","name":"landhi_uc","label":{"Urdu":"لانڈھی یوسی","Roman Urdu":"Landhi UC","English":"Landhi UC"}},{"province":"sindh","city":"karachi","town":"landhi","name":"awami_colony","label":{"Urdu":"عوامی کالونی","Roman Urdu":"Awami Colony","English":"Awami Colony"}},{"province":"sindh","city":"karachi","town":"landhi","name":"burmee_colony","label":{"Urdu":"برمی کالونی","Roman Urdu":"Burmee Colony","English":"Burmee Colony"}},{"province":"sindh","city":"karachi","town":"landhi","name":"korangi_uc","label":{"Urdu":"کورنگی یوسی","Roman Urdu":"Korangi UC","English":"Korangi UC"}},{"province":"sindh","city":"karachi","town":"landhi","name":"sherabad","label":{"Urdu":"شیرآباد","Roman Urdu":"Sherabad","English":"Sherabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"rizvia_society","label":{"Urdu":"رضویہ سوسائٹی","Roman Urdu":"Rizvia Society","English":"Rizvia Society"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"firdous_colony","label":{"Urdu":"فردوس کالونی","Roman Urdu":"Firdous Colony","English":"Firdous Colony"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"super_market","label":{"Urdu":"سپر مارکیٹ","Roman Urdu":"Super Market","English":"Super Market"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"dak_khana","label":{"Urdu":"دک کھانہ","Roman Urdu":"Dak Khana","English":"Dak Khana"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"qasimabad","label":{"Urdu":"قاسم آباد","Roman Urdu":"Qasimabad","English":"Qasimabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"bandhani_colony","label":{"Urdu":"بندھانی کالونی","Roman Urdu":"Bandhani Colony","English":"Bandhani Colony"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"sharifabad","label":{"Urdu":"شریف آباد","Roman Urdu":"Sharifabad","English":"Sharifabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"commercial_area","label":{"Urdu":"کمرشل ایریا","Roman Urdu":"Commercial Area","English":"Commercial Area"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"mujahid_colony","label":{"Urdu":"مجاہد کالونی","Roman Urdu":"Mujahid Colony","English":"Mujahid Colony"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"nazimabad","label":{"Urdu":"ناظم آباد","Roman Urdu":"Nazimabad","English":"Nazimabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"abbasi_shaheed","label":{"Urdu":"عباسی شہید","Roman Urdu":"Abbasi Shaheed","English":"Abbasi Shaheed"}},{"province":"sindh","city":"karachi","town":"lyari","name":"agra_taj_colony","label":{"Urdu":"آگرہ تاج کالونی","Roman Urdu":"Agra Taj Colony","English":"Agra Taj Colony"}},{"province":"sindh","city":"karachi","town":"lyari","name":"daryaabad","label":{"Urdu":"دریاآباد","Roman Urdu":"Daryaabad","English":"Daryaabad"}},{"province":"sindh","city":"karachi","town":"lyari","name":"nawabad","label":{"Urdu":"نواآباد","Roman Urdu":"Nawabad","English":"Nawabad"}},{"province":"sindh","city":"karachi","town":"lyari","name":"khada_memon_society","label":{"Urdu":"خدا- میمن- سوساَٹی","Roman Urdu":"Khada Memon Society","English":"Khada Memon Society"}},{"province":"sindh","city":"karachi","town":"lyari","name":"baghdadi","label":{"Urdu":"بغدادی","Roman Urdu":"Baghdadi","English":"Baghdadi"}},{"province":"sindh","city":"karachi","town":"lyari","name":"shah_baig_line","label":{"Urdu":"شاھ باغ لائن","Roman Urdu":"Shah Baig Line","English":"Shah Baig Line"}},{"province":"sindh","city":"karachi","town":"lyari","name":"bihar_colony","label":{"Urdu":"بہار کالونی","Roman Urdu":"Bihar Colony","English":"Bihar Colony"}},{"province":"sindh","city":"karachi","town":"lyari","name":"ragiwara","label":{"Urdu":"راگی واڑا","Roman Urdu":"Ragiwara","English":"Ragiwara"}},{"province":"sindh","city":"karachi","town":"lyari","name":"singo_line","label":{"Urdu":"سنگولائن","Roman Urdu":"Singo Line","English":"Singo Line"}},{"province":"sindh","city":"karachi","town":"lyari","name":"chakiwara","label":{"Urdu":"چاکی واڑا","Roman Urdu":"Chakiwara","English":"Chakiwara"}},{"province":"sindh","city":"karachi","town":"lyari","name":"allama_iqbal_colony","label":{"Urdu":"علامہ اقبال کالونی","Roman Urdu":"Allama Iqbal Colony","English":"Allama Iqbal Colony"}},{"province":"sindh","city":"karachi","town":"malir","name":"model_colony","label":{"Urdu":"موڈل کالونی","Roman Urdu":"Model Colony","English":"Model Colony"}},{"province":"sindh","city":"karachi","town":"malir","name":"kala_board","label":{"Urdu":"کالا بورڈ","Roman Urdu":"Kala Board","English":"Kala Board"}},{"province":"sindh","city":"karachi","town":"malir","name":"saudabad","label":{"Urdu":"سعودآباد","Roman Urdu":"Saudabad","English":"Saudabad"}},{"province":"sindh","city":"karachi","town":"malir","name":"khokhra_par","label":{"Urdu":"کھوکھرا پار","Roman Urdu":"Khokhra Par","English":"Khokhra Par"}},{"province":"sindh","city":"karachi","town":"malir","name":"jafar_e_tayyar","label":{"Urdu":"جعفر تیار","Roman Urdu":"Jafar-e-Tayyar","English":"Jafar-e-Tayyar"}},{"province":"sindh","city":"karachi","town":"malir","name":"gharibabad","label":{"Urdu":"غریب آباد","Roman Urdu":"Gharibabad","English":"Gharibabad"}},{"province":"sindh","city":"karachi","town":"malir","name":"ghazi_brohi_goth","label":{"Urdu":"غازی بروہی گوٹھ","Roman Urdu":"Ghazi Brohi Goth","English":"Ghazi Brohi Goth"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"kalyana","label":{"Urdu":"کالیانہ","Roman Urdu":"Kalyana","English":"Kalyana"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"sir_syed_colony","label":{"Urdu":"سر سید کالونی","Roman Urdu":"Sir Syed Colony","English":"Sir Syed Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"fatima_jinnah_colony","label":{"Urdu":"فاطمہ جناح کالونی","Roman Urdu":"Fatima Jinnah Colony","English":"Fatima Jinnah Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"godhra","label":{"Urdu":"گودھرا","Roman Urdu":"Godhra","English":"Godhra"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"abu_zar_ghaffari","label":{"Urdu":"ابو زر غفاری","Roman Urdu":"Abu Zar Ghaffari","English":"Abu Zar Ghaffari"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"hakim_ahsan","label":{"Urdu":"حاکم احسان","Roman Urdu":"Hakim Ahsan","English":"Hakim Ahsan"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"madina_colony","label":{"Urdu":"مدینہ کالونی","Roman Urdu":"Madina Colony","English":"Madina Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"faisal_colony","label":{"Urdu":"فیصل کالونی","Roman Urdu":"Faisal Colony","English":"Faisal Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"khamiso_goth","label":{"Urdu":"خمیسو گوٹھ","Roman Urdu":"Khamiso Goth","English":"Khamiso Goth"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"mustufa_colony","label":{"Urdu":"مصطفی کالونی","Roman Urdu":"Mustufa Colony","English":"Mustufa Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"khawaja_ajmeer_nagri","label":{"Urdu":"خواجہ اجمیر نگری","Roman Urdu":"Khawaja Ajmeer Nagri","English":"Khawaja Ajmeer Nagri"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"gulshan_e_saeed","label":{"Urdu":"گلشن سعید","Roman Urdu":"Gulshan-e-Saeed","English":"Gulshan-e-Saeed"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"shah_nawaz_bhutto_colony","label":{"Urdu":"شاہ نواز بھٹو کالونی","Roman Urdu":"Shah Nawaz Bhutto Colony","English":"Shah Nawaz Bhutto Colony"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"paposh_nagar","label":{"Urdu":"پاپوش نگر","Roman Urdu":"Paposh Nagar","English":"Paposh Nagar"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"pahar_ganj","label":{"Urdu":"پہاڑ گنج","Roman Urdu":"Pahar Ganj","English":"Pahar Ganj"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"khandu_goth","label":{"Urdu":"کھنڑو گوٹھ","Roman Urdu":"Khandu Goth","English":"Khandu Goth"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"hyderi","label":{"Urdu":"حیدری","Roman Urdu":"Hyderi","English":"Hyderi"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"sakhi_hassan","label":{"Urdu":"سخی حسن","Roman Urdu":"Sakhi Hassan","English":"Sakhi Hassan"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"farooq_e_azam","label":{"Urdu":"فاروق اعظم","Roman Urdu":"Farooq-e-Azam","English":"Farooq-e-Azam"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"nusrat_bhutto_colony","label":{"Urdu":"نصرت بھٹو کالونی","Roman Urdu":"Nusrat Bhutto Colony","English":"Nusrat Bhutto Colony"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"shadman_town","label":{"Urdu":"شادمان ٹاوَن","Roman Urdu":"Shadman Town","English":"Shadman Town"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"buffer_zone","label":{"Urdu":"بفرزون","Roman Urdu":"Buffer Zone","English":"Buffer Zone"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"buffer_zone_ii","label":{"Urdu":"بفرزون 2","Roman Urdu":"Buffer Zone II","English":"Buffer Zone II"}},{"province":"sindh","city":"karachi","town":"orangi","name":"mominabad","label":{"Urdu":"مومن آباد","Roman Urdu":"Mominabad","English":"Mominabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"haryana_colony","label":{"Urdu":"حریانہ کالونی","Roman Urdu":"Haryana Colony","English":"Haryana Colony"}},{"province":"sindh","city":"karachi","town":"orangi","name":"hanifabad","label":{"Urdu":"حنیف آباد","Roman Urdu":"Hanifabad","English":"Hanifabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"mohammad_nagar","label":{"Urdu":"محمد نگر","Roman Urdu":"Mohammad Nagar","English":"Mohammad Nagar"}},{"province":"sindh","city":"karachi","town":"orangi","name":"madina_colony_orangi","label":{"Urdu":"مدینہ کالونی اورنگی","Roman Urdu":"Madina Colony Orangi","English":"Madina Colony Orangi"}},{"province":"sindh","city":"karachi","town":"orangi","name":"ghaziabad","label":{"Urdu":"غازی آباد","Roman Urdu":"Ghaziabad","English":"Ghaziabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"chisti_nagar","label":{"Urdu":"چشتی نگر","Roman Urdu":"Chisti Nagar","English":"Chisti Nagar"}},{"province":"sindh","city":"karachi","town":"orangi","name":"bilal_colony_orangi","label":{"Urdu":"بلال کالونی اورنگی","Roman Urdu":"Bilal Colony Orangi","English":"Bilal Colony Orangi"}},{"province":"sindh","city":"karachi","town":"orangi","name":"iqbal_baloch_colony","label":{"Urdu":"اقبال بلوچ کالونی","Roman Urdu":"Iqbal Baloch Colony","English":"Iqbal Baloch Colony"}},{"province":"sindh","city":"karachi","town":"orangi","name":"ghabool_town","label":{"Urdu":"گبول ٹاوَن","Roman Urdu":"Ghabool Town","English":"Ghabool Town"}},{"province":"sindh","city":"karachi","town":"orangi","name":"data_nagar","label":{"Urdu":"داتا نگر","Roman Urdu":"Data Nagar","English":"Data Nagar"}},{"province":"sindh","city":"karachi","town":"orangi","name":"mujahidabad","label":{"Urdu":"مجاہد آباد","Roman Urdu":"Mujahidabad","English":"Mujahidabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"baloch_goth","label":{"Urdu":"بلوچ گوٹھ","Roman Urdu":"Baloch Goth","English":"Baloch Goth"}},{"province":"sindh","city":"karachi","town":"saddar","name":"old_haji_camp","label":{"Urdu":"پرانہ حاجی کیمپ","Roman Urdu":"Old Haji Camp","English":"Old Haji Camp"}},{"province":"sindh","city":"karachi","town":"saddar","name":"garden","label":{"Urdu":"گارڈن","Roman Urdu":"Garden","English":"Garden"}},{"province":"sindh","city":"karachi","town":"saddar","name":"kharadar","label":{"Urdu":"کھارادر","Roman Urdu":"Kharadar","English":"Kharadar"}},{"province":"sindh","city":"karachi","town":"saddar","name":"city_railway_colony","label":{"Urdu":"سٹی ریلوے کالونی","Roman Urdu":"City Railway Colony","English":"City Railway Colony"}},{"province":"sindh","city":"karachi","town":"saddar","name":"nanak_wara","label":{"Urdu":"ناناک واڑا","Roman Urdu":"Nanak Wara","English":"Nanak Wara"}},{"province":"sindh","city":"karachi","town":"saddar","name":"gazdarabad","label":{"Urdu":"گزدرآباد","Roman Urdu":"Gazdarabad","English":"Gazdarabad"}},{"province":"sindh","city":"karachi","town":"saddar","name":"millat_nagar_islam_pura","label":{"Urdu":"ملت نگر اسلام پورا","Roman Urdu":"Millat Nagar/Islam Pura","English":"Millat Nagar/Islam Pura"}},{"province":"sindh","city":"karachi","town":"saddar","name":"saddar_uc","label":{"Urdu":"صدر یو سی","Roman Urdu":"Saddar UC","English":"Saddar UC"}},{"province":"sindh","city":"karachi","town":"saddar","name":"civil_line","label":{"Urdu":"سول لائن","Roman Urdu":"Civil Line","English":"Civil Line"}},{"province":"sindh","city":"karachi","town":"saddar","name":"clifton","label":{"Urdu":"کلفٹن","Roman Urdu":"Clifton","English":"Clifton"}},{"province":"sindh","city":"karachi","town":"saddar","name":"kehkashan","label":{"Urdu":"کہکشان","Roman Urdu":"Kehkashan","English":"Kehkashan"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"natha_khan_goth","label":{"Urdu":"ناتھا خان گوٹھ","Roman Urdu":"Natha Khan Goth","English":"Natha Khan Goth"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"pak_sadat_colony","label":{"Urdu":"پاک صدر کالونی","Roman Urdu":"Pak Sadat Colony","English":"Pak Sadat Colony"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"drigh_colony","label":{"Urdu":"ڈرگ کالونی","Roman Urdu":"Drigh Colony","English":"Drigh Colony"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"raita_plot","label":{"Urdu":"رائتا پلاٹ","Roman Urdu":"Raita Plot","English":"Raita Plot"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"moria_khan_goth","label":{"Urdu":"موریا خان گوٹھ","Roman Urdu":"Moria Khan Goth","English":"Moria Khan Goth"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"rafa_e_aam_society","label":{"Urdu":"رفا عام سوسا ئٹی","Roman Urdu":"Rafa-e-Aam Society","English":"Rafa-e-Aam Society"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"al_falah_society","label":{"Urdu":"الفلاح سوسا ئٹی","Roman Urdu":"Al-Falah Society","English":"Al-Falah Society"}},{"province":"sindh","city":"karachi","town":"site","name":"pak_colony","label":{"Urdu":"پاک کالونی","Roman Urdu":"Pak Colony","English":"Pak Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"old_golimar","label":{"Urdu":"پرانہ گولی مار","Roman Urdu":"Old Golimar","English":"Old Golimar"}},{"province":"sindh","city":"karachi","town":"site","name":"jahanabad","label":{"Urdu":"جہان آباد","Roman Urdu":"Jahanabad","English":"Jahanabad"}},{"province":"sindh","city":"karachi","town":"site","name":"metrovil","label":{"Urdu":"میٹروویل","Roman Urdu":"Metrovil","English":"Metrovil"}},{"province":"sindh","city":"karachi","town":"site","name":"bhawani_chali","label":{"Urdu":"بہوانی چالی","Roman Urdu":"Bhawani Chali","English":"Bhawani Chali"}},{"province":"sindh","city":"karachi","town":"site","name":"frontier_colony","label":{"Urdu":"فرونٹر کالونی","Roman Urdu":"Frontier Colony","English":"Frontier Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"banaras_colony","label":{"Urdu":"بنارس کالونی","Roman Urdu":"Banaras Colony","English":"Banaras Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"qasba_colony","label":{"Urdu":"قصبہ کالونی","Roman Urdu":"Qasba Colony","English":"Qasba Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"islamia_colony","label":{"Urdu":"اسلامیہ کالونی","Roman Urdu":"Islamia Colony","English":"Islamia Colony"}},{"province":"na","city":"na","town":"na","name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}},{"province":"na","city":"na","town":"na","name":"not_applicable","label":{"Urdu":"قابل اطلاق نہیں","Roman Urdu":"Qaabil-e-atlaaq nahi","English":"Not Applicable"}}],"gender":[{"instance":{"openmrs_code":"1534AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"male","label":{"Urdu":"مرد/ لڑکا","Roman Urdu":"Mard/larka","English":"Male"}},{"instance":{"openmrs_code":"1535AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"female","label":{"Urdu":"عورت/لڑکی","Roman Urdu":"Aurat/larki","English":"Female"}},{"instance":{"openmrs_code":"163163AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"transgender","label":{"Urdu":"خواجہ سرہ","Roman Urdu":"Khwaja sira","English":"Transgender"}}],"vaccines":[{"instance":{"openmrs_code":"1570AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"bcg","label":{"Urdu":"بی سی جی","Roman Urdu":"BCG","English":"BCG"}},{"instance":{"openmrs_code":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv0","label":{"Urdu":"او پی وی 0","Roman Urdu":"OPV 0","English":"OPV 0"}},{"instance":{"openmrs_code":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv1","label":{"Urdu":"پی سی وی 1","Roman Urdu":"PCV 1","English":"PCV 1"}},{"instance":{"openmrs_code":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv1","label":{"Urdu":"او پی وی 1","Roman Urdu":"OPV 1","English":"OPV 1"}},{"instance":{"openmrs_code":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta1","label":{"Urdu":"پینٹا ویلنٹ 1","Roman Urdu":"Pentavalent 1","English":"Pentavalent 1"}},{"instance":{"openmrs_code":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv2","label":{"Urdu":"پی سی وی 2","Roman Urdu":"PCV 2","English":"PCV 2"}},{"instance":{"openmrs_code":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv2","label":{"Urdu":"او پی وی 2","Roman Urdu":"OPV 2","English":"OPV 2"}},{"instance":{"openmrs_code":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta2","label":{"Urdu":"پینٹا ویلنٹ 2","Roman Urdu":"Pentavalent 2","English":"Pentavalent 2"}},{"instance":{"openmrs_code":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv3","label":{"Urdu":"پی سی وی 3","Roman Urdu":"PCV 3","English":"PCV 3"}},{"instance":{"openmrs_code":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv3","label":{"Urdu":"او پی وی 3","Roman Urdu":"OPV 3","English":"OPV 3"}},{"instance":{"openmrs_code":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta3","label":{"Urdu":"پینٹا ویلنٹ 3","Roman Urdu":"Pentavalent 3","English":"Pentavalent 3"}},{"instance":{"openmrs_code":"82242AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ipv","label":{"Urdu":"آئی پی وی","Roman Urdu":"IPV","English":"IPV"}},{"instance":{"openmrs_code":"79409AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"measles1","label":{"Urdu":"خسرہ 1","Roman Urdu":"Khasra 1","English":"Measles 1"}},{"instance":{"openmrs_code":"79409AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"measles2","label":{"Urdu":"خسرہ 2","Roman Urdu":"Khasra 2","English":"Measles 2"}}],"towns":[{"province":"sindh","city":"karachi","name":"korangi","label":{"Urdu":"کورنگی","Roman Urdu":"Korangi","English":"Korangi"}},{"province":"sindh","city":"karachi","name":"landhi","label":{"Urdu":"لانڈھی","Roman Urdu":"Landhi","English":"Landhi"}},{"province":"sindh","city":"karachi","name":"baldia","label":{"Urdu":"بلدیہ","Roman Urdu":"Baldia","English":"Baldia"}},{"province":"sindh","city":"karachi","name":"bin_qasim","label":{"Urdu":"بن قاسم","Roman Urdu":"Bin Qasim","English":"Bin Qasim"}},{"province":"sindh","city":"karachi","name":"gadap","label":{"Urdu":"گڈاپ","Roman Urdu":"Gadap","English":"Gadap"}},{"province":"sindh","city":"karachi","name":"gulberg","label":{"Urdu":"گلبرگ","Roman Urdu":"Gulberg","English":"Gulberg"}},{"province":"sindh","city":"karachi","name":"gulshan","label":{"Urdu":"گلشن","Roman Urdu":"Gulshan","English":"Gulshan"}},{"province":"sindh","city":"karachi","name":"jamshed","label":{"Urdu":"جمشید","Roman Urdu":"Jamshed","English":"Jamshed"}},{"province":"sindh","city":"karachi","name":"kiamari","label":{"Urdu":"کیماری","Roman Urdu":"Kiamari","English":"Kiamari"}},{"province":"sindh","city":"karachi","name":"liaquatabad","label":{"Urdu":"لیاقت آباد","Roman Urdu":"Liaquatabad","English":"Liaquatabad"}},{"province":"sindh","city":"karachi","name":"lyari","label":{"Urdu":"لیاری","Roman Urdu":"Lyari","English":"Lyari"}},{"province":"sindh","city":"karachi","name":"malir","label":{"Urdu":"ملیر","Roman Urdu":"Malir","English":"Malir"}},{"province":"sindh","city":"karachi","name":"new_karachi","label":{"Urdu":"نیو کراچی","Roman Urdu":"New Karachi","English":"New Karachi"}},{"province":"sindh","city":"karachi","name":"north_nazimabad","label":{"Urdu":"نارتھ ناظم آباد","Roman Urdu":"North Nazimabad","English":"North Nazimabad"}},{"province":"sindh","city":"karachi","name":"orangi","label":{"Urdu":"اورنگی","Roman Urdu":"Orangi","English":"Orangi"}},{"province":"sindh","city":"karachi","name":"saddar","label":{"Urdu":"صدر","Roman Urdu":"Saddar","English":"Saddar"}},{"province":"sindh","city":"karachi","name":"shah_faisal","label":{"Urdu":"شاہ فیصل","Roman Urdu":"Shah Faisal","English":"Shah Faisal"}},{"province":"sindh","city":"karachi","name":"site","label":{"Urdu":"سائٹ","Roman Urdu":"S.I.T.E.","English":"S.I.T.E."}},{"province":"na","city":"na","name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}},{"province":"na","city":"na","name":"not_applicable","label":{"Urdu":"قابل اطلاق نہیں","Roman Urdu":"Qaabil-e-atlaaq nahi","English":"Not Applicable"}}],"cities":[{"province":"sindh","name":"karachi","label":{"Urdu":"کراچی","Roman Urdu":"Karachi","English":"Karachi"}},{"province":"punjab","name":"hafizabad","label":{"Urdu":"حافظ آباد","Roman Urdu":"Hafizabad","English":"Hafizabad"}},{"province":"punjab","name":"muzaffargarh","label":{"Urdu":"مظفر گڑھ","Roman Urdu":"Muzaffargarh","English":"Muzaffargarh"}},{"province":"na","name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}},{"province":"na","name":"not_applicable","label":{"Urdu":"قابل اطلاق نہیں","Roman Urdu":"Qaabil-e-atlaaq nahi","English":"Not Applicable"}}],"yes_no":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}]},"instance":{"encounter_type":"Off Site Child Vaccination Follow Up"},"version":"201604260935","id_string":"offsite_child_vaccination_followup","type":"survey","children":[{"type":"hidden","name":"provider_uc"},{"type":"hidden","name":"provider_town"},{"type":"hidden","name":"provider_city"},{"type":"hidden","name":"provider_province"},{"type":"hidden","name":"existing_first_name"},{"type":"hidden","name":"existing_last_name"},{"type":"hidden","name":"existing_mother_name"},{"type":"hidden","name":"existing_gender"},{"type":"hidden","name":"existing_birth_date"},{"type":"hidden","name":"existing_client_reg_date"},{"type":"hidden","name":"existing_landmark"},{"type":"hidden","name":"existing_address1"},{"type":"hidden","name":"existing_union_council"},{"type":"hidden","name":"existing_town"},{"type":"hidden","name":"existing_city_village"},{"type":"hidden","name":"existing_province"},{"type":"hidden","name":"existing_union_councilname"},{"type":"hidden","name":"existing_townname"},{"type":"hidden","name":"existing_city_villagename"},{"type":"hidden","name":"existing_provincename"},{"type":"hidden","name":"existing_ethnicity"},{"type":"hidden","name":"existing_program_client_id"},{"type":"hidden","name":"existing_epi_card_number"},{"type":"hidden","name":"existing_child_was_suffering_from_a_disease_at_birth"},{"type":"hidden","name":"existing_reminders_approval"},{"type":"hidden","name":"existing_contact_phone_number"},{"type":"hidden","name":"e_bcg"},{"type":"hidden","name":"e_opv0"},{"type":"hidden","name":"e_penta2"},{"type":"hidden","name":"e_penta1"},{"type":"hidden","name":"e_penta3"},{"type":"hidden","name":"e_opv1"},{"type":"hidden","name":"e_opv2"},{"type":"hidden","name":"e_opv3"},{"type":"hidden","name":"e_pcv1"},{"type":"hidden","name":"e_pcv2"},{"type":"hidden","name":"e_pcv3"},{"type":"hidden","name":"e_ipv"},{"type":"hidden","name":"e_measles1"},{"type":"hidden","name":"e_measles2"},{"type":"hidden","name":"provider_id"},{"instance":{"openmrs_entity_id":"location_id","openmrs_entity":"encounter"},"type":"hidden","name":"provider_location_id"},{"type":"hidden","name":"provider_location_name"},{"type":"note","name":"provider_location_note","label":{"Urdu":"شہر: ${provider_city} ; ٹائون: ${provider_town} ; یوسی: ${provider_uc} ; سینٹرکا نام: ${provider_location_name}","English":"City: ${provider_city} ; Town: ${provider_town} ; UC: ${provider_uc} ; Center Name: ${provider_location_name}","Roman Urdu":"Shehr: ${provider_city} ; Town: ${provider_town} ; UC: ${provider_uc} ; Center ka Naam: ${provider_location_name}"}},{"instance":{"openmrs_entity_id":"163137AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"start","name":"start"},{"instance":{"openmrs_entity_id":"163138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"end","name":"end"},{"instance":{"openmrs_entity_id":"163286AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"today","name":"today"},{"instance":{"openmrs_entity_id":"163149AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"deviceid","name":"deviceid"},{"instance":{"openmrs_entity_id":"163150AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"subscriberid","name":"subscriberid"},{"instance":{"openmrs_entity_id":"163151AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"simserial","name":"simserial"},{"instance":{"openmrs_entity_id":"163152AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"phonenumber","name":"phonenumber"},{"bind":{"required":"yes"},"label":{"Urdu":"پروگرام میں اندراج کی تاریخ: ${existing_client_reg_date}","Roman Urdu":"Program mai andraj ki tareekh: ${existing_client_reg_date}","English":"Program Registration date: ${existing_client_reg_date}"},"type":"note","name":"existing_client_reg_date_note","hint":{"Urdu":"بچے کو ویکسین لگنے کی تاریخ","Roman Urdu":"Bachay ko vaccine lagnay ki tareekh","English":"Date on which child was vaccinated"}},{"bind":{"required":"yes"},"type":"note","name":"program_client_id_note","label":{"Urdu":"پروگرام آئی ڈی: ${existing_program_client_id}","Roman Urdu":"Program ID: ${existing_program_client_id}","English":"Program ID: ${existing_program_client_id}"}},{"bind":{"jr:constraintMsg":{"Urdu":"نمبر آٹھ ہندسوں پر مشتمل ہونا چاہئے","English":"Number should be 8 digits","Roman Urdu":"Number 8 hindason par mushtamil hona chahiye"},"required":"yes","constraint":"string-length(.) = 8"},"type":"integer","instance":{"openmrs_entity_id":"EPI Card Number","openmrs_entity":"person_attribute"},"name":"epi_card_number","label":{"Urdu":"ای پی آئی کارڈ نمبر: ${existing_epi_card_number}","English":"EPI Card Number: ${existing_epi_card_number}","Roman Urdu":"EPI Card Number: ${existing_epi_card_number}"}},{"bind":{"required":"yes"},"type":"note","name":"first_name_note","label":{"Urdu":"نام: ${existing_first_name}","Roman Urdu":"Naam: ${existing_first_name}","English":"First Name: ${existing_first_name}"}},{"bind":{"required":"yes"},"type":"note","name":"last_name_note","label":{"Urdu":"والد کا نام: ${existing_last_name}","Roman Urdu":"Waalid ka naam: ${existing_last_name}","English":"Last name: ${existing_last_name}"}},{"bind":{"calculate":"int((${today} - ${existing_birth_date}) div 30.42)"},"type":"calculate","name":"child_age","instance":{"openmrs_entity_id":"154384AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"type":"note","name":"calc_dob_note","label":{"Urdu":"بچے کی تاریخ پیدائش: ${existing_birth_date} (${child_age}) مہینے","English":"Child Date of Birth: ${existing_birth_date} (${child_age}) months","Roman Urdu":"Bachay ki tareekh-e-paidaish: ${existing_birth_date} (${child_age}) mahinay"}},{"bind":{"required":"yes"},"type":"note","name":"gender_note","label":{"Urdu":"جنس: ${existing_gender}","Roman Urdu":"Jins:${existing_gender}","English":"Gender: ${existing_gender}"}},{"type":"note","name":"mother_name_note","label":{"Urdu":"ماں کا نام: ${existing_mother_name}","English":"Mother's Name: ${existing_mother_name}","Roman Urdu":"Maa ka naam: ${existing_mother_name}"}},{"bind":{"required":"yes"},"type":"note","name":"exisiting_ethnicity_note","label":{"Urdu":"قومیت: ${existing_ethnicity}","Roman Urdu":"Qomiat: ${existing_ethnicity}","English":"Ethnicity: ${existing_ethnicity}"}},{"type":"note","name":"address","label":{"Urdu":"موجودہ پتہ: ${existing_address1}, ${existing_landmark}, ${existing_union_councilname}, ${existing_townname}, ${existing_city_villagename}, ${existing_provincename}","English":"Current Address: ${existing_address1}, ${existing_landmark}, ${existing_union_councilname}, ${existing_townname}, ${existing_city_villagename}, ${existing_provincename}","Roman Urdu":"Mojooda Address: ${existing_address1}, ${existing_landmark}, ${existing_union_councilname}, ${existing_townname}, ${existing_city_villagename}, ${existing_provincename}"}},{"label":{"Urdu":"کیا آپ کا گھر کا پتہ بدلا ہے؟","English":"Has your home address changed?","Roman Urdu":"Kya aap ka ghar ka pata badla hai?"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}],"name":"address_change"},{"control":{"appearance":"minimal"},"name":"province","default":"${provider_province}","bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"label":{"Urdu":"صوبہ","Roman Urdu":"Suba","English":"Province"},"instance":{"openmrs_entity":"person_address","openmrs_entity_id":"stateProvince","openmrs_entity_parent":"usual_residence"},"type":"select one","children":[{"name":"kpk","label":{"Urdu":"خیبر پختون خواہ","English":"Khyber Pakhtunkhwa","Roman Urdu":"Khyber Pakhtunkhwa"}},{"name":"sindh","label":{"Urdu":"سندھ","English":"Sindh","Roman Urdu":"Sindh"}},{"name":"balochistan","label":{"Urdu":"بلوچستان","English":"Balochistan","Roman Urdu":"Balochistan"}},{"name":"punjab","label":{"Urdu":"پنجاب","English":"Punjab","Roman Urdu":"Punjab"}},{"name":"gilgit_baltistan","label":{"Urdu":"گلگت بلتستان","English":"Gilgit Baltistan","Roman Urdu":"Gilgit Baltistan"}},{"name":"kashmir","label":{"Urdu":"کشمیر","English":"Kashmir","Roman Urdu":"Kashmir"}},{"name":"fata","label":{"Urdu":"فاٹا","English":"FATA","Roman Urdu":"FATA"}},{"name":"out_of_country","label":{"Urdu":"ملک سے باہر","English":"Out of Country","Roman Urdu":"Out of Country"}}]},{"control":{"appearance":"minimal"},"name":"city_village","choice_filter":"province=${province} or province='na'","default":"${provider_city}","bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"label":{"Urdu":"شہر","Roman Urdu":"Shehr","English":"City"},"itemset":"cities","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"cityVillage","openmrs_entity_parent":"usual_residence"},"type":"select one"},{"control":{"appearance":"minimal"},"name":"town","choice_filter":"(province=${province} and city=${city_village} ) or city='na'","bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"label":{"Urdu":"ٹاٰئون/ قصبہ/ بستی","Roman Urdu":"Town / Qasbah / Basti","English":"Town"},"itemset":"towns","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"town","openmrs_entity_parent":"usual_residence"},"type":"select one"},{"control":{"appearance":"minimal"},"name":"union_council","choice_filter":"(province=${province} and city=${city_village} and town=${town}) or town='na'","bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"label":{"Urdu":"یونین کونسل","Roman Urdu":"Union Council","English":"Union Council"},"itemset":"ucs","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"subTown","openmrs_entity_parent":"usual_residence"},"type":"select one"},{"bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"type":"text","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"address1","openmrs_entity_parent":"usual_residence"},"name":"address1","label":{"Urdu":"گھر کا پتہ","Roman Urdu":"Ghar ka pata","English":"Home Address"}},{"bind":{"relevant":"selected(${address_change}, 'yes')"},"type":"text","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"landmark","openmrs_entity_parent":"usual_residence"},"name":"landmark","label":{"Urdu":"گھر کے قریب کوئی مشہور جگہ","Roman Urdu":"Ghar ke qareeb koi mashoor jagah","English":"Land Mark"}},{"instance":{"openmrs_entity_id":"163277AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"geopoint","name":"center_gps","label":{"Urdu":"حاصل کردہ معلومات کی جگہ کے GPS کارڈینیٹس درج کریں","English":"Collect GPS coordinates of data entry location:","Roman Urdu":"Hasil karda malomaat ki jaga ke GPS coordinates darj karain"}},{"bind":{"required":"yes"},"type":"note","name":"child_was_suffering_from_a_disease_at_birth_note","label":{"Urdu":"کیا بچہ پیدائش کے وقت کسی مرض میں مبتلا تھا؟ ${existing_child_was_suffering_from_a_disease_at_birth}","Roman Urdu":"Kya bacha pedaaish k waqt kissi marz mai mubtila tha? ${existing_child_was_suffering_from_a_disease_at_birth}","English":"Child was suffering from a disease at birth: ${existing_child_was_suffering_from_a_disease_at_birth}"}},{"instance":{"openmrs_entity_id":"163162AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"text","name":"aefi","label":{"Urdu":"حفاظتی ٹیکوں کے مضر اثرات","English":"Temporary side-effects of immunization shots","Roman Urdu":"Hifazati teekon ke muzr asraat"}},{"name":"reminders_approval","bind":{"required":"yes"},"label":{"Urdu":"کیا آپ اپنے بچے کی اگلی ویکسین کی تاریخ کے لیے SMS موصول کرنا چاہتے ہیں؟ ${existing_reminders_approval}","English":"Are you willing to receive SMS reminders for your next visit? ${existing_reminders_approval}","Roman Urdu":"Kya aap apnay bachay ki agli vaccine ki tareekh ke liye SMS mausool karna chahtay hain? ${existing_reminders_approval}"},"instance":{"openmrs_entity_id":"163089AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}]},{"bind":{"jr:constraintMsg":{"Urdu":"فون نمبر گیارہ ہندسوں پر مشتمل اور مندرجہ ذیل شکل میں ہونا چاہئے: *********03","English":"Phone number should be 11 digits in the following format: 03*********","Roman Urdu":"Phone number 11 hindason par mushtamil aur mundarja zail shakal main hona chahiey: 03*********"},"relevant":"${reminders_approval}='yes'","constraint":"regex(., '^03[0-9]{9}$')"},"type":"text","instance":{"openmrs_entity_id":"159635AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"contact_phone_number","label":{"Urdu":"موبائل نمبر: ${existing_contact_phone_number}","English":"Mobile Number: ${existing_contact_phone_number}","Roman Urdu":"Mobile Number: ${existing_contact_phone_number}"}},{"bind":{"calculate":"${existing_birth_date} + 42"},"type":"calculate","name":"six_weeks"},{"bind":{"calculate":"${existing_birth_date} + 70"},"type":"calculate","name":"ten_weeks"},{"bind":{"calculate":"${existing_birth_date} + 98"},"type":"calculate","name":"forteen_weeks"},{"bind":{"calculate":"${existing_birth_date} + 245"},"type":"calculate","name":"nine_months"},{"bind":{"calculate":"${existing_birth_date} + 458"},"type":"calculate","name":"fifteen_months"},{"bind":{"relevant":"${e_bcg} != ''"},"type":"note","name":"bcg_note","label":{"Urdu":"${e_bcg}","Roman Urdu":"${e_bcg}","English":"${e_bcg}"}},{"bind":{"relevant":"${e_opv0} != ''"},"type":"note","name":"opv0_note","label":{"Urdu":"${e_opv0}","Roman Urdu":"${e_opv0}","English":"${e_opv0}"}},{"bind":{"relevant":"${e_penta2} != ''"},"type":"note","name":"opv1_note","label":{"Urdu":"${e_penta2}","Roman Urdu":"${e_penta2}","English":"${e_penta2}"}},{"bind":{"relevant":"${e_penta1} != ''"},"type":"note","name":"pcv1_note","label":{"Urdu":"${e_penta1}","Roman Urdu":"${e_penta1}","English":"${e_penta1}"}},{"bind":{"relevant":"${e_penta3} != ''"},"type":"note","name":"penta1_note","label":{"Urdu":"${e_penta3}","Roman Urdu":"${e_penta3}","English":"${e_penta3}"}},{"bind":{"relevant":"${e_opv1} != ''"},"type":"note","name":"opv2_note","label":{"Urdu":"${e_opv1}","Roman Urdu":"${e_opv1}","English":"${e_opv1}"}},{"bind":{"relevant":"${e_opv2} != ''"},"type":"note","name":"pcv2_note","label":{"Urdu":"${e_opv2}","Roman Urdu":"${e_opv2}","English":"${e_opv2}"}},{"bind":{"relevant":"${e_opv3} != ''"},"type":"note","name":"penta2_note","label":{"Urdu":"${e_opv3}","Roman Urdu":"${e_opv3}","English":"${e_opv3}"}},{"bind":{"relevant":"${e_pcv1} != ''"},"type":"note","name":"opv3_note","label":{"Urdu":"${e_pcv1}","Roman Urdu":"${e_pcv1}","English":"${e_pcv1}"}},{"bind":{"relevant":"${e_pcv2} != ''"},"type":"note","name":"pcv3_note","label":{"Urdu":"${e_pcv2}","Roman Urdu":"${e_pcv2}","English":"${e_pcv2}"}},{"bind":{"relevant":"${e_pcv3} != ''"},"type":"note","name":"penta3_note","label":{"Urdu":"${e_pcv3}","Roman Urdu":"${e_pcv3}","English":"${e_pcv3}"}},{"bind":{"relevant":"${e_ipv} != ''"},"type":"note","name":"ipv_note","label":{"Urdu":"${e_ipv}","Roman Urdu":"${e_ipv}","English":"${e_ipv}"}},{"bind":{"relevant":"${e_measles1} != ''"},"type":"note","name":"measles1_note","label":{"Urdu":"${e_measles1}","Roman Urdu":"${e_measles1}","English":"${e_measles1}"}},{"bind":{"relevant":"${e_measles2} != ''"},"type":"note","name":"measles2_note","label":{"Urdu":"${e_measles2}","Roman Urdu":"${e_measles2}","English":"${e_measles2}"}},{"control":{"appearance":"minimal"},"name":"vaccines","choice_filter":"name != if( ${e_bcg} != '', 'bcg' , '') and \nname != if( ${e_opv0} != '', 'opv0' , '') and \nname != if( ${e_penta1} != '', 'penta1' , '') and \nname != if( ${e_penta2} != '', 'penta2' , '') and \nname != if( ${e_penta3} != '', 'penta3' , '') and \nname != if( ${e_opv1} != '', 'opv1' , '') and \nname != if( ${e_opv2} != '', 'opv2' , '') and \nname != if( ${e_opv3} != '', 'opv3' , '') and \nname != if( ${e_pcv1} != '', 'pcv1' , '') and \nname != if( ${e_pcv2} != '', 'pcv2' , '') and \nname != if( ${e_pcv3} != '', 'pcv3' , '') and \nname != if( ${e_ipv} != '', 'ipv' , '') and \nname != if( ${e_measles1} != '', 'measles1' , '') and \nname != if( ${e_measles2} != '', 'measles2' , '')","label":{"Urdu":"پچھلی تاریخ جب کسی اور سینٹر پر ٹیکے لگواِے گیے یا قطرے پلائے گئے","Roman Urdu":"Pichli tareekh jab kissi aur center par teekay lagwaye gaye ya katray pilaey gaye","English":"Retro vaccines"},"itemset":"vaccines","instance":{"openmrs_entity":"concept","openmrs_entity_id":"984AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1421AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"select all that apply"},{"type":"group","children":[{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'bcg')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"886AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"bcg_retro","label":{"Urdu":"بی سی جی","Roman Urdu":"BCG","English":"BCG"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'opv0')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv0_retro","label":{"Urdu":"او پی وی 0","Roman Urdu":"OPV 0","English":"OPV 0"}},{"bind":{"relevant":"selected(${vaccines}, 'opv0')","calculate":"0"},"type":"calculate","name":"opv0_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'pcv1')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv1_retro","label":{"Urdu":"پی سی وی 1","Roman Urdu":"PCV1","English":"PCV1"}},{"bind":{"relevant":"selected(${vaccines}, 'pcv1')","calculate":"1"},"type":"calculate","name":"pcv1_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'opv1')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv1_retro","label":{"Urdu":"او پی وی1","Roman Urdu":"OPV 1","English":"OPV 1"}},{"bind":{"relevant":"selected(${vaccines}, 'opv1')","calculate":"1"},"type":"calculate","name":"opv1_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'penta1')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta1_retro","label":{"Urdu":"پینٹا ویلنٹ 1","Roman Urdu":"Pentavalent 1","English":"Pentavalent 1"}},{"bind":{"relevant":"selected(${vaccines}, 'penta1')","calculate":"1"},"type":"calculate","name":"penta1_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'pcv2')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv2_retro","label":{"Urdu":"پی سی وی 2","Roman Urdu":"PCV2","English":"PCV2"}},{"bind":{"relevant":"selected(${vaccines}, 'pcv2')","calculate":"2"},"type":"calculate","name":"pcv2_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'opv2')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv2_retro","label":{"Urdu":"او پی وی 2","Roman Urdu":"OPV 2","English":"OPV 2"}},{"bind":{"relevant":"selected(${vaccines}, 'opv2')","calculate":"2"},"type":"calculate","name":"opv2_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'penta2')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta2_retro","label":{"Urdu":"پینٹا ویلنٹ 2","Roman Urdu":"Pentavalent 2","English":"Pentavalent 2"}},{"bind":{"relevant":"selected(${vaccines}, 'penta2')","calculate":"2"},"type":"calculate","name":"penta2_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'pcv3')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv3_retro","label":{"Urdu":"پی سی وی 3","Roman Urdu":"PCV3","English":"PCV3"}},{"bind":{"relevant":"selected(${vaccines}, 'penta2')","calculate":"3"},"type":"calculate","name":"pcv3_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'opv3')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv3_retro","label":{"Urdu":"او پی وی3","Roman Urdu":"OPV 3","English":"OPV 3"}},{"bind":{"relevant":"selected(${vaccines}, 'opv3')","calculate":"3"},"type":"calculate","name":"opv3_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'penta3')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta3_retro","label":{"Urdu":"پینٹا ویلنٹ 3","Roman Urdu":"Pentavalent 3","English":"Pentavalent 3"}},{"bind":{"relevant":"selected(${vaccines}, 'penta3')","calculate":"3"},"type":"calculate","name":"penta3_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'ipv')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1422AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ipv_retro","label":{"Urdu":"آئی پی وی","Roman Urdu":"IPV","English":"IPV"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'measles1')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"measles1_retro","label":{"Urdu":"خسرہ 1","Roman Urdu":"Measles 1","English":"Measles 1"}},{"bind":{"relevant":"selected(${vaccines}, 'measles1')","calculate":"1"},"type":"calculate","name":"measles1_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'measles2')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"measles2_retro","label":{"Urdu":"خسرہ 2","Roman Urdu":"Measles2","English":"Measles2"}},{"bind":{"relevant":"selected(${vaccines}, 'measles2')","calculate":"2"},"type":"calculate","name":"measles2_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}}],"name":"vaccines_group"},{"control":{"appearance":"minimal"},"name":"vaccines_2","choice_filter":"name != if( ${e_bcg} != '', 'bcg' , '') and \nname != if( ${e_opv0} != '', 'opv0' , '') and \nname != if( ${e_penta2} != '', 'penta2' , '') and \nname != if( ${e_penta1} != '', 'penta1' , '') and \nname != if( ${e_penta3} != '', 'penta3' , '') and \nname != if( ${e_opv1} != '', 'opv1' , '') and \nname != if( ${e_opv2} != '', 'opv2' , '') and \nname != if( ${e_opv3} != '', 'opv3' , '') and \nname != if( ${e_pcv1} != '', 'pcv1' , '') and \nname != if( ${e_pcv2} != '', 'pcv2' , '') and \nname != if( ${e_pcv3} != '', 'pcv3' , '') and \nname != if( ${e_measles1} != '', 'measles1' , '') and \nname != if( ${e_measles2} != '', 'measles2' , '') and \nname != if(selected(${vaccines}, 'bcg'), 'bcg', '') and \nname != if(selected(${vaccines}, 'opv0'), 'opv0', '') and \nname != if(selected(${vaccines}, 'penta1'), 'penta1', '') and \nname != if(selected(${vaccines}, 'opv1'), 'opv1', '') and \nname != if(selected(${vaccines}, 'pcv1'), 'pcv1', '') and \nname != if(selected(${vaccines}, 'penta2'), 'penta2', '') and \nname != if(selected(${vaccines}, 'opv2'), 'opv2', '') and \nname != if(selected(${vaccines}, 'pcv2'), 'pcv2', '') and \nname != if(selected(${vaccines}, 'penta3'), 'penta3', '') and \nname != if(selected(${vaccines}, 'opv3'), 'opv3', '') and \nname != if(selected(${vaccines}, 'pcv3'), 'pcv3', '') and\nname != if(selected(${vaccines}, 'ipv'), 'ipv', '') and \nname != if(selected(${vaccines}, 'measles1'), 'measles1', '') and \nname != if(selected(${vaccines}, 'measles2'), 'measles2', '')","bind":{"required":"yes","constraint":"if(selected(${vaccines_2}, 'bcg') or selected(${vaccines_2}, 'opv0') , .>= ${existing_birth_date} and .<=${today}, if(selected(${vaccines_2}, 'opv1') or selected(${vaccines_2}, 'penta1'), .>= ${six_weeks} and .<=${today}, if(selected(${vaccines_2}, 'opv2') or selected(${vaccines_2}, 'penta2'), .>=${ten_weeks} and .<=${today}, if(selected(${vaccines_2}, 'opv3') or selected(${vaccines_2}, 'penta3'), .>=${forteen_weeks} and .<=${today}, if(selected(${vaccines_2}, 'measles1'), .>=${nine_months} and .<=${today}, if(selected(${vaccines_2}, 'measles2'), .>= ${fifteen_months} and .<=${today}))))))"},"label":{"Urdu":"آج کون کون سی ویکسین دی گئی ہیں؟","Roman Urdu":"Aaj kon kon si vaccine di gai hain?","English":"Vaccines administered"},"itemset":"vaccines","instance":{"openmrs_entity":"concept","openmrs_entity_id":"984AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1441AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"select all that apply"},{"name":"vaccination_date","default":"${today}","bind":{"required":"yes","constraint":"if(selected(${vaccines_2}, 'bcg') or selected(${vaccines_2}, 'opv0') , .>= ${existing_birth_date} and .<=${today}, if(selected(${vaccines_2}, 'opv1') or selected(${vaccines_2}, 'penta1'), .>= ${six_weeks} and .<=${today}, if(selected(${vaccines_2}, 'opv2') or selected(${vaccines_2}, 'penta2'), .>=${ten_weeks} and .<=${today}, if(selected(${vaccines_2}, 'opv3') or selected(${vaccines_2}, 'penta3'), .>=${forteen_weeks} and .<=${today}, if(selected(${vaccines_2}, 'measles1'), .>=${nine_months} and .<=${today}, if(selected(${vaccines_2}, 'measles2'), .>= ${fifteen_months} and .<=${today}))))))"},"label":{"Urdu":"تاریخ","English":"Vaccination date","Roman Urdu":"Tareekh"},"instance":{"openmrs_entity_id":"encounter_date","openmrs_entity":"encounter"},"type":"date"},{"bind":{"calculate":"if(selected(${vaccines_2}, 'bcg'),${vaccination_date},'')"},"type":"calculate","name":"bcg","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"886AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'opv0'),${vaccination_date},'')"},"type":"calculate","name":"opv0","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'opv0')","calculate":"0"},"type":"calculate","name":"opv0_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'pcv1'),${vaccination_date},'')"},"type":"calculate","name":"pcv1","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'pcv1')","calculate":"1"},"type":"calculate","name":"pcv1_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'opv1'),${vaccination_date},'')"},"type":"calculate","name":"opv1","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'opv1')","calculate":"1"},"type":"calculate","name":"opv1_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'penta1'),${vaccination_date},'')"},"type":"calculate","name":"penta1","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'penta1')","calculate":"1"},"type":"calculate","name":"penta1_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'pcv2'),${vaccination_date},'')"},"type":"calculate","name":"pcv2","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'pcv2')","calculate":"2"},"type":"calculate","name":"pcv2_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'opv2'),${vaccination_date},'')"},"type":"calculate","name":"opv2","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'opv2')","calculate":"2"},"type":"calculate","name":"opv2_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'penta2'),${vaccination_date},'')"},"type":"calculate","name":"penta2","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'penta2')","calculate":"2"},"type":"calculate","name":"penta2_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'pcv3'),${vaccination_date},'')"},"type":"calculate","name":"pcv3","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'pcv3')","calculate":"3"},"type":"calculate","name":"pcv3_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'opv3'),${vaccination_date},'')"},"type":"calculate","name":"opv3","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'opv3')","calculate":"3"},"type":"calculate","name":"opv3_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'penta3'),${vaccination_date},'')"},"type":"calculate","name":"penta3","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'penta3')","calculate":"3"},"type":"calculate","name":"penta3_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines}, 'ipv')","calculate":"if(selected(${vaccines_2}, 'ipv'),${vaccination_date},'')"},"type":"calculate","name":"ipv","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1422AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'measles1'),${vaccination_date},'')"},"type":"calculate","name":"measles1","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'measles1')","calculate":"1"},"type":"calculate","name":"measles1_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'measles2'),${vaccination_date},'')"},"type":"calculate","name":"measles2","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'measles2')","calculate":"2"},"type":"calculate","name":"measles2_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"control":{"bodyless":true},"type":"group","children":[{"bind":{"readonly":"true()","calculate":"concat('uuid:', uuid())"},"type":"calculate","name":"instanceID"}],"name":"meta"}]} \ No newline at end of file diff --git a/opensrp-register/src/test/resources/form/offsite_child_followup/form.xml b/opensrp-register/src/test/resources/form/offsite_child_followup/form.xml deleted file mode 100644 index 6599e47c89..0000000000 --- a/opensrp-register/src/test/resources/form/offsite_child_followup/form.xml +++ /dev/null @@ -1,1694 +0,0 @@ -
- - -

دوسرے سینٹر میں رجسٹرڈ بچّوں کا فالو اپ رجسٹر برائے ٹیکاجات - Off Site Child Follow Up Vaccination Register

-
-
- - کیا آپ کا گھر کا پتہ بدلا ہے؟ - Has your home address changed? - - Kya aap ka ghar ka pata badla hai? -
- - -
-
-
-
- - کیا آپ اپنے بچے کی اگلی ویکسین کی تاریخ کے لیے SMS موصول کرنا چاہتے ہیں؟ - - Are you willing to receive SMS reminders for your next visit? - - - Kya aap apnay bachay ki agli vaccine ki tareekh ke liye SMS mausool karna chahtay hain? - - * -
- - -
-
-
- - - - - - - - - - - - - -
- - -
diff --git a/opensrp-register/src/test/resources/form/offsite_child_followup/form_definition.json b/opensrp-register/src/test/resources/form/offsite_child_followup/form_definition.json deleted file mode 100644 index e8b17da725..0000000000 --- a/opensrp-register/src/test/resources/form/offsite_child_followup/form_definition.json +++ /dev/null @@ -1,459 +0,0 @@ -{ - "form_data_definition_version" : "1", - "form" : { - "bind_type" : "pkchild", - "default_bind_path" : "/model/instance/Offsite_Child_Vaccination_Followup/", - "fields" : [ { - "name" : "id", - "shouldLoadValue" : true - }, { - "name" : "provider_uc", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/provider_uc", - "shouldLoadValue" : true - }, { - "name" : "provider_town", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/provider_town", - "shouldLoadValue" : true - }, { - "name" : "provider_city", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/provider_city", - "shouldLoadValue" : true - }, { - "name" : "provider_province", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/provider_province", - "shouldLoadValue" : true - }, { - "name" : "existing_first_name", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_first_name", - "shouldLoadValue" : true - }, { - "name" : "existing_last_name", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_last_name", - "shouldLoadValue" : true - }, { - "name" : "existing_mother_name", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_mother_name", - "shouldLoadValue" : true - }, { - "name" : "existing_gender", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_gender", - "shouldLoadValue" : true - }, { - "name" : "existing_birth_date", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_birth_date", - "shouldLoadValue" : true - }, { - "name" : "existing_client_reg_date", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_client_reg_date", - "shouldLoadValue" : true - }, { - "name" : "existing_landmark", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_landmark", - "shouldLoadValue" : true - }, { - "name" : "existing_address1", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_address1", - "shouldLoadValue" : true - }, { - "name" : "existing_union_council", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_union_council", - "shouldLoadValue" : true - }, { - "name" : "existing_town", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_town", - "shouldLoadValue" : true - }, { - "name" : "existing_city_village", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_city_village", - "shouldLoadValue" : true - }, { - "name" : "existing_province", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_province", - "shouldLoadValue" : true - }, { - "name" : "existing_union_councilname", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_union_councilname", - "shouldLoadValue" : true - }, { - "name" : "existing_townname", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_townname", - "shouldLoadValue" : true - }, { - "name" : "existing_city_villagename", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_city_villagename", - "shouldLoadValue" : true - }, { - "name" : "existing_provincename", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_provincename", - "shouldLoadValue" : true - }, { - "name" : "existing_ethnicity", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_ethnicity", - "shouldLoadValue" : true - }, { - "name" : "existing_program_client_id", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_program_client_id", - "shouldLoadValue" : true - }, { - "name" : "existing_epi_card_number", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_epi_card_number", - "shouldLoadValue" : true - }, { - "name" : "existing_child_was_suffering_from_a_disease_at_birth", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_child_was_suffering_from_a_disease_at_birth", - "shouldLoadValue" : true - }, { - "name" : "existing_reminders_approval", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_reminders_approval", - "shouldLoadValue" : true - }, { - "name" : "existing_contact_phone_number", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_contact_phone_number", - "shouldLoadValue" : true - }, { - "name" : "e_bcg", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/e_bcg", - "shouldLoadValue" : true - }, { - "name" : "e_opv0", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/e_opv0", - "shouldLoadValue" : true - }, { - "name" : "e_penta2", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/e_penta2", - "shouldLoadValue" : true - }, { - "name" : "e_penta1", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/e_penta1", - "shouldLoadValue" : true - }, { - "name" : "e_penta3", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/e_penta3", - "shouldLoadValue" : true - }, { - "name" : "e_opv1", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/e_opv1", - "shouldLoadValue" : true - }, { - "name" : "e_opv2", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/e_opv2", - "shouldLoadValue" : true - }, { - "name" : "e_opv3", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/e_opv3", - "shouldLoadValue" : true - }, { - "name" : "e_pcv1", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/e_pcv1", - "shouldLoadValue" : true - }, { - "name" : "e_pcv2", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/e_pcv2", - "shouldLoadValue" : true - }, { - "name" : "e_pcv3", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/e_pcv3", - "shouldLoadValue" : true - }, { - "name" : "e_ipv", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/e_ipv", - "shouldLoadValue" : true - }, { - "name" : "e_measles1", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/e_measles1", - "shouldLoadValue" : true - }, { - "name" : "e_measles2", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/e_measles2", - "shouldLoadValue" : true - }, { - "name" : "provider_id", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/provider_id", - "shouldLoadValue" : true - }, { - "name" : "provider_location_id", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/provider_location_id", - "shouldLoadValue" : true - }, { - "name" : "provider_location_name", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/provider_location_name", - "shouldLoadValue" : true - }, { - "name" : "provider_location_note", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/provider_location_note" - }, { - "name" : "start", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/start" - }, { - "name" : "end", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/end" - }, { - "name" : "today", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/today" - }, { - "name" : "deviceid", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/deviceid" - }, { - "name" : "subscriberid", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/subscriberid" - }, { - "name" : "simserial", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/simserial" - }, { - "name" : "phonenumber", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/phonenumber" - }, { - "name" : "existing_client_reg_date_note", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_client_reg_date_note" - }, { - "name" : "program_client_id_note", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/program_client_id_note" - }, { - "name" : "epi_card_number", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/epi_card_number" - }, { - "name" : "first_name_note", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/first_name_note" - }, { - "name" : "last_name_note", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/last_name_note" - }, { - "name" : "child_age", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/child_age" - }, { - "name" : "calc_dob_note", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/calc_dob_note" - }, { - "name" : "gender_note", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/gender_note" - }, { - "name" : "mother_name_note", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/mother_name_note" - }, { - "name" : "exisiting_ethnicity_note", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/exisiting_ethnicity_note" - }, { - "name" : "address", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/address" - }, { - "name" : "address_change", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/address_change" - }, { - "name" : "province", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/province" - }, { - "name" : "city_village", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/city_village" - }, { - "name" : "town", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/town" - }, { - "name" : "union_council", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/union_council" - }, { - "name" : "address1", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/address1" - }, { - "name" : "landmark", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/landmark" - }, { - "name" : "center_gps", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/center_gps" - }, { - "name" : "child_was_suffering_from_a_disease_at_birth_note", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/child_was_suffering_from_a_disease_at_birth_note" - }, { - "name" : "aefi", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/aefi" - }, { - "name" : "reminders_approval", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/reminders_approval" - }, { - "name" : "contact_phone_number", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/contact_phone_number" - }, { - "name" : "six_weeks", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/six_weeks" - }, { - "name" : "ten_weeks", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/ten_weeks" - }, { - "name" : "forteen_weeks", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/forteen_weeks" - }, { - "name" : "nine_months", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/nine_months" - }, { - "name" : "fifteen_months", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/fifteen_months" - }, { - "name" : "vaccines", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines" - }, { - "name" : "bcg_retro", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/bcg_retro" - }, { - "name" : "opv0_retro", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/opv0_retro" - }, { - "name" : "opv0_dose", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/opv0_dose" - }, { - "name" : "pcv1_retro", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/pcv1_retro" - }, { - "name" : "pcv1_dose", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/pcv1_dose" - }, { - "name" : "opv1_retro", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/opv1_retro" - }, { - "name" : "opv1_dose", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/opv1_dose" - }, { - "name" : "penta1_retro", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/penta1_retro" - }, { - "name" : "penta1_dose", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/penta1_dose" - }, { - "name" : "pcv2_retro", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/pcv2_retro" - }, { - "name" : "pcv2_dose", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/pcv2_dose" - }, { - "name" : "opv2_retro", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/opv2_retro" - }, { - "name" : "opv2_dose", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/opv2_dose" - }, { - "name" : "penta2_retro", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/penta2_retro" - }, { - "name" : "penta2_dose", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/penta2_dose" - }, { - "name" : "pcv3_retro", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/pcv3_retro" - }, { - "name" : "pcv3_dose", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/pcv3_dose" - }, { - "name" : "opv3_retro", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/opv3_retro" - }, { - "name" : "opv3_dose", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/opv3_dose" - }, { - "name" : "penta3_retro", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/penta3_retro" - }, { - "name" : "penta3_dose", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/penta3_dose" - }, { - "name" : "ipv_retro", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/ipv_retro" - }, { - "name" : "measles1_retro", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/measles1_retro" - }, { - "name" : "measles1_dose", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/measles1_dose" - }, { - "name" : "measles2_retro", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/measles2_retro" - }, { - "name" : "measles2_dose", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/measles2_dose" - }, { - "name" : "vaccines_2", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_2" - }, { - "name" : "vaccination_date", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccination_date" - }, { - "name" : "bcg", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/bcg" - }, { - "name" : "opv0", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/opv0" - }, { - "name" : "opv0_dose_today", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/opv0_dose_today" - }, { - "name" : "pcv1", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/pcv1" - }, { - "name" : "pcv1_dose_today", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/pcv1_dose_today" - }, { - "name" : "opv1", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/opv1" - }, { - "name" : "opv1_dose_today", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/opv1_dose_today" - }, { - "name" : "penta1", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/penta1" - }, { - "name" : "penta1_dose_today", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/penta1_dose_today" - }, { - "name" : "pcv2", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/pcv2" - }, { - "name" : "pcv2_dose_today", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/pcv2_dose_today" - }, { - "name" : "opv2", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/opv2" - }, { - "name" : "opv2_dose_today", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/opv2_dose_today" - }, { - "name" : "penta2", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/penta2" - }, { - "name" : "penta2_dose_today", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/penta2_dose_today" - }, { - "name" : "pcv3", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/pcv3" - }, { - "name" : "pcv3_dose_today", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/pcv3_dose_today" - }, { - "name" : "opv3", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/opv3" - }, { - "name" : "opv3_dose_today", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/opv3_dose_today" - }, { - "name" : "penta3", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/penta3" - }, { - "name" : "penta3_dose_today", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/penta3_dose_today" - }, { - "name" : "ipv", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/ipv" - }, { - "name" : "measles1", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/measles1" - }, { - "name" : "measles1_dose_today", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/measles1_dose_today" - }, { - "name" : "measles2", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/measles2" - }, { - "name" : "measles2_dose_today", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/measles2_dose_today" - }, { - "name" : "instanceID", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/meta/instanceID" - } ] - } -} \ No newline at end of file diff --git a/opensrp-register/src/test/resources/form/offsite_child_followup/model.xml b/opensrp-register/src/test/resources/form/offsite_child_followup/model.xml deleted file mode 100644 index 4277bfe50b..0000000000 --- a/opensrp-register/src/test/resources/form/offsite_child_followup/model.xml +++ /dev/null @@ -1,1697 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - ${provider_province} - ${provider_city} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ${today} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - static_instance-provinces-0 - kpk - - - static_instance-provinces-1 - sindh - - - static_instance-provinces-2 - balochistan - - - static_instance-provinces-3 - punjab - - - static_instance-provinces-4 - gilgit_baltistan - - - static_instance-provinces-5 - kashmir - - - static_instance-provinces-6 - fata - - - static_instance-provinces-7 - out_of_country - - - - - - - static_instance-ucs-0 - sindh - karachi - korangi - bilal_colony - - - static_instance-ucs-1 - sindh - karachi - korangi - nasir_colony - - - static_instance-ucs-2 - sindh - karachi - korangi - chakra_goth - - - static_instance-ucs-3 - sindh - karachi - korangi - mustafa_taj_colony - - - static_instance-ucs-4 - sindh - karachi - korangi - hundred_quarters - - - static_instance-ucs-5 - sindh - karachi - korangi - gulzar_colony - - - static_instance-ucs-6 - sindh - karachi - korangi - korangi_sector_33 - - - static_instance-ucs-7 - sindh - karachi - korangi - zaman_town - - - static_instance-ucs-8 - sindh - karachi - korangi - hasrat_mohani_colony - - - static_instance-ucs-9 - sindh - karachi - baldia - gulshan_e_ghazi - - - static_instance-ucs-10 - sindh - karachi - baldia - ittehad_town - - - static_instance-ucs-11 - sindh - karachi - baldia - islam_nagar - - - static_instance-ucs-12 - sindh - karachi - baldia - nai_abadi - - - static_instance-ucs-13 - sindh - karachi - baldia - saeedabad - - - static_instance-ucs-14 - sindh - karachi - baldia - muslim_mujahid_colony - - - static_instance-ucs-15 - sindh - karachi - baldia - muhajir_camp - - - static_instance-ucs-16 - sindh - karachi - baldia - rasheedabad - - - static_instance-ucs-17 - sindh - karachi - bin_qasim - ibrahim_hyderi - - - static_instance-ucs-18 - sindh - karachi - bin_qasim - rehri - - - static_instance-ucs-19 - sindh - karachi - bin_qasim - cattle_colony - - - static_instance-ucs-20 - sindh - karachi - bin_qasim - qaidabad - - - static_instance-ucs-21 - sindh - karachi - bin_qasim - landhi_colony - - - static_instance-ucs-22 - sindh - karachi - bin_qasim - gulshan_e_hadeed - - - static_instance-ucs-23 - sindh - karachi - bin_qasim - gaghar - - - static_instance-ucs-24 - sindh - karachi - gadap - murad_memon_goth - - - static_instance-ucs-25 - sindh - karachi - gadap - darsano_chana - - - static_instance-ucs-26 - sindh - karachi - gadap - gujro - - - static_instance-ucs-27 - sindh - karachi - gadap - songal - - - static_instance-ucs-28 - sindh - karachi - gadap - maymarabad - - - static_instance-ucs-29 - sindh - karachi - gadap - yousuf_goth - - - static_instance-ucs-30 - sindh - karachi - gadap - manghopir - - - static_instance-ucs-31 - sindh - karachi - gulberg - azizabad - - - static_instance-ucs-32 - sindh - karachi - gulberg - karimabad - - - static_instance-ucs-33 - sindh - karachi - gulberg - aisha_manzil - - - static_instance-ucs-34 - sindh - karachi - gulberg - ancholi - - - static_instance-ucs-35 - sindh - karachi - gulberg - naseerabad - - - static_instance-ucs-36 - sindh - karachi - gulberg - yaseenabad - - - static_instance-ucs-37 - sindh - karachi - gulberg - water_pump - - - static_instance-ucs-38 - sindh - karachi - gulberg - shafiq_mill_colony - - - static_instance-ucs-39 - sindh - karachi - gulshan - delhi_mercantile_society - - - static_instance-ucs-40 - sindh - karachi - gulshan - civic_centre - - - static_instance-ucs-41 - sindh - karachi - gulshan - pir_ilahi_buksh_colony - - - static_instance-ucs-42 - sindh - karachi - gulshan - essa_nagri - - - static_instance-ucs-43 - sindh - karachi - gulshan - gulshan_e_iqbal - - - static_instance-ucs-44 - sindh - karachi - gulshan - gillani_railway_station - - - static_instance-ucs-45 - sindh - karachi - gulshan - shanti_nagar - - - static_instance-ucs-46 - sindh - karachi - gulshan - jamali_colony - - - static_instance-ucs-47 - sindh - karachi - gulshan - gulshan_e_iqbal_ii - - - static_instance-ucs-48 - sindh - karachi - gulshan - pehlwan_goth - - - static_instance-ucs-49 - sindh - karachi - gulshan - matrovil_colony - - - static_instance-ucs-50 - sindh - karachi - gulshan - gulzar_e_hijri - - - static_instance-ucs-51 - sindh - karachi - gulshan - safooran_goth - - - static_instance-ucs-52 - sindh - karachi - jamshed - akhtar_colony - - - static_instance-ucs-53 - sindh - karachi - jamshed - manzoor_colony - - - static_instance-ucs-54 - sindh - karachi - jamshed - azam_basti - - - static_instance-ucs-55 - sindh - karachi - jamshed - chanesar_goth - - - static_instance-ucs-56 - sindh - karachi - jamshed - mahmudabad - - - static_instance-ucs-57 - sindh - karachi - jamshed - pechs - - - static_instance-ucs-58 - sindh - karachi - jamshed - pechs_ii - - - static_instance-ucs-59 - sindh - karachi - jamshed - jut_line - - - static_instance-ucs-60 - sindh - karachi - jamshed - central_jacob_lines - - - static_instance-ucs-61 - sindh - karachi - jamshed - jamshed_quarters - - - static_instance-ucs-62 - sindh - karachi - jamshed - garden_east - - - static_instance-ucs-63 - sindh - karachi - jamshed - soldier_bazar - - - static_instance-ucs-64 - sindh - karachi - jamshed - pakistan_quarters - - - static_instance-ucs-65 - sindh - karachi - kiamari - bhutta_village - - - static_instance-ucs-66 - sindh - karachi - kiamari - sultanabad - - - static_instance-ucs-67 - sindh - karachi - kiamari - kiamari_uc - - - static_instance-ucs-68 - sindh - karachi - kiamari - baba_bhit - - - static_instance-ucs-69 - sindh - karachi - kiamari - machar_colony - - - static_instance-ucs-70 - sindh - karachi - kiamari - maripur - - - static_instance-ucs-71 - sindh - karachi - kiamari - shershah - - - static_instance-ucs-72 - sindh - karachi - kiamari - gabo_pat - - - static_instance-ucs-73 - sindh - karachi - landhi - muzafarabad - - - static_instance-ucs-74 - sindh - karachi - landhi - muslimabad - - - static_instance-ucs-75 - sindh - karachi - landhi - dawood_chowrangi - - - static_instance-ucs-76 - sindh - karachi - landhi - moinabad - - - static_instance-ucs-77 - sindh - karachi - landhi - sharafi_goth - - - static_instance-ucs-78 - sindh - karachi - landhi - bhutto_nagar - - - static_instance-ucs-79 - sindh - karachi - landhi - khawaja_ajmeer_colony - - - static_instance-ucs-80 - sindh - karachi - landhi - landhi_uc - - - static_instance-ucs-81 - sindh - karachi - landhi - awami_colony - - - static_instance-ucs-82 - sindh - karachi - landhi - burmee_colony - - - static_instance-ucs-83 - sindh - karachi - landhi - korangi_uc - - - static_instance-ucs-84 - sindh - karachi - landhi - sherabad - - - static_instance-ucs-85 - sindh - karachi - liaquatabad - rizvia_society - - - static_instance-ucs-86 - sindh - karachi - liaquatabad - firdous_colony - - - static_instance-ucs-87 - sindh - karachi - liaquatabad - super_market - - - static_instance-ucs-88 - sindh - karachi - liaquatabad - dak_khana - - - static_instance-ucs-89 - sindh - karachi - liaquatabad - qasimabad - - - static_instance-ucs-90 - sindh - karachi - liaquatabad - bandhani_colony - - - static_instance-ucs-91 - sindh - karachi - liaquatabad - sharifabad - - - static_instance-ucs-92 - sindh - karachi - liaquatabad - commercial_area - - - static_instance-ucs-93 - sindh - karachi - liaquatabad - mujahid_colony - - - static_instance-ucs-94 - sindh - karachi - liaquatabad - nazimabad - - - static_instance-ucs-95 - sindh - karachi - liaquatabad - abbasi_shaheed - - - static_instance-ucs-96 - sindh - karachi - lyari - agra_taj_colony - - - static_instance-ucs-97 - sindh - karachi - lyari - daryaabad - - - static_instance-ucs-98 - sindh - karachi - lyari - nawabad - - - static_instance-ucs-99 - sindh - karachi - lyari - khada_memon_society - - - static_instance-ucs-100 - sindh - karachi - lyari - baghdadi - - - static_instance-ucs-101 - sindh - karachi - lyari - shah_baig_line - - - static_instance-ucs-102 - sindh - karachi - lyari - bihar_colony - - - static_instance-ucs-103 - sindh - karachi - lyari - ragiwara - - - static_instance-ucs-104 - sindh - karachi - lyari - singo_line - - - static_instance-ucs-105 - sindh - karachi - lyari - chakiwara - - - static_instance-ucs-106 - sindh - karachi - lyari - allama_iqbal_colony - - - static_instance-ucs-107 - sindh - karachi - malir - model_colony - - - static_instance-ucs-108 - sindh - karachi - malir - kala_board - - - static_instance-ucs-109 - sindh - karachi - malir - saudabad - - - static_instance-ucs-110 - sindh - karachi - malir - khokhra_par - - - static_instance-ucs-111 - sindh - karachi - malir - jafar_e_tayyar - - - static_instance-ucs-112 - sindh - karachi - malir - gharibabad - - - static_instance-ucs-113 - sindh - karachi - malir - ghazi_brohi_goth - - - static_instance-ucs-114 - sindh - karachi - new_karachi - kalyana - - - static_instance-ucs-115 - sindh - karachi - new_karachi - sir_syed_colony - - - static_instance-ucs-116 - sindh - karachi - new_karachi - fatima_jinnah_colony - - - static_instance-ucs-117 - sindh - karachi - new_karachi - godhra - - - static_instance-ucs-118 - sindh - karachi - new_karachi - abu_zar_ghaffari - - - static_instance-ucs-119 - sindh - karachi - new_karachi - hakim_ahsan - - - static_instance-ucs-120 - sindh - karachi - new_karachi - madina_colony - - - static_instance-ucs-121 - sindh - karachi - new_karachi - faisal_colony - - - static_instance-ucs-122 - sindh - karachi - new_karachi - khamiso_goth - - - static_instance-ucs-123 - sindh - karachi - new_karachi - mustufa_colony - - - static_instance-ucs-124 - sindh - karachi - new_karachi - khawaja_ajmeer_nagri - - - static_instance-ucs-125 - sindh - karachi - new_karachi - gulshan_e_saeed - - - static_instance-ucs-126 - sindh - karachi - new_karachi - shah_nawaz_bhutto_colony - - - static_instance-ucs-127 - sindh - karachi - north_nazimabad - paposh_nagar - - - static_instance-ucs-128 - sindh - karachi - north_nazimabad - pahar_ganj - - - static_instance-ucs-129 - sindh - karachi - north_nazimabad - khandu_goth - - - static_instance-ucs-130 - sindh - karachi - north_nazimabad - hyderi - - - static_instance-ucs-131 - sindh - karachi - north_nazimabad - sakhi_hassan - - - static_instance-ucs-132 - sindh - karachi - north_nazimabad - farooq_e_azam - - - static_instance-ucs-133 - sindh - karachi - north_nazimabad - nusrat_bhutto_colony - - - static_instance-ucs-134 - sindh - karachi - north_nazimabad - shadman_town - - - static_instance-ucs-135 - sindh - karachi - north_nazimabad - buffer_zone - - - static_instance-ucs-136 - sindh - karachi - north_nazimabad - buffer_zone_ii - - - static_instance-ucs-137 - sindh - karachi - orangi - mominabad - - - static_instance-ucs-138 - sindh - karachi - orangi - haryana_colony - - - static_instance-ucs-139 - sindh - karachi - orangi - hanifabad - - - static_instance-ucs-140 - sindh - karachi - orangi - mohammad_nagar - - - static_instance-ucs-141 - sindh - karachi - orangi - madina_colony_orangi - - - static_instance-ucs-142 - sindh - karachi - orangi - ghaziabad - - - static_instance-ucs-143 - sindh - karachi - orangi - chisti_nagar - - - static_instance-ucs-144 - sindh - karachi - orangi - bilal_colony_orangi - - - static_instance-ucs-145 - sindh - karachi - orangi - iqbal_baloch_colony - - - static_instance-ucs-146 - sindh - karachi - orangi - ghabool_town - - - static_instance-ucs-147 - sindh - karachi - orangi - data_nagar - - - static_instance-ucs-148 - sindh - karachi - orangi - mujahidabad - - - static_instance-ucs-149 - sindh - karachi - orangi - baloch_goth - - - static_instance-ucs-150 - sindh - karachi - saddar - old_haji_camp - - - static_instance-ucs-151 - sindh - karachi - saddar - garden - - - static_instance-ucs-152 - sindh - karachi - saddar - kharadar - - - static_instance-ucs-153 - sindh - karachi - saddar - city_railway_colony - - - static_instance-ucs-154 - sindh - karachi - saddar - nanak_wara - - - static_instance-ucs-155 - sindh - karachi - saddar - gazdarabad - - - static_instance-ucs-156 - sindh - karachi - saddar - millat_nagar_islam_pura - - - static_instance-ucs-157 - sindh - karachi - saddar - saddar_uc - - - static_instance-ucs-158 - sindh - karachi - saddar - civil_line - - - static_instance-ucs-159 - sindh - karachi - saddar - clifton - - - static_instance-ucs-160 - sindh - karachi - saddar - kehkashan - - - static_instance-ucs-161 - sindh - karachi - shah_faisal - natha_khan_goth - - - static_instance-ucs-162 - sindh - karachi - shah_faisal - pak_sadat_colony - - - static_instance-ucs-163 - sindh - karachi - shah_faisal - drigh_colony - - - static_instance-ucs-164 - sindh - karachi - shah_faisal - raita_plot - - - static_instance-ucs-165 - sindh - karachi - shah_faisal - moria_khan_goth - - - static_instance-ucs-166 - sindh - karachi - shah_faisal - rafa_e_aam_society - - - static_instance-ucs-167 - sindh - karachi - shah_faisal - al_falah_society - - - static_instance-ucs-168 - sindh - karachi - site - pak_colony - - - static_instance-ucs-169 - sindh - karachi - site - old_golimar - - - static_instance-ucs-170 - sindh - karachi - site - jahanabad - - - static_instance-ucs-171 - sindh - karachi - site - metrovil - - - static_instance-ucs-172 - sindh - karachi - site - bhawani_chali - - - static_instance-ucs-173 - sindh - karachi - site - frontier_colony - - - static_instance-ucs-174 - sindh - karachi - site - banaras_colony - - - static_instance-ucs-175 - sindh - karachi - site - qasba_colony - - - static_instance-ucs-176 - sindh - karachi - site - islamia_colony - - - static_instance-ucs-177 - na - na - na - other - - - static_instance-ucs-178 - na - na - na - not_applicable - - - - - - - static_instance-gender-0 - male - - - static_instance-gender-1 - female - - - static_instance-gender-2 - transgender - - - - - - - static_instance-vaccines-0 - bcg - - - static_instance-vaccines-1 - opv0 - - - static_instance-vaccines-2 - pcv1 - - - static_instance-vaccines-3 - opv1 - - - static_instance-vaccines-4 - penta11 - - - static_instance-vaccines-5 - pcv2 - - - static_instance-vaccines-6 - opv2 - - - static_instance-vaccines-7 - penta12 - - - static_instance-vaccines-8 - pcv3 - - - static_instance-vaccines-9 - opv3 - - - static_instance-vaccines-10 - penta13 - - - static_instance-vaccines-11 - ipv - - - static_instance-vaccines-12 - measles1 - - - static_instance-vaccines-13 - measles2 - - - - - - - static_instance-towns-0 - sindh - karachi - korangi - - - static_instance-towns-1 - sindh - karachi - landhi - - - static_instance-towns-2 - sindh - karachi - baldia - - - static_instance-towns-3 - sindh - karachi - bin_qasim - - - static_instance-towns-4 - sindh - karachi - gadap - - - static_instance-towns-5 - sindh - karachi - gulberg - - - static_instance-towns-6 - sindh - karachi - gulshan - - - static_instance-towns-7 - sindh - karachi - jamshed - - - static_instance-towns-8 - sindh - karachi - kiamari - - - static_instance-towns-9 - sindh - karachi - liaquatabad - - - static_instance-towns-10 - sindh - karachi - lyari - - - static_instance-towns-11 - sindh - karachi - malir - - - static_instance-towns-12 - sindh - karachi - new_karachi - - - static_instance-towns-13 - sindh - karachi - north_nazimabad - - - static_instance-towns-14 - sindh - karachi - orangi - - - static_instance-towns-15 - sindh - karachi - saddar - - - static_instance-towns-16 - sindh - karachi - shah_faisal - - - static_instance-towns-17 - sindh - karachi - site - - - static_instance-towns-18 - na - na - other - - - static_instance-towns-19 - na - na - not_applicable - - - - - - - static_instance-cities-0 - sindh - karachi - - - static_instance-cities-1 - punjab - hafizabad - - - static_instance-cities-2 - punjab - muzaffargarh - - - static_instance-cities-3 - na - other - - - static_instance-cities-4 - na - not_applicable - - - - - - - static_instance-yes_no-0 - yes - - - static_instance-yes_no-1 - no - - - - diff --git a/opensrp-register/src/test/resources/form/offsite_woman_followup/form.json b/opensrp-register/src/test/resources/form/offsite_woman_followup/form.json deleted file mode 100644 index 41c6d21a61..0000000000 --- a/opensrp-register/src/test/resources/form/offsite_woman_followup/form.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"Offsite_Woman_Followup_Form","title":"دوسرے سینٹر میں رجسٹرڈ خواتین فالواپ رجسٹر - Off Site Woman Follow Up Form","sms_keyword":"offsite_woman_followup_form","default_language":"English","choices":{"provinces":[{"name":"kpk","label":{"Urdu":"خیبر پختون خواہ","English":"Khyber Pakhtunkhwa","Roman Urdu":"Khyber Pakhtunkhwa"}},{"name":"sindh","label":{"Urdu":"سندھ","English":"Sindh","Roman Urdu":"Sindh"}},{"name":"balochistan","label":{"Urdu":"بلوچستان","English":"Balochistan","Roman Urdu":"Balochistan"}},{"name":"punjab","label":{"Urdu":"پنجاب","English":"Punjab","Roman Urdu":"Punjab"}},{"name":"gilgit_baltistan","label":{"Urdu":"گلگت بلتستان","English":"Gilgit Baltistan","Roman Urdu":"Gilgit Baltistan"}},{"name":"kashmir","label":{"Urdu":"کشمیر","English":"Kashmir","Roman Urdu":"Kashmir"}},{"name":"fata","label":{"Urdu":"فاٹا","English":"FATA","Roman Urdu":"FATA"}},{"name":"out_of_country","label":{"Urdu":"ملک سے باہر","English":"Out of Country","Roman Urdu":"Mulk se baahir"}}],"ucs":[{"province":"sindh","city":"karachi","town":"korangi","name":"bilal_colony","label":{"Urdu":"بلال کالونی","Roman Urdu":"Bilal Colony","English":"Bilal Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"nasir_colony","label":{"Urdu":"ناصر کالونی","Roman Urdu":"Nasir Colony","English":"Nasir Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"chakra_goth","label":{"Urdu":"چکرا گوٹھ","Roman Urdu":"Chakra Goth","English":"Chakra Goth"}},{"province":"sindh","city":"karachi","town":"korangi","name":"mustafa_taj_colony","label":{"Urdu":"مصطفی تاج کالونی","Roman Urdu":"Mustafa Taj Colony","English":"Mustafa Taj Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"hundred_quarters","label":{"Urdu":"ہنڈریڈ کوارٹر","Roman Urdu":"Hundred Quarters","English":"Hundred Quarters"}},{"province":"sindh","city":"karachi","town":"korangi","name":"gulzar_colony","label":{"Urdu":"گلزار کالونی","Roman Urdu":"Gulzar Colony","English":"Gulzar Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"korangi_sector_33","label":{"Urdu":"کورنگی سیکٹر 33","Roman Urdu":"Korangi Sector 33","English":"Korangi Sector 33"}},{"province":"sindh","city":"karachi","town":"korangi","name":"zaman_town","label":{"Urdu":"زمان ٹاوَن","Roman Urdu":"Zaman Town","English":"Zaman Town"}},{"province":"sindh","city":"karachi","town":"korangi","name":"hasrat_mohani_colony","label":{"Urdu":"حسرت موہانی کالونی","Roman Urdu":"Hasrat Mohani Colony","English":"Hasrat Mohani Colony"}},{"province":"sindh","city":"karachi","town":"baldia","name":"gulshan_e_ghazi","label":{"Urdu":"گلشن غازی","Roman Urdu":"Gulshan-e-Ghazi","English":"Gulshan-e-Ghazi"}},{"province":"sindh","city":"karachi","town":"baldia","name":"ittehad_town","label":{"Urdu":"اتحاد ٹاوَن","Roman Urdu":"Ittehad Town","English":"Ittehad Town"}},{"province":"sindh","city":"karachi","town":"baldia","name":"islam_nagar","label":{"Urdu":"اسلام نگر","Roman Urdu":"Islam Nagar","English":"Islam Nagar"}},{"province":"sindh","city":"karachi","town":"baldia","name":"nai_abadi","label":{"Urdu":"نئی آبادی","Roman Urdu":"Nai Abadi","English":"Nai Abadi"}},{"province":"sindh","city":"karachi","town":"baldia","name":"saeedabad","label":{"Urdu":"سعید آباد","Roman Urdu":"Saeedabad","English":"Saeedabad"}},{"province":"sindh","city":"karachi","town":"baldia","name":"muslim_mujahid_colony","label":{"Urdu":"مسلم مجاہد کالونی","Roman Urdu":"Muslim Mujahid Colony","English":"Muslim Mujahid Colony"}},{"province":"sindh","city":"karachi","town":"baldia","name":"muhajir_camp","label":{"Urdu":"مہاجر کیمپ","Roman Urdu":"Muhajir Camp","English":"Muhajir Camp"}},{"province":"sindh","city":"karachi","town":"baldia","name":"rasheedabad","label":{"Urdu":"رشید آباد","Roman Urdu":"Rasheedabad","English":"Rasheedabad"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"ibrahim_hyderi","label":{"Urdu":"ابراہیم حیدری","Roman Urdu":"Ibrahim Hyderi","English":"Ibrahim Hyderi"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"rehri","label":{"Urdu":"رہڑی","Roman Urdu":"Rehri","English":"Rehri"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"cattle_colony","label":{"Urdu":"کیٹل کالونی","Roman Urdu":"Cattle Colony","English":"Cattle Colony"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"qaidabad","label":{"Urdu":"قائدآباد","Roman Urdu":"Qaidabad","English":"Qaidabad"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"landhi_colony","label":{"Urdu":"لانڈھی کالونی","Roman Urdu":"Landhi Colony","English":"Landhi Colony"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"gulshan_e_hadeed","label":{"Urdu":"گلشن حدید","Roman Urdu":"Gulshan-e-Hadeed","English":"Gulshan-e-Hadeed"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"gaghar","label":{"Urdu":"گگر","Roman Urdu":"Gaghar","English":"Gaghar"}},{"province":"sindh","city":"karachi","town":"gadap","name":"murad_memon_goth","label":{"Urdu":"مراد میمن گوٹھ","Roman Urdu":"Murad Memon Goth","English":"Murad Memon Goth"}},{"province":"sindh","city":"karachi","town":"gadap","name":"darsano_chana","label":{"Urdu":"درشانو شنو","Roman Urdu":"Darsano Chana","English":"Darsano Chana"}},{"province":"sindh","city":"karachi","town":"gadap","name":"gujro","label":{"Urdu":"گجرو","Roman Urdu":"Gujro","English":"Gujro"}},{"province":"sindh","city":"karachi","town":"gadap","name":"songal","label":{"Urdu":"سنگل","Roman Urdu":"Songal","English":"Songal"}},{"province":"sindh","city":"karachi","town":"gadap","name":"maymarabad","label":{"Urdu":"معمار آباد","Roman Urdu":"Maymarabad","English":"Maymarabad"}},{"province":"sindh","city":"karachi","town":"gadap","name":"yousuf_goth","label":{"Urdu":"یوسف گوٹھ","Roman Urdu":"Yousuf Goth","English":"Yousuf Goth"}},{"province":"sindh","city":"karachi","town":"gadap","name":"manghopir","label":{"Urdu":"منگھوپیر","Roman Urdu":"Manghopir","English":"Manghopir"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"azizabad","label":{"Urdu":"عزیز آباد","Roman Urdu":"Azizabad","English":"Azizabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"karimabad","label":{"Urdu":"کریم آباد","Roman Urdu":"Karimabad","English":"Karimabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"aisha_manzil","label":{"Urdu":"عائشہ منزل","Roman Urdu":"Aisha Manzil","English":"Aisha Manzil"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"ancholi","label":{"Urdu":"انچولی","Roman Urdu":"Ancholi","English":"Ancholi"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"naseerabad","label":{"Urdu":"نصیرآباد","Roman Urdu":"Naseerabad","English":"Naseerabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"yaseenabad","label":{"Urdu":"یاسین آباد","Roman Urdu":"Yaseenabad","English":"Yaseenabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"water_pump","label":{"Urdu":"واٹرپمپ","Roman Urdu":"Water Pump","English":"Water Pump"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"shafiq_mill_colony","label":{"Urdu":"شفیق مل کالونی","Roman Urdu":"Shafiq Mill Colony","English":"Shafiq Mill Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"delhi_mercantile_society","label":{"Urdu":"دہلی مرچنٹائل سوسائٹی","Roman Urdu":"Delhi Mercantile Society","English":"Delhi Mercantile Society"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"civic_centre","label":{"Urdu":"سوک سینٹر","Roman Urdu":"Civic Centre","English":"Civic Centre"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"pir_ilahi_buksh_colony","label":{"Urdu":"پیر الہی بخش کالونی","Roman Urdu":"Pir Ilahi Buksh Colony","English":"Pir Ilahi Buksh Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"essa_nagri","label":{"Urdu":"عیسی نگری","Roman Urdu":"Essa Nagri","English":"Essa Nagri"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gulshan_e_iqbal","label":{"Urdu":"گلشن اقبال","Roman Urdu":"Gulshan-e-Iqbal","English":"Gulshan-e-Iqbal"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gillani_railway_station","label":{"Urdu":"گیلانی ریلوے اسٹیشن","Roman Urdu":"Gillani Railway Station","English":"Gillani Railway Station"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"shanti_nagar","label":{"Urdu":"شانتی نگر","Roman Urdu":"Shanti Nagar","English":"Shanti Nagar"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"jamali_colony","label":{"Urdu":"جمالی کالونی","Roman Urdu":"Jamali Colony","English":"Jamali Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gulshan_e_iqbal_ii","label":{"Urdu":"گلشن اقبال 2","Roman Urdu":"Gulshan-e-Iqbal II","English":"Gulshan-e-Iqbal II"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"pehlwan_goth","label":{"Urdu":"پہلوان گوٹھ","Roman Urdu":"Pehlwan Goth","English":"Pehlwan Goth"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"matrovil_colony","label":{"Urdu":"میٹروویل کالونی","Roman Urdu":"Matrovil Colony","English":"Matrovil Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gulzar_e_hijri","label":{"Urdu":"گلزار ہجری","Roman Urdu":"Gulzar-e-Hijri","English":"Gulzar-e-Hijri"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"safooran_goth","label":{"Urdu":"صفورا گوٹھ","Roman Urdu":"Safooran Goth","English":"Safooran Goth"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"akhtar_colony","label":{"Urdu":"اختر کالونی","Roman Urdu":"Akhtar Colony","English":"Akhtar Colony"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"manzoor_colony","label":{"Urdu":"منظور کالونی","Roman Urdu":"Manzoor Colony","English":"Manzoor Colony"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"azam_basti","label":{"Urdu":"اعظم بستی","Roman Urdu":"Azam Basti","English":"Azam Basti"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"chanesar_goth","label":{"Urdu":"چنیسر گوٹھ","Roman Urdu":"Chanesar Goth","English":"Chanesar Goth"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"mahmudabad","label":{"Urdu":"محمودآباد","Roman Urdu":"Mahmudabad","English":"Mahmudabad"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"pechs","label":{"Urdu":"پی۔ای۔سی۔ایچ۔ایس","Roman Urdu":"P.E.C.H.S.","English":"P.E.C.H.S."}},{"province":"sindh","city":"karachi","town":"jamshed","name":"pechs_ii","label":{"Urdu":"پی۔ای۔سی۔ایچ۔ایس 2","Roman Urdu":"P.E.C.H.S. II","English":"P.E.C.H.S. II"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"jut_line","label":{"Urdu":"جٹ لائن","Roman Urdu":"Jut Line","English":"Jut Line"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"central_jacob_lines","label":{"Urdu":"سینٹرل جیکب لائن","Roman Urdu":"Central Jacob Lines","English":"Central Jacob Lines"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"jamshed_quarters","label":{"Urdu":"جمشید کوارٹر","Roman Urdu":"Jamshed Quarters","English":"Jamshed Quarters"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"garden_east","label":{"Urdu":"گارڈن ایسٹ","Roman Urdu":"Garden East","English":"Garden East"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"soldier_bazar","label":{"Urdu":"سولجر بازار","Roman Urdu":"Soldier Bazar","English":"Soldier Bazar"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"pakistan_quarters","label":{"Urdu":"پاکستان کوارٹر","Roman Urdu":"Pakistan Quarters","English":"Pakistan Quarters"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"bhutta_village","label":{"Urdu":"بھٹا ولیج","Roman Urdu":"Bhutta Village","English":"Bhutta Village"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"sultanabad","label":{"Urdu":"سلطان آباد","Roman Urdu":"Sultanabad","English":"Sultanabad"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"kiamari_uc","label":{"Urdu":"کیماری یوسی","Roman Urdu":"Kiamari UC","English":"Kiamari UC"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"baba_bhit","label":{"Urdu":"بابا بھٹ","Roman Urdu":"Baba Bhit","English":"Baba Bhit"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"machar_colony","label":{"Urdu":"مچھر کالونی","Roman Urdu":"Machar Colony","English":"Machar Colony"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"maripur","label":{"Urdu":"ماڑی پور","Roman Urdu":"Maripur","English":"Maripur"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"shershah","label":{"Urdu":"شیرشاہ","Roman Urdu":"SherShah","English":"SherShah"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"gabo_pat","label":{"Urdu":"گابو پٹ","Roman Urdu":"Gabo Pat","English":"Gabo Pat"}},{"province":"sindh","city":"karachi","town":"landhi","name":"muzafarabad","label":{"Urdu":"مظفرآباد","Roman Urdu":"Muzafarabad","English":"Muzafarabad"}},{"province":"sindh","city":"karachi","town":"landhi","name":"muslimabad","label":{"Urdu":"مسلم آباد","Roman Urdu":"Muslimabad","English":"Muslimabad"}},{"province":"sindh","city":"karachi","town":"landhi","name":"dawood_chowrangi","label":{"Urdu":"داوَد چورنگی","Roman Urdu":"Dawood Chowrangi","English":"Dawood Chowrangi"}},{"province":"sindh","city":"karachi","town":"landhi","name":"moinabad","label":{"Urdu":"معین آباد","Roman Urdu":"Moinabad","English":"Moinabad"}},{"province":"sindh","city":"karachi","town":"landhi","name":"sharafi_goth","label":{"Urdu":"شرافی گوٹھ","Roman Urdu":"Sharafi Goth","English":"Sharafi Goth"}},{"province":"sindh","city":"karachi","town":"landhi","name":"bhutto_nagar","label":{"Urdu":"بھٹو نگر","Roman Urdu":"Bhutto Nagar","English":"Bhutto Nagar"}},{"province":"sindh","city":"karachi","town":"landhi","name":"khawaja_ajmeer_colony","label":{"Urdu":"خواجہ اجمیر کالونی","Roman Urdu":"Khawaja Ajmeer Colony","English":"Khawaja Ajmeer Colony"}},{"province":"sindh","city":"karachi","town":"landhi","name":"landhi_uc","label":{"Urdu":"لانڈھی یوسی","Roman Urdu":"Landhi UC","English":"Landhi UC"}},{"province":"sindh","city":"karachi","town":"landhi","name":"awami_colony","label":{"Urdu":"عوامی کالونی","Roman Urdu":"Awami Colony","English":"Awami Colony"}},{"province":"sindh","city":"karachi","town":"landhi","name":"burmee_colony","label":{"Urdu":"برمی کالونی","Roman Urdu":"Burmee Colony","English":"Burmee Colony"}},{"province":"sindh","city":"karachi","town":"landhi","name":"korangi_uc","label":{"Urdu":"کورنگی یوسی","Roman Urdu":"Korangi UC","English":"Korangi UC"}},{"province":"sindh","city":"karachi","town":"landhi","name":"sherabad","label":{"Urdu":"شیرآباد","Roman Urdu":"Sherabad","English":"Sherabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"rizvia_society","label":{"Urdu":"رضویہ سوسائٹی","Roman Urdu":"Rizvia Society","English":"Rizvia Society"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"firdous_colony","label":{"Urdu":"فردوس کالونی","Roman Urdu":"Firdous Colony","English":"Firdous Colony"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"super_market","label":{"Urdu":"سپر مارکیٹ","Roman Urdu":"Super Market","English":"Super Market"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"dak_khana","label":{"Urdu":"دک کھانہ","Roman Urdu":"Dak Khana","English":"Dak Khana"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"qasimabad","label":{"Urdu":"قاسم آباد","Roman Urdu":"Qasimabad","English":"Qasimabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"bandhani_colony","label":{"Urdu":"بندھانی کالونی","Roman Urdu":"Bandhani Colony","English":"Bandhani Colony"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"sharifabad","label":{"Urdu":"شریف آباد","Roman Urdu":"Sharifabad","English":"Sharifabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"commercial_area","label":{"Urdu":"کمرشل ایریا","Roman Urdu":"Commercial Area","English":"Commercial Area"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"mujahid_colony","label":{"Urdu":"مجاہد کالونی","Roman Urdu":"Mujahid Colony","English":"Mujahid Colony"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"nazimabad","label":{"Urdu":"ناظم آباد","Roman Urdu":"Nazimabad","English":"Nazimabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"abbasi_shaheed","label":{"Urdu":"عباسی شہید","Roman Urdu":"Abbasi Shaheed","English":"Abbasi Shaheed"}},{"province":"sindh","city":"karachi","town":"lyari","name":"agra_taj_colony","label":{"Urdu":"آگرہ تاج کالونی","Roman Urdu":"Agra Taj Colony","English":"Agra Taj Colony"}},{"province":"sindh","city":"karachi","town":"lyari","name":"daryaabad","label":{"Urdu":"دریاآباد","Roman Urdu":"Daryaabad","English":"Daryaabad"}},{"province":"sindh","city":"karachi","town":"lyari","name":"nawabad","label":{"Urdu":"نواآباد","Roman Urdu":"Nawabad","English":"Nawabad"}},{"province":"sindh","city":"karachi","town":"lyari","name":"khada_memon_society","label":{"Urdu":"خدا- میمن- سوساَٹی","Roman Urdu":"Khada Memon Society","English":"Khada Memon Society"}},{"province":"sindh","city":"karachi","town":"lyari","name":"baghdadi","label":{"Urdu":"بغدادی","Roman Urdu":"Baghdadi","English":"Baghdadi"}},{"province":"sindh","city":"karachi","town":"lyari","name":"shah_baig_line","label":{"Urdu":"شاھ باغ لائن","Roman Urdu":"Shah Baig Line","English":"Shah Baig Line"}},{"province":"sindh","city":"karachi","town":"lyari","name":"bihar_colony","label":{"Urdu":"بہار کالونی","Roman Urdu":"Bihar Colony","English":"Bihar Colony"}},{"province":"sindh","city":"karachi","town":"lyari","name":"ragiwara","label":{"Urdu":"راگی واڑا","Roman Urdu":"Ragiwara","English":"Ragiwara"}},{"province":"sindh","city":"karachi","town":"lyari","name":"singo_line","label":{"Urdu":"سنگولائن","Roman Urdu":"Singo Line","English":"Singo Line"}},{"province":"sindh","city":"karachi","town":"lyari","name":"chakiwara","label":{"Urdu":"چاکی واڑا","Roman Urdu":"Chakiwara","English":"Chakiwara"}},{"province":"sindh","city":"karachi","town":"lyari","name":"allama_iqbal_colony","label":{"Urdu":"علامہ اقبال کالونی","Roman Urdu":"Allama Iqbal Colony","English":"Allama Iqbal Colony"}},{"province":"sindh","city":"karachi","town":"malir","name":"model_colony","label":{"Urdu":"موڈل کالونی","Roman Urdu":"Model Colony","English":"Model Colony"}},{"province":"sindh","city":"karachi","town":"malir","name":"kala_board","label":{"Urdu":"کالا بورڈ","Roman Urdu":"Kala Board","English":"Kala Board"}},{"province":"sindh","city":"karachi","town":"malir","name":"saudabad","label":{"Urdu":"سعودآباد","Roman Urdu":"Saudabad","English":"Saudabad"}},{"province":"sindh","city":"karachi","town":"malir","name":"khokhra_par","label":{"Urdu":"کھوکھرا پار","Roman Urdu":"Khokhra Par","English":"Khokhra Par"}},{"province":"sindh","city":"karachi","town":"malir","name":"jafar_e_tayyar","label":{"Urdu":"جعفر تیار","Roman Urdu":"Jafar-e-Tayyar","English":"Jafar-e-Tayyar"}},{"province":"sindh","city":"karachi","town":"malir","name":"gharibabad","label":{"Urdu":"غریب آباد","Roman Urdu":"Gharibabad","English":"Gharibabad"}},{"province":"sindh","city":"karachi","town":"malir","name":"ghazi_brohi_goth","label":{"Urdu":"غازی بروہی گوٹھ","Roman Urdu":"Ghazi Brohi Goth","English":"Ghazi Brohi Goth"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"kalyana","label":{"Urdu":"کالیانہ","Roman Urdu":"Kalyana","English":"Kalyana"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"sir_syed_colony","label":{"Urdu":"سر سید کالونی","Roman Urdu":"Sir Syed Colony","English":"Sir Syed Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"fatima_jinnah_colony","label":{"Urdu":"فاطمہ جناح کالونی","Roman Urdu":"Fatima Jinnah Colony","English":"Fatima Jinnah Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"godhra","label":{"Urdu":"گودھرا","Roman Urdu":"Godhra","English":"Godhra"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"abu_zar_ghaffari","label":{"Urdu":"ابو زر غفاری","Roman Urdu":"Abu Zar Ghaffari","English":"Abu Zar Ghaffari"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"hakim_ahsan","label":{"Urdu":"حاکم احسان","Roman Urdu":"Hakim Ahsan","English":"Hakim Ahsan"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"madina_colony","label":{"Urdu":"مدینہ کالونی","Roman Urdu":"Madina Colony","English":"Madina Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"faisal_colony","label":{"Urdu":"فیصل کالونی","Roman Urdu":"Faisal Colony","English":"Faisal Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"khamiso_goth","label":{"Urdu":"خمیسو گوٹھ","Roman Urdu":"Khamiso Goth","English":"Khamiso Goth"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"mustufa_colony","label":{"Urdu":"مصطفی کالونی","Roman Urdu":"Mustufa Colony","English":"Mustufa Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"khawaja_ajmeer_nagri","label":{"Urdu":"خواجہ اجمیر نگری","Roman Urdu":"Khawaja Ajmeer Nagri","English":"Khawaja Ajmeer Nagri"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"gulshan_e_saeed","label":{"Urdu":"گلشن سعید","Roman Urdu":"Gulshan-e-Saeed","English":"Gulshan-e-Saeed"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"shah_nawaz_bhutto_colony","label":{"Urdu":"شاہ نواز بھٹو کالونی","Roman Urdu":"Shah Nawaz Bhutto Colony","English":"Shah Nawaz Bhutto Colony"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"paposh_nagar","label":{"Urdu":"پاپوش نگر","Roman Urdu":"Paposh Nagar","English":"Paposh Nagar"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"pahar_ganj","label":{"Urdu":"پہاڑ گنج","Roman Urdu":"Pahar Ganj","English":"Pahar Ganj"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"khandu_goth","label":{"Urdu":"کھنڑو گوٹھ","Roman Urdu":"Khandu Goth","English":"Khandu Goth"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"hyderi","label":{"Urdu":"حیدری","Roman Urdu":"Hyderi","English":"Hyderi"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"sakhi_hassan","label":{"Urdu":"سخی حسن","Roman Urdu":"Sakhi Hassan","English":"Sakhi Hassan"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"farooq_e_azam","label":{"Urdu":"فاروق اعظم","Roman Urdu":"Farooq-e-Azam","English":"Farooq-e-Azam"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"nusrat_bhutto_colony","label":{"Urdu":"نصرت بھٹو کالونی","Roman Urdu":"Nusrat Bhutto Colony","English":"Nusrat Bhutto Colony"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"shadman_town","label":{"Urdu":"شادمان ٹاوَن","Roman Urdu":"Shadman Town","English":"Shadman Town"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"buffer_zone","label":{"Urdu":"بفرزون","Roman Urdu":"Buffer Zone","English":"Buffer Zone"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"buffer_zone_ii","label":{"Urdu":"بفرزون 2","Roman Urdu":"Buffer Zone II","English":"Buffer Zone II"}},{"province":"sindh","city":"karachi","town":"orangi","name":"mominabad","label":{"Urdu":"مومن آباد","Roman Urdu":"Mominabad","English":"Mominabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"haryana_colony","label":{"Urdu":"حریانہ کالونی","Roman Urdu":"Haryana Colony","English":"Haryana Colony"}},{"province":"sindh","city":"karachi","town":"orangi","name":"hanifabad","label":{"Urdu":"حنیف آباد","Roman Urdu":"Hanifabad","English":"Hanifabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"mohammad_nagar","label":{"Urdu":"محمد نگر","Roman Urdu":"Mohammad Nagar","English":"Mohammad Nagar"}},{"province":"sindh","city":"karachi","town":"orangi","name":"madina_colony_orangi","label":{"Urdu":"مدینہ کالونی اورنگی","Roman Urdu":"Madina Colony Orangi","English":"Madina Colony Orangi"}},{"province":"sindh","city":"karachi","town":"orangi","name":"ghaziabad","label":{"Urdu":"غازی آباد","Roman Urdu":"Ghaziabad","English":"Ghaziabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"chisti_nagar","label":{"Urdu":"چشتی نگر","Roman Urdu":"Chisti Nagar","English":"Chisti Nagar"}},{"province":"sindh","city":"karachi","town":"orangi","name":"bilal_colony_orangi","label":{"Urdu":"بلال کالونی اورنگی","Roman Urdu":"Bilal Colony Orangi","English":"Bilal Colony Orangi"}},{"province":"sindh","city":"karachi","town":"orangi","name":"iqbal_baloch_colony","label":{"Urdu":"اقبال بلوچ کالونی","Roman Urdu":"Iqbal Baloch Colony","English":"Iqbal Baloch Colony"}},{"province":"sindh","city":"karachi","town":"orangi","name":"ghabool_town","label":{"Urdu":"گبول ٹاوَن","Roman Urdu":"Ghabool Town","English":"Ghabool Town"}},{"province":"sindh","city":"karachi","town":"orangi","name":"data_nagar","label":{"Urdu":"داتا نگر","Roman Urdu":"Data Nagar","English":"Data Nagar"}},{"province":"sindh","city":"karachi","town":"orangi","name":"mujahidabad","label":{"Urdu":"مجاہد آباد","Roman Urdu":"Mujahidabad","English":"Mujahidabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"baloch_goth","label":{"Urdu":"بلوچ گوٹھ","Roman Urdu":"Baloch Goth","English":"Baloch Goth"}},{"province":"sindh","city":"karachi","town":"saddar","name":"old_haji_camp","label":{"Urdu":"پرانہ حاجی کیمپ","Roman Urdu":"Old Haji Camp","English":"Old Haji Camp"}},{"province":"sindh","city":"karachi","town":"saddar","name":"garden","label":{"Urdu":"گارڈن","Roman Urdu":"Garden","English":"Garden"}},{"province":"sindh","city":"karachi","town":"saddar","name":"kharadar","label":{"Urdu":"کھارادر","Roman Urdu":"Kharadar","English":"Kharadar"}},{"province":"sindh","city":"karachi","town":"saddar","name":"city_railway_colony","label":{"Urdu":"سٹی ریلوے کالونی","Roman Urdu":"City Railway Colony","English":"City Railway Colony"}},{"province":"sindh","city":"karachi","town":"saddar","name":"nanak_wara","label":{"Urdu":"ناناک واڑا","Roman Urdu":"Nanak Wara","English":"Nanak Wara"}},{"province":"sindh","city":"karachi","town":"saddar","name":"gazdarabad","label":{"Urdu":"گزدرآباد","Roman Urdu":"Gazdarabad","English":"Gazdarabad"}},{"province":"sindh","city":"karachi","town":"saddar","name":"millat_nagar_islam_pura","label":{"Urdu":"ملت نگر اسلام پورا","Roman Urdu":"Millat Nagar/Islam Pura","English":"Millat Nagar/Islam Pura"}},{"province":"sindh","city":"karachi","town":"saddar","name":"saddar_uc","label":{"Urdu":"صدر یو سی","Roman Urdu":"Saddar UC","English":"Saddar UC"}},{"province":"sindh","city":"karachi","town":"saddar","name":"civil_line","label":{"Urdu":"سول لائن","Roman Urdu":"Civil Line","English":"Civil Line"}},{"province":"sindh","city":"karachi","town":"saddar","name":"clifton","label":{"Urdu":"کلفٹن","Roman Urdu":"Clifton","English":"Clifton"}},{"province":"sindh","city":"karachi","town":"saddar","name":"kehkashan","label":{"Urdu":"کہکشان","Roman Urdu":"Kehkashan","English":"Kehkashan"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"natha_khan_goth","label":{"Urdu":"ناتھا خان گوٹھ","Roman Urdu":"Natha Khan Goth","English":"Natha Khan Goth"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"pak_sadat_colony","label":{"Urdu":"پاک صدر کالونی","Roman Urdu":"Pak Sadat Colony","English":"Pak Sadat Colony"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"drigh_colony","label":{"Urdu":"ڈرگ کالونی","Roman Urdu":"Drigh Colony","English":"Drigh Colony"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"raita_plot","label":{"Urdu":"رائتا پلاٹ","Roman Urdu":"Raita Plot","English":"Raita Plot"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"moria_khan_goth","label":{"Urdu":"موریا خان گوٹھ","Roman Urdu":"Moria Khan Goth","English":"Moria Khan Goth"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"rafa_e_aam_society","label":{"Urdu":"رفا عام سوسا ئٹی","Roman Urdu":"Rafa-e-Aam Society","English":"Rafa-e-Aam Society"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"al_falah_society","label":{"Urdu":"الفلاح سوسا ئٹی","Roman Urdu":"Al-Falah Society","English":"Al-Falah Society"}},{"province":"sindh","city":"karachi","town":"site","name":"pak_colony","label":{"Urdu":"پاک کالونی","Roman Urdu":"Pak Colony","English":"Pak Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"old_golimar","label":{"Urdu":"پرانہ گولی مار","Roman Urdu":"Old Golimar","English":"Old Golimar"}},{"province":"sindh","city":"karachi","town":"site","name":"jahanabad","label":{"Urdu":"جہان آباد","Roman Urdu":"Jahanabad","English":"Jahanabad"}},{"province":"sindh","city":"karachi","town":"site","name":"metrovil","label":{"Urdu":"میٹروویل","Roman Urdu":"Metrovil","English":"Metrovil"}},{"province":"sindh","city":"karachi","town":"site","name":"bhawani_chali","label":{"Urdu":"بہوانی چالی","Roman Urdu":"Bhawani Chali","English":"Bhawani Chali"}},{"province":"sindh","city":"karachi","town":"site","name":"frontier_colony","label":{"Urdu":"فرونٹر کالونی","Roman Urdu":"Frontier Colony","English":"Frontier Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"banaras_colony","label":{"Urdu":"بنارس کالونی","Roman Urdu":"Banaras Colony","English":"Banaras Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"qasba_colony","label":{"Urdu":"قصبہ کالونی","Roman Urdu":"Qasba Colony","English":"Qasba Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"islamia_colony","label":{"Urdu":"اسلامیہ کالونی","Roman Urdu":"Islamia Colony","English":"Islamia Colony"}},{"province":"na","city":"na","town":"na","name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}},{"province":"na","city":"na","town":"na","name":"not_applicable","label":{"Urdu":"قابل اطلاق نہیں","Roman Urdu":"Qaabil-e-atlaaq nahi","English":"Not Applicable"}}],"gender":[{"instance":{"openmrs_code":"1534AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"male","label":{"Urdu":"مرد/ لڑکا","Roman Urdu":"Mard/larka","English":"Male"}},{"instance":{"openmrs_code":"1535AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"female","label":{"Urdu":"عورت/لڑکی","Roman Urdu":"Aurat/larki","English":"Female"}},{"instance":{"openmrs_code":"163163AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"transgender","label":{"Urdu":"خواجہ سرہ","Roman Urdu":"Khwaja sira","English":"Transgender"}}],"vaccines":[{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT1","label":{"Urdu":"ٹی ٹی 1","Roman Urdu":"TT1","English":"TT1"}},{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT2","label":{"Urdu":"ٹی ٹی 2","Roman Urdu":"TT2","English":"TT2"}},{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT3","label":{"Urdu":"ٹی ٹی 3","Roman Urdu":"TT3","English":"TT3"}},{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT4","label":{"Urdu":"ٹی ٹی 4","Roman Urdu":"TT4","English":"TT4"}},{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT5","label":{"Urdu":"ٹی ٹی 5","Roman Urdu":"TT5","English":"TT5"}}],"towns":[{"province":"sindh","city":"karachi","name":"korangi","label":{"Urdu":"کورنگی","Roman Urdu":"Korangi","English":"Korangi"}},{"province":"sindh","city":"karachi","name":"landhi","label":{"Urdu":"لانڈھی","Roman Urdu":"Landhi","English":"Landhi"}},{"province":"sindh","city":"karachi","name":"baldia","label":{"Urdu":"بلدیہ","Roman Urdu":"Baldia","English":"Baldia"}},{"province":"sindh","city":"karachi","name":"bin_qasim","label":{"Urdu":"بن قاسم","Roman Urdu":"Bin Qasim","English":"Bin Qasim"}},{"province":"sindh","city":"karachi","name":"gadap","label":{"Urdu":"گڈاپ","Roman Urdu":"Gadap","English":"Gadap"}},{"province":"sindh","city":"karachi","name":"gulberg","label":{"Urdu":"گلبرگ","Roman Urdu":"Gulberg","English":"Gulberg"}},{"province":"sindh","city":"karachi","name":"gulshan","label":{"Urdu":"گلشن","Roman Urdu":"Gulshan","English":"Gulshan"}},{"province":"sindh","city":"karachi","name":"jamshed","label":{"Urdu":"جمشید","Roman Urdu":"Jamshed","English":"Jamshed"}},{"province":"sindh","city":"karachi","name":"kiamari","label":{"Urdu":"کیماری","Roman Urdu":"Kiamari","English":"Kiamari"}},{"province":"sindh","city":"karachi","name":"liaquatabad","label":{"Urdu":"لیاقت آباد","Roman Urdu":"Liaquatabad","English":"Liaquatabad"}},{"province":"sindh","city":"karachi","name":"lyari","label":{"Urdu":"لیاری","Roman Urdu":"Lyari","English":"Lyari"}},{"province":"sindh","city":"karachi","name":"malir","label":{"Urdu":"ملیر","Roman Urdu":"Malir","English":"Malir"}},{"province":"sindh","city":"karachi","name":"new_karachi","label":{"Urdu":"نیو کراچی","Roman Urdu":"New Karachi","English":"New Karachi"}},{"province":"sindh","city":"karachi","name":"north_nazimabad","label":{"Urdu":"نارتھ ناظم آباد","Roman Urdu":"North Nazimabad","English":"North Nazimabad"}},{"province":"sindh","city":"karachi","name":"orangi","label":{"Urdu":"اورنگی","Roman Urdu":"Orangi","English":"Orangi"}},{"province":"sindh","city":"karachi","name":"saddar","label":{"Urdu":"صدر","Roman Urdu":"Saddar","English":"Saddar"}},{"province":"sindh","city":"karachi","name":"shah_faisal","label":{"Urdu":"شاہ فیصل","Roman Urdu":"Shah Faisal","English":"Shah Faisal"}},{"province":"sindh","city":"karachi","name":"site","label":{"Urdu":"سائٹ","Roman Urdu":"S.I.T.E.","English":"S.I.T.E."}},{"province":"na","city":"na","name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}},{"province":"na","city":"na","name":"not_applicable","label":{"Urdu":"قابل اطلاق نہیں","Roman Urdu":"Qaabil-e-atlaaq nahi","English":"Not Applicable"}}],"cities":[{"province":"sindh","name":"karachi","label":{"Urdu":"کراچی","Roman Urdu":"Karachi","English":"Karachi"}},{"province":"punjab","name":"hafizabad","label":{"Urdu":"حافظ آباد","Roman Urdu":"Hafizabad","English":"Hafizabad"}},{"province":"punjab","name":"muzaffargarh","label":{"Urdu":"مظفر گڑھ","Roman Urdu":"Muzaffargarh","English":"Muzaffargarh"}},{"province":"na","name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}},{"province":"na","name":"not_applicable","label":{"Urdu":"قابل اطلاق نہیں","Roman Urdu":"Not Applicable","English":"Not Applicable"}}],"edd_lmp":[{"instance":{"openmrs_code":"5596AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"edd","label":{"Urdu":"زچگی کی متوقع تاریخ","Roman Urdu":"EDD","English":"EDD"}},{"instance":{"openmrs_code":"1427AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"lmp","label":{"Urdu":"پچھلی مہواری کی تاریخ","Roman Urdu":"LMP","English":"LMP"}},{"instance":{"openmrs_code":"159617AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ultrasound","label":{"Urdu":"الٹرا سائونڈ","Roman Urdu":"Ultrasound","English":"Ultrasound"}},{"instance":{"openmrs_code":"1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"none","label":{"Urdu":"کوئی بھی نہیں","Roman Urdu":"Koi bhi nahi","English":"None of the above"}}],"yes_no":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}]},"instance":{"encounter_type":"Off Site Woman Follow Up"},"version":"201604260935","id_string":"offsite_woman_followup_form","type":"survey","children":[{"type":"hidden","name":"provider_uc"},{"type":"hidden","name":"provider_town"},{"type":"hidden","name":"provider_city"},{"type":"hidden","name":"provider_province"},{"type":"hidden","name":"existing_landmark"},{"type":"hidden","name":"existing_address1"},{"type":"hidden","name":"existing_union_council"},{"type":"hidden","name":"existing_town"},{"type":"hidden","name":"existing_city_village"},{"type":"hidden","name":"existing_province"},{"type":"hidden","name":"existing_union_councilname"},{"type":"hidden","name":"existing_townname"},{"type":"hidden","name":"existing_city_villagename"},{"type":"hidden","name":"existing_provincename"},{"type":"hidden","name":"existing_first_name"},{"type":"hidden","name":"existing_last_name"},{"type":"hidden","name":"existing_father_name"},{"type":"hidden","name":"existing_husband_name"},{"type":"hidden","name":"existing_marriage"},{"type":"hidden","name":"existing_birth_date"},{"type":"hidden","name":"existing_gender"},{"type":"hidden","name":"existing_ethnicity"},{"type":"hidden","name":"existing_client_reg_date"},{"type":"hidden","name":"existing_program_client_id"},{"type":"hidden","name":"existing_epi_card_number"},{"type":"hidden","name":"existing_reminders_approval"},{"type":"hidden","name":"existing_contact_phone_number"},{"type":"hidden","name":"e_tt1"},{"type":"hidden","name":"e_tt2"},{"type":"hidden","name":"e_tt3"},{"type":"hidden","name":"e_tt4"},{"type":"hidden","name":"e_tt5"},{"type":"hidden","name":"provider_id"},{"instance":{"openmrs_entity_id":"location_id","openmrs_entity":"encounter"},"type":"hidden","name":"provider_location_id"},{"type":"hidden","name":"provider_location_name"},{"type":"note","name":"provider_location_note","label":{"Urdu":"شہر: ${provider_city} ; ٹائون: ${provider_town} ; یوسی: ${provider_uc} ; سینٹرکا نام: ${provider_location_name}","English":"City: ${provider_city} ; Town: ${provider_town} ; UC: ${provider_uc} ; Center Name: ${provider_location_name}"}},{"instance":{"openmrs_entity_id":"163137AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"start","name":"start"},{"instance":{"openmrs_entity_id":"163138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"end","name":"end"},{"instance":{"openmrs_entity_id":"163286AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"today","name":"today"},{"instance":{"openmrs_entity_id":"163149AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"deviceid","name":"deviceid"},{"instance":{"openmrs_entity_id":"163150AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"subscriberid","name":"subscriberid"},{"instance":{"openmrs_entity_id":"163151AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"simserial","name":"simserial"},{"instance":{"openmrs_entity_id":"163152AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"phonenumber","name":"phonenumber"},{"bind":{"required":"yes"},"type":"note","name":"client_reg_date_note","label":{"Urdu":"پروگرام میں اندراج کی تاریخ: ${existing_client_reg_date}","Roman Urdu":"Program mai andraj ki tareekh: ${existing_client_reg_date}","English":"Program Registration date: ${existing_client_reg_date}"}},{"bind":{"required":"yes"},"type":"note","name":"program_client_id_note","label":{"Urdu":"پروگرام آئی ڈی: ${existing_program_client_id}","Roman Urdu":"Program ID: ${existing_program_client_id}","English":"Program ID: ${existing_program_client_id}"}},{"bind":{"jr:constraintMsg":{"Urdu":"نمبر آٹھ ہندسوں پر مشتمل ہونا چاہئے","English":"Number should be 8 digits","Roman Urdu":"Number 8 hindason par mushtamil hona chahiye"},"required":"yes","constraint":"string-length(.) = 8"},"type":"integer","instance":{"openmrs_entity_id":"EPI Card Number","openmrs_entity":"person_attribute"},"name":"epi_card_number","label":{"Urdu":"${existing_epi_card_number} :ای پی آئی کارڈ نمبر","English":"EPI Card Number: ${existing_epi_card_number}","Roman Urdu":"EPI Card Number: ${existing_epi_card_number}"}},{"bind":{"required":"yes"},"type":"note","name":"first_name_note","label":{"Urdu":"${existing_first_name} :نام","Roman Urdu":"Naam: ${existing_first_name}","English":"First Name: ${existing_first_name}"}},{"bind":{"required":"yes"},"type":"note","name":"last_name_note","label":{"Urdu":"والد کا نام: ${existing_last_name}","Roman Urdu":"Waalid ka naam: ${existing_last_name}","English":"Last name: ${existing_last_name}"}},{"bind":{"calculate":"date( today() - (${existing_birth_date} div 365.25))"},"type":"calculate","name":"client_age","instance":{"openmrs_entity_id":"154384AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"type":"note","name":"member_birth_date_note","label":{"Urdu":"کلائنٹ کی تاریخِ پیدائش: ${existing_birth_date} (${client_age}) سال","English":"Client birth date: ${existing_birth_date} (${client_age}) years","Roman Urdu":"Client ki tareekh-e-pedaaish: ${existing_birth_date} (${client_age}) years"}},{"bind":{"required":"yes"},"type":"note","name":"gender_note","label":{"Urdu":"${existing_gender} :جنس","Roman Urdu":"Jins:${existing_gender}","English":"Gender: ${existing_gender}"}},{"type":"note","name":"father_name_note","label":{"Urdu":"والد کا نام: ${existing_father_name}","English":"Father's Name: ${existing_father_name}","Roman Urdu":"Waalid ka naam: ${existing_father_name}"}},{"type":"note","name":"marriage_note","label":{"Urdu":"کیا آپ شادی شدہ ہیں: ${existing_marriage}","English":"Are you married: ${existing_marriage}","Roman Urdu":"Kya aap shaadi shuda hain: ${existing_marriage}"}},{"type":"note","name":"husband_name_note","label":{"Urdu":"شوہر کا نام: ${existing_husband_name}","English":"Husband's name: ${existing_husband_name}","Roman Urdu":"Shohar ka naam: ${existing_husband_name}"}},{"bind":{"required":"yes"},"type":"note","name":"ethnicity_note","label":{"Urdu":"قومیت: ${existing_ethnicity}","Roman Urdu":"Qomiat: ${existing_ethnicity}","English":"Ethnicity: ${existing_ethnicity}"}},{"type":"note","name":"address","label":{"Urdu":"موجودہ پتہ: ${existing_address1}, ${existing_landmark}, ${existing_union_councilname}, ${existing_townname}, ${existing_city_villagename}, ${existing_provincename}","English":"Current Address: ${existing_address1}, ${existing_landmark}, ${existing_union_councilname}, ${existing_townname}, ${existing_city_villagename}, ${existing_provincename}","Roman Urdu":"Mojooda Address: ${existing_address1}, ${existing_landmark}, ${existing_union_councilname}, ${existing_townname}, ${existing_city_villagename}, ${existing_provincename}"}},{"label":{"Urdu":"کیا آپ کا گھر کا پتہ بدلا ہے؟","English":"Has your home address changed?","Roman Urdu":"Kya aap ka ghar ka pata badla hai?"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}],"name":"address_change"},{"control":{"appearance":"minimal"},"name":"province","default":"${provider_province}","bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"label":{"Urdu":"صوبہ","Roman Urdu":"Suba","English":"Province"},"instance":{"openmrs_entity":"person_address","openmrs_entity_id":"stateProvince","openmrs_entity_parent":"usual_residence"},"type":"select one","children":[{"name":"kpk","label":{"Urdu":"خیبر پختون خواہ","English":"Khyber Pakhtunkhwa","Roman Urdu":"Khyber Pakhtunkhwa"}},{"name":"sindh","label":{"Urdu":"سندھ","English":"Sindh","Roman Urdu":"Sindh"}},{"name":"balochistan","label":{"Urdu":"بلوچستان","English":"Balochistan","Roman Urdu":"Balochistan"}},{"name":"punjab","label":{"Urdu":"پنجاب","English":"Punjab","Roman Urdu":"Punjab"}},{"name":"gilgit_baltistan","label":{"Urdu":"گلگت بلتستان","English":"Gilgit Baltistan","Roman Urdu":"Gilgit Baltistan"}},{"name":"kashmir","label":{"Urdu":"کشمیر","English":"Kashmir","Roman Urdu":"Kashmir"}},{"name":"fata","label":{"Urdu":"فاٹا","English":"FATA","Roman Urdu":"FATA"}},{"name":"out_of_country","label":{"Urdu":"ملک سے باہر","English":"Out of Country","Roman Urdu":"Mulk se baahir"}}]},{"control":{"appearance":"minimal"},"name":"city_village","choice_filter":"province=${province} or province='na'","default":"${provider_city}","bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"label":{"Urdu":"شہر","Roman Urdu":"Shehr","English":"City"},"itemset":"cities","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"cityVillage","openmrs_entity_parent":"usual_residence"},"type":"select one"},{"control":{"appearance":"minimal"},"name":"town","choice_filter":"(province=${province} and city=${city_village} ) or city='na'","bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"label":{"Urdu":"ٹاٰئون/ قصبہ/ بستی","Roman Urdu":"Town / Qasbah / Basti","English":"Town"},"itemset":"towns","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"town","openmrs_entity_parent":"usual_residence"},"type":"select one"},{"control":{"appearance":"minimal"},"name":"union_council","choice_filter":"(province=${province} and city=${city_village} and town=${town}) or town='na'","bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"label":{"Urdu":"یونین کونسل","Roman Urdu":"Union Council","English":"Union Council"},"itemset":"ucs","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"subTown","openmrs_entity_parent":"usual_residence"},"type":"select one"},{"bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"type":"text","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"address1","openmrs_entity_parent":"usual_residence"},"name":"address1","label":{"Urdu":"گھر کا پتہ","Roman Urdu":"Ghar ka pata","English":"Home Address"}},{"bind":{"relevant":"selected(${address_change}, 'yes')"},"type":"text","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"landmark","openmrs_entity_parent":"usual_residence"},"name":"landmark","label":{"Urdu":"گھر کے قریب کوئی مشہور جگہ","Roman Urdu":"Ghar ke qareeb koi mashoor jagah","English":"Land Mark"}},{"instance":{"openmrs_entity_id":"163277AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"geopoint","name":"center_gps","label":{"Urdu":"حاصل کردہ معلومات کی جگہ کے GPS کارڈینیٹس درج کریں","English":"Collect GPS coordinates of data entry location:","Roman Urdu":"Hasil karda malomaat ki jaga ke GPS coordinates darj karain"}},{"name":"reminders_approval","bind":{"required":"yes"},"label":{"Urdu":"کیا آپ اپنے اگلے دورے کی یاددہانی کے لیے SMS موصول کرنا چاہتی ہیں؟ ${existing_reminders_approval}","English":"Are you willing to receive SMS reminders for your next visit? ${existing_reminders_approval}","Roman Urdu":"Kya aap apnay aglay doray ki yaad-dihani ke liye SMS mausool karna chahti hain? ${existing_reminders_approval}"},"instance":{"openmrs_entity_id":"163089AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}]},{"bind":{"jr:constraintMsg":{"Urdu":"فون نمبر گیارہ ہندسوں پر مشتمل اور مندرجہ ذیل شکل میں ہونا چاہئے: *********03","English":"Phone number should be 11 digits in the following format: 03*********","Roman Urdu":"Phone number 11 hindason par mushtamil aur mundarja zail shakal main hona chahiey: 03*********"},"relevant":"${reminders_approval}='yes'","constraint":"regex(., '^03[0-9]{9}$')"},"type":"text","instance":{"openmrs_entity_id":"159635AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"contact_phone_number","label":{"Urdu":"موبائل نمبر: ${existing_contact_phone_number}","English":"Mobile Number: ${existing_contact_phone_number}","Roman Urdu":"Mobile Number: ${existing_contact_phone_number}"}},{"instance":{"openmrs_entity_id":"5272AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"label":{"Urdu":"کیا آپ حاملہ ہیں؟","English":"Are you pregnant?","Roman Urdu":"Kia aap haamla hain?"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}],"name":"pregnant"},{"name":"edd_lmp","bind":{"relevant":"selected (${pregnant}, 'yes')"},"label":{"Urdu":"کیا آپ کو اپنی پچھلی ماہواری کی تاریخ، زچگی کی متوقع تاریخ، یا الٹرا سائونڈ کا علم ہے؟","English":"Do you know your LMP, EDD or last Ultrasound information?","Roman Urdu":"Kya aap ko apni pichli mahwaari ki tareekh, zachgi ki mutawaqqa tareekh ya ultrasound ka ilm hai?"},"instance":{"openmrs_entity_id":"160697AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"5596AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"edd","label":{"Urdu":"زچگی کی متوقع تاریخ","Roman Urdu":"EDD","English":"EDD"}},{"instance":{"openmrs_code":"1427AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"lmp","label":{"Urdu":"پچھلی مہواری کی تاریخ","Roman Urdu":"LMP","English":"LMP"}},{"instance":{"openmrs_code":"159617AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ultrasound","label":{"Urdu":"الٹرا سائونڈ","Roman Urdu":"Ultrasound","English":"Ultrasound"}},{"instance":{"openmrs_code":"1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"none","label":{"Urdu":"کوئی بھی نہیں","Roman Urdu":"Koi bhi nahi","English":"None of the above"}}]},{"bind":{"jr:constraintMsg":{"Urdu":"زچگی کی متوقع تاریخ ماضی کی نہیں ہو سکتی","Roman Urdu":"Zachgi ki mutawaqqa tareekh maazi ki nahi hosakti","English":"EDD cannot be in the past"},"relevant":"selected (${edd_lmp}, 'edd')","constraint":".>=${today}"},"type":"date","name":"edd","label":{"Urdu":"زچگی کی متوقع تاریخ","Roman Urdu":"Zachgi ki mutawaqqa tareekh","English":"EDD"}},{"bind":{"jr:constraintMsg":{"Urdu":"پچھلی ماہواری کی تاریخ مستقبل کی نہیں ہوسکتی","Roman Urdu":"Pichli mahwaari ki tareekh mustaqbil ki nahi hosakti","English":"LMP cannot be in the future"},"relevant":"selected (${edd_lmp}, 'lmp')","constraint":".<=${today}"},"type":"date","name":"lmp","label":{"Urdu":"پچھلی ماہواری کی تاریخ","Roman Urdu":"Pichli mahwaari ki tareekh","English":"LMP"}},{"bind":{"relevant":"selected (${edd_lmp}, 'ultrasound')"},"type":"date","instance":{"openmrs_entity_id":"163165AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"ultrasound_date","label":{"Urdu":"الٹرا سائونڈ کی تاریخ","English":"Ultrasound Date","Roman Urdu":"Ultrasound ki tareekh"}},{"bind":{"relevant":"selected (${edd_lmp}, 'ultrasound')"},"type":"integer","name":"ultrasound_weeks","label":{"Urdu":"الٹرا سائونڈ کی مدد سے حمل کی مدت [ہفتوں میں]","Roman Urdu":"Ultrasound ki madad se hamal ki muddat (hafton me)","English":"Gestational age determined by ultrasound"}},{"bind":{"calculate":"date(${lmp}+280)"},"type":"calculate","name":"edd_calc_lmp"},{"bind":{"calculate":"date((280-(${ultrasound_weeks}*7)+${ultrasound_date} ))"},"type":"calculate","name":"edd_calc_ultrasound"},{"bind":{"calculate":"format-date(${edd_calc_lmp}, '%Y-%n-%e')"},"type":"calculate","name":"edd_calc_lmp_formatted"},{"bind":{"calculate":"format-date(${edd_calc_ultrasound}, '%Y-%n-%e')"},"type":"calculate","name":"edd_calc_ultrasound_formatted"},{"bind":{"calculate":"date(${edd}-280)"},"type":"calculate","name":"lmp_calc_edd"},{"bind":{"calculate":"date(${ultrasound_date}-(${ultrasound_weeks}*7))"},"type":"calculate","name":"lmp_calc_ultrasound"},{"bind":{"calculate":"format-date(${lmp_calc_edd}, '%Y-%n-%e')"},"type":"calculate","name":"lmp_calc_edd_formatted"},{"bind":{"calculate":"format-date(${lmp_calc_ultrasound}, '%Y-%n-%e')"},"type":"calculate","name":"lmp_calc_ultrasound_formatted"},{"bind":{"calculate":"if(${edd_lmp}='lmp',${edd_calc_lmp_formatted},if(${edd_lmp}='edd',${edd} ,if(${edd_lmp}='ultrasound',${edd_calc_ultrasound_formatted},'')))"},"type":"calculate","name":"final_edd","instance":{"openmrs_entity_id":"5596AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"bind":{"calculate":"if(${edd_lmp}='lmp',${lmp},if(${edd_lmp}='edd',${lmp_calc_edd_formatted} ,if(${edd_lmp}='ultrasound',${lmp_calc_ultrasound_formatted},'')))"},"type":"calculate","name":"final_lmp","instance":{"openmrs_entity_id":"1427AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"bind":{"calculate":"int((${vaccination_date} - (${edd}-280))div7)"},"type":"calculate","name":"ga_edd"},{"bind":{"calculate":"int((${vaccination_date} - ${lmp})div7)"},"type":"calculate","name":"ga_lmp"},{"bind":{"calculate":"int((${vaccination_date} -(${ultrasound_date}-(${ultrasound_weeks}*7)))div7)"},"type":"calculate","name":"ga_ult"},{"bind":{"relevant":"selected (${pregnant}, 'yes')"},"type":"note","name":"final_edd_note","label":{"Urdu":"${final_edd} :زچگی کی متوقع تاریخ","Roman Urdu":"Zachgi ki mutawaqqa tareekh: ${final_edd}","English":"EDD: ${final_edd}"}},{"bind":{"relevant":"selected (${pregnant}, 'yes')"},"type":"note","name":"final_lmp_note","label":{"Urdu":"پچھلی ماہواری کی تاریخ: ${final_edd}","Roman Urdu":"Pichli mahwaari ki tareekh: ${final_lmp}","English":"LMP: ${final_lmp}"}},{"bind":{"calculate":"if(${edd_lmp}='lmp',${ga_lmp},if(${edd_lmp}='edd',${ga_edd} ,if(${edd_lmp}='ultrasound',${ga_ult},'')))"},"type":"calculate","name":"final_ga","instance":{"openmrs_entity_id":"163166AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"bind":{"relevant":"selected (${pregnant}, 'yes')"},"type":"note","name":"final_ga_note","label":{"Urdu":"حمل کی مُدّت: {final_ga}$ ہفتے","Roman Urdu":"Hamal ki muddat: ${final_ga} weeks","English":"GA: ${final_ga} weeks"}},{"bind":{"relevant":"${e_tt1} != ''"},"type":"note","name":"tt1_note","label":{"Urdu":"${e_tt1}","Roman Urdu":"${e_tt1}","English":"${e_tt1}"}},{"bind":{"relevant":"${e_tt2} != ''"},"type":"note","name":"tt2_note","label":{"Urdu":"${e_tt2}","Roman Urdu":"${e_tt2}","English":"${e_tt2}"}},{"bind":{"relevant":"${e_tt3} != ''"},"type":"note","name":"tt3_note","label":{"Urdu":"${e_tt3}","Roman Urdu":"${e_tt3}","English":"${e_tt3}"}},{"bind":{"relevant":"${e_tt4} != ''"},"type":"note","name":"tt4_note","label":{"Urdu":"${e_tt4}","Roman Urdu":"${e_tt4}","English":"${e_tt4}"}},{"name":"vaccines","choice_filter":"name != if( ${e_tt1} != '', 'TT1' , '') and \nname != if( ${e_tt2} != '', 'TT2' , '') and \nname != if( ${e_tt3} != '', 'TT3' , '') and \nname != if( ${e_tt4} != '', 'TT4' , '') and \nname != if( ${e_tt5} != '', 'TT5' , '')","default":"minimal","label":{"Urdu":"پچھلی تاریخ جب کسی اور سینٹر پر ٹیکہ لگوایا گیا یا قطرے پلائے گئے","Roman Urdu":"Pichli tareekh jab kissi aur center par teeka lagwaya gaya ya katray pilaey gaye","English":"Retro vaccines"},"itemset":"vaccines","instance":{"openmrs_entity":"concept","openmrs_entity_id":"984AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1421AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"select all that apply"},{"bind":{"jr:constraintMsg":{"Urdu":"درج کردہ معلومات درست نہیں","English":"Invalid data entered","Roman Urdu":"Darj karda maaloomaat durust nahi"},"relevant":"selected(${vaccines},'TT1')","constraint":"(.<=${today} and .>=${existing_birth_date})"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tt1_retro","label":{"Urdu":"ٹی ٹی 1","Roman Urdu":"TT1","English":"TT1"}},{"bind":{"relevant":"selected(${vaccines},'TT1')","calculate":"1"},"type":"calculate","name":"tt_1_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"درج کردہ معلومات درست نہیں","English":"Invalid data entered","Roman Urdu":"Darj karda maaloomaat durust nahi"},"relevant":"selected(${vaccines},'TT2')","constraint":"(.<=${today} and .>=${tt1_retro} and .>=${existing_birth_date} and ((selected(${vaccines}, 'TT1'))))"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tt2_retro","label":{"Urdu":"ٹی ٹی 2","Roman Urdu":"TT2","English":"TT2"}},{"bind":{"relevant":"selected(${vaccines},'TT2')","calculate":"2"},"type":"calculate","name":"tt_2_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"درج کردہ معلومات درست نہیں","English":"Invalid data entered","Roman Urdu":"Darj karda maaloomaat durust nahi"},"relevant":"selected(${vaccines},'TT3')","constraint":"(.<=${today} and .>=${tt2_retro} and .>=${existing_birth_date} and ((selected(${vaccines}, 'TT2'))))"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tt3_retro","label":{"Urdu":"ٹی ٹی 3","Roman Urdu":"TT3","English":"TT3"}},{"bind":{"relevant":"selected(${vaccines},'TT3')","calculate":"3"},"type":"calculate","name":"tt_3_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"درج کردہ معلومات درست نہیں","English":"Invalid data entered","Roman Urdu":"Darj karda maaloomaat durust nahi"},"relevant":"selected(${vaccines},'TT4')","constraint":"(.<=${today} and .>=${tt3_retro} and .>=${existing_birth_date} and ((selected(${vaccines}, 'TT3'))))"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tt4_retro","label":{"Urdu":"ٹی ٹی 4","Roman Urdu":"TT4","English":"TT4"}},{"bind":{"relevant":"selected(${vaccines},'TT4')","calculate":"4"},"type":"calculate","name":"tt_4_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"name":"vaccines_2","choice_filter":"name != if( ${e_tt1} != '', 'TT1' , '') and \nname != if( ${e_tt2} != '', 'TT2' , '') and \nname != if( ${e_tt3} != '', 'TT3' , '') and \nname != if( ${e_tt4} != '', 'TT4' , '') and \nname != if( ${e_tt5} != '', 'TT5' , '') and \nname != if( selected(${vaccines}, 'TT1') , 'TT1', '') and \nname != if( selected(${vaccines}, 'TT2') , 'TT2', '') and \nname != if( selected(${vaccines}, 'TT3') , 'TT3', '') and \nname != if( selected(${vaccines}, 'TT4') , 'TT4', '') and \nname != if( selected(${vaccines}, 'TT5') , 'TT5', '')","bind":{"required":"yes"},"label":{"Urdu":"آج کون کون سی ویکسین دی گئی ہیں؟","Roman Urdu":"Aaj kon kon si vaccine di gai hain?","English":"Vaccine administered today"},"itemset":"vaccines","instance":{"openmrs_entity":"concept","openmrs_entity_id":"984AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1441AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"select all that apply"},{"bind":{"jr:constraintMsg":{"Urdu":"یہ تاریخ مستقبل کی نہیں ہوسکتی","English":"This date cannot be in the future","Roman Urdu":"Ye tareekh mustaqbil ki nahi hosakti"},"required":"yes","constraint":".<=${today}"},"type":"date","instance":{"openmrs_entity_id":"encounter_date","openmrs_entity":"encounter"},"name":"vaccination_date","label":{"Urdu":"تاریخ","English":"Vaccination date","Roman Urdu":"Tareekh"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'TT1'),${vaccination_date},'')"},"type":"calculate","name":"tt1","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2},'TT1')","calculate":"1"},"type":"calculate","name":"tt_1_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'TT2'),${vaccination_date},'')"},"type":"calculate","name":"tt2","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2},'TT2')","calculate":"2"},"type":"calculate","name":"tt_2_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'TT3'),${vaccination_date},'')"},"type":"calculate","name":"tt3","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2},'TT3')","calculate":"3"},"type":"calculate","name":"tt_3_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'TT4'),${vaccination_date},'')"},"type":"calculate","name":"tt4","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2},'TT4')","calculate":"4"},"type":"calculate","name":"tt_4_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'TT5'),${vaccination_date},'')"},"type":"calculate","name":"tt5","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2},'TT5')","calculate":"5"},"type":"calculate","name":"tt_5_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"control":{"bodyless":true},"type":"group","children":[{"bind":{"readonly":"true()","calculate":"concat('uuid:', uuid())"},"type":"calculate","name":"instanceID"}],"name":"meta"}]} \ No newline at end of file diff --git a/opensrp-register/src/test/resources/form/offsite_woman_followup/form.xml b/opensrp-register/src/test/resources/form/offsite_woman_followup/form.xml deleted file mode 100644 index 2cc334fbed..0000000000 --- a/opensrp-register/src/test/resources/form/offsite_woman_followup/form.xml +++ /dev/null @@ -1,1500 +0,0 @@ -
- - -

دوسرے سینٹر میں رجسٹرڈ خواتین فالواپ رجسٹر - Off Site Woman Follow Up Form

-
-
- - کیا آپ کا گھر کا پتہ بدلا ہے؟ - Kya aap ka ghar ka pata badla hai? - - Has your home address changed? -
- - -
-
-
-
- - کیا آپ اپنے اگلے دورے کی یاددہانی کے لیے SMS موصول کرنا چاہتی ہیں؟ - - Kya aap apnay aglay doray ki yaad-dihani ke liye SMS mausool karna chahti hain? - - - Are you willing to receive SMS reminders for your next visit? - - * -
- - -
-
-
-
- - کیا آپ حاملہ ہیں؟ - Kia aap haamla hain? - - Are you pregnant? -
- - -
-
-
-
- - کیا آپ کو اپنی پچھلی ماہواری کی تاریخ، زچگی کی متوقع تاریخ، یا الٹرا سائونڈ کا علم ہے؟ - Kya aap ko apni pichli mahwaari ki tareekh, zachgi ki mutawaqqa tareekh ya ultrasound ka ilm hai? - - Do you know your LMP, EDD or last Ultrasound information? -
- - - - -
-
-
-
- - پچھلی تاریخ جب کسی اور سینٹر پر ٹیکہ لگوایا گیا یا قطرے پلائے گئے - Pichli tareekh jab kissi aur center par teeka lagwaya gaya ya katray pilaey gaye - - Retro vaccines -
- - - ٹی ٹی 1 - TT1 - 84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - TT1 - ٹی ٹی 2 - TT2 - 84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - TT2 - ٹی ٹی 3 - TT3 - 84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - TT3 - ٹی ٹی 4 - TT4 - 84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - TT4 - ٹی ٹی 5 - TT5 - 84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - TT5 -
-
-
-
- - آج کون کون سی ویکسین دی گئی ہیں؟ - Aaj kon kon si vaccine di gai hain? - - Vaccine administered today - * -
- - - ٹی ٹی 1 - TT1 - 84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - TT1 - ٹی ٹی 2 - TT2 - 84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - TT2 - ٹی ٹی 3 - TT3 - 84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - TT3 - ٹی ٹی 4 - TT4 - 84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - TT4 - ٹی ٹی 5 - TT5 - 84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - TT5 -
-
-
- -
diff --git a/opensrp-register/src/test/resources/form/offsite_woman_followup/form_definition.json b/opensrp-register/src/test/resources/form/offsite_woman_followup/form_definition.json deleted file mode 100644 index f6b58fac11..0000000000 --- a/opensrp-register/src/test/resources/form/offsite_woman_followup/form_definition.json +++ /dev/null @@ -1,377 +0,0 @@ -{ - "form_data_definition_version" : "1", - "form" : { - "bind_type" : "pkwoman", - "default_bind_path" : "/model/instance/Offsite_Woman_Followup_Form/", - "fields" : [ { - "name" : "id", - "shouldLoadValue" : true - }, { - "name" : "provider_uc", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/provider_uc", - "shouldLoadValue" : true - }, { - "name" : "provider_town", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/provider_town", - "shouldLoadValue" : true - }, { - "name" : "provider_city", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/provider_city", - "shouldLoadValue" : true - }, { - "name" : "provider_province", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/provider_province", - "shouldLoadValue" : true - }, { - "name" : "existing_landmark", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_landmark", - "shouldLoadValue" : true - }, { - "name" : "existing_address1", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_address1", - "shouldLoadValue" : true - }, { - "name" : "existing_union_council", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_union_council", - "shouldLoadValue" : true - }, { - "name" : "existing_town", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_town", - "shouldLoadValue" : true - }, { - "name" : "existing_city_village", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_city_village", - "shouldLoadValue" : true - }, { - "name" : "existing_province", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_province", - "shouldLoadValue" : true - }, { - "name" : "existing_union_councilname", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_union_councilname", - "shouldLoadValue" : true - }, { - "name" : "existing_townname", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_townname", - "shouldLoadValue" : true - }, { - "name" : "existing_city_villagename", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_city_villagename", - "shouldLoadValue" : true - }, { - "name" : "existing_provincename", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_provincename", - "shouldLoadValue" : true - }, { - "name" : "existing_first_name", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_first_name", - "shouldLoadValue" : true - }, { - "name" : "existing_last_name", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_last_name", - "shouldLoadValue" : true - }, { - "name" : "existing_father_name", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_father_name", - "shouldLoadValue" : true - }, { - "name" : "existing_husband_name", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_husband_name", - "shouldLoadValue" : true - }, { - "name" : "existing_marriage", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_marriage", - "shouldLoadValue" : true - }, { - "name" : "existing_birth_date", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_birth_date", - "shouldLoadValue" : true - }, { - "name" : "existing_gender", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_gender", - "shouldLoadValue" : true - }, { - "name" : "existing_ethnicity", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_ethnicity", - "shouldLoadValue" : true - }, { - "name" : "existing_client_reg_date", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_client_reg_date", - "shouldLoadValue" : true - }, { - "name" : "existing_program_client_id", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_program_client_id", - "shouldLoadValue" : true - }, { - "name" : "existing_epi_card_number", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_epi_card_number", - "shouldLoadValue" : true - }, { - "name" : "existing_reminders_approval", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_reminders_approval" - }, { - "name" : "existing_contact_phone_number", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_contact_phone_number" - }, { - "name" : "e_tt1", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/e_tt1", - "shouldLoadValue" : true - }, { - "name" : "e_tt2", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/e_tt2", - "shouldLoadValue" : true - }, { - "name" : "e_tt3", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/e_tt3", - "shouldLoadValue" : true - }, { - "name" : "e_tt4", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/e_tt4", - "shouldLoadValue" : true - }, { - "name" : "e_tt5", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/e_tt5", - "shouldLoadValue" : true - }, { - "name" : "provider_id", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/provider_id", - "shouldLoadValue" : true - }, { - "name" : "provider_location_id", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/provider_location_id", - "shouldLoadValue" : true - }, { - "name" : "provider_location_name", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/provider_location_name", - "shouldLoadValue" : true - }, { - "name" : "provider_location_note", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/provider_location_note" - }, { - "name" : "start", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/start" - }, { - "name" : "end", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/end" - }, { - "name" : "today", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/today" - }, { - "name" : "deviceid", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/deviceid" - }, { - "name" : "subscriberid", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/subscriberid" - }, { - "name" : "simserial", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/simserial" - }, { - "name" : "phonenumber", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/phonenumber" - }, { - "name" : "client_reg_date_note", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/client_reg_date_note" - }, { - "name" : "program_client_id_note", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/program_client_id_note" - }, { - "name" : "epi_card_number", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/epi_card_number" - }, { - "name" : "first_name_note", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/first_name_note" - }, { - "name" : "last_name_note", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/last_name_note" - }, { - "name" : "client_age", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/client_age" - }, { - "name" : "birth_date_note", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/member_birth_date_note" - }, { - "name" : "gender_note", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/gender_note" - }, { - "name" : "father_name_note", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/father_name_note" - }, { - "name" : "marriage_note", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/marriage_note" - }, { - "name" : "husband_name_note", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/husband_name_note" - }, { - "name" : "ethnicity_note", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/ethnicity_note" - }, { - "name" : "address", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/address" - }, { - "name" : "address_change", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/address_change" - }, { - "name" : "province", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/province" - }, { - "name" : "city_village", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/city_village" - }, { - "name" : "town", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/town" - }, { - "name" : "union_council", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/union_council" - }, { - "name" : "address1", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/address1" - }, { - "name" : "landmark", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/landmark" - }, { - "name" : "center_gps", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/center_gps" - }, { - "name" : "reminders_approval", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/reminders_approval" - }, { - "name" : "contact_phone_number", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/contact_phone_number" - }, { - "name" : "pregnant", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/pregnant" - }, { - "name" : "edd_lmp", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/edd_lmp" - }, { - "name" : "edd", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/edd" - }, { - "name" : "lmp", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/lmp" - }, { - "name" : "ultrasound_date", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/ultrasound_date" - }, { - "name" : "ultrasound_weeks", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/ultrasound_weeks" - }, { - "name" : "edd_calc_lmp", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/edd_calc_lmp" - }, { - "name" : "edd_calc_ultrasound", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/edd_calc_ultrasound" - }, { - "name" : "edd_calc_lmp_formatted", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/edd_calc_lmp_formatted" - }, { - "name" : "edd_calc_ultrasound_formatted", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/edd_calc_ultrasound_formatted" - }, { - "name" : "lmp_calc_edd", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/lmp_calc_edd" - }, { - "name" : "lmp_calc_ultrasound", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/lmp_calc_ultrasound" - }, { - "name" : "lmp_calc_edd_formatted", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/lmp_calc_edd_formatted" - }, { - "name" : "lmp_calc_ultrasound_formatted", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/lmp_calc_ultrasound_formatted" - }, { - "name" : "final_edd", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/final_edd" - }, { - "name" : "final_lmp", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/final_lmp" - }, { - "name" : "ga_edd", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/ga_edd" - }, { - "name" : "ga_lmp", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/ga_lmp" - }, { - "name" : "ga_ult", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/ga_ult" - }, { - "name" : "final_edd_note", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/final_edd_note" - }, { - "name" : "final_lmp_note", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/final_lmp_note" - }, { - "name" : "final_ga", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/final_ga" - }, { - "name" : "final_ga_note", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/final_ga_note" - }, { - "name" : "vaccines", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/vaccines" - }, { - "name" : "tt1_retro", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/tt1_retro" - }, { - "name" : "tt_1_dose", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/tt_1_dose" - }, { - "name" : "tt2_retro", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/tt2_retro" - }, { - "name" : "tt_2_dose", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/tt_2_dose" - }, { - "name" : "tt3_retro", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/tt3_retro" - }, { - "name" : "tt_3_dose", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/tt_3_dose" - }, { - "name" : "tt4_retro", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/tt4_retro" - }, { - "name" : "tt_4_dose", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/tt_4_dose" - }, { - "name" : "vaccines_2", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/vaccines_2" - }, { - "name" : "vaccination_date", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/vaccination_date" - }, { - "name" : "tt1", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/tt1" - }, { - "name" : "tt_1_dose_today", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/tt_1_dose_today" - }, { - "name" : "tt2", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/tt2" - }, { - "name" : "tt_2_dose_today", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/tt_2_dose_today" - }, { - "name" : "tt3", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/tt3" - }, { - "name" : "tt_3_dose_today", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/tt_3_dose_today" - }, { - "name" : "tt4", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/tt4" - }, { - "name" : "tt_4_dose_today", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/tt_4_dose_today" - }, { - "name" : "tt5", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/tt5" - }, { - "name" : "tt_5_dose_today", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/tt_5_dose_today" - }, { - "name" : "instanceID", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/meta/instanceID" - } ] - } -} \ No newline at end of file diff --git a/opensrp-register/src/test/resources/form/offsite_woman_followup/model.xml b/opensrp-register/src/test/resources/form/offsite_woman_followup/model.xml deleted file mode 100644 index d661d1b866..0000000000 --- a/opensrp-register/src/test/resources/form/offsite_woman_followup/model.xml +++ /dev/null @@ -1,1645 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - ${provider_province} - ${provider_city} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - minimal - - - - - - - - - - - - - - - - - - - - - - - - - - - - - static_instance-provinces-0 - kpk - - - static_instance-provinces-1 - sindh - - - static_instance-provinces-2 - balochistan - - - static_instance-provinces-3 - punjab - - - static_instance-provinces-4 - gilgit_baltistan - - - static_instance-provinces-5 - kashmir - - - static_instance-provinces-6 - fata - - - static_instance-provinces-7 - out_of_country - - - - - - - static_instance-ucs-0 - sindh - karachi - korangi - bilal_colony - - - static_instance-ucs-1 - sindh - karachi - korangi - nasir_colony - - - static_instance-ucs-2 - sindh - karachi - korangi - chakra_goth - - - static_instance-ucs-3 - sindh - karachi - korangi - mustafa_taj_colony - - - static_instance-ucs-4 - sindh - karachi - korangi - hundred_quarters - - - static_instance-ucs-5 - sindh - karachi - korangi - gulzar_colony - - - static_instance-ucs-6 - sindh - karachi - korangi - korangi_sector_33 - - - static_instance-ucs-7 - sindh - karachi - korangi - zaman_town - - - static_instance-ucs-8 - sindh - karachi - korangi - hasrat_mohani_colony - - - static_instance-ucs-9 - sindh - karachi - baldia - gulshan_e_ghazi - - - static_instance-ucs-10 - sindh - karachi - baldia - ittehad_town - - - static_instance-ucs-11 - sindh - karachi - baldia - islam_nagar - - - static_instance-ucs-12 - sindh - karachi - baldia - nai_abadi - - - static_instance-ucs-13 - sindh - karachi - baldia - saeedabad - - - static_instance-ucs-14 - sindh - karachi - baldia - muslim_mujahid_colony - - - static_instance-ucs-15 - sindh - karachi - baldia - muhajir_camp - - - static_instance-ucs-16 - sindh - karachi - baldia - rasheedabad - - - static_instance-ucs-17 - sindh - karachi - bin_qasim - ibrahim_hyderi - - - static_instance-ucs-18 - sindh - karachi - bin_qasim - rehri - - - static_instance-ucs-19 - sindh - karachi - bin_qasim - cattle_colony - - - static_instance-ucs-20 - sindh - karachi - bin_qasim - qaidabad - - - static_instance-ucs-21 - sindh - karachi - bin_qasim - landhi_colony - - - static_instance-ucs-22 - sindh - karachi - bin_qasim - gulshan_e_hadeed - - - static_instance-ucs-23 - sindh - karachi - bin_qasim - gaghar - - - static_instance-ucs-24 - sindh - karachi - gadap - murad_memon_goth - - - static_instance-ucs-25 - sindh - karachi - gadap - darsano_chana - - - static_instance-ucs-26 - sindh - karachi - gadap - gujro - - - static_instance-ucs-27 - sindh - karachi - gadap - songal - - - static_instance-ucs-28 - sindh - karachi - gadap - maymarabad - - - static_instance-ucs-29 - sindh - karachi - gadap - yousuf_goth - - - static_instance-ucs-30 - sindh - karachi - gadap - manghopir - - - static_instance-ucs-31 - sindh - karachi - gulberg - azizabad - - - static_instance-ucs-32 - sindh - karachi - gulberg - karimabad - - - static_instance-ucs-33 - sindh - karachi - gulberg - aisha_manzil - - - static_instance-ucs-34 - sindh - karachi - gulberg - ancholi - - - static_instance-ucs-35 - sindh - karachi - gulberg - naseerabad - - - static_instance-ucs-36 - sindh - karachi - gulberg - yaseenabad - - - static_instance-ucs-37 - sindh - karachi - gulberg - water_pump - - - static_instance-ucs-38 - sindh - karachi - gulberg - shafiq_mill_colony - - - static_instance-ucs-39 - sindh - karachi - gulshan - delhi_mercantile_society - - - static_instance-ucs-40 - sindh - karachi - gulshan - civic_centre - - - static_instance-ucs-41 - sindh - karachi - gulshan - pir_ilahi_buksh_colony - - - static_instance-ucs-42 - sindh - karachi - gulshan - essa_nagri - - - static_instance-ucs-43 - sindh - karachi - gulshan - gulshan_e_iqbal - - - static_instance-ucs-44 - sindh - karachi - gulshan - gillani_railway_station - - - static_instance-ucs-45 - sindh - karachi - gulshan - shanti_nagar - - - static_instance-ucs-46 - sindh - karachi - gulshan - jamali_colony - - - static_instance-ucs-47 - sindh - karachi - gulshan - gulshan_e_iqbal_ii - - - static_instance-ucs-48 - sindh - karachi - gulshan - pehlwan_goth - - - static_instance-ucs-49 - sindh - karachi - gulshan - matrovil_colony - - - static_instance-ucs-50 - sindh - karachi - gulshan - gulzar_e_hijri - - - static_instance-ucs-51 - sindh - karachi - gulshan - safooran_goth - - - static_instance-ucs-52 - sindh - karachi - jamshed - akhtar_colony - - - static_instance-ucs-53 - sindh - karachi - jamshed - manzoor_colony - - - static_instance-ucs-54 - sindh - karachi - jamshed - azam_basti - - - static_instance-ucs-55 - sindh - karachi - jamshed - chanesar_goth - - - static_instance-ucs-56 - sindh - karachi - jamshed - mahmudabad - - - static_instance-ucs-57 - sindh - karachi - jamshed - pechs - - - static_instance-ucs-58 - sindh - karachi - jamshed - pechs_ii - - - static_instance-ucs-59 - sindh - karachi - jamshed - jut_line - - - static_instance-ucs-60 - sindh - karachi - jamshed - central_jacob_lines - - - static_instance-ucs-61 - sindh - karachi - jamshed - jamshed_quarters - - - static_instance-ucs-62 - sindh - karachi - jamshed - garden_east - - - static_instance-ucs-63 - sindh - karachi - jamshed - soldier_bazar - - - static_instance-ucs-64 - sindh - karachi - jamshed - pakistan_quarters - - - static_instance-ucs-65 - sindh - karachi - kiamari - bhutta_village - - - static_instance-ucs-66 - sindh - karachi - kiamari - sultanabad - - - static_instance-ucs-67 - sindh - karachi - kiamari - kiamari_uc - - - static_instance-ucs-68 - sindh - karachi - kiamari - baba_bhit - - - static_instance-ucs-69 - sindh - karachi - kiamari - machar_colony - - - static_instance-ucs-70 - sindh - karachi - kiamari - maripur - - - static_instance-ucs-71 - sindh - karachi - kiamari - shershah - - - static_instance-ucs-72 - sindh - karachi - kiamari - gabo_pat - - - static_instance-ucs-73 - sindh - karachi - landhi - muzafarabad - - - static_instance-ucs-74 - sindh - karachi - landhi - muslimabad - - - static_instance-ucs-75 - sindh - karachi - landhi - dawood_chowrangi - - - static_instance-ucs-76 - sindh - karachi - landhi - moinabad - - - static_instance-ucs-77 - sindh - karachi - landhi - sharafi_goth - - - static_instance-ucs-78 - sindh - karachi - landhi - bhutto_nagar - - - static_instance-ucs-79 - sindh - karachi - landhi - khawaja_ajmeer_colony - - - static_instance-ucs-80 - sindh - karachi - landhi - landhi_uc - - - static_instance-ucs-81 - sindh - karachi - landhi - awami_colony - - - static_instance-ucs-82 - sindh - karachi - landhi - burmee_colony - - - static_instance-ucs-83 - sindh - karachi - landhi - korangi_uc - - - static_instance-ucs-84 - sindh - karachi - landhi - sherabad - - - static_instance-ucs-85 - sindh - karachi - liaquatabad - rizvia_society - - - static_instance-ucs-86 - sindh - karachi - liaquatabad - firdous_colony - - - static_instance-ucs-87 - sindh - karachi - liaquatabad - super_market - - - static_instance-ucs-88 - sindh - karachi - liaquatabad - dak_khana - - - static_instance-ucs-89 - sindh - karachi - liaquatabad - qasimabad - - - static_instance-ucs-90 - sindh - karachi - liaquatabad - bandhani_colony - - - static_instance-ucs-91 - sindh - karachi - liaquatabad - sharifabad - - - static_instance-ucs-92 - sindh - karachi - liaquatabad - commercial_area - - - static_instance-ucs-93 - sindh - karachi - liaquatabad - mujahid_colony - - - static_instance-ucs-94 - sindh - karachi - liaquatabad - nazimabad - - - static_instance-ucs-95 - sindh - karachi - liaquatabad - abbasi_shaheed - - - static_instance-ucs-96 - sindh - karachi - lyari - agra_taj_colony - - - static_instance-ucs-97 - sindh - karachi - lyari - daryaabad - - - static_instance-ucs-98 - sindh - karachi - lyari - nawabad - - - static_instance-ucs-99 - sindh - karachi - lyari - khada_memon_society - - - static_instance-ucs-100 - sindh - karachi - lyari - baghdadi - - - static_instance-ucs-101 - sindh - karachi - lyari - shah_baig_line - - - static_instance-ucs-102 - sindh - karachi - lyari - bihar_colony - - - static_instance-ucs-103 - sindh - karachi - lyari - ragiwara - - - static_instance-ucs-104 - sindh - karachi - lyari - singo_line - - - static_instance-ucs-105 - sindh - karachi - lyari - chakiwara - - - static_instance-ucs-106 - sindh - karachi - lyari - allama_iqbal_colony - - - static_instance-ucs-107 - sindh - karachi - malir - model_colony - - - static_instance-ucs-108 - sindh - karachi - malir - kala_board - - - static_instance-ucs-109 - sindh - karachi - malir - saudabad - - - static_instance-ucs-110 - sindh - karachi - malir - khokhra_par - - - static_instance-ucs-111 - sindh - karachi - malir - jafar_e_tayyar - - - static_instance-ucs-112 - sindh - karachi - malir - gharibabad - - - static_instance-ucs-113 - sindh - karachi - malir - ghazi_brohi_goth - - - static_instance-ucs-114 - sindh - karachi - new_karachi - kalyana - - - static_instance-ucs-115 - sindh - karachi - new_karachi - sir_syed_colony - - - static_instance-ucs-116 - sindh - karachi - new_karachi - fatima_jinnah_colony - - - static_instance-ucs-117 - sindh - karachi - new_karachi - godhra - - - static_instance-ucs-118 - sindh - karachi - new_karachi - abu_zar_ghaffari - - - static_instance-ucs-119 - sindh - karachi - new_karachi - hakim_ahsan - - - static_instance-ucs-120 - sindh - karachi - new_karachi - madina_colony - - - static_instance-ucs-121 - sindh - karachi - new_karachi - faisal_colony - - - static_instance-ucs-122 - sindh - karachi - new_karachi - khamiso_goth - - - static_instance-ucs-123 - sindh - karachi - new_karachi - mustufa_colony - - - static_instance-ucs-124 - sindh - karachi - new_karachi - khawaja_ajmeer_nagri - - - static_instance-ucs-125 - sindh - karachi - new_karachi - gulshan_e_saeed - - - static_instance-ucs-126 - sindh - karachi - new_karachi - shah_nawaz_bhutto_colony - - - static_instance-ucs-127 - sindh - karachi - north_nazimabad - paposh_nagar - - - static_instance-ucs-128 - sindh - karachi - north_nazimabad - pahar_ganj - - - static_instance-ucs-129 - sindh - karachi - north_nazimabad - khandu_goth - - - static_instance-ucs-130 - sindh - karachi - north_nazimabad - hyderi - - - static_instance-ucs-131 - sindh - karachi - north_nazimabad - sakhi_hassan - - - static_instance-ucs-132 - sindh - karachi - north_nazimabad - farooq_e_azam - - - static_instance-ucs-133 - sindh - karachi - north_nazimabad - nusrat_bhutto_colony - - - static_instance-ucs-134 - sindh - karachi - north_nazimabad - shadman_town - - - static_instance-ucs-135 - sindh - karachi - north_nazimabad - buffer_zone - - - static_instance-ucs-136 - sindh - karachi - north_nazimabad - buffer_zone_ii - - - static_instance-ucs-137 - sindh - karachi - orangi - mominabad - - - static_instance-ucs-138 - sindh - karachi - orangi - haryana_colony - - - static_instance-ucs-139 - sindh - karachi - orangi - hanifabad - - - static_instance-ucs-140 - sindh - karachi - orangi - mohammad_nagar - - - static_instance-ucs-141 - sindh - karachi - orangi - madina_colony_orangi - - - static_instance-ucs-142 - sindh - karachi - orangi - ghaziabad - - - static_instance-ucs-143 - sindh - karachi - orangi - chisti_nagar - - - static_instance-ucs-144 - sindh - karachi - orangi - bilal_colony_orangi - - - static_instance-ucs-145 - sindh - karachi - orangi - iqbal_baloch_colony - - - static_instance-ucs-146 - sindh - karachi - orangi - ghabool_town - - - static_instance-ucs-147 - sindh - karachi - orangi - data_nagar - - - static_instance-ucs-148 - sindh - karachi - orangi - mujahidabad - - - static_instance-ucs-149 - sindh - karachi - orangi - baloch_goth - - - static_instance-ucs-150 - sindh - karachi - saddar - old_haji_camp - - - static_instance-ucs-151 - sindh - karachi - saddar - garden - - - static_instance-ucs-152 - sindh - karachi - saddar - kharadar - - - static_instance-ucs-153 - sindh - karachi - saddar - city_railway_colony - - - static_instance-ucs-154 - sindh - karachi - saddar - nanak_wara - - - static_instance-ucs-155 - sindh - karachi - saddar - gazdarabad - - - static_instance-ucs-156 - sindh - karachi - saddar - millat_nagar_islam_pura - - - static_instance-ucs-157 - sindh - karachi - saddar - saddar_uc - - - static_instance-ucs-158 - sindh - karachi - saddar - civil_line - - - static_instance-ucs-159 - sindh - karachi - saddar - clifton - - - static_instance-ucs-160 - sindh - karachi - saddar - kehkashan - - - static_instance-ucs-161 - sindh - karachi - shah_faisal - natha_khan_goth - - - static_instance-ucs-162 - sindh - karachi - shah_faisal - pak_sadat_colony - - - static_instance-ucs-163 - sindh - karachi - shah_faisal - drigh_colony - - - static_instance-ucs-164 - sindh - karachi - shah_faisal - raita_plot - - - static_instance-ucs-165 - sindh - karachi - shah_faisal - moria_khan_goth - - - static_instance-ucs-166 - sindh - karachi - shah_faisal - rafa_e_aam_society - - - static_instance-ucs-167 - sindh - karachi - shah_faisal - al_falah_society - - - static_instance-ucs-168 - sindh - karachi - site - pak_colony - - - static_instance-ucs-169 - sindh - karachi - site - old_golimar - - - static_instance-ucs-170 - sindh - karachi - site - jahanabad - - - static_instance-ucs-171 - sindh - karachi - site - metrovil - - - static_instance-ucs-172 - sindh - karachi - site - bhawani_chali - - - static_instance-ucs-173 - sindh - karachi - site - frontier_colony - - - static_instance-ucs-174 - sindh - karachi - site - banaras_colony - - - static_instance-ucs-175 - sindh - karachi - site - qasba_colony - - - static_instance-ucs-176 - sindh - karachi - site - islamia_colony - - - static_instance-ucs-177 - na - na - na - other - - - static_instance-ucs-178 - na - na - na - not_applicable - - - - - - - static_instance-gender-0 - male - - - static_instance-gender-1 - female - - - static_instance-gender-2 - transgender - - - - - - - static_instance-vaccines-0 - TT1 - - - static_instance-vaccines-1 - TT2 - - - static_instance-vaccines-2 - TT3 - - - static_instance-vaccines-3 - TT4 - - - static_instance-vaccines-4 - TT5 - - - - - - - static_instance-towns-0 - sindh - karachi - korangi - - - static_instance-towns-1 - sindh - karachi - landhi - - - static_instance-towns-2 - sindh - karachi - baldia - - - static_instance-towns-3 - sindh - karachi - bin_qasim - - - static_instance-towns-4 - sindh - karachi - gadap - - - static_instance-towns-5 - sindh - karachi - gulberg - - - static_instance-towns-6 - sindh - karachi - gulshan - - - static_instance-towns-7 - sindh - karachi - jamshed - - - static_instance-towns-8 - sindh - karachi - kiamari - - - static_instance-towns-9 - sindh - karachi - liaquatabad - - - static_instance-towns-10 - sindh - karachi - lyari - - - static_instance-towns-11 - sindh - karachi - malir - - - static_instance-towns-12 - sindh - karachi - new_karachi - - - static_instance-towns-13 - sindh - karachi - north_nazimabad - - - static_instance-towns-14 - sindh - karachi - orangi - - - static_instance-towns-15 - sindh - karachi - saddar - - - static_instance-towns-16 - sindh - karachi - shah_faisal - - - static_instance-towns-17 - sindh - karachi - site - - - static_instance-towns-18 - na - na - other - - - static_instance-towns-19 - na - na - not_applicable - - - - - - - static_instance-cities-0 - sindh - karachi - - - static_instance-cities-1 - punjab - hafizabad - - - static_instance-cities-2 - punjab - muzaffargarh - - - static_instance-cities-3 - na - other - - - static_instance-cities-4 - na - not_applicable - - - - - - - static_instance-edd_lmp-0 - edd - - - static_instance-edd_lmp-1 - lmp - - - static_instance-edd_lmp-2 - ultrasound - - - static_instance-edd_lmp-3 - none - - - - - - - static_instance-yes_no-0 - yes - - - static_instance-yes_no-1 - no - - - - diff --git a/opensrp-register/src/test/resources/form/vaccine_stock_position/form.json b/opensrp-register/src/test/resources/form/vaccine_stock_position/form.json deleted file mode 100644 index 7a7b26bebe..0000000000 --- a/opensrp-register/src/test/resources/form/vaccine_stock_position/form.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"Vaccine_Stock_Position","title":"ویکسین اسٹاک پوزیشن - Vaccine Stock Position","sms_keyword":"vaccine_stock_position","default_language":"English","instance":{"encounter_type":"Vaccine stock position"},"version":"201604180554","id_string":"vaccine_stock_position","type":"survey","children":[{"type":"hidden","name":"provider_uc"},{"type":"hidden","name":"provider_town"},{"type":"hidden","name":"provider_city"},{"type":"hidden","name":"provider_province"},{"type":"hidden","name":"provider_id"},{"instance":{"openmrs_entity_id":"location_id","openmrs_entity":"encounter"},"type":"hidden","name":"provider_location_id"},{"type":"hidden","name":"provider_location_name"},{"type":"note","name":"provider_location_note","label":{"Urdu":"شہر: ${provider_city} ; Town: ${provider_town} ; UC: ${provider_uc} ; Center Name: ${provider_location_name}","English":"City: ${provider_city} ; Town: ${provider_town} ; UC: ${provider_uc} ; Center Name: ${provider_location_name}","Roman Urdu":"Shehr: ${provider_city} ; Town: ${provider_town} ; UC: ${provider_uc} ; Center Name: ${provider_location_name}"}},{"instance":{"openmrs_entity_id":"163137AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"start","name":"start"},{"instance":{"openmrs_entity_id":"163138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"end","name":"end"},{"instance":{"openmrs_entity_id":"163286AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"today","name":"today"},{"instance":{"openmrs_entity_id":"163149AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"deviceid","name":"deviceid"},{"instance":{"openmrs_entity_id":"163150AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"subscriberid","name":"subscriberid"},{"instance":{"openmrs_entity_id":"163151AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"simserial","name":"simserial"},{"instance":{"openmrs_entity_id":"163152AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"phonenumber","name":"phonenumber"},{"bind":{"calculate":"format-date(${today}, '%e-%n-%Y')"},"type":"calculate","name":"date_formatted"},{"type":"note","name":"vaccinator_name","label":{"Urdu":"${provider_id}","English":"${provider_id}","Roman Urdu":"${provider_id}"}},{"type":"note","name":"center_name","label":{"Urdu":"سینٹر کا نام: ${provider_location_name}","English":"Center Name: ${provider_location_name}","Roman Urdu":"Center ka naam: ${provider_location_name}"}},{"bind":{"jr:constraintMsg":{"Urdu":"یہ تاریخ مستقبل کی نہیں ہو سکتی۔","English":"This cannot be a date in the future.","Roman Urdu":"Ye tareekh mustaqbil ki nahi ho sakti."},"constraint":".<=${today}"},"type":"date","instance":{"openmrs_entity_id":"encounter_date","openmrs_entity":"encounter"},"name":"date","label":{"Urdu":"تاریخ","English":"Date","Roman Urdu":"Tareekh"}},{"name":"report","bind":{"required":"yes"},"label":{"Urdu":"رپورٹ کی قسم","English":"Report Type","Roman Urdu":"Report ki kism"},"instance":{"openmrs_entity_id":"163331AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"160862AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"daily","label":{"Urdu":"روزانہ کی رپورٹ","Roman Urdu":"Rozaana ki report","English":"Daily"}},{"instance":{"openmrs_code":"1098AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"monthly","label":{"Urdu":"ماہانہ رپورٹ","Roman Urdu":"Mahaana report","English":"Monthly"}}]},{"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"type":"integer","instance":{"openmrs_entity_id":"163174AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"Target_assigned_for_vaccination_at_each_month","label":{"Urdu":"ویکسین لگانے کا ماہانہ ہدف","English":"Monthly Target","Roman Urdu":"Vaccine laganay ka mahaana hadf"}},{"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"type":"integer","instance":{"openmrs_entity_id":"163175AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"Target_assigned_for_vaccination_for_the_year","label":{"Urdu":"ویکسین لگانے کا سالانہ ہدف","English":"Yearly Target","Roman Urdu":"Vaccine laganay ka salaana hadf"}},{"name":"bcg_balance_in_hand","hint":{"Urdu":"خوراک کی تعداد","Roman Urdu":"Khoraak ki taadaad","English":"Number of doses"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"موجودہ بی سی جی کی تعداد","Roman Urdu":"Maujooda BCG ki taadaad","English":"BCG balance in hand"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163173AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"886AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"bcg_received","hint":{"Urdu":"خوراک کی تعداد","Roman Urdu":"Khoraak ki taadaad","English":"Number of doses"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"موصول ہونے والی بی سی جی کی تعداد","Roman Urdu":"Mausool honay wali BCG ki taadaad","English":"BCG received"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163170AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"886AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"bcg_wasted","hint":{"Urdu":"خوراک کی تعداد","Roman Urdu":"Khoraak ki taadaad","English":"Number of doses"},"bind":{"relevant":"selected(${report}, 'daily')","required":"yes"},"label":{"Urdu":"ضائع ہونے والی بی سی جی کی تعداد","Roman Urdu":"Zaya honay wali BCG ki taadaad","English":"BCG wasted"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163172AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"886AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"opv_balance_in_hand","hint":{"Urdu":"خوراک کی تعداد","Roman Urdu":"Khoraak ki taadaad","English":"Number of doses"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"موجودہ او پی وی کی تعداد","Roman Urdu":"Maujooda OPV ki taadaad","English":"OPV balance in hand"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163173AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"opv_received","hint":{"Urdu":"خوراک کی تعداد","Roman Urdu":"Khoraak ki taadaad","English":"Number of doses"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"موصول ہونے والی او پی وی کی تعداد","Roman Urdu":"Mausool honay wali OPV ki taadaad","English":"OPV received"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163170AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"opv_wasted","hint":{"Urdu":"خوراک کی تعداد","Roman Urdu":"Khoraak ki taadaad","English":"Number of doses"},"bind":{"relevant":"selected(${report}, 'daily')","required":"yes"},"label":{"Urdu":"ضائع ہونے والی او پی وی کی تعداد","Roman Urdu":"Zaya honay wali OPV ki taadaad","English":"OPV wasted"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163172AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"ipv_balance_in_hand","hint":{"Urdu":"خوراک کی تعداد","Roman Urdu":"Khoraak ki taadaad","English":"Number of doses"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"موجودہ آئی پی وی کی تعداد","Roman Urdu":"Maujooda IPV ki taadaad","English":"IPV balance in hand"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163173AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1422AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"ipv_received","hint":{"Urdu":"خوراک کی تعداد","Roman Urdu":"Khoraak ki taadaad","English":"Number of doses"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"موصول ہونے والی آئی پی وی کی تعداد","Roman Urdu":"Mausool honay wali IPV ki taadaad","English":"IPV received"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163170AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1422AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"ipv_wasted","hint":{"Urdu":"خوراک کی تعداد","Roman Urdu":"Khoraak ki taadaad","English":"Number of doses"},"bind":{"relevant":"selected(${report}, 'daily')","required":"yes"},"label":{"Urdu":"ضائع ہونے والی آئی پی وی کی تعداد","Roman Urdu":"Zaya honay wali IPV ki taadaad","English":"IPV wasted"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163172AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1422AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"pcv_balance_in_hand","hint":{"Urdu":"خوراک کی تعداد","Roman Urdu":"Khoraak ki taadaad","English":"Number of doses"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"موجودہ پی سی وی کی تعداد","Roman Urdu":"Maujooda PCV ki taadaad","English":"PCV balance in hand"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163173AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"pcv_received","hint":{"Urdu":"خوراک کی تعداد","Roman Urdu":"Khoraak ki taadaad","English":"Number of doses"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"موصول ہونے والی پی سی وی کی تعداد","Roman Urdu":"Mausool honay wali PCV ki taadaad","English":"PCV received"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163170AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"pcv_wasted","hint":{"Urdu":"خوراک کی تعداد","Roman Urdu":"Khoraak ki taadaad","English":"Number of doses"},"bind":{"relevant":"selected(${report}, 'daily')","required":"yes"},"label":{"Urdu":"ضائع ہونے والی پی سی وی کی تعداد","Roman Urdu":"Zaya honay wali PCV ki taadaad","English":"PCV wasted"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163172AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"penta_balance_in_hand","hint":{"Urdu":"خوراک کی تعداد","Roman Urdu":"Khoraak ki taadaad","English":"Number of doses"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"موجودہ پینٹاویلنٹ کی تعداد","Roman Urdu":"Maujooda Pentavalent ki taadaad","English":"Penta balance in hand"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163173AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"penta_received","hint":{"Urdu":"خوراک کی تعداد","Roman Urdu":"Khoraak ki taadaad","English":"Number of doses"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"موصول ہونے والی پینٹاویلنٹ کی تعداد","Roman Urdu":"Mausool honay wali Pentavalent ki taadaad","English":"Penta received"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163170AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"penta_wasted","hint":{"Urdu":"خوراک کی تعداد","Roman Urdu":"Khoraak ki taadaad","English":"Number of doses"},"bind":{"relevant":"selected(${report}, 'daily')","required":"yes"},"label":{"Urdu":"ضائع ہونے والی پینٹاویلنٹ کی تعداد","Roman Urdu":"Zaya honay wali Pentavalent ki taadaad","English":"Penta wasted"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163172AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"measles_balance_in_hand","hint":{"Urdu":"خوراک کی تعداد","Roman Urdu":"Khoraak ki taadaad","English":"Number of doses"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"موجودہ خسرے کے ٹیکوں کی تعداد","Roman Urdu":"Maujooda khasray ke teekon ki taadaad","English":"Measles balance in hand"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163173AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"79409AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"measles_received","hint":{"Urdu":"خوراک کی تعداد","Roman Urdu":"Khoraak ki taadaad","English":"Number of doses"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"موصول ہونے والے خسرے کے ٹیکوں کی تعداد","Roman Urdu":"Mausool honay walay khasray ke teekay ki taadaad","English":"Measles received"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163170AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"79409AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"measles_wasted","hint":{"Urdu":"خوراک کی تعداد","Roman Urdu":"Khoraak ki taadaad","English":"Number of doses"},"bind":{"relevant":"selected(${report}, 'daily')","required":"yes"},"label":{"Urdu":"ضائع ہونے والے خسرے کے ٹیکوں کی تعداد","Roman Urdu":"Zaya honay walay khasray ke teekay ki taadaad","English":"Measles wasted"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163172AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"79409AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"tt_balance_in_hand","hint":{"Urdu":"خوراک کی تعداد","Roman Urdu":"Khoraak ki taadaad","English":"Number of doses"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"موجودہ ٹی ٹی کی تعداد","Roman Urdu":"Maujooda TT ki taadaad","English":"TT balance in hand"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163173AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"tt_received","hint":{"Urdu":"خوراک کی تعداد","Roman Urdu":"Khoraak ki taadaad","English":"Number of doses"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"موصول ہونے والی ٹی ٹی کی تعداد","Roman Urdu":"Mausool honay wali TT ki taadaad","English":"TT received"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163170AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"tt_wasted","hint":{"Urdu":"خوراک کی تعداد","Roman Urdu":"Khoraak ki taadaad","English":"Number of doses"},"bind":{"relevant":"selected(${report}, 'daily')","required":"yes"},"label":{"Urdu":"ضائع ہونے والی ٹی ٹی کی تعداد","Roman Urdu":"Zaya honay wali TT ki taadaad","English":"TT wasted"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163172AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"dilutants_balance_in_hand","hint":{"Urdu":"خوراک کی تعداد","Roman Urdu":"Khoraak ki taadaad","English":"Number of doses"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"انجیکشن کے لئے موجودہ جراثیم سے پاک پانی کی شیشیوں کی تعداد","Roman Urdu":"Injection ke liye maujooda jaraseem se paak paani ki sheeshion ki taadaad","English":"Dilutants balance in hand"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163173AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"163287AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"dilutants_received","hint":{"Urdu":"خوراک کی تعداد","Roman Urdu":"Khoraak ki taadaad","English":"Number of doses"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"انجیکشن کے لئے موصول ہونے والا جراثیم سے پاک پانی کی شیشیوں کی تعداد","Roman Urdu":"Injection ke liye mausool honay wala jaraseem se paak paani ki sheeshion ki taadaad","English":"Dilutants received"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163170AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"163287AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"dilutants_wasted","hint":{"Urdu":"خوراک کی تعداد","Roman Urdu":"Khoraak ki taadaad","English":"Number of doses"},"bind":{"relevant":"selected(${report}, 'daily')","required":"yes"},"label":{"Urdu":"انجیکشن کے لئے ضائع ہونے والا جراثیم سے پاک پانی کی شیشیوں کی تعداد","Roman Urdu":"Injection ke liye zaya honay wala jaraseem se paak paani ki sheeshion ki taadaad","English":"Dilutants wasted"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163172AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"163287AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"syringes_balance_in_hand","hint":{"Urdu":"سرنج کی تعداد","Roman Urdu":"Syringe ki taadaad","English":"Number of syringes"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"موجودہ سرنج کی تعداد","Roman Urdu":"Maujooda siranj ki taadaad","English":"Syringes balance in hand"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163173AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162377AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"syringes_received","hint":{"Urdu":"سرنج کی تعداد","Roman Urdu":"Syringe ki taadaad","English":"Number of syringes"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"موصول ہونے والی سرنج کی تعداد","Roman Urdu":"Mausool honay wali siranj ki taadaad","English":"Syringes received"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163170AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162377AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"syringes_wasted","hint":{"Urdu":"سرنج کی تعداد","Roman Urdu":"Syringe ki taadaad","English":"Number of syringes"},"bind":{"relevant":"selected(${report}, 'daily')","required":"yes"},"label":{"Urdu":"ضائع ہونے والی سرنج کی تعداد","Roman Urdu":"Zaya honay wali siranj taadaad","English":"Syringes wasted"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163172AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162377AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"safety_boxes_balance_in_hand","hint":{"Urdu":"باکس کی تعداد","Roman Urdu":"Box ki taadaad","English":"Number of boxes"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"موجودہ سیفٹی باکس","Roman Urdu":"Maujooda safety box","English":"Safety Box balance in hand"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163173AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"163285AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"safety_boxes_received","hint":{"Urdu":"باکس کی تعداد","Roman Urdu":"Box ki taadaad","English":"Number of boxes"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"موصول ہونے والے سیفٹی باکس","Roman Urdu":"Mausool honay walay safety box","English":"Safety Box received"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163170AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"163285AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"safety_boxes_wasted","hint":{"Urdu":"باکس کی تعداد","Roman Urdu":"Box ki taadaad","English":"Number of boxes"},"bind":{"relevant":"selected(${report}, 'daily')","required":"yes"},"label":{"Urdu":"ضائع ہونے والے سیفٹی باکس","Roman Urdu":"Zaya honay walay safety","English":"Safety Box wasted"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163172AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"163285AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"bind":{"jr:constraintMsg":{"Urdu":"یہ تعداد موصول ہونے والی کل تعداد سے کم یا برابر ہونی چاہئیے","Roman Urdu":"Ye taadaad mausool honay wali kul taadaad se kam ya baraber honi chahiye","English":"This quantity should be less than or equal to the total quantity received"},"calculate":"${bcg_wasted}+${opv_wasted}+${ipv_wasted}+${pcv_wasted}+${penta_wasted}+${measles_wasted}+${tt_wasted}+${dilutants_wasted}+${syringes_wasted}+${safety_boxes_wasted}","constraint":".<=${total_received}"},"type":"calculate","name":"total_wasted","label":{"Urdu":"ضائع ہونے والی اشیاء کی مکمل تعداد","Roman Urdu":"Zaya honay wali ashia ki mukammal taadaad","English":"Total wasted"}},{"bind":{"calculate":"${bcg_received}+${opv_received}+${ipv_received}+${pcv_received}+${penta_received}+${measles_received}+${tt_received}+${dilutants_received}+${syringes_received}+${safety_boxes_received}"},"type":"calculate","name":"total_received","label":{"Urdu":"موصول ہونے والی اشیاء کی مکمل تعداد","Roman Urdu":"Mausool honay wali ashia ki mukammal taadaad","English":"Total received"}},{"bind":{"calculate":"${bcg_balance_in_hand}+${opv_balance_in_hand}+${ipv_balance_in_hand}+${pcv_balance_in_hand}+${penta_balance_in_hand}+${measles_balance_in_hand}+${tt_balance_in_hand}+${dilutants_balance_in_hand}+${syringes_balance_in_hand}+${safety_boxes_balance_in_hand}"},"type":"calculate","name":"total_balanceInHand","label":{"Urdu":"موجودہ اشیاء کی مکمل تعداد","Roman Urdu":"Maujooda ashia ki mukammal taadaad","English":"Total balance in hand"}},{"control":{"bodyless":true},"type":"group","children":[{"bind":{"readonly":"true()","calculate":"concat('uuid:', uuid())"},"type":"calculate","name":"instanceID"}],"name":"meta"}]} \ No newline at end of file diff --git a/opensrp-register/src/test/resources/form/vaccine_stock_position/form.xml b/opensrp-register/src/test/resources/form/vaccine_stock_position/form.xml deleted file mode 100644 index 888d63375f..0000000000 --- a/opensrp-register/src/test/resources/form/vaccine_stock_position/form.xml +++ /dev/null @@ -1,385 +0,0 @@ -
- - -

ویکسین اسٹاک پوزیشن - Vaccine Stock Position

-
-
- - رپورٹ کی قسم - Report Type - Report ki kism - * -
- - -
-
-
- -
diff --git a/opensrp-register/src/test/resources/form/vaccine_stock_position/form_definition.json b/opensrp-register/src/test/resources/form/vaccine_stock_position/form_definition.json deleted file mode 100644 index e03f70ddc4..0000000000 --- a/opensrp-register/src/test/resources/form/vaccine_stock_position/form_definition.json +++ /dev/null @@ -1,189 +0,0 @@ -{ - "form_data_definition_version" : "1", - "form" : { - "bind_type" : "stock", - "default_bind_path" : "/model/instance/Vaccine_Stock_Position/", - "fields" : [ { - "name" : "id", - "shouldLoadValue" : true - },{ - "name" : "no_client_event", - "value" : true - }, { - "name" : "provider_uc", - "bind" : "/model/instance/Vaccine_Stock_Position/provider_uc", - "shouldLoadValue" : true - }, { - "name" : "provider_town", - "bind" : "/model/instance/Vaccine_Stock_Position/provider_town", - "shouldLoadValue" : true - }, { - "name" : "provider_city", - "bind" : "/model/instance/Vaccine_Stock_Position/provider_city", - "shouldLoadValue" : true - }, { - "name" : "provider_province", - "bind" : "/model/instance/Vaccine_Stock_Position/provider_province", - "shouldLoadValue" : true - }, { - "name" : "provider_id", - "bind" : "/model/instance/Vaccine_Stock_Position/provider_id", - "shouldLoadValue" : true - }, { - "name" : "provider_location_id", - "bind" : "/model/instance/Vaccine_Stock_Position/provider_location_id", - "shouldLoadValue" : true - }, { - "name" : "provider_location_name", - "bind" : "/model/instance/Vaccine_Stock_Position/provider_location_name", - "shouldLoadValue" : true - }, { - "name" : "provider_location_note", - "bind" : "/model/instance/Vaccine_Stock_Position/provider_location_note" - }, { - "name" : "start", - "bind" : "/model/instance/Vaccine_Stock_Position/start" - }, { - "name" : "end", - "bind" : "/model/instance/Vaccine_Stock_Position/end" - }, { - "name" : "today", - "bind" : "/model/instance/Vaccine_Stock_Position/today" - }, { - "name" : "deviceid", - "bind" : "/model/instance/Vaccine_Stock_Position/deviceid" - }, { - "name" : "subscriberid", - "bind" : "/model/instance/Vaccine_Stock_Position/subscriberid" - }, { - "name" : "simserial", - "bind" : "/model/instance/Vaccine_Stock_Position/simserial" - }, { - "name" : "phonenumber", - "bind" : "/model/instance/Vaccine_Stock_Position/phonenumber" - }, { - "name" : "date_formatted", - "bind" : "/model/instance/Vaccine_Stock_Position/date_formatted" - }, { - "name" : "vaccinator_name", - "bind" : "/model/instance/Vaccine_Stock_Position/vaccinator_name" - }, { - "name" : "center_name", - "bind" : "/model/instance/Vaccine_Stock_Position/center_name" - }, { - "name" : "date", - "bind" : "/model/instance/Vaccine_Stock_Position/date" - }, { - "name" : "report", - "bind" : "/model/instance/Vaccine_Stock_Position/report" - }, { - "name" : "Target_assigned_for_vaccination_at_each_month", - "bind" : "/model/instance/Vaccine_Stock_Position/Target_assigned_for_vaccination_at_each_month" - }, { - "name" : "Target_assigned_for_vaccination_for_the_year", - "bind" : "/model/instance/Vaccine_Stock_Position/Target_assigned_for_vaccination_for_the_year" - }, { - "name" : "bcg_balance_in_hand", - "bind" : "/model/instance/Vaccine_Stock_Position/bcg_balance_in_hand" - }, { - "name" : "bcg_received", - "bind" : "/model/instance/Vaccine_Stock_Position/bcg_received" - }, { - "name" : "bcg_wasted", - "bind" : "/model/instance/Vaccine_Stock_Position/bcg_wasted" - }, { - "name" : "opv_balance_in_hand", - "bind" : "/model/instance/Vaccine_Stock_Position/opv_balance_in_hand" - }, { - "name" : "opv_received", - "bind" : "/model/instance/Vaccine_Stock_Position/opv_received" - }, { - "name" : "opv_wasted", - "bind" : "/model/instance/Vaccine_Stock_Position/opv_wasted" - }, { - "name" : "ipv_balance_in_hand", - "bind" : "/model/instance/Vaccine_Stock_Position/ipv_balance_in_hand" - }, { - "name" : "ipv_received", - "bind" : "/model/instance/Vaccine_Stock_Position/ipv_received" - }, { - "name" : "ipv_wasted", - "bind" : "/model/instance/Vaccine_Stock_Position/ipv_wasted" - }, { - "name" : "pcv_balance_in_hand", - "bind" : "/model/instance/Vaccine_Stock_Position/pcv_balance_in_hand" - }, { - "name" : "pcv_received", - "bind" : "/model/instance/Vaccine_Stock_Position/pcv_received" - }, { - "name" : "pcv_wasted", - "bind" : "/model/instance/Vaccine_Stock_Position/pcv_wasted" - }, { - "name" : "penta_balance_in_hand", - "bind" : "/model/instance/Vaccine_Stock_Position/penta_balance_in_hand" - }, { - "name" : "penta_received", - "bind" : "/model/instance/Vaccine_Stock_Position/penta_received" - }, { - "name" : "penta_wasted", - "bind" : "/model/instance/Vaccine_Stock_Position/penta_wasted" - }, { - "name" : "measles_balance_in_hand", - "bind" : "/model/instance/Vaccine_Stock_Position/measles_balance_in_hand" - }, { - "name" : "measles_received", - "bind" : "/model/instance/Vaccine_Stock_Position/measles_received" - }, { - "name" : "measles_wasted", - "bind" : "/model/instance/Vaccine_Stock_Position/measles_wasted" - }, { - "name" : "tt_balance_in_hand", - "bind" : "/model/instance/Vaccine_Stock_Position/tt_balance_in_hand" - }, { - "name" : "tt_received", - "bind" : "/model/instance/Vaccine_Stock_Position/tt_received" - }, { - "name" : "tt_wasted", - "bind" : "/model/instance/Vaccine_Stock_Position/tt_wasted" - }, { - "name" : "dilutants_balance_in_hand", - "bind" : "/model/instance/Vaccine_Stock_Position/dilutants_balance_in_hand" - }, { - "name" : "dilutants_received", - "bind" : "/model/instance/Vaccine_Stock_Position/dilutants_received" - }, { - "name" : "dilutants_wasted", - "bind" : "/model/instance/Vaccine_Stock_Position/dilutants_wasted" - }, { - "name" : "syringes_balance_in_hand", - "bind" : "/model/instance/Vaccine_Stock_Position/syringes_balance_in_hand" - }, { - "name" : "syringes_received", - "bind" : "/model/instance/Vaccine_Stock_Position/syringes_received" - }, { - "name" : "syringes_wasted", - "bind" : "/model/instance/Vaccine_Stock_Position/syringes_wasted" - }, { - "name" : "safety_boxes_balance_in_hand", - "bind" : "/model/instance/Vaccine_Stock_Position/safety_boxes_balance_in_hand" - }, { - "name" : "safety_boxes_received", - "bind" : "/model/instance/Vaccine_Stock_Position/safety_boxes_received" - }, { - "name" : "safety_boxes_wasted", - "bind" : "/model/instance/Vaccine_Stock_Position/safety_boxes_wasted" - }, { - "name" : "total_wasted", - "bind" : "/model/instance/Vaccine_Stock_Position/total_wasted" - }, { - "name" : "total_received", - "bind" : "/model/instance/Vaccine_Stock_Position/total_received" - }, { - "name" : "total_balanceInHand", - "bind" : "/model/instance/Vaccine_Stock_Position/total_balanceInHand" - }, { - "name" : "instanceID", - "bind" : "/model/instance/Vaccine_Stock_Position/meta/instanceID" - } ] - } -} \ No newline at end of file diff --git a/opensrp-register/src/test/resources/form/vaccine_stock_position/model.xml b/opensrp-register/src/test/resources/form/vaccine_stock_position/model.xml deleted file mode 100644 index 45ff083b17..0000000000 --- a/opensrp-register/src/test/resources/form/vaccine_stock_position/model.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/opensrp-register/src/test/resources/form/woman_enrollment/form.json b/opensrp-register/src/test/resources/form/woman_enrollment/form.json deleted file mode 100644 index e64275c472..0000000000 --- a/opensrp-register/src/test/resources/form/woman_enrollment/form.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"Woman_TT_Enrollment_Form","title":"خواتین انرولمنٹ فارم برائے ٹی ٹی ٹیکاجات - Woman TT Enrollment Form","sms_keyword":"woman_tt_enrollement_form","default_language":"English","choices":{"provinces":[{"name":"kpk","label":{"Urdu":"خیبر پختون خواہ","English":"Khyber Pakhtunkhwa","Roman Urdu":"Khyber Pakhtunkhwa"}},{"name":"sindh","label":{"Urdu":"سندھ","English":"Sindh","Roman Urdu":"Sindh"}},{"name":"balochistan","label":{"Urdu":"بلوچستان","English":"Balochistan","Roman Urdu":"Balochistan"}},{"name":"punjab","label":{"Urdu":"پنجاب","English":"Punjab","Roman Urdu":"Punjab"}},{"name":"gilgit_baltistan","label":{"Urdu":"گلگت بلتستان","English":"Gilgit Baltistan","Roman Urdu":"Gilgit Baltistan"}},{"name":"kashmir","label":{"Urdu":"کشمیر","English":"Kashmir","Roman Urdu":"Kashmir"}},{"name":"fata","label":{"Urdu":"فاٹا","English":"FATA","Roman Urdu":"FATA"}},{"name":"out_of_country","label":{"Urdu":"ملک سے باہر","English":"Out of Country","Roman Urdu":"Mulk se baahir"}}],"ucs":[{"province":"sindh","city":"karachi","town":"korangi","name":"bilal_colony","label":{"Urdu":"بلال کالونی","Roman Urdu":"Bilal Colony","English":"Bilal Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"nasir_colony","label":{"Urdu":"ناصر کالونی","Roman Urdu":"Nasir Colony","English":"Nasir Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"chakra_goth","label":{"Urdu":"چکرا گوٹھ","Roman Urdu":"Chakra Goth","English":"Chakra Goth"}},{"province":"sindh","city":"karachi","town":"korangi","name":"mustafa_taj_colony","label":{"Urdu":"مصطفی تاج کالونی","Roman Urdu":"Mustafa Taj Colony","English":"Mustafa Taj Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"hundred_quarters","label":{"Urdu":"ہنڈریڈ کوارٹر","Roman Urdu":"Hundred Quarters","English":"Hundred Quarters"}},{"province":"sindh","city":"karachi","town":"korangi","name":"gulzar_colony","label":{"Urdu":"گلزار کالونی","Roman Urdu":"Gulzar Colony","English":"Gulzar Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"korangi_sector_33","label":{"Urdu":"کورنگی سیکٹر 33","Roman Urdu":"Korangi Sector 33","English":"Korangi Sector 33"}},{"province":"sindh","city":"karachi","town":"korangi","name":"zaman_town","label":{"Urdu":"زمان ٹاوَن","Roman Urdu":"Zaman Town","English":"Zaman Town"}},{"province":"sindh","city":"karachi","town":"korangi","name":"hasrat_mohani_colony","label":{"Urdu":"حسرت موہانی کالونی","Roman Urdu":"Hasrat Mohani Colony","English":"Hasrat Mohani Colony"}},{"province":"sindh","city":"karachi","town":"baldia","name":"gulshan_e_ghazi","label":{"Urdu":"گلشن غازی","Roman Urdu":"Gulshan-e-Ghazi","English":"Gulshan-e-Ghazi"}},{"province":"sindh","city":"karachi","town":"baldia","name":"ittehad_town","label":{"Urdu":"اتحاد ٹاوَن","Roman Urdu":"Ittehad Town","English":"Ittehad Town"}},{"province":"sindh","city":"karachi","town":"baldia","name":"islam_nagar","label":{"Urdu":"اسلام نگر","Roman Urdu":"Islam Nagar","English":"Islam Nagar"}},{"province":"sindh","city":"karachi","town":"baldia","name":"nai_abadi","label":{"Urdu":"نئی آبادی","Roman Urdu":"Nai Abadi","English":"Nai Abadi"}},{"province":"sindh","city":"karachi","town":"baldia","name":"saeedabad","label":{"Urdu":"سعید آباد","Roman Urdu":"Saeedabad","English":"Saeedabad"}},{"province":"sindh","city":"karachi","town":"baldia","name":"muslim_mujahid_colony","label":{"Urdu":"مسلم مجاہد کالونی","Roman Urdu":"Muslim Mujahid Colony","English":"Muslim Mujahid Colony"}},{"province":"sindh","city":"karachi","town":"baldia","name":"muhajir_camp","label":{"Urdu":"مہاجر کیمپ","Roman Urdu":"Muhajir Camp","English":"Muhajir Camp"}},{"province":"sindh","city":"karachi","town":"baldia","name":"rasheedabad","label":{"Urdu":"رشید آباد","Roman Urdu":"Rasheedabad","English":"Rasheedabad"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"ibrahim_hyderi","label":{"Urdu":"ابراہیم حیدری","Roman Urdu":"Ibrahim Hyderi","English":"Ibrahim Hyderi"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"rehri","label":{"Urdu":"رہڑی","Roman Urdu":"Rehri","English":"Rehri"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"cattle_colony","label":{"Urdu":"کیٹل کالونی","Roman Urdu":"Cattle Colony","English":"Cattle Colony"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"qaidabad","label":{"Urdu":"قائدآباد","Roman Urdu":"Qaidabad","English":"Qaidabad"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"landhi_colony","label":{"Urdu":"لانڈھی کالونی","Roman Urdu":"Landhi Colony","English":"Landhi Colony"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"gulshan_e_hadeed","label":{"Urdu":"گلشن حدید","Roman Urdu":"Gulshan-e-Hadeed","English":"Gulshan-e-Hadeed"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"gaghar","label":{"Urdu":"گگر","Roman Urdu":"Gaghar","English":"Gaghar"}},{"province":"sindh","city":"karachi","town":"gadap","name":"murad_memon_goth","label":{"Urdu":"مراد میمن گوٹھ","Roman Urdu":"Murad Memon Goth","English":"Murad Memon Goth"}},{"province":"sindh","city":"karachi","town":"gadap","name":"darsano_chana","label":{"Urdu":"درشانو شنو","Roman Urdu":"Darsano Chana","English":"Darsano Chana"}},{"province":"sindh","city":"karachi","town":"gadap","name":"gujro","label":{"Urdu":"گجرو","Roman Urdu":"Gujro","English":"Gujro"}},{"province":"sindh","city":"karachi","town":"gadap","name":"songal","label":{"Urdu":"سنگل","Roman Urdu":"Songal","English":"Songal"}},{"province":"sindh","city":"karachi","town":"gadap","name":"maymarabad","label":{"Urdu":"معمار آباد","Roman Urdu":"Maymarabad","English":"Maymarabad"}},{"province":"sindh","city":"karachi","town":"gadap","name":"yousuf_goth","label":{"Urdu":"یوسف گوٹھ","Roman Urdu":"Yousuf Goth","English":"Yousuf Goth"}},{"province":"sindh","city":"karachi","town":"gadap","name":"manghopir","label":{"Urdu":"منگھوپیر","Roman Urdu":"Manghopir","English":"Manghopir"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"azizabad","label":{"Urdu":"عزیز آباد","Roman Urdu":"Azizabad","English":"Azizabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"karimabad","label":{"Urdu":"کریم آباد","Roman Urdu":"Karimabad","English":"Karimabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"aisha_manzil","label":{"Urdu":"عائشہ منزل","Roman Urdu":"Aisha Manzil","English":"Aisha Manzil"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"ancholi","label":{"Urdu":"انچولی","Roman Urdu":"Ancholi","English":"Ancholi"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"naseerabad","label":{"Urdu":"نصیرآباد","Roman Urdu":"Naseerabad","English":"Naseerabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"yaseenabad","label":{"Urdu":"یاسین آباد","Roman Urdu":"Yaseenabad","English":"Yaseenabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"water_pump","label":{"Urdu":"واٹرپمپ","Roman Urdu":"Water Pump","English":"Water Pump"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"shafiq_mill_colony","label":{"Urdu":"شفیق مل کالونی","Roman Urdu":"Shafiq Mill Colony","English":"Shafiq Mill Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"delhi_mercantile_society","label":{"Urdu":"دہلی مرچنٹائل سوسائٹی","Roman Urdu":"Delhi Mercantile Society","English":"Delhi Mercantile Society"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"civic_centre","label":{"Urdu":"سوک سینٹر","Roman Urdu":"Civic Centre","English":"Civic Centre"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"pir_ilahi_buksh_colony","label":{"Urdu":"پیر الہی بخش کالونی","Roman Urdu":"Pir Ilahi Buksh Colony","English":"Pir Ilahi Buksh Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"essa_nagri","label":{"Urdu":"عیسی نگری","Roman Urdu":"Essa Nagri","English":"Essa Nagri"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gulshan_e_iqbal","label":{"Urdu":"گلشن اقبال","Roman Urdu":"Gulshan-e-Iqbal","English":"Gulshan-e-Iqbal"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gillani_railway_station","label":{"Urdu":"گیلانی ریلوے اسٹیشن","Roman Urdu":"Gillani Railway Station","English":"Gillani Railway Station"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"shanti_nagar","label":{"Urdu":"شانتی نگر","Roman Urdu":"Shanti Nagar","English":"Shanti Nagar"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"jamali_colony","label":{"Urdu":"جمالی کالونی","Roman Urdu":"Jamali Colony","English":"Jamali Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gulshan_e_iqbal_ii","label":{"Urdu":"گلشن اقبال 2","Roman Urdu":"Gulshan-e-Iqbal II","English":"Gulshan-e-Iqbal II"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"pehlwan_goth","label":{"Urdu":"پہلوان گوٹھ","Roman Urdu":"Pehlwan Goth","English":"Pehlwan Goth"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"matrovil_colony","label":{"Urdu":"میٹروویل کالونی","Roman Urdu":"Matrovil Colony","English":"Matrovil Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gulzar_e_hijri","label":{"Urdu":"گلزار ہجری","Roman Urdu":"Gulzar-e-Hijri","English":"Gulzar-e-Hijri"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"safooran_goth","label":{"Urdu":"صفورا گوٹھ","Roman Urdu":"Safooran Goth","English":"Safooran Goth"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"akhtar_colony","label":{"Urdu":"اختر کالونی","Roman Urdu":"Akhtar Colony","English":"Akhtar Colony"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"manzoor_colony","label":{"Urdu":"منظور کالونی","Roman Urdu":"Manzoor Colony","English":"Manzoor Colony"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"azam_basti","label":{"Urdu":"اعظم بستی","Roman Urdu":"Azam Basti","English":"Azam Basti"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"chanesar_goth","label":{"Urdu":"چنیسر گوٹھ","Roman Urdu":"Chanesar Goth","English":"Chanesar Goth"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"mahmudabad","label":{"Urdu":"محمودآباد","Roman Urdu":"Mahmudabad","English":"Mahmudabad"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"pechs","label":{"Urdu":"پی۔ای۔سی۔ایچ۔ایس","Roman Urdu":"P.E.C.H.S.","English":"P.E.C.H.S."}},{"province":"sindh","city":"karachi","town":"jamshed","name":"pechs_ii","label":{"Urdu":"پی۔ای۔سی۔ایچ۔ایس 2","Roman Urdu":"P.E.C.H.S. II","English":"P.E.C.H.S. II"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"jut_line","label":{"Urdu":"جٹ لائن","Roman Urdu":"Jut Line","English":"Jut Line"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"central_jacob_lines","label":{"Urdu":"سینٹرل جیکب لائن","Roman Urdu":"Central Jacob Lines","English":"Central Jacob Lines"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"jamshed_quarters","label":{"Urdu":"جمشید کوارٹر","Roman Urdu":"Jamshed Quarters","English":"Jamshed Quarters"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"garden_east","label":{"Urdu":"گارڈن ایسٹ","Roman Urdu":"Garden East","English":"Garden East"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"soldier_bazar","label":{"Urdu":"سولجر بازار","Roman Urdu":"Soldier Bazar","English":"Soldier Bazar"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"pakistan_quarters","label":{"Urdu":"پاکستان کوارٹر","Roman Urdu":"Pakistan Quarters","English":"Pakistan Quarters"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"bhutta_village","label":{"Urdu":"بھٹا ولیج","Roman Urdu":"Bhutta Village","English":"Bhutta Village"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"sultanabad","label":{"Urdu":"سلطان آباد","Roman Urdu":"Sultanabad","English":"Sultanabad"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"kiamari_uc","label":{"Urdu":"کیماری یوسی","Roman Urdu":"Kiamari UC","English":"Kiamari UC"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"baba_bhit","label":{"Urdu":"بابا بھٹ","Roman Urdu":"Baba Bhit","English":"Baba Bhit"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"machar_colony","label":{"Urdu":"مچھر کالونی","Roman Urdu":"Machar Colony","English":"Machar Colony"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"maripur","label":{"Urdu":"ماڑی پور","Roman Urdu":"Maripur","English":"Maripur"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"shershah","label":{"Urdu":"شیرشاہ","Roman Urdu":"SherShah","English":"SherShah"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"gabo_pat","label":{"Urdu":"گابو پٹ","Roman Urdu":"Gabo Pat","English":"Gabo Pat"}},{"province":"sindh","city":"karachi","town":"landhi","name":"muzafarabad","label":{"Urdu":"مظفرآباد","Roman Urdu":"Muzafarabad","English":"Muzafarabad"}},{"province":"sindh","city":"karachi","town":"landhi","name":"muslimabad","label":{"Urdu":"مسلم آباد","Roman Urdu":"Muslimabad","English":"Muslimabad"}},{"province":"sindh","city":"karachi","town":"landhi","name":"dawood_chowrangi","label":{"Urdu":"داوَد چورنگی","Roman Urdu":"Dawood Chowrangi","English":"Dawood Chowrangi"}},{"province":"sindh","city":"karachi","town":"landhi","name":"moinabad","label":{"Urdu":"معین آباد","Roman Urdu":"Moinabad","English":"Moinabad"}},{"province":"sindh","city":"karachi","town":"landhi","name":"sharafi_goth","label":{"Urdu":"شرافی گوٹھ","Roman Urdu":"Sharafi Goth","English":"Sharafi Goth"}},{"province":"sindh","city":"karachi","town":"landhi","name":"bhutto_nagar","label":{"Urdu":"بھٹو نگر","Roman Urdu":"Bhutto Nagar","English":"Bhutto Nagar"}},{"province":"sindh","city":"karachi","town":"landhi","name":"khawaja_ajmeer_colony","label":{"Urdu":"خواجہ اجمیر کالونی","Roman Urdu":"Khawaja Ajmeer Colony","English":"Khawaja Ajmeer Colony"}},{"province":"sindh","city":"karachi","town":"landhi","name":"landhi_uc","label":{"Urdu":"لانڈھی یوسی","Roman Urdu":"Landhi UC","English":"Landhi UC"}},{"province":"sindh","city":"karachi","town":"landhi","name":"awami_colony","label":{"Urdu":"عوامی کالونی","Roman Urdu":"Awami Colony","English":"Awami Colony"}},{"province":"sindh","city":"karachi","town":"landhi","name":"burmee_colony","label":{"Urdu":"برمی کالونی","Roman Urdu":"Burmee Colony","English":"Burmee Colony"}},{"province":"sindh","city":"karachi","town":"landhi","name":"korangi_uc","label":{"Urdu":"کورنگی یوسی","Roman Urdu":"Korangi UC","English":"Korangi UC"}},{"province":"sindh","city":"karachi","town":"landhi","name":"sherabad","label":{"Urdu":"شیرآباد","Roman Urdu":"Sherabad","English":"Sherabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"rizvia_society","label":{"Urdu":"رضویہ سوسائٹی","Roman Urdu":"Rizvia Society","English":"Rizvia Society"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"firdous_colony","label":{"Urdu":"فردوس کالونی","Roman Urdu":"Firdous Colony","English":"Firdous Colony"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"super_market","label":{"Urdu":"سپر مارکیٹ","Roman Urdu":"Super Market","English":"Super Market"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"dak_khana","label":{"Urdu":"دک کھانہ","Roman Urdu":"Dak Khana","English":"Dak Khana"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"qasimabad","label":{"Urdu":"قاسم آباد","Roman Urdu":"Qasimabad","English":"Qasimabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"bandhani_colony","label":{"Urdu":"بندھانی کالونی","Roman Urdu":"Bandhani Colony","English":"Bandhani Colony"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"sharifabad","label":{"Urdu":"شریف آباد","Roman Urdu":"Sharifabad","English":"Sharifabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"commercial_area","label":{"Urdu":"کمرشل ایریا","Roman Urdu":"Commercial Area","English":"Commercial Area"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"mujahid_colony","label":{"Urdu":"مجاہد کالونی","Roman Urdu":"Mujahid Colony","English":"Mujahid Colony"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"nazimabad","label":{"Urdu":"ناظم آباد","Roman Urdu":"Nazimabad","English":"Nazimabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"abbasi_shaheed","label":{"Urdu":"عباسی شہید","Roman Urdu":"Abbasi Shaheed","English":"Abbasi Shaheed"}},{"province":"sindh","city":"karachi","town":"lyari","name":"agra_taj_colony","label":{"Urdu":"آگرہ تاج کالونی","Roman Urdu":"Agra Taj Colony","English":"Agra Taj Colony"}},{"province":"sindh","city":"karachi","town":"lyari","name":"daryaabad","label":{"Urdu":"دریاآباد","Roman Urdu":"Daryaabad","English":"Daryaabad"}},{"province":"sindh","city":"karachi","town":"lyari","name":"nawabad","label":{"Urdu":"نواآباد","Roman Urdu":"Nawabad","English":"Nawabad"}},{"province":"sindh","city":"karachi","town":"lyari","name":"khada_memon_society","label":{"Urdu":"خدا- میمن- سوساَٹی","Roman Urdu":"Khada Memon Society","English":"Khada Memon Society"}},{"province":"sindh","city":"karachi","town":"lyari","name":"baghdadi","label":{"Urdu":"بغدادی","Roman Urdu":"Baghdadi","English":"Baghdadi"}},{"province":"sindh","city":"karachi","town":"lyari","name":"shah_baig_line","label":{"Urdu":"شاھ باغ لائن","Roman Urdu":"Shah Baig Line","English":"Shah Baig Line"}},{"province":"sindh","city":"karachi","town":"lyari","name":"bihar_colony","label":{"Urdu":"بہار کالونی","Roman Urdu":"Bihar Colony","English":"Bihar Colony"}},{"province":"sindh","city":"karachi","town":"lyari","name":"ragiwara","label":{"Urdu":"راگی واڑا","Roman Urdu":"Ragiwara","English":"Ragiwara"}},{"province":"sindh","city":"karachi","town":"lyari","name":"singo_line","label":{"Urdu":"سنگولائن","Roman Urdu":"Singo Line","English":"Singo Line"}},{"province":"sindh","city":"karachi","town":"lyari","name":"chakiwara","label":{"Urdu":"چاکی واڑا","Roman Urdu":"Chakiwara","English":"Chakiwara"}},{"province":"sindh","city":"karachi","town":"lyari","name":"allama_iqbal_colony","label":{"Urdu":"علامہ اقبال کالونی","Roman Urdu":"Allama Iqbal Colony","English":"Allama Iqbal Colony"}},{"province":"sindh","city":"karachi","town":"malir","name":"model_colony","label":{"Urdu":"موڈل کالونی","Roman Urdu":"Model Colony","English":"Model Colony"}},{"province":"sindh","city":"karachi","town":"malir","name":"kala_board","label":{"Urdu":"کالا بورڈ","Roman Urdu":"Kala Board","English":"Kala Board"}},{"province":"sindh","city":"karachi","town":"malir","name":"saudabad","label":{"Urdu":"سعودآباد","Roman Urdu":"Saudabad","English":"Saudabad"}},{"province":"sindh","city":"karachi","town":"malir","name":"khokhra_par","label":{"Urdu":"کھوکھرا پار","Roman Urdu":"Khokhra Par","English":"Khokhra Par"}},{"province":"sindh","city":"karachi","town":"malir","name":"jafar_e_tayyar","label":{"Urdu":"جعفر تیار","Roman Urdu":"Jafar-e-Tayyar","English":"Jafar-e-Tayyar"}},{"province":"sindh","city":"karachi","town":"malir","name":"gharibabad","label":{"Urdu":"غریب آباد","Roman Urdu":"Gharibabad","English":"Gharibabad"}},{"province":"sindh","city":"karachi","town":"malir","name":"ghazi_brohi_goth","label":{"Urdu":"غازی بروہی گوٹھ","Roman Urdu":"Ghazi Brohi Goth","English":"Ghazi Brohi Goth"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"kalyana","label":{"Urdu":"کالیانہ","Roman Urdu":"Kalyana","English":"Kalyana"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"sir_syed_colony","label":{"Urdu":"سر سید کالونی","Roman Urdu":"Sir Syed Colony","English":"Sir Syed Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"fatima_jinnah_colony","label":{"Urdu":"فاطمہ جناح کالونی","Roman Urdu":"Fatima Jinnah Colony","English":"Fatima Jinnah Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"godhra","label":{"Urdu":"گودھرا","Roman Urdu":"Godhra","English":"Godhra"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"abu_zar_ghaffari","label":{"Urdu":"ابو زر غفاری","Roman Urdu":"Abu Zar Ghaffari","English":"Abu Zar Ghaffari"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"hakim_ahsan","label":{"Urdu":"حاکم احسان","Roman Urdu":"Hakim Ahsan","English":"Hakim Ahsan"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"madina_colony","label":{"Urdu":"مدینہ کالونی","Roman Urdu":"Madina Colony","English":"Madina Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"faisal_colony","label":{"Urdu":"فیصل کالونی","Roman Urdu":"Faisal Colony","English":"Faisal Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"khamiso_goth","label":{"Urdu":"خمیسو گوٹھ","Roman Urdu":"Khamiso Goth","English":"Khamiso Goth"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"mustufa_colony","label":{"Urdu":"مصطفی کالونی","Roman Urdu":"Mustufa Colony","English":"Mustufa Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"khawaja_ajmeer_nagri","label":{"Urdu":"خواجہ اجمیر نگری","Roman Urdu":"Khawaja Ajmeer Nagri","English":"Khawaja Ajmeer Nagri"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"gulshan_e_saeed","label":{"Urdu":"گلشن سعید","Roman Urdu":"Gulshan-e-Saeed","English":"Gulshan-e-Saeed"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"shah_nawaz_bhutto_colony","label":{"Urdu":"شاہ نواز بھٹو کالونی","Roman Urdu":"Shah Nawaz Bhutto Colony","English":"Shah Nawaz Bhutto Colony"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"paposh_nagar","label":{"Urdu":"پاپوش نگر","Roman Urdu":"Paposh Nagar","English":"Paposh Nagar"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"pahar_ganj","label":{"Urdu":"پہاڑ گنج","Roman Urdu":"Pahar Ganj","English":"Pahar Ganj"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"khandu_goth","label":{"Urdu":"کھنڑو گوٹھ","Roman Urdu":"Khandu Goth","English":"Khandu Goth"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"hyderi","label":{"Urdu":"حیدری","Roman Urdu":"Hyderi","English":"Hyderi"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"sakhi_hassan","label":{"Urdu":"سخی حسن","Roman Urdu":"Sakhi Hassan","English":"Sakhi Hassan"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"farooq_e_azam","label":{"Urdu":"فاروق اعظم","Roman Urdu":"Farooq-e-Azam","English":"Farooq-e-Azam"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"nusrat_bhutto_colony","label":{"Urdu":"نصرت بھٹو کالونی","Roman Urdu":"Nusrat Bhutto Colony","English":"Nusrat Bhutto Colony"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"shadman_town","label":{"Urdu":"شادمان ٹاوَن","Roman Urdu":"Shadman Town","English":"Shadman Town"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"buffer_zone","label":{"Urdu":"بفرزون","Roman Urdu":"Buffer Zone","English":"Buffer Zone"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"buffer_zone_ii","label":{"Urdu":"بفرزون 2","Roman Urdu":"Buffer Zone II","English":"Buffer Zone II"}},{"province":"sindh","city":"karachi","town":"orangi","name":"mominabad","label":{"Urdu":"مومن آباد","Roman Urdu":"Mominabad","English":"Mominabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"haryana_colony","label":{"Urdu":"حریانہ کالونی","Roman Urdu":"Haryana Colony","English":"Haryana Colony"}},{"province":"sindh","city":"karachi","town":"orangi","name":"hanifabad","label":{"Urdu":"حنیف آباد","Roman Urdu":"Hanifabad","English":"Hanifabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"mohammad_nagar","label":{"Urdu":"محمد نگر","Roman Urdu":"Mohammad Nagar","English":"Mohammad Nagar"}},{"province":"sindh","city":"karachi","town":"orangi","name":"madina_colony_orangi","label":{"Urdu":"مدینہ کالونی اورنگی","Roman Urdu":"Madina Colony Orangi","English":"Madina Colony Orangi"}},{"province":"sindh","city":"karachi","town":"orangi","name":"ghaziabad","label":{"Urdu":"غازی آباد","Roman Urdu":"Ghaziabad","English":"Ghaziabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"chisti_nagar","label":{"Urdu":"چشتی نگر","Roman Urdu":"Chisti Nagar","English":"Chisti Nagar"}},{"province":"sindh","city":"karachi","town":"orangi","name":"bilal_colony_orangi","label":{"Urdu":"بلال کالونی اورنگی","Roman Urdu":"Bilal Colony Orangi","English":"Bilal Colony Orangi"}},{"province":"sindh","city":"karachi","town":"orangi","name":"iqbal_baloch_colony","label":{"Urdu":"اقبال بلوچ کالونی","Roman Urdu":"Iqbal Baloch Colony","English":"Iqbal Baloch Colony"}},{"province":"sindh","city":"karachi","town":"orangi","name":"ghabool_town","label":{"Urdu":"گبول ٹاوَن","Roman Urdu":"Ghabool Town","English":"Ghabool Town"}},{"province":"sindh","city":"karachi","town":"orangi","name":"data_nagar","label":{"Urdu":"داتا نگر","Roman Urdu":"Data Nagar","English":"Data Nagar"}},{"province":"sindh","city":"karachi","town":"orangi","name":"mujahidabad","label":{"Urdu":"مجاہد آباد","Roman Urdu":"Mujahidabad","English":"Mujahidabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"baloch_goth","label":{"Urdu":"بلوچ گوٹھ","Roman Urdu":"Baloch Goth","English":"Baloch Goth"}},{"province":"sindh","city":"karachi","town":"saddar","name":"old_haji_camp","label":{"Urdu":"پرانہ حاجی کیمپ","Roman Urdu":"Old Haji Camp","English":"Old Haji Camp"}},{"province":"sindh","city":"karachi","town":"saddar","name":"garden","label":{"Urdu":"گارڈن","Roman Urdu":"Garden","English":"Garden"}},{"province":"sindh","city":"karachi","town":"saddar","name":"kharadar","label":{"Urdu":"کھارادر","Roman Urdu":"Kharadar","English":"Kharadar"}},{"province":"sindh","city":"karachi","town":"saddar","name":"city_railway_colony","label":{"Urdu":"سٹی ریلوے کالونی","Roman Urdu":"City Railway Colony","English":"City Railway Colony"}},{"province":"sindh","city":"karachi","town":"saddar","name":"nanak_wara","label":{"Urdu":"ناناک واڑا","Roman Urdu":"Nanak Wara","English":"Nanak Wara"}},{"province":"sindh","city":"karachi","town":"saddar","name":"gazdarabad","label":{"Urdu":"گزدرآباد","Roman Urdu":"Gazdarabad","English":"Gazdarabad"}},{"province":"sindh","city":"karachi","town":"saddar","name":"millat_nagar_islam_pura","label":{"Urdu":"ملت نگر اسلام پورا","Roman Urdu":"Millat Nagar/Islam Pura","English":"Millat Nagar/Islam Pura"}},{"province":"sindh","city":"karachi","town":"saddar","name":"saddar_uc","label":{"Urdu":"صدر یو سی","Roman Urdu":"Saddar UC","English":"Saddar UC"}},{"province":"sindh","city":"karachi","town":"saddar","name":"civil_line","label":{"Urdu":"سول لائن","Roman Urdu":"Civil Line","English":"Civil Line"}},{"province":"sindh","city":"karachi","town":"saddar","name":"clifton","label":{"Urdu":"کلفٹن","Roman Urdu":"Clifton","English":"Clifton"}},{"province":"sindh","city":"karachi","town":"saddar","name":"kehkashan","label":{"Urdu":"کہکشان","Roman Urdu":"Kehkashan","English":"Kehkashan"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"natha_khan_goth","label":{"Urdu":"ناتھا خان گوٹھ","Roman Urdu":"Natha Khan Goth","English":"Natha Khan Goth"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"pak_sadat_colony","label":{"Urdu":"پاک صدر کالونی","Roman Urdu":"Pak Sadat Colony","English":"Pak Sadat Colony"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"drigh_colony","label":{"Urdu":"ڈرگ کالونی","Roman Urdu":"Drigh Colony","English":"Drigh Colony"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"raita_plot","label":{"Urdu":"رائتا پلاٹ","Roman Urdu":"Raita Plot","English":"Raita Plot"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"moria_khan_goth","label":{"Urdu":"موریا خان گوٹھ","Roman Urdu":"Moria Khan Goth","English":"Moria Khan Goth"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"rafa_e_aam_society","label":{"Urdu":"رفا عام سوسا ئٹی","Roman Urdu":"Rafa-e-Aam Society","English":"Rafa-e-Aam Society"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"al_falah_society","label":{"Urdu":"الفلاح سوسا ئٹی","Roman Urdu":"Al-Falah Society","English":"Al-Falah Society"}},{"province":"sindh","city":"karachi","town":"site","name":"pak_colony","label":{"Urdu":"پاک کالونی","Roman Urdu":"Pak Colony","English":"Pak Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"old_golimar","label":{"Urdu":"پرانہ گولی مار","Roman Urdu":"Old Golimar","English":"Old Golimar"}},{"province":"sindh","city":"karachi","town":"site","name":"jahanabad","label":{"Urdu":"جہان آباد","Roman Urdu":"Jahanabad","English":"Jahanabad"}},{"province":"sindh","city":"karachi","town":"site","name":"metrovil","label":{"Urdu":"میٹروویل","Roman Urdu":"Metrovil","English":"Metrovil"}},{"province":"sindh","city":"karachi","town":"site","name":"bhawani_chali","label":{"Urdu":"بہوانی چالی","Roman Urdu":"Bhawani Chali","English":"Bhawani Chali"}},{"province":"sindh","city":"karachi","town":"site","name":"frontier_colony","label":{"Urdu":"فرونٹر کالونی","Roman Urdu":"Frontier Colony","English":"Frontier Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"banaras_colony","label":{"Urdu":"بنارس کالونی","Roman Urdu":"Banaras Colony","English":"Banaras Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"qasba_colony","label":{"Urdu":"قصبہ کالونی","Roman Urdu":"Qasba Colony","English":"Qasba Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"islamia_colony","label":{"Urdu":"اسلامیہ کالونی","Roman Urdu":"Islamia Colony","English":"Islamia Colony"}},{"province":"na","city":"na","town":"na","name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}},{"province":"na","city":"na","town":"na","name":"not_applicable","label":{"Urdu":"قابل اطلاق نہیں","Roman Urdu":"Qaabil-e-atlaaq nahi","English":"Not Applicable"}}],"gender":[{"instance":{"openmrs_code":"1534AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"male","label":{"Urdu":"مرد/ لڑکا","Roman Urdu":"Mard/larka","English":"Male"}},{"instance":{"openmrs_code":"1535AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"female","label":{"Urdu":"عورت/لڑکی","Roman Urdu":"Aurat/larki","English":"Female"}},{"instance":{"openmrs_code":"163163AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"transgender","label":{"Urdu":"خواجہ سرہ","Roman Urdu":"Khwaja sira","English":"Transgender"}}],"vaccines":[{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT1","label":{"Urdu":"ٹی ٹی 1","Roman Urdu":"TT1","English":"TT1"}},{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT2","label":{"Urdu":"ٹی ٹی 2","Roman Urdu":"TT2","English":"TT2"}},{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT3","label":{"Urdu":"ٹی ٹی 3","Roman Urdu":"TT3","English":"TT3"}},{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT4","label":{"Urdu":"ٹی ٹی 4","Roman Urdu":"TT4","English":"TT4"}},{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT5","label":{"Urdu":"ٹی ٹی 5","Roman Urdu":"TT5","English":"TT5"}}],"towns":[{"province":"sindh","city":"karachi","name":"korangi","label":{"Urdu":"کورنگی","Roman Urdu":"Korangi","English":"Korangi"}},{"province":"sindh","city":"karachi","name":"landhi","label":{"Urdu":"لانڈھی","Roman Urdu":"Landhi","English":"Landhi"}},{"province":"sindh","city":"karachi","name":"baldia","label":{"Urdu":"بلدیہ","Roman Urdu":"Baldia","English":"Baldia"}},{"province":"sindh","city":"karachi","name":"bin_qasim","label":{"Urdu":"بن قاسم","Roman Urdu":"Bin Qasim","English":"Bin Qasim"}},{"province":"sindh","city":"karachi","name":"gadap","label":{"Urdu":"گڈاپ","Roman Urdu":"Gadap","English":"Gadap"}},{"province":"sindh","city":"karachi","name":"gulberg","label":{"Urdu":"گلبرگ","Roman Urdu":"Gulberg","English":"Gulberg"}},{"province":"sindh","city":"karachi","name":"gulshan","label":{"Urdu":"گلشن","Roman Urdu":"Gulshan","English":"Gulshan"}},{"province":"sindh","city":"karachi","name":"jamshed","label":{"Urdu":"جمشید","Roman Urdu":"Jamshed","English":"Jamshed"}},{"province":"sindh","city":"karachi","name":"kiamari","label":{"Urdu":"کیماری","Roman Urdu":"Kiamari","English":"Kiamari"}},{"province":"sindh","city":"karachi","name":"liaquatabad","label":{"Urdu":"لیاقت آباد","Roman Urdu":"Liaquatabad","English":"Liaquatabad"}},{"province":"sindh","city":"karachi","name":"lyari","label":{"Urdu":"لیاری","Roman Urdu":"Lyari","English":"Lyari"}},{"province":"sindh","city":"karachi","name":"malir","label":{"Urdu":"ملیر","Roman Urdu":"Malir","English":"Malir"}},{"province":"sindh","city":"karachi","name":"new_karachi","label":{"Urdu":"نیو کراچی","Roman Urdu":"New Karachi","English":"New Karachi"}},{"province":"sindh","city":"karachi","name":"north_nazimabad","label":{"Urdu":"نارتھ ناظم آباد","Roman Urdu":"North Nazimabad","English":"North Nazimabad"}},{"province":"sindh","city":"karachi","name":"orangi","label":{"Urdu":"اورنگی","Roman Urdu":"Orangi","English":"Orangi"}},{"province":"sindh","city":"karachi","name":"saddar","label":{"Urdu":"صدر","Roman Urdu":"Saddar","English":"Saddar"}},{"province":"sindh","city":"karachi","name":"shah_faisal","label":{"Urdu":"شاہ فیصل","Roman Urdu":"Shah Faisal","English":"Shah Faisal"}},{"province":"sindh","city":"karachi","name":"site","label":{"Urdu":"سائٹ","Roman Urdu":"S.I.T.E.","English":"S.I.T.E."}},{"province":"na","city":"na","name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}},{"province":"na","city":"na","name":"not_applicable","label":{"Urdu":"قابل اطلاق نہیں","Roman Urdu":"Qaabil-e-atlaaq nahi","English":"Not Applicable"}}],"cities":[{"province":"sindh","name":"karachi","label":{"Urdu":"کراچی","Roman Urdu":"Karachi","English":"Karachi"}},{"province":"punjab","name":"hafizabad","label":{"Urdu":"حافظ آباد","Roman Urdu":"Hafizabad","English":"Hafizabad"}},{"province":"punjab","name":"muzaffargarh","label":{"Urdu":"مظفر گڑھ","Roman Urdu":"Muzaffargarh","English":"Muzaffargarh"}},{"province":"na","name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}},{"province":"na","name":"not_applicable","label":{"Urdu":"قابل اطلاق نہیں","Roman Urdu":"Not Applicable","English":"Not Applicable"}}],"edd_lmp":[{"instance":{"openmrs_code":"5596AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"edd","label":{"Urdu":"زچگی کی متوقع تاریخ","Roman Urdu":"EDD","English":"EDD"}},{"instance":{"openmrs_code":"1427AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"lmp","label":{"Urdu":"پچھلی مہواری کی تاریخ","Roman Urdu":"LMP","English":"LMP"}},{"instance":{"openmrs_code":"159617AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ultrasound","label":{"Urdu":"الٹرا سائونڈ","Roman Urdu":"Ultrasound","English":"Ultrasound"}},{"instance":{"openmrs_code":"1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"none","label":{"Urdu":"کوئی بھی نہیں","Roman Urdu":"Koi bhi nahi","English":"None of the above"}}],"ethnicity":[{"instance":{"openmrs_code":"163215AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"punjabi","label":{"Urdu":"پنجابی","Roman Urdu":"Punjabi","English":"Punjabi"}},{"instance":{"openmrs_code":"163216AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pushtuns","label":{"Urdu":"پشتون","Roman Urdu":"Pushtun","English":"Pushtun"}},{"instance":{"openmrs_code":"163217AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"sindhi","label":{"Urdu":"سندھی","Roman Urdu":"Sindhi","English":"Sindhi"}},{"instance":{"openmrs_code":"163218AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"saraiki","label":{"Urdu":"سرائیکی","Roman Urdu":"Saraiki","English":"Saraiki"}},{"instance":{"openmrs_code":"163219AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"muhajir","label":{"Urdu":"مہاجر","Roman Urdu":"Muhajir","English":"Muhajir"}},{"instance":{"openmrs_code":"163220AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"balochi","label":{"Urdu":"بلوچی","Roman Urdu":"Balochi","English":"Balochi"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}}],"yes_no":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}]},"instance":{"encounter_type":"Woman TT enrollment"},"version":"201604260935","id_string":"woman_tt_enrollement_form","type":"survey","children":[{"type":"hidden","name":"provider_uc"},{"type":"hidden","name":"provider_town"},{"type":"hidden","name":"provider_city"},{"type":"hidden","name":"provider_province"},{"type":"hidden","name":"provider_id"},{"instance":{"openmrs_entity_id":"location_id","openmrs_entity":"encounter"},"type":"hidden","name":"provider_location_id"},{"instance":{"openmrs_entity_id":"Program Client ID","openmrs_entity":"person_identifier"},"type":"hidden","name":"existing_program_client_id"},{"type":"hidden","name":"provider_location_name"},{"instance":{"openmrs_entity_id":"gender","openmrs_entity":"person"},"type":"hidden","name":"gender"},{"type":"note","name":"provider_location_note","label":{"Urdu":"شہر: ${provider_city} ; ٹائون: ${provider_town} ; یوسی: ${provider_uc} ; سینٹرکا نام: ${provider_location_name}","English":"City: ${provider_city} ; Town: ${provider_town} ; UC: ${provider_uc} ; Center Name: ${provider_location_name}","Roman Urdu":"Shehr: ${provider_city} ; Town: ${provider_town} ; UC: ${provider_uc} ; Center ka naam: ${provider_location_name}"}},{"instance":{"openmrs_entity_id":"163137AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"start","name":"start"},{"instance":{"openmrs_entity_id":"163138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"end","name":"end"},{"instance":{"openmrs_entity_id":"163286AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"today","name":"today"},{"instance":{"openmrs_entity_id":"163149AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"deviceid","name":"deviceid"},{"instance":{"openmrs_entity_id":"163150AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"subscriberid","name":"subscriberid"},{"instance":{"openmrs_entity_id":"163151AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"simserial","name":"simserial"},{"instance":{"openmrs_entity_id":"163152AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"phonenumber","name":"phonenumber"},{"name":"client_reg_date","hint":{"Urdu":"خاتون کو ویکسین لگنے کی تاریخ","English":"Date on which woman was vaccinated","Roman Urdu":"Khatoon ko vaccine lagnay ki tareekh"},"bind":{"jr:constraintMsg":{"Urdu":"پروگرام مین اندراج کی تاریخ مستقبل کی نہیں ہوسکتی","English":"Client registration date cannot be in the future","Roman Urdu":"Program mai andraaj ki tareekh mustaqbil ki nahi hosakti"},"required":"yes","constraint":".<=${today}"},"label":{"Urdu":"پروگرام میں اندراج کی تاریخ","English":"Program Registration date","Roman Urdu":"Program mai andraj ki tareekh"},"instance":{"openmrs_entity_id":"encounter_date","openmrs_entity":"encounter"},"type":"date"},{"bind":{"required":"yes"},"type":"note","name":"program_client_id","label":{"Urdu":"پروگرام آئی ڈی: ${existing_program_client_id}","Roman Urdu":"Program ID: ${existing_program_client_id}","English":"Program ID: ${existing_program_client_id}"}},{"bind":{"jr:constraintMsg":{"Urdu":"نمبر آٹھ ہندسوں پر مشتمل ہونا چاہئے","English":"Number should be 8 digits","Roman Urdu":"Number 8 hindason par mushtamil hona chahiye"},"required":"yes","constraint":"string-length(.) = 8"},"type":"integer","instance":{"openmrs_entity_id":"EPI Card Number","openmrs_entity":"person_attribute"},"name":"epi_card_number","label":{"Urdu":"ای پی آئی کارڈ نمبر","English":"EPI Card Number","Roman Urdu":"EPI Card Number"}},{"bind":{"jr:constraintMsg":{"Urdu":"درج کردہ معلومات درست نہیں","English":"Invalid data entered","Roman Urdu":"Darj karda maaloomaat durust nahi"},"required":"yes","constraint":"regex(., '^[a-zA-Z\\s\\.\\-]{3,25}$')"},"type":"text","instance":{"openmrs_entity_id":"first_name","openmrs_entity":"person"},"name":"first_name","label":{"Urdu":"نام","English":"First Name","Roman Urdu":"Naam"}},{"default":"yes","label":{"Urdu":"کیا تاریخ پیدائش معلوم ہے؟","Roman Urdu":"Kya tareekh-e-pedaaish maloom hai?","English":"Is birthdate known?"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}],"name":"member_birth_date_known"},{"default":"yes","bind":{"jr:constraintMsg":{"Urdu":"یہ تاریخ مستقبل کی نہیں ہوسکتی","Roman Urdu":"Ye tareekh mustaqbil ki nahi hosakti","English":"This date cannot be in the future"},"relevant":"selected(${member_birth_date_known}, 'yes')","constraint":".<=${today}"},"type":"date","name":"member_birth_date","label":{"Urdu":"تاریخ پیدائش","Roman Urdu":"Tareekh-e-pedaaish","English":"Birth date"}},{"default":"yes","bind":{"relevant":"selected(${member_birth_date_known}, 'no')"},"type":"integer","name":"age","label":{"Urdu":"عمر (سالوں میں)","Roman Urdu":"Umar (saalon me)","English":"Age (years)"}},{"bind":{"calculate":"int((${today} - ${member_birth_date}) div 365.25)"},"type":"calculate","name":"calc_age"},{"bind":{"calculate":"format-date (date(${today} - int(${age} * 365.25)), '%Y-%m-%d')"},"type":"calculate","name":"calc_dob"},{"bind":{"calculate":"if(${member_birth_date_known}='yes', ${member_birth_date}, ${calc_dob})"},"type":"calculate","name":"calc_dob_confirm","instance":{"openmrs_entity_id":"birthdate","openmrs_entity":"person"}},{"bind":{"calculate":"if(${member_birth_date_known} = 'yes', '0', '1')"},"type":"calculate","name":"calc_dob_estimated","instance":{"openmrs_entity_id":"birthdate_estimated","openmrs_entity":"person"}},{"bind":{"calculate":"if(${member_birth_date_known}='yes', ${calc_age}, ${age})"},"type":"calculate","name":"calc_age_confirm","instance":{"openmrs_entity_id":"154384AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"type":"note","name":"birth_date_note","label":{"Urdu":"کلائنٹ کی تاریخ پیدائش: ${calc_dob_confirm}","English":"Date of Birth: ${calc_dob_confirm}","Roman Urdu":"Member ki Tareekh-e-pedaaish: ${calc_dob_confirm}"}},{"type":"note","name":"note_age","label":{"Urdu":"عمر: ${calc_age_confirm} سال","English":"Age: ${calc_age_confirm} years","Roman Urdu":"Umar: ${calc_age_confirm} saal"}},{"default":"female","bind":{"required":"yes","calculate":"concat(\"female\",\"\")"},"type":"calculate","name":"gender1","label":{"Urdu":"جنس","Roman Urdu":"Jins","English":"Gender"}},{"bind":{"jr:constraintMsg":{"Urdu":"درج کردہ معلومات درست نہیں","English":"Invalid data entered","Roman Urdu":"Darj karda maaloomaat durust nahi"},"constraint":"regex(., '^[a-zA-Z\\s\\.\\-]{3,25}$')"},"type":"text","instance":{"openmrs_entity_id":"1594AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"father_name","label":{"Urdu":"والد کا نام","English":"Father's Name","Roman Urdu":"Waalid ka naam"}},{"label":{"Urdu":"کیا آپ شادی شدہ ہیں؟","English":"Are you married?","Roman Urdu":"Kya aap shaadi shuda hain?"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}],"name":"marriage"},{"bind":{"jr:constraintMsg":{"Urdu":"درج کردہ معلومات درست نہیں","English":"Invalid data entered","Roman Urdu":"Darj karda maaloomaat durust nahi"},"relevant":"selected(${marriage}, 'yes')","constraint":"regex(., '^[a-zA-Z\\s\\.\\-]{3,25}$')"},"type":"text","instance":{"openmrs_entity_id":"161135AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"husband_name","label":{"Urdu":"شوہر کا نام","English":"Husband's Name","Roman Urdu":"Shohar ka naam"}},{"bind":{"calculate":"if(${marriage} = 'no', ${father_name}, ${husband_name})"},"type":"calculate","name":"last_name","instance":{"openmrs_entity_id":"last_name","openmrs_entity":"person"}},{"control":{"appearance":"minimal"},"name":"ethnicity","bind":{"required":"yes"},"label":{"Urdu":"قومیت","English":"Ethnicity","Roman Urdu":"Qomiat"},"instance":{"openmrs_entity_id":"163153AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"163215AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"punjabi","label":{"Urdu":"پنجابی","Roman Urdu":"Punjabi","English":"Punjabi"}},{"instance":{"openmrs_code":"163216AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pushtuns","label":{"Urdu":"پشتون","Roman Urdu":"Pushtun","English":"Pushtun"}},{"instance":{"openmrs_code":"163217AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"sindhi","label":{"Urdu":"سندھی","Roman Urdu":"Sindhi","English":"Sindhi"}},{"instance":{"openmrs_code":"163218AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"saraiki","label":{"Urdu":"سرائیکی","Roman Urdu":"Saraiki","English":"Saraiki"}},{"instance":{"openmrs_code":"163219AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"muhajir","label":{"Urdu":"مہاجر","Roman Urdu":"Muhajir","English":"Muhajir"}},{"instance":{"openmrs_code":"163220AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"balochi","label":{"Urdu":"بلوچی","Roman Urdu":"Balochi","English":"Balochi"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}}]},{"bind":{"relevant":"selected(${ethnicity}, 'other')"},"type":"text","instance":{"openmrs_entity":"concept","openmrs_entity_id":"160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"163330AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ethnicity_other","label":{"Urdu":"وضاحت کریں","Roman Urdu":"Wazaahat karain","English":"Please specify:"}},{"control":{"appearance":"minimal"},"name":"province","default":"${provider_province}","bind":{"required":"yes"},"label":{"Urdu":"صوبہ","Roman Urdu":"Suba","English":"Province"},"instance":{"openmrs_entity":"person_address","openmrs_entity_id":"stateProvince","openmrs_entity_parent":"usual_residence"},"type":"select one","children":[{"name":"kpk","label":{"Urdu":"خیبر پختون خواہ","English":"Khyber Pakhtunkhwa","Roman Urdu":"Khyber Pakhtunkhwa"}},{"name":"sindh","label":{"Urdu":"سندھ","English":"Sindh","Roman Urdu":"Sindh"}},{"name":"balochistan","label":{"Urdu":"بلوچستان","English":"Balochistan","Roman Urdu":"Balochistan"}},{"name":"punjab","label":{"Urdu":"پنجاب","English":"Punjab","Roman Urdu":"Punjab"}},{"name":"gilgit_baltistan","label":{"Urdu":"گلگت بلتستان","English":"Gilgit Baltistan","Roman Urdu":"Gilgit Baltistan"}},{"name":"kashmir","label":{"Urdu":"کشمیر","English":"Kashmir","Roman Urdu":"Kashmir"}},{"name":"fata","label":{"Urdu":"فاٹا","English":"FATA","Roman Urdu":"FATA"}},{"name":"out_of_country","label":{"Urdu":"ملک سے باہر","English":"Out of Country","Roman Urdu":"Mulk se baahir"}}]},{"control":{"appearance":"minimal"},"name":"city_village","choice_filter":"province=${province} or province='na'","default":"${provider_city}","bind":{"required":"yes"},"label":{"Urdu":"شہر","Roman Urdu":"Shehr","English":"City"},"itemset":"cities","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"cityVillage","openmrs_entity_parent":"usual_residence"},"type":"select one"},{"control":{"appearance":"minimal"},"name":"town","choice_filter":"(province=${province} and city=${city_village} ) or city='na'","bind":{"required":"yes"},"label":{"Urdu":"ٹاٰئون/ قصبہ/ بستی","Roman Urdu":"Town / Qasbah / Basti","English":"Town"},"itemset":"towns","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"town","openmrs_entity_parent":"usual_residence"},"type":"select one"},{"control":{"appearance":"minimal"},"name":"union_council","choice_filter":"(province=${province} and city=${city_village} and town=${town}) or town='na'","bind":{"required":"yes"},"label":{"Urdu":"یونین کونسل","Roman Urdu":"Union Council","English":"Union Council"},"itemset":"ucs","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"subTown","openmrs_entity_parent":"usual_residence"},"type":"select one"},{"bind":{"required":"yes"},"type":"text","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"address1","openmrs_entity_parent":"usual_residence"},"name":"address1","label":{"Urdu":"گھر کا پتہ","Roman Urdu":"Ghar ka pata","English":"Home Address"}},{"instance":{"openmrs_entity":"person_address","openmrs_entity_id":"landmark","openmrs_entity_parent":"usual_residence"},"type":"text","name":"landmark","label":{"Urdu":"گھر کے قریب کوئی مشہور جگہ","Roman Urdu":"Ghar ke qareeb koi mashoor jagah","English":"Land Mark"}},{"bind":{"calculate":"jr:choice-name(${province}, '${province}')"},"type":"calculate","name":"provincename"},{"bind":{"calculate":"jr:choice-name(${city_village}, '${city_village}')"},"type":"calculate","name":"city_villagename"},{"bind":{"calculate":"jr:choice-name(${town}, '${town}')"},"type":"calculate","name":"townname"},{"bind":{"calculate":"jr:choice-name(${union_council}, '${union_council}')"},"type":"calculate","name":"union_councilname"},{"type":"note","name":"address","label":{"Urdu":"پتہ: ${address1}, ${landmark}, ${union_councilname}, ${townname}, ${city_villagename}, ${provincename}","English":"Address: ${address1}, ${landmark}, ${union_councilname}, ${townname}, ${city_villagename}, ${provincename}","Roman Urdu":"Pata: ${address1}, ${landmark}, ${union_councilname}, ${townname}, ${city_villagename}, ${provincename}"}},{"instance":{"openmrs_entity_id":"163277AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"geopoint","name":"centre_gps","label":{"Urdu":"حاصل کردہ معلومات کی جگہ کے GPS کارڈینیٹس درج کریں","English":"Collect GPS coordinates of data entry location","Roman Urdu":"Hasil karda malomaat ki jaga ke GPS coordinates darj karain"}},{"name":"reminders_approval","bind":{"required":"yes"},"label":{"Urdu":"کیا آپ اپنے اگلے دورے کی یاددہانی کے لیے SMS موصول کرنا چاہتی ہیں؟","English":"Are you willing to receive SMS reminders for your next visit?","Roman Urdu":"Kya aap apnay aglay doray ki yaad-dihani ke liye SMS mausool karna chahti hain?"},"instance":{"openmrs_entity_id":"163089AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}]},{"bind":{"jr:constraintMsg":{"Urdu":"فون نمبر گیارہ ہندسوں پر مشتمل اور مندرجہ ذیل شکل میں ہونا چاہئے: *********03","English":"Phone number should be 11 digits in the following format: 03*********","Roman Urdu":"Phone number 11 hindason par mushtamil aur mundarja zail shakal main hona chahiey: 03*********"},"relevant":"${reminders_approval}='yes'","constraint":"regex(., '^03[0-9]{9}$')"},"type":"text","instance":{"openmrs_entity_id":"159635AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"contact_phone_number","label":{"Urdu":"موبائل نمبر:","English":"Mobile Number:","Roman Urdu":"Mobile number:"}},{"instance":{"openmrs_entity_id":"5272AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"label":{"Urdu":"کیا آپ حاملہ ہیں؟","English":"Are you pregnant?","Roman Urdu":"Kia aap haamla hain?"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}],"name":"pregnant"},{"name":"edd_lmp","bind":{"relevant":"selected (${pregnant}, 'yes')"},"label":{"Urdu":"کیا آپ کو اپنی پچھلی ماہواری کی تاریخ، زچگی کی متوقع تاریخ، یا الٹرا سائونڈ کا علم ہے؟","English":"Do you know your LMP, EDD or last Ultrasound information?","Roman Urdu":"Kya aap ko apni pichli mahwaari ki tareekh, zachgi ki mutawaqqa tareekh ya ultrasound ka ilm hai?"},"instance":{"openmrs_entity_id":"160697AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"5596AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"edd","label":{"Urdu":"زچگی کی متوقع تاریخ","Roman Urdu":"EDD","English":"EDD"}},{"instance":{"openmrs_code":"1427AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"lmp","label":{"Urdu":"پچھلی مہواری کی تاریخ","Roman Urdu":"LMP","English":"LMP"}},{"instance":{"openmrs_code":"159617AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ultrasound","label":{"Urdu":"الٹرا سائونڈ","Roman Urdu":"Ultrasound","English":"Ultrasound"}},{"instance":{"openmrs_code":"1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"none","label":{"Urdu":"کوئی بھی نہیں","Roman Urdu":"Koi bhi nahi","English":"None of the above"}}]},{"bind":{"jr:constraintMsg":{"Urdu":"زچگی کی متوقع تاریخ ماضی کی نہیں ہو سکتی","Roman Urdu":"Zachgi ki mutawaqqa tareekh maazi ki nahi hosakti","English":"EDD cannot be in the past"},"relevant":"selected (${edd_lmp}, 'edd')","constraint":".>=${today}"},"type":"date","name":"edd","label":{"Urdu":"زچگی کی متوقع تاریخ","Roman Urdu":"Zachgi ki mutawaqqa tareekh","English":"EDD"}},{"bind":{"jr:constraintMsg":{"Urdu":"پچھلی ماہواری کی تاریخ مستقبل کی نہیں ہوسکتی","Roman Urdu":"Pichli mahwaari ki tareekh mustaqbil ki nahi hosakti","English":"LMP cannot be in the future"},"relevant":"selected (${edd_lmp}, 'lmp')","constraint":".<=${today}"},"type":"date","name":"lmp","label":{"Urdu":"پچھلی ماہواری کی تاریخ","Roman Urdu":"Pichli mahwaari ki tareekh","English":"LMP"}},{"bind":{"relevant":"selected (${edd_lmp}, 'ultrasound')"},"type":"date","instance":{"openmrs_entity_id":"163165AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"ultrasound_date","label":{"Urdu":"الٹرا سائونڈ کی تاریخ","English":"Ultrasound Date","Roman Urdu":"Ultrasound ki tareekh"}},{"bind":{"relevant":"selected (${edd_lmp}, 'ultrasound')"},"type":"integer","name":"ultrasound_weeks","label":{"Urdu":"الٹرا سائونڈ کی مدد سے حمل کی مدت [ہفتوں میں]","Roman Urdu":"Ultrasound ki madad se hamal ki muddat (hafton me)","English":"Gestational age determined by ultrasound"}},{"bind":{"calculate":"date(${lmp}+280)"},"type":"calculate","name":"edd_calc_lmp"},{"bind":{"calculate":"date((280-(${ultrasound_weeks}*7)+${ultrasound_date} ))"},"type":"calculate","name":"edd_calc_ultrasound"},{"bind":{"calculate":"format-date(${edd_calc_lmp}, '%Y-%n-%e')"},"type":"calculate","name":"edd_calc_lmp_formatted"},{"bind":{"calculate":"format-date(${edd_calc_ultrasound}, '%Y-%n-%e')"},"type":"calculate","name":"edd_calc_ultrasound_formatted"},{"bind":{"calculate":"date(${edd}-280)"},"type":"calculate","name":"lmp_calc_edd"},{"bind":{"calculate":"date(${ultrasound_date}-(${ultrasound_weeks}*7))"},"type":"calculate","name":"lmp_calc_ultrasound"},{"bind":{"calculate":"format-date(${lmp_calc_edd}, '%Y-%n-%e')"},"type":"calculate","name":"lmp_calc_edd_formatted"},{"bind":{"calculate":"format-date(${lmp_calc_ultrasound}, '%Y-%n-%e')"},"type":"calculate","name":"lmp_calc_ultrasound_formatted"},{"bind":{"calculate":"if(${edd_lmp}='lmp',${edd_calc_lmp_formatted},if(${edd_lmp}='edd',${edd} ,if(${edd_lmp}='ultrasound',${edd_calc_ultrasound_formatted},'')))"},"type":"calculate","name":"final_edd","instance":{"openmrs_entity_id":"5596AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"bind":{"calculate":"if(${edd_lmp}='lmp',${lmp},if(${edd_lmp}='edd',${lmp_calc_edd_formatted} ,if(${edd_lmp}='ultrasound',${lmp_calc_ultrasound_formatted},'')))"},"type":"calculate","name":"final_lmp","instance":{"openmrs_entity_id":"1427AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"bind":{"calculate":"int((${today} - (${edd}-280))div7)"},"type":"calculate","name":"ga_edd"},{"bind":{"calculate":"int((${today} - ${lmp})div7)"},"type":"calculate","name":"ga_lmp"},{"bind":{"calculate":"int((${today} -(${ultrasound_date}-(${ultrasound_weeks}*7)))div7)"},"type":"calculate","name":"ga_ult"},{"bind":{"relevant":"selected (${pregnant}, 'yes')"},"type":"note","name":"final_edd_note","label":{"Urdu":"${final_edd}: زچگی کی متوقع تاریخ","Roman Urdu":"Zachgi ki mutawaqqa tareekh: ${final_edd}","English":"EDD: ${final_edd}"}},{"bind":{"relevant":"selected (${pregnant}, 'yes')"},"type":"note","name":"final_lmp_note","label":{"Urdu":"پچھلی ماہواری کی تاریخ :{final_lmp}$","Roman Urdu":"Pichli mahwaari ki tareekh: ${final_lmp}","English":"LMP: ${final_lmp}"}},{"bind":{"calculate":"if(${edd_lmp}='lmp',${ga_lmp},if(${edd_lmp}='edd',${ga_edd} ,if(${edd_lmp}='ultrasound',${ga_ult},'')))"},"type":"calculate","name":"final_ga","instance":{"openmrs_entity_id":"163166AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"bind":{"relevant":"selected (${pregnant}, 'yes')"},"type":"note","name":"final_ga_note","label":{"Urdu":"حمل کی مُدّت: {final_ga}$ ہفتے","Roman Urdu":"Hamal ki muddat: ${final_ga} weeks","English":"GA: ${final_ga} weeks"}},{"name":"vaccines","bind":{"calculate":"minimal"},"label":{"Urdu":"پچھلی تاریخ جب کسی اور سینٹر پر ٹیکہ لگوایا گیا یا قطرے پلائے گئے","Roman Urdu":"Pichli tareekh jab kissi aur center par teeka lagwaya gaya ya katray pilaey gaye","English":"Retro vaccines"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"984AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1421AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"select all that apply","children":[{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT1","label":{"Urdu":"ٹی ٹی 1","Roman Urdu":"TT1","English":"TT1"}},{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT2","label":{"Urdu":"ٹی ٹی 2","Roman Urdu":"TT2","English":"TT2"}},{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT3","label":{"Urdu":"ٹی ٹی 3","Roman Urdu":"TT3","English":"TT3"}},{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT4","label":{"Urdu":"ٹی ٹی 4","Roman Urdu":"TT4","English":"TT4"}},{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT5","label":{"Urdu":"ٹی ٹی 5","Roman Urdu":"TT5","English":"TT5"}}]},{"bind":{"jr:constraintMsg":{"Urdu":"درج کردہ معلومات درست نہیں","English":"Invalid data entered","Roman Urdu":"Darj karda maaloomaat durust nahi"},"relevant":"selected(${vaccines},'TT1')","constraint":"(.<=${today} and .<=${client_reg_date} and .>=${calc_dob_confirm})"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tt1_retro","label":{"Urdu":"ٹی ٹی 1","Roman Urdu":"TT1","English":"TT1"}},{"bind":{"relevant":"selected(${vaccines},'TT1')","calculate":"1"},"type":"calculate","name":"tt_1_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"درج کردہ معلومات درست نہیں","English":"Invalid data entered","Roman Urdu":"Darj karda maaloomaat durust nahi"},"relevant":"selected(${vaccines},'TT2')","constraint":"(.<=${today} and .>=${tt1_retro} and .>=${calc_dob_confirm} and ((selected(${vaccines}, 'TT1'))))"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tt2_retro","label":{"Urdu":"ٹی ٹی 2","Roman Urdu":"TT2","English":"TT2"}},{"bind":{"relevant":"selected(${vaccines},'TT2')","calculate":"2"},"type":"calculate","name":"tt_2_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"درج کردہ معلومات درست نہیں","English":"Invalid data entered","Roman Urdu":"Darj karda maaloomaat durust nahi"},"relevant":"selected(${vaccines},'TT3')","constraint":"(.<=${today} and .>=${tt2_retro} and .>=${calc_dob_confirm} and ((selected(${vaccines}, 'TT2'))))"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tt3_retro","label":{"Urdu":"ٹی ٹی 3","Roman Urdu":"TT3","English":"TT3"}},{"bind":{"relevant":"selected(${vaccines},'TT3')","calculate":"3"},"type":"calculate","name":"tt_3_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"درج کردہ معلومات درست نہیں","English":"Invalid data entered","Roman Urdu":"Darj karda maaloomaat durust nahi"},"relevant":"selected(${vaccines},'TT4')","constraint":"(.<=${today} and .>=${tt3_retro} and .>=${calc_dob_confirm} and ((selected(${vaccines}, 'TT3'))))"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tt4_retro","label":{"Urdu":"ٹی ٹی 4","Roman Urdu":"TT4","English":"TT4"}},{"bind":{"relevant":"selected(${vaccines},'TT4')","calculate":"4"},"type":"calculate","name":"tt_4_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"name":"vaccines_2","choice_filter":"name = if(selected(${vaccines}, 'TT1'), '', 'TT1') or \nname = if(selected(${vaccines}, 'TT2'), '', 'TT2') or \nname = if(selected(${vaccines}, 'TT3'), '', 'TT3') or \nname = if(selected(${vaccines}, 'TT4'), '', 'TT4') or \nname = if(selected(${vaccines}, 'TT5'), '', 'TT5')","bind":{"required":"yes"},"label":{"Urdu":"آج کون کون سی ویکسین دی گئی ہیں؟","Roman Urdu":"Aaj kon kon si vaccine di gai hain?","English":"Vaccine administered today"},"itemset":"vaccines","instance":{"openmrs_entity":"concept","openmrs_entity_id":"984AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1441AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"select all that apply"},{"bind":{"calculate":"if(selected(${vaccines_2}, 'TT1'),${client_reg_date},'')"},"type":"calculate","name":"tt1","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2},'TT1')","calculate":"1"},"type":"calculate","name":"tt_1_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'TT2'),${client_reg_date},'')"},"type":"calculate","name":"tt2","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2},'TT2')","calculate":"2"},"type":"calculate","name":"tt_2_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'TT3'),${client_reg_date},'')"},"type":"calculate","name":"tt3","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2},'TT3')","calculate":"3"},"type":"calculate","name":"tt_3_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'TT4'),${client_reg_date},'')"},"type":"calculate","name":"tt4","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2},'TT4')","calculate":"4"},"type":"calculate","name":"tt_4_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'TT5'),${client_reg_date},'')"},"type":"calculate","name":"tt5","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2},'TT5')","calculate":"5"},"type":"calculate","name":"tt_5_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"control":{"bodyless":true},"type":"group","children":[{"bind":{"readonly":"true()","calculate":"concat('uuid:', uuid())"},"type":"calculate","name":"instanceID"}],"name":"meta"}]} \ No newline at end of file diff --git a/opensrp-register/src/test/resources/form/woman_enrollment/form.xml b/opensrp-register/src/test/resources/form/woman_enrollment/form.xml deleted file mode 100644 index 6a8a221893..0000000000 --- a/opensrp-register/src/test/resources/form/woman_enrollment/form.xml +++ /dev/null @@ -1,1559 +0,0 @@ -
- - -

خواتین انرولمنٹ فارم برائے ٹی ٹی ٹیکاجات - Woman TT Enrollment Form

-
-
- - کیا تاریخ پیدائش معلوم ہے؟ - Is birthdate known? - - Kya tareekh-e-pedaaish maloom hai? -
- - -
-
-
-
- - کیا آپ شادی شدہ ہیں؟ - Are you married? - - Kya aap shaadi shuda hain? -
- - -
-
-
-
- - کیا آپ اپنے اگلے دورے کی یاددہانی کے لیے SMS موصول کرنا چاہتی ہیں؟ - Are you willing to receive SMS reminders for your next visit? - - Kya aap apnay aglay doray ki yaad-dihani ke liye SMS mausool karna chahti hain? - * -
- - -
-
-
-
- - کیا آپ حاملہ ہیں؟ - Are you pregnant? - - Kia aap haamla hain? -
- - -
-
-
-
- - کیا آپ کو اپنی پچھلی ماہواری کی تاریخ، زچگی کی متوقع تاریخ، یا الٹرا سائونڈ کا علم ہے؟ - Do you know your LMP, EDD or last Ultrasound information? - - Kya aap ko apni pichli mahwaari ki tareekh, zachgi ki mutawaqqa tareekh ya ultrasound ka ilm hai? -
- - - - -
-
-
-
- - پچھلی تاریخ جب کسی اور سینٹر پر ٹیکہ لگوایا گیا یا قطرے پلائے گئے - Retro vaccines - - Pichli tareekh jab kissi aur center par teeka lagwaya gaya ya katray pilaey gaye -
- - - - - -
-
-
-
- - آج کون کون سی ویکسین دی گئی ہیں؟ - Vaccine administered today - - Aaj kon kon si vaccine di gai hain? - * -
- - - ٹی ٹی 1 - TT1 - 84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - TT1 - ٹی ٹی 2 - TT2 - 84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - TT2 - ٹی ٹی 3 - TT3 - 84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - TT3 - ٹی ٹی 4 - TT4 - 84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - TT4 - ٹی ٹی 5 - TT5 - 84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - TT5 -
-
-
- -
diff --git a/opensrp-register/src/test/resources/form/woman_enrollment/form_definition.json b/opensrp-register/src/test/resources/form/woman_enrollment/form_definition.json deleted file mode 100644 index a030da6f81..0000000000 --- a/opensrp-register/src/test/resources/form/woman_enrollment/form_definition.json +++ /dev/null @@ -1,308 +0,0 @@ -{ - "form_data_definition_version" : "1", - "form" : { - "bind_type" : "pkwoman", - "default_bind_path" : "/model/instance/Woman_TT_Enrollment_Form/", - "fields" : [ { - "name" : "id", - "shouldLoadValue" : true - }, { - "name" : "provider_uc", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/provider_uc", - "shouldLoadValue" : true - }, { - "name" : "provider_town", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/provider_town", - "shouldLoadValue" : true - }, { - "name" : "provider_city", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/provider_city", - "shouldLoadValue" : true - }, { - "name" : "provider_province", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/provider_province", - "shouldLoadValue" : true - }, { - "name" : "provider_id", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/provider_id", - "shouldLoadValue" : true - }, { - "name" : "provider_location_id", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/provider_location_id", - "shouldLoadValue" : true - }, { - "name" : "existing_program_client_id", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/existing_program_client_id", - "shouldLoadValue" : true - }, { - "name" : "provider_location_name", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/provider_location_name", - "shouldLoadValue" : true - }, { - "name" : "gender", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/gender", - "shouldLoadValue" : true - }, { - "name" : "provider_location_note", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/provider_location_note" - }, { - "name" : "start", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/start" - }, { - "name" : "end", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/end" - }, { - "name" : "today", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/today" - }, { - "name" : "deviceid", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/deviceid" - }, { - "name" : "subscriberid", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/subscriberid" - }, { - "name" : "simserial", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/simserial" - }, { - "name" : "phonenumber", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/phonenumber" - }, { - "name" : "client_reg_date", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/client_reg_date" - }, { - "name" : "program_client_id", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/program_client_id" - }, { - "name" : "epi_card_number", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/epi_card_number" - }, { - "name" : "first_name", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/first_name" - }, { - "name" : "birth_date_known", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/member_birth_date_known" - }, { - "name" : "birth_date", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/member_birth_date" - }, { - "name" : "age", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/age" - }, { - "name" : "calc_age", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/calc_age" - }, { - "name" : "calc_dob", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/calc_dob" - }, { - "name" : "dob", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/calc_dob_confirm" - }, { - "name" : "calc_dob_estimated", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/calc_dob_estimated" - }, { - "name" : "calc_age_confirm", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/calc_age_confirm" - }, { - "name" : "birth_date_note", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/birth_date_note" - }, { - "name" : "note_age", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/note_age" - }, { - "name" : "gender1", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/gender1" - }, { - "name" : "father_name", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/father_name" - }, { - "name" : "marriage", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/marriage" - }, { - "name" : "husband_name", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/husband_name" - }, { - "name" : "last_name", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/last_name" - }, { - "name" : "ethnicity", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/ethnicity" - }, { - "name" : "ethnicity_other", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/ethnicity_other" - }, { - "name" : "province", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/province" - }, { - "name" : "city_village", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/city_village" - }, { - "name" : "town", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/town" - }, { - "name" : "union_council", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/union_council" - }, { - "name" : "address1", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/address1" - }, { - "name" : "landmark", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/landmark" - }, { - "name" : "provincename", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/provincename" - }, { - "name" : "city_villagename", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/city_villagename" - }, { - "name" : "townname", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/townname" - }, { - "name" : "union_councilname", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/union_councilname" - }, { - "name" : "address", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/address" - }, { - "name" : "centre_gps", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/centre_gps" - }, { - "name" : "reminders_approval", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/reminders_approval" - }, { - "name" : "contact_phone_number", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/contact_phone_number" - }, { - "name" : "pregnant", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/pregnant" - }, { - "name" : "edd_lmp", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/edd_lmp" - }, { - "name" : "edd", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/edd" - }, { - "name" : "lmp", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/lmp" - }, { - "name" : "ultrasound_date", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/ultrasound_date" - }, { - "name" : "ultrasound_weeks", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/ultrasound_weeks" - }, { - "name" : "edd_calc_lmp", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/edd_calc_lmp" - }, { - "name" : "edd_calc_ultrasound", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/edd_calc_ultrasound" - }, { - "name" : "edd_calc_lmp_formatted", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/edd_calc_lmp_formatted" - }, { - "name" : "edd_calc_ultrasound_formatted", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/edd_calc_ultrasound_formatted" - }, { - "name" : "lmp_calc_edd", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/lmp_calc_edd" - }, { - "name" : "lmp_calc_ultrasound", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/lmp_calc_ultrasound" - }, { - "name" : "lmp_calc_edd_formatted", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/lmp_calc_edd_formatted" - }, { - "name" : "lmp_calc_ultrasound_formatted", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/lmp_calc_ultrasound_formatted" - }, { - "name" : "final_edd", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/final_edd" - }, { - "name" : "final_lmp", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/final_lmp" - }, { - "name" : "ga_edd", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/ga_edd" - }, { - "name" : "ga_lmp", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/ga_lmp" - }, { - "name" : "ga_ult", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/ga_ult" - }, { - "name" : "final_edd_note", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/final_edd_note" - }, { - "name" : "final_lmp_note", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/final_lmp_note" - }, { - "name" : "final_ga", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/final_ga" - }, { - "name" : "final_ga_note", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/final_ga_note" - }, { - "name" : "vaccines", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/vaccines" - }, { - "name" : "tt1_retro", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/tt1_retro" - }, { - "name" : "tt_1_dose", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/tt_1_dose" - }, { - "name" : "tt2_retro", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/tt2_retro" - }, { - "name" : "tt_2_dose", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/tt_2_dose" - }, { - "name" : "tt3_retro", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/tt3_retro" - }, { - "name" : "tt_3_dose", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/tt_3_dose" - }, { - "name" : "tt4_retro", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/tt4_retro" - }, { - "name" : "tt_4_dose", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/tt_4_dose" - }, { - "name" : "vaccines_2", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/vaccines_2" - }, { - "name" : "tt1", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/tt1" - }, { - "name" : "tt_1_dose_today", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/tt_1_dose_today" - }, { - "name" : "tt2", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/tt2" - }, { - "name" : "tt_2_dose_today", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/tt_2_dose_today" - }, { - "name" : "tt3", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/tt3" - }, { - "name" : "tt_3_dose_today", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/tt_3_dose_today" - }, { - "name" : "tt4", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/tt4" - }, { - "name" : "tt_4_dose_today", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/tt_4_dose_today" - }, { - "name" : "tt5", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/tt5" - }, { - "name" : "tt_5_dose_today", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/tt_5_dose_today" - }, { - "name" : "instanceID", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/meta/instanceID" - } ] - } -} \ No newline at end of file diff --git a/opensrp-register/src/test/resources/form/woman_enrollment/model.xml b/opensrp-register/src/test/resources/form/woman_enrollment/model.xml deleted file mode 100644 index 2a189a9632..0000000000 --- a/opensrp-register/src/test/resources/form/woman_enrollment/model.xml +++ /dev/null @@ -1,1658 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - yes - - - - - - - - - - female - - - - - - - ${provider_province} - ${provider_city} - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - static_instance-provinces-0 - kpk - - - static_instance-provinces-1 - sindh - - - static_instance-provinces-2 - balochistan - - - static_instance-provinces-3 - punjab - - - static_instance-provinces-4 - gilgit_baltistan - - - static_instance-provinces-5 - kashmir - - - static_instance-provinces-6 - fata - - - static_instance-provinces-7 - out_of_country - - - - - - - static_instance-ucs-0 - sindh - karachi - korangi - bilal_colony - - - static_instance-ucs-1 - sindh - karachi - korangi - nasir_colony - - - static_instance-ucs-2 - sindh - karachi - korangi - chakra_goth - - - static_instance-ucs-3 - sindh - karachi - korangi - mustafa_taj_colony - - - static_instance-ucs-4 - sindh - karachi - korangi - hundred_quarters - - - static_instance-ucs-5 - sindh - karachi - korangi - gulzar_colony - - - static_instance-ucs-6 - sindh - karachi - korangi - korangi_sector_33 - - - static_instance-ucs-7 - sindh - karachi - korangi - zaman_town - - - static_instance-ucs-8 - sindh - karachi - korangi - hasrat_mohani_colony - - - static_instance-ucs-9 - sindh - karachi - baldia - gulshan_e_ghazi - - - static_instance-ucs-10 - sindh - karachi - baldia - ittehad_town - - - static_instance-ucs-11 - sindh - karachi - baldia - islam_nagar - - - static_instance-ucs-12 - sindh - karachi - baldia - nai_abadi - - - static_instance-ucs-13 - sindh - karachi - baldia - saeedabad - - - static_instance-ucs-14 - sindh - karachi - baldia - muslim_mujahid_colony - - - static_instance-ucs-15 - sindh - karachi - baldia - muhajir_camp - - - static_instance-ucs-16 - sindh - karachi - baldia - rasheedabad - - - static_instance-ucs-17 - sindh - karachi - bin_qasim - ibrahim_hyderi - - - static_instance-ucs-18 - sindh - karachi - bin_qasim - rehri - - - static_instance-ucs-19 - sindh - karachi - bin_qasim - cattle_colony - - - static_instance-ucs-20 - sindh - karachi - bin_qasim - qaidabad - - - static_instance-ucs-21 - sindh - karachi - bin_qasim - landhi_colony - - - static_instance-ucs-22 - sindh - karachi - bin_qasim - gulshan_e_hadeed - - - static_instance-ucs-23 - sindh - karachi - bin_qasim - gaghar - - - static_instance-ucs-24 - sindh - karachi - gadap - murad_memon_goth - - - static_instance-ucs-25 - sindh - karachi - gadap - darsano_chana - - - static_instance-ucs-26 - sindh - karachi - gadap - gujro - - - static_instance-ucs-27 - sindh - karachi - gadap - songal - - - static_instance-ucs-28 - sindh - karachi - gadap - maymarabad - - - static_instance-ucs-29 - sindh - karachi - gadap - yousuf_goth - - - static_instance-ucs-30 - sindh - karachi - gadap - manghopir - - - static_instance-ucs-31 - sindh - karachi - gulberg - azizabad - - - static_instance-ucs-32 - sindh - karachi - gulberg - karimabad - - - static_instance-ucs-33 - sindh - karachi - gulberg - aisha_manzil - - - static_instance-ucs-34 - sindh - karachi - gulberg - ancholi - - - static_instance-ucs-35 - sindh - karachi - gulberg - naseerabad - - - static_instance-ucs-36 - sindh - karachi - gulberg - yaseenabad - - - static_instance-ucs-37 - sindh - karachi - gulberg - water_pump - - - static_instance-ucs-38 - sindh - karachi - gulberg - shafiq_mill_colony - - - static_instance-ucs-39 - sindh - karachi - gulshan - delhi_mercantile_society - - - static_instance-ucs-40 - sindh - karachi - gulshan - civic_centre - - - static_instance-ucs-41 - sindh - karachi - gulshan - pir_ilahi_buksh_colony - - - static_instance-ucs-42 - sindh - karachi - gulshan - essa_nagri - - - static_instance-ucs-43 - sindh - karachi - gulshan - gulshan_e_iqbal - - - static_instance-ucs-44 - sindh - karachi - gulshan - gillani_railway_station - - - static_instance-ucs-45 - sindh - karachi - gulshan - shanti_nagar - - - static_instance-ucs-46 - sindh - karachi - gulshan - jamali_colony - - - static_instance-ucs-47 - sindh - karachi - gulshan - gulshan_e_iqbal_ii - - - static_instance-ucs-48 - sindh - karachi - gulshan - pehlwan_goth - - - static_instance-ucs-49 - sindh - karachi - gulshan - matrovil_colony - - - static_instance-ucs-50 - sindh - karachi - gulshan - gulzar_e_hijri - - - static_instance-ucs-51 - sindh - karachi - gulshan - safooran_goth - - - static_instance-ucs-52 - sindh - karachi - jamshed - akhtar_colony - - - static_instance-ucs-53 - sindh - karachi - jamshed - manzoor_colony - - - static_instance-ucs-54 - sindh - karachi - jamshed - azam_basti - - - static_instance-ucs-55 - sindh - karachi - jamshed - chanesar_goth - - - static_instance-ucs-56 - sindh - karachi - jamshed - mahmudabad - - - static_instance-ucs-57 - sindh - karachi - jamshed - pechs - - - static_instance-ucs-58 - sindh - karachi - jamshed - pechs_ii - - - static_instance-ucs-59 - sindh - karachi - jamshed - jut_line - - - static_instance-ucs-60 - sindh - karachi - jamshed - central_jacob_lines - - - static_instance-ucs-61 - sindh - karachi - jamshed - jamshed_quarters - - - static_instance-ucs-62 - sindh - karachi - jamshed - garden_east - - - static_instance-ucs-63 - sindh - karachi - jamshed - soldier_bazar - - - static_instance-ucs-64 - sindh - karachi - jamshed - pakistan_quarters - - - static_instance-ucs-65 - sindh - karachi - kiamari - bhutta_village - - - static_instance-ucs-66 - sindh - karachi - kiamari - sultanabad - - - static_instance-ucs-67 - sindh - karachi - kiamari - kiamari_uc - - - static_instance-ucs-68 - sindh - karachi - kiamari - baba_bhit - - - static_instance-ucs-69 - sindh - karachi - kiamari - machar_colony - - - static_instance-ucs-70 - sindh - karachi - kiamari - maripur - - - static_instance-ucs-71 - sindh - karachi - kiamari - shershah - - - static_instance-ucs-72 - sindh - karachi - kiamari - gabo_pat - - - static_instance-ucs-73 - sindh - karachi - landhi - muzafarabad - - - static_instance-ucs-74 - sindh - karachi - landhi - muslimabad - - - static_instance-ucs-75 - sindh - karachi - landhi - dawood_chowrangi - - - static_instance-ucs-76 - sindh - karachi - landhi - moinabad - - - static_instance-ucs-77 - sindh - karachi - landhi - sharafi_goth - - - static_instance-ucs-78 - sindh - karachi - landhi - bhutto_nagar - - - static_instance-ucs-79 - sindh - karachi - landhi - khawaja_ajmeer_colony - - - static_instance-ucs-80 - sindh - karachi - landhi - landhi_uc - - - static_instance-ucs-81 - sindh - karachi - landhi - awami_colony - - - static_instance-ucs-82 - sindh - karachi - landhi - burmee_colony - - - static_instance-ucs-83 - sindh - karachi - landhi - korangi_uc - - - static_instance-ucs-84 - sindh - karachi - landhi - sherabad - - - static_instance-ucs-85 - sindh - karachi - liaquatabad - rizvia_society - - - static_instance-ucs-86 - sindh - karachi - liaquatabad - firdous_colony - - - static_instance-ucs-87 - sindh - karachi - liaquatabad - super_market - - - static_instance-ucs-88 - sindh - karachi - liaquatabad - dak_khana - - - static_instance-ucs-89 - sindh - karachi - liaquatabad - qasimabad - - - static_instance-ucs-90 - sindh - karachi - liaquatabad - bandhani_colony - - - static_instance-ucs-91 - sindh - karachi - liaquatabad - sharifabad - - - static_instance-ucs-92 - sindh - karachi - liaquatabad - commercial_area - - - static_instance-ucs-93 - sindh - karachi - liaquatabad - mujahid_colony - - - static_instance-ucs-94 - sindh - karachi - liaquatabad - nazimabad - - - static_instance-ucs-95 - sindh - karachi - liaquatabad - abbasi_shaheed - - - static_instance-ucs-96 - sindh - karachi - lyari - agra_taj_colony - - - static_instance-ucs-97 - sindh - karachi - lyari - daryaabad - - - static_instance-ucs-98 - sindh - karachi - lyari - nawabad - - - static_instance-ucs-99 - sindh - karachi - lyari - khada_memon_society - - - static_instance-ucs-100 - sindh - karachi - lyari - baghdadi - - - static_instance-ucs-101 - sindh - karachi - lyari - shah_baig_line - - - static_instance-ucs-102 - sindh - karachi - lyari - bihar_colony - - - static_instance-ucs-103 - sindh - karachi - lyari - ragiwara - - - static_instance-ucs-104 - sindh - karachi - lyari - singo_line - - - static_instance-ucs-105 - sindh - karachi - lyari - chakiwara - - - static_instance-ucs-106 - sindh - karachi - lyari - allama_iqbal_colony - - - static_instance-ucs-107 - sindh - karachi - malir - model_colony - - - static_instance-ucs-108 - sindh - karachi - malir - kala_board - - - static_instance-ucs-109 - sindh - karachi - malir - saudabad - - - static_instance-ucs-110 - sindh - karachi - malir - khokhra_par - - - static_instance-ucs-111 - sindh - karachi - malir - jafar_e_tayyar - - - static_instance-ucs-112 - sindh - karachi - malir - gharibabad - - - static_instance-ucs-113 - sindh - karachi - malir - ghazi_brohi_goth - - - static_instance-ucs-114 - sindh - karachi - new_karachi - kalyana - - - static_instance-ucs-115 - sindh - karachi - new_karachi - sir_syed_colony - - - static_instance-ucs-116 - sindh - karachi - new_karachi - fatima_jinnah_colony - - - static_instance-ucs-117 - sindh - karachi - new_karachi - godhra - - - static_instance-ucs-118 - sindh - karachi - new_karachi - abu_zar_ghaffari - - - static_instance-ucs-119 - sindh - karachi - new_karachi - hakim_ahsan - - - static_instance-ucs-120 - sindh - karachi - new_karachi - madina_colony - - - static_instance-ucs-121 - sindh - karachi - new_karachi - faisal_colony - - - static_instance-ucs-122 - sindh - karachi - new_karachi - khamiso_goth - - - static_instance-ucs-123 - sindh - karachi - new_karachi - mustufa_colony - - - static_instance-ucs-124 - sindh - karachi - new_karachi - khawaja_ajmeer_nagri - - - static_instance-ucs-125 - sindh - karachi - new_karachi - gulshan_e_saeed - - - static_instance-ucs-126 - sindh - karachi - new_karachi - shah_nawaz_bhutto_colony - - - static_instance-ucs-127 - sindh - karachi - north_nazimabad - paposh_nagar - - - static_instance-ucs-128 - sindh - karachi - north_nazimabad - pahar_ganj - - - static_instance-ucs-129 - sindh - karachi - north_nazimabad - khandu_goth - - - static_instance-ucs-130 - sindh - karachi - north_nazimabad - hyderi - - - static_instance-ucs-131 - sindh - karachi - north_nazimabad - sakhi_hassan - - - static_instance-ucs-132 - sindh - karachi - north_nazimabad - farooq_e_azam - - - static_instance-ucs-133 - sindh - karachi - north_nazimabad - nusrat_bhutto_colony - - - static_instance-ucs-134 - sindh - karachi - north_nazimabad - shadman_town - - - static_instance-ucs-135 - sindh - karachi - north_nazimabad - buffer_zone - - - static_instance-ucs-136 - sindh - karachi - north_nazimabad - buffer_zone_ii - - - static_instance-ucs-137 - sindh - karachi - orangi - mominabad - - - static_instance-ucs-138 - sindh - karachi - orangi - haryana_colony - - - static_instance-ucs-139 - sindh - karachi - orangi - hanifabad - - - static_instance-ucs-140 - sindh - karachi - orangi - mohammad_nagar - - - static_instance-ucs-141 - sindh - karachi - orangi - madina_colony_orangi - - - static_instance-ucs-142 - sindh - karachi - orangi - ghaziabad - - - static_instance-ucs-143 - sindh - karachi - orangi - chisti_nagar - - - static_instance-ucs-144 - sindh - karachi - orangi - bilal_colony_orangi - - - static_instance-ucs-145 - sindh - karachi - orangi - iqbal_baloch_colony - - - static_instance-ucs-146 - sindh - karachi - orangi - ghabool_town - - - static_instance-ucs-147 - sindh - karachi - orangi - data_nagar - - - static_instance-ucs-148 - sindh - karachi - orangi - mujahidabad - - - static_instance-ucs-149 - sindh - karachi - orangi - baloch_goth - - - static_instance-ucs-150 - sindh - karachi - saddar - old_haji_camp - - - static_instance-ucs-151 - sindh - karachi - saddar - garden - - - static_instance-ucs-152 - sindh - karachi - saddar - kharadar - - - static_instance-ucs-153 - sindh - karachi - saddar - city_railway_colony - - - static_instance-ucs-154 - sindh - karachi - saddar - nanak_wara - - - static_instance-ucs-155 - sindh - karachi - saddar - gazdarabad - - - static_instance-ucs-156 - sindh - karachi - saddar - millat_nagar_islam_pura - - - static_instance-ucs-157 - sindh - karachi - saddar - saddar_uc - - - static_instance-ucs-158 - sindh - karachi - saddar - civil_line - - - static_instance-ucs-159 - sindh - karachi - saddar - clifton - - - static_instance-ucs-160 - sindh - karachi - saddar - kehkashan - - - static_instance-ucs-161 - sindh - karachi - shah_faisal - natha_khan_goth - - - static_instance-ucs-162 - sindh - karachi - shah_faisal - pak_sadat_colony - - - static_instance-ucs-163 - sindh - karachi - shah_faisal - drigh_colony - - - static_instance-ucs-164 - sindh - karachi - shah_faisal - raita_plot - - - static_instance-ucs-165 - sindh - karachi - shah_faisal - moria_khan_goth - - - static_instance-ucs-166 - sindh - karachi - shah_faisal - rafa_e_aam_society - - - static_instance-ucs-167 - sindh - karachi - shah_faisal - al_falah_society - - - static_instance-ucs-168 - sindh - karachi - site - pak_colony - - - static_instance-ucs-169 - sindh - karachi - site - old_golimar - - - static_instance-ucs-170 - sindh - karachi - site - jahanabad - - - static_instance-ucs-171 - sindh - karachi - site - metrovil - - - static_instance-ucs-172 - sindh - karachi - site - bhawani_chali - - - static_instance-ucs-173 - sindh - karachi - site - frontier_colony - - - static_instance-ucs-174 - sindh - karachi - site - banaras_colony - - - static_instance-ucs-175 - sindh - karachi - site - qasba_colony - - - static_instance-ucs-176 - sindh - karachi - site - islamia_colony - - - static_instance-ucs-177 - na - na - na - other - - - static_instance-ucs-178 - na - na - na - not_applicable - - - - - - - static_instance-gender-0 - male - - - static_instance-gender-1 - female - - - static_instance-gender-2 - transgender - - - - - - - static_instance-vaccines-0 - TT1 - - - static_instance-vaccines-1 - TT2 - - - static_instance-vaccines-2 - TT3 - - - static_instance-vaccines-3 - TT4 - - - static_instance-vaccines-4 - TT5 - - - - - - - static_instance-towns-0 - sindh - karachi - korangi - - - static_instance-towns-1 - sindh - karachi - landhi - - - static_instance-towns-2 - sindh - karachi - baldia - - - static_instance-towns-3 - sindh - karachi - bin_qasim - - - static_instance-towns-4 - sindh - karachi - gadap - - - static_instance-towns-5 - sindh - karachi - gulberg - - - static_instance-towns-6 - sindh - karachi - gulshan - - - static_instance-towns-7 - sindh - karachi - jamshed - - - static_instance-towns-8 - sindh - karachi - kiamari - - - static_instance-towns-9 - sindh - karachi - liaquatabad - - - static_instance-towns-10 - sindh - karachi - lyari - - - static_instance-towns-11 - sindh - karachi - malir - - - static_instance-towns-12 - sindh - karachi - new_karachi - - - static_instance-towns-13 - sindh - karachi - north_nazimabad - - - static_instance-towns-14 - sindh - karachi - orangi - - - static_instance-towns-15 - sindh - karachi - saddar - - - static_instance-towns-16 - sindh - karachi - shah_faisal - - - static_instance-towns-17 - sindh - karachi - site - - - static_instance-towns-18 - na - na - other - - - static_instance-towns-19 - na - na - not_applicable - - - - - - - static_instance-cities-0 - sindh - karachi - - - static_instance-cities-1 - punjab - hafizabad - - - static_instance-cities-2 - punjab - muzaffargarh - - - static_instance-cities-3 - na - other - - - static_instance-cities-4 - na - not_applicable - - - - - - - static_instance-edd_lmp-0 - edd - - - static_instance-edd_lmp-1 - lmp - - - static_instance-edd_lmp-2 - ultrasound - - - static_instance-edd_lmp-3 - none - - - - - - - static_instance-ethnicity-0 - punjabi - - - static_instance-ethnicity-1 - pushtuns - - - static_instance-ethnicity-2 - sindhi - - - static_instance-ethnicity-3 - saraiki - - - static_instance-ethnicity-4 - muhajir - - - static_instance-ethnicity-5 - balochi - - - static_instance-ethnicity-6 - other - - - - - - - static_instance-yes_no-0 - yes - - - static_instance-yes_no-1 - no - - - - diff --git a/opensrp-register/src/test/resources/form/woman_followup/form.json b/opensrp-register/src/test/resources/form/woman_followup/form.json deleted file mode 100644 index af7866ef6c..0000000000 --- a/opensrp-register/src/test/resources/form/woman_followup/form.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"Woman_TT_Followup_Form","title":"خواتین فالواپ رجسٹر برائے ٹیکاجات - Woman TT Follow Up Form","sms_keyword":"woman_tt_followup_form","default_language":"English","choices":{"provinces":[{"name":"kpk","label":{"Urdu":"خیبر پختون خواہ","English":"Khyber Pakhtunkhwa","Roman Urdu":"Khyber Pakhtunkhwa"}},{"name":"sindh","label":{"Urdu":"سندھ","English":"Sindh","Roman Urdu":"Sindh"}},{"name":"balochistan","label":{"Urdu":"بلوچستان","English":"Balochistan","Roman Urdu":"Balochistan"}},{"name":"punjab","label":{"Urdu":"پنجاب","English":"Punjab","Roman Urdu":"Punjab"}},{"name":"gilgit_baltistan","label":{"Urdu":"گلگت بلتستان","English":"Gilgit Baltistan","Roman Urdu":"Gilgit Baltistan"}},{"name":"kashmir","label":{"Urdu":"کشمیر","English":"Kashmir","Roman Urdu":"Kashmir"}},{"name":"fata","label":{"Urdu":"فاٹا","English":"FATA","Roman Urdu":"FATA"}},{"name":"out_of_country","label":{"Urdu":"ملک سے باہر","English":"Out of Country","Roman Urdu":"Mulk se baahir"}}],"ucs":[{"province":"sindh","city":"karachi","town":"korangi","name":"bilal_colony","label":{"Urdu":"بلال کالونی","Roman Urdu":"Bilal Colony","English":"Bilal Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"nasir_colony","label":{"Urdu":"ناصر کالونی","Roman Urdu":"Nasir Colony","English":"Nasir Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"chakra_goth","label":{"Urdu":"چکرا گوٹھ","Roman Urdu":"Chakra Goth","English":"Chakra Goth"}},{"province":"sindh","city":"karachi","town":"korangi","name":"mustafa_taj_colony","label":{"Urdu":"مصطفی تاج کالونی","Roman Urdu":"Mustafa Taj Colony","English":"Mustafa Taj Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"hundred_quarters","label":{"Urdu":"ہنڈریڈ کوارٹر","Roman Urdu":"Hundred Quarters","English":"Hundred Quarters"}},{"province":"sindh","city":"karachi","town":"korangi","name":"gulzar_colony","label":{"Urdu":"گلزار کالونی","Roman Urdu":"Gulzar Colony","English":"Gulzar Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"korangi_sector_33","label":{"Urdu":"کورنگی سیکٹر 33","Roman Urdu":"Korangi Sector 33","English":"Korangi Sector 33"}},{"province":"sindh","city":"karachi","town":"korangi","name":"zaman_town","label":{"Urdu":"زمان ٹاوَن","Roman Urdu":"Zaman Town","English":"Zaman Town"}},{"province":"sindh","city":"karachi","town":"korangi","name":"hasrat_mohani_colony","label":{"Urdu":"حسرت موہانی کالونی","Roman Urdu":"Hasrat Mohani Colony","English":"Hasrat Mohani Colony"}},{"province":"sindh","city":"karachi","town":"baldia","name":"gulshan_e_ghazi","label":{"Urdu":"گلشن غازی","Roman Urdu":"Gulshan-e-Ghazi","English":"Gulshan-e-Ghazi"}},{"province":"sindh","city":"karachi","town":"baldia","name":"ittehad_town","label":{"Urdu":"اتحاد ٹاوَن","Roman Urdu":"Ittehad Town","English":"Ittehad Town"}},{"province":"sindh","city":"karachi","town":"baldia","name":"islam_nagar","label":{"Urdu":"اسلام نگر","Roman Urdu":"Islam Nagar","English":"Islam Nagar"}},{"province":"sindh","city":"karachi","town":"baldia","name":"nai_abadi","label":{"Urdu":"نئی آبادی","Roman Urdu":"Nai Abadi","English":"Nai Abadi"}},{"province":"sindh","city":"karachi","town":"baldia","name":"saeedabad","label":{"Urdu":"سعید آباد","Roman Urdu":"Saeedabad","English":"Saeedabad"}},{"province":"sindh","city":"karachi","town":"baldia","name":"muslim_mujahid_colony","label":{"Urdu":"مسلم مجاہد کالونی","Roman Urdu":"Muslim Mujahid Colony","English":"Muslim Mujahid Colony"}},{"province":"sindh","city":"karachi","town":"baldia","name":"muhajir_camp","label":{"Urdu":"مہاجر کیمپ","Roman Urdu":"Muhajir Camp","English":"Muhajir Camp"}},{"province":"sindh","city":"karachi","town":"baldia","name":"rasheedabad","label":{"Urdu":"رشید آباد","Roman Urdu":"Rasheedabad","English":"Rasheedabad"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"ibrahim_hyderi","label":{"Urdu":"ابراہیم حیدری","Roman Urdu":"Ibrahim Hyderi","English":"Ibrahim Hyderi"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"rehri","label":{"Urdu":"رہڑی","Roman Urdu":"Rehri","English":"Rehri"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"cattle_colony","label":{"Urdu":"کیٹل کالونی","Roman Urdu":"Cattle Colony","English":"Cattle Colony"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"qaidabad","label":{"Urdu":"قائدآباد","Roman Urdu":"Qaidabad","English":"Qaidabad"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"landhi_colony","label":{"Urdu":"لانڈھی کالونی","Roman Urdu":"Landhi Colony","English":"Landhi Colony"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"gulshan_e_hadeed","label":{"Urdu":"گلشن حدید","Roman Urdu":"Gulshan-e-Hadeed","English":"Gulshan-e-Hadeed"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"gaghar","label":{"Urdu":"گگر","Roman Urdu":"Gaghar","English":"Gaghar"}},{"province":"sindh","city":"karachi","town":"gadap","name":"murad_memon_goth","label":{"Urdu":"مراد میمن گوٹھ","Roman Urdu":"Murad Memon Goth","English":"Murad Memon Goth"}},{"province":"sindh","city":"karachi","town":"gadap","name":"darsano_chana","label":{"Urdu":"درشانو شنو","Roman Urdu":"Darsano Chana","English":"Darsano Chana"}},{"province":"sindh","city":"karachi","town":"gadap","name":"gujro","label":{"Urdu":"گجرو","Roman Urdu":"Gujro","English":"Gujro"}},{"province":"sindh","city":"karachi","town":"gadap","name":"songal","label":{"Urdu":"سنگل","Roman Urdu":"Songal","English":"Songal"}},{"province":"sindh","city":"karachi","town":"gadap","name":"maymarabad","label":{"Urdu":"معمار آباد","Roman Urdu":"Maymarabad","English":"Maymarabad"}},{"province":"sindh","city":"karachi","town":"gadap","name":"yousuf_goth","label":{"Urdu":"یوسف گوٹھ","Roman Urdu":"Yousuf Goth","English":"Yousuf Goth"}},{"province":"sindh","city":"karachi","town":"gadap","name":"manghopir","label":{"Urdu":"منگھوپیر","Roman Urdu":"Manghopir","English":"Manghopir"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"azizabad","label":{"Urdu":"عزیز آباد","Roman Urdu":"Azizabad","English":"Azizabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"karimabad","label":{"Urdu":"کریم آباد","Roman Urdu":"Karimabad","English":"Karimabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"aisha_manzil","label":{"Urdu":"عائشہ منزل","Roman Urdu":"Aisha Manzil","English":"Aisha Manzil"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"ancholi","label":{"Urdu":"انچولی","Roman Urdu":"Ancholi","English":"Ancholi"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"naseerabad","label":{"Urdu":"نصیرآباد","Roman Urdu":"Naseerabad","English":"Naseerabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"yaseenabad","label":{"Urdu":"یاسین آباد","Roman Urdu":"Yaseenabad","English":"Yaseenabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"water_pump","label":{"Urdu":"واٹرپمپ","Roman Urdu":"Water Pump","English":"Water Pump"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"shafiq_mill_colony","label":{"Urdu":"شفیق مل کالونی","Roman Urdu":"Shafiq Mill Colony","English":"Shafiq Mill Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"delhi_mercantile_society","label":{"Urdu":"دہلی مرچنٹائل سوسائٹی","Roman Urdu":"Delhi Mercantile Society","English":"Delhi Mercantile Society"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"civic_centre","label":{"Urdu":"سوک سینٹر","Roman Urdu":"Civic Centre","English":"Civic Centre"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"pir_ilahi_buksh_colony","label":{"Urdu":"پیر الہی بخش کالونی","Roman Urdu":"Pir Ilahi Buksh Colony","English":"Pir Ilahi Buksh Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"essa_nagri","label":{"Urdu":"عیسی نگری","Roman Urdu":"Essa Nagri","English":"Essa Nagri"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gulshan_e_iqbal","label":{"Urdu":"گلشن اقبال","Roman Urdu":"Gulshan-e-Iqbal","English":"Gulshan-e-Iqbal"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gillani_railway_station","label":{"Urdu":"گیلانی ریلوے اسٹیشن","Roman Urdu":"Gillani Railway Station","English":"Gillani Railway Station"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"shanti_nagar","label":{"Urdu":"شانتی نگر","Roman Urdu":"Shanti Nagar","English":"Shanti Nagar"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"jamali_colony","label":{"Urdu":"جمالی کالونی","Roman Urdu":"Jamali Colony","English":"Jamali Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gulshan_e_iqbal_ii","label":{"Urdu":"گلشن اقبال 2","Roman Urdu":"Gulshan-e-Iqbal II","English":"Gulshan-e-Iqbal II"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"pehlwan_goth","label":{"Urdu":"پہلوان گوٹھ","Roman Urdu":"Pehlwan Goth","English":"Pehlwan Goth"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"matrovil_colony","label":{"Urdu":"میٹروویل کالونی","Roman Urdu":"Matrovil Colony","English":"Matrovil Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gulzar_e_hijri","label":{"Urdu":"گلزار ہجری","Roman Urdu":"Gulzar-e-Hijri","English":"Gulzar-e-Hijri"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"safooran_goth","label":{"Urdu":"صفورا گوٹھ","Roman Urdu":"Safooran Goth","English":"Safooran Goth"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"akhtar_colony","label":{"Urdu":"اختر کالونی","Roman Urdu":"Akhtar Colony","English":"Akhtar Colony"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"manzoor_colony","label":{"Urdu":"منظور کالونی","Roman Urdu":"Manzoor Colony","English":"Manzoor Colony"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"azam_basti","label":{"Urdu":"اعظم بستی","Roman Urdu":"Azam Basti","English":"Azam Basti"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"chanesar_goth","label":{"Urdu":"چنیسر گوٹھ","Roman Urdu":"Chanesar Goth","English":"Chanesar Goth"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"mahmudabad","label":{"Urdu":"محمودآباد","Roman Urdu":"Mahmudabad","English":"Mahmudabad"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"pechs","label":{"Urdu":"پی۔ای۔سی۔ایچ۔ایس","Roman Urdu":"P.E.C.H.S.","English":"P.E.C.H.S."}},{"province":"sindh","city":"karachi","town":"jamshed","name":"pechs_ii","label":{"Urdu":"پی۔ای۔سی۔ایچ۔ایس 2","Roman Urdu":"P.E.C.H.S. II","English":"P.E.C.H.S. II"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"jut_line","label":{"Urdu":"جٹ لائن","Roman Urdu":"Jut Line","English":"Jut Line"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"central_jacob_lines","label":{"Urdu":"سینٹرل جیکب لائن","Roman Urdu":"Central Jacob Lines","English":"Central Jacob Lines"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"jamshed_quarters","label":{"Urdu":"جمشید کوارٹر","Roman Urdu":"Jamshed Quarters","English":"Jamshed Quarters"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"garden_east","label":{"Urdu":"گارڈن ایسٹ","Roman Urdu":"Garden East","English":"Garden East"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"soldier_bazar","label":{"Urdu":"سولجر بازار","Roman Urdu":"Soldier Bazar","English":"Soldier Bazar"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"pakistan_quarters","label":{"Urdu":"پاکستان کوارٹر","Roman Urdu":"Pakistan Quarters","English":"Pakistan Quarters"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"bhutta_village","label":{"Urdu":"بھٹا ولیج","Roman Urdu":"Bhutta Village","English":"Bhutta Village"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"sultanabad","label":{"Urdu":"سلطان آباد","Roman Urdu":"Sultanabad","English":"Sultanabad"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"kiamari_uc","label":{"Urdu":"کیماری یوسی","Roman Urdu":"Kiamari UC","English":"Kiamari UC"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"baba_bhit","label":{"Urdu":"بابا بھٹ","Roman Urdu":"Baba Bhit","English":"Baba Bhit"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"machar_colony","label":{"Urdu":"مچھر کالونی","Roman Urdu":"Machar Colony","English":"Machar Colony"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"maripur","label":{"Urdu":"ماڑی پور","Roman Urdu":"Maripur","English":"Maripur"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"shershah","label":{"Urdu":"شیرشاہ","Roman Urdu":"SherShah","English":"SherShah"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"gabo_pat","label":{"Urdu":"گابو پٹ","Roman Urdu":"Gabo Pat","English":"Gabo Pat"}},{"province":"sindh","city":"karachi","town":"landhi","name":"muzafarabad","label":{"Urdu":"مظفرآباد","Roman Urdu":"Muzafarabad","English":"Muzafarabad"}},{"province":"sindh","city":"karachi","town":"landhi","name":"muslimabad","label":{"Urdu":"مسلم آباد","Roman Urdu":"Muslimabad","English":"Muslimabad"}},{"province":"sindh","city":"karachi","town":"landhi","name":"dawood_chowrangi","label":{"Urdu":"داوَد چورنگی","Roman Urdu":"Dawood Chowrangi","English":"Dawood Chowrangi"}},{"province":"sindh","city":"karachi","town":"landhi","name":"moinabad","label":{"Urdu":"معین آباد","Roman Urdu":"Moinabad","English":"Moinabad"}},{"province":"sindh","city":"karachi","town":"landhi","name":"sharafi_goth","label":{"Urdu":"شرافی گوٹھ","Roman Urdu":"Sharafi Goth","English":"Sharafi Goth"}},{"province":"sindh","city":"karachi","town":"landhi","name":"bhutto_nagar","label":{"Urdu":"بھٹو نگر","Roman Urdu":"Bhutto Nagar","English":"Bhutto Nagar"}},{"province":"sindh","city":"karachi","town":"landhi","name":"khawaja_ajmeer_colony","label":{"Urdu":"خواجہ اجمیر کالونی","Roman Urdu":"Khawaja Ajmeer Colony","English":"Khawaja Ajmeer Colony"}},{"province":"sindh","city":"karachi","town":"landhi","name":"landhi_uc","label":{"Urdu":"لانڈھی یوسی","Roman Urdu":"Landhi UC","English":"Landhi UC"}},{"province":"sindh","city":"karachi","town":"landhi","name":"awami_colony","label":{"Urdu":"عوامی کالونی","Roman Urdu":"Awami Colony","English":"Awami Colony"}},{"province":"sindh","city":"karachi","town":"landhi","name":"burmee_colony","label":{"Urdu":"برمی کالونی","Roman Urdu":"Burmee Colony","English":"Burmee Colony"}},{"province":"sindh","city":"karachi","town":"landhi","name":"korangi_uc","label":{"Urdu":"کورنگی یوسی","Roman Urdu":"Korangi UC","English":"Korangi UC"}},{"province":"sindh","city":"karachi","town":"landhi","name":"sherabad","label":{"Urdu":"شیرآباد","Roman Urdu":"Sherabad","English":"Sherabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"rizvia_society","label":{"Urdu":"رضویہ سوسائٹی","Roman Urdu":"Rizvia Society","English":"Rizvia Society"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"firdous_colony","label":{"Urdu":"فردوس کالونی","Roman Urdu":"Firdous Colony","English":"Firdous Colony"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"super_market","label":{"Urdu":"سپر مارکیٹ","Roman Urdu":"Super Market","English":"Super Market"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"dak_khana","label":{"Urdu":"دک کھانہ","Roman Urdu":"Dak Khana","English":"Dak Khana"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"qasimabad","label":{"Urdu":"قاسم آباد","Roman Urdu":"Qasimabad","English":"Qasimabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"bandhani_colony","label":{"Urdu":"بندھانی کالونی","Roman Urdu":"Bandhani Colony","English":"Bandhani Colony"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"sharifabad","label":{"Urdu":"شریف آباد","Roman Urdu":"Sharifabad","English":"Sharifabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"commercial_area","label":{"Urdu":"کمرشل ایریا","Roman Urdu":"Commercial Area","English":"Commercial Area"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"mujahid_colony","label":{"Urdu":"مجاہد کالونی","Roman Urdu":"Mujahid Colony","English":"Mujahid Colony"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"nazimabad","label":{"Urdu":"ناظم آباد","Roman Urdu":"Nazimabad","English":"Nazimabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"abbasi_shaheed","label":{"Urdu":"عباسی شہید","Roman Urdu":"Abbasi Shaheed","English":"Abbasi Shaheed"}},{"province":"sindh","city":"karachi","town":"lyari","name":"agra_taj_colony","label":{"Urdu":"آگرہ تاج کالونی","Roman Urdu":"Agra Taj Colony","English":"Agra Taj Colony"}},{"province":"sindh","city":"karachi","town":"lyari","name":"daryaabad","label":{"Urdu":"دریاآباد","Roman Urdu":"Daryaabad","English":"Daryaabad"}},{"province":"sindh","city":"karachi","town":"lyari","name":"nawabad","label":{"Urdu":"نواآباد","Roman Urdu":"Nawabad","English":"Nawabad"}},{"province":"sindh","city":"karachi","town":"lyari","name":"khada_memon_society","label":{"Urdu":"خدا- میمن- سوساَٹی","Roman Urdu":"Khada Memon Society","English":"Khada Memon Society"}},{"province":"sindh","city":"karachi","town":"lyari","name":"baghdadi","label":{"Urdu":"بغدادی","Roman Urdu":"Baghdadi","English":"Baghdadi"}},{"province":"sindh","city":"karachi","town":"lyari","name":"shah_baig_line","label":{"Urdu":"شاھ باغ لائن","Roman Urdu":"Shah Baig Line","English":"Shah Baig Line"}},{"province":"sindh","city":"karachi","town":"lyari","name":"bihar_colony","label":{"Urdu":"بہار کالونی","Roman Urdu":"Bihar Colony","English":"Bihar Colony"}},{"province":"sindh","city":"karachi","town":"lyari","name":"ragiwara","label":{"Urdu":"راگی واڑا","Roman Urdu":"Ragiwara","English":"Ragiwara"}},{"province":"sindh","city":"karachi","town":"lyari","name":"singo_line","label":{"Urdu":"سنگولائن","Roman Urdu":"Singo Line","English":"Singo Line"}},{"province":"sindh","city":"karachi","town":"lyari","name":"chakiwara","label":{"Urdu":"چاکی واڑا","Roman Urdu":"Chakiwara","English":"Chakiwara"}},{"province":"sindh","city":"karachi","town":"lyari","name":"allama_iqbal_colony","label":{"Urdu":"علامہ اقبال کالونی","Roman Urdu":"Allama Iqbal Colony","English":"Allama Iqbal Colony"}},{"province":"sindh","city":"karachi","town":"malir","name":"model_colony","label":{"Urdu":"موڈل کالونی","Roman Urdu":"Model Colony","English":"Model Colony"}},{"province":"sindh","city":"karachi","town":"malir","name":"kala_board","label":{"Urdu":"کالا بورڈ","Roman Urdu":"Kala Board","English":"Kala Board"}},{"province":"sindh","city":"karachi","town":"malir","name":"saudabad","label":{"Urdu":"سعودآباد","Roman Urdu":"Saudabad","English":"Saudabad"}},{"province":"sindh","city":"karachi","town":"malir","name":"khokhra_par","label":{"Urdu":"کھوکھرا پار","Roman Urdu":"Khokhra Par","English":"Khokhra Par"}},{"province":"sindh","city":"karachi","town":"malir","name":"jafar_e_tayyar","label":{"Urdu":"جعفر تیار","Roman Urdu":"Jafar-e-Tayyar","English":"Jafar-e-Tayyar"}},{"province":"sindh","city":"karachi","town":"malir","name":"gharibabad","label":{"Urdu":"غریب آباد","Roman Urdu":"Gharibabad","English":"Gharibabad"}},{"province":"sindh","city":"karachi","town":"malir","name":"ghazi_brohi_goth","label":{"Urdu":"غازی بروہی گوٹھ","Roman Urdu":"Ghazi Brohi Goth","English":"Ghazi Brohi Goth"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"kalyana","label":{"Urdu":"کالیانہ","Roman Urdu":"Kalyana","English":"Kalyana"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"sir_syed_colony","label":{"Urdu":"سر سید کالونی","Roman Urdu":"Sir Syed Colony","English":"Sir Syed Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"fatima_jinnah_colony","label":{"Urdu":"فاطمہ جناح کالونی","Roman Urdu":"Fatima Jinnah Colony","English":"Fatima Jinnah Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"godhra","label":{"Urdu":"گودھرا","Roman Urdu":"Godhra","English":"Godhra"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"abu_zar_ghaffari","label":{"Urdu":"ابو زر غفاری","Roman Urdu":"Abu Zar Ghaffari","English":"Abu Zar Ghaffari"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"hakim_ahsan","label":{"Urdu":"حاکم احسان","Roman Urdu":"Hakim Ahsan","English":"Hakim Ahsan"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"madina_colony","label":{"Urdu":"مدینہ کالونی","Roman Urdu":"Madina Colony","English":"Madina Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"faisal_colony","label":{"Urdu":"فیصل کالونی","Roman Urdu":"Faisal Colony","English":"Faisal Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"khamiso_goth","label":{"Urdu":"خمیسو گوٹھ","Roman Urdu":"Khamiso Goth","English":"Khamiso Goth"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"mustufa_colony","label":{"Urdu":"مصطفی کالونی","Roman Urdu":"Mustufa Colony","English":"Mustufa Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"khawaja_ajmeer_nagri","label":{"Urdu":"خواجہ اجمیر نگری","Roman Urdu":"Khawaja Ajmeer Nagri","English":"Khawaja Ajmeer Nagri"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"gulshan_e_saeed","label":{"Urdu":"گلشن سعید","Roman Urdu":"Gulshan-e-Saeed","English":"Gulshan-e-Saeed"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"shah_nawaz_bhutto_colony","label":{"Urdu":"شاہ نواز بھٹو کالونی","Roman Urdu":"Shah Nawaz Bhutto Colony","English":"Shah Nawaz Bhutto Colony"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"paposh_nagar","label":{"Urdu":"پاپوش نگر","Roman Urdu":"Paposh Nagar","English":"Paposh Nagar"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"pahar_ganj","label":{"Urdu":"پہاڑ گنج","Roman Urdu":"Pahar Ganj","English":"Pahar Ganj"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"khandu_goth","label":{"Urdu":"کھنڑو گوٹھ","Roman Urdu":"Khandu Goth","English":"Khandu Goth"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"hyderi","label":{"Urdu":"حیدری","Roman Urdu":"Hyderi","English":"Hyderi"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"sakhi_hassan","label":{"Urdu":"سخی حسن","Roman Urdu":"Sakhi Hassan","English":"Sakhi Hassan"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"farooq_e_azam","label":{"Urdu":"فاروق اعظم","Roman Urdu":"Farooq-e-Azam","English":"Farooq-e-Azam"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"nusrat_bhutto_colony","label":{"Urdu":"نصرت بھٹو کالونی","Roman Urdu":"Nusrat Bhutto Colony","English":"Nusrat Bhutto Colony"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"shadman_town","label":{"Urdu":"شادمان ٹاوَن","Roman Urdu":"Shadman Town","English":"Shadman Town"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"buffer_zone","label":{"Urdu":"بفرزون","Roman Urdu":"Buffer Zone","English":"Buffer Zone"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"buffer_zone_ii","label":{"Urdu":"بفرزون 2","Roman Urdu":"Buffer Zone II","English":"Buffer Zone II"}},{"province":"sindh","city":"karachi","town":"orangi","name":"mominabad","label":{"Urdu":"مومن آباد","Roman Urdu":"Mominabad","English":"Mominabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"haryana_colony","label":{"Urdu":"حریانہ کالونی","Roman Urdu":"Haryana Colony","English":"Haryana Colony"}},{"province":"sindh","city":"karachi","town":"orangi","name":"hanifabad","label":{"Urdu":"حنیف آباد","Roman Urdu":"Hanifabad","English":"Hanifabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"mohammad_nagar","label":{"Urdu":"محمد نگر","Roman Urdu":"Mohammad Nagar","English":"Mohammad Nagar"}},{"province":"sindh","city":"karachi","town":"orangi","name":"madina_colony_orangi","label":{"Urdu":"مدینہ کالونی اورنگی","Roman Urdu":"Madina Colony Orangi","English":"Madina Colony Orangi"}},{"province":"sindh","city":"karachi","town":"orangi","name":"ghaziabad","label":{"Urdu":"غازی آباد","Roman Urdu":"Ghaziabad","English":"Ghaziabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"chisti_nagar","label":{"Urdu":"چشتی نگر","Roman Urdu":"Chisti Nagar","English":"Chisti Nagar"}},{"province":"sindh","city":"karachi","town":"orangi","name":"bilal_colony_orangi","label":{"Urdu":"بلال کالونی اورنگی","Roman Urdu":"Bilal Colony Orangi","English":"Bilal Colony Orangi"}},{"province":"sindh","city":"karachi","town":"orangi","name":"iqbal_baloch_colony","label":{"Urdu":"اقبال بلوچ کالونی","Roman Urdu":"Iqbal Baloch Colony","English":"Iqbal Baloch Colony"}},{"province":"sindh","city":"karachi","town":"orangi","name":"ghabool_town","label":{"Urdu":"گبول ٹاوَن","Roman Urdu":"Ghabool Town","English":"Ghabool Town"}},{"province":"sindh","city":"karachi","town":"orangi","name":"data_nagar","label":{"Urdu":"داتا نگر","Roman Urdu":"Data Nagar","English":"Data Nagar"}},{"province":"sindh","city":"karachi","town":"orangi","name":"mujahidabad","label":{"Urdu":"مجاہد آباد","Roman Urdu":"Mujahidabad","English":"Mujahidabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"baloch_goth","label":{"Urdu":"بلوچ گوٹھ","Roman Urdu":"Baloch Goth","English":"Baloch Goth"}},{"province":"sindh","city":"karachi","town":"saddar","name":"old_haji_camp","label":{"Urdu":"پرانہ حاجی کیمپ","Roman Urdu":"Old Haji Camp","English":"Old Haji Camp"}},{"province":"sindh","city":"karachi","town":"saddar","name":"garden","label":{"Urdu":"گارڈن","Roman Urdu":"Garden","English":"Garden"}},{"province":"sindh","city":"karachi","town":"saddar","name":"kharadar","label":{"Urdu":"کھارادر","Roman Urdu":"Kharadar","English":"Kharadar"}},{"province":"sindh","city":"karachi","town":"saddar","name":"city_railway_colony","label":{"Urdu":"سٹی ریلوے کالونی","Roman Urdu":"City Railway Colony","English":"City Railway Colony"}},{"province":"sindh","city":"karachi","town":"saddar","name":"nanak_wara","label":{"Urdu":"ناناک واڑا","Roman Urdu":"Nanak Wara","English":"Nanak Wara"}},{"province":"sindh","city":"karachi","town":"saddar","name":"gazdarabad","label":{"Urdu":"گزدرآباد","Roman Urdu":"Gazdarabad","English":"Gazdarabad"}},{"province":"sindh","city":"karachi","town":"saddar","name":"millat_nagar_islam_pura","label":{"Urdu":"ملت نگر اسلام پورا","Roman Urdu":"Millat Nagar/Islam Pura","English":"Millat Nagar/Islam Pura"}},{"province":"sindh","city":"karachi","town":"saddar","name":"saddar_uc","label":{"Urdu":"صدر یو سی","Roman Urdu":"Saddar UC","English":"Saddar UC"}},{"province":"sindh","city":"karachi","town":"saddar","name":"civil_line","label":{"Urdu":"سول لائن","Roman Urdu":"Civil Line","English":"Civil Line"}},{"province":"sindh","city":"karachi","town":"saddar","name":"clifton","label":{"Urdu":"کلفٹن","Roman Urdu":"Clifton","English":"Clifton"}},{"province":"sindh","city":"karachi","town":"saddar","name":"kehkashan","label":{"Urdu":"کہکشان","Roman Urdu":"Kehkashan","English":"Kehkashan"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"natha_khan_goth","label":{"Urdu":"ناتھا خان گوٹھ","Roman Urdu":"Natha Khan Goth","English":"Natha Khan Goth"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"pak_sadat_colony","label":{"Urdu":"پاک صدر کالونی","Roman Urdu":"Pak Sadat Colony","English":"Pak Sadat Colony"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"drigh_colony","label":{"Urdu":"ڈرگ کالونی","Roman Urdu":"Drigh Colony","English":"Drigh Colony"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"raita_plot","label":{"Urdu":"رائتا پلاٹ","Roman Urdu":"Raita Plot","English":"Raita Plot"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"moria_khan_goth","label":{"Urdu":"موریا خان گوٹھ","Roman Urdu":"Moria Khan Goth","English":"Moria Khan Goth"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"rafa_e_aam_society","label":{"Urdu":"رفا عام سوسا ئٹی","Roman Urdu":"Rafa-e-Aam Society","English":"Rafa-e-Aam Society"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"al_falah_society","label":{"Urdu":"الفلاح سوسا ئٹی","Roman Urdu":"Al-Falah Society","English":"Al-Falah Society"}},{"province":"sindh","city":"karachi","town":"site","name":"pak_colony","label":{"Urdu":"پاک کالونی","Roman Urdu":"Pak Colony","English":"Pak Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"old_golimar","label":{"Urdu":"پرانہ گولی مار","Roman Urdu":"Old Golimar","English":"Old Golimar"}},{"province":"sindh","city":"karachi","town":"site","name":"jahanabad","label":{"Urdu":"جہان آباد","Roman Urdu":"Jahanabad","English":"Jahanabad"}},{"province":"sindh","city":"karachi","town":"site","name":"metrovil","label":{"Urdu":"میٹروویل","Roman Urdu":"Metrovil","English":"Metrovil"}},{"province":"sindh","city":"karachi","town":"site","name":"bhawani_chali","label":{"Urdu":"بہوانی چالی","Roman Urdu":"Bhawani Chali","English":"Bhawani Chali"}},{"province":"sindh","city":"karachi","town":"site","name":"frontier_colony","label":{"Urdu":"فرونٹر کالونی","Roman Urdu":"Frontier Colony","English":"Frontier Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"banaras_colony","label":{"Urdu":"بنارس کالونی","Roman Urdu":"Banaras Colony","English":"Banaras Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"qasba_colony","label":{"Urdu":"قصبہ کالونی","Roman Urdu":"Qasba Colony","English":"Qasba Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"islamia_colony","label":{"Urdu":"اسلامیہ کالونی","Roman Urdu":"Islamia Colony","English":"Islamia Colony"}},{"province":"na","city":"na","town":"na","name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}},{"province":"na","city":"na","town":"na","name":"not_applicable","label":{"Urdu":"قابل اطلاق نہیں","Roman Urdu":"Qaabil-e-atlaaq nahi","English":"Not Applicable"}}],"gender":[{"instance":{"openmrs_code":"1534AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"male","label":{"Urdu":"مرد/ لڑکا","Roman Urdu":"Mard/larka","English":"Male"}},{"instance":{"openmrs_code":"1535AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"female","label":{"Urdu":"عورت/لڑکی","Roman Urdu":"Aurat/larki","English":"Female"}},{"instance":{"openmrs_code":"163163AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"transgender","label":{"Urdu":"خواجہ سرہ","Roman Urdu":"Khwaja sira","English":"Transgender"}}],"vaccines":[{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT1","label":{"Urdu":"ٹی ٹی 1","Roman Urdu":"TT1","English":"TT1"}},{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT2","label":{"Urdu":"ٹی ٹی 2","Roman Urdu":"TT2","English":"TT2"}},{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT3","label":{"Urdu":"ٹی ٹی 3","Roman Urdu":"TT3","English":"TT3"}},{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT4","label":{"Urdu":"ٹی ٹی 4","Roman Urdu":"TT4","English":"TT4"}},{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT5","label":{"Urdu":"ٹی ٹی 5","Roman Urdu":"TT5","English":"TT5"}}],"towns":[{"province":"sindh","city":"karachi","name":"korangi","label":{"Urdu":"کورنگی","Roman Urdu":"Korangi","English":"Korangi"}},{"province":"sindh","city":"karachi","name":"landhi","label":{"Urdu":"لانڈھی","Roman Urdu":"Landhi","English":"Landhi"}},{"province":"sindh","city":"karachi","name":"baldia","label":{"Urdu":"بلدیہ","Roman Urdu":"Baldia","English":"Baldia"}},{"province":"sindh","city":"karachi","name":"bin_qasim","label":{"Urdu":"بن قاسم","Roman Urdu":"Bin Qasim","English":"Bin Qasim"}},{"province":"sindh","city":"karachi","name":"gadap","label":{"Urdu":"گڈاپ","Roman Urdu":"Gadap","English":"Gadap"}},{"province":"sindh","city":"karachi","name":"gulberg","label":{"Urdu":"گلبرگ","Roman Urdu":"Gulberg","English":"Gulberg"}},{"province":"sindh","city":"karachi","name":"gulshan","label":{"Urdu":"گلشن","Roman Urdu":"Gulshan","English":"Gulshan"}},{"province":"sindh","city":"karachi","name":"jamshed","label":{"Urdu":"جمشید","Roman Urdu":"Jamshed","English":"Jamshed"}},{"province":"sindh","city":"karachi","name":"kiamari","label":{"Urdu":"کیماری","Roman Urdu":"Kiamari","English":"Kiamari"}},{"province":"sindh","city":"karachi","name":"liaquatabad","label":{"Urdu":"لیاقت آباد","Roman Urdu":"Liaquatabad","English":"Liaquatabad"}},{"province":"sindh","city":"karachi","name":"lyari","label":{"Urdu":"لیاری","Roman Urdu":"Lyari","English":"Lyari"}},{"province":"sindh","city":"karachi","name":"malir","label":{"Urdu":"ملیر","Roman Urdu":"Malir","English":"Malir"}},{"province":"sindh","city":"karachi","name":"new_karachi","label":{"Urdu":"نیو کراچی","Roman Urdu":"New Karachi","English":"New Karachi"}},{"province":"sindh","city":"karachi","name":"north_nazimabad","label":{"Urdu":"نارتھ ناظم آباد","Roman Urdu":"North Nazimabad","English":"North Nazimabad"}},{"province":"sindh","city":"karachi","name":"orangi","label":{"Urdu":"اورنگی","Roman Urdu":"Orangi","English":"Orangi"}},{"province":"sindh","city":"karachi","name":"saddar","label":{"Urdu":"صدر","Roman Urdu":"Saddar","English":"Saddar"}},{"province":"sindh","city":"karachi","name":"shah_faisal","label":{"Urdu":"شاہ فیصل","Roman Urdu":"Shah Faisal","English":"Shah Faisal"}},{"province":"sindh","city":"karachi","name":"site","label":{"Urdu":"سائٹ","Roman Urdu":"S.I.T.E.","English":"S.I.T.E."}},{"province":"na","city":"na","name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}},{"province":"na","city":"na","name":"not_applicable","label":{"Urdu":"قابل اطلاق نہیں","Roman Urdu":"Qaabil-e-atlaaq nahi","English":"Not Applicable"}}],"cities":[{"province":"sindh","name":"karachi","label":{"Urdu":"کراچی","Roman Urdu":"Karachi","English":"Karachi"}},{"province":"punjab","name":"hafizabad","label":{"Urdu":"حافظ آباد","Roman Urdu":"Hafizabad","English":"Hafizabad"}},{"province":"punjab","name":"muzaffargarh","label":{"Urdu":"مظفر گڑھ","Roman Urdu":"Muzaffargarh","English":"Muzaffargarh"}},{"province":"na","name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}},{"province":"na","name":"not_applicable","label":{"Urdu":"قابل اطلاق نہیں","Roman Urdu":"Not Applicable","English":"Not Applicable"}}],"edd_lmp":[{"instance":{"openmrs_code":"5596AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"edd","label":{"Urdu":"زچگی کی متوقع تاریخ","Roman Urdu":"EDD","English":"EDD"}},{"instance":{"openmrs_code":"1427AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"lmp","label":{"Urdu":"پچھلی مہواری کی تاریخ","Roman Urdu":"LMP","English":"LMP"}},{"instance":{"openmrs_code":"159617AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ultrasound","label":{"Urdu":"الٹرا سائونڈ","Roman Urdu":"Ultrasound","English":"Ultrasound"}},{"instance":{"openmrs_code":"1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"none","label":{"Urdu":"کوئی بھی نہیں","Roman Urdu":"Koi bhi nahi","English":"None of the above"}}],"yes_no":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}]},"instance":{"encounter_type":"Woman TT Follow Up"},"version":"201604260935","id_string":"woman_tt_followup_form","type":"survey","children":[{"type":"hidden","name":"provider_uc"},{"type":"hidden","name":"provider_town"},{"type":"hidden","name":"provider_city"},{"type":"hidden","name":"provider_province"},{"type":"hidden","name":"existing_landmark"},{"type":"hidden","name":"existing_address1"},{"type":"hidden","name":"existing_union_council"},{"type":"hidden","name":"existing_town"},{"type":"hidden","name":"existing_city_village"},{"type":"hidden","name":"existing_province"},{"type":"hidden","name":"existing_union_councilname"},{"type":"hidden","name":"existing_townname"},{"type":"hidden","name":"existing_city_villagename"},{"type":"hidden","name":"existing_provincename"},{"type":"hidden","name":"existing_first_name"},{"type":"hidden","name":"existing_last_name"},{"type":"hidden","name":"existing_father_name"},{"type":"hidden","name":"existing_husband_name"},{"type":"hidden","name":"existing_marriage"},{"type":"hidden","name":"existing_birth_date"},{"type":"hidden","name":"existing_gender"},{"type":"hidden","name":"existing_ethnicity"},{"type":"hidden","name":"existing_client_reg_date"},{"type":"hidden","name":"existing_program_client_id"},{"type":"hidden","name":"existing_epi_card_number"},{"type":"hidden","name":"existing_reminders_approval"},{"type":"hidden","name":"existing_contact_phone_number"},{"type":"hidden","name":"e_tt1"},{"type":"hidden","name":"e_tt2"},{"type":"hidden","name":"e_tt3"},{"type":"hidden","name":"e_tt4"},{"type":"hidden","name":"e_tt5"},{"type":"hidden","name":"provider_id"},{"instance":{"openmrs_entity_id":"location_id","openmrs_entity":"encounter"},"type":"hidden","name":"provider_location_id"},{"type":"hidden","name":"provider_location_name"},{"type":"note","name":"provider_location_note","label":{"Urdu":"شہر: ${provider_city} ; ٹائون: ${provider_town} ; یوسی: ${provider_uc} ; سینٹرکا نام: ${provider_location_name}","English":"City: ${provider_city} ; Town: ${provider_town} ; UC: ${provider_uc} ; Center Name: ${provider_location_name}"}},{"instance":{"openmrs_entity_id":"163137AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"start","name":"start"},{"instance":{"openmrs_entity_id":"163138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"end","name":"end"},{"instance":{"openmrs_entity_id":"163286AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"today","name":"today"},{"instance":{"openmrs_entity_id":"163149AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"deviceid","name":"deviceid"},{"instance":{"openmrs_entity_id":"163150AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"subscriberid","name":"subscriberid"},{"instance":{"openmrs_entity_id":"163151AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"simserial","name":"simserial"},{"instance":{"openmrs_entity_id":"163152AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"phonenumber","name":"phonenumber"},{"bind":{"required":"yes"},"type":"note","name":"client_reg_date_note","label":{"Urdu":"پروگرام میں اندراج کی تاریخ: ${existing_client_reg_date}","Roman Urdu":"Program mai andraj ki tareekh: ${existing_client_reg_date}","English":"Program Registration date: ${existing_client_reg_date}"}},{"bind":{"required":"yes"},"type":"note","name":"program_client_id_note","label":{"Urdu":"پروگرام آئی ڈی: ${existing_program_client_id}","Roman Urdu":"Program ID: ${existing_program_client_id}","English":"Program ID: ${existing_program_client_id}"}},{"bind":{"required":"yes"},"type":"note","name":"epi_card_number_note","label":{"Urdu":"${existing_epi_card_number} :ای پی آئی کارڈ نمبر","Roman Urdu":"EPI Card Number: ${existing_epi_card_number}","English":"EPI Card Number: ${existing_epi_card_number}"}},{"bind":{"required":"yes"},"type":"note","name":"first_name_note","label":{"Urdu":"${existing_first_name} :نام","Roman Urdu":"Naam: ${existing_first_name}","English":"First Name: ${existing_first_name}"}},{"bind":{"required":"yes"},"type":"note","name":"last_name_note","label":{"Urdu":"والد کا نام: ${existing_last_name}","Roman Urdu":"Waalid ka naam: ${existing_last_name}","English":"Last name: ${existing_last_name}"}},{"bind":{"calculate":"date( today() - (${existing_birth_date} div 365.25))"},"type":"calculate","name":"client_age","instance":{"openmrs_entity_id":"154384AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"type":"note","name":"member_birth_date_note","label":{"Urdu":"کلائنٹ کی تاریخِ پیدائش: ${existing_birth_date} (${client_age}) سال","English":"Client birth date: ${existing_birth_date} (${client_age}) years","Roman Urdu":"Client ki tareekh-e-pedaaish: ${existing_birth_date} (${client_age}) years"}},{"bind":{"required":"yes"},"type":"note","name":"gender_note","label":{"Urdu":"${existing_gender} :جنس","Roman Urdu":"Jins:${existing_gender}","English":"Gender: ${existing_gender}"}},{"type":"note","name":"father_name_note","label":{"Urdu":"والد کا نام: ${existing_father_name}","English":"Father's Name: ${existing_father_name}","Roman Urdu":"Waalid ka naam: ${existing_father_name}"}},{"type":"note","name":"marriage_note","label":{"Urdu":"کیا آپ شادی شدہ ہیں: ${existing_marriage}","English":"Are you married: ${existing_marriage}","Roman Urdu":"Kya aap shaadi shuda hain: ${existing_marriage}"}},{"type":"note","name":"husband_name_note","label":{"Urdu":"شوہر کا نام: ${existing_husband_name}","English":"Husband's name: ${existing_husband_name}","Roman Urdu":"Shohar ka naam: ${existing_husband_name}"}},{"bind":{"required":"yes"},"type":"note","name":"ethnicity_note","label":{"Urdu":"قومیت: ${existing_ethnicity}","Roman Urdu":"Qomiat: ${existing_ethnicity}","English":"Ethnicity: ${existing_ethnicity}"}},{"type":"note","name":"address","label":{"Urdu":"موجودہ پتہ: ${existing_address1}, ${existing_landmark}, ${existing_union_councilname}, ${existing_townname}, ${existing_city_villagename}, ${existing_provincename}","English":"Current Address: ${existing_address1}, ${existing_landmark}, ${existing_union_councilname}, ${existing_townname}, ${existing_city_villagename}, ${existing_provincename}","Roman Urdu":"Mojooda Address: ${existing_address1}, ${existing_landmark}, ${existing_union_councilname}, ${existing_townname}, ${existing_city_villagename}, ${existing_provincename}"}},{"label":{"Urdu":"کیا آپ کا گھر کا پتہ بدلا ہے؟","English":"Has your home address changed?","Roman Urdu":"Kya aap ka ghar ka pata badla hai?"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}],"name":"address_change"},{"control":{"appearance":"minimal"},"name":"province","default":"${provider_province}","bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"label":{"Urdu":"صوبہ","Roman Urdu":"Suba","English":"Province"},"instance":{"openmrs_entity":"person_address","openmrs_entity_id":"stateProvince","openmrs_entity_parent":"usual_residence"},"type":"select one","children":[{"name":"kpk","label":{"Urdu":"خیبر پختون خواہ","English":"Khyber Pakhtunkhwa","Roman Urdu":"Khyber Pakhtunkhwa"}},{"name":"sindh","label":{"Urdu":"سندھ","English":"Sindh","Roman Urdu":"Sindh"}},{"name":"balochistan","label":{"Urdu":"بلوچستان","English":"Balochistan","Roman Urdu":"Balochistan"}},{"name":"punjab","label":{"Urdu":"پنجاب","English":"Punjab","Roman Urdu":"Punjab"}},{"name":"gilgit_baltistan","label":{"Urdu":"گلگت بلتستان","English":"Gilgit Baltistan","Roman Urdu":"Gilgit Baltistan"}},{"name":"kashmir","label":{"Urdu":"کشمیر","English":"Kashmir","Roman Urdu":"Kashmir"}},{"name":"fata","label":{"Urdu":"فاٹا","English":"FATA","Roman Urdu":"FATA"}},{"name":"out_of_country","label":{"Urdu":"ملک سے باہر","English":"Out of Country","Roman Urdu":"Mulk se baahir"}}]},{"control":{"appearance":"minimal"},"name":"city_village","choice_filter":"province=${province} or province='na'","default":"${provider_city}","bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"label":{"Urdu":"شہر","Roman Urdu":"Shehr","English":"City"},"itemset":"cities","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"cityVillage","openmrs_entity_parent":"usual_residence"},"type":"select one"},{"control":{"appearance":"minimal"},"name":"town","choice_filter":"(province=${province} and city=${city_village} ) or city='na'","bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"label":{"Urdu":"ٹاٰئون/ قصبہ/ بستی","Roman Urdu":"Town / Qasbah / Basti","English":"Town"},"itemset":"towns","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"town","openmrs_entity_parent":"usual_residence"},"type":"select one"},{"control":{"appearance":"minimal"},"name":"union_council","choice_filter":"(province=${province} and city=${city_village} and town=${town}) or town='na'","bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"label":{"Urdu":"یونین کونسل","Roman Urdu":"Union Council","English":"Union Council"},"itemset":"ucs","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"subTown","openmrs_entity_parent":"usual_residence"},"type":"select one"},{"bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"type":"text","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"address1","openmrs_entity_parent":"usual_residence"},"name":"address1","label":{"Urdu":"گھر کا پتہ","Roman Urdu":"Ghar ka pata","English":"Home Address"}},{"bind":{"relevant":"selected(${address_change}, 'yes')"},"type":"text","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"landmark","openmrs_entity_parent":"usual_residence"},"name":"landmark","label":{"Urdu":"گھر کے قریب کوئی مشہور جگہ","Roman Urdu":"Ghar ke qareeb koi mashoor jagah","English":"Land Mark"}},{"instance":{"openmrs_entity_id":"163277AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"geopoint","name":"center_gps","label":{"Urdu":"حاصل کردہ معلومات کی جگہ کے GPS کارڈینیٹس درج کریں","English":"Collect GPS coordinates of data entry location:","Roman Urdu":"Hasil karda malomaat ki jaga ke GPS coordinates darj karain"}},{"name":"reminders_approval","bind":{"required":"yes"},"label":{"Urdu":"کیا آپ اپنے اگلے دورے کی یاددہانی کے لیے SMS موصول کرنا چاہتی ہیں؟ ${existing_reminders_approval}","English":"Are you willing to receive SMS reminders for your next visit? ${existing_reminders_approval}","Roman Urdu":"Kya aap apnay aglay doray ki yaad-dihani ke liye SMS mausool karna chahti hain? ${existing_reminders_approval}"},"instance":{"openmrs_entity_id":"163089AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}]},{"bind":{"jr:constraintMsg":{"Urdu":"فون نمبر گیارہ ہندسوں پر مشتمل اور مندرجہ ذیل شکل میں ہونا چاہئے: *********03","English":"Phone number should be 11 digits in the following format: 03*********","Roman Urdu":"Phone number 11 hindason par mushtamil aur mundarja zail shakal main hona chahiey: 03*********"},"relevant":"${reminders_approval}='yes'","constraint":"regex(., '^03[0-9]{9}$')"},"type":"text","instance":{"openmrs_entity_id":"159635AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"contact_phone_number","label":{"Urdu":"موبائل نمبر: ${existing_contact_phone_number}","English":"Mobile Number: ${existing_contact_phone_number}","Roman Urdu":"Mobile Number: ${existing_contact_phone_number}"}},{"instance":{"openmrs_entity_id":"5272AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"label":{"Urdu":"کیا آپ حاملہ ہیں؟","English":"Are you pregnant?","Roman Urdu":"Kia aap haamla hain?"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}],"name":"pregnant"},{"name":"edd_lmp","bind":{"relevant":"selected (${pregnant}, 'yes')"},"label":{"Urdu":"کیا آپ کو اپنی پچھلی ماہواری کی تاریخ، زچگی کی متوقع تاریخ، یا الٹرا سائونڈ کا علم ہے؟","English":"Do you know your LMP, EDD or last Ultrasound information?","Roman Urdu":"Kya aap ko apni pichli mahwaari ki tareekh, zachgi ki mutawaqqa tareekh ya ultrasound ka ilm hai?"},"instance":{"openmrs_entity_id":"160697AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"5596AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"edd","label":{"Urdu":"زچگی کی متوقع تاریخ","Roman Urdu":"EDD","English":"EDD"}},{"instance":{"openmrs_code":"1427AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"lmp","label":{"Urdu":"پچھلی مہواری کی تاریخ","Roman Urdu":"LMP","English":"LMP"}},{"instance":{"openmrs_code":"159617AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ultrasound","label":{"Urdu":"الٹرا سائونڈ","Roman Urdu":"Ultrasound","English":"Ultrasound"}},{"instance":{"openmrs_code":"1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"none","label":{"Urdu":"کوئی بھی نہیں","Roman Urdu":"Koi bhi nahi","English":"None of the above"}}]},{"bind":{"jr:constraintMsg":{"Urdu":"زچگی کی متوقع تاریخ ماضی کی نہیں ہو سکتی","Roman Urdu":"Zachgi ki mutawaqqa tareekh maazi ki nahi hosakti","English":"EDD cannot be in the past"},"relevant":"selected (${edd_lmp}, 'edd')","constraint":".>=${today}"},"type":"date","name":"edd","label":{"Urdu":"زچگی کی متوقع تاریخ","Roman Urdu":"Zachgi ki mutawaqqa tareekh","English":"EDD"}},{"bind":{"jr:constraintMsg":{"Urdu":"پچھلی ماہواری کی تاریخ مستقبل کی نہیں ہوسکتی","Roman Urdu":"Pichli mahwaari ki tareekh mustaqbil ki nahi hosakti","English":"LMP cannot be in the future"},"relevant":"selected (${edd_lmp}, 'lmp')","constraint":".<=${today}"},"type":"date","name":"lmp","label":{"Urdu":"پچھلی ماہواری کی تاریخ","Roman Urdu":"Pichli mahwaari ki tareekh","English":"LMP"}},{"bind":{"relevant":"selected (${edd_lmp}, 'ultrasound')"},"type":"date","instance":{"openmrs_entity_id":"163165AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"ultrasound_date","label":{"Urdu":"الٹرا سائونڈ کی تاریخ","English":"Ultrasound Date","Roman Urdu":"Ultrasound ki tareekh"}},{"bind":{"relevant":"selected (${edd_lmp}, 'ultrasound')"},"type":"integer","name":"ultrasound_weeks","label":{"Urdu":"الٹرا سائونڈ کی مدد سے حمل کی مدت [ہفتوں میں]","Roman Urdu":"Ultrasound ki madad se hamal ki muddat (hafton me)","English":"Gestational age determined by ultrasound"}},{"bind":{"calculate":"date(${lmp}+280)"},"type":"calculate","name":"edd_calc_lmp"},{"bind":{"calculate":"date((280-(${ultrasound_weeks}*7)+${ultrasound_date} ))"},"type":"calculate","name":"edd_calc_ultrasound"},{"bind":{"calculate":"format-date(${edd_calc_lmp}, '%Y-%n-%e')"},"type":"calculate","name":"edd_calc_lmp_formatted"},{"bind":{"calculate":"format-date(${edd_calc_ultrasound}, '%Y-%n-%e')"},"type":"calculate","name":"edd_calc_ultrasound_formatted"},{"bind":{"calculate":"date(${edd}-280)"},"type":"calculate","name":"lmp_calc_edd"},{"bind":{"calculate":"date(${ultrasound_date}-(${ultrasound_weeks}*7))"},"type":"calculate","name":"lmp_calc_ultrasound"},{"bind":{"calculate":"format-date(${lmp_calc_edd}, '%Y-%n-%e')"},"type":"calculate","name":"lmp_calc_edd_formatted"},{"bind":{"calculate":"format-date(${lmp_calc_ultrasound}, '%Y-%n-%e')"},"type":"calculate","name":"lmp_calc_ultrasound_formatted"},{"bind":{"calculate":"if(${edd_lmp}='lmp',${edd_calc_lmp_formatted},if(${edd_lmp}='edd',${edd} ,if(${edd_lmp}='ultrasound',${edd_calc_ultrasound_formatted},'')))"},"type":"calculate","name":"final_edd","instance":{"openmrs_entity_id":"5596AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"bind":{"calculate":"if(${edd_lmp}='lmp',${lmp},if(${edd_lmp}='edd',${lmp_calc_edd_formatted} ,if(${edd_lmp}='ultrasound',${lmp_calc_ultrasound_formatted},'')))"},"type":"calculate","name":"final_lmp","instance":{"openmrs_entity_id":"1427AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"bind":{"calculate":"int((${vaccination_date} - (${edd}-280))div7)"},"type":"calculate","name":"ga_edd"},{"bind":{"calculate":"int((${vaccination_date} - ${lmp})div7)"},"type":"calculate","name":"ga_lmp"},{"bind":{"calculate":"int((${vaccination_date} -(${ultrasound_date}-(${ultrasound_weeks}*7)))div7)"},"type":"calculate","name":"ga_ult"},{"bind":{"relevant":"selected (${pregnant}, 'yes')"},"type":"note","name":"final_edd_note","label":{"Urdu":"${final_edd} :زچگی کی متوقع تاریخ","Roman Urdu":"Zachgi ki mutawaqqa tareekh: ${final_edd}","English":"EDD: ${final_edd}"}},{"bind":{"relevant":"selected (${pregnant}, 'yes')"},"type":"note","name":"final_lmp_note","label":{"Urdu":"پچھلی ماہواری کی تاریخ: ${final_edd}","Roman Urdu":"Pichli mahwaari ki tareekh: ${final_lmp}","English":"LMP: ${final_lmp}"}},{"bind":{"calculate":"if(${edd_lmp}='lmp',${ga_lmp},if(${edd_lmp}='edd',${ga_edd} ,if(${edd_lmp}='ultrasound',${ga_ult},'')))"},"type":"calculate","name":"final_ga","instance":{"openmrs_entity_id":"163166AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"bind":{"relevant":"selected (${pregnant}, 'yes')"},"type":"note","name":"final_ga_note","label":{"Urdu":"حمل کی مُدّت: {final_ga}$ ہفتے","Roman Urdu":"Hamal ki muddat: ${final_ga} weeks","English":"GA: ${final_ga} weeks"}},{"bind":{"relevant":"${e_tt1} != ''"},"type":"note","name":"tt1_note","label":{"Urdu":"${e_tt1}","Roman Urdu":"${e_tt1}","English":"${e_tt1}"}},{"bind":{"relevant":"${e_tt2} != ''"},"type":"note","name":"tt2_note","label":{"Urdu":"${e_tt2}","Roman Urdu":"${e_tt2}","English":"${e_tt2}"}},{"bind":{"relevant":"${e_tt3} != ''"},"type":"note","name":"tt3_note","label":{"Urdu":"${e_tt3}","Roman Urdu":"${e_tt3}","English":"${e_tt3}"}},{"bind":{"relevant":"${e_tt4} != ''"},"type":"note","name":"tt4_note","label":{"Urdu":"${e_tt4}","Roman Urdu":"${e_tt4}","English":"${e_tt4}"}},{"name":"vaccines","choice_filter":"name != if( ${e_tt1} != '', 'TT1' , '') and \nname != if( ${e_tt2} != '', 'TT2' , '') and \nname != if( ${e_tt3} != '', 'TT3' , '') and \nname != if( ${e_tt4} != '', 'TT4' , '') and \nname != if( ${e_tt5} != '', 'TT5' , '')","default":"minimal","label":{"Urdu":"پچھلی تاریخ جب کسی اور سینٹر پر ٹیکہ لگوایا گیا یا قطرے پلائے گئے","Roman Urdu":"Pichli tareekh jab kissi aur center par teeka lagwaya gaya ya katray pilaey gaye","English":"Retro vaccines"},"itemset":"vaccines","instance":{"openmrs_entity":"concept","openmrs_entity_id":"984AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1421AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"select all that apply"},{"bind":{"jr:constraintMsg":{"Urdu":"درج کردہ معلومات درست نہیں","English":"Invalid data entered","Roman Urdu":"Darj karda maaloomaat durust nahi"},"relevant":"selected(${vaccines},'TT1')","constraint":"(.<=${today} and .>=${existing_birth_date})"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tt1_retro","label":{"Urdu":"ٹی ٹی 1","Roman Urdu":"TT1","English":"TT1"}},{"bind":{"relevant":"selected(${vaccines},'TT1')","calculate":"1"},"type":"calculate","name":"tt_1_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"درج کردہ معلومات درست نہیں","English":"Invalid data entered","Roman Urdu":"Darj karda maaloomaat durust nahi"},"relevant":"selected(${vaccines},'TT2')","constraint":"(.<=${today} and .>=${tt1_retro} and .>=${existing_birth_date} and ((selected(${vaccines}, 'TT1'))))"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tt2_retro","label":{"Urdu":"ٹی ٹی 2","Roman Urdu":"TT2","English":"TT2"}},{"bind":{"relevant":"selected(${vaccines},'TT2')","calculate":"2"},"type":"calculate","name":"tt_2_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"درج کردہ معلومات درست نہیں","English":"Invalid data entered","Roman Urdu":"Darj karda maaloomaat durust nahi"},"relevant":"selected(${vaccines},'TT3')","constraint":"(.<=${today} and .>=${tt2_retro} and .>=${existing_birth_date} and ((selected(${vaccines}, 'TT2'))))"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tt3_retro","label":{"Urdu":"ٹی ٹی 3","Roman Urdu":"TT3","English":"TT3"}},{"bind":{"relevant":"selected(${vaccines},'TT3')","calculate":"3"},"type":"calculate","name":"tt_3_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"درج کردہ معلومات درست نہیں","English":"Invalid data entered","Roman Urdu":"Darj karda maaloomaat durust nahi"},"relevant":"selected(${vaccines},'TT4')","constraint":"(.<=${today} and .>=${tt3_retro} and .>=${existing_birth_date} and ((selected(${vaccines}, 'TT3'))))"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tt4_retro","label":{"Urdu":"ٹی ٹی 4","Roman Urdu":"TT4","English":"TT4"}},{"bind":{"relevant":"selected(${vaccines},'TT4')","calculate":"4"},"type":"calculate","name":"tt_4_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"name":"vaccines_2","choice_filter":"name != if( ${e_tt1} != '', 'TT1' , '') and \nname != if( ${e_tt2} != '', 'TT2' , '') and \nname != if( ${e_tt3} != '', 'TT3' , '') and \nname != if( ${e_tt4} != '', 'TT4' , '') and \nname != if( ${e_tt5} != '', 'TT5' , '') and \nname != if( selected(${vaccines}, 'TT1') , 'TT1', '') and \nname != if( selected(${vaccines}, 'TT2') , 'TT2', '') and \nname != if( selected(${vaccines}, 'TT3') , 'TT3', '') and \nname != if( selected(${vaccines}, 'TT4') , 'TT4', '') and \nname != if( selected(${vaccines}, 'TT5') , 'TT5', '')","bind":{"required":"yes"},"label":{"Urdu":"آج کون کون سی ویکسین دی گئی ہیں؟","Roman Urdu":"Aaj kon kon si vaccine di gai hain?","English":"Vaccine administered today"},"itemset":"vaccines","instance":{"openmrs_entity":"concept","openmrs_entity_id":"984AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1441AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"select all that apply"},{"bind":{"jr:constraintMsg":{"Urdu":"یہ تاریخ مستقبل کی نہیں ہوسکتی","English":"This date cannot be in the future","Roman Urdu":"Ye tareekh mustaqbil ki nahi hosakti"},"required":"yes","constraint":".<=${today}"},"type":"date","instance":{"openmrs_entity_id":"encounter_date","openmrs_entity":"encounter"},"name":"vaccination_date","label":{"Urdu":"تاریخ","English":"Vaccination date","Roman Urdu":"Tareekh"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'TT1'),${vaccination_date},'')"},"type":"calculate","name":"tt1","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2},'TT1')","calculate":"1"},"type":"calculate","name":"tt_1_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'TT2'),${vaccination_date},'')"},"type":"calculate","name":"tt2","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2},'TT2')","calculate":"2"},"type":"calculate","name":"tt_2_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'TT3'),${vaccination_date},'')"},"type":"calculate","name":"tt3","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2},'TT3')","calculate":"3"},"type":"calculate","name":"tt_3_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'TT4'),${vaccination_date},'')"},"type":"calculate","name":"tt4","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2},'TT4')","calculate":"4"},"type":"calculate","name":"tt_4_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'TT5'),${vaccination_date},'')"},"type":"calculate","name":"tt5","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2},'TT5')","calculate":"5"},"type":"calculate","name":"tt_5_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"control":{"bodyless":true},"type":"group","children":[{"bind":{"readonly":"true()","calculate":"concat('uuid:', uuid())"},"type":"calculate","name":"instanceID"}],"name":"meta"}]} \ No newline at end of file diff --git a/opensrp-register/src/test/resources/form/woman_followup/form.xml b/opensrp-register/src/test/resources/form/woman_followup/form.xml deleted file mode 100644 index 65b3302e06..0000000000 --- a/opensrp-register/src/test/resources/form/woman_followup/form.xml +++ /dev/null @@ -1,1495 +0,0 @@ -
- - -

خواتین فالواپ رجسٹر برائے ٹیکاجات - Woman TT Follow Up Form

-
-
- - کیا آپ کا گھر کا پتہ بدلا ہے؟ - Kya aap ka ghar ka pata badla hai? - - Has your home address changed? -
- - -
-
-
-
- - کیا آپ اپنے اگلے دورے کی یاددہانی کے لیے SMS موصول کرنا چاہتی ہیں؟ - - Kya aap apnay aglay doray ki yaad-dihani ke liye SMS mausool karna chahti hain? - - - Are you willing to receive SMS reminders for your next visit? - - * -
- - -
-
-
-
- - کیا آپ حاملہ ہیں؟ - Kia aap haamla hain? - - Are you pregnant? -
- - -
-
-
-
- - کیا آپ کو اپنی پچھلی ماہواری کی تاریخ، زچگی کی متوقع تاریخ، یا الٹرا سائونڈ کا علم ہے؟ - Kya aap ko apni pichli mahwaari ki tareekh, zachgi ki mutawaqqa tareekh ya ultrasound ka ilm hai? - - Do you know your LMP, EDD or last Ultrasound information? -
- - - - -
-
-
-
- - پچھلی تاریخ جب کسی اور سینٹر پر ٹیکہ لگوایا گیا یا قطرے پلائے گئے - Pichli tareekh jab kissi aur center par teeka lagwaya gaya ya katray pilaey gaye - - Retro vaccines -
- - - ٹی ٹی 1 - TT1 - 84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - TT1 - ٹی ٹی 2 - TT2 - 84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - TT2 - ٹی ٹی 3 - TT3 - 84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - TT3 - ٹی ٹی 4 - TT4 - 84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - TT4 - ٹی ٹی 5 - TT5 - 84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - TT5 -
-
-
-
- - آج کون کون سی ویکسین دی گئی ہیں؟ - Aaj kon kon si vaccine di gai hain? - - Vaccine administered today - * -
- - - ٹی ٹی 1 - TT1 - 84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - TT1 - ٹی ٹی 2 - TT2 - 84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - TT2 - ٹی ٹی 3 - TT3 - 84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - TT3 - ٹی ٹی 4 - TT4 - 84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - TT4 - ٹی ٹی 5 - TT5 - 84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - TT5 -
-
-
- -
diff --git a/opensrp-register/src/test/resources/form/woman_followup/form_definition.json b/opensrp-register/src/test/resources/form/woman_followup/form_definition.json deleted file mode 100644 index 1cf573ab06..0000000000 --- a/opensrp-register/src/test/resources/form/woman_followup/form_definition.json +++ /dev/null @@ -1,377 +0,0 @@ -{ - "form_data_definition_version" : "1", - "form" : { - "bind_type" : "pkwoman", - "default_bind_path" : "/model/instance/Woman_TT_Followup_Form/", - "fields" : [ { - "name" : "id", - "shouldLoadValue" : true - }, { - "name" : "provider_uc", - "bind" : "/model/instance/Woman_TT_Followup_Form/provider_uc", - "shouldLoadValue" : true - }, { - "name" : "provider_town", - "bind" : "/model/instance/Woman_TT_Followup_Form/provider_town", - "shouldLoadValue" : true - }, { - "name" : "provider_city", - "bind" : "/model/instance/Woman_TT_Followup_Form/provider_city", - "shouldLoadValue" : true - }, { - "name" : "provider_province", - "bind" : "/model/instance/Woman_TT_Followup_Form/provider_province", - "shouldLoadValue" : true - }, { - "name" : "existing_landmark", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_landmark", - "shouldLoadValue" : true - }, { - "name": "existing_address1", - "bind": "/model/instance/Woman_TT_Followup_Form/existing_address1", - "shouldLoadValue" : true - }, { - "name" : "existing_union_council", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_union_council", - "shouldLoadValue" : true - }, { - "name" : "existing_town", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_town", - "shouldLoadValue" : true - }, { - "name" : "existing_city_village", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_city_village", - "shouldLoadValue" : true - }, { - "name" : "existing_province", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_province", - "shouldLoadValue" : true - }, { - "name" : "existing_union_councilname", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_union_councilname", - "shouldLoadValue" : true - }, { - "name" : "existing_townname", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_townname", - "shouldLoadValue" : true - }, { - "name" : "existing_city_villagename", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_city_villagename", - "shouldLoadValue" : true - }, { - "name" : "existing_provincename", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_provincename", - "shouldLoadValue" : true - }, { - "name" : "existing_first_name", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_first_name", - "shouldLoadValue" : true - }, { - "name" : "existing_last_name", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_last_name", - "shouldLoadValue" : true - }, { - "name" : "existing_father_name", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_father_name", - "shouldLoadValue" : true - }, { - "name" : "existing_husband_name", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_husband_name", - "shouldLoadValue" : true - }, { - "name" : "existing_marriage", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_marriage", - "shouldLoadValue" : true - }, { - "name" : "existing_birthdate", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_birth_date", - "shouldLoadValue" : true - }, { - "name" : "existing_gender", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_gender", - "shouldLoadValue" : true - }, { - "name" : "existing_ethnicity", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_ethnicity", - "shouldLoadValue" : true - }, { - "name" : "existing_client_reg_date", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_client_reg_date", - "shouldLoadValue" : true - }, { - "name" : "existing_program_client_id", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_program_client_id", - "shouldLoadValue" : true - }, { - "name" : "existing_epi_card_number", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_epi_card_number", - "shouldLoadValue" : true - }, { - "name" : "existing_reminders_approval", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_reminders_approval" - }, { - "name" : "existing_contact_phone_number", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_contact_phone_number" - }, { - "name" : "e_tt1", - "bind" : "/model/instance/Woman_TT_Followup_Form/e_tt1", - "shouldLoadValue" : true - }, { - "name" : "e_tt2", - "bind" : "/model/instance/Woman_TT_Followup_Form/e_tt2", - "shouldLoadValue" : true - }, { - "name" : "e_tt3", - "bind" : "/model/instance/Woman_TT_Followup_Form/e_tt3", - "shouldLoadValue" : true - }, { - "name" : "e_tt4", - "bind" : "/model/instance/Woman_TT_Followup_Form/e_tt4", - "shouldLoadValue" : true - }, { - "name" : "e_tt5", - "bind" : "/model/instance/Woman_TT_Followup_Form/e_tt5", - "shouldLoadValue" : true - }, { - "name" : "provider_id", - "bind" : "/model/instance/Woman_TT_Followup_Form/provider_id", - "shouldLoadValue" : true - }, { - "name" : "provider_location_id", - "bind" : "/model/instance/Woman_TT_Followup_Form/provider_location_id", - "shouldLoadValue" : true - }, { - "name" : "provider_location_name", - "bind" : "/model/instance/Woman_TT_Followup_Form/provider_location_name", - "shouldLoadValue" : true - }, { - "name" : "provider_location_note", - "bind" : "/model/instance/Woman_TT_Followup_Form/provider_location_note" - }, { - "name" : "start", - "bind" : "/model/instance/Woman_TT_Followup_Form/start" - }, { - "name" : "end", - "bind" : "/model/instance/Woman_TT_Followup_Form/end" - }, { - "name" : "today", - "bind" : "/model/instance/Woman_TT_Followup_Form/today" - }, { - "name" : "deviceid", - "bind" : "/model/instance/Woman_TT_Followup_Form/deviceid" - }, { - "name" : "subscriberid", - "bind" : "/model/instance/Woman_TT_Followup_Form/subscriberid" - }, { - "name" : "simserial", - "bind" : "/model/instance/Woman_TT_Followup_Form/simserial" - }, { - "name" : "phonenumber", - "bind" : "/model/instance/Woman_TT_Followup_Form/phonenumber" - }, { - "name" : "client_reg_date_note", - "bind" : "/model/instance/Woman_TT_Followup_Form/client_reg_date_note" - }, { - "name" : "program_client_id_note", - "bind" : "/model/instance/Woman_TT_Followup_Form/program_client_id_note" - }, { - "name" : "epi_card_number_note", - "bind" : "/model/instance/Woman_TT_Followup_Form/epi_card_number_note" - }, { - "name" : "first_name_note", - "bind" : "/model/instance/Woman_TT_Followup_Form/first_name_note" - }, { - "name" : "last_name_note", - "bind" : "/model/instance/Woman_TT_Followup_Form/last_name_note" - }, { - "name" : "client_age", - "bind" : "/model/instance/Woman_TT_Followup_Form/client_age" - }, { - "name" : "member_birth_date_note", - "bind" : "/model/instance/Woman_TT_Followup_Form/member_birth_date_note" - }, { - "name" : "gender_note", - "bind" : "/model/instance/Woman_TT_Followup_Form/gender_note" - }, { - "name" : "father_name_note", - "bind" : "/model/instance/Woman_TT_Followup_Form/father_name_note" - }, { - "name" : "marriage_note", - "bind" : "/model/instance/Woman_TT_Followup_Form/marriage_note" - }, { - "name" : "husband_name_note", - "bind" : "/model/instance/Woman_TT_Followup_Form/husband_name_note" - }, { - "name" : "ethnicity_note", - "bind" : "/model/instance/Woman_TT_Followup_Form/ethnicity_note" - }, { - "name" : "address", - "bind" : "/model/instance/Woman_TT_Followup_Form/address" - }, { - "name" : "address_change", - "bind" : "/model/instance/Woman_TT_Followup_Form/address_change" - }, { - "name" : "province", - "bind" : "/model/instance/Woman_TT_Followup_Form/province" - }, { - "name" : "city_village", - "bind" : "/model/instance/Woman_TT_Followup_Form/city_village" - }, { - "name" : "town", - "bind" : "/model/instance/Woman_TT_Followup_Form/town" - }, { - "name" : "union_council", - "bind" : "/model/instance/Woman_TT_Followup_Form/union_council" - }, { - "name" : "address1", - "bind" : "/model/instance/Woman_TT_Followup_Form/address1" - }, { - "name" : "landmark", - "bind" : "/model/instance/Woman_TT_Followup_Form/landmark" - }, { - "name" : "center_gps", - "bind" : "/model/instance/Woman_TT_Followup_Form/center_gps" - }, { - "name" : "reminders_approval", - "bind" : "/model/instance/Woman_TT_Followup_Form/reminders_approval" - }, { - "name" : "contact_phone_number", - "bind" : "/model/instance/Woman_TT_Followup_Form/contact_phone_number" - }, { - "name" : "pregnant", - "bind" : "/model/instance/Woman_TT_Followup_Form/pregnant" - }, { - "name" : "edd_lmp", - "bind" : "/model/instance/Woman_TT_Followup_Form/edd_lmp" - }, { - "name" : "edd", - "bind" : "/model/instance/Woman_TT_Followup_Form/edd" - }, { - "name" : "lmp", - "bind" : "/model/instance/Woman_TT_Followup_Form/lmp" - }, { - "name" : "ultrasound_date", - "bind" : "/model/instance/Woman_TT_Followup_Form/ultrasound_date" - }, { - "name" : "ultrasound_weeks", - "bind" : "/model/instance/Woman_TT_Followup_Form/ultrasound_weeks" - }, { - "name" : "edd_calc_lmp", - "bind" : "/model/instance/Woman_TT_Followup_Form/edd_calc_lmp" - }, { - "name" : "edd_calc_ultrasound", - "bind" : "/model/instance/Woman_TT_Followup_Form/edd_calc_ultrasound" - }, { - "name" : "edd_calc_lmp_formatted", - "bind" : "/model/instance/Woman_TT_Followup_Form/edd_calc_lmp_formatted" - }, { - "name" : "edd_calc_ultrasound_formatted", - "bind" : "/model/instance/Woman_TT_Followup_Form/edd_calc_ultrasound_formatted" - }, { - "name" : "lmp_calc_edd", - "bind" : "/model/instance/Woman_TT_Followup_Form/lmp_calc_edd" - }, { - "name" : "lmp_calc_ultrasound", - "bind" : "/model/instance/Woman_TT_Followup_Form/lmp_calc_ultrasound" - }, { - "name" : "lmp_calc_edd_formatted", - "bind" : "/model/instance/Woman_TT_Followup_Form/lmp_calc_edd_formatted" - }, { - "name" : "lmp_calc_ultrasound_formatted", - "bind" : "/model/instance/Woman_TT_Followup_Form/lmp_calc_ultrasound_formatted" - }, { - "name" : "final_edd", - "bind" : "/model/instance/Woman_TT_Followup_Form/final_edd" - }, { - "name" : "final_lmp", - "bind" : "/model/instance/Woman_TT_Followup_Form/final_lmp" - }, { - "name" : "ga_edd", - "bind" : "/model/instance/Woman_TT_Followup_Form/ga_edd" - }, { - "name" : "ga_lmp", - "bind" : "/model/instance/Woman_TT_Followup_Form/ga_lmp" - }, { - "name" : "ga_ult", - "bind" : "/model/instance/Woman_TT_Followup_Form/ga_ult" - }, { - "name" : "final_edd_note", - "bind" : "/model/instance/Woman_TT_Followup_Form/final_edd_note" - }, { - "name" : "final_lmp_note", - "bind" : "/model/instance/Woman_TT_Followup_Form/final_lmp_note" - }, { - "name" : "final_ga", - "bind" : "/model/instance/Woman_TT_Followup_Form/final_ga" - }, { - "name" : "final_ga_note", - "bind" : "/model/instance/Woman_TT_Followup_Form/final_ga_note" - }, { - "name" : "vaccines", - "bind" : "/model/instance/Woman_TT_Followup_Form/vaccines" - }, { - "name" : "tt1_retro", - "bind" : "/model/instance/Woman_TT_Followup_Form/tt1_retro" - }, { - "name" : "tt_1_dose", - "bind" : "/model/instance/Woman_TT_Followup_Form/tt_1_dose" - }, { - "name" : "tt2_retro", - "bind" : "/model/instance/Woman_TT_Followup_Form/tt2_retro" - }, { - "name" : "tt_2_dose", - "bind" : "/model/instance/Woman_TT_Followup_Form/tt_2_dose" - }, { - "name" : "tt3_retro", - "bind" : "/model/instance/Woman_TT_Followup_Form/tt3_retro" - }, { - "name" : "tt_3_dose", - "bind" : "/model/instance/Woman_TT_Followup_Form/tt_3_dose" - }, { - "name" : "tt4_retro", - "bind" : "/model/instance/Woman_TT_Followup_Form/tt4_retro" - }, { - "name" : "tt_4_dose", - "bind" : "/model/instance/Woman_TT_Followup_Form/tt_4_dose" - }, { - "name" : "vaccines_2", - "bind" : "/model/instance/Woman_TT_Followup_Form/vaccines_2" - }, { - "name" : "vaccination_date", - "bind" : "/model/instance/Woman_TT_Followup_Form/vaccination_date" - }, { - "name" : "tt1", - "bind" : "/model/instance/Woman_TT_Followup_Form/tt1" - }, { - "name" : "tt_1_dose_today", - "bind" : "/model/instance/Woman_TT_Followup_Form/tt_1_dose_today" - }, { - "name" : "tt2", - "bind" : "/model/instance/Woman_TT_Followup_Form/tt2" - }, { - "name" : "tt_2_dose_today", - "bind" : "/model/instance/Woman_TT_Followup_Form/tt_2_dose_today" - }, { - "name" : "tt3", - "bind" : "/model/instance/Woman_TT_Followup_Form/tt3" - }, { - "name" : "tt_3_dose_today", - "bind" : "/model/instance/Woman_TT_Followup_Form/tt_3_dose_today" - }, { - "name" : "tt4", - "bind" : "/model/instance/Woman_TT_Followup_Form/tt4" - }, { - "name" : "tt_4_dose_today", - "bind" : "/model/instance/Woman_TT_Followup_Form/tt_4_dose_today" - }, { - "name" : "tt5", - "bind" : "/model/instance/Woman_TT_Followup_Form/tt5" - }, { - "name" : "tt_5_dose_today", - "bind" : "/model/instance/Woman_TT_Followup_Form/tt_5_dose_today" - }, { - "name" : "instanceID", - "bind" : "/model/instance/Woman_TT_Followup_Form/meta/instanceID" - } ] - } -} \ No newline at end of file diff --git a/opensrp-register/src/test/resources/form/woman_followup/model.xml b/opensrp-register/src/test/resources/form/woman_followup/model.xml deleted file mode 100644 index 67f43ce94b..0000000000 --- a/opensrp-register/src/test/resources/form/woman_followup/model.xml +++ /dev/null @@ -1,1645 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - ${provider_province} - ${provider_city} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - minimal - - - - - - - - - - - - - - - - - - - - - - - - - - - - - static_instance-provinces-0 - kpk - - - static_instance-provinces-1 - sindh - - - static_instance-provinces-2 - balochistan - - - static_instance-provinces-3 - punjab - - - static_instance-provinces-4 - gilgit_baltistan - - - static_instance-provinces-5 - kashmir - - - static_instance-provinces-6 - fata - - - static_instance-provinces-7 - out_of_country - - - - - - - static_instance-ucs-0 - sindh - karachi - korangi - bilal_colony - - - static_instance-ucs-1 - sindh - karachi - korangi - nasir_colony - - - static_instance-ucs-2 - sindh - karachi - korangi - chakra_goth - - - static_instance-ucs-3 - sindh - karachi - korangi - mustafa_taj_colony - - - static_instance-ucs-4 - sindh - karachi - korangi - hundred_quarters - - - static_instance-ucs-5 - sindh - karachi - korangi - gulzar_colony - - - static_instance-ucs-6 - sindh - karachi - korangi - korangi_sector_33 - - - static_instance-ucs-7 - sindh - karachi - korangi - zaman_town - - - static_instance-ucs-8 - sindh - karachi - korangi - hasrat_mohani_colony - - - static_instance-ucs-9 - sindh - karachi - baldia - gulshan_e_ghazi - - - static_instance-ucs-10 - sindh - karachi - baldia - ittehad_town - - - static_instance-ucs-11 - sindh - karachi - baldia - islam_nagar - - - static_instance-ucs-12 - sindh - karachi - baldia - nai_abadi - - - static_instance-ucs-13 - sindh - karachi - baldia - saeedabad - - - static_instance-ucs-14 - sindh - karachi - baldia - muslim_mujahid_colony - - - static_instance-ucs-15 - sindh - karachi - baldia - muhajir_camp - - - static_instance-ucs-16 - sindh - karachi - baldia - rasheedabad - - - static_instance-ucs-17 - sindh - karachi - bin_qasim - ibrahim_hyderi - - - static_instance-ucs-18 - sindh - karachi - bin_qasim - rehri - - - static_instance-ucs-19 - sindh - karachi - bin_qasim - cattle_colony - - - static_instance-ucs-20 - sindh - karachi - bin_qasim - qaidabad - - - static_instance-ucs-21 - sindh - karachi - bin_qasim - landhi_colony - - - static_instance-ucs-22 - sindh - karachi - bin_qasim - gulshan_e_hadeed - - - static_instance-ucs-23 - sindh - karachi - bin_qasim - gaghar - - - static_instance-ucs-24 - sindh - karachi - gadap - murad_memon_goth - - - static_instance-ucs-25 - sindh - karachi - gadap - darsano_chana - - - static_instance-ucs-26 - sindh - karachi - gadap - gujro - - - static_instance-ucs-27 - sindh - karachi - gadap - songal - - - static_instance-ucs-28 - sindh - karachi - gadap - maymarabad - - - static_instance-ucs-29 - sindh - karachi - gadap - yousuf_goth - - - static_instance-ucs-30 - sindh - karachi - gadap - manghopir - - - static_instance-ucs-31 - sindh - karachi - gulberg - azizabad - - - static_instance-ucs-32 - sindh - karachi - gulberg - karimabad - - - static_instance-ucs-33 - sindh - karachi - gulberg - aisha_manzil - - - static_instance-ucs-34 - sindh - karachi - gulberg - ancholi - - - static_instance-ucs-35 - sindh - karachi - gulberg - naseerabad - - - static_instance-ucs-36 - sindh - karachi - gulberg - yaseenabad - - - static_instance-ucs-37 - sindh - karachi - gulberg - water_pump - - - static_instance-ucs-38 - sindh - karachi - gulberg - shafiq_mill_colony - - - static_instance-ucs-39 - sindh - karachi - gulshan - delhi_mercantile_society - - - static_instance-ucs-40 - sindh - karachi - gulshan - civic_centre - - - static_instance-ucs-41 - sindh - karachi - gulshan - pir_ilahi_buksh_colony - - - static_instance-ucs-42 - sindh - karachi - gulshan - essa_nagri - - - static_instance-ucs-43 - sindh - karachi - gulshan - gulshan_e_iqbal - - - static_instance-ucs-44 - sindh - karachi - gulshan - gillani_railway_station - - - static_instance-ucs-45 - sindh - karachi - gulshan - shanti_nagar - - - static_instance-ucs-46 - sindh - karachi - gulshan - jamali_colony - - - static_instance-ucs-47 - sindh - karachi - gulshan - gulshan_e_iqbal_ii - - - static_instance-ucs-48 - sindh - karachi - gulshan - pehlwan_goth - - - static_instance-ucs-49 - sindh - karachi - gulshan - matrovil_colony - - - static_instance-ucs-50 - sindh - karachi - gulshan - gulzar_e_hijri - - - static_instance-ucs-51 - sindh - karachi - gulshan - safooran_goth - - - static_instance-ucs-52 - sindh - karachi - jamshed - akhtar_colony - - - static_instance-ucs-53 - sindh - karachi - jamshed - manzoor_colony - - - static_instance-ucs-54 - sindh - karachi - jamshed - azam_basti - - - static_instance-ucs-55 - sindh - karachi - jamshed - chanesar_goth - - - static_instance-ucs-56 - sindh - karachi - jamshed - mahmudabad - - - static_instance-ucs-57 - sindh - karachi - jamshed - pechs - - - static_instance-ucs-58 - sindh - karachi - jamshed - pechs_ii - - - static_instance-ucs-59 - sindh - karachi - jamshed - jut_line - - - static_instance-ucs-60 - sindh - karachi - jamshed - central_jacob_lines - - - static_instance-ucs-61 - sindh - karachi - jamshed - jamshed_quarters - - - static_instance-ucs-62 - sindh - karachi - jamshed - garden_east - - - static_instance-ucs-63 - sindh - karachi - jamshed - soldier_bazar - - - static_instance-ucs-64 - sindh - karachi - jamshed - pakistan_quarters - - - static_instance-ucs-65 - sindh - karachi - kiamari - bhutta_village - - - static_instance-ucs-66 - sindh - karachi - kiamari - sultanabad - - - static_instance-ucs-67 - sindh - karachi - kiamari - kiamari_uc - - - static_instance-ucs-68 - sindh - karachi - kiamari - baba_bhit - - - static_instance-ucs-69 - sindh - karachi - kiamari - machar_colony - - - static_instance-ucs-70 - sindh - karachi - kiamari - maripur - - - static_instance-ucs-71 - sindh - karachi - kiamari - shershah - - - static_instance-ucs-72 - sindh - karachi - kiamari - gabo_pat - - - static_instance-ucs-73 - sindh - karachi - landhi - muzafarabad - - - static_instance-ucs-74 - sindh - karachi - landhi - muslimabad - - - static_instance-ucs-75 - sindh - karachi - landhi - dawood_chowrangi - - - static_instance-ucs-76 - sindh - karachi - landhi - moinabad - - - static_instance-ucs-77 - sindh - karachi - landhi - sharafi_goth - - - static_instance-ucs-78 - sindh - karachi - landhi - bhutto_nagar - - - static_instance-ucs-79 - sindh - karachi - landhi - khawaja_ajmeer_colony - - - static_instance-ucs-80 - sindh - karachi - landhi - landhi_uc - - - static_instance-ucs-81 - sindh - karachi - landhi - awami_colony - - - static_instance-ucs-82 - sindh - karachi - landhi - burmee_colony - - - static_instance-ucs-83 - sindh - karachi - landhi - korangi_uc - - - static_instance-ucs-84 - sindh - karachi - landhi - sherabad - - - static_instance-ucs-85 - sindh - karachi - liaquatabad - rizvia_society - - - static_instance-ucs-86 - sindh - karachi - liaquatabad - firdous_colony - - - static_instance-ucs-87 - sindh - karachi - liaquatabad - super_market - - - static_instance-ucs-88 - sindh - karachi - liaquatabad - dak_khana - - - static_instance-ucs-89 - sindh - karachi - liaquatabad - qasimabad - - - static_instance-ucs-90 - sindh - karachi - liaquatabad - bandhani_colony - - - static_instance-ucs-91 - sindh - karachi - liaquatabad - sharifabad - - - static_instance-ucs-92 - sindh - karachi - liaquatabad - commercial_area - - - static_instance-ucs-93 - sindh - karachi - liaquatabad - mujahid_colony - - - static_instance-ucs-94 - sindh - karachi - liaquatabad - nazimabad - - - static_instance-ucs-95 - sindh - karachi - liaquatabad - abbasi_shaheed - - - static_instance-ucs-96 - sindh - karachi - lyari - agra_taj_colony - - - static_instance-ucs-97 - sindh - karachi - lyari - daryaabad - - - static_instance-ucs-98 - sindh - karachi - lyari - nawabad - - - static_instance-ucs-99 - sindh - karachi - lyari - khada_memon_society - - - static_instance-ucs-100 - sindh - karachi - lyari - baghdadi - - - static_instance-ucs-101 - sindh - karachi - lyari - shah_baig_line - - - static_instance-ucs-102 - sindh - karachi - lyari - bihar_colony - - - static_instance-ucs-103 - sindh - karachi - lyari - ragiwara - - - static_instance-ucs-104 - sindh - karachi - lyari - singo_line - - - static_instance-ucs-105 - sindh - karachi - lyari - chakiwara - - - static_instance-ucs-106 - sindh - karachi - lyari - allama_iqbal_colony - - - static_instance-ucs-107 - sindh - karachi - malir - model_colony - - - static_instance-ucs-108 - sindh - karachi - malir - kala_board - - - static_instance-ucs-109 - sindh - karachi - malir - saudabad - - - static_instance-ucs-110 - sindh - karachi - malir - khokhra_par - - - static_instance-ucs-111 - sindh - karachi - malir - jafar_e_tayyar - - - static_instance-ucs-112 - sindh - karachi - malir - gharibabad - - - static_instance-ucs-113 - sindh - karachi - malir - ghazi_brohi_goth - - - static_instance-ucs-114 - sindh - karachi - new_karachi - kalyana - - - static_instance-ucs-115 - sindh - karachi - new_karachi - sir_syed_colony - - - static_instance-ucs-116 - sindh - karachi - new_karachi - fatima_jinnah_colony - - - static_instance-ucs-117 - sindh - karachi - new_karachi - godhra - - - static_instance-ucs-118 - sindh - karachi - new_karachi - abu_zar_ghaffari - - - static_instance-ucs-119 - sindh - karachi - new_karachi - hakim_ahsan - - - static_instance-ucs-120 - sindh - karachi - new_karachi - madina_colony - - - static_instance-ucs-121 - sindh - karachi - new_karachi - faisal_colony - - - static_instance-ucs-122 - sindh - karachi - new_karachi - khamiso_goth - - - static_instance-ucs-123 - sindh - karachi - new_karachi - mustufa_colony - - - static_instance-ucs-124 - sindh - karachi - new_karachi - khawaja_ajmeer_nagri - - - static_instance-ucs-125 - sindh - karachi - new_karachi - gulshan_e_saeed - - - static_instance-ucs-126 - sindh - karachi - new_karachi - shah_nawaz_bhutto_colony - - - static_instance-ucs-127 - sindh - karachi - north_nazimabad - paposh_nagar - - - static_instance-ucs-128 - sindh - karachi - north_nazimabad - pahar_ganj - - - static_instance-ucs-129 - sindh - karachi - north_nazimabad - khandu_goth - - - static_instance-ucs-130 - sindh - karachi - north_nazimabad - hyderi - - - static_instance-ucs-131 - sindh - karachi - north_nazimabad - sakhi_hassan - - - static_instance-ucs-132 - sindh - karachi - north_nazimabad - farooq_e_azam - - - static_instance-ucs-133 - sindh - karachi - north_nazimabad - nusrat_bhutto_colony - - - static_instance-ucs-134 - sindh - karachi - north_nazimabad - shadman_town - - - static_instance-ucs-135 - sindh - karachi - north_nazimabad - buffer_zone - - - static_instance-ucs-136 - sindh - karachi - north_nazimabad - buffer_zone_ii - - - static_instance-ucs-137 - sindh - karachi - orangi - mominabad - - - static_instance-ucs-138 - sindh - karachi - orangi - haryana_colony - - - static_instance-ucs-139 - sindh - karachi - orangi - hanifabad - - - static_instance-ucs-140 - sindh - karachi - orangi - mohammad_nagar - - - static_instance-ucs-141 - sindh - karachi - orangi - madina_colony_orangi - - - static_instance-ucs-142 - sindh - karachi - orangi - ghaziabad - - - static_instance-ucs-143 - sindh - karachi - orangi - chisti_nagar - - - static_instance-ucs-144 - sindh - karachi - orangi - bilal_colony_orangi - - - static_instance-ucs-145 - sindh - karachi - orangi - iqbal_baloch_colony - - - static_instance-ucs-146 - sindh - karachi - orangi - ghabool_town - - - static_instance-ucs-147 - sindh - karachi - orangi - data_nagar - - - static_instance-ucs-148 - sindh - karachi - orangi - mujahidabad - - - static_instance-ucs-149 - sindh - karachi - orangi - baloch_goth - - - static_instance-ucs-150 - sindh - karachi - saddar - old_haji_camp - - - static_instance-ucs-151 - sindh - karachi - saddar - garden - - - static_instance-ucs-152 - sindh - karachi - saddar - kharadar - - - static_instance-ucs-153 - sindh - karachi - saddar - city_railway_colony - - - static_instance-ucs-154 - sindh - karachi - saddar - nanak_wara - - - static_instance-ucs-155 - sindh - karachi - saddar - gazdarabad - - - static_instance-ucs-156 - sindh - karachi - saddar - millat_nagar_islam_pura - - - static_instance-ucs-157 - sindh - karachi - saddar - saddar_uc - - - static_instance-ucs-158 - sindh - karachi - saddar - civil_line - - - static_instance-ucs-159 - sindh - karachi - saddar - clifton - - - static_instance-ucs-160 - sindh - karachi - saddar - kehkashan - - - static_instance-ucs-161 - sindh - karachi - shah_faisal - natha_khan_goth - - - static_instance-ucs-162 - sindh - karachi - shah_faisal - pak_sadat_colony - - - static_instance-ucs-163 - sindh - karachi - shah_faisal - drigh_colony - - - static_instance-ucs-164 - sindh - karachi - shah_faisal - raita_plot - - - static_instance-ucs-165 - sindh - karachi - shah_faisal - moria_khan_goth - - - static_instance-ucs-166 - sindh - karachi - shah_faisal - rafa_e_aam_society - - - static_instance-ucs-167 - sindh - karachi - shah_faisal - al_falah_society - - - static_instance-ucs-168 - sindh - karachi - site - pak_colony - - - static_instance-ucs-169 - sindh - karachi - site - old_golimar - - - static_instance-ucs-170 - sindh - karachi - site - jahanabad - - - static_instance-ucs-171 - sindh - karachi - site - metrovil - - - static_instance-ucs-172 - sindh - karachi - site - bhawani_chali - - - static_instance-ucs-173 - sindh - karachi - site - frontier_colony - - - static_instance-ucs-174 - sindh - karachi - site - banaras_colony - - - static_instance-ucs-175 - sindh - karachi - site - qasba_colony - - - static_instance-ucs-176 - sindh - karachi - site - islamia_colony - - - static_instance-ucs-177 - na - na - na - other - - - static_instance-ucs-178 - na - na - na - not_applicable - - - - - - - static_instance-gender-0 - male - - - static_instance-gender-1 - female - - - static_instance-gender-2 - transgender - - - - - - - static_instance-vaccines-0 - TT1 - - - static_instance-vaccines-1 - TT2 - - - static_instance-vaccines-2 - TT3 - - - static_instance-vaccines-3 - TT4 - - - static_instance-vaccines-4 - TT5 - - - - - - - static_instance-towns-0 - sindh - karachi - korangi - - - static_instance-towns-1 - sindh - karachi - landhi - - - static_instance-towns-2 - sindh - karachi - baldia - - - static_instance-towns-3 - sindh - karachi - bin_qasim - - - static_instance-towns-4 - sindh - karachi - gadap - - - static_instance-towns-5 - sindh - karachi - gulberg - - - static_instance-towns-6 - sindh - karachi - gulshan - - - static_instance-towns-7 - sindh - karachi - jamshed - - - static_instance-towns-8 - sindh - karachi - kiamari - - - static_instance-towns-9 - sindh - karachi - liaquatabad - - - static_instance-towns-10 - sindh - karachi - lyari - - - static_instance-towns-11 - sindh - karachi - malir - - - static_instance-towns-12 - sindh - karachi - new_karachi - - - static_instance-towns-13 - sindh - karachi - north_nazimabad - - - static_instance-towns-14 - sindh - karachi - orangi - - - static_instance-towns-15 - sindh - karachi - saddar - - - static_instance-towns-16 - sindh - karachi - shah_faisal - - - static_instance-towns-17 - sindh - karachi - site - - - static_instance-towns-18 - na - na - other - - - static_instance-towns-19 - na - na - not_applicable - - - - - - - static_instance-cities-0 - sindh - karachi - - - static_instance-cities-1 - punjab - hafizabad - - - static_instance-cities-2 - punjab - muzaffargarh - - - static_instance-cities-3 - na - other - - - static_instance-cities-4 - na - not_applicable - - - - - - - static_instance-edd_lmp-0 - edd - - - static_instance-edd_lmp-1 - lmp - - - static_instance-edd_lmp-2 - ultrasound - - - static_instance-edd_lmp-3 - none - - - - - - - static_instance-yes_no-0 - yes - - - static_instance-yes_no-1 - no - - - - diff --git a/opensrp-register/src/test/resources/schedules/child-bcg.json b/opensrp-register/src/test/resources/schedules/child-bcg.json deleted file mode 100644 index 2e585a9917..0000000000 --- a/opensrp-register/src/test/resources/schedules/child-bcg.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "BCG", - "absolute": true, - "milestones": [ - { - "name": "bcg", - "scheduleWindows": { - "earliest": ["0 Days"], - "due": ["28 Days"], - "late": ["1 Year"], - "max": ["1 Year", "1 Day"] - }, - "alerts": [ - { - "window": "due", - "offset": ["0 Days"], - "interval": ["1 Day"], - "count": "30" - }, - { - "window": "late", - "offset": ["28 Days"], - "interval": ["1 Day"], - "count": "366" - }, - { - "window": "max", - "offset": ["1 Year", "1 Day"], - "interval": ["1 Day"], - "count": "2" - } - ] - } - ] -} diff --git a/opensrp-register/src/test/resources/schedules/child-ipv.json b/opensrp-register/src/test/resources/schedules/child-ipv.json deleted file mode 100644 index 2f235563c6..0000000000 --- a/opensrp-register/src/test/resources/schedules/child-ipv.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "IPV", - "absolute": true, - "milestones": [ - { - "name": "ipv", - "scheduleWindows": { - "earliest": ["4 Weeks"], - "due": ["6 Weeks"], - "late": ["5 Years"], - "max": ["5 Years", "1 Day"] - }, - "alerts": [ - { - "window": "earliest", - "offset": ["0 Weeks"], - "interval": ["1 Day"], - "count": "30" - }, - { - "window": "due", - "offset": ["4 Weeks"], - "interval": ["1 Day"], - "count": "30" - }, - { - "window": "late", - "offset": ["6 Weeks"], - "interval": ["1 Day"], - "count": "1900" - }, - { - "window": "max", - "offset": ["5 Years"], - "interval": ["1 Day"], - "count": "2" - } - ] - } - ] -} diff --git a/opensrp-register/src/test/resources/schedules/child-measles1.json b/opensrp-register/src/test/resources/schedules/child-measles1.json deleted file mode 100644 index c7437bbdfb..0000000000 --- a/opensrp-register/src/test/resources/schedules/child-measles1.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "Measles 1", - "absolute": true, - "milestones": [ - { - "name": "measles1", - "scheduleWindows": { - "earliest": ["39 Weeks"], - "due": ["52 Weeks"], - "late": ["5 Years"], - "max": ["5 Years", "1 Day"] - }, - "alerts": [ - { - "window": "earliest", - "offset": ["0 Months"], - "interval": ["1 Day"], - "count": "300" - }, - { - "window": "due", - "offset": ["39 Weeks"], - "interval": ["1 Day"], - "count": "100" - }, - { - "window": "late", - "offset": ["52 Weeks"], - "interval": ["1 Day"], - "count": "1900" - }, - { - "window": "max", - "offset": ["5 Years"], - "interval": ["1 Day"], - "count": "2" - } - ] - } - ] -} diff --git a/opensrp-register/src/test/resources/schedules/child-measles2.json b/opensrp-register/src/test/resources/schedules/child-measles2.json deleted file mode 100644 index 20b9a4a3b1..0000000000 --- a/opensrp-register/src/test/resources/schedules/child-measles2.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "Measles 2", - "absolute": true, - "milestones": [ - { - "name": "measles2", - "scheduleWindows": { - "earliest": ["26 Weeks"], - "due": ["61 Weeks"], - "late": ["5 Year"], - "max": ["5 Years", "1 Day"] - }, - "alerts": [ - { - "window": "earliest", - "offset": ["0 Weeks"], - "interval": ["1 Day"], - "count": "200" - }, - { - "window": "due", - "offset": ["26 Weeks"], - "interval": ["1 Day"], - "count": "300" - }, - { - "window": "late", - "offset": ["61 Weeks"], - "interval": ["1 Day"], - "count": "1900" - }, - { - "window": "max", - "offset": ["5 Years"], - "interval": ["1 Day"], - "count": "2" - } - ] - } - ] -} diff --git a/opensrp-register/src/test/resources/schedules/child-opv0.json b/opensrp-register/src/test/resources/schedules/child-opv0.json deleted file mode 100644 index 66045d110c..0000000000 --- a/opensrp-register/src/test/resources/schedules/child-opv0.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "OPV 0", - "absolute": true, - "milestones": [ - { - "name": "opv0", - "scheduleWindows": { - "earliest": ["0 Days"], - "due": ["14 Days"], - "late": ["5 Years"], - "max": ["5 Years", "1 Day"] - }, - "alerts": [ - { - "window": "due", - "offset": ["0 Days"], - "interval": ["1 Day"], - "count": "15" - }, - { - "window": "late", - "offset": ["14 Days"], - "interval": ["1 Day"], - "count": "1900" - }, - { - "window": "max", - "offset": ["5 Years"], - "interval": ["1 Day"], - "count": "2" - } - ] - } - ] -} diff --git a/opensrp-register/src/test/resources/schedules/child-opv1.json b/opensrp-register/src/test/resources/schedules/child-opv1.json deleted file mode 100644 index f1c637b3e4..0000000000 --- a/opensrp-register/src/test/resources/schedules/child-opv1.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "OPV 1", - "absolute": true, - "milestones": [ - { - "name": "opv1", - "scheduleWindows": { - "earliest": ["6 Weeks"], - "due": ["8 Weeks"], - "late": ["5 Years"], - "max": ["5 Years", "1 Day"] - }, - "alerts": [ - { - "window": "earliest", - "offset": ["0 Weeks"], - "interval": ["1 Day"], - "count": "50" - }, - { - "window": "due", - "offset": ["6 Weeks"], - "interval": ["1 Day"], - "count": "30" - }, - { - "window": "late", - "offset": ["8 Weeks"], - "interval": ["1 Day"], - "count": "1900" - }, - { - "window": "max", - "offset": ["5 Years"], - "interval": ["1 Day"], - "count": "2" - } - ] - } - ] -} diff --git a/opensrp-register/src/test/resources/schedules/child-opv2.json b/opensrp-register/src/test/resources/schedules/child-opv2.json deleted file mode 100644 index 06c7a75aac..0000000000 --- a/opensrp-register/src/test/resources/schedules/child-opv2.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "OPV 2", - "absolute": true, - "milestones": [ - { - "name": "opv2", - "scheduleWindows": { - "earliest": ["4 Weeks"], - "due": ["6 Weeks"], - "late": ["5 Years"], - "max": ["5 Years", "1 Day"] - }, - "alerts": [ - { - "window": "earliest", - "offset": ["0 Weeks"], - "interval": ["1 Day"], - "count": "30" - }, - { - "window": "due", - "offset": ["4 Weeks"], - "interval": ["1 Day"], - "count": "30" - }, - { - "window": "late", - "offset": ["6 Weeks"], - "interval": ["1 Day"], - "count": "1900" - }, - { - "window": "max", - "offset": ["5 Years"], - "interval": ["1 Day"], - "count": "2" - } - ] - } - ] -} diff --git a/opensrp-register/src/test/resources/schedules/child-opv3.json b/opensrp-register/src/test/resources/schedules/child-opv3.json deleted file mode 100644 index ab41fab67d..0000000000 --- a/opensrp-register/src/test/resources/schedules/child-opv3.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "OPV 3", - "absolute": true, - "milestones": [ - { - "name": "opv3", - "scheduleWindows": { - "earliest": ["4 Weeks"], - "due": ["6 Weeks"], - "late": ["5 Years"], - "max": ["5 Years", "1 Day"] - }, - "alerts": [ - { - "window": "earliest", - "offset": ["0 Weeks"], - "interval": ["1 Day"], - "count": "30" - }, - { - "window": "due", - "offset": ["4 Weeks"], - "interval": ["1 Day"], - "count": "30" - }, - { - "window": "late", - "offset": ["6 Weeks"], - "interval": ["1 Day"], - "count": "1900" - }, - { - "window": "max", - "offset": ["5 Years"], - "interval": ["1 Day"], - "count": "2" - } - ] - } - ] -} diff --git a/opensrp-register/src/test/resources/schedules/child-pcv1.json b/opensrp-register/src/test/resources/schedules/child-pcv1.json deleted file mode 100644 index 317b454c85..0000000000 --- a/opensrp-register/src/test/resources/schedules/child-pcv1.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "PCV 1", - "absolute": true, - "milestones": [ - { - "name": "pcv1", - "scheduleWindows": { - "earliest": ["6 Weeks"], - "due": ["8 Weeks"], - "late": ["5 Years"], - "max": ["5 Years", "1 Day"] - }, - "alerts": [ - { - "window": "earliest", - "offset": ["0 Weeks"], - "interval": ["1 Day"], - "count": "50" - }, - { - "window": "due", - "offset": ["6 Weeks"], - "interval": ["1 Day"], - "count": "30" - }, - { - "window": "late", - "offset": ["8 Weeks"], - "interval": ["1 Day"], - "count": "1900" - }, - { - "window": "max", - "offset": ["5 Years"], - "interval": ["1 Day"], - "count": "2" - } - ] - } - ] -} diff --git a/opensrp-register/src/test/resources/schedules/child-pcv2.json b/opensrp-register/src/test/resources/schedules/child-pcv2.json deleted file mode 100644 index a2cf000439..0000000000 --- a/opensrp-register/src/test/resources/schedules/child-pcv2.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "PCV 2", - "absolute": true, - "milestones": [ - { - "name": "pcv2", - "scheduleWindows": { - "earliest": ["4 Weeks"], - "due": ["6 Weeks"], - "late": ["5 Years"], - "max": ["5 Years", "1 Day"] - }, - "alerts": [ - { - "window": "earliest", - "offset": ["0 Weeks"], - "interval": ["1 Day"], - "count": "30" - }, - { - "window": "due", - "offset": ["4 Weeks"], - "interval": ["1 Day"], - "count": "30" - }, - { - "window": "late", - "offset": ["6 Weeks"], - "interval": ["1 Day"], - "count": "1900" - }, - { - "window": "max", - "offset": ["5 Years"], - "interval": ["1 Day"], - "count": "2" - } - ] - } - ] -} diff --git a/opensrp-register/src/test/resources/schedules/child-pcv3.json b/opensrp-register/src/test/resources/schedules/child-pcv3.json deleted file mode 100644 index 45efda86d8..0000000000 --- a/opensrp-register/src/test/resources/schedules/child-pcv3.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "PCV 3", - "absolute": true, - "milestones": [ - { - "name": "pcv3", - "scheduleWindows": { - "earliest": ["4 Weeks"], - "due": ["6 Weeks"], - "late": ["5 Years"], - "max": ["5 Years", "1 Day"] - }, - "alerts": [ - { - "window": "earliest", - "offset": ["0 Weeks"], - "interval": ["1 Day"], - "count": "30" - }, - { - "window": "due", - "offset": ["4 Weeks"], - "interval": ["1 Day"], - "count": "30" - }, - { - "window": "late", - "offset": ["6 Weeks"], - "interval": ["1 Day"], - "count": "1900" - }, - { - "window": "max", - "offset": ["5 Years"], - "interval": ["1 Day"], - "count": "2" - } - ] - } - ] -} diff --git a/opensrp-register/src/test/resources/schedules/child-pentavalent1.json b/opensrp-register/src/test/resources/schedules/child-pentavalent1.json deleted file mode 100644 index a98e1b9fe0..0000000000 --- a/opensrp-register/src/test/resources/schedules/child-pentavalent1.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "Penta 1", - "absolute": true, - "milestones": [ - { - "name": "penta1", - "scheduleWindows": { - "earliest": ["6 Weeks"], - "due": ["8 Weeks"], - "late": ["52 Weeks"], - "max": ["1 Year", "1 Day"] - }, - "alerts": [ - { - "window": "earliest", - "offset": ["0 Weeks"], - "interval": ["1 Day"], - "count": "50" - }, - { - "window": "due", - "offset": ["6 Weeks"], - "interval": ["1 Day"], - "count": "30" - }, - { - "window": "late", - "offset": ["8 Weeks"], - "interval": ["1 Day"], - "count": "366" - }, - { - "window": "max", - "offset": ["1 Year"], - "interval": ["1 Day"], - "count": "2" - } - ] - } - ] -} diff --git a/opensrp-register/src/test/resources/schedules/child-pentavalent2.json b/opensrp-register/src/test/resources/schedules/child-pentavalent2.json deleted file mode 100644 index 76c4cee91c..0000000000 --- a/opensrp-register/src/test/resources/schedules/child-pentavalent2.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "Penta 2", - "absolute": true, - "milestones": [ - { - "name": "penta2", - "scheduleWindows": { - "earliest": ["4 Weeks"], - "due": ["6 Weeks"], - "late": ["52 Weeks"], - "max": ["1 Year", "1 Day"] - }, - "alerts": [ - { - "window": "earliest", - "offset": ["0 Weeks"], - "interval": ["1 Day"], - "count": "30" - }, - { - "window": "due", - "offset": ["4 Weeks"], - "interval": ["1 Day"], - "count": "30" - }, - { - "window": "late", - "offset": ["6 Weeks"], - "interval": ["1 Day"], - "count": "366" - }, - { - "window": "max", - "offset": ["1 Year"], - "interval": ["1 Day"], - "count": "2" - } - ] - } - ] -} \ No newline at end of file diff --git a/opensrp-register/src/test/resources/schedules/child-pentavalent3.json b/opensrp-register/src/test/resources/schedules/child-pentavalent3.json deleted file mode 100644 index 32a5e79fcb..0000000000 --- a/opensrp-register/src/test/resources/schedules/child-pentavalent3.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "Penta 3", - "absolute": true, - "milestones": [ - { - "name": "penta3", - "scheduleWindows": { - "earliest": ["4 Weeks"], - "due": ["6 Weeks"], - "late": ["52 Weeks"], - "max": ["1 Year", "1 Day"] - }, - "alerts": [ - { - "window": "earliest", - "offset": ["0 Weeks"], - "interval": ["1 Day"], - "count": "30" - }, - { - "window": "due", - "offset": ["4 Weeks"], - "interval": ["1 Day"], - "count": "30" - }, - { - "window": "late", - "offset": ["6 Weeks"], - "interval": ["1 Day"], - "count": "366" - }, - { - "window": "max", - "offset": ["1 Year"], - "interval": ["1 Day"], - "count": "2" - } - ] - } - ] -} \ No newline at end of file diff --git a/opensrp-register/src/test/resources/schedules/schedule-config.xls b/opensrp-register/src/test/resources/schedules/schedule-config.xls deleted file mode 100644 index 68cc1e3724c875324596df7b48830b053de08923..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 24064 zcmeHPeQ=z`dEYyoq_bswl5K1-{&+2aNwzFYC&`%DM*iT-;13m?Koh4%mhNoTvQCxG z#Gb^1Xp@;vp&76POu#hIl$o@ofdEOMC1CPL($0vsw4sy)GNc0;nq=DAO{Yx;xc+{- z@4oNu-g~c41Jgjp@6F!5`|Li?^V{8LpZ$3Ey?^-orq>_(`uraY=ek_fh<8iVM4drT z;GRKVjY6!#4dd^YN+m@U0=MU{4^a)g1FUUmyc&cQLM;N@ydEKqFb!ckLIc7KgbNU6 zB4iL?0-_0F7Q$?VIS3ab%te@oa1p}A2=fsxL0EvW5MdF*VgwIi2|_c%QiNp)%Mn%} ztVC!*XhooXF|0A}KSWjhfrfg$DBx2>TU;qd@H-}sp_Z$^=E7oh0h3_!()N>L2qek4X{3-r?mvi}f6OjaxDU;J3DxB?mmB!--9 zfvMqH5B<9A)#_(`z2)nlmPRkGs}+wdexd$v;mzxi_+yb2kENc+w-En|uvd)I7wqgG zI$S7>^n3pw*H($4KS2zqQNf#Vmk_5wZG=xD6)lhN+4B2QneQ3-y$LD*2_JKE*R_k+ zBL~N*o06MlzCV`V&GLIDz7yhGlII7K(h06tkv}c&WRoVv*80RYSivx?U_Y#5NPN(8 zOgksiIp@fc5Z&S#R%FG}CNKuX=SafapR2~2Vso^i53P^Yk~(LOSJ9gBGT644$Kqg) z?sMkYc#a$i(HmQqgArvp>|0pBZ(|8qVSKG~T#m2x1aef8u_(0wo*Scd^RnipZA+JS z>}%byw?#+xwk}F7!8`yXwk9F{6W8YkKWS%b#zX-_y3W+zVaq|BqE@0X&2BD7nxFMj z%qp`&>?4#_o<`n6E6^XUK>un5`U4f{w^yK7!c$59 z6H*S>0kZysdiawHbcLrpzrs^a|Fa5mzFvX;WCi-O73hCdf&O#_`c(0JL&~Wys~=@2 zTsO&j`$ALGy$$y^h}1nYKi5)nrM54TvVDLh>J8Fa8KI@g0f-NP-Gh7R4)%eAA-AJmVs zf37EeIXB}L%SI)KYfMQGa6aPKn@>O0)HJtYF6#L{N#}Z0%UAWR>c18<8A*5QnQK=` zcW}c7@P2RUw3CSXl`DRTV;Lnw5pniB%zl=2}?@Jzf<;Xu_3+ z(A`xbgl1h?2z}!@g-q^6$zMIrI6!@cAxgv7TFH>0Z%65l#rbwc7>XGwKJ;#&tx z?Q<7LZTDC1fZUKjXPv0$1(k&?t4>IK>nyKMNPO$8s7^?H>#VF!NPO$G1VT7pIwk5# z);x@ThY6+c{aq=n*t?v;s}(uw<>1AQ%TT7mQr6Xw53>sw1 zYkCCjc-jTU=Ya|oCw9CdOZM=?50`=J?d>fCWzsY#(v)a!f2o=>Y2~xn)yN(@FL39{ zd>S?-20oUW5<~k`8P*02Y;886Rk7vMk`823otF$)z1R%e#=iR>rj5CC8*FPC9)L}1 zX{GIu81Lk7R1fR2Y(1%MtW=r|glHG^ z_~Vb4^>&k{dpl{6Eic{MO4NHPyuN^hcfHU?Uh(mDe(?ceksW-B%9>bPBCVpF zp*LWtQp4t{GHeMLs)V#Pp5bJ279K)kMVswd?yd2*3=HH(ik&CYJH-i3AN;E}wWxFf z9%XdkNP{QVAZ)>7-T|Q=@+#k&z>$jjR4)I+H_w!6c~9Fw9WUpG4AnHbYO>{Onq$-` z?<>{R=JID>do^0kELTlextbL*YLtJLYU*XeM5~!g zHQn)+wis%tcC^r? zp-@yJ0YAM@t)fyz9(tKVGlgG*w#NhaAdf@I8+!pk-p6q zn4DW`5b6XMPuLAZbaEk-pWzHLo-sxDH}6IDoT{9`18MH;iJ3sJKlcCxvDw)u_1Os0&c3 zm`0^y8kLHjOs2%@iJH=hv}Zv{)Yd@BHXK1zMJk0BfPhceY zBv~ZSnu!#6RyaJVQW`u*aC~k|&V2{`1E$o{K2Z;jc88@@&H+aChZ0|2Pj2+{=5VHR&cuEfz4>w!!;!js9FSY#N&;rm?SO%cMC|EnOp)ccjw zKSDt$yvr00ALt676(L;t!3x6F)F3H^cbmfD3mu10Gdn^!{h?~Hdb3(iCZ~%Y9-Z1g zGI|82aKvu1R~|F3hvTm-+g zLpJmwH2R?B0crwk41AIHKHSx*L&ePymjb`ol{-=#>xX-B9CKm;9P=&+W=Y3jQ*HN!3i$mfTX+dEQ_Mih8MT>Bi>%`6SB=_fV zru7UbA~=RLK5#HMcw{)YW}q;VA3AVf`XX_kpC^ z@aoFX65?%9SAPa+*CW8%^M$d);L?gPCKbnq4jjmhUD036T{V;&9>hcdyF)|8V|$K` z=HR9e4-MzWi-nOK47Y!PvliUsM#c)m!|2iZBg6Tj;bF)bI5;#sxKAYDsVp1tC-yB^*ZJwFI5*JxBGPmERp*k%t>x=U^Dx!Ir;d!a74rG1zyZyT+bC|3U2fkjI#dI8X!vNAjwlJFyCTqC-Jzz< z?$ALuw8H1D@Sj8hC*F zH~9S`e(%O?K96E-fm@n|fngHA58!toJr@Cj{A;fNn-uq8q`t>U+4^Qe+z;CQ28|>8 z9iZJ|&?tZhBh?FUjn)fq4M`sIQWxhAOYl7H-m8STZ6{xNzLsN>C`4Q0Hl#eCf^(Ly%Km}O{aN|F0=e_@ z`bjU}n9=twft0s;TaEjjVirVRgQ<~+#YDdtmlMrv@y*vc`!FjjpiOe1k7J_5*BCh$ zWD3`oomk)UN~CJ=(pz^;=6*iJO^BaPF90+rgf}G_|8-tBTye!t&hQzo>GO8o+k!A?ld6vW2+o8dxF&+TbGGKhWBCWV4c^a&tmp4OBsK65cGnZI9`@aY z^eaMi$?Knb^)Fte#XjAs&^eWrZ6mjEX=NQ>j}fRuNlJtI3L<4JtBXTo?5_85M+ ziat`v{3)!EPAm!2Yq19X=DILm2T9v!tGK{U6EAvS?#!;-3u#yW8G(WkgH){IMQ zilEJopmF4Jc{#eeG@hMyX*|X3(s(G@rSW*MOXF!@m$ulUy(33xzNE`mQLzMKY;zS$ zBF0u!u^Pm9saOgzT7rtzip^4*iq#>F7Qq;$DXUYl1Y*|(X-UL(1hE>#*zzi83Qs49 zS;cCRh6#cnt3wQnU>PHd3`(nGrUv$!P(u=^dimC>&zC|>YfqwoD4EX!HG5YtJ}H@# zbr6<;`xF^$uqi1isbO~zGt0m}8J2;&LK(~lG@sVT^05WNGH}Z-)PU0|h-nSARvBuc zq1Q+=WwJ&>)ZBs1U?*Q`ua`1uIn-VcnPJV>Td3SaMrQv=&7M4h%Yq%93;3w2te z*4ooS%@YfId5D_!li@4M66bU&lg?7*G*M5tP_sreIHjR;nyBeBLeveGh6YPRgM}Jz zyrHhO_J#m8?PZ3{sqKZ{CM?4RQUlL+5jAJH8QGIm%q+tNRv9jkW#|p~%rek-g=Ls& zY2aTigc@dAWtb_;zdZuWD| zl`^*kF%$J%iF#|0M%3Gan2DO>ONe@&rD2|>VV;G0oZBTpm`BH<{KHox3uM?tPAZ22s zN}^sMW%2+i+h~E5sqK1!l*zNADvhW&1~C&gEi**D(9*Eb(y-7%y-;e<+80`=ISz)X z7fYE}_}UjsnO6oev##;hGx)H$mZ%p?k8*Vo)2LrYuXq>3>FbI8crdUBeu3XQsF+RD zX`DBDkmt@dnj>gSBWUy!E-$@>OQU_bG`6-&TOC1bi=eef&^R`_@@UU4jiZrEiWsC@bI}@?`LIR>w?x zX|}AqS=!6BK~8NiM9tO=Q7^SLEVVQ&wNNjW8npJM7HV2Uh z3sA+(x^9s&X^AS0sMiEB6E!V8MBQp>Xtgx7TBuv42Cco-Ld~8MqFya!a%My<+*QlK z3+Nb8uL@!*oEMuB#E9ApVnof^52dgLLey=RhBiw>n?y}SijO`^Yj2aNwM^Dlh`L?M z%=momQYL2=l+rF`YSithi7h4! zs3l6z2KYItZ>Q40<&{uBl9X(g)C5`)cQpsn^TYu| z9`?I=c((>4JB6LUe$#4zwva@iY4ATbYw-(f#FRkAr}@9Mg7epJUJblkLVG7^0ro|^ zc>Qx&*x(??D6( zE~5ynhocBAGwVawgTgyQ@`GIQcM$|rC*|woM*g`bF#|-(W1SMmjfJs8;|FuO;<)eI zL928n`~$tC*s|L%ez#J#igf-9r`aniW;7C5e`7}cz1~h$|9jQv@_(51C*bvKFtoD_ z?tk}kX%hCk-TC~`Ku&c(FWb@4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/opensrp-reporting/src/test/java/org/opensrp/reporting/AggregateReportsSchedulerTest.java b/opensrp-reporting/src/test/java/org/opensrp/reporting/AggregateReportsSchedulerTest.java deleted file mode 100644 index 2d356b4cf3..0000000000 --- a/opensrp-reporting/src/test/java/org/opensrp/reporting/AggregateReportsSchedulerTest.java +++ /dev/null @@ -1,52 +0,0 @@ -package org.opensrp.reporting; - -import org.opensrp.common.util.DateTimeUtil; -import org.joda.time.DateTimeConstants; -import org.joda.time.LocalDateTime; -import org.junit.Before; -import org.junit.Test; -import org.mockito.ArgumentMatcher; -import org.mockito.Matchers; -import org.mockito.Mock; -import org.motechproject.scheduler.MotechSchedulerService; -import org.motechproject.scheduler.domain.RepeatingSchedulableJob; - -import static org.mockito.Mockito.verify; -import static org.mockito.MockitoAnnotations.initMocks; -import org.opensrp.scheduler.AggregateReportsScheduler; - -public class AggregateReportsSchedulerTest { - - @Mock - private MotechSchedulerService schedulerService; - private AggregateReportsScheduler scheduler; - private final int REPEAT_INTERVAL_IN_MINUTES = 10; - - @Before - public void setUp() throws Exception { - initMocks(this); - scheduler = new AggregateReportsScheduler(REPEAT_INTERVAL_IN_MINUTES, schedulerService); - } - - @Test - public void shouldScheduleARepeatingJob() throws Exception { - DateTimeUtil.fakeIt(LocalDateTime.parse("2013-01-01T12:00:00.000")); - - scheduler.startTimedScheduler(); - - verify(schedulerService).safeScheduleRepeatingJob(verifyJob()); - } - - private RepeatingSchedulableJob verifyJob() { - return Matchers.argThat(new ArgumentMatcher() { - @Override - public boolean matches(Object o) { - RepeatingSchedulableJob job = (RepeatingSchedulableJob) o; - return LocalDateTime.parse("2013-01-01T12:00:00.000").plusMinutes(10).toDate() - .equals(job.getStartTime()) - && DateTimeConstants.MILLIS_PER_MINUTE * REPEAT_INTERVAL_IN_MINUTES == job.getRepeatIntervalInMilliSeconds() - && "REPORT_AGGREGATOR_SCHEDULE".equals(job.getMotechEvent().getSubject()); - } - }); - } -} diff --git a/opensrp-reporting/src/test/java/org/opensrp/reporting/controller/ANMControllerTest.java b/opensrp-reporting/src/test/java/org/opensrp/reporting/controller/ANMControllerTest.java deleted file mode 100644 index 974f8800df..0000000000 --- a/opensrp-reporting/src/test/java/org/opensrp/reporting/controller/ANMControllerTest.java +++ /dev/null @@ -1,75 +0,0 @@ -package org.opensrp.reporting.controller; - -import com.google.gson.Gson; -import org.opensrp.common.domain.UserDetail; -import org.opensrp.common.util.HttpAgent; -import org.opensrp.common.util.HttpResponse; -import org.junit.Before; -import org.junit.Test; -import org.mockito.Mock; -import org.opensrp.dto.ANMDTO; -import org.opensrp.dto.LocationDTO; -import org.opensrp.reporting.controller.ANMController; -import org.opensrp.reporting.controller.ANMDetailsFetcher; -import org.opensrp.reporting.domain.Location; -import org.opensrp.reporting.domain.SP_ANM; -import org.opensrp.reporting.factory.DetailsFetcherFactory; -import org.opensrp.reporting.service.ANMService; -import org.springframework.http.ResponseEntity; - -import java.util.List; - -import static java.util.Arrays.asList; -import static org.junit.Assert.assertEquals; -import static org.mockito.Mockito.when; -import static org.mockito.MockitoAnnotations.initMocks; - -public class ANMControllerTest { - - @Mock - private ANMService anmService; - @Mock - private Location location; - @Mock - private HttpAgent httpAgent; - @Mock - private DetailsFetcherFactory detailsFetcherFactory; - @Mock - private ANMDetailsFetcher anmDetailsFetcher; - - - private ANMController controller; - - @Before - public void setUp() throws Exception { - initMocks(this); - controller = new ANMController("site-url", "http://user-details-endpoint/user-details", anmService, httpAgent, detailsFetcherFactory); - } - - @Test - public void shouldReturnListOfANMs() throws Exception { - List roles = asList("ROLE_USER"); - when(httpAgent.get("http://user-details-endpoint/user-details?anm-id=username1")). - thenReturn(new HttpResponse(true, - new Gson().toJson(new UserDetail("username1", roles)))); - - when(detailsFetcherFactory.detailsFetcher(roles)).thenReturn(anmDetailsFetcher); - when(anmDetailsFetcher.fetchDetails("username1")).thenReturn(asList( - new SP_ANM("username1", "user1 name", "Sub Center 1", 0), - new SP_ANM("username2", "user2 name", "Sub Center 1", 0) - )); - when(location.district()).thenReturn("district"); - when(location.phcName()).thenReturn("phc"); - when(location.state()).thenReturn("state"); - when(location.taluka()).thenReturn("taluka"); - when(location.village()).thenReturn("village"); - when(location.subCenter()).thenReturn("subcenter"); - - when(anmService.getLocation("username1")).thenReturn(location); - when(anmService.getLocation("username2")).thenReturn(location); - - ResponseEntity> response = controller.all("username1"); - LocationDTO locationDTO = new LocationDTO(location.subCenter(), location.phcName(), location.taluka(), location.district(), location.state()); - assertEquals(asList(new ANMDTO("username1", "user1 name", locationDTO), new ANMDTO("username2", "user2 name", locationDTO)), response.getBody()); - } -} diff --git a/opensrp-reporting/src/test/java/org/opensrp/reporting/controller/AggregatedReportControllerTest.java b/opensrp-reporting/src/test/java/org/opensrp/reporting/controller/AggregatedReportControllerTest.java deleted file mode 100644 index 176f9e3be8..0000000000 --- a/opensrp-reporting/src/test/java/org/opensrp/reporting/controller/AggregatedReportControllerTest.java +++ /dev/null @@ -1,51 +0,0 @@ -package org.opensrp.reporting.controller; - -import org.junit.Before; -import org.junit.Test; -import org.mockito.Mock; -import org.opensrp.dto.LocationDTO; -import org.opensrp.dto.aggregatorResponse.AggregatorResponseDTO; -import org.opensrp.dto.report.AggregatedReportsDTO; -import org.opensrp.reporting.controller.AggregatedReportController; -import org.opensrp.reporting.domain.Location; -import org.opensrp.reporting.domain.PHC; -import org.opensrp.reporting.service.ANMService; -import org.opensrp.reporting.service.AggregateReportsService; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; - -import static java.util.Arrays.asList; -import static org.opensrp.common.util.EasyMap.create; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; -import static org.mockito.Mockito.when; -import static org.mockito.MockitoAnnotations.initMocks; - -public class AggregatedReportControllerTest { - - @Mock - private AggregateReportsService aggregateReportsService; - @Mock - private ANMService anmService; - - private AggregatedReportController controller; - - @Before - public void setUp() throws Exception { - initMocks(this); - controller = new AggregatedReportController(aggregateReportsService, "http://dristhi_site_url", anmService); - } - - @Test - public void shouldReturnAggregatedReportDataForAGivenANMMonthAndYear() { - when(aggregateReportsService.getAggregatedReports("demo1", 12, 2013)).thenReturn(asList(new AggregatorResponseDTO("OCP", 4), new AggregatorResponseDTO("OPV_1", 2))); - when(anmService.getLocation("demo1")).thenReturn(new Location("Bherya", "sub Center", new PHC(1, "PHC 1", "Bherya"), "taluka", "mysore", "karnataka")); - - ResponseEntity aggregatedReports = controller.get("demo1", 12, 2013); - - assertEquals(new AggregatedReportsDTO(create("OCP", 4).put("OPV_1", 2).map(), new LocationDTO("Sub Center", "Bherya", "taluka", "mysore", "karnataka")), aggregatedReports.getBody()); - assertEquals(HttpStatus.OK, aggregatedReports.getStatusCode()); - assertTrue(aggregatedReports.getHeaders().containsKey("Access-Control-Allow-Origin")); - assertEquals("http://dristhi_site_url", aggregatedReports.getHeaders().getFirst("Access-Control-Allow-Origin")); - } -} diff --git a/opensrp-reporting/src/test/java/org/opensrp/reporting/controller/LocationControllerTest.java b/opensrp-reporting/src/test/java/org/opensrp/reporting/controller/LocationControllerTest.java deleted file mode 100644 index 7f3cbf1b07..0000000000 --- a/opensrp-reporting/src/test/java/org/opensrp/reporting/controller/LocationControllerTest.java +++ /dev/null @@ -1,54 +0,0 @@ -package org.opensrp.reporting.controller; - -import org.junit.Before; -import org.junit.Test; -import org.mockito.Mock; -import org.opensrp.dto.VillagesDTO; -import org.opensrp.reporting.controller.LocationController; -import org.opensrp.reporting.domain.Location; -import org.opensrp.reporting.domain.PHC; -import org.opensrp.reporting.service.ANMService; -import org.springframework.http.ResponseEntity; - -import static java.util.Arrays.asList; -import static org.junit.Assert.assertEquals; -import static org.mockito.Mockito.when; -import static org.mockito.MockitoAnnotations.initMocks; - -public class LocationControllerTest { - - @Mock - private ANMService anmService; - @Mock - private Location location; - @Mock - private PHC phc; - private LocationController controller; - - @Before - public void setUp() throws Exception { - initMocks(this); - controller = new LocationController(anmService); - } - - @Test - public void shouldReturnListOfVillagesForANM() throws Exception { - when(anmService.getVillagesForANM("demo1")).thenReturn( - asList( - new Location("village1", "sc", phc, "taluk", "District", "state"), - new Location("village2", "sc", phc, "taluk", "District", "state") - )); - - when(anmService.getLocation("demo1")).thenReturn(location); - when(location.phc()).thenReturn(phc); - when(location.subCenter()).thenReturn("sc"); - when(phc.phcIdentifier()).thenReturn("phc1"); - when(phc.name()).thenReturn("PHC X"); - when(location.phcName()).thenReturn("PHC X"); - - ResponseEntity response = controller.villagesForANM("demo1"); - - VillagesDTO villagesDTO = new VillagesDTO("district", "PHC X", "phc1", "sc", asList("village1", "village2")); - assertEquals(villagesDTO, response.getBody()); - } -} diff --git a/opensrp-reporting/src/test/java/org/opensrp/reporting/controller/PHCUserDetailsFetcherTest.java b/opensrp-reporting/src/test/java/org/opensrp/reporting/controller/PHCUserDetailsFetcherTest.java deleted file mode 100644 index 9e48e0fd03..0000000000 --- a/opensrp-reporting/src/test/java/org/opensrp/reporting/controller/PHCUserDetailsFetcherTest.java +++ /dev/null @@ -1,31 +0,0 @@ -package org.opensrp.reporting.controller; - -import org.junit.Before; -import org.junit.Test; -import org.mockito.Mock; - -import static org.mockito.Mockito.verify; -import static org.mockito.MockitoAnnotations.initMocks; -import org.opensrp.reporting.controller.PHCUserDetailsFetcher; -import org.opensrp.reporting.service.ANMService; - -public class PHCUserDetailsFetcherTest { - - @Mock - private ANMService anmService; - private PHCUserDetailsFetcher phcUserDetailsFetcher; - - @Before - public void setUp() throws Exception { - initMocks(this); - phcUserDetailsFetcher = new PHCUserDetailsFetcher(anmService); - } - - @Test - public void shouldDelegateToANMServiceToFetchANMsFromSamePHC() { - phcUserDetailsFetcher.fetchDetails("demo1"); - - verify(anmService).anmsInTheSamePHC("demo1"); - } - -} diff --git a/opensrp-reporting/src/test/java/org/opensrp/reporting/controller/ReportDataControllerTest.java b/opensrp-reporting/src/test/java/org/opensrp/reporting/controller/ReportDataControllerTest.java deleted file mode 100644 index 3a7f6aef75..0000000000 --- a/opensrp-reporting/src/test/java/org/opensrp/reporting/controller/ReportDataControllerTest.java +++ /dev/null @@ -1,191 +0,0 @@ -package org.opensrp.reporting.controller; - -import org.opensrp.common.domain.ANMReport; -import org.opensrp.common.domain.ReportDataDeleteRequest; -import org.opensrp.common.domain.ReportDataUpdateRequest; -import org.opensrp.common.domain.ReportingData; -import org.opensrp.common.domain.Location; -import org.junit.Before; -import org.junit.Test; -import org.mockito.Mock; - -import java.util.Date; -import java.util.HashMap; -import java.util.List; - -import static java.util.Arrays.asList; -import static junit.framework.Assert.assertEquals; -import static org.opensrp.common.AllConstants.ReportDataParameters.*; -import static org.opensrp.common.domain.Indicator.*; -import static org.opensrp.common.domain.ReportingData.anmReportData; -import static org.opensrp.common.domain.ReportingData.serviceProvidedData; -import static org.opensrp.common.util.ANMIndicatorSummaryFactory.createSummaryForANC; -import static org.opensrp.common.util.ANMIndicatorSummaryFactory.createSummaryForIUD; -import static org.mockito.Mockito.verify; -import static org.mockito.Mockito.verifyZeroInteractions; -import static org.mockito.Mockito.when; -import static org.mockito.MockitoAnnotations.initMocks; -import org.opensrp.reporting.DristhiEntityIdMissingException; -import org.opensrp.reporting.ReportDataMissingException; -import org.opensrp.reporting.controller.ReportDataController; -import org.opensrp.reporting.domain.ANMReportData; -import org.opensrp.reporting.domain.ServiceProvided; -import org.opensrp.reporting.repository.ANMReportsRepository; -import org.opensrp.reporting.repository.ServicesProvidedRepository; - -public class ReportDataControllerTest { - @Mock - private ServicesProvidedRepository servicesProvidedRepository; - @Mock - private ANMReportsRepository anmReportsRepository; - @Mock - private ServiceProvided serviceProvided; - @Mock - private ANMReportData anmReportData; - @Mock - private Date date; - - private ReportDataController controller; - - @Before - public void setUp() throws Exception { - initMocks(this); - controller = new ReportDataController(servicesProvidedRepository, anmReportsRepository); - } - - @Test - public void shouldSaveServiceProvidedInDB() throws Exception { - ReportingData data = serviceProvidedData("ANM X", "TC 1", BCG, "2012-01-01", - new Location("bherya", "Sub Center", "PHC X"), "entity id 1").withQuantity("40"); - - controller.submit(data); - - verify(servicesProvidedRepository).save("ANM X", "ANM", "TC 1", "BCG", "2012-01-01", "bherya", "Sub Center", "PHC X", "40", "entity id 1"); - } - - @Test - public void shouldSaveANMReportDataInDB() throws Exception { - ReportingData data = anmReportData("ANM X", "EC Number 1", FP_IUD, "2012-01-01").withQuantity("40"); - - controller.submit(data); - - verify(anmReportsRepository).save("ANM X", "EC Number 1", "IUD", "2012-01-01", "40"); - } - - @Test(expected = ReportDataMissingException.class) - public void shouldThrowExceptionWhenANMReportDataDoesNotHaveAllTheNecessaryInformation() throws Exception { - ReportingData data = anmReportData(null, null, FP_CONDOM, null); - - controller.submit(data); - } - - @Test(expected = ReportDataMissingException.class) - public void shouldThrowExceptionWhenServiceProvidedReportDataDoesNotHaveAllTheNecessaryInformation() throws Exception { - ReportingData data = serviceProvidedData("", null, BCG, null, new Location(null, null, null), null); - - controller.submit(data); - } - - @Test - public void shouldReturnListOfANMIndicatorSummaryForAllANMs() throws Exception { - ANMReport anmXReport = new ANMReport("ANM X", asList(createSummaryForIUD())); - ANMReport anmYReport = new ANMReport("ANM Y", asList(createSummaryForANC())); - when(anmReportsRepository.fetchAllANMsReport()).thenReturn(asList(anmXReport, anmYReport)); - - List summaries = controller.getAllANMsIndicatorSummaries(); - - assertEquals(asList(anmXReport, anmYReport), summaries); - } - - @Test - public void shouldUpdateListOfServiceProvidedIndicatorRowsForReportingMonthForAllANMs() throws Exception { - - HashMap data = new HashMap(); - String type = "serviceProvided"; - data.put(SERVICE_PROVIDER_TYPE, type); - data.put(EXTERNAL_ID, "external id 1"); - data.put(SERVICE_PROVIDED_DATE, "2013-01-26"); - data.put(VILLAGE, "village 1"); - data.put(SUB_CENTER, "sub center 1"); - data.put(PHC, "phc"); - data.put(QUANTITY, "1"); - data.put(INDICATOR, "INDICATOR 1"); - data.put(ANM_IDENTIFIER, "anm id 1"); - data.put(DRISTHI_ENTITY_ID, "entity id 1"); - ReportingData reportingData = new ReportingData("serviceProvided", data); - - ReportDataUpdateRequest reportDataUpdateRequest = new ReportDataUpdateRequest() - .withType(type) - .withStartDate("2013-01-26") - .withEndDate("2013-02-25") - .withReportingData(asList(reportingData)); - - String result = controller.updateReports(reportDataUpdateRequest); - - verify(servicesProvidedRepository).update(reportDataUpdateRequest); - assertEquals("Success.", result); - } - - @Test - public void shouldDeleteAllServiceProvidedReportsGivenAnEntityID() throws Exception { - ReportDataDeleteRequest deleteRequest = new ReportDataDeleteRequest() - .withType("serviceProvided") - .withDristhiEntityId("entity id 1"); - - String result = controller.deleteReports(deleteRequest); - - verify(servicesProvidedRepository).delete(deleteRequest); - verifyZeroInteractions(anmReportsRepository); - assertEquals("Success.", result); - } - - @Test - public void shouldDeleteAllANMReportsGivenAnEntityID() throws Exception { - ReportDataDeleteRequest deleteRequest = new ReportDataDeleteRequest() - .withType("anmReportData") - .withDristhiEntityId("entity id 1"); - - String result = controller.deleteReports(deleteRequest); - - verify(anmReportsRepository).delete(deleteRequest); - verifyZeroInteractions(servicesProvidedRepository); - assertEquals("Success.", result); - } - - @Test(expected = DristhiEntityIdMissingException.class) - public void shouldThrowExceptionWhenDristhiEntityIdIsNotPresent() throws Exception { - ReportDataDeleteRequest deleteRequestWithoutDristhiEntityId = new ReportDataDeleteRequest() - .withType("serviceProvided"); - controller.deleteReports(deleteRequestWithoutDristhiEntityId); - } - - @Test - public void shouldDeleteListOfANMReportsIndicatorRowsForReportingMonthForAllANMs() throws Exception { - String indicator = "INDICATOR 1"; - String startDate = "2013-01-26"; - String endDate = "2013-02-25"; - HashMap data = new HashMap(); - data.put(SERVICE_PROVIDER_TYPE, "anmReport"); - data.put(EXTERNAL_ID, "external id 1"); - data.put(SERVICE_PROVIDED_DATE, startDate); - data.put(VILLAGE, "village 1"); - data.put(SUB_CENTER, "sub center 1"); - data.put(PHC, "phc"); - data.put(QUANTITY, "1"); - data.put(INDICATOR, indicator); - data.put(ANM_IDENTIFIER, "anm id 1"); - - ReportingData reportingData = new ReportingData("anmReportData", data); - ReportDataUpdateRequest reportDataUpdateRequest = new ReportDataUpdateRequest() - .withType("anmReportData") - .withReportingData(asList(reportingData)) - .withStartDate(startDate) - .withEndDate(endDate) - .withIndicator(indicator); - - String result = controller.updateReports(reportDataUpdateRequest); - - verify(anmReportsRepository).update(reportDataUpdateRequest); - assertEquals("Success.", result); - } -} diff --git a/opensrp-reporting/src/test/java/org/opensrp/reporting/controller/SCUserDetailsFetcherTest.java b/opensrp-reporting/src/test/java/org/opensrp/reporting/controller/SCUserDetailsFetcherTest.java deleted file mode 100644 index ace124e419..0000000000 --- a/opensrp-reporting/src/test/java/org/opensrp/reporting/controller/SCUserDetailsFetcherTest.java +++ /dev/null @@ -1,31 +0,0 @@ -package org.opensrp.reporting.controller; - -import org.junit.Before; -import org.junit.Test; -import org.mockito.Mock; - -import static org.mockito.Mockito.verify; -import static org.mockito.MockitoAnnotations.initMocks; -import org.opensrp.reporting.controller.SCUserDetailsFetcher; -import org.opensrp.reporting.service.ANMService; - -public class SCUserDetailsFetcherTest { - - @Mock - private ANMService anmService; - private SCUserDetailsFetcher scUserDetailsFetcher; - - @Before - public void setUp() throws Exception { - initMocks(this); - scUserDetailsFetcher = new SCUserDetailsFetcher(anmService); - } - - @Test - public void shouldDelegateToANMServiceToFetchANMsFromSameSC() { - scUserDetailsFetcher.fetchDetails("demo1"); - - verify(anmService).anmsInTheSameSC("demo1"); - } - -} diff --git a/opensrp-reporting/src/test/java/org/opensrp/reporting/factory/DetailsFetcherFactoryTest.java b/opensrp-reporting/src/test/java/org/opensrp/reporting/factory/DetailsFetcherFactoryTest.java deleted file mode 100644 index 7af8b662be..0000000000 --- a/opensrp-reporting/src/test/java/org/opensrp/reporting/factory/DetailsFetcherFactoryTest.java +++ /dev/null @@ -1,41 +0,0 @@ -package org.opensrp.reporting.factory; - -import org.junit.Before; -import org.junit.Test; -import org.mockito.Mock; - -import static java.util.Arrays.asList; -import static org.junit.Assert.assertTrue; -import static org.mockito.MockitoAnnotations.initMocks; -import org.opensrp.reporting.controller.ANMDetailsFetcher; -import org.opensrp.reporting.controller.PHCUserDetailsFetcher; -import org.opensrp.reporting.controller.SCUserDetailsFetcher; -import org.opensrp.reporting.factory.DetailsFetcherFactory; - -public class DetailsFetcherFactoryTest { - - @Mock - private SCUserDetailsFetcher scUserDetailsFetcher; - @Mock - private PHCUserDetailsFetcher phcUserDetailsFetcher; - private DetailsFetcherFactory detailsFetcherFactory; - - @Before - public void setUp() throws Exception { - initMocks(this); - detailsFetcherFactory = new DetailsFetcherFactory(scUserDetailsFetcher, phcUserDetailsFetcher); - } - - @Test - public void shouldReturnPHCDetailsFetcherWhenUserRoleIsPHCUser() { - ANMDetailsFetcher anmDetailsFetcher = detailsFetcherFactory.detailsFetcher(asList("ROLE_PHC_USER", "ROLE_USER")); - assertTrue(anmDetailsFetcher instanceof PHCUserDetailsFetcher); - } - - @Test - public void shouldReturnPHCDetailsFetcherWhenUserRoleIsSCUser() { - ANMDetailsFetcher anmDetailsFetcher = detailsFetcherFactory.detailsFetcher(asList("ROLE_USER")); - assertTrue(anmDetailsFetcher instanceof SCUserDetailsFetcher); - } - -} diff --git a/opensrp-reporting/src/test/java/org/opensrp/reporting/repository/ANMReportsRepositoryTest.java b/opensrp-reporting/src/test/java/org/opensrp/reporting/repository/ANMReportsRepositoryTest.java deleted file mode 100644 index e56c1862d4..0000000000 --- a/opensrp-reporting/src/test/java/org/opensrp/reporting/repository/ANMReportsRepositoryTest.java +++ /dev/null @@ -1,325 +0,0 @@ -package org.opensrp.reporting.repository; - -import org.opensrp.common.domain.*; -import org.opensrp.common.monitor.Monitor; -import org.opensrp.common.util.DateUtil; -import org.junit.Before; -import org.junit.Test; -import org.mockito.Mock; - -import java.util.Date; -import java.util.HashMap; -import java.util.List; - -import static java.util.Arrays.asList; -import static junit.framework.Assert.assertEquals; -import static org.opensrp.common.AllConstants.ReportDataParameters.*; -import static org.opensrp.common.util.ANMIndicatorSummaryFactory.*; -import static org.joda.time.LocalDate.parse; -import static org.junit.Assert.assertTrue; -import static org.mockito.Mockito.*; -import static org.mockito.MockitoAnnotations.initMocks; -import org.opensrp.reporting.domain.ANM; -import org.opensrp.reporting.domain.ANMReportData; -import org.opensrp.reporting.domain.AnnualTarget; -import org.opensrp.reporting.domain.Indicator; -import org.opensrp.reporting.repository.ANMReportsRepository; -import org.opensrp.reporting.repository.AllANMReportDataRepository; -import org.opensrp.reporting.repository.AllAnnualTargetsRepository; -import org.opensrp.reporting.repository.cache.ANMCacheableRepository; -import org.opensrp.reporting.repository.cache.CacheableRepository; -import org.opensrp.reporting.repository.cache.IndicatorCacheableRepository; -import org.opensrp.reporting.repository.cache.ReadOnlyCacheableRepository; - -public class ANMReportsRepositoryTest { - @Mock - private ANMCacheableRepository anmRepository; - - @Mock - private IndicatorCacheableRepository indicatorRepository; - - @Mock - private AllANMReportDataRepository anmReportDataRepository; - - @Mock - private Monitor monitor; - - @Mock - private AllAnnualTargetsRepository annualTargetsRepository; - - private ANMReportsRepository repository; - - @Before - public void setUp() throws Exception { - initMocks(this); - repository = new ANMReportsRepository(anmRepository, indicatorRepository, - anmReportDataRepository, annualTargetsRepository, monitor, new ReportMonth()); - } - - @Test - public void shouldSaveANMReportsAndUseCachedRepositories() throws Exception { - String anmIdentifier = "ANM X"; - String externalId = "EC CASE 1"; - String indicator = "IUD"; - Date date = parse("2012-04-04").toDate(); - - Indicator fetchedIndicator = new Indicator(2, indicator); - ANM anm = new ANM(2, anmIdentifier); - - when(anmRepository.fetch(new ANM((anmIdentifier)))).thenReturn(anm); - when(indicatorRepository.fetch(new Indicator(indicator))).thenReturn(fetchedIndicator); - - repository.save(anmIdentifier, externalId, indicator, "2012-04-04", null); - repository.save(anmIdentifier, externalId, indicator, "2012-04-04", null); - - verifyCallsToReadOnlyCachedRepository(anmRepository, new ANM(anmIdentifier)); - verifyCallsToReadOnlyCachedRepository(indicatorRepository, fetchedIndicator); - - verify(anmReportDataRepository, times(2)).save(anm, externalId, fetchedIndicator, date); - } - - - @Test - public void shouldSaveAsPerQuantityIfQuantityIsNotNull() throws Exception { - String anmIdentifier = "ANM X"; - String externalId = "EC CASE 1"; - String indicator = "IUD"; - Date date = parse("2012-04-04").toDate(); - - Indicator fetchedIndicator = new Indicator(2, indicator); - ANM anm = new ANM(2, anmIdentifier); - - when(anmRepository.fetch(new ANM((anmIdentifier)))).thenReturn(anm); - when(indicatorRepository.fetch(new Indicator(indicator))).thenReturn(fetchedIndicator); - - repository.save(anmIdentifier, externalId, indicator, "2012-04-04", "50"); - - verify(anmReportDataRepository, times(50)).save(anm, externalId, fetchedIndicator, date); - } - - @Test - public void shouldFetchANMIndicatorSummaries() throws Exception { - DateUtil.fakeIt(parse("2012-06-30")); - ANM anm = new ANM("ANM X"); - Date date1 = parse("2012-03-29").toDate(); - Date date2 = parse("2012-05-15").toDate(); - Date date3 = parse("2012-05-30").toDate(); - Indicator indicator1 = new Indicator("IUD"); - Indicator indicator2 = new Indicator("ANC"); - when(anmReportDataRepository.fetchByANMIdAndDate("ANM X", parse("2012-03-26").toDate())).thenReturn(asList( - new ANMReportData(anm, "CASE 1", indicator1, date1), - new ANMReportData(anm, "CASE 2", indicator1, date1), - new ANMReportData(anm, "CASE 3", indicator1, date2), - new ANMReportData(anm, "CASE 4", indicator1, date2), - new ANMReportData(anm, "CASE 5", indicator2, date3), - new ANMReportData(anm, "CASE 6", indicator2, date3))); - when(annualTargetsRepository.fetchFor("ANM X", indicator1, parse("2012-06-30").toDate())).thenReturn(new AnnualTarget(1, 1, "40", parse("2012-03-26").toDate(), parse("2013-03-25").toDate())); - when(annualTargetsRepository.fetchFor("ANM X", indicator2, parse("2012-06-30").toDate())).thenReturn(new AnnualTarget(1, 1, "30", parse("2012-03-26").toDate(), parse("2013-03-25").toDate())); - - List anmIndicatorSummaries = repository.fetchANMSummary("ANM X"); - - assertTrue(anmIndicatorSummaries.containsAll(asList(createSummaryForANC(), createSummaryForIUD()))); - assertEquals(2, anmIndicatorSummaries.size()); - } - - @Test - public void shouldSetMonthOfSummaryToBeNextYearsInCaseOfLastMonthOfTheYear() throws Exception { - DateUtil.fakeIt(parse("2013-01-30")); - ANM anm = new ANM("ANM X"); - Date date = parse("2012-12-29").toDate(); - Indicator indicator = new Indicator("IUD"); - when(anmReportDataRepository.fetchByANMIdAndDate("ANM X", parse("2012-03-26").toDate())).thenReturn(asList(new ANMReportData(anm, "CASE 1", indicator, date))); - when(annualTargetsRepository.fetchFor("ANM X", indicator, parse("2013-01-30").toDate())).thenReturn(new AnnualTarget(1, 1, "40", parse("2012-03-26").toDate(), parse("2013-03-25").toDate())); - - List anmIndicatorSummaries = repository.fetchANMSummary("ANM X"); - - assertEquals(asList(new ANMIndicatorSummary("IUD", "40", asList(new MonthSummary("1", "2013", "1", "1", asList("CASE 1"))))), anmIndicatorSummaries); - } - - @Test - public void shouldFetchANMIndicatorSummariesIncludingAllServicesProvidedTillTheCurrentMonth() throws Exception { - DateUtil.fakeIt(parse("2013-01-15")); - ANM anm = new ANM("ANM X"); - Date january = parse("2013-01-11").toDate(); - Indicator indicator1 = new Indicator("IUD"); - when(anmReportDataRepository.fetchByANMIdAndDate("ANM X", parse("2012-03-26").toDate())).thenReturn(asList( - new ANMReportData(anm, "CASE 1", indicator1, january))); - when(annualTargetsRepository.fetchFor("ANM X", indicator1, parse("2013-01-15").toDate())).thenReturn(new AnnualTarget(1, 1, "40", parse("2012-03-26").toDate(), parse("2013-03-25").toDate())); - - List anmIndicatorSummaries = repository.fetchANMSummary("ANM X"); - - assertEquals(1, anmIndicatorSummaries.size()); - assertEquals(1, anmIndicatorSummaries.get(0).monthlySummaries().size()); - } - - @Test - public void shouldFetchANMIndicatorSummariesWithDistinctExternalIds() throws Exception { - DateUtil.fakeIt(parse("2013-03-22")); - ANM anm = new ANM("ANM X"); - Date dates = parse("2013-03-21").toDate(); - Indicator indicator = new Indicator("CONDOM"); - when(anmReportDataRepository.fetchByANMIdAndDate("ANM X", parse("2012-03-26").toDate())).thenReturn(asList( - new ANMReportData(anm, "CASE 7", indicator, dates), - new ANMReportData(anm, "CASE 7", indicator, dates))); - when(annualTargetsRepository.fetchFor("ANM X", indicator, parse("2013-03-22").toDate())).thenReturn(new AnnualTarget(1, 1, "20", parse("2012-03-26").toDate(), parse("2013-03-25").toDate())); - - List anmIndicatorSummaries = repository.fetchANMSummary("ANM X"); - - System.out.println(anmIndicatorSummaries); - assertTrue(anmIndicatorSummaries.containsAll(asList(createSummaryForCondom()))); - assertEquals(1, anmIndicatorSummaries.size()); - } - - @Test - public void shouldFetchANMIndicatorSummariesForCurrentReportingYear() throws Exception { - DateUtil.fakeIt(parse("2013-01-02")); - - repository.fetchANMSummary("ANM X"); - - verify(anmReportDataRepository).fetchByANMIdAndDate("ANM X", parse("2012-03-26").toDate()); - } - - @Test - public void shouldFetchReportsForCurrentYearIfCurrentDayIsFirstDayOfTheReportingYear() throws Exception { - DateUtil.fakeIt(parse("2012-03-26")); - - repository.fetchANMSummary("ANM X"); - - verify(anmReportDataRepository).fetchByANMIdAndDate("ANM X", parse("2012-03-26").toDate()); - } - - @Test - public void shouldFetchReportsForPreviousYearIfCurrentDayIsLastDayOfTheReportingYear() throws Exception { - DateUtil.fakeIt(parse("2013-03-25")); - - repository.fetchANMSummary("ANM X"); - - verify(anmReportDataRepository).fetchByANMIdAndDate("ANM X", parse("2012-03-26").toDate()); - } - - @Test - public void shouldReturnEmptyANMIndicatorSummariesWhenThereIsNoDataForANM() throws Exception { - DateUtil.fakeIt(parse("2012-03-31")); - when(anmReportDataRepository.fetchByANMIdAndDate("ANM X", parse("2012-01-01").toDate())).thenReturn(null); - - List anmIndicatorSummaries = repository.fetchANMSummary("ANM X"); - - assertEquals(0, anmIndicatorSummaries.size()); - } - - @Test - public void shouldReturnANMIndicatorSummariesWithNullAnnualTargetWhenThereIsNoAnnualTargetForANM() throws Exception { - DateUtil.fakeIt(parse("2012-06-30")); - ANM anm = new ANM("ANM X"); - Date date1 = parse("2012-03-29").toDate(); - Date date2 = parse("2012-05-15").toDate(); - Indicator indicator = new Indicator("IUD"); - when(anmReportDataRepository.fetchByANMIdAndDate("ANM X", parse("2012-03-26").toDate())).thenReturn(asList( - new ANMReportData(anm, "CASE 1", indicator, date1), - new ANMReportData(anm, "CASE 2", indicator, date1), - new ANMReportData(anm, "CASE 3", indicator, date2), - new ANMReportData(anm, "CASE 4", indicator, date2))); - when(annualTargetsRepository.fetchFor("ANM X", new Indicator("IUD"), parse("2012-06-30").toDate())).thenReturn(null); - - List anmIndicatorSummaries = repository.fetchANMSummary("ANM X"); - - ANMIndicatorSummary expectedANMIUDSummary = createSummaryForIUD(null); - assertEquals(asList(expectedANMIUDSummary), anmIndicatorSummaries); - } - - @Test - public void shouldReturnAllANMReports() throws Exception { - DateUtil.fakeIt(parse("2012-06-30")); - ANM anmX = new ANM("ANM X"); - ANM anmY = new ANM("ANM Y"); - Date date1 = parse("2012-03-29").toDate(); - Date date2 = parse("2012-04-30").toDate(); - Date date3 = parse("2012-05-27").toDate(); - Indicator indicator1 = new Indicator("IUD"); - Indicator indicator2 = new Indicator("ANC"); - when(anmReportDataRepository.fetchByANMIdAndDate("ANM X", parse("2012-03-26").toDate())).thenReturn(asList( - new ANMReportData(anmX, "CASE 1", indicator1, date1), - new ANMReportData(anmX, "CASE 2", indicator1, date1), - new ANMReportData(anmX, "CASE 3", indicator1, date2), - new ANMReportData(anmX, "CASE 4", indicator1, date2))); - when(anmReportDataRepository.fetchByANMIdAndDate("ANM Y", parse("2012-03-26").toDate())).thenReturn(asList( - new ANMReportData(anmY, "CASE 5", indicator2, date3), - new ANMReportData(anmY, "CASE 6", indicator2, date3))); - when(annualTargetsRepository.fetchFor("ANM X", indicator1, parse("2012-06-30").toDate())).thenReturn(new AnnualTarget(1, 1, "40", parse("2012-03-26").toDate(), parse("2013-03-25").toDate())); - when(annualTargetsRepository.fetchFor("ANM Y", indicator2, parse("2012-06-30").toDate())).thenReturn(new AnnualTarget(1, 1, "30", parse("2012-03-26").toDate(), parse("2013-03-25").toDate())); - when(anmRepository.fetchAll()).thenReturn(asList(anmX, anmY)); - - List anmReports = repository.fetchAllANMsReport(); - - ANMReport anmXReport = new ANMReport("ANM X", asList(createSummaryForIUD())); - ANMReport anmYReport = new ANMReport("ANM Y", asList(createSummaryForANC())); - - assertTrue(anmReports.containsAll(asList(anmXReport, anmYReport))); - assertEquals(2, anmReports.size()); - } - - @Test - public void shouldUpdateAllIndicatorsForReportingMonthForAllANMS() { - String anmIdentifier = "ANM X"; - String externalId = "EC CASE 1"; - String indicator = "INDICATOR 1"; - String reportDate = "2013-01-26"; - Date date = parse(reportDate).toDate(); - - Indicator fetchedIndicator = new Indicator(2, indicator); - ANM anm = new ANM(2, anmIdentifier); - HashMap data = new HashMap(); - data.put(SERVICE_PROVIDER_TYPE, "ANM"); - data.put(SERVICE_PROVIDED_DATE, reportDate); - data.put(EXTERNAL_ID, externalId); - data.put(PHC, "phc"); - data.put(QUANTITY, "1"); - data.put(INDICATOR, indicator); - data.put(ANM_IDENTIFIER, anmIdentifier); - - ReportingData reportingData = new ReportingData("type", data) - .withQuantity("1"); - - ReportDataUpdateRequest request = new ReportDataUpdateRequest().withType("type") - .withIndicator(indicator) - .withStartDate("2013-01-26") - .withEndDate("2013-02-25") - .withReportingData(asList(reportingData)); - - when(anmRepository.fetch(new ANM((anmIdentifier)))).thenReturn(anm); - when(indicatorRepository.fetch(new Indicator(indicator))).thenReturn(fetchedIndicator); - - repository.update(request); - - verify(anmReportDataRepository).delete("INDICATOR 1", "2013-01-26", "2013-02-25"); - verify(anmReportDataRepository).save(anm, externalId, fetchedIndicator, date); - } - - @Test - public void shouldCallANMReportRepositoryForReports() { - repository.getReportsFor("ANM X", "2013-10-26", "2013-11-25"); - - verify(anmReportDataRepository).getReportsFor("ANM X", "2013-10-26", "2013-11-25"); - } - - @Test - public void shouldDeleteANMReportsForGivenExternalId() { - ReportDataDeleteRequest request = new ReportDataDeleteRequest() - .withType("type") - .withDristhiEntityId("entity id 1"); - repository.delete(request); - verify(anmReportDataRepository).deleteReportsForExternalId("entity id 1"); - } - - private void verifyCallsToReadOnlyCachedRepository(ReadOnlyCacheableRepository repo, T object) { - verify(repo, times(1)).fetch(object); - verifyNoMoreInteractions(repo); - } - - - private void verifyCallsToCachedRepository(CacheableRepository blah, T obj) { - verify(blah, times(1)).fetch(obj); - verify(blah, times(0)).save(obj); - verifyNoMoreInteractions(blah); - } -} diff --git a/opensrp-reporting/src/test/java/org/opensrp/reporting/repository/ServicesProvidedRepositoryTest.java b/opensrp-reporting/src/test/java/org/opensrp/reporting/repository/ServicesProvidedRepositoryTest.java deleted file mode 100644 index f79c2f7422..0000000000 --- a/opensrp-reporting/src/test/java/org/opensrp/reporting/repository/ServicesProvidedRepositoryTest.java +++ /dev/null @@ -1,183 +0,0 @@ -package org.opensrp.reporting.repository; - -import org.opensrp.common.domain.ReportDataDeleteRequest; -import org.opensrp.common.domain.ReportDataUpdateRequest; -import org.opensrp.common.domain.ReportingData; -import org.opensrp.common.monitor.Monitor; -import org.opensrp.reporting.domain.*; -import org.joda.time.LocalDate; -import org.junit.Before; -import org.junit.Test; -import org.mockito.Mock; - -import java.util.Date; -import java.util.HashMap; - -import static java.util.Arrays.asList; -import static org.opensrp.common.AllConstants.ReportDataParameters.*; -import static org.mockito.Mockito.*; -import static org.mockito.MockitoAnnotations.initMocks; -import org.opensrp.reporting.domain.Indicator; -import org.opensrp.reporting.domain.Location; -import org.opensrp.reporting.domain.PHC; -import org.opensrp.reporting.domain.ServiceProvider; - -import org.opensrp.reporting.repository.AllLocationsRepository; -import org.opensrp.reporting.repository.AllServiceProvidersRepository; -import org.opensrp.reporting.repository.AllServicesProvidedRepository; -import org.opensrp.reporting.repository.ServicesProvidedRepository; -import org.opensrp.reporting.repository.cache.CacheableRepository; -import org.opensrp.reporting.repository.cache.IndicatorCacheableRepository; -import org.opensrp.reporting.repository.cache.ReadOnlyCacheableRepository; - -import static org.opensrp.reporting.domain.ServiceProviderType.ANM; - -public class ServicesProvidedRepositoryTest { - @Mock - private IndicatorCacheableRepository indicatorRepository; - - @Mock - private AllLocationsRepository locationRepository; - - @Mock - private AllServiceProvidersRepository serviceProvidersRepository; - - @Mock - private AllServicesProvidedRepository servicesProvidedRepository; - - @Mock - private Monitor monitor; - - private ServicesProvidedRepository repository; - - @Before - public void setUp() throws Exception { - initMocks(this); - repository = new ServicesProvidedRepository(indicatorRepository, locationRepository, serviceProvidersRepository, servicesProvidedRepository, monitor); - } - - @Test - public void shouldSaveReportDataAndUseCachedRepositories() throws Exception { - String anmIdentifier = "ANM X"; - String externalId = "12345"; - String indicator = "ANC"; - String village = "Bherya"; - String subCenter = "Sub Center"; - Date date = LocalDate.parse("2012-04-04").toDate(); - PHC phc = new PHC(34, "PHC X", "PHC"); - String dristhiEntityId = "entity id 1"; - ServiceProvider serviceProvider = new ServiceProvider(2, 2, ANM); - Indicator fetchedIndicator = new Indicator(2, indicator); - Location location = new Location(2, village, subCenter, phc, "taluka", "mysore", "karnataka"); - when(serviceProvidersRepository.fetchBy("ANM X", ANM)).thenReturn(serviceProvider); - when(indicatorRepository.fetch(new Indicator(indicator))).thenReturn(fetchedIndicator); - when(locationRepository.fetchBy(village, subCenter, phc.phcIdentifier())).thenReturn(location); - - repository.save(anmIdentifier, "ANM", externalId, indicator, "2012-04-04", village, subCenter, phc.phcIdentifier(), null, dristhiEntityId); - repository.save(anmIdentifier, "ANM", externalId, indicator, "2012-04-04", village, subCenter, phc.phcIdentifier(), null, dristhiEntityId); - - verifyCallsToReadOnlyCachedRepository(indicatorRepository, new Indicator(indicator)); - verify(locationRepository, times(2)).fetchBy(village, subCenter, phc.phcIdentifier()); - verify(serviceProvidersRepository, times(2)).fetchBy(anmIdentifier, ANM); - verify(servicesProvidedRepository, times(2)).save(serviceProvider, "12345", fetchedIndicator, date, location, dristhiEntityId); - } - - @Test - public void shouldSaveAsPerQuantityIfQuantityIsNotNull() throws Exception { - String anmIdentifier = "ANM X"; - String externalId = "12345"; - String indicator = "ANC"; - String village = "Bherya"; - String subCenter = "Sub Center"; - String dristhiEntityId = "entity id 1"; - Date date = LocalDate.parse("2012-04-04").toDate(); - PHC phc = new PHC(34, "PHC X", "PHC"); - - ServiceProvider serviceProvider = new ServiceProvider(2, 2, ANM); - Indicator fetchedIndicator = new Indicator(2, indicator); - Location location = new Location(2, village, subCenter, phc, "taluka", "mysore", "karnataka"); - when(serviceProvidersRepository.fetchBy("ANM X", ANM)).thenReturn(serviceProvider); - when(indicatorRepository.fetch(new Indicator(indicator))).thenReturn(fetchedIndicator); - when(locationRepository.fetchBy(village, subCenter, phc.phcIdentifier())).thenReturn(location); - - repository.save(anmIdentifier, "ANM", externalId, indicator, "2012-04-04", village, subCenter, phc.phcIdentifier(), "40", dristhiEntityId); - - verify(servicesProvidedRepository, times(40)).save(serviceProvider, "12345", fetchedIndicator, date, location, dristhiEntityId); - } - - @Test - public void shouldUpdateListOfServiceProvidedIndicatorRowsForReportingMonthForAllANMs() throws Exception { - String anmIdentifier = "ANM X"; - String externalId = "12345"; - String indicator = "INDICATOR 1"; - String village = "Bherya"; - String subCenter = "Sub Center"; - String startDate = "2013-01-26"; - String endDate = "2013-02-25"; - - HashMap data = new HashMap(); - data.put(SERVICE_PROVIDER_TYPE, "ANM"); - data.put(EXTERNAL_ID, externalId); - data.put(SERVICE_PROVIDED_DATE, startDate); - data.put(VILLAGE, village); - data.put(SUB_CENTER, subCenter); - data.put(PHC,"phc"); - data.put(QUANTITY, "1"); - data.put(INDICATOR, indicator); - data.put(ANM_IDENTIFIER, anmIdentifier); - data.put(DRISTHI_ENTITY_ID, "entity id 1"); - ReportingData reportingData = new ReportingData("type", data); - - ReportDataUpdateRequest request = new ReportDataUpdateRequest() - .withType("type") - .withIndicator(indicator) - .withStartDate(startDate) - .withEndDate(endDate) - .withReportingData(asList(reportingData)); - - Date date = LocalDate.parse(startDate).toDate(); - PHC phc = new PHC(34, "phc", "PHC"); - - ServiceProvider serviceProvider = new ServiceProvider(2, 2, ANM); - Indicator fetchedIndicator = new Indicator(2, indicator); - Location location = new Location(2, village, subCenter, phc, "taluka", "mysore", "karnataka"); - when(serviceProvidersRepository.fetchBy(anmIdentifier, ANM)).thenReturn(serviceProvider); - when(indicatorRepository.fetch(new Indicator(indicator))).thenReturn(fetchedIndicator); - when(locationRepository.fetchBy(village, subCenter, phc.phcIdentifier())).thenReturn(location); - - repository.update(request); - - verify(servicesProvidedRepository).delete(indicator, startDate, endDate); - verify(servicesProvidedRepository).save(serviceProvider, "12345", fetchedIndicator, date, location, "entity id 1"); - } - - @Test - public void shouldDeleteAllReportsForGivenDristhiEntityID() throws Exception { - ReportDataDeleteRequest request = new ReportDataDeleteRequest() - .withType("type") - .withDristhiEntityId("entity id 1"); - - repository.delete(request); - - verify(servicesProvidedRepository).deleteReportsFor("entity id 1"); - } - - @Test - public void shouldCallServiceProvidedRepositoryForReports() { - repository.getNewReports(1232); - - verify(servicesProvidedRepository).getNewReports(1232); - } - - - private void verifyCallsToReadOnlyCachedRepository(ReadOnlyCacheableRepository repo, T object) { - verify(repo, times(1)).fetch(object); - verifyNoMoreInteractions(repo); - } - - private void verifyCallsToCachedRepository(CacheableRepository repo, T object) { - verify(repo, times(1)).fetch(object); - verify(repo, times(0)).save(object); - verifyNoMoreInteractions(repo); - } -} diff --git a/opensrp-reporting/src/test/java/org/opensrp/reporting/repository/TestANMReportDataAccessTemplate.java b/opensrp-reporting/src/test/java/org/opensrp/reporting/repository/TestANMReportDataAccessTemplate.java deleted file mode 100644 index 29702d6f9d..0000000000 --- a/opensrp-reporting/src/test/java/org/opensrp/reporting/repository/TestANMReportDataAccessTemplate.java +++ /dev/null @@ -1,18 +0,0 @@ -package org.opensrp.reporting.repository; - -import org.hibernate.SessionFactory; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.beans.factory.annotation.Qualifier; -import org.springframework.context.annotation.Scope; -import org.springframework.orm.hibernate3.HibernateTemplate; -import org.springframework.stereotype.Component; - -@Component -@Scope(value = "prototype") -public class TestANMReportDataAccessTemplate extends HibernateTemplate { - @Autowired - public TestANMReportDataAccessTemplate(@Qualifier(value = "anmReportsSessionFactory") SessionFactory sessionFactory) { - super(sessionFactory); - setAllowCreate(true); - } -} diff --git a/opensrp-reporting/src/test/java/org/opensrp/reporting/repository/TestServiceProvidedDataAccessTemplate.java b/opensrp-reporting/src/test/java/org/opensrp/reporting/repository/TestServiceProvidedDataAccessTemplate.java deleted file mode 100644 index 7d4ae78dc0..0000000000 --- a/opensrp-reporting/src/test/java/org/opensrp/reporting/repository/TestServiceProvidedDataAccessTemplate.java +++ /dev/null @@ -1,18 +0,0 @@ -package org.opensrp.reporting.repository; - -import org.hibernate.SessionFactory; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.beans.factory.annotation.Qualifier; -import org.springframework.context.annotation.Scope; -import org.springframework.orm.hibernate3.HibernateTemplate; -import org.springframework.stereotype.Component; - -@Component -@Scope(value = "prototype") -public class TestServiceProvidedDataAccessTemplate extends HibernateTemplate { - @Autowired - public TestServiceProvidedDataAccessTemplate(@Qualifier(value = "serviceProvidedSessionFactory") SessionFactory sessionFactory) { - super(sessionFactory); - setAllowCreate(true); - } -} diff --git a/opensrp-reporting/src/test/java/org/opensrp/reporting/repository/cache/ReadOnlyCachingRepositoryTest.java b/opensrp-reporting/src/test/java/org/opensrp/reporting/repository/cache/ReadOnlyCachingRepositoryTest.java deleted file mode 100644 index 40defac72b..0000000000 --- a/opensrp-reporting/src/test/java/org/opensrp/reporting/repository/cache/ReadOnlyCachingRepositoryTest.java +++ /dev/null @@ -1,82 +0,0 @@ -package org.opensrp.reporting.repository.cache; - -import org.junit.Before; -import org.junit.Test; -import org.mockito.Mock; - -import static org.junit.Assert.assertEquals; -import static org.mockito.Mockito.*; -import static org.mockito.MockitoAnnotations.initMocks; -import org.opensrp.reporting.domain.ANM; -import org.opensrp.reporting.domain.Indicator; -import org.opensrp.reporting.repository.cache.ANMCacheableRepository; -import org.opensrp.reporting.repository.cache.IndicatorCacheableRepository; -import org.opensrp.reporting.repository.cache.ReadOnlyCacheableRepository; -import org.opensrp.reporting.repository.cache.ReadOnlyCachingRepository; - -public class ReadOnlyCachingRepositoryTest { - @Mock - private ANMCacheableRepository anmsRepository; - @Mock - private IndicatorCacheableRepository indicatorRepository; - - @Before - public void setUp() throws Exception { - initMocks(this); - } - - @Test - public void shouldOnlyFetchNewANMsAndFetchOldOnesFromCache() throws Exception { - assertCacheableReadOnly(anmsRepository, new FactoryForReadOnlyCache() { - @Override - public ANM objectNotInDB() { - return new ANM(1, "ANM Y"); - } - - @Override - public ANM objectInDB() { - return new ANM(4, "ANM X"); - } - }); - } - - @Test - public void shouldOnlyFetchNewIndicationsAndFetchOldOnesFromCache() throws Exception { - assertCacheableReadOnly(indicatorRepository, new FactoryForReadOnlyCache() { - @Override - public Indicator objectNotInDB() { - return new Indicator(1, "BCG"); - } - - @Override - public Indicator objectInDB() { - return new Indicator(4, "IUD"); - } - }); - } - - private void assertCacheableReadOnly(ReadOnlyCacheableRepository cacheableRepository, final FactoryForReadOnlyCache factory) { - ReadOnlyCachingRepository repository = new ReadOnlyCachingRepository<>(cacheableRepository); - - T objectInDB = factory.objectInDB(); - T objectNotInDB = factory.objectNotInDB(); - when(cacheableRepository.fetch(objectInDB)).thenReturn(objectInDB); - when(cacheableRepository.fetch(objectNotInDB)).thenReturn(null); - - assertEquals(objectInDB, repository.fetch(objectInDB)); - assertEquals(objectInDB, repository.fetch(objectInDB)); - assertEquals(null, repository.fetch(objectNotInDB)); - - verify(cacheableRepository, times(1)).fetch(objectInDB); - verify(cacheableRepository, times(1)).fetch(objectNotInDB); - verifyNoMoreInteractions(cacheableRepository); - } - - private abstract class FactoryForReadOnlyCache { - public abstract T objectNotInDB(); - - public abstract T objectInDB(); - } - - -} diff --git a/opensrp-reporting/src/test/java/org/opensrp/reporting/repository/it/ANMReportDataIntegrationTest.java b/opensrp-reporting/src/test/java/org/opensrp/reporting/repository/it/ANMReportDataIntegrationTest.java deleted file mode 100644 index c3e1a53588..0000000000 --- a/opensrp-reporting/src/test/java/org/opensrp/reporting/repository/it/ANMReportDataIntegrationTest.java +++ /dev/null @@ -1,168 +0,0 @@ -package org.opensrp.reporting.repository.it; - -import org.joda.time.LocalDate; -import org.junit.Test; -import org.opensrp.reporting.domain.ANM; -import org.opensrp.reporting.domain.ANMReportData; -import org.opensrp.reporting.domain.Indicator; -import org.opensrp.reporting.repository.AllANMReportDataRepository; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.test.annotation.Rollback; -import org.springframework.transaction.annotation.Transactional; - -import java.util.Date; -import java.util.List; - -import static junit.framework.Assert.assertEquals; -import static junit.framework.Assert.assertTrue; - -public class ANMReportDataIntegrationTest extends ANMReportsIntegrationTestBase { - @Autowired - private AllANMReportDataRepository repository; - - @Test - @Transactional("anm_report") - @Rollback - public void shouldSaveANMReportData() throws Exception { - ANM anm = new ANM("ANM X"); - Date dates = LocalDate.now().toDate(); - Indicator indicator = new Indicator("ANC Indicator"); - template.save(anm); - template.save(indicator); - - repository.save(anm, "EC CASE X", indicator, dates); - - assertEquals(1, template.loadAll(ANMReportData.class).size()); - } - - @Test - @Transactional("anm_report") - @Rollback - public void shouldLoadDataWithDimensions() throws Exception { - ANM anm = new ANM("ANM X"); - Date dates = LocalDate.now().toDate(); - Indicator indicator = new Indicator("ANC Indicator"); - template.save(anm); - template.save(indicator); - - repository.save(anm, "EC CASE X", indicator, dates); - - ANMReportData anmReportData = template.loadAll(ANMReportData.class).get(0); - - assertEquals(indicator, anmReportData.indicator()); - assertEquals(dates, anmReportData.date()); - } - - @Test - @Transactional("anm_report") - @Rollback - public void shouldFetchReportDataByANMIdAndDate() throws Exception { - ANM anm1 = new ANM("ANM X"); - ANM anm2 = new ANM("ANM Y"); - Date date = LocalDate.parse("2012-03-31").toDate(); - Indicator indicator = new Indicator("ANC Indicator"); - template.save(anm1); - template.save(anm2); - template.save(indicator); - repository.save(anm1, "EC CASE X", indicator, date); - repository.save(anm2, "EC CASE Y", indicator, date); - - List anmReportDataList = repository.fetchByANMIdAndDate(anm1.anmIdentifier(), LocalDate.parse("2012-01-01").toDate()); - - assertTrue(anmReportDataList.contains(new ANMReportData(anm1, "EC CASE X", indicator, date))); - assertEquals(1, anmReportDataList.size()); - } - - @Test - @Transactional("anm_report") - @Rollback - public void shouldFetchReportDataOnOrAfterGivenDate() throws Exception { - ANM anm1 = new ANM("ANM X"); - ANM anm2 = new ANM("ANM Y"); - Date dates1 = LocalDate.parse("2012-03-30").toDate(); - Date dates2 = LocalDate.parse("2012-03-31").toDate(); - Date dates3 = LocalDate.parse("2012-04-01").toDate(); - Indicator indicator = new Indicator("ANC Indicator"); - template.save(anm1); - template.save(anm2); - template.save(indicator); - repository.save(anm1, "EC CASE X", indicator, dates1); - repository.save(anm1, "EC CASE X", indicator, dates2); - repository.save(anm1, "EC CASE X", indicator, dates3); - repository.save(anm2, "EC CASE Y", indicator, dates2); - - List anmReportDataList = repository.fetchByANMIdAndDate(anm1.anmIdentifier(), LocalDate.parse("2012-03-31").toDate()); - - assertTrue(anmReportDataList.contains(new ANMReportData(anm1, "EC CASE X", indicator, dates2))); - assertTrue(anmReportDataList.contains(new ANMReportData(anm1, "EC CASE X", indicator, dates3))); - assertEquals(2, anmReportDataList.size()); - } - - @Test - @Transactional("anm_report") - @Rollback - public void shouldDeleteAllIndicatorsForReportingMonthForAllANMs() throws Exception { - ANM anm = new ANM("ANM X"); - Date startDate = LocalDate.parse("2013-01-26").toDate(); - Date endDate = LocalDate.parse("2013-02-25").toDate(); - Indicator indicator = new Indicator("ANC Indicator"); - template.save(anm); - template.save(indicator); - - repository.delete("ANC Indicator", "2013-01-26", "2013-02-25"); - - assertEquals(0, template.loadAll(ANMReportData.class).size()); - } - - @Test - @Transactional("anm_report") - @Rollback - public void shouldFetchANMReportDataForReportingMonth() throws Exception { - ANM anm = new ANM("ANM X"); - Date startDate = LocalDate.parse("2012-10-26").toDate(); - Indicator indicator = new Indicator("INDICATOR 1"); - template.save(anm); - template.save(indicator); - repository.save(anm, "123", indicator, startDate); - - List result = repository.getReportsFor("ANM X", "2012-10-26", "2012-11-25"); - - assertEquals(1, result.size()); - } - - @Test - @Transactional("anm_report") - @Rollback - public void shouldFetchAllReportDataForGivenExternalId() throws Exception { - ANM anm = new ANM("ANM X"); - Date startDate = LocalDate.parse("2012-10-26").toDate(); - Indicator indicator = new Indicator("INDICATOR 1"); - String externalId = "entity id 1"; - template.save(anm); - template.save(indicator); - repository.save(anm, externalId, indicator, startDate); - - List result = repository.getReportsForExternalId("entity id 1"); - - assertEquals(1, result.size()); - } - - @Test - @Transactional("anm_report") - @Rollback - public void shouldDeleteAllReportDataForGivenExternalId() throws Exception { - ANM anm = new ANM("ANM X"); - Date startDate = LocalDate.parse("2012-10-26").toDate(); - Indicator indicator = new Indicator("INDICATOR 1"); - String externalId = "entity id 1"; - String anotherExternalId = "entity id 2"; - template.save(anm); - template.save(indicator); - repository.save(anm, externalId, indicator, startDate); - repository.save(anm, anotherExternalId, indicator, startDate); - - repository.deleteReportsForExternalId("entity id 1"); - - assertEquals(0, repository.getReportsForExternalId("entity id 1").size()); - } -} diff --git a/opensrp-reporting/src/test/java/org/opensrp/reporting/repository/it/ANMReportsIntegrationTestBase.java b/opensrp-reporting/src/test/java/org/opensrp/reporting/repository/it/ANMReportsIntegrationTestBase.java deleted file mode 100644 index c5182874b1..0000000000 --- a/opensrp-reporting/src/test/java/org/opensrp/reporting/repository/it/ANMReportsIntegrationTestBase.java +++ /dev/null @@ -1,20 +0,0 @@ -package org.opensrp.reporting.repository.it; - -import org.junit.Test; -import org.junit.runner.RunWith; -import org.opensrp.reporting.repository.TestANMReportDataAccessTemplate; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.test.context.ContextConfiguration; -import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; - -@RunWith(SpringJUnit4ClassRunner.class) -@ContextConfiguration("classpath:spring/applicationContext-opensrp-reporting-test.xml") -public class ANMReportsIntegrationTestBase { - @Autowired - protected TestANMReportDataAccessTemplate template; - - @Test - public void test(){ - - } -} diff --git a/opensrp-reporting/src/test/java/org/opensrp/reporting/repository/it/AllANMsRepositoryIntegrationTest.java b/opensrp-reporting/src/test/java/org/opensrp/reporting/repository/it/AllANMsRepositoryIntegrationTest.java deleted file mode 100644 index 2d4f8530fa..0000000000 --- a/opensrp-reporting/src/test/java/org/opensrp/reporting/repository/it/AllANMsRepositoryIntegrationTest.java +++ /dev/null @@ -1,32 +0,0 @@ -package org.opensrp.reporting.repository.it; - -import org.junit.Test; -import org.opensrp.reporting.domain.ANM; -import org.opensrp.reporting.repository.AllANMsRepository; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.test.annotation.Rollback; -import org.springframework.transaction.annotation.Transactional; - -import java.util.List; - -import static java.util.Arrays.asList; -import static junit.framework.Assert.assertTrue; - -public class AllANMsRepositoryIntegrationTest extends ANMReportsIntegrationTestBase { - @Autowired - private AllANMsRepository repository; - - @Test - @Transactional("anm_report") - @Rollback - public void shouldFetchAllANMs() throws Exception { - ANM anmX = new ANM("ANM X"); - ANM anmY = new ANM("ANM Y"); - template.save(anmX); - template.save(anmY); - - List anms = repository.fetchAll(); - - assertTrue(anms.containsAll(asList(anmX, anmY))); - } -} diff --git a/opensrp-reporting/src/test/java/org/opensrp/reporting/repository/it/AllAnnualTargetsRepositoryIntegrationTest.java b/opensrp-reporting/src/test/java/org/opensrp/reporting/repository/it/AllAnnualTargetsRepositoryIntegrationTest.java deleted file mode 100644 index 71c45ab866..0000000000 --- a/opensrp-reporting/src/test/java/org/opensrp/reporting/repository/it/AllAnnualTargetsRepositoryIntegrationTest.java +++ /dev/null @@ -1,69 +0,0 @@ -package org.opensrp.reporting.repository.it; - -import org.junit.Test; -import org.opensrp.reporting.domain.ANM; -import org.opensrp.reporting.domain.AnnualTarget; -import org.opensrp.reporting.domain.Indicator; -import org.opensrp.reporting.repository.AllAnnualTargetsRepository; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.test.annotation.Rollback; -import org.springframework.transaction.annotation.Transactional; - -import static junit.framework.Assert.assertEquals; -import static junit.framework.Assert.assertNull; -import static org.joda.time.LocalDate.parse; - -public class AllAnnualTargetsRepositoryIntegrationTest extends ANMReportsIntegrationTestBase { - @Autowired - private AllAnnualTargetsRepository repository; - - @Test - @Transactional("anm_report") - @Rollback - public void shouldFetchAnnualTargetForGivenANMAndIndicator() throws Exception { - Indicator indicator = new Indicator("INDICATOR"); - ANM anm = new ANM("ANM X"); - template.save(indicator); - template.save(anm); - template.save(new AnnualTarget(anm.id(), indicator.id(), "40", parse("2012-03-26").toDate(), parse("2013-03-25").toDate())); - - AnnualTarget annualTarget = repository.fetchFor(anm.anmIdentifier(), indicator, parse("2012-03-31").toDate()); - - assertEquals("40", annualTarget.target()); - } - - @Test - @Transactional("anm_report") - @Rollback - public void shouldFetchNoAnnualTargetIfReportDateIsNotWithinRange() throws Exception { - Indicator indicator = new Indicator("INDICATOR"); - ANM anm = new ANM("ANM X"); - template.save(indicator); - template.save(anm); - template.save(new AnnualTarget(anm.id(), indicator.id(), "40", parse("2012-03-26").toDate(), parse("2013-03-25").toDate())); - - AnnualTarget annualTarget = repository.fetchFor(anm.anmIdentifier(), indicator, parse("2012-02-28").toDate()); - - assertNull(annualTarget); - } - - @Test - @Transactional("anm_report") - @Rollback - public void shouldFetchAnnualTargetIfReportDateIsStartOrEndOfRange() throws Exception { - Indicator firstIndicator = new Indicator("INDICATOR1"); - Indicator secondIndicator = new Indicator("INDICATOR2"); - ANM anm = new ANM("ANM X"); - template.save(firstIndicator); - template.save(secondIndicator); - template.save(anm); - template.save(new AnnualTarget(anm.id(), firstIndicator.id(), "40", parse("2012-03-26").toDate(), parse("2013-03-25").toDate())); - template.save(new AnnualTarget(anm.id(), secondIndicator.id(), "80", parse("2012-03-26").toDate(), parse("2013-03-25").toDate())); - - AnnualTarget annualTargetForFirstIndicator = repository.fetchFor(anm.anmIdentifier(), firstIndicator, parse("2012-03-26").toDate()); - AnnualTarget annualTargetForSecondIndicator = repository.fetchFor(anm.anmIdentifier(), secondIndicator, parse("2013-03-25").toDate()); - - assertEquals("40", annualTargetForFirstIndicator.target()); - assertEquals("80", annualTargetForSecondIndicator.target()); - } -} diff --git a/opensrp-reporting/src/test/java/org/opensrp/reporting/repository/it/AllIndicatorsRepositoryIntegrationTest.java b/opensrp-reporting/src/test/java/org/opensrp/reporting/repository/it/AllIndicatorsRepositoryIntegrationTest.java deleted file mode 100644 index 305a67bdef..0000000000 --- a/opensrp-reporting/src/test/java/org/opensrp/reporting/repository/it/AllIndicatorsRepositoryIntegrationTest.java +++ /dev/null @@ -1,48 +0,0 @@ -package org.opensrp.reporting.repository.it; - -import org.junit.Test; -import org.opensrp.reporting.domain.Indicator; -import org.opensrp.reporting.repository.AllIndicatorsRepository; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.beans.factory.annotation.Qualifier; -import org.springframework.test.annotation.Rollback; -import org.springframework.transaction.annotation.Transactional; - -import java.util.List; - -import static java.util.Arrays.asList; -import static junit.framework.Assert.assertEquals; -import static junit.framework.Assert.assertTrue; - -public class AllIndicatorsRepositoryIntegrationTest extends ServicesProvidedIntegrationTestBase { - @Autowired - @Qualifier("serviceProvidedIndicatorRepository") - private AllIndicatorsRepository repository; - - @Test - @Transactional("service_provided") - @Rollback - public void shouldSaveAndFetchIndicator() throws Exception { - Indicator indicator = new Indicator("ANC indicator"); - template.save(indicator); - - Indicator fetchedIndicator = repository.fetch(indicator); - assertEquals(indicator.indicator(), fetchedIndicator.indicator()); - assertTrue("ID should be non-zero.", fetchedIndicator.id() != 0); - } - - @Test - @Transactional("service_provided") - @Rollback - public void shouldFetchAllIndicators() throws Exception { - Indicator indicator1 = new Indicator("ANC indicator"); - Indicator indicator2 = new Indicator("IUD indicator"); - template.save(indicator1); - template.save(indicator2); - - List indicators = repository.fetchAll(); - - assertTrue(indicators.containsAll(asList(indicator1, indicator2))); - assertTrue("ID should be non-zero.", indicators.get(0).id() != 0); - } -} diff --git a/opensrp-reporting/src/test/java/org/opensrp/reporting/repository/it/AllLocationsRepositoryIntegrationTest.java b/opensrp-reporting/src/test/java/org/opensrp/reporting/repository/it/AllLocationsRepositoryIntegrationTest.java deleted file mode 100644 index 02658f34db..0000000000 --- a/opensrp-reporting/src/test/java/org/opensrp/reporting/repository/it/AllLocationsRepositoryIntegrationTest.java +++ /dev/null @@ -1,101 +0,0 @@ -package org.opensrp.reporting.repository.it; - -import org.junit.Test; -import org.opensrp.reporting.domain.Location; -import org.opensrp.reporting.domain.PHC; -import org.opensrp.reporting.domain.SP_ANM; -import org.opensrp.reporting.repository.AllLocationsRepository; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.test.annotation.Rollback; -import org.springframework.transaction.annotation.Transactional; - -import java.util.List; - -import static junit.framework.Assert.assertEquals; -import static junit.framework.Assert.assertTrue; - -public class AllLocationsRepositoryIntegrationTest extends ServicesProvidedIntegrationTestBase { - @Autowired - private AllLocationsRepository repository; - - @Test - @Transactional("service_provided") - @Rollback - public void shouldFetchLocationByVillageSCAndPHC() throws Exception { - PHC phc = new PHC("PHC X", "Bherya"); - PHC anotherPHC = new PHC("PHC Y", "Bherya"); - template.save(phc); - template.save(anotherPHC); - Location location = new Location("Bherya", "Sub Center", phc, "taluka", "mysore", "karnataka"); - Location anotherLocation = new Location("Keelanapura", "Sub Center 2", anotherPHC, "taluka", "mysore", "karnataka"); - template.save(location); - template.save(anotherLocation); - - Location fetchedLocation = repository.fetchBy("Bherya", "Sub Center", "PHC X"); - - assertEquals("Bherya", fetchedLocation.village()); - assertEquals("Sub Center", fetchedLocation.subCenter()); - assertEquals(phc, fetchedLocation.phc()); - assertEquals("taluka", fetchedLocation.taluka()); - assertEquals("mysore", fetchedLocation.district()); - assertEquals("karnataka", fetchedLocation.state()); - assertTrue("ID should be non-zero.", fetchedLocation.id() != 0); - } - - @Test - @Transactional("service_provided") - @Rollback - public void shouldFetchLocationByANMIdentifier() throws Exception { - PHC phc = new PHC("PHC X", "Bherya"); - PHC anotherPHC = new PHC("PHC Y", "Bherya"); - template.save(phc); - template.save(anotherPHC); - Location location = new Location("Bherya", "Sub Center", phc, "taluka", "mysore", "karnataka"); - Location anotherLocation = new Location("Keelanapura", "Sub Center 2", anotherPHC, "taluka", "mysore", "karnataka"); - template.save(location); - template.save(anotherLocation); - SP_ANM anm = new SP_ANM("anm1", "anm1 name", "Sub Center", phc.id()); - SP_ANM anotherANMForPHCX = new SP_ANM("anm2", "anm2 name", "Sub Center 1", phc.id()); - SP_ANM anmForPHCY = new SP_ANM("anm3", "anm3 name", "Sub Center 2", anotherPHC.id()); - template.save(anm); - template.save(anotherANMForPHCX); - template.save(anmForPHCY); - - Location fetchedLocation = repository.fetchByANMIdentifier("anm1"); - - assertEquals("Bherya", fetchedLocation.village()); - assertEquals("Sub Center", fetchedLocation.subCenter()); - assertEquals(phc, fetchedLocation.phc()); - assertEquals("taluka", fetchedLocation.taluka()); - assertEquals("mysore", fetchedLocation.district()); - assertEquals("karnataka", fetchedLocation.state()); - assertTrue("ID should be non-zero.", fetchedLocation.id() != 0); - } - - @Test - @Transactional("service_provided") - @Rollback - public void shouldFetchAllVillagesFromPHCAndSubCenterOfANM() throws Exception { - PHC phc = new PHC("PHC X", "Bherya"); - PHC anotherPHC = new PHC("PHC Y", "Bherya"); - template.save(phc); - template.save(anotherPHC); - Location village1InBheryaPHC = new Location("Village 1", "Sub Center 1", phc, "taluka", "mysore", "karnataka"); - Location village2InBheryaPHC = new Location("Village 2", "Sub Center 1", phc, "taluka", "mysore", "karnataka"); - Location anotherVillageInBheryaPHC = new Location("Village", "Sub Center 2", phc, "taluka", "mysore", "karnataka"); - Location villageInKeelanpuraPHC = new Location("Keelanapura", "Sub Center 2", anotherPHC, "taluka", "mysore", "karnataka"); - SP_ANM anm = new SP_ANM("anm1", "anm1 name", "Sub Center 1", phc.id()); - - template.save(village1InBheryaPHC); - template.save(village2InBheryaPHC); - template.save(anotherVillageInBheryaPHC); - template.save(villageInKeelanpuraPHC); - template.save(anm); - - List villages = repository.fetchVillagesForANM(anm.identifier()); - - assertEquals(2, villages.size()); - assertTrue(villages.contains(new Location("Village 1", "Sub Center 1", phc, "taluka", "mysore", "karnataka"))); - assertTrue(villages.contains(new Location("Village 2", "Sub Center 1", phc, "taluka", "mysore", "karnataka"))); - } -} diff --git a/opensrp-reporting/src/test/java/org/opensrp/reporting/repository/it/AllSP_ANMsRepositoryIntegrationTest.java b/opensrp-reporting/src/test/java/org/opensrp/reporting/repository/it/AllSP_ANMsRepositoryIntegrationTest.java deleted file mode 100644 index 788bbb9080..0000000000 --- a/opensrp-reporting/src/test/java/org/opensrp/reporting/repository/it/AllSP_ANMsRepositoryIntegrationTest.java +++ /dev/null @@ -1,77 +0,0 @@ -package org.opensrp.reporting.repository.it; - -import org.junit.Test; -import org.opensrp.reporting.domain.PHC; -import org.opensrp.reporting.domain.SP_ANM; -import org.opensrp.reporting.repository.AllSP_ANMsRepository; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.test.annotation.Rollback; -import org.springframework.transaction.annotation.Transactional; - -import java.util.List; - -import static java.util.Arrays.asList; -import static junit.framework.Assert.assertTrue; - -public class AllSP_ANMsRepositoryIntegrationTest extends ServicesProvidedIntegrationTestBase { - @Autowired - private AllSP_ANMsRepository repository; - - @Test - @Transactional("service_provided") - @Rollback - public void shouldFetchAllANMs() throws Exception { - PHC phc1 = new PHC("phc1", "PHC 1"); - PHC phc2 = new PHC("phc2", "PHC 2"); - template.save(phc1); - template.save(phc2); - SP_ANM anm1 = new SP_ANM("ANM 1", "anm1 name", "Sub Center 1", phc1.id()); - SP_ANM anm2 = new SP_ANM("ANM 2", "anm2 name", "Sub Center 1", phc2.id()); - template.save(anm1); - template.save(anm2); - - List anmList = repository.fetchAll(); - - assertTrue(anmList.containsAll(asList(anm1, anm2))); - } - - @Test - @Transactional("service_provided") - @Rollback - public void shouldFetchAllANMsInTheSameSC() throws Exception { - PHC phc1 = new PHC("phc1", "PHC 1"); - PHC phc2 = new PHC("phc2", "PHC 2"); - template.save(phc1); - template.save(phc2); - SP_ANM anm1 = new SP_ANM("ANM 1", "anm1 name", "Sub Center 1", phc1.id()); - SP_ANM anm2 = new SP_ANM("ANM 2", "anm2 name", "Sub Center 1", phc1.id()); - SP_ANM anm3 = new SP_ANM("ANM 3", "anm3 name", "Sub Center 2", phc1.id()); - template.save(anm1); - template.save(anm2); - template.save(anm3); - - List anmList = repository.fetchAllANMSInSameSC("ANM 1"); - - assertTrue(anmList.containsAll(asList(anm1, anm2))); - } - - @Test - @Transactional("service_provided") - @Rollback - public void shouldFetchAllANMsInTheSamePHC() throws Exception { - PHC phc1 = new PHC("phc1", "PHC 1"); - PHC phc2 = new PHC("phc2", "PHC 2"); - template.save(phc1); - template.save(phc2); - SP_ANM anm1 = new SP_ANM("ANM 1", "anm1 name", "Sub Center 1", phc1.id()); - SP_ANM anm2 = new SP_ANM("ANM 2", "anm2 name", "Sub Center 1", phc1.id()); - SP_ANM anm3 = new SP_ANM("ANM 3", "anm3 name", "Sub Center 2", phc2.id()); - template.save(anm1); - template.save(anm2); - template.save(anm3); - - List anmList = repository.fetchAllANMSInSamePHC("ANM 1"); - - assertTrue(anmList.containsAll(asList(anm1, anm2))); - } -} diff --git a/opensrp-reporting/src/test/java/org/opensrp/reporting/repository/it/AllServiceProvidersRepositoryIntegrationTest.java b/opensrp-reporting/src/test/java/org/opensrp/reporting/repository/it/AllServiceProvidersRepositoryIntegrationTest.java deleted file mode 100644 index 2693cec1a5..0000000000 --- a/opensrp-reporting/src/test/java/org/opensrp/reporting/repository/it/AllServiceProvidersRepositoryIntegrationTest.java +++ /dev/null @@ -1,63 +0,0 @@ -package org.opensrp.reporting.repository.it; - -import org.junit.Test; -import org.opensrp.reporting.domain.PHC; -import org.opensrp.reporting.domain.SP_ANM; -import org.opensrp.reporting.domain.ServiceProvider; -import org.opensrp.reporting.domain.ServiceProviderType; -import org.opensrp.reporting.repository.AllServiceProvidersRepository; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.test.annotation.Rollback; -import org.springframework.transaction.annotation.Transactional; - -import java.util.List; - -import static ch.lambdaj.Lambda.having; -import static ch.lambdaj.Lambda.on; -import static ch.lambdaj.Lambda.selectUnique; -import static junit.framework.Assert.assertEquals; -import static junit.framework.Assert.assertTrue; -import static org.hamcrest.Matchers.equalTo; -import static org.opensrp.reporting.domain.ServiceProviderType.ANM; -import static org.opensrp.reporting.domain.ServiceProviderType.PHC; - -public class AllServiceProvidersRepositoryIntegrationTest extends ServicesProvidedIntegrationTestBase { - @Autowired - private AllServiceProvidersRepository repository; - - @Test - @Transactional("service_provided") - @Rollback - public void shouldFetchServiceProviderThatIsPHC() throws Exception { - PHC phc = new PHC("bhe", "Bherya"); - template.save(phc); - List serviceProviderTypes = template.loadAll(ServiceProviderType.class); - ServiceProviderType phcServiceProvider = selectUnique(serviceProviderTypes, having(on(ServiceProviderType.class).type(), equalTo(PHC.type()))); - ServiceProvider bheryaPHC = new ServiceProvider(phc.id(), phcServiceProvider); - template.save(bheryaPHC); - - ServiceProvider serviceProvider = repository.fetchBy(phc.phcIdentifier(), PHC); - - assertEquals(phc.id(), serviceProvider.serviceProviderId()); - assertTrue("ID should be non-zero.", serviceProvider.id() != 0); - } - - @Test - @Transactional("service_provided") - @Rollback - public void shouldFetchServiceProviderThatIsANM() throws Exception { - PHC phc = new PHC("bhe", "Bherya"); - template.save(phc); - SP_ANM anm = new SP_ANM("bhe1anm", "bhe1anm name", "Sub Center 1", phc.id()); - template.save(anm); - List serviceProviderTypes = template.loadAll(ServiceProviderType.class); - ServiceProviderType anmServiceProvider = selectUnique(serviceProviderTypes, having(on(ServiceProviderType.class).type(), equalTo(ANM.type()))); - ServiceProvider bheryaANM = new ServiceProvider(anm.id(), anmServiceProvider); - template.save(bheryaANM); - - ServiceProvider serviceProvider = repository.fetchBy(anm.identifier(), ANM); - - assertEquals(anm.id(), serviceProvider.serviceProviderId()); - assertTrue("ID should be non-zero.", serviceProvider.id() != 0); - } -} diff --git a/opensrp-reporting/src/test/java/org/opensrp/reporting/repository/it/AllServicesProvidedIntegrationTest.java b/opensrp-reporting/src/test/java/org/opensrp/reporting/repository/it/AllServicesProvidedIntegrationTest.java deleted file mode 100644 index ebc2e3483d..0000000000 --- a/opensrp-reporting/src/test/java/org/opensrp/reporting/repository/it/AllServicesProvidedIntegrationTest.java +++ /dev/null @@ -1,229 +0,0 @@ -package org.opensrp.reporting.repository.it; - -import org.opensrp.reporting.domain.*; -import org.joda.time.LocalDate; -import org.junit.Test; -import org.opensrp.reporting.domain.Indicator; -import org.opensrp.reporting.domain.Location; -import org.opensrp.reporting.domain.PHC; -import org.opensrp.reporting.domain.SP_ANM; -import org.opensrp.reporting.domain.ServiceProvided; -import org.opensrp.reporting.domain.ServiceProvidedReport; -import org.opensrp.reporting.domain.ServiceProvider; -import org.opensrp.reporting.domain.ServiceProviderType; -import org.opensrp.reporting.domain.Token; -import org.opensrp.reporting.repository.AllServicesProvidedRepository; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.test.annotation.Rollback; -import org.springframework.transaction.annotation.Transactional; - -import java.util.Date; -import java.util.List; - -import static ch.lambdaj.Lambda.*; -import static org.hamcrest.Matchers.equalTo; -import static org.junit.Assert.*; -import static org.opensrp.reporting.domain.ServiceProviderType.ANM; - -public class AllServicesProvidedIntegrationTest extends ServicesProvidedIntegrationTestBase { - @Autowired - private AllServicesProvidedRepository repository; - - @Test - @Transactional("service_provided") - @Rollback - public void shouldSaveAService() throws Exception { - PHC phc = new PHC("bhe", "Bherya"); - template.save(phc); - SP_ANM anm = new SP_ANM("ANM X", "anmx name", "Sub Center 1", phc.id()); - template.save(anm); - Date dates = LocalDate.now().toDate(); - Indicator indicator = new Indicator("ANC indicator"); - Location location = new Location("Bherya", "Sub Center", phc, "taluka", "mysore", "karnataka"); - String dristhiEntityId = "entity id 1"; - List serviceProviderTypes = template.loadAll(ServiceProviderType.class); - ServiceProviderType anmServiceProvider = selectUnique(serviceProviderTypes, having(on(ServiceProviderType.class).type(), equalTo(ANM.type()))); - ServiceProvider serviceProvider = new ServiceProvider(anm.id(), anmServiceProvider); - template.save(location); - template.save(indicator); - template.save(serviceProvider); - - repository.save(serviceProvider, "123", indicator, dates, location, dristhiEntityId); - - List servicesProvided = template.loadAll(ServiceProvided.class); - assertTrue(servicesProvided.contains(new ServiceProvided(serviceProvider, "123", indicator, dates, location, dristhiEntityId))); - } - - @Test - @Transactional("service_provided") - @Rollback - public void shouldUpdateIndicatorForReportingMonth() throws Exception { - PHC phc = new PHC("bhe", "Bherya"); - template.save(phc); - SP_ANM anm = new SP_ANM("ANM X", "anmx name", "Sub Center 1", phc.id()); - template.save(anm); - Indicator indicatorToDelete = new Indicator("INDICATOR 1"); - Indicator otherIndicator = new Indicator("INDICATOR 2"); - Location location = new Location("Bherya", "Sub Center", phc, "taluka", "mysore", "karnataka"); - Date startDate = LocalDate.parse("2013-01-26").toDate(); - String dristhiEntityId = "entity id 1"; - List serviceProviderTypes = template.loadAll(ServiceProviderType.class); - ServiceProviderType anmServiceProvider = selectUnique(serviceProviderTypes, having(on(ServiceProviderType.class).type(), equalTo(ANM.type()))); - ServiceProvider serviceProvider = new ServiceProvider(anm.id(), anmServiceProvider); - template.save(location); - template.save(indicatorToDelete); - template.save(otherIndicator); - template.save(serviceProvider); - repository.save(serviceProvider, "123", indicatorToDelete, startDate, location, dristhiEntityId); - - repository.delete("INDICATOR 1", "2013-01-26", "2013-02-02"); - - List servicesProvided = template.loadAll(ServiceProvided.class); - assertFalse( - servicesProvided.contains( - new ServiceProvided(serviceProvider, null, indicatorToDelete, startDate, location, dristhiEntityId)) - ); - - } - - @Test - @Transactional("service_provided") - @Rollback - public void shouldFetchAllReportsWhenTokenIsZero() throws Exception { - createServiceProvidedData(); - - List reports = repository.getNewReports(0); - - assertTrue( - reports.contains( - new ServiceProvidedReport(1, "ANM X", ANM.type(), "INDICATOR", - LocalDate.parse("2013-01-26").toDate(), "Bherya", "Sub Center", "bhe", - "taluka", "mysore", "karnataka") - ) - ); - } - - @Test - @Transactional("service_provided") - @Rollback - public void shouldNotFetchNewReportsWhenTokenIsEqualToMostRecentReport() throws Exception { - createServiceProvidedData(); - List servicesProvided = template.loadAll(ServiceProvided.class); - ServiceProvided mostRecentServiceProvided = servicesProvided.get(servicesProvided.size() - 1); - Token token = new Token("aggregate-reports-token", mostRecentServiceProvided.id()); - template.save(token); - - List reports = repository.getNewReports(Integer.valueOf(token.value())); - - assertFalse( - reports.contains( - new ServiceProvidedReport(1, "ANM X", ANM.type(), "INDICATOR", - LocalDate.parse("2013-01-26").toDate(), "Bherya", "Sub Center", "bhe", - "taluka", "mysore", "karnataka") - ) - ); - } - - @Test - @Transactional("service_provided") - @Rollback - public void shouldNotFetchNewReportsWhenTokenValueIsHigherThanMostRecentReport() throws Exception { - createServiceProvidedData(); - List servicesProvided = template.loadAll(ServiceProvided.class); - ServiceProvided mostRecentServiceProvided = servicesProvided.get(servicesProvided.size() - 1); - Token token = new Token("aggregate-reports-token", mostRecentServiceProvided.id() + 1); - template.save(token); - - List reports = repository.getNewReports(Integer.valueOf(token.value())); - - assertFalse( - reports.contains( - new ServiceProvidedReport(1, "ANM X", ANM.type(), "INDICATOR", - LocalDate.parse("2013-01-26").toDate(), "Bherya", "Sub Center", "bhe", - "taluka", "mysore", "karnataka") - ) - ); - } - - @Test - @Transactional("service_provided") - @Rollback - public void shouldFetchOnlyAFixedBatchSizeOfReportsFromTheGivenToken() throws Exception { - createMultipleServiceProvidedData(); - - List reports = repository.getNewReports(0, 1); - - assertEquals(1, reports.size()); - assertTrue( - reports.contains( - new ServiceProvidedReport(1, "ANM X", ANM.type(), "INDICATOR", - LocalDate.parse("2013-01-26").toDate(), "Bherya", "Sub Center", "bhe", - "taluka", "mysore", "karnataka") - ) - ); - } - - private void createServiceProvidedData() { - PHC phc = new PHC("bhe", "Bherya"); - template.save(phc); - SP_ANM anm = new SP_ANM("ANM X", "anmx name", "Sub Center 1", phc.id()); - template.save(anm); - Indicator indicator = new Indicator("INDICATOR"); - Location location = new Location("Bherya", "Sub Center", phc, "taluka", "mysore", "karnataka"); - Date date = LocalDate.parse("2013-01-26").toDate(); - String dristhiEntityId = "entity id 1"; - List serviceProviderTypes = template.loadAll(ServiceProviderType.class); - ServiceProviderType anmServiceProvider = selectUnique(serviceProviderTypes, having(on(ServiceProviderType.class).type(), equalTo(ANM.type()))); - ServiceProvider serviceProvider = new ServiceProvider(anm.id(), anmServiceProvider); - template.save(location); - template.save(indicator); - template.save(serviceProvider); - repository.save(serviceProvider, "1", indicator, date, location, dristhiEntityId); - } - - private void createMultipleServiceProvidedData() { - PHC phc = new PHC("bhe", "Bherya"); - template.save(phc); - SP_ANM anm = new SP_ANM("ANM X", "anmx name", "Sub Center 1", phc.id()); - template.save(anm); - SP_ANM anm1 = new SP_ANM("ANM Y", "anmy name", "Sub Center 1", phc.id()); - template.save(anm1); - Indicator indicator = new Indicator("INDICATOR"); - Location location = new Location("Bherya", "Sub Center", phc, "taluka", "mysore", "karnataka"); - Date date = LocalDate.parse("2013-01-26").toDate(); - String dristhiEntityId = "entity id 1"; - List serviceProviderTypes = template.loadAll(ServiceProviderType.class); - ServiceProviderType anmServiceProvider = selectUnique(serviceProviderTypes, having(on(ServiceProviderType.class).type(), equalTo(ANM.type()))); - ServiceProvider serviceProvider = new ServiceProvider(anm.id(), anmServiceProvider); - ServiceProvider anotherServiceProvider = new ServiceProvider(anm1.id(), anmServiceProvider); - template.save(location); - template.save(indicator); - template.save(serviceProvider); - template.save(anotherServiceProvider); - - repository.save(serviceProvider, "1", indicator, date, location, dristhiEntityId); - repository.save(anotherServiceProvider, "2", indicator, date, location, dristhiEntityId); - } - - @Test - @Transactional("service_provided") - @Rollback - public void shouldDeleteServiceProvidedReportForAGivenEntityID() throws Exception { - createMultipleServiceProvidedData(); - - repository.deleteReportsFor("entity id 1"); - - assertEquals(0, repository.getAllReportsForDristhiEntityID("entity id 1").size()); - } - - @Test - @Transactional("service_provided") - @Rollback - public void shouldFetchAllServiceProvidedReportForAGivenEntityID() throws Exception { - createMultipleServiceProvidedData(); - - List reports = repository.getAllReportsForDristhiEntityID("entity id 1"); - - assertEquals(2, reports.size()); - } -} diff --git a/opensrp-reporting/src/test/java/org/opensrp/reporting/repository/it/AllTokenRepositoryIntegrationTest.java b/opensrp-reporting/src/test/java/org/opensrp/reporting/repository/it/AllTokenRepositoryIntegrationTest.java deleted file mode 100644 index c9a796945c..0000000000 --- a/opensrp-reporting/src/test/java/org/opensrp/reporting/repository/it/AllTokenRepositoryIntegrationTest.java +++ /dev/null @@ -1,52 +0,0 @@ -package org.opensrp.reporting.repository.it; - -import org.junit.Test; -import org.opensrp.reporting.domain.Token; -import org.opensrp.reporting.repository.AllTokensRepository; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.test.annotation.Rollback; -import org.springframework.transaction.annotation.Transactional; - -import static org.junit.Assert.assertEquals; - -public class AllTokenRepositoryIntegrationTest extends ServicesProvidedIntegrationTestBase { - @Autowired - private AllTokensRepository repository; - - @Test - @Transactional("service_provided") - @Rollback - public void shouldFetchToken() throws Exception { - template.save(new Token("aggregate-reports-token", ((Integer) 1).toString())); - template.save(new Token("another-token", ((Integer) 2).toString())); - - assertEquals((Integer) 1, repository.getAggregateReportsToken()); - } - - @Test - @Transactional("service_provided") - @Rollback - public void shouldDefaultTokenToZeroWhenItDoesNotExist() throws Exception { - assertEquals((Integer) 0, repository.getAggregateReportsToken()); - } - - @Test - @Transactional("service_provided") - @Rollback - public void shouldCreateTokenWhenItDoesNotExist() throws Exception { - repository.saveAggregateReportsToken(2); - - assertEquals((Integer) 2, repository.getAggregateReportsToken()); - } - - @Test - @Transactional("service_provided") - @Rollback - public void shouldUpdateTokenWhenItExists() throws Exception { - template.save(new Token("aggregate-reports-token", ((Integer) 1).toString())); - - repository.saveAggregateReportsToken(2); - - assertEquals((Integer) 2, repository.getAggregateReportsToken()); - } -} diff --git a/opensrp-reporting/src/test/java/org/opensrp/reporting/repository/it/ServicesProvidedIntegrationTestBase.java b/opensrp-reporting/src/test/java/org/opensrp/reporting/repository/it/ServicesProvidedIntegrationTestBase.java deleted file mode 100644 index d04d551bea..0000000000 --- a/opensrp-reporting/src/test/java/org/opensrp/reporting/repository/it/ServicesProvidedIntegrationTestBase.java +++ /dev/null @@ -1,20 +0,0 @@ -package org.opensrp.reporting.repository.it; - -import org.junit.Test; -import org.junit.runner.RunWith; -import org.opensrp.reporting.repository.TestServiceProvidedDataAccessTemplate; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.test.context.ContextConfiguration; -import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; - -@RunWith(SpringJUnit4ClassRunner.class) -@ContextConfiguration("classpath:spring/applicationContext-opensrp-reporting-test.xml") -public class ServicesProvidedIntegrationTestBase { - @Autowired - protected TestServiceProvidedDataAccessTemplate template; - - @Test - public void test(){ - - } -} diff --git a/opensrp-reporting/src/test/java/org/opensrp/reporting/service/AggregateReportsServiceTest.java b/opensrp-reporting/src/test/java/org/opensrp/reporting/service/AggregateReportsServiceTest.java deleted file mode 100644 index 44960be394..0000000000 --- a/opensrp-reporting/src/test/java/org/opensrp/reporting/service/AggregateReportsServiceTest.java +++ /dev/null @@ -1,105 +0,0 @@ -package org.opensrp.reporting.service; - -import com.google.gson.Gson; -import org.opensrp.common.domain.ReportMonth; -import org.opensrp.common.util.HttpAgent; -import org.opensrp.common.util.HttpResponse; -import org.joda.time.LocalDate; -import org.junit.Before; -import org.junit.Test; -import org.mockito.Mock; -import org.opensrp.dto.aggregatorResponse.AggregatorResponseDTO; -import org.opensrp.dto.report.ServiceProvidedReportDTO; -import org.opensrp.reporting.domain.ServiceProvidedReport; -import org.opensrp.reporting.repository.AllTokensRepository; -import org.opensrp.reporting.repository.ServicesProvidedRepository; -import org.opensrp.reporting.service.AggregateReportsService; - -import java.util.Collections; -import java.util.List; - -import static java.util.Arrays.asList; -import static org.opensrp.common.util.EasyMap.mapOf; -import static org.junit.Assert.assertEquals; -import static org.mockito.Mockito.*; -import static org.mockito.MockitoAnnotations.initMocks; - -public class AggregateReportsServiceTest { - - private AggregateReportsService aggregateReportsService; - private int batchSizeToUpdate = 10; - @Mock - private HttpAgent httpAgent; - @Mock - private AllTokensRepository tokenRepository; - @Mock - private ServicesProvidedRepository servicesProvidedRepository; - @Mock - private ReportMonth reportMonth; - - @Before - public void setUp() throws Exception { - initMocks(this); - aggregateReportsService = new AggregateReportsService("bamboo.url", "bamboo.aggregated.url", batchSizeToUpdate, httpAgent, tokenRepository, servicesProvidedRepository, reportMonth); - } - - @Test - public void shouldSendReportsWithNRHMReportingMonthToAggregator() throws Exception { - when(tokenRepository.getAggregateReportsToken()).thenReturn(0); - when(servicesProvidedRepository.getNewReports(0, batchSizeToUpdate)) - .thenReturn(asList(new ServiceProvidedReport().withId(1).withDate(LocalDate.parse("2012-11-26").toDate()), - new ServiceProvidedReport().withId(2).withDate(LocalDate.parse("2012-12-28").toDate()))); - when(reportMonth.reportingMonth(LocalDate.parse("2012-11-26"))).thenReturn(12); - when(reportMonth.reportingYear(LocalDate.parse("2012-11-26"))).thenReturn(2012); - - when(reportMonth.reportingMonth(LocalDate.parse("2012-12-28"))).thenReturn(1); - when(reportMonth.reportingYear(LocalDate.parse("2012-12-28"))).thenReturn(2013); - - String reportJson = new Gson().toJson(asList( - new ServiceProvidedReportDTO().withDate(LocalDate.parse("2012-11-26")).withNRHMReportMonth(12).withNRHMReportYear(2012).withId(1), - new ServiceProvidedReportDTO().withDate(LocalDate.parse("2012-12-28")).withNRHMReportMonth(1).withNRHMReportYear(2013).withId(2))); - when(httpAgent.put("bamboo.url", mapOf("update", reportJson))).thenReturn(new HttpResponse(true, "")); - - aggregateReportsService.sendReportsToAggregator(); - - verify(httpAgent).put("bamboo.url", mapOf("update", reportJson)); - verify(tokenRepository).saveAggregateReportsToken(2); - } - - @Test(expected = RuntimeException.class) - public void shouldThrowExceptionWhenReportsAreNotSent() throws Exception { - when(tokenRepository.getAggregateReportsToken()).thenReturn(0); - ServiceProvidedReport firstServiceProvidedReport = new ServiceProvidedReport().withId(1); - ServiceProvidedReport secondServiceProvidedReport = new ServiceProvidedReport().withId(2); - when(servicesProvidedRepository.getNewReports(0, batchSizeToUpdate)).thenReturn(asList(firstServiceProvidedReport, secondServiceProvidedReport)); - String firstReportJson = new Gson().toJson(firstServiceProvidedReport); - String secondReportAsJson = new Gson().toJson(secondServiceProvidedReport); - when(httpAgent.put("bamboo.url", mapOf("update", firstReportJson))).thenReturn(new HttpResponse(false, "")); - - aggregateReportsService.sendReportsToAggregator(); - - verify(httpAgent).put("bamboo.url", mapOf("update", firstReportJson)); - verify(httpAgent, never()).put("bamboo.url", mapOf("update", secondReportAsJson)); - } - - @Test - public void shouldNotAggregateReportsWhenThereIsNoNewReport() throws Exception { - when(tokenRepository.getAggregateReportsToken()).thenReturn(12345); - when(servicesProvidedRepository.getNewReports(12345, batchSizeToUpdate)).thenReturn(Collections.emptyList()); - - aggregateReportsService.sendReportsToAggregator(); - - verify(httpAgent, never()).put(anyString(), anyMap()); - verify(tokenRepository, never()).saveAggregateReportsToken(anyInt()); - } - - @Test - public void shouldCallAggregatorToGetAggregatedReports() throws Exception { - when(httpAgent.get("bamboo.aggregated.url?query=%7B%22anm_identifier%22%3A+%22demo1%22%2C%22nrhm_report_year%22%3A2013%2C+%22nrhm_report_month%22%3A10%7D")) - .thenReturn(new HttpResponse(true, "[{\"nrhm_report_month\": 10, \"indicator\": \"OCP\", \"nrhm_report_indicator_count\": 2, \"nrhm_report_year\": 2013, \"anm_identifier\": \"demo1\"}, {\"nrhm_report_month\": 10, \"indicator\": \"OPV_1\", \"nrhm_report_indicator_count\": 1, \"nrhm_report_year\": 2013, \"anm_identifier\": \"demo1\"}]")); - - List aggregatorResponse = aggregateReportsService.getAggregatedReports("demo1", 10, 2013); - - assertEquals(asList(new AggregatorResponseDTO("OCP", 2), new AggregatorResponseDTO("OPV_1", 1)), aggregatorResponse); - } -} diff --git a/opensrp-reporting/src/test/resources/spring/applicationContext-opensrp-reporting-test.xml b/opensrp-reporting/src/test/resources/spring/applicationContext-opensrp-reporting-test.xml deleted file mode 100644 index 0e7a3ab8ad..0000000000 --- a/opensrp-reporting/src/test/resources/spring/applicationContext-opensrp-reporting-test.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/opensrp-reporting/src/test/resources/spring/applicationContext-reporting-repository-test.xml b/opensrp-reporting/src/test/resources/spring/applicationContext-reporting-repository-test.xml deleted file mode 100644 index fe8e067ab9..0000000000 --- a/opensrp-reporting/src/test/resources/spring/applicationContext-reporting-repository-test.xml +++ /dev/null @@ -1,91 +0,0 @@ - - - - - - - - - - ${hibernate.dialect} - ${hibernate.show_sql} - ${hibernate.format_sql} - ${hibernate.auto_commit} - ${db.reporting.report} - - - - - - - - - - - - - - - - - - - - - - - - ${hibernate.dialect} - ${hibernate.show_sql} - ${hibernate.format_sql} - ${hibernate.auto_commit} - ${db.reporting.anm} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/opensrp-web/src/test/java/org/opensrp/fixtures/csv_to_import.csv b/opensrp-web/src/test/java/org/opensrp/fixtures/csv_to_import.csv deleted file mode 100644 index df36dcbd5c..0000000000 --- a/opensrp-web/src/test/java/org/opensrp/fixtures/csv_to_import.csv +++ /dev/null @@ -1,3 +0,0 @@ -start,end,today,deviceid,Childs_Particulars/Home_Facility,Childs_Particulars/Child_Register_Card_Number,Childs_Particulars/First_Name,Childs_Particulars/Last_Name,Childs_Particulars/Sex,Childs_Particulars/Mother_Guardian_First_Name,Childs_Particulars/Mother_Guardian_Last_Name,Childs_Particulars/Mother_Guardian_NRC,Childs_Particulars/Father_Guardian_Name,Childs_Particulars/Father_Guardian_NRC,Childs_Particulars/Date_Birth,Childs_Particulars/First_Health_Facility_Contact,Childs_Particulars/Birth_Weight,Childs_Particulars/Place_Birth,Childs_Particulars/Birth_Facility_Name,Childs_Particulars/Birth_Facility_Name_Other,Childs_Particulars/Residential_Area,Childs_Particulars/Residential_Area_Other,Childs_Particulars/Residential_Address,Childs_Particulars/Physical_Landmark,Childs_Particulars/CHW_Name,Childs_Particulars/CHW_Phone_Number,Immunisation_Record/bcg,Immunisation_Record/opv0,Immunisation_Record/bcg2,Immunisation_Record/opv1_penta1_pcv1_rota1,Immunisation_Record/opv1_penta1_pcv1_rota1_not/not,Immunisation_Record/opv1,Immunisation_Record/penta1,Immunisation_Record/pcv1,Immunisation_Record/rota1,Immunisation_Record/opv2_penta2_pcv2_rota2,Immunisation_Record/opv2_penta2_pcv2_rota2_not/not,Immunisation_Record/opv2,Immunisation_Record/penta2,Immunisation_Record/pcv2,Immunisation_Record/rota2,Immunisation_Record/opv3_penta3_pcv3,Immunisation_Record/opv3_penta3_pcv3_not/not,Immunisation_Record/opv3,Immunisation_Record/penta3,Immunisation_Record/pcv3,Immunisation_Record/opv4,Immunisation_Record/measles1,Immunisation_Record/mr1,Immunisation_Record/measles2,Immunisation_Record/mr2,Growth_Chart/weight1,Growth_Chart/weight1_date,Growth_Chart/weight2,Growth_Chart/weight2_date,Growth_Chart/weight3,Growth_Chart/weight3_date,PMTCT/PMTCT_Status,meta/instanceID,_uuid,_submission_time,_tags,_notes,_version,_duration,_submitted_by -2017-03-20T12:04:04.000+02:00,2017-03-20T12:18:34.000+02:00,2017-03-20,enketo.ona.io:x7OyG5AsrFFqgdjz,Mahatma_Gandhi,102/17,Richard ,Muunga,Male,Mary,Muunga,207367/71/1,Davies Muunga,n/a,2017-02-06,2017-02-13,3.3,Health_Facility,Mahatma_Gandhi,n/a,Other,Kashitu extn,A15,n/a,n/a,n/a,2017-02-13,2017-02-13,n/a,2017-03-20,n/a,n/a,n/a,n/a,n/a,n/a,n/a,n/a,n/a,n/a,n/a,n/a,n/a,n/a,n/a,n/a,n/a,n/a,n/a,n/a,n/a,n/a,n/a,3.3,2017-03-20,6,2017-03-20,CNE,uuid:283e9d11-2fcf-43d9-b2e2-0dd21f8de4c6,283e9d11-2fcf-43d9-b2e2-0dd21f8de4c6,2017-03-20T10:18:42,,,201703180812,870.0,namupu -2017-03-20T12:18:34.000+02:00,2017-03-20T12:27:13.000+02:00,2017-03-20,enketo.ona.io:x7OyG5AsrFFqgdjz,Mahatma_Gandhi,454/16,Mapalo Judy,Mathews,Female,Giveness,Mathews,n/a,Terence,n/a,2016-06-15,2016-06-20,3.9,Health_Facility,Mahatma_Gandhi,n/a,Other,ZSM,216,n/a,n/a,n/a,2016-06-20,2016-06-20,n/a,2016-07-25,n/a,n/a,n/a,n/a,n/a,2016-09-02,n/a,n/a,n/a,n/a,n/a,2016-10-14,n/a,n/a,n/a,n/a,n/a,n/a,n/a,n/a,n/a,6.6,2016-10-14,8.2,2016-11-20,8.8,2017-03-20,CNE,uuid:6ecd9670-8f71-4ae1-a52b-465cb7446c16,6ecd9670-8f71-4ae1-a52b-465cb7446c16,2017-03-20T10:27:21,,,201703180812,519.0,namupu diff --git a/opensrp-web/src/test/java/org/opensrp/integration/ChildImmunizationFields.java b/opensrp-web/src/test/java/org/opensrp/integration/ChildImmunizationFields.java deleted file mode 100644 index 69748a37c7..0000000000 --- a/opensrp-web/src/test/java/org/opensrp/integration/ChildImmunizationFields.java +++ /dev/null @@ -1,41 +0,0 @@ -package org.opensrp.integration; - -import java.util.ArrayList; - -public class ChildImmunizationFields { - public static final String IMMUNIZATIONS_GIVEN_FIELD_NAME = "immunizationsGiven"; - public static final String PREVIOUS_IMMUNIZATIONS_FIELD_NAME = "previousImmunizations"; - public static final String IMMUNIZATION_DATE_FIELD_NAME = "immunizationDate"; - - public static final String BCG_VALUE = "bcg"; - - public static final String DPT_BOOSTER_1_VALUE = "dptbooster_1"; - public static final String DPT_BOOSTER_2_VALUE = "dptbooster_2"; - - public static final String HEPATITIS_0_VALUE = "hepb_0"; - - public static final String MEASLES_VALUE = "measles"; - public static final String MEASLES_BOOSTER_VALUE = "measlesbooster"; - - public static final String OPV_0_VALUE = "opv_0"; - public static final String OPV_1_VALUE = "opv_1"; - public static final String OPV_2_VALUE = "opv_2"; - public static final String OPV_3_VALUE = "opv_3"; - public static final String OPV_BOOSTER_VALUE = "opvbooster"; - - public static final String PENTAVALENT_1_VALUE = "pentavalent_1"; - public static final String PENTAVALENT_2_VALUE = "pentavalent_2"; - public static final String PENTAVALENT_3_VALUE = "pentavalent_3"; - public static final ArrayList IMMUNIZATIONS_VALUE_LIST = new ArrayList() {{ - add(BCG_VALUE); - add(PENTAVALENT_1_VALUE); - add(PENTAVALENT_2_VALUE); - add(PENTAVALENT_3_VALUE); - add(OPV_0_VALUE); - add(OPV_1_VALUE); - add(OPV_2_VALUE); - add(OPV_3_VALUE); - add(MEASLES_VALUE); - - }}; -} \ No newline at end of file diff --git a/opensrp-web/src/test/java/org/opensrp/integration/ScheduleTrackingSchedulesJSONTest.java b/opensrp-web/src/test/java/org/opensrp/integration/ScheduleTrackingSchedulesJSONTest.java deleted file mode 100644 index 3e1eb49cae..0000000000 --- a/opensrp-web/src/test/java/org/opensrp/integration/ScheduleTrackingSchedulesJSONTest.java +++ /dev/null @@ -1,13 +0,0 @@ -package org.opensrp.integration; - -import org.junit.Test; -import org.motechproject.scheduletracking.api.repository.TrackedSchedulesJsonReaderImpl; - -public class ScheduleTrackingSchedulesJSONTest { - @Test - public void shouldNotFailWhileConvertingEveryScheduleFileToValidScheduleObject() throws Exception { - TrackedSchedulesJsonReaderImpl schedulesReader = new TrackedSchedulesJsonReaderImpl("/schedules"); - schedulesReader.records(); - } - -} diff --git a/opensrp-web/src/test/java/org/opensrp/integration/SpringApplicationContextProvider.java b/opensrp-web/src/test/java/org/opensrp/integration/SpringApplicationContextProvider.java deleted file mode 100644 index 464b3b7881..0000000000 --- a/opensrp-web/src/test/java/org/opensrp/integration/SpringApplicationContextProvider.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.opensrp.integration; - -import org.junit.runner.RunWith; -import org.springframework.context.ApplicationContext; -import org.springframework.test.context.ContextConfiguration; -import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; - -@RunWith(SpringJUnit4ClassRunner.class) -@ContextConfiguration("classpath:applicationContext-web.xml") -public class SpringApplicationContextProvider { - - public static ApplicationContext context; - - public static ApplicationContext getContext() { - return context; - } - - public static void setContext(ApplicationContext context) { - SpringApplicationContextProvider.context = context; - } - - -} diff --git a/opensrp-web/src/test/java/org/opensrp/web/AuthenticationFilterTest.java b/opensrp-web/src/test/java/org/opensrp/web/AuthenticationFilterTest.java deleted file mode 100644 index 1e59787ba6..0000000000 --- a/opensrp-web/src/test/java/org/opensrp/web/AuthenticationFilterTest.java +++ /dev/null @@ -1,35 +0,0 @@ -package org.opensrp.web; - -import org.junit.Ignore; -import org.junit.Test; -import org.springframework.mock.web.MockFilterChain; -import org.springframework.mock.web.MockHttpServletRequest; -import org.springframework.mock.web.MockHttpServletResponse; - -import javax.servlet.ServletException; -import java.io.IOException; - -//TODO: Find a way to test authentication filter. -@Ignore -public class AuthenticationFilterTest { - - @Test - public void testAuthenticationFilter() throws ServletException, IOException { - AuthenticationFilter authenticationFilterUnderTest = new AuthenticationFilter(); - - //authenticationFilterUnderTest(new MockModeService(ModeService.ONLINE)); - MockFilterChain mockChain = new MockFilterChain(); - MockHttpServletRequest mockRequest = new MockHttpServletRequest("GET", "/authenticate-user/"); - mockRequest.addHeader("www-authenticate", "tests"); - - MockHttpServletResponse mockResponse = new MockHttpServletResponse(); - mockResponse.addHeader("www-authenticate", "tests"); - - authenticationFilterUnderTest.doFilter(mockRequest, mockResponse, mockChain); - - System.out.println(mockResponse.getHeaderNames()); - - //assertEquals("/",mockResponse.getForwardedUrl()); - } - -} diff --git a/opensrp-web/src/test/java/org/opensrp/web/controller/AuditMessageControllerTest.java b/opensrp-web/src/test/java/org/opensrp/web/controller/AuditMessageControllerTest.java deleted file mode 100644 index 37e10f055c..0000000000 --- a/opensrp-web/src/test/java/org/opensrp/web/controller/AuditMessageControllerTest.java +++ /dev/null @@ -1,81 +0,0 @@ -package org.opensrp.web.controller; - -import org.opensrp.common.audit.AuditMessage; -import org.opensrp.common.audit.Auditor; -import org.joda.time.DateTime; -import org.junit.Before; -import org.junit.Test; -import org.mockito.Mock; -import org.motechproject.util.DateUtil; - -import java.io.IOException; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import static org.opensrp.common.audit.AuditMessageType.FORM_SUBMISSION; -import static org.opensrp.common.audit.AuditMessageType.SMS; -import static org.junit.Assert.assertThat; -import static org.mockito.Mockito.when; -import static org.mockito.MockitoAnnotations.initMocks; -import static org.motechproject.delivery.schedule.util.SameItems.hasSameItemsAs; -import org.opensrp.web.controller.AuditMessageController; -import org.opensrp.web.controller.AuditMessageController.AuditMessageItem; - -public class AuditMessageControllerTest { - @Mock - Auditor auditor; - private DateTime now; - private DateTime yesterday; - - @Before - public void setUp() throws Exception { - initMocks(this); - now = DateUtil.now(); - yesterday = DateUtil.now().minusDays(1); - } - - @Test - public void shouldGetAuditMessagesSinceGivenTime() throws IOException { - AuditMessageController controller = new AuditMessageController(auditor); - when(auditor.messagesSince(10)).thenReturn(messages()); - - List messageItems = controller.getAuditMessages(10); - - assertThat(messageItems, hasSameItemsAs(expectedMessageItems())); - } - - private List expectedMessageItems() { - final List expectedItems = new ArrayList(); - - expectedItems.add(new AuditMessageItem(now, 11, SMS, smsData())); - expectedItems.add(new AuditMessageItem(yesterday, 12, FORM_SUBMISSION, formData())); - - return expectedItems; - } - - private List messages() { - ArrayList messages = new ArrayList(); - - messages.add(new AuditMessage(now, 11, SMS, smsData())); - messages.add(new AuditMessage(yesterday, 12, FORM_SUBMISSION, formData())); - - return messages; - } - - private HashMap formData() { - HashMap map = new HashMap(); - map.put("data", "Form 1"); - map.put("someOtherData", "Def"); - return map; - } - - private Map smsData() { - Map map = new HashMap(); - map.put("recipient", "Abc"); - map.put("message", "SMS 1"); - return map; - } - -} diff --git a/opensrp-web/src/test/java/org/opensrp/web/controller/FormDownloadTest.java b/opensrp-web/src/test/java/org/opensrp/web/controller/FormDownloadTest.java deleted file mode 100644 index ad5d6141ac..0000000000 --- a/opensrp-web/src/test/java/org/opensrp/web/controller/FormDownloadTest.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.opensrp.web.controller; -import java.io.IOException; -import java.net.URISyntaxException; - -import org.junit.Test; -import org.mockito.Mock; -import org.springframework.mock.web.MockHttpServletResponse; - -public class FormDownloadTest -{ - @Mock - MockHttpServletResponse resp = new MockHttpServletResponse(); - - @Test - public void shouldReturnAvailableVersion() throws URISyntaxException, IOException - { - String filename = "form/"; - - FormDownLoadController formDownLoadController = new FormDownLoadController(filename, "model.xml,form.xml,form_definition.json"); - - String versions = formDownLoadController.getAllAvailableVersion(); - System.out.println("available version:::"+versions); - } -} diff --git a/opensrp-web/src/test/java/org/opensrp/web/controller/OpenmrsReportingTest.java b/opensrp-web/src/test/java/org/opensrp/web/controller/OpenmrsReportingTest.java deleted file mode 100644 index c3fabcc1d0..0000000000 --- a/opensrp-web/src/test/java/org/opensrp/web/controller/OpenmrsReportingTest.java +++ /dev/null @@ -1,48 +0,0 @@ -package org.opensrp.web.controller; - -import java.io.IOException; - -import org.json.JSONArray; -import org.json.JSONException; -import org.junit.Before; -import org.junit.Test; -import org.opensrp.connector.openmrs.service.OpenmrsReportingService; -import org.opensrp.web.utils.TestResourceLoader; - - -public class OpenmrsReportingTest extends TestResourceLoader{ - - public OpenmrsReportingTest() throws IOException { - super(); - } - - private ReportController reportController; - - @Before - public void setup(){ - reportController = new ReportController(new OpenmrsReportingService(openmrsOpenmrsUrl, openmrsUsername, openmrsPassword)); - } - - @Test - public void testReportDefinitionOutput() throws JSONException { - if(pushToOpenmrsForTest){ - System.out.println(reportController.reportDefinitions()); - } - } - - @Test - public void testReportData() throws JSONException{ - if(pushToOpenmrsForTest){ - JSONArray json = new JSONArray(reportController.reportDefinitions().getBody()); - System.out.println(json); - for (int i = 0; i < json.length(); i++) { - try{ - System.out.println(reportController.reportData(json.getJSONObject(i).getString("uuid"), null )); - } - catch(Exception e){ - - } - } - } - } -} diff --git a/opensrp-web/src/test/java/org/opensrp/web/controller/UserControllerTest.java b/opensrp-web/src/test/java/org/opensrp/web/controller/UserControllerTest.java deleted file mode 100644 index b50b8e7998..0000000000 --- a/opensrp-web/src/test/java/org/opensrp/web/controller/UserControllerTest.java +++ /dev/null @@ -1,88 +0,0 @@ -package org.opensrp.web.controller; - -import static org.mockito.Matchers.any; -import static org.mockito.Mockito.doReturn; -import static org.mockito.Mockito.when; -import static org.mockito.MockitoAnnotations.initMocks; - -import java.io.IOException; - -import javax.servlet.http.HttpServletRequest; - -import org.json.JSONException; -import org.json.JSONObject; -import org.junit.Before; -import org.junit.Test; -import org.mockito.Mock; -import org.mockito.Mockito; -import org.opensrp.api.domain.User; -import org.opensrp.api.util.LocationTree; -import org.opensrp.connector.openmrs.service.OpenmrsLocationService; -import org.opensrp.connector.openmrs.service.OpenmrsUserService; -import org.opensrp.web.security.DrishtiAuthenticationProvider; -import org.springframework.security.authentication.UsernamePasswordAuthenticationToken; -import org.springframework.security.authentication.encoding.PasswordEncoder; - -import com.google.gson.Gson; - -public class UserControllerTest { - - public static final String TEAM_MEMEBER_OBJECT = "{\"teamMemberId\":\"1\",\"identifier\":\"7869\",\"isTeamLead\":\"false\",\"person\":{\"uuid\":\"bc3245ed-ecac-4afa-842c-8f8a7a242639\",\"display\":\"Ebad Ahmed Ezam\",\"gender\":\"Male\",\"birthdateEstimated\":\"false\",\"dead\":\"false\",\"preferredName\":{\"uuid\":\"7dacabb7-ad79-4e4d-874c-c61b3fc91f02\",\"display\":\"Ebad Ahmed Ezam\",},\"voided\":\"false\"},\"uuid\":\"6bd9a982-77d4-42ee-88a5-8c511719214a\",\"location\":{\"location\":{\"uuid\":\"a529e2fc-6f0d-4e60-a5df-789fe17cca48\",\"display\":\"Karachi\",\"name\":\"Karachi\",\"tags\":{\"locationtag\":{\"uuid\":\"2db4a766-eba2-4780-91ff-e601193a86f2\",\"display\":\"City\",\"links\":{\"link\":{\"rel\":\"self\",\"uri\":\" NEED-TO-CONFIGURE/ws/rest/v1/locationtag/2db4a766-eba2-4780-91ff-e601193a86f2 \"}}}},\"parentLocation\":{\"uuid\":\"461f2be7-c95d-433c-b1d7-c68f272409d7\",\"display\":\"Sindh\",\"links\":{\"link\":{\"rel\":\"self\",\"uri\":\" NEED-TO-CONFIGURE/ws/rest/v1/location/461f2be7-c95d-433c-b1d7-c68f272409d7 \"}}},\"childLocations\":{\"location\":{\"uuid\":\"60c21502-fec1-40f5-b77d-6df3f92771ce\",\"display\":\"Baldia\",\"links\":{\"link\":{\"rel\":\"self\",\"uri\":\" NEED-TO-CONFIGURE/ws/rest/v1/location/60c21502-fec1-40f5-b77d-6df3f92771ce \"}}}},\"retired\":\"false\",\"links\":{\"link\":[{\"rel\":\"self\",\"uri\":\" NEED-TO-CONFIGURE/ws/rest/v1/location/a529e2fc-6f0d-4e60-a5df-789fe17cca48 \"},{\"rel\":\"full\",\"uri\":\" NEED-TO-CONFIGURE/ws/rest/v1/location/a529e2fc-6f0d-4e60-a5df-789fe17cca48?v=full \"}]},\"resourceVersion\":\"1.9\"}},\"team\":{\"display\":\"TBR3-team1\",\"teamIdentifier\":\"1234\",\"teamName\":\"TBR3-team1\",\"uuid\":\"97ba7a47-58bd-4d9f-96d6-aaaa5c7b6cf0\",\"dateCreated\":\"2015-05-08T01:46:54.000-0400\",\"location\":{\"uuid\":\"765cb701-9e61-4ead-afb9-a63c943f4f14\",\"display\":\"Korangi\",\"name\":\"Korangi\",\"tags\":{\"locationtag\":{\"uuid\":\"295bfa65-859e-4e52-9a89-63393139df1e\",\"display\":\"Town\",\"links\":{\"link\":{\"rel\":\"self\",\"uri\":\" NEED-TO-CONFIGURE/ws/rest/v1/locationtag/295bfa65-859e-4e52-9a89-63393139df1e \"}}}},\"retired\":\"false\",\"links\":{\"link\":[{\"rel\":\"self\",\"uri\":\" NEED-TO-CONFIGURE/ws/rest/v1/location/765cb701-9e61-4ead-afb9-a63c943f4f14 \"},{\"rel\":\"full\",\"uri\":\" NEED-TO-CONFIGURE/ws/rest/v1/location/765cb701-9e61-4ead-afb9-a63c943f4f14?v=full \"}]}}}}"; - - public static final String LOCATION_TREE_OBJECT = "{\"locationsHierarchy\":{\"map\":{\"215caa30-1906-4210-8294-23eb7914c1dd\":{\"id\":\"215caa30-1906-4210-8294-23eb7914c1dd\",\"label\":\"3-KHA\",\"node\":{\"locationId\":\"215caa30-1906-4210-8294-23eb7914c1dd\",\"name\":\"3-KHA\",\"parentLocation\":{\"locationId\":\"1ccb61b5-022f-4735-95b4-1c57e9f7938f\",\"name\":\"Ward-3\",\"parentLocation\":{\"locationId\":\"725658c6-4d94-4791-bad6-614dec63d83b\",\"name\":\"KUPTALA\",\"voided\":false},\"voided\":false},\"tags\":[\"Unit\"],\"voided\":false},\"children\":{\"4ccd5a33-c462-4b53-b8c1-a1ad1c3ba0cf\":{\"id\":\"4ccd5a33-c462-4b53-b8c1-a1ad1c3ba0cf\",\"label\":\"DURGAPUR\",\"node\":{\"locationId\":\"4ccd5a33-c462-4b53-b8c1-a1ad1c3ba0cf\",\"name\":\"DURGAPUR\",\"parentLocation\":{\"locationId\":\"215caa30-1906-4210-8294-23eb7914c1dd\",\"name\":\"3-KHA\",\"parentLocation\":{\"locationId\":\"1ccb61b5-022f-4735-95b4-1c57e9f7938f\",\"name\":\"Ward-3\",\"voided\":false},\"voided\":false},\"tags\":[\"Mauza\"],\"voided\":false},\"parent\":\"215caa30-1906-4210-8294-23eb7914c1dd\"}},\"parent\":\"1ccb61b5-022f-4735-95b4-1c57e9f7938f\"},\"429feb8b-0b8d-4496-8e54-fdc94affed07\":{\"id\":\"429feb8b-0b8d-4496-8e54-fdc94affed07\",\"label\":\"1-KHA\",\"node\":{\"locationId\":\"429feb8b-0b8d-4496-8e54-fdc94affed07\",\"name\":\"1-KHA\",\"parentLocation\":{\"locationId\":\"bfeb65bd-bff0-41bb-81a0-0220a4200bff\",\"name\":\"Ward-1\",\"parentLocation\":{\"locationId\":\"725658c6-4d94-4791-bad6-614dec63d83b\",\"name\":\"KUPTALA\",\"voided\":false},\"voided\":false},\"tags\":[\"Unit\"],\"voided\":false},\"children\":{\"9047a5e3-66cf-4f83-b0b6-3cdd3d611272\":{\"id\":\"9047a5e3-66cf-4f83-b0b6-3cdd3d611272\",\"label\":\"Chapadaha Mauza\",\"node\":{\"locationId\":\"9047a5e3-66cf-4f83-b0b6-3cdd3d611272\",\"name\":\"Chapadaha Mauza\",\"parentLocation\":{\"locationId\":\"429feb8b-0b8d-4496-8e54-fdc94affed07\",\"name\":\"1-KHA\",\"parentLocation\":{\"locationId\":\"bfeb65bd-bff0-41bb-81a0-0220a4200bff\",\"name\":\"Ward-1\",\"voided\":false},\"voided\":false},\"tags\":[\"Mauza\"],\"voided\":false},\"parent\":\"429feb8b-0b8d-4496-8e54-fdc94affed07\"},\"a8b7d760-0e7e-4fdb-9450-b41d31d1ec34\":{\"id\":\"a8b7d760-0e7e-4fdb-9450-b41d31d1ec34\",\"label\":\"Kuptala-1-KHA\",\"node\":{\"locationId\":\"a8b7d760-0e7e-4fdb-9450-b41d31d1ec34\",\"name\":\"Kuptala-1-KHA\",\"parentLocation\":{\"locationId\":\"429feb8b-0b8d-4496-8e54-fdc94affed07\",\"name\":\"1-KHA\",\"parentLocation\":{\"locationId\":\"bfeb65bd-bff0-41bb-81a0-0220a4200bff\",\"name\":\"Ward-1\",\"voided\":false},\"voided\":false},\"tags\":[\"Mauza\"],\"voided\":false},\"parent\":\"429feb8b-0b8d-4496-8e54-fdc94affed07\"}},\"parent\":\"bfeb65bd-bff0-41bb-81a0-0220a4200bff\"},\"f2f803d5-857a-42a4-a05b-142c3327b4fc\":{\"id\":\"f2f803d5-857a-42a4-a05b-142c3327b4fc\",\"label\":\"SONORAY\",\"node\":{\"locationId\":\"f2f803d5-857a-42a4-a05b-142c3327b4fc\",\"name\":\"SONORAY\",\"parentLocation\":{\"locationId\":\"11eaac2c-12d6-4958-b548-2d6768776b10\",\"name\":\"SUNDARGANJ\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"voided\":false},\"voided\":false},\"tags\":[\"Union\"],\"voided\":false},\"parent\":\"11eaac2c-12d6-4958-b548-2d6768776b10\"},\"e0d50bc5-09b2-4102-809d-687fe71d5fd0\":{\"id\":\"e0d50bc5-09b2-4102-809d-687fe71d5fd0\",\"label\":\"SARBANANDA\",\"node\":{\"locationId\":\"e0d50bc5-09b2-4102-809d-687fe71d5fd0\",\"name\":\"SARBANANDA\",\"parentLocation\":{\"locationId\":\"11eaac2c-12d6-4958-b548-2d6768776b10\",\"name\":\"SUNDARGANJ\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"voided\":false},\"voided\":false},\"tags\":[\"Union\"],\"voided\":false},\"parent\":\"11eaac2c-12d6-4958-b548-2d6768776b10\"},\"e8964ad4-e6f2-4aff-bb61-28c08d01af51\":{\"id\":\"e8964ad4-e6f2-4aff-bb61-28c08d01af51\",\"label\":\"2-KHA\",\"node\":{\"locationId\":\"e8964ad4-e6f2-4aff-bb61-28c08d01af51\",\"name\":\"2-KHA\",\"parentLocation\":{\"locationId\":\"318e5671-368b-4e9c-8bc1-7a6fb545c1e5\",\"name\":\"Ward-2\",\"parentLocation\":{\"locationId\":\"725658c6-4d94-4791-bad6-614dec63d83b\",\"name\":\"KUPTALA\",\"voided\":false},\"voided\":false},\"tags\":[\"Unit\"],\"voided\":false},\"children\":{\"3a041478-5d39-4d42-b785-67c2ae56febb\":{\"id\":\"3a041478-5d39-4d42-b785-67c2ae56febb\",\"label\":\"Kuptala-2KHA\",\"node\":{\"locationId\":\"3a041478-5d39-4d42-b785-67c2ae56febb\",\"name\":\"Kuptala-2KHA\",\"parentLocation\":{\"locationId\":\"e8964ad4-e6f2-4aff-bb61-28c08d01af51\",\"name\":\"2-KHA\",\"parentLocation\":{\"locationId\":\"318e5671-368b-4e9c-8bc1-7a6fb545c1e5\",\"name\":\"Ward-2\",\"voided\":false},\"voided\":false},\"tags\":[\"Mauza\"],\"voided\":false},\"parent\":\"e8964ad4-e6f2-4aff-bb61-28c08d01af51\"},\"27e6d636-0683-4539-90b8-2c795318dc08\":{\"id\":\"27e6d636-0683-4539-90b8-2c795318dc08\",\"label\":\"BERADANGA\",\"node\":{\"locationId\":\"27e6d636-0683-4539-90b8-2c795318dc08\",\"name\":\"BERADANGA\",\"parentLocation\":{\"locationId\":\"e8964ad4-e6f2-4aff-bb61-28c08d01af51\",\"name\":\"2-KHA\",\"parentLocation\":{\"locationId\":\"318e5671-368b-4e9c-8bc1-7a6fb545c1e5\",\"name\":\"Ward-2\",\"voided\":false},\"voided\":false},\"tags\":[\"Mauza\"],\"voided\":false},\"parent\":\"e8964ad4-e6f2-4aff-bb61-28c08d01af51\"}},\"parent\":\"318e5671-368b-4e9c-8bc1-7a6fb545c1e5\"},\"5d0661b5-4868-49eb-a697-e4dc4348dfab\":{\"id\":\"5d0661b5-4868-49eb-a697-e4dc4348dfab\",\"label\":\"SHANTIRAM\",\"node\":{\"locationId\":\"5d0661b5-4868-49eb-a697-e4dc4348dfab\",\"name\":\"SHANTIRAM\",\"parentLocation\":{\"locationId\":\"11eaac2c-12d6-4958-b548-2d6768776b10\",\"name\":\"SUNDARGANJ\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"voided\":false},\"voided\":false},\"tags\":[\"Union\"],\"voided\":false},\"parent\":\"11eaac2c-12d6-4958-b548-2d6768776b10\"},\"f48a6482-2ffd-4596-8d9b-46dadc3c73df\":{\"id\":\"f48a6482-2ffd-4596-8d9b-46dadc3c73df\",\"label\":\"SRIPUR\",\"node\":{\"locationId\":\"f48a6482-2ffd-4596-8d9b-46dadc3c73df\",\"name\":\"SRIPUR\",\"parentLocation\":{\"locationId\":\"11eaac2c-12d6-4958-b548-2d6768776b10\",\"name\":\"SUNDARGANJ\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"voided\":false},\"voided\":false},\"tags\":[\"Union\"],\"voided\":false},\"parent\":\"11eaac2c-12d6-4958-b548-2d6768776b10\"},\"42423d74-a061-463b-93a1-2f773f0aae21\":{\"id\":\"42423d74-a061-463b-93a1-2f773f0aae21\",\"label\":\"1-KA\",\"node\":{\"locationId\":\"42423d74-a061-463b-93a1-2f773f0aae21\",\"name\":\"1-KA\",\"parentLocation\":{\"locationId\":\"bfeb65bd-bff0-41bb-81a0-0220a4200bff\",\"name\":\"Ward-1\",\"parentLocation\":{\"locationId\":\"725658c6-4d94-4791-bad6-614dec63d83b\",\"name\":\"KUPTALA\",\"voided\":false},\"voided\":false},\"tags\":[\"Unit\"],\"voided\":false},\"children\":{\"88abc9f1-d698-41e3-8e2d-0c900b16dfe6\":{\"id\":\"88abc9f1-d698-41e3-8e2d-0c900b16dfe6\",\"label\":\"Kuptala-1-KA\",\"node\":{\"locationId\":\"88abc9f1-d698-41e3-8e2d-0c900b16dfe6\",\"name\":\"Kuptala-1-KA\",\"parentLocation\":{\"locationId\":\"42423d74-a061-463b-93a1-2f773f0aae21\",\"name\":\"1-KA\",\"parentLocation\":{\"locationId\":\"bfeb65bd-bff0-41bb-81a0-0220a4200bff\",\"name\":\"Ward-1\",\"voided\":false},\"voided\":false},\"tags\":[\"Mauza\"],\"voided\":false},\"parent\":\"42423d74-a061-463b-93a1-2f773f0aae21\"}},\"parent\":\"bfeb65bd-bff0-41bb-81a0-0220a4200bff\"},\"dff51374-be72-46cb-a9a3-c7989e24430c\":{\"id\":\"dff51374-be72-46cb-a9a3-c7989e24430c\",\"label\":\"DHOPADANGA\",\"node\":{\"locationId\":\"dff51374-be72-46cb-a9a3-c7989e24430c\",\"name\":\"DHOPADANGA\",\"parentLocation\":{\"locationId\":\"11eaac2c-12d6-4958-b548-2d6768776b10\",\"name\":\"SUNDARGANJ\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"voided\":false},\"voided\":false},\"tags\":[\"Union\"],\"voided\":false},\"parent\":\"11eaac2c-12d6-4958-b548-2d6768776b10\"},\"e8e88d43-e181-42f1-9de5-143149922eea\":{\"id\":\"e8e88d43-e181-42f1-9de5-143149922eea\",\"label\":\"RAMJIBAN\",\"node\":{\"locationId\":\"e8e88d43-e181-42f1-9de5-143149922eea\",\"name\":\"RAMJIBAN\",\"parentLocation\":{\"locationId\":\"11eaac2c-12d6-4958-b548-2d6768776b10\",\"name\":\"SUNDARGANJ\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"voided\":false},\"voided\":false},\"tags\":[\"Union\"],\"voided\":false},\"parent\":\"11eaac2c-12d6-4958-b548-2d6768776b10\"},\"d3367458-f5e5-4039-b1e7-f087cc5be3fa\":{\"id\":\"d3367458-f5e5-4039-b1e7-f087cc5be3fa\",\"label\":\"KANCHIBARI\",\"node\":{\"locationId\":\"d3367458-f5e5-4039-b1e7-f087cc5be3fa\",\"name\":\"KANCHIBARI\",\"parentLocation\":{\"locationId\":\"11eaac2c-12d6-4958-b548-2d6768776b10\",\"name\":\"SUNDARGANJ\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"voided\":false},\"voided\":false},\"tags\":[\"Union\"],\"voided\":false},\"parent\":\"11eaac2c-12d6-4958-b548-2d6768776b10\"},\"fa32786b-4063-4f39-b72d-a5bc0e549193\":{\"id\":\"fa32786b-4063-4f39-b72d-a5bc0e549193\",\"label\":\"3-KA\",\"node\":{\"locationId\":\"fa32786b-4063-4f39-b72d-a5bc0e549193\",\"name\":\"3-KA\",\"parentLocation\":{\"locationId\":\"1ccb61b5-022f-4735-95b4-1c57e9f7938f\",\"name\":\"Ward-3\",\"parentLocation\":{\"locationId\":\"725658c6-4d94-4791-bad6-614dec63d83b\",\"name\":\"KUPTALA\",\"voided\":false},\"voided\":false},\"tags\":[\"Unit\"],\"voided\":false},\"children\":{\"f872c792-32ac-49e7-a386-f6b968968ef1\":{\"id\":\"f872c792-32ac-49e7-a386-f6b968968ef1\",\"label\":\"Kuptala-3-KA\",\"node\":{\"locationId\":\"f872c792-32ac-49e7-a386-f6b968968ef1\",\"name\":\"Kuptala-3-KA\",\"parentLocation\":{\"locationId\":\"fa32786b-4063-4f39-b72d-a5bc0e549193\",\"name\":\"3-KA\",\"parentLocation\":{\"locationId\":\"1ccb61b5-022f-4735-95b4-1c57e9f7938f\",\"name\":\"Ward-3\",\"voided\":false},\"voided\":false},\"tags\":[\"Mauza\"],\"voided\":false},\"parent\":\"fa32786b-4063-4f39-b72d-a5bc0e549193\"}},\"parent\":\"1ccb61b5-022f-4735-95b4-1c57e9f7938f\"},\"765cb701-9e61-4ead-afb9-a63c943f4f14\":{\"id\":\"765cb701-9e61-4ead-afb9-a63c943f4f14\",\"label\":\"Korangi\",\"node\":{\"locationId\":\"765cb701-9e61-4ead-afb9-a63c943f4f14\",\"name\":\"Korangi\",\"tags\":[\"Town\"],\"voided\":false}},\"a57cef08-b47e-4b59-acd8-354279a63027\":{\"id\":\"a57cef08-b47e-4b59-acd8-354279a63027\",\"label\":\"3-KA\",\"node\":{\"locationId\":\"a57cef08-b47e-4b59-acd8-354279a63027\",\"name\":\"3-KA\",\"parentLocation\":{\"locationId\":\"f6b22dad-75c4-47e6-923a-3d0a005ed8a7\",\"name\":\"Ward-3\",\"parentLocation\":{\"locationId\":\"b25f114e-22e4-4cf8-89ef-af94ea2cecc5\",\"name\":\"NALDANGA\",\"voided\":false},\"voided\":false},\"tags\":[\"Unit\"],\"voided\":false},\"children\":{\"f30df310-0d30-4482-8dfe-667def649c20\":{\"id\":\"f30df310-0d30-4482-8dfe-667def649c20\",\"label\":\"PROTAP - MANDUAR PARA\",\"node\":{\"locationId\":\"f30df310-0d30-4482-8dfe-667def649c20\",\"name\":\"PROTAP - MANDUAR PARA\",\"parentLocation\":{\"locationId\":\"a57cef08-b47e-4b59-acd8-354279a63027\",\"name\":\"3-KA\",\"parentLocation\":{\"locationId\":\"f6b22dad-75c4-47e6-923a-3d0a005ed8a7\",\"name\":\"Ward-3\",\"voided\":false},\"voided\":false},\"tags\":[\"Mauza\"],\"voided\":false},\"parent\":\"a57cef08-b47e-4b59-acd8-354279a63027\"},\"f6933584-9248-409d-b06a-0988c470ce45\":{\"id\":\"f6933584-9248-409d-b06a-0988c470ce45\",\"label\":\"PROTAP - FUL PARA\",\"node\":{\"locationId\":\"f6933584-9248-409d-b06a-0988c470ce45\",\"name\":\"PROTAP - FUL PARA\",\"parentLocation\":{\"locationId\":\"a57cef08-b47e-4b59-acd8-354279a63027\",\"name\":\"3-KA\",\"parentLocation\":{\"locationId\":\"f6b22dad-75c4-47e6-923a-3d0a005ed8a7\",\"name\":\"Ward-3\",\"voided\":false},\"voided\":false},\"tags\":[\"Mauza\"],\"voided\":false},\"parent\":\"a57cef08-b47e-4b59-acd8-354279a63027\"},\"bac5a3b2-456f-4500-93a7-7a24be91909e\":{\"id\":\"bac5a3b2-456f-4500-93a7-7a24be91909e\",\"label\":\"PROTAP - KATA PROTAP\",\"node\":{\"locationId\":\"bac5a3b2-456f-4500-93a7-7a24be91909e\",\"name\":\"PROTAP - KATA PROTAP\",\"parentLocation\":{\"locationId\":\"a57cef08-b47e-4b59-acd8-354279a63027\",\"name\":\"3-KA\",\"parentLocation\":{\"locationId\":\"f6b22dad-75c4-47e6-923a-3d0a005ed8a7\",\"name\":\"Ward-3\",\"voided\":false},\"voided\":false},\"tags\":[\"Mauza\"],\"voided\":false},\"parent\":\"a57cef08-b47e-4b59-acd8-354279a63027\"}},\"parent\":\"f6b22dad-75c4-47e6-923a-3d0a005ed8a7\"},\"f4e3cb47-fea1-418c-9a63-26374e424043\":{\"id\":\"f4e3cb47-fea1-418c-9a63-26374e424043\",\"label\":\"RANGPUR\",\"node\":{\"locationId\":\"f4e3cb47-fea1-418c-9a63-26374e424043\",\"name\":\"RANGPUR\",\"tags\":[\"Division\"],\"voided\":false},\"children\":{\"a556070e-cd96-49bc-b079-2a415d476a97\":{\"id\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"label\":\"GAIBANDHA\",\"node\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"parentLocation\":{\"locationId\":\"f4e3cb47-fea1-418c-9a63-26374e424043\",\"name\":\"RANGPUR\",\"voided\":false},\"tags\":[\"District\"],\"voided\":false},\"children\":{\"960ada36-be32-4867-a0aa-b7f4b835c61f\":{\"id\":\"960ada36-be32-4867-a0aa-b7f4b835c61f\",\"label\":\"SADULLAPUR\",\"node\":{\"locationId\":\"960ada36-be32-4867-a0aa-b7f4b835c61f\",\"name\":\"SADULLAPUR\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"parentLocation\":{\"locationId\":\"f4e3cb47-fea1-418c-9a63-26374e424043\",\"name\":\"RANGPUR\",\"voided\":false},\"voided\":false},\"tags\":[\"Upazilla\"],\"voided\":false},\"children\":{\"bd57db27-71b9-467e-9503-ce2dec74e61b\":{\"id\":\"bd57db27-71b9-467e-9503-ce2dec74e61b\",\"label\":\"JAMALPUR\",\"node\":{\"locationId\":\"bd57db27-71b9-467e-9503-ce2dec74e61b\",\"name\":\"JAMALPUR\",\"parentLocation\":{\"locationId\":\"960ada36-be32-4867-a0aa-b7f4b835c61f\",\"name\":\"SADULLAPUR\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"voided\":false},\"voided\":false},\"tags\":[\"Union\"],\"voided\":false},\"parent\":\"960ada36-be32-4867-a0aa-b7f4b835c61f\"},\"1b93c923-5ebb-4c0a-8bbb-067cc5fc5c9f\":{\"id\":\"1b93c923-5ebb-4c0a-8bbb-067cc5fc5c9f\",\"label\":\"FARIDPUR\",\"node\":{\"locationId\":\"1b93c923-5ebb-4c0a-8bbb-067cc5fc5c9f\",\"name\":\"FARIDPUR\",\"parentLocation\":{\"locationId\":\"960ada36-be32-4867-a0aa-b7f4b835c61f\",\"name\":\"SADULLAPUR\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"voided\":false},\"voided\":false},\"tags\":[\"Union\"],\"voided\":false},\"parent\":\"960ada36-be32-4867-a0aa-b7f4b835c61f\"},\"a39ce1d7-d8ee-49e9-8a81-02f7949f5ff0\":{\"id\":\"a39ce1d7-d8ee-49e9-8a81-02f7949f5ff0\",\"label\":\"KUMARPARA\",\"node\":{\"locationId\":\"a39ce1d7-d8ee-49e9-8a81-02f7949f5ff0\",\"name\":\"KUMARPARA\",\"parentLocation\":{\"locationId\":\"960ada36-be32-4867-a0aa-b7f4b835c61f\",\"name\":\"SADULLAPUR\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"voided\":false},\"voided\":false},\"tags\":[\"Union\"],\"voided\":false},\"parent\":\"960ada36-be32-4867-a0aa-b7f4b835c61f\"},\"07b798a0-2219-4447-8b72-2510c0526a15\":{\"id\":\"07b798a0-2219-4447-8b72-2510c0526a15\",\"label\":\"DAMODARPUR\",\"node\":{\"locationId\":\"07b798a0-2219-4447-8b72-2510c0526a15\",\"name\":\"DAMODARPUR\",\"parentLocation\":{\"locationId\":\"960ada36-be32-4867-a0aa-b7f4b835c61f\",\"name\":\"SADULLAPUR\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"voided\":false},\"voided\":false},\"tags\":[\"Union\"],\"voided\":false},\"parent\":\"960ada36-be32-4867-a0aa-b7f4b835c61f\"},\"b25f114e-22e4-4cf8-89ef-af94ea2cecc5\":{\"id\":\"b25f114e-22e4-4cf8-89ef-af94ea2cecc5\",\"label\":\"NALDANGA\",\"node\":{\"locationId\":\"b25f114e-22e4-4cf8-89ef-af94ea2cecc5\",\"name\":\"NALDANGA\",\"parentLocation\":{\"locationId\":\"960ada36-be32-4867-a0aa-b7f4b835c61f\",\"name\":\"SADULLAPUR\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"voided\":false},\"voided\":false},\"tags\":[\"Union\"],\"voided\":false},\"parent\":\"960ada36-be32-4867-a0aa-b7f4b835c61f\"},\"e7d39ba2-45a1-498c-bcc5-937f179d81fa\":{\"id\":\"e7d39ba2-45a1-498c-bcc5-937f179d81fa\",\"label\":\"RASULPUR\",\"node\":{\"locationId\":\"e7d39ba2-45a1-498c-bcc5-937f179d81fa\",\"name\":\"RASULPUR\",\"parentLocation\":{\"locationId\":\"960ada36-be32-4867-a0aa-b7f4b835c61f\",\"name\":\"SADULLAPUR\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"voided\":false},\"voided\":false},\"tags\":[\"Union\"],\"voided\":false},\"parent\":\"960ada36-be32-4867-a0aa-b7f4b835c61f\"}},\"parent\":\"a556070e-cd96-49bc-b079-2a415d476a97\"},\"57b34716-c291-4ca4-a7c8-28e65ab8819a\":{\"id\":\"57b34716-c291-4ca4-a7c8-28e65ab8819a\",\"label\":\"GAIBANDHA SADAR\",\"node\":{\"locationId\":\"57b34716-c291-4ca4-a7c8-28e65ab8819a\",\"name\":\"GAIBANDHA SADAR\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"parentLocation\":{\"locationId\":\"f4e3cb47-fea1-418c-9a63-26374e424043\",\"name\":\"RANGPUR\",\"voided\":false},\"voided\":false},\"tags\":[\"Upazilla\"],\"voided\":false},\"children\":{\"7491ac95-05d2-49a8-b6a9-463f357171eb\":{\"id\":\"7491ac95-05d2-49a8-b6a9-463f357171eb\",\"label\":\"LAKSHMIPUR\",\"node\":{\"locationId\":\"7491ac95-05d2-49a8-b6a9-463f357171eb\",\"name\":\"LAKSHMIPUR\",\"parentLocation\":{\"locationId\":\"57b34716-c291-4ca4-a7c8-28e65ab8819a\",\"name\":\"GAIBANDHA SADAR\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"voided\":false},\"voided\":false},\"tags\":[\"Union\"],\"voided\":false},\"parent\":\"57b34716-c291-4ca4-a7c8-28e65ab8819a\"},\"725658c6-4d94-4791-bad6-614dec63d83b\":{\"id\":\"725658c6-4d94-4791-bad6-614dec63d83b\",\"label\":\"KUPTALA\",\"node\":{\"locationId\":\"725658c6-4d94-4791-bad6-614dec63d83b\",\"name\":\"KUPTALA\",\"parentLocation\":{\"locationId\":\"57b34716-c291-4ca4-a7c8-28e65ab8819a\",\"name\":\"GAIBANDHA SADAR\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"voided\":false},\"voided\":false},\"tags\":[\"Union\"],\"voided\":false},\"parent\":\"57b34716-c291-4ca4-a7c8-28e65ab8819a\"},\"d658d99a-1941-406b-bbdc-b46a2545de92\":{\"id\":\"d658d99a-1941-406b-bbdc-b46a2545de92\",\"label\":\"MALIBARI\",\"node\":{\"locationId\":\"d658d99a-1941-406b-bbdc-b46a2545de92\",\"name\":\"MALIBARI\",\"parentLocation\":{\"locationId\":\"57b34716-c291-4ca4-a7c8-28e65ab8819a\",\"name\":\"GAIBANDHA SADAR\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"voided\":false},\"voided\":false},\"tags\":[\"Union\"],\"voided\":false},\"parent\":\"57b34716-c291-4ca4-a7c8-28e65ab8819a\"}},\"parent\":\"a556070e-cd96-49bc-b079-2a415d476a97\"}},\"parent\":\"f4e3cb47-fea1-418c-9a63-26374e424043\"}}},\"cd4ed528-87cd-42ee-a175-5e7089521ebd\":{\"id\":\"cd4ed528-87cd-42ee-a175-5e7089521ebd\",\"label\":\"Pakistan\",\"node\":{\"locationId\":\"cd4ed528-87cd-42ee-a175-5e7089521ebd\",\"name\":\"Pakistan\",\"tags\":[\"Country\"],\"voided\":false},\"children\":{\"461f2be7-c95d-433c-b1d7-c68f272409d7\":{\"id\":\"461f2be7-c95d-433c-b1d7-c68f272409d7\",\"label\":\"Sindh\",\"node\":{\"locationId\":\"461f2be7-c95d-433c-b1d7-c68f272409d7\",\"name\":\"Sindh\",\"parentLocation\":{\"locationId\":\"cd4ed528-87cd-42ee-a175-5e7089521ebd\",\"name\":\"Pakistan\",\"voided\":false},\"tags\":[\"Province\"],\"voided\":false},\"children\":{\"a529e2fc-6f0d-4e60-a5df-789fe17cca48\":{\"id\":\"a529e2fc-6f0d-4e60-a5df-789fe17cca48\",\"label\":\"Karachi\",\"node\":{\"locationId\":\"a529e2fc-6f0d-4e60-a5df-789fe17cca48\",\"name\":\"Karachi\",\"parentLocation\":{\"locationId\":\"461f2be7-c95d-433c-b1d7-c68f272409d7\",\"name\":\"Sindh\",\"parentLocation\":{\"locationId\":\"cd4ed528-87cd-42ee-a175-5e7089521ebd\",\"name\":\"Pakistan\",\"voided\":false},\"voided\":false},\"tags\":[\"City\"],\"voided\":false},\"children\":{\"60c21502-fec1-40f5-b77d-6df3f92771ce\":{\"id\":\"60c21502-fec1-40f5-b77d-6df3f92771ce\",\"label\":\"Baldia\",\"node\":{\"locationId\":\"60c21502-fec1-40f5-b77d-6df3f92771ce\",\"name\":\"Baldia\",\"parentLocation\":{\"locationId\":\"a529e2fc-6f0d-4e60-a5df-789fe17cca48\",\"name\":\"Karachi\",\"parentLocation\":{\"locationId\":\"461f2be7-c95d-433c-b1d7-c68f272409d7\",\"name\":\"Sindh\",\"voided\":false},\"voided\":false},\"tags\":[\"Town\"],\"attributes\":{\"at1\":\"atttt1\"},\"voided\":false},\"parent\":\"a529e2fc-6f0d-4e60-a5df-789fe17cca48\"}},\"parent\":\"461f2be7-c95d-433c-b1d7-c68f272409d7\"}},\"parent\":\"cd4ed528-87cd-42ee-a175-5e7089521ebd\"}}},\"96cd1c2a-f678-4687-bd87-8f4c5eae261a\":{\"id\":\"96cd1c2a-f678-4687-bd87-8f4c5eae261a\",\"label\":\"BAMANDANGA\",\"node\":{\"locationId\":\"96cd1c2a-f678-4687-bd87-8f4c5eae261a\",\"name\":\"BAMANDANGA\",\"parentLocation\":{\"locationId\":\"11eaac2c-12d6-4958-b548-2d6768776b10\",\"name\":\"SUNDARGANJ\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"voided\":false},\"voided\":false},\"tags\":[\"Union\"],\"voided\":false},\"parent\":\"11eaac2c-12d6-4958-b548-2d6768776b10\"},\"e1f223f5-a59e-4a54-b44e-472ff2438684\":{\"id\":\"e1f223f5-a59e-4a54-b44e-472ff2438684\",\"label\":\"2-KA\",\"node\":{\"locationId\":\"e1f223f5-a59e-4a54-b44e-472ff2438684\",\"name\":\"2-KA\",\"parentLocation\":{\"locationId\":\"318e5671-368b-4e9c-8bc1-7a6fb545c1e5\",\"name\":\"Ward-2\",\"parentLocation\":{\"locationId\":\"725658c6-4d94-4791-bad6-614dec63d83b\",\"name\":\"KUPTALA\",\"voided\":false},\"voided\":false},\"tags\":[\"Unit\"],\"voided\":false},\"children\":{\"fbe4c8cf-5d52-4bc3-a4ec-9dcc1f5504cd\":{\"id\":\"fbe4c8cf-5d52-4bc3-a4ec-9dcc1f5504cd\",\"label\":\"RAMPRASHAD\",\"node\":{\"locationId\":\"fbe4c8cf-5d52-4bc3-a4ec-9dcc1f5504cd\",\"name\":\"RAMPRASHAD\",\"parentLocation\":{\"locationId\":\"e1f223f5-a59e-4a54-b44e-472ff2438684\",\"name\":\"2-KA\",\"parentLocation\":{\"locationId\":\"318e5671-368b-4e9c-8bc1-7a6fb545c1e5\",\"name\":\"Ward-2\",\"voided\":false},\"voided\":false},\"tags\":[\"Mauza\"],\"voided\":false},\"parent\":\"e1f223f5-a59e-4a54-b44e-472ff2438684\"},\"36fc5398-8e7a-430b-ab3b-557788b4d89f\":{\"id\":\"36fc5398-8e7a-430b-ab3b-557788b4d89f\",\"label\":\"Kuptala-2-KA\",\"node\":{\"locationId\":\"36fc5398-8e7a-430b-ab3b-557788b4d89f\",\"name\":\"Kuptala-2-KA\",\"parentLocation\":{\"locationId\":\"e1f223f5-a59e-4a54-b44e-472ff2438684\",\"name\":\"2-KA\",\"parentLocation\":{\"locationId\":\"318e5671-368b-4e9c-8bc1-7a6fb545c1e5\",\"name\":\"Ward-2\",\"voided\":false},\"voided\":false},\"tags\":[\"Mauza\"],\"voided\":false},\"parent\":\"e1f223f5-a59e-4a54-b44e-472ff2438684\"}},\"parent\":\"318e5671-368b-4e9c-8bc1-7a6fb545c1e5\"},\"774bca32-01ab-4c7a-91f0-b5c51c41945a\":{\"id\":\"774bca32-01ab-4c7a-91f0-b5c51c41945a\",\"label\":\"CHHAPARHATI\",\"node\":{\"locationId\":\"774bca32-01ab-4c7a-91f0-b5c51c41945a\",\"name\":\"CHHAPARHATI\",\"parentLocation\":{\"locationId\":\"11eaac2c-12d6-4958-b548-2d6768776b10\",\"name\":\"SUNDARGANJ\",\"parentLocation\":{\"locationId\":\"a556070e-cd96-49bc-b079-2a415d476a97\",\"name\":\"GAIBANDHA\",\"voided\":false},\"voided\":false},\"tags\":[\"Union\"],\"voided\":false},\"parent\":\"11eaac2c-12d6-4958-b548-2d6768776b10\"},\"f332d8ac-e57f-49ba-8fb0-c428651697a2\":{\"id\":\"f332d8ac-e57f-49ba-8fb0-c428651697a2\",\"label\":\"3-KHA\",\"node\":{\"locationId\":\"f332d8ac-e57f-49ba-8fb0-c428651697a2\",\"name\":\"3-KHA\",\"parentLocation\":{\"locationId\":\"f6b22dad-75c4-47e6-923a-3d0a005ed8a7\",\"name\":\"Ward-3\",\"parentLocation\":{\"locationId\":\"b25f114e-22e4-4cf8-89ef-af94ea2cecc5\",\"name\":\"NALDANGA\",\"voided\":false},\"voided\":false},\"tags\":[\"Unit\"],\"voided\":false},\"children\":{\"2fc43738-ace5-4961-8e8f-ab7d00e5bc63\":{\"id\":\"2fc43738-ace5-4961-8e8f-ab7d00e5bc63\",\"label\":\"DASLIA - ALL PARAS\",\"node\":{\"locationId\":\"2fc43738-ace5-4961-8e8f-ab7d00e5bc63\",\"name\":\"DASLIA - ALL PARAS\",\"parentLocation\":{\"locationId\":\"f332d8ac-e57f-49ba-8fb0-c428651697a2\",\"name\":\"3-KHA\",\"parentLocation\":{\"locationId\":\"f6b22dad-75c4-47e6-923a-3d0a005ed8a7\",\"name\":\"Ward-3\",\"voided\":false},\"voided\":false},\"tags\":[\"Mauza\"],\"voided\":false},\"parent\":\"f332d8ac-e57f-49ba-8fb0-c428651697a2\"},\"50d3dddd-9fba-4895-9b96-fe66d42e6fed\":{\"id\":\"50d3dddd-9fba-4895-9b96-fe66d42e6fed\",\"label\":\"PROTAP - OPADANI PARA\",\"node\":{\"locationId\":\"50d3dddd-9fba-4895-9b96-fe66d42e6fed\",\"name\":\"PROTAP - OPADANI PARA\",\"parentLocation\":{\"locationId\":\"f332d8ac-e57f-49ba-8fb0-c428651697a2\",\"name\":\"3-KHA\",\"parentLocation\":{\"locationId\":\"f6b22dad-75c4-47e6-923a-3d0a005ed8a7\",\"name\":\"Ward-3\",\"voided\":false},\"voided\":false},\"tags\":[\"Mauza\"],\"voided\":false},\"parent\":\"f332d8ac-e57f-49ba-8fb0-c428651697a2\"},\"80efdc06-59b7-4594-bf24-561a7eb12676\":{\"id\":\"80efdc06-59b7-4594-bf24-561a7eb12676\",\"label\":\"PROTAP - SARDAR PARA\",\"node\":{\"locationId\":\"80efdc06-59b7-4594-bf24-561a7eb12676\",\"name\":\"PROTAP - SARDAR PARA\",\"parentLocation\":{\"locationId\":\"f332d8ac-e57f-49ba-8fb0-c428651697a2\",\"name\":\"3-KHA\",\"parentLocation\":{\"locationId\":\"f6b22dad-75c4-47e6-923a-3d0a005ed8a7\",\"name\":\"Ward-3\",\"voided\":false},\"voided\":false},\"tags\":[\"Mauza\"],\"voided\":false},\"parent\":\"f332d8ac-e57f-49ba-8fb0-c428651697a2\"}},\"parent\":\"f6b22dad-75c4-47e6-923a-3d0a005ed8a7\"}},\"parentChildren\":{\"215caa30-1906-4210-8294-23eb7914c1dd\":[\"4ccd5a33-c462-4b53-b8c1-a1ad1c3ba0cf\"],\"318e5671-368b-4e9c-8bc1-7a6fb545c1e5\":[\"e1f223f5-a59e-4a54-b44e-472ff2438684\",\"e8964ad4-e6f2-4aff-bb61-28c08d01af51\"],\"429feb8b-0b8d-4496-8e54-fdc94affed07\":[\"9047a5e3-66cf-4f83-b0b6-3cdd3d611272\",\"a8b7d760-0e7e-4fdb-9450-b41d31d1ec34\"],\"e8964ad4-e6f2-4aff-bb61-28c08d01af51\":[\"3a041478-5d39-4d42-b785-67c2ae56febb\",\"27e6d636-0683-4539-90b8-2c795318dc08\"],\"f6b22dad-75c4-47e6-923a-3d0a005ed8a7\":[\"a57cef08-b47e-4b59-acd8-354279a63027\",\"f332d8ac-e57f-49ba-8fb0-c428651697a2\"],\"a529e2fc-6f0d-4e60-a5df-789fe17cca48\":[\"60c21502-fec1-40f5-b77d-6df3f92771ce\"],\"42423d74-a061-463b-93a1-2f773f0aae21\":[\"88abc9f1-d698-41e3-8e2d-0c900b16dfe6\"],\"fa32786b-4063-4f39-b72d-a5bc0e549193\":[\"f872c792-32ac-49e7-a386-f6b968968ef1\"],\"a57cef08-b47e-4b59-acd8-354279a63027\":[\"f30df310-0d30-4482-8dfe-667def649c20\",\"f6933584-9248-409d-b06a-0988c470ce45\",\"bac5a3b2-456f-4500-93a7-7a24be91909e\"],\"cd4ed528-87cd-42ee-a175-5e7089521ebd\":[\"461f2be7-c95d-433c-b1d7-c68f272409d7\"],\"f4e3cb47-fea1-418c-9a63-26374e424043\":[\"a556070e-cd96-49bc-b079-2a415d476a97\"],\"e1f223f5-a59e-4a54-b44e-472ff2438684\":[\"fbe4c8cf-5d52-4bc3-a4ec-9dcc1f5504cd\",\"36fc5398-8e7a-430b-ab3b-557788b4d89f\"],\"bfeb65bd-bff0-41bb-81a0-0220a4200bff\":[\"429feb8b-0b8d-4496-8e54-fdc94affed07\",\"42423d74-a061-463b-93a1-2f773f0aae21\"],\"11eaac2c-12d6-4958-b548-2d6768776b10\":[\"dff51374-be72-46cb-a9a3-c7989e24430c\",\"e8e88d43-e181-42f1-9de5-143149922eea\",\"d3367458-f5e5-4039-b1e7-f087cc5be3fa\",\"96cd1c2a-f678-4687-bd87-8f4c5eae261a\",\"f2f803d5-857a-42a4-a05b-142c3327b4fc\",\"e0d50bc5-09b2-4102-809d-687fe71d5fd0\",\"774bca32-01ab-4c7a-91f0-b5c51c41945a\",\"5d0661b5-4868-49eb-a697-e4dc4348dfab\",\"f48a6482-2ffd-4596-8d9b-46dadc3c73df\"],\"461f2be7-c95d-433c-b1d7-c68f272409d7\":[\"a529e2fc-6f0d-4e60-a5df-789fe17cca48\"],\"a556070e-cd96-49bc-b079-2a415d476a97\":[\"960ada36-be32-4867-a0aa-b7f4b835c61f\",\"57b34716-c291-4ca4-a7c8-28e65ab8819a\"],\"960ada36-be32-4867-a0aa-b7f4b835c61f\":[\"bd57db27-71b9-467e-9503-ce2dec74e61b\",\"1b93c923-5ebb-4c0a-8bbb-067cc5fc5c9f\",\"a39ce1d7-d8ee-49e9-8a81-02f7949f5ff0\",\"b25f114e-22e4-4cf8-89ef-af94ea2cecc5\",\"07b798a0-2219-4447-8b72-2510c0526a15\",\"e7d39ba2-45a1-498c-bcc5-937f179d81fa\"],\"57b34716-c291-4ca4-a7c8-28e65ab8819a\":[\"7491ac95-05d2-49a8-b6a9-463f357171eb\",\"725658c6-4d94-4791-bad6-614dec63d83b\",\"d658d99a-1941-406b-bbdc-b46a2545de92\"],\"f332d8ac-e57f-49ba-8fb0-c428651697a2\":[\"2fc43738-ace5-4961-8e8f-ab7d00e5bc63\",\"50d3dddd-9fba-4895-9b96-fe66d42e6fed\",\"80efdc06-59b7-4594-bf24-561a7eb12676\"],\"1ccb61b5-022f-4735-95b4-1c57e9f7938f\":[\"215caa30-1906-4210-8294-23eb7914c1dd\",\"fa32786b-4063-4f39-b72d-a5bc0e549193\"]}}}"; - - public UserControllerTest() throws IOException { - super(); - } - - @Mock - private OpenmrsLocationService locationservice; - - @Mock - private OpenmrsUserService userservice; - - @Mock - private UserController controller; - - private DrishtiAuthenticationProvider auth; - - UsernamePasswordAuthenticationToken usernamePasswordAuthenticationToken; - - @Mock - PasswordEncoder au; - - @Before - public void setUp() throws Exception { - initMocks(this); - auth = new DrishtiAuthenticationProvider(userservice, null); - usernamePasswordAuthenticationToken = new UsernamePasswordAuthenticationToken("demook", "demook"); - } - - @Test - public void test() throws JSONException { - User u = new User("test user 1"); - u.withAttribute("Location", "cd4ed528-87cd-42ee-a175-5e7089521ebd"); - when(controller.getAuthenticationAdvisor(Mockito.mock(HttpServletRequest.class))) - .thenReturn(usernamePasswordAuthenticationToken); - when(controller.currentUser(any(HttpServletRequest.class))).thenReturn(u); - JSONObject to = new JSONObject(TEAM_MEMEBER_OBJECT); - - doReturn(to).when(userservice).getTeamMember(any(String.class)); - LocationTree ltree = new Gson().fromJson(LOCATION_TREE_OBJECT, LocationTree.class); - doReturn(ltree).when(locationservice).getLocationTreeOf(any(String[].class)); - } - - @Test - public void shoudPassOnCorrectPassword() throws JSONException { - User u = new User("test user 1"); - u.withAttribute("Location", "cd4ed528-87cd-42ee-a175-5e7089521ebd"); - - when(userservice.authenticate("demook", "demook")).thenReturn(true); - when(controller.getAuthenticationAdvisor(Mockito.mock(HttpServletRequest.class))) - .thenReturn(usernamePasswordAuthenticationToken); - - when(auth.getDrishtiUser(usernamePasswordAuthenticationToken, "demook")).thenReturn(u); - - controller.authenticate(Mockito.mock(HttpServletRequest.class)); - } -} diff --git a/opensrp-web/src/test/java/org/opensrp/web/controller/XlsDataImportControllerTest.java b/opensrp-web/src/test/java/org/opensrp/web/controller/XlsDataImportControllerTest.java deleted file mode 100644 index 8295030a83..0000000000 --- a/opensrp-web/src/test/java/org/opensrp/web/controller/XlsDataImportControllerTest.java +++ /dev/null @@ -1,76 +0,0 @@ -package org.opensrp.web.controller; - -import static org.mockito.MockitoAnnotations.initMocks; -import static org.mockito.Matchers.any; -import static org.mockito.Matchers.anyInt; -import static org.mockito.Mockito.when; -import static org.mockito.Mockito.verify; -import static org.mockito.Mockito.times; - -import java.io.File; -import java.io.FileInputStream; -import java.io.IOException; -import java.sql.SQLException; -import java.util.ArrayList; -import java.util.List; - -import org.apache.commons.io.IOUtils; -import org.json.JSONArray; -import org.json.JSONException; -import org.json.JSONObject; -import org.junit.Before; -import org.junit.Test; -import org.mockito.Mock; -import org.opensrp.domain.Client; -import org.opensrp.domain.Event; -import org.opensrp.service.ClientService; -import org.opensrp.service.EventService; -import org.opensrp.service.OpenmrsIDService; -import org.opensrp.web.controller.XlsDataImportController; -import org.springframework.http.ResponseEntity; -import org.springframework.mock.web.MockMultipartFile; - -import static org.junit.Assert.assertTrue; -import static org.junit.Assert.assertEquals; - -public class XlsDataImportControllerTest { - @Mock - ClientService clientService; - - @Mock - EventService eventService; - - @Mock - OpenmrsIDService openmrsIDService; - - @Before - public void setUp() { - initMocks(this); - } - - @Test - public void shouldCreateClientsFromCSVFile() throws IOException, SQLException, JSONException { - File csvFile = new File("src/test/java/org/opensrp/fixtures/csv_to_import.csv"); - FileInputStream fileInputStream = new FileInputStream(csvFile); - MockMultipartFile file = new MockMultipartFile("file", IOUtils.toByteArray(fileInputStream)); - List openmrsIds = new ArrayList(); - openmrsIds.add("12345-1"); - openmrsIds.add("12345-2"); - - - when(this.openmrsIDService.downloadOpenmrsIds(anyInt())).thenReturn(openmrsIds); - - XlsDataImportController controller = new XlsDataImportController(clientService, eventService, openmrsIDService); - ResponseEntity response = controller.importXlsData(file); - String responseBody = response.getBody(); - JSONObject responseJson = new JSONObject(responseBody); - - int summaryClientCount = responseJson.getInt("summary_client_count"); - int summaryEventCount = responseJson.getInt("summary_event_count"); - - assertEquals(summaryClientCount, 4); - assertEquals(summaryEventCount, 28); - verify(clientService, times(4)).addorUpdate(any(Client.class)); - verify(eventService, times(28)).addEvent(any(Event.class)); - } -} diff --git a/opensrp-web/src/test/java/org/opensrp/web/controller/it/ActionControllerTest.java b/opensrp-web/src/test/java/org/opensrp/web/controller/it/ActionControllerTest.java deleted file mode 100644 index 85fa33bdb6..0000000000 --- a/opensrp-web/src/test/java/org/opensrp/web/controller/it/ActionControllerTest.java +++ /dev/null @@ -1,158 +0,0 @@ -package org.opensrp.web.controller.it; - -import static java.util.Arrays.asList; -import static org.junit.Assert.assertEquals; -import static org.opensrp.dto.AlertStatus.normal; -import static org.opensrp.dto.BeneficiaryType.mother; -import static org.opensrp.web.rest.it.ResourceTestUtility.createActions; -import static org.opensrp.web.rest.it.ResourceTestUtility.createAlerts; -import static org.opensrp.web.rest.it.ResourceTestUtility.createClients; -import static org.springframework.test.web.server.result.MockMvcResultMatchers.status; - -import java.util.HashMap; -import java.util.Map; - -import org.codehaus.jackson.JsonNode; -import org.codehaus.jackson.node.ObjectNode; -import org.joda.time.DateTime; -import org.joda.time.DateTimeZone; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; -import org.opensrp.domain.Client; -import org.opensrp.dto.ActionData; -import org.opensrp.dto.AlertStatus; -import org.opensrp.repository.couch.AllClients; -import org.opensrp.scheduler.Action; -import org.opensrp.scheduler.Alert; -import org.opensrp.scheduler.repository.couch.AllActions; -import org.opensrp.scheduler.repository.couch.AllAlerts; -import org.opensrp.web.controller.ActionConvertor; -import org.opensrp.web.rest.it.BaseResourceTest; -import org.springframework.beans.factory.annotation.Autowired; - -public class ActionControllerTest extends BaseResourceTest { - - @Autowired - private AllActions allActions; - - @Autowired - private AllClients allClients; - - @Autowired - private AllAlerts allAlerts; - - @Before - public void setUp() { - allClients.removeAll(); - allActions.removeAll(); - allAlerts.removeAll(); - } - - @After - public void cleanUp() { - allClients.removeAll(); - allActions.removeAll(); - allAlerts.removeAll(); - } - - @Test - public void shouldFetchNewActionsBasedOnAnmIdAndTimestamp() throws Exception { - String url = "/actions"; - Map data = new HashMap<>(); - data.put("key", "value"); - Action expectedAction = new Action("Case X", "ANM 1", ActionData - .createAlert(mother.value(), "Ante Natal Care - Normal", "ANC 1", normal, DateTime.now(), - DateTime.now().plusDays(3))); - createActions(asList(expectedAction), allActions); - - org.opensrp.dto.Action expectedActionDto = ActionConvertor.from(expectedAction); - - JsonNode actualObj = getCallAsJsonNode(url, - "anmIdentifier=" + "ANM 1" + "&timeStamp=" + new DateTime().minusDays(1).getMillis(), status().isOk()); - org.opensrp.dto.Action actualActionDto = mapper.treeToValue(actualObj.get(0), org.opensrp.dto.Action.class); - - assertEquals(expectedActionDto, actualActionDto); - } - - @Test - public void shouldFetchNewActionsBasedOnBaseEntityIdAndTimestamp() throws Exception { - String url = "/useractions"; - Map data = new HashMap<>(); - data.put("key", "value"); - Action expectedAction = new Action("Case X", "ANM 1", ActionData - .createAlert(mother.value(), "Ante Natal Care - Normal", "ANC 1", normal, DateTime.now(), - DateTime.now().plusDays(3))); - createActions(asList(expectedAction), allActions); - - org.opensrp.dto.Action expectedActionDto = ActionConvertor.from(expectedAction); - - JsonNode actualObj = getCallAsJsonNode(url, - "baseEntityId=" + "Case X" + "&timeStamp=" + new DateTime().minusDays(1).getMillis(), status().isOk()); - org.opensrp.dto.Action actualActionDto = mapper.treeToValue(actualObj.get(0), org.opensrp.dto.Action.class); - - assertEquals(expectedActionDto, actualActionDto); - } - - @Test - public void shouldRemoveAlertBasedOnKey() throws Exception { - String url = "/alert_delete"; - Client expectedClient = new Client("1").withFirstName("first").withGender("male") - .withBirthdate(new DateTime(0l, DateTimeZone.UTC), false); - createClients(asList(expectedClient), allClients); - - Alert alert = new Alert("providerId", "1", "beneficiaryType", Alert.AlertType.notification, Alert.TriggerType.event, - "20160727KiSafaiMuhim", "triggerCode", new DateTime(0l, DateTimeZone.UTC), - new DateTime(1l, DateTimeZone.UTC), AlertStatus.normal, new HashMap()); - Alert duplicateAlert = new Alert("providerId", "1", "beneficiaryType", Alert.AlertType.notification, - Alert.TriggerType.event, "20160727KiSafaiMuhim", "triggerCode", new DateTime(0l, DateTimeZone.UTC), - new DateTime(1l, DateTimeZone.UTC), AlertStatus.normal, new HashMap()); - - createAlerts(asList(alert, duplicateAlert), allAlerts); - assertEquals(2, allAlerts.getAll().size()); - - getCallAsJsonNode(url, "key=" + "20160727KiSafaiMuhim", status().isOk()); - - assertEquals(1, allAlerts.getAll().size()); - } - - @Test - public void shouldFetchNewActionsBasedOnTimestamp() throws Exception { - String url = "/actions/sync"; - Map data = new HashMap<>(); - data.put("key", "value"); - Action expectedAction = new Action("Case X", "ANM 1", ActionData - .createAlert(mother.value(), "Ante Natal Care - Normal", "ANC 1", normal, DateTime.now(), - DateTime.now().plusDays(3))); - createActions(asList(expectedAction), allActions); - - JsonNode actualObj = getCallAsJsonNode(url, - "providerId=" + "ANM 1" + "&serverVersion=" + new DateTime().minusDays(1).getMillis(), status().isOk()); - - int actualActionsSize = Integer.parseInt(actualObj.get("no_of_actions").asText()); - ObjectNode actionObj = (ObjectNode) actualObj.get("actions").get(0); - actionObj.remove("id"); - actionObj.remove("revision"); - Action actualAction = mapper.treeToValue(actionObj, Action.class); - - assertEquals(1, actualActionsSize); - assertEquals(expectedAction, actualAction); - } - - @Test - public void shouldReturnEmptyResponseForInvalidTimeStampWhileSync() throws Exception { - String url = "/actions/sync"; - Map data = new HashMap<>(); - data.put("key", "value"); - Action expectedAction = new Action("Case X", "ANM 1", ActionData - .createAlert(mother.value(), "Ante Natal Care - Normal", "ANC 1", normal, DateTime.now(), - DateTime.now().plusDays(3))); - createActions(asList(expectedAction), allActions); - - JsonNode actualObj = getCallAsJsonNode(url, "?providerId=" + "ANM 1" + "&serverVersion=" + "dsfs", - status().isInternalServerError()); - - assertEquals("Error occurred", actualObj.get("msg").asText()); - } - -} diff --git a/opensrp-web/src/test/java/org/opensrp/web/controller/it/AuditMessageControllerIntegrationTest.java b/opensrp-web/src/test/java/org/opensrp/web/controller/it/AuditMessageControllerIntegrationTest.java deleted file mode 100644 index f1c636425a..0000000000 --- a/opensrp-web/src/test/java/org/opensrp/web/controller/it/AuditMessageControllerIntegrationTest.java +++ /dev/null @@ -1,48 +0,0 @@ -package org.opensrp.web.controller.it; - -import org.codehaus.jackson.JsonNode; -import org.junit.Before; -import org.junit.Ignore; -import org.junit.Test; -import org.opensrp.common.audit.AuditMessage; -import org.opensrp.common.audit.AuditMessageType; -import org.opensrp.common.audit.Auditor; -import org.opensrp.domain.Client; -import org.opensrp.web.controller.AuditMessageController; -import org.opensrp.web.rest.it.BaseResourceTest; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.MediaType; -import org.springframework.test.web.server.MvcResult; -import org.springframework.test.web.server.setup.MockMvcBuilders; - -import static org.junit.Assert.assertEquals; -import static org.springframework.test.web.server.request.MockMvcRequestBuilders.get; -import static org.springframework.test.web.server.result.MockMvcResultHandlers.print; -import static org.springframework.test.web.server.result.MockMvcResultMatchers.status; - -@Ignore -public class AuditMessageControllerIntegrationTest extends BaseResourceTest { - - @Autowired - Auditor auditor; - - -/* - @Test - public void getAuditMessagesBasedOnPreviousIndex() throws Exception { - String url = "/audit/messages"; - Auditor.AuditMessageBuilder auditMessageBuilder = new Auditor.AuditMessageBuilder(auditor, AuditMessageType.NORMAL); - auditMessageBuilder.done(); - auditMessageBuilder = new Auditor.AuditMessageBuilder(auditor, AuditMessageType.SMS); - auditMessageBuilder.done(); - - MvcResult mvcResult = this.mockMvc.perform(get(url + "?previousAuditMessageIndex=1").accept(MediaType.APPLICATION_JSON)) - .andExpect(status().isOk()).andDo(print()).andReturn(); - - String responseString = mvcResult.getResponse().getContentAsString(); - JsonNode actualObj = mapper.readTree(responseString); - Client actualClient = mapper.treeToValue(actualObj, Client.class); - - assertEquals(Auditor.AuditMessageItem.from(auditor.messagesSince(1)), actualClient); - }*/ -} diff --git a/opensrp-web/src/test/java/org/opensrp/web/controller/it/ErrorTraceControllerIntegrationTest.java b/opensrp-web/src/test/java/org/opensrp/web/controller/it/ErrorTraceControllerIntegrationTest.java deleted file mode 100644 index 5cc3504fb6..0000000000 --- a/opensrp-web/src/test/java/org/opensrp/web/controller/it/ErrorTraceControllerIntegrationTest.java +++ /dev/null @@ -1,193 +0,0 @@ -package org.opensrp.web.controller.it; - -import static java.util.Arrays.asList; -import static org.junit.Assert.assertEquals; -import static org.motechproject.delivery.schedule.util.SameItems.hasSameItemsAs; -import static org.opensrp.web.rest.it.ResourceTestUtility.createErrorTraces; -import static org.springframework.test.web.server.result.MockMvcResultMatchers.status; - -import java.util.List; -import java.util.Map; - -import org.codehaus.jackson.JsonNode; -import org.joda.time.DateTime; -import org.joda.time.DateTimeZone; -import org.junit.After; -import org.junit.Before; -import org.junit.Ignore; -import org.junit.Test; -import org.opensrp.domain.ErrorTrace; -import org.opensrp.domain.ErrorTraceForm; -import org.opensrp.repository.couch.AllErrorTrace; -import org.opensrp.web.rest.it.BaseResourceTest; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.servlet.ModelAndView; - -public class ErrorTraceControllerIntegrationTest extends BaseResourceTest { - - private final static String BASE_URL = "/errorhandler"; - - @Autowired - AllErrorTrace allErrorTrace; - - ErrorTraceForm errorTraceForm; - - @Before - public void setUP() { - allErrorTrace.removeAll(); - errorTraceForm = new ErrorTraceForm(); - } - - @After - public void cleanUp() { - //allErrorTrace.removeAll(); - } - - @Test - @Ignore - public void shouldReturnErrorIndex() throws Exception { - String url = BASE_URL + "/index"; - JsonNode returnedObject = getCallAsJsonNode(url, "", status().isOk()); - - System.out.println(returnedObject); - - ModelAndView modelAndView = mapper.treeToValue(returnedObject, ModelAndView.class); - Map actualModel = modelAndView.getModelMap(); - List actualStatusOptions = mapper - .treeToValue(mapper.readTree((String) actualModel.get("statusOptions")), List.class); - - assertEquals("home_error", modelAndView.getViewName()); - assertEquals("all", actualModel.get("type")); - assertEquals(errorTraceForm.getStatusOptions(), hasSameItemsAs(actualStatusOptions)); - - } - - @Test - public void shouldReturnAllError() throws Exception { - String url = BASE_URL + "/errortrace"; - ErrorTrace expectedErrorTrace = new ErrorTrace(new DateTime(0l, DateTimeZone.UTC), "documentType", "errorType", - "occuredAt", "stackTrace", "status"); - createErrorTraces(asList(expectedErrorTrace), allErrorTrace); - - JsonNode returnedObject = getCallAsJsonNode(url, "", status().isOk()); - ErrorTrace actualErrorTrace = mapper.treeToValue(returnedObject.get(0), ErrorTrace.class); - - assertEquals(expectedErrorTrace, actualErrorTrace); - } - - @Test - @Ignore - public void shouldReturnAllErrorWithDifferentURl() throws Exception { - String url = BASE_URL + "/allerrors"; - ErrorTrace expectedErrorTrace = new ErrorTrace(new DateTime(0l, DateTimeZone.UTC), "documentType", "errorType", - "occuredAt", "stackTrace", "status"); - createErrorTraces(asList(expectedErrorTrace), allErrorTrace); - - JsonNode returnedObject = getCallAsJsonNode(url, "", status().isOk()); - ErrorTrace actualErrorTrace = mapper.treeToValue(returnedObject.get(0), ErrorTrace.class); - - assertEquals(expectedErrorTrace, actualErrorTrace); - } - - @Test - public void shouldReturnAllSolvedError() throws Exception { - String url = BASE_URL + "/solvederrors"; - ErrorTrace expectedErrorTrace = new ErrorTrace(new DateTime(DateTimeZone.UTC), "errorType", "occuredAT", - "stackTrace", "solved", "documentType"); - ErrorTrace unsolvedErrorTrace = new ErrorTrace(new DateTime(DateTimeZone.UTC), "errorType", "occuredAT", - "stackTrace", "unsolved", "documentType"); - ErrorTrace randomStatusErrorTrace = new ErrorTrace(new DateTime(DateTimeZone.UTC), "errorType", "occuredAT", - "stackTrace", "random", "documentType"); - createErrorTraces(asList(expectedErrorTrace, unsolvedErrorTrace, randomStatusErrorTrace), allErrorTrace); - - JsonNode returnedObject = getCallAsJsonNode(url, "", status().isOk()); - ErrorTrace actualErrorTrace = mapper.treeToValue(returnedObject.get(0), ErrorTrace.class); - - assertEquals(expectedErrorTrace, actualErrorTrace); - - } - - @Test - public void shouldReturnAllUnSolvedError() throws Exception { - String url = BASE_URL + "/unsolvederrors"; - ErrorTrace solvedErrorTrace = new ErrorTrace(new DateTime(DateTimeZone.UTC), "errorType", "occuredAT", "stackTrace", - "solved", "documentType"); - ErrorTrace expectedErrorTrace = new ErrorTrace(new DateTime(DateTimeZone.UTC), "errorType", "occuredAT", - "stackTrace", "unsolved", "documentType"); - ErrorTrace randomStatusErrorTrace = new ErrorTrace(new DateTime(DateTimeZone.UTC), "errorType", "occuredAT", - "stackTrace", "random", "documentType"); - createErrorTraces(asList(expectedErrorTrace, solvedErrorTrace, randomStatusErrorTrace), allErrorTrace); - - JsonNode returnedObject = getCallAsJsonNode(url, "", status().isOk()); - ErrorTrace actualErrorTrace = mapper.treeToValue(returnedObject.get(0), ErrorTrace.class); - - assertEquals(expectedErrorTrace, actualErrorTrace); - } - - @Test - public void shouldReturnAllErrorStatus() throws Exception { - String url = BASE_URL + "/getstatusoptions"; - - JsonNode returnedObject = getCallAsJsonNode(url, "", status().isOk()); - List actualStatusOptions = mapper.treeToValue(returnedObject, List.class); - - assertEquals(errorTraceForm.getStatusOptions(), actualStatusOptions); - - } - - @Test - @Ignore - public void shouldUpdateErrorTraceStatus() throws Exception { - String url = BASE_URL + "/update_errortrace"; - - ErrorTrace expectedErrorTrace = new ErrorTrace(new DateTime(DateTimeZone.UTC), "errorType", "occuredAT", - "stackTrace", "unsolved", "documentType"); - createErrorTraces(asList(expectedErrorTrace), allErrorTrace); - - expectedErrorTrace = allErrorTrace.getAll().get(0); - System.out.println(expectedErrorTrace); - expectedErrorTrace.setStatus("solved"); - ErrorTraceForm errorTraceForm = new ErrorTraceForm(); - errorTraceForm.setErrorTrace(expectedErrorTrace); - - postCallWithJsonContent(url, mapper.writeValueAsString(errorTraceForm), status().isOk()); - ErrorTrace actualErrorTrace = allErrorTrace.get(expectedErrorTrace.getId()); - - assertEquals(expectedErrorTrace, actualErrorTrace); - } - - @Test - public void shouldUpdateErrorTraceStatusUsingGetMethod() throws Exception { - String url = BASE_URL + "/update_status"; - - ErrorTrace expectedErrorTrace = new ErrorTrace(new DateTime(DateTimeZone.UTC), "errorType", "occuredAT", - "stackTrace", "unsolved", "documentType"); - createErrorTraces(asList(expectedErrorTrace), allErrorTrace); - expectedErrorTrace = allErrorTrace.getAll().get(0); - expectedErrorTrace.setStatus("solved"); - String param = "id=" + expectedErrorTrace.getId() + "&status=solved"; - - getCallAsJsonNode(url, param, status().isOk()); - ErrorTrace actualErrorTrace = allErrorTrace.get(expectedErrorTrace.getId()); - - assertEquals(expectedErrorTrace, actualErrorTrace); - } - - @Test - public void shouldGetErrorById() throws Exception { - String url = BASE_URL + "/viewerror"; - - ErrorTrace expectedErrorTrace = new ErrorTrace(new DateTime(DateTimeZone.UTC), "errorType", "occuredAT", - "stackTrace", "unsolved", "documentType"); - createErrorTraces(asList(expectedErrorTrace), allErrorTrace); - expectedErrorTrace = allErrorTrace.getAll().get(0); - - String param = "id=" + expectedErrorTrace.getId(); - - JsonNode returnedObject = getCallAsJsonNode(url, param, status().isOk()); - ErrorTraceForm actualErrorTraceForm = mapper.treeToValue(returnedObject, ErrorTraceForm.class); - assertEquals(expectedErrorTrace, actualErrorTraceForm.getErrorTrace()); - } - - -} diff --git a/opensrp-web/src/test/java/org/opensrp/web/controller/it/FormDownloadIntegrationTest.java b/opensrp-web/src/test/java/org/opensrp/web/controller/it/FormDownloadIntegrationTest.java deleted file mode 100644 index edf9f938ab..0000000000 --- a/opensrp-web/src/test/java/org/opensrp/web/controller/it/FormDownloadIntegrationTest.java +++ /dev/null @@ -1,54 +0,0 @@ -package org.opensrp.web.controller.it; - -import org.codehaus.jackson.JsonNode; -import org.junit.Test; -import org.opensrp.web.rest.it.BaseResourceTest; -import org.opensrp.web.utils.TestResourceLoader; -import org.springframework.web.util.NestedServletException; - -import java.io.IOException; - -import static org.junit.Assert.assertArrayEquals; -import static org.junit.Assert.assertEquals; -import static org.springframework.test.web.server.result.MockMvcResultMatchers.status; - -public class FormDownloadIntegrationTest extends BaseResourceTest { - - private String BASE_URL = "/form/"; - - @Test - public void shouldFetchAllAvailableVersion() throws Exception { - String url = "latest-form-versions"; - - JsonNode actualObj = getCallAsJsonNode(BASE_URL + url, "", status().isOk()); - - assertEquals(currentFormVersions(), actualObj); - } - - @Test - public void shouldDownloadCurrentChildFollowupForms() throws Exception { - String url = "form-files"; - - byte[] responseZipFile = getCallAsByeArray(BASE_URL + url, "formDirName=child_followup", status().isOk()); - byte[] expectedZipFile = new TestResourceLoader().getFormDirectoryAsZip("child_followup"); - - assertArrayEquals(expectedZipFile, responseZipFile); - } - - @Test(expected = NestedServletException.class) - public void shouldThrowExceptionForInvalidFormDirectoryName() throws Exception { - String url = "form-files"; - getCallAsByeArray(BASE_URL + url, "formDirName=invalid", status().isOk()); - } - - /** - * Change the return type if any form name, directory or version changes. - * - * @return JsonNode - * @throws IOException - */ - private JsonNode currentFormVersions() throws IOException { - String currentFormVersionList = "{\"formVersions\":[{\"formName\":\"Offsite_Child_Vaccination_Followup\",\"formDirName\":\"offsite_child_followup\",\"formDataDefinitionVersion\":\"1\"},{\"formName\":\"Woman_TT_Followup_Form\",\"formDirName\":\"woman_followup\",\"formDataDefinitionVersion\":\"1\"},{\"formName\":\"Child_Vaccination_Followup\",\"formDirName\":\"child_followup\",\"formDataDefinitionVersion\":\"1\"},{\"formName\":\"Child_Vaccination_Enrollment\",\"formDirName\":\"child_enrollment\",\"formDataDefinitionVersion\":\"1\"},{\"formName\":\"Vaccine_Stock_Position\",\"formDirName\":\"vaccine_stock_position\",\"formDataDefinitionVersion\":\"1\"},{\"formName\":\"FWNewH\",\"formDirName\":\"new_household_registration\",\"formDataDefinitionVersion\":\"1\"},{\"formName\":\"Woman_TT_Enrollment_Form\",\"formDirName\":\"woman_enrollment\",\"formDataDefinitionVersion\":\"1\"},{\"formName\":\"Offsite_Woman_Followup_Form\",\"formDirName\":\"offsite_woman_followup\",\"formDataDefinitionVersion\":\"1\"}]}"; - return mapper.readTree(currentFormVersionList); - } -} diff --git a/opensrp-web/src/test/java/org/opensrp/web/controller/it/FormSubmissionIntegrationTest.java b/opensrp-web/src/test/java/org/opensrp/web/controller/it/FormSubmissionIntegrationTest.java deleted file mode 100644 index 56ea43039d..0000000000 --- a/opensrp-web/src/test/java/org/opensrp/web/controller/it/FormSubmissionIntegrationTest.java +++ /dev/null @@ -1,136 +0,0 @@ -package org.opensrp.web.controller.it; - -import static java.util.Arrays.asList; -import static org.junit.Assert.assertEquals; -import static org.springframework.test.web.server.result.MockMvcResultMatchers.status; - -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; -import java.util.concurrent.TimeUnit; - -import org.codehaus.jackson.JsonNode; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; -import org.opensrp.domain.Multimedia; -import org.opensrp.dto.form.FormSubmissionDTO; -import org.opensrp.dto.form.MultimediaDTO; -import org.opensrp.form.domain.FormSubmission; -import org.opensrp.form.repository.AllFormSubmissions; -import org.opensrp.form.service.FormSubmissionConverter; -import org.opensrp.repository.couch.MultimediaRepositoryImpl; -import org.opensrp.web.rest.it.BaseResourceTest; -import org.opensrp.web.utils.TestResourceLoader; -import org.springframework.beans.factory.annotation.Autowired; - -public class FormSubmissionIntegrationTest extends BaseResourceTest { - - @Autowired - private AllFormSubmissions allFormSubmissions; - - @Autowired - private MultimediaRepositoryImpl multimediaRepository; - - private TestResourceLoader testResourceLoader; - - @Before - public void setUp() throws IOException { - allFormSubmissions.removeAll(); - multimediaRepository.removeAll(); - testResourceLoader = new TestResourceLoader(); - } - - @After - public void cleanUp() { - allFormSubmissions.removeAll(); - multimediaRepository.removeAll(); - } - - @Test - public void shouldFetchFormBasedOnAnmIdAndTimestamp() throws Exception { - String url = "/form-submissions"; - FormSubmission expectedFormSubmission = testResourceLoader.getFormSubmissionFor("new_household_registration", 1); - String anmId = expectedFormSubmission.anmId(); - allFormSubmissions.add(expectedFormSubmission); - - JsonNode responseObject = getCallAsJsonNode(url, - "anm-id=" + anmId + "×tamp=" + (expectedFormSubmission.serverVersion() - 1l), status().isOk()); - FormSubmissionDTO actualFormSubmissionDto = mapper.treeToValue(responseObject.get(0), FormSubmissionDTO.class); - - assertEquals(FormSubmissionConverter.from(expectedFormSubmission), actualFormSubmissionDto); - } - - @Test - public void shouldFetchFormBasedOnTimestamp() throws Exception { - String url = "/all-form-submissions"; - FormSubmission expectedFormSubmission = testResourceLoader.getFormSubmissionFor("new_household_registration", 1); - - allFormSubmissions.add(expectedFormSubmission); - - JsonNode responseObject = getCallAsJsonNode(url, "×tamp=" + (expectedFormSubmission.serverVersion() - 1l), - status().isOk()); - FormSubmissionDTO actualFormSubmissionDto = mapper.treeToValue(responseObject.get(0), FormSubmissionDTO.class); - - assertEquals(FormSubmissionConverter.from(expectedFormSubmission), actualFormSubmissionDto); - } - - /** - * This test if a form is submitted to openSRP db successfully. - * - * @throws Exception - */ - @Test - public void shouldSubmitForm() throws Exception { - String url = "/form-submissions"; - FormSubmission expectedFormSubmission = testResourceLoader.getFormSubmissionFor("new_household_registration", 10); - // This call is made to generate mapOfFieldsByName field in FormData.class. - // This field is kept as json string inside formInstance field in FormSubmissionDTO.class - // So without generating this field expected FormSubmission won't match actual FormSubmission - expectedFormSubmission.instance().getField("id"); - - FormSubmissionDTO expectedFormSubmissionDto = FormSubmissionConverter.from(expectedFormSubmission); - - assertEquals(0, allFormSubmissions.getAll().size()); - String parameterObject = mapper.writeValueAsString(asList(expectedFormSubmissionDto)); - postCallWithJsonContent(url, parameterObject, status().isCreated()); - - //Give time to run motech event - TimeUnit.SECONDS.sleep(10); - - List formSubmissions = allFormSubmissions.getAll(); - FormSubmission actualFormSubmission = formSubmissions.get(0); - - expectedFormSubmission.setServerVersion(0); - actualFormSubmission.setServerVersion(0); - - - assertEquals(1, formSubmissions.size()); - assertEquals(expectedFormSubmission, actualFormSubmission); - - } - - @Test - public void shouldReturnBadRequestForEmptyFormInSubmitForm() throws Exception { - String url = "/form-submissions"; - String parameterObject = mapper.writeValueAsString(new ArrayList()); - JsonNode responseObject = postCallWithJsonContent(url, parameterObject, status().isBadRequest()); - } - - @Test - public void shouldGetMultimediaBasedOnProviderId() throws Exception { - String url = "/multimedia-file"; - Multimedia multimedia = new Multimedia("caseId", "providerId", "contentType", "filePath", "fileCategory"); - multimediaRepository.add(multimedia); - MultimediaDTO expectedMultimediaDto = new MultimediaDTO(multimedia.getCaseId(), multimedia.getProviderId(), - multimedia.getContentType(), multimedia.getFilePath(), multimedia.getFileCategory()); - - JsonNode responseObject = getCallAsJsonNode(url, "anm-id=providerId", status().isOk()); - - MultimediaDTO actualMultimediaDTO = mapper.treeToValue(responseObject.get(0), MultimediaDTO.class); - - assertEquals(expectedMultimediaDto, actualMultimediaDTO); - - } - -} diff --git a/opensrp-web/src/test/java/org/opensrp/web/controller/it/UserControllerIntegrationTest.java b/opensrp-web/src/test/java/org/opensrp/web/controller/it/UserControllerIntegrationTest.java deleted file mode 100644 index 37e8605e34..0000000000 --- a/opensrp-web/src/test/java/org/opensrp/web/controller/it/UserControllerIntegrationTest.java +++ /dev/null @@ -1,57 +0,0 @@ -package org.opensrp.web.controller.it; - -import org.codehaus.jackson.JsonNode; -import org.junit.Before; -import org.junit.Ignore; -import org.junit.Test; -import org.opensrp.api.domain.Time; -import org.opensrp.domain.Location; -import org.opensrp.domain.User; -import org.opensrp.web.rest.it.BaseResourceTest; -import org.springframework.beans.factory.annotation.Value; -import org.springframework.test.web.server.MvcResult; - -import javax.servlet.http.Cookie; -import java.util.HashMap; -import java.util.Map; - -import static org.junit.Assert.assertEquals; -import static org.springframework.test.web.server.result.MockMvcResultMatchers.status; - -public class UserControllerIntegrationTest extends BaseResourceTest { - - @Value("#{opensrp['openmrs.url']}") - private String opensrpSiteUrl; - - @Value("#{opensrp['openmrs.username']}") - private String rootUserName; - - @Value("#{opensrp['openmrs.password']}") - private String rootPassword; - - private String sessionCookie; - @Test - public void setUp() throws Exception { - /* String url = "http://192.168.22.152:8080/openmrs/loginServlet"; - Map parameterForRootLogIn = new HashMap<>(); - parameterForRootLogIn.put("uname", rootUserName); - parameterForRootLogIn.put("pw", rootPassword); - MvcResult result = postCallWithFormUrlEncode(url, parameterForRootLogIn, status().isOk()); - Cookie[] cookies = result.getResponse().getCookies(); - sessionCookie = result.getResponse().getCookie("JSESSIONID").getValue(); - System.out.println(sessionCookie);*/ - } - - @Test - @Ignore - public void shouldAuthenticateUserWithValidUsernameAndPassword() throws Exception { - String url = "/security/authenticate"; - JsonNode returnedJsonNode = postCallWithBasicAuthorizationHeader(url, "sumon", "Sumon@123", status().isOk()); - System.out.println(returnedJsonNode); - //{"time":{"time":"2017-08-21 14:38:41","timeZone":"Asia/Dhaka"},"locations":{"locationsHierarchy":{"map":{"44221e79-b3f0-496f-9d3c-467216fa1d53":{"id":"44221e79-b3f0-496f-9d3c-467216fa1d53","label":"Bangladesh","node":{"locationId":"44221e79-b3f0-496f-9d3c-467216fa1d53","name":"Bangladesh","tags":["Country"],"voided":false},"children":{"69e70c98-3a55-4a5c-9808-1d763a243cd7":{"id":"69e70c98-3a55-4a5c-9808-1d763a243cd7","label":"Rangpur","node":{"locationId":"69e70c98-3a55-4a5c-9808-1d763a243cd7","name":"Rangpur","parentLocation":{"locationId":"44221e79-b3f0-496f-9d3c-467216fa1d53","name":"Bangladesh","voided":false},"tags":["Division"],"voided":false},"children":{"fde679fa-24ee-4bcc-a898-fe0e8734c5d5":{"id":"fde679fa-24ee-4bcc-a898-fe0e8734c5d5","label":"Gaibandha","node":{"locationId":"fde679fa-24ee-4bcc-a898-fe0e8734c5d5","name":"Gaibandha","parentLocation":{"locationId":"69e70c98-3a55-4a5c-9808-1d763a243cd7","name":"Rangpur","parentLocation":{"locationId":"44221e79-b3f0-496f-9d3c-467216fa1d53","name":"Bangladesh","voided":false},"voided":false},"tags":["District"],"voided":false},"children":{"d98a6aab-a5fd-4c3f-bcf4-9ff1a93da953":{"id":"d98a6aab-a5fd-4c3f-bcf4-9ff1a93da953","label":"Gaibandha Sadar","node":{"locationId":"d98a6aab-a5fd-4c3f-bcf4-9ff1a93da953","name":"Gaibandha Sadar","parentLocation":{"locationId":"fde679fa-24ee-4bcc-a898-fe0e8734c5d5","name":"Gaibandha","parentLocation":{"locationId":"69e70c98-3a55-4a5c-9808-1d763a243cd7","name":"Rangpur","voided":false},"voided":false},"tags":["Upazilla"],"voided":false},"children":{"128eae74-7f9f-4bd1-8617-ab246907168a":{"id":"128eae74-7f9f-4bd1-8617-ab246907168a","label":"Kuptala","node":{"locationId":"128eae74-7f9f-4bd1-8617-ab246907168a","name":"Kuptala","parentLocation":{"locationId":"d98a6aab-a5fd-4c3f-bcf4-9ff1a93da953","name":"Gaibandha Sadar","parentLocation":{"locationId":"fde679fa-24ee-4bcc-a898-fe0e8734c5d5","name":"Gaibandha","voided":false},"voided":false},"tags":["Union"],"voided":false},"children":{"3ebdd7da-9ed7-4b5a-82be-cd58c71d2ffb":{"id":"3ebdd7da-9ed7-4b5a-82be-cd58c71d2ffb","label":"Ward-1","node":{"locationId":"3ebdd7da-9ed7-4b5a-82be-cd58c71d2ffb","name":"Ward-1","parentLocation":{"locationId":"128eae74-7f9f-4bd1-8617-ab246907168a","name":"Kuptala","parentLocation":{"locationId":"d98a6aab-a5fd-4c3f-bcf4-9ff1a93da953","name":"Gaibandha Sadar","voided":false},"voided":false},"tags":["Ward"],"voided":false},"children":{"56b7e88b-7eae-4288-a3be-c4f1275e6f78":{"id":"56b7e88b-7eae-4288-a3be-c4f1275e6f78","label":"1-KA","node":{"locationId":"56b7e88b-7eae-4288-a3be-c4f1275e6f78","name":"1-KA","parentLocation":{"locationId":"3ebdd7da-9ed7-4b5a-82be-cd58c71d2ffb","name":"Ward-1","parentLocation":{"locationId":"128eae74-7f9f-4bd1-8617-ab246907168a","name":"Kuptala","voided":false},"voided":false},"tags":["Subunit"],"voided":false},"children":{"4309271d-0443-44cd-901b-c72acbe578e9":{"id":"4309271d-0443-44cd-901b-c72acbe578e9","label":"Chapadaha gorer matha","node":{"locationId":"4309271d-0443-44cd-901b-c72acbe578e9","name":"Chapadaha gorer matha","parentLocation":{"locationId":"56b7e88b-7eae-4288-a3be-c4f1275e6f78","name":"1-KA","parentLocation":{"locationId":"3ebdd7da-9ed7-4b5a-82be-cd58c71d2ffb","name":"Ward-1","voided":false},"voided":false},"tags":["Mouzapara"],"voided":false},"parent":"56b7e88b-7eae-4288-a3be-c4f1275e6f78"}},"parent":"3ebdd7da-9ed7-4b5a-82be-cd58c71d2ffb"}},"parent":"128eae74-7f9f-4bd1-8617-ab246907168a"}},"parent":"d98a6aab-a5fd-4c3f-bcf4-9ff1a93da953"}},"parent":"fde679fa-24ee-4bcc-a898-fe0e8734c5d5"}},"parent":"69e70c98-3a55-4a5c-9808-1d763a243cd7"}},"parent":"44221e79-b3f0-496f-9d3c-467216fa1d53"}}}},"parentChildren":{"3ebdd7da-9ed7-4b5a-82be-cd58c71d2ffb":["56b7e88b-7eae-4288-a3be-c4f1275e6f78"],"d98a6aab-a5fd-4c3f-bcf4-9ff1a93da953":["128eae74-7f9f-4bd1-8617-ab246907168a"],"44221e79-b3f0-496f-9d3c-467216fa1d53":["69e70c98-3a55-4a5c-9808-1d763a243cd7"],"56b7e88b-7eae-4288-a3be-c4f1275e6f78":["4309271d-0443-44cd-901b-c72acbe578e9"],"fde679fa-24ee-4bcc-a898-fe0e8734c5d5":["d98a6aab-a5fd-4c3f-bcf4-9ff1a93da953"],"69e70c98-3a55-4a5c-9808-1d763a243cd7":["fde679fa-24ee-4bcc-a898-fe0e8734c5d5"],"128eae74-7f9f-4bd1-8617-ab246907168a":["3ebdd7da-9ed7-4b5a-82be-cd58c71d2ffb"]}}},"team":{"person":{"birthdateEstimated":false,"preferredName":{"links":[{"rel":"self","uri":"http://192.168.22.152:8080/openmrs/ws/rest/v1/person/46a3c163-3eb8-4b08-be62-e1400bdae7f5/name/96046948-db80-4a6e-a192-bfbe3c01b1ad"}],"display":"sumon sumon","uuid":"96046948-db80-4a6e-a192-bfbe3c01b1ad"},"deathdateEstimated":false,"links":[{"rel":"self","uri":"http://192.168.22.152:8080/openmrs/ws/rest/v1/person/46a3c163-3eb8-4b08-be62-e1400bdae7f5"},{"rel":"full","uri":"http://192.168.22.152:8080/openmrs/ws/rest/v1/person/46a3c163-3eb8-4b08-be62-e1400bdae7f5?v\u003dfull"}],"display":"sumon sumon","resourceVersion":"1.11","voided":false,"gender":"M","uuid":"46a3c163-3eb8-4b08-be62-e1400bdae7f5","attributes":[],"dead":false},"patients":[],"teamMemberId":1.0,"location":[{"tags":[{"links":[{"rel":"self","uri":"http://192.168.22.152:8080/openmrs/ws/rest/v1/locationtag/31aecf10-bb74-4ddf-ab0e-7a80ee3639b5"}],"display":"Mouzapara","uuid":"31aecf10-bb74-4ddf-ab0e-7a80ee3639b5"}],"retired":false,"links":[{"rel":"self","uri":"http://192.168.22.152:8080/openmrs/ws/rest/v1/location/4309271d-0443-44cd-901b-c72acbe578e9"},{"rel":"full","uri":"http://192.168.22.152:8080/openmrs/ws/rest/v1/location/4309271d-0443-44cd-901b-c72acbe578e9?v\u003dfull"}],"display":"Chapadaha gorer matha","parentLocation":{"links":[{"rel":"self","uri":"http://192.168.22.152:8080/openmrs/ws/rest/v1/location/56b7e88b-7eae-4288-a3be-c4f1275e6f78"}],"display":"1-KA","uuid":"56b7e88b-7eae-4288-a3be-c4f1275e6f78"},"resourceVersion":"1.9","childLocations":[],"name":"Chapadaha gorer matha","attributes":[],"uuid":"4309271d-0443-44cd-901b-c72acbe578e9"}],"resourceVersion":"1.8","isTeamLead":false,"uuid":"aaa237aa-54ea-451d-b961-73efada42462","team":{"teamName":"dghs-fwa","teamIdentifier":"123","location":{"tags":[{"links":[{"rel":"self","uri":"http://192.168.22.152:8080/openmrs/ws/rest/v1/locationtag/90237680-0772-497a-a88a-98fb8d01835b"}],"display":"Upazilla","uuid":"90237680-0772-497a-a88a-98fb8d01835b"}],"retired":false,"links":[{"rel":"self","uri":"http://192.168.22.152:8080/openmrs/ws/rest/v1/location/d98a6aab-a5fd-4c3f-bcf4-9ff1a93da953"},{"rel":"full","uri":"http://192.168.22.152:8080/openmrs/ws/rest/v1/location/d98a6aab-a5fd-4c3f-bcf4-9ff1a93da953?v\u003dfull"}],"display":"Gaibandha Sadar","parentLocation":{"links":[{"rel":"self","uri":"http://192.168.22.152:8080/openmrs/ws/rest/v1/location/fde679fa-24ee-4bcc-a898-fe0e8734c5d5"}],"display":"Gaibandha","uuid":"fde679fa-24ee-4bcc-a898-fe0e8734c5d5"},"resourceVersion":"1.9","childLocations":[{"links":[{"rel":"self","uri":"http://192.168.22.152:8080/openmrs/ws/rest/v1/location/128eae74-7f9f-4bd1-8617-ab246907168a"}],"display":"Kuptala","uuid":"128eae74-7f9f-4bd1-8617-ab246907168a"}],"description":"Upazilla","name":"Gaibandha Sadar","attributes":[],"uuid":"d98a6aab-a5fd-4c3f-bcf4-9ff1a93da953"},"resourceVersion":"1.8","dateCreated":"2017-07-17T14:15:18.000+0600","display":"dghs-fwa","uuid":"1081acf6-a000-4a5c-889e-1d475264c69b"},"identifier":"4001"},"user":{"username":"sumon","status":"sumon sumon","roles":["Provider"],"preferredName":"sumon sumon","baseEntityId":"55bf584f-9aae-4c36-bce6-e2661d2e145f","attributes":{"_PERSON_UUID":"46a3c163-3eb8-4b08-be62-e1400bdae7f5"},"voided":false}} - User expectedUser = mapper.treeToValue(returnedJsonNode.get("user"), User.class); - Location location = mapper.treeToValue(returnedJsonNode.get("locations"), Location.class); - Map team = mapper.treeToValue(returnedJsonNode.get("team"), Map.class); - Time expectedTime = mapper.treeToValue(returnedJsonNode.get("time"), Time.class); - } -} diff --git a/opensrp-web/src/test/java/org/opensrp/web/it/AtomFeedIntegrationTest.java b/opensrp-web/src/test/java/org/opensrp/web/it/AtomFeedIntegrationTest.java deleted file mode 100644 index 14c367d2a1..0000000000 --- a/opensrp-web/src/test/java/org/opensrp/web/it/AtomFeedIntegrationTest.java +++ /dev/null @@ -1,98 +0,0 @@ -package org.opensrp.web.it; - -import static org.mockito.Mockito.*; -import static org.hamcrest.Matcher.*; - -import java.io.IOException; -import java.net.URI; -import java.net.URISyntaxException; -import java.util.ArrayList; -import java.util.Date; -import java.util.List; -import java.util.Map; - -import org.ektorp.CouchDbConnector; -import org.ict4h.atomfeed.client.AtomFeedProperties; -import org.ict4h.atomfeed.client.domain.Event; -import org.ict4h.atomfeed.client.repository.AllFailedEvents; -import org.ict4h.atomfeed.client.repository.AllFeeds; -import org.ict4h.atomfeed.client.repository.AllMarkers; -import org.ict4h.atomfeed.client.repository.datasource.WebClient; -import org.ict4h.atomfeed.client.service.AtomFeedClient; -import org.ict4h.atomfeed.client.service.EventWorker; -import org.ict4h.atomfeed.jdbc.AtomFeedJdbcTransactionManager; -import org.ict4h.atomfeed.transaction.AFTransactionManager; -import org.ict4h.atomfeed.transaction.AFTransactionWork; -import org.junit.Before; -import org.junit.Ignore; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.mockito.Mockito; -import org.opensrp.connector.atomfeed.AllFailedEventsCouchImpl; -import org.opensrp.connector.atomfeed.AllFailedEventsInMemoryImpl; -import org.opensrp.connector.atomfeed.AllMarkersCouchImpl; -import org.opensrp.connector.atomfeed.AllMarkersInMemoryImpl; -import org.opensrp.connector.openmrs.EncounterAtomfeed; -import org.opensrp.connector.openmrs.PatientAtomfeed; -import org.opensrp.connector.openmrs.constants.OpenmrsConstants; -import org.opensrp.connector.openmrs.service.EncounterService; -import org.opensrp.repository.couch.AllClients; -import org.opensrp.repository.couch.AllEvents; -import org.opensrp.service.ClientService; -import org.opensrp.service.EventService; -import org.opensrp.web.utils.TestResourceLoader; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.beans.factory.annotation.Qualifier; -import org.springframework.test.context.ContextConfiguration; -import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; - -@Ignore -@RunWith(SpringJUnit4ClassRunner.class) -@ContextConfiguration("classpath:spring/applicationContext-opensrp-web.xml") -public class AtomFeedIntegrationTest extends TestResourceLoader { - - @Autowired - @Qualifier(OpenmrsConstants.ATOMFEED_DATABASE_CONNECTOR) - CouchDbConnector cdb; - - @Autowired - ClientService clientService; - - @Autowired - AllClients allClients; - - @Autowired - EventService eventService; - - @Autowired - AllEvents allEvents; - - @Autowired - private AllMarkersCouchImpl allMarkers; - - @Autowired - private AllFailedEventsCouchImpl allFailedEvents; - - - @Before - public void setup(){ - allClients.removeAll(); - allEvents.removeAll(); - } - - public AtomFeedIntegrationTest() throws IOException { - super(); - } - - @Test - public void shouldReadEventsCreatedEvents() throws URISyntaxException { - PatientAtomfeed paf = new PatientAtomfeed(allMarkers, allFailedEvents, openmrsOpenmrsUrl, patientService, clientService, eventService); - - EncounterAtomfeed eaf = new EncounterAtomfeed(allMarkers, allFailedEvents, openmrsOpenmrsUrl, encounterService, eventService); - if(pushToOpenmrsForTest){ - paf.processEvents(); - - eaf.processEvents(); - } - } -} diff --git a/opensrp-web/src/test/java/org/opensrp/web/it/DrishtiScheduleConstants.java b/opensrp-web/src/test/java/org/opensrp/web/it/DrishtiScheduleConstants.java deleted file mode 100644 index d1a3ec5cfd..0000000000 --- a/opensrp-web/src/test/java/org/opensrp/web/it/DrishtiScheduleConstants.java +++ /dev/null @@ -1,71 +0,0 @@ -package org.opensrp.web.it; - -public class DrishtiScheduleConstants { - public static final String PROVIDER_REPORT_SCHEDULE_SUBJECT = "PROVIDER-REPORT-SCHEDULE"; - public static final String MCTS_REPORT_SCHEDULE_SUBJECT = "MCTS-REPORT-SCHEDULE"; - public static final String ANM_REPORT_SCHEDULE_SUBJECT = "DRISHTI-ANM-REPORT-FETCH-SCHEDULE"; - - public static class ChildScheduleConstants { - public static final String CHILD_SCHEDULE_BCG = "BCG"; - - public static final String CHILD_SCHEDULE_DPT_BOOSTER1 = "DPT Booster 1"; - public static final String CHILD_SCHEDULE_DPT_BOOSTER2 = "DPT Booster 2"; - - public static final String CHILD_SCHEDULE_MEASLES = "Measles 1"; - - public static final String CHILD_SCHEDULE_MEASLES_BOOSTER = "Measles 2"; - - public static final String CHILD_SCHEDULE_OPV_0_AND_1 = "OPV_0_AND_1"; - public static final String CHILD_SCHEDULE_OPV_2 = "OPV 2"; - public static final String CHILD_SCHEDULE_OPV_3 = "OPV 3"; - public static final String CHILD_SCHEDULE_OPV_BOOSTER = "OPV BOOSTER"; - - public static final String CHILD_SCHEDULE_PENTAVALENT_1 = "PENTAVALENT 1"; - public static final String CHILD_SCHEDULE_PENTAVALENT_2 = "PENTAVALENT 2"; - public static final String CHILD_SCHEDULE_PENTAVALENT_3 = "PENTAVALENT 3"; - } - - public static class MotherScheduleConstants { - public static final String SCHEDULE_ANC = "Ante Natal Care - Normal"; - public static final String SCHEDULE_ANC_MILESTONE_PREFIX = "ANC"; - public static final String SCHEDULE_ANC_1 = "ANC 1"; - public static final String SCHEDULE_ANC_2 = "ANC 2"; - public static final String SCHEDULE_ANC_3 = "ANC 3"; - public static final String SCHEDULE_ANC_4 = "ANC 4"; - public static final String SCHEDULE_EDD = "Expected Date Of Delivery"; - public static final String SCHEDULE_LAB = "Lab Reminders"; - public static final String SCHEDULE_TT_1 = "TT 1"; - public static final String SCHEDULE_TT_2 = "TT 2"; - public static final String SCHEDULE_AUTO_CLOSE_PNC = "Auto Close PNC"; - public static final String SCHEDULE_IFA_1 = "IFA 1"; - public static final String SCHEDULE_IFA_2 = "IFA 2"; - public static final String SCHEDULE_IFA_3 = "IFA 3"; - public static final String SCHEDULE_HB_TEST_1 = "Hb Test 1"; - public static final String SCHEDULE_HB_TEST_2 = "Hb Test 2"; - public static final String SCHEDULE_HB_FOLLOWUP_TEST = "Hb Followup Test"; - public static final String SCHEDULE_DELIVERY_PLAN = "Delivery Plan"; - } - - public static class ECSchedulesConstants { - public static final String EC_SCHEDULE_DMPA_INJECTABLE_REFILL = "DMPA Injectable Refill"; - public static final String EC_SCHEDULE_DMPA_INJECTABLE_REFILL_MILESTONE = "DMPA Injectable Refill"; - public static final String EC_SCHEDULE_OCP_REFILL = "OCP Refill"; - public static final String EC_SCHEDULE_OCP_REFILL_MILESTONE = "OCP Refill"; - public static final String EC_SCHEDULE_CONDOM_REFILL = "Condom Refill"; - public static final String EC_SCHEDULE_CONDOM_REFILL_MILESTONE = "Condom Refill"; - public static final String EC_SCHEDULE_FEMALE_STERILIZATION_FOLLOWUP = "Female sterilization Followup"; - public static final String EC_SCHEDULE_FEMALE_STERILIZATION_FOLLOWUP_MILESTONE_1 = "Female sterilization Followup 1"; - public static final String EC_SCHEDULE_FEMALE_STERILIZATION_FOLLOWUP_MILESTONE_2 = "Female sterilization Followup 2"; - public static final String EC_SCHEDULE_FEMALE_STERILIZATION_FOLLOWUP_MILESTONE_3 = "Female sterilization Followup 3"; - public static final String EC_SCHEDULE_MALE_STERILIZATION_FOLLOWUP = "Male sterilization Followup"; - public static final String EC_SCHEDULE_MALE_STERILIZATION_FOLLOWUP_MILESTONE_1 = "Male sterilization Followup 1"; - public static final String EC_SCHEDULE_MALE_STERILIZATION_FOLLOWUP_MILESTONE_2 = "Male sterilization Followup 2"; - public static final String EC_SCHEDULE_FP_FOLLOWUP = "FP Followup"; - public static final String EC_SCHEDULE_FP_FOLLOWUP_MILESTONE = "FP Followup"; - public static final String EC_SCHEDULE_IUD_FOLLOWUP = "IUD Followup"; - public static final String EC_SCHEDULE_IUD_FOLLOWUP_MILESTONE_1 = "IUD Followup 1"; - public static final String EC_SCHEDULE_IUD_FOLLOWUP_MILESTONE_2 = "IUD Followup 2"; - public static final String EC_SCHEDULE_FP_REFERRAL_FOLLOWUP = "FP Referral Followup"; - public static final String EC_SCHEDULE_FP_REFERRAL_FOLLOWUP_MILESTONE = "FP Referral Followup"; - } -} diff --git a/opensrp-web/src/test/java/org/opensrp/web/it/DrishtiSchedulesIntegrationTest.java b/opensrp-web/src/test/java/org/opensrp/web/it/DrishtiSchedulesIntegrationTest.java deleted file mode 100644 index 98bde0df91..0000000000 --- a/opensrp-web/src/test/java/org/opensrp/web/it/DrishtiSchedulesIntegrationTest.java +++ /dev/null @@ -1,585 +0,0 @@ -package org.opensrp.web.it; - -import static org.motechproject.scheduletracking.api.domain.WindowName.due; -import static org.motechproject.scheduletracking.api.domain.WindowName.earliest; -import static org.motechproject.scheduletracking.api.domain.WindowName.late; -import static org.motechproject.scheduletracking.api.domain.WindowName.max; -import static org.motechproject.util.DateUtil.newDate; -import static org.opensrp.common.util.DateUtil.fakeIt; -import static org.opensrp.web.it.DrishtiScheduleConstants.*; -import static org.opensrp.web.it.DrishtiScheduleConstants.ChildScheduleConstants.*; -import static org.opensrp.integration.ChildImmunizationFields.*; - -import java.io.File; -import java.util.Date; - -import org.apache.log4j.Level; -import org.apache.log4j.Logger; -import org.joda.time.DateTime; -import org.joda.time.LocalDate; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Ignore; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.motechproject.delivery.schedule.util.FakeSchedule; -import org.motechproject.delivery.schedule.util.ScheduleVisualization; -import org.motechproject.delivery.schedule.util.ScheduleWithCapture; -import org.motechproject.delivery.schedule.util.SetDateAction; -import org.motechproject.model.Time; -import org.motechproject.scheduletracking.api.service.ScheduleTrackingService; -import org.motechproject.testing.utils.BaseUnitTest; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.scheduling.quartz.SchedulerFactoryBean; -import org.springframework.test.context.ContextConfiguration; -import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; - - -@RunWith(SpringJUnit4ClassRunner.class) -@ContextConfiguration("classpath:spring/applicationContext-opensrp-web.xml") -public class DrishtiSchedulesIntegrationTest extends BaseUnitTest { - private static final int JANUARY = 1; - private static final int FEBRUARY = 2; - private static final int MARCH = 3; - private static final int APRIL = 4; - private static final int MAY = 5; - private static final int JUNE = 6; - private static final int JULY = 7; - private static final int AUGUST = 8; - private static final int SEPTEMBER = 9; - private static final int OCTOBER = 10; - private static final int NOVEMBER = 11; - private static final int DECEMBER = 12; - - @Autowired - private ScheduleTrackingService trackingService; - @Autowired - private SchedulerFactoryBean schedulerFactoryBean; - - private ScheduleWithCapture schedule; - private ScheduleVisualization visualization; - - @Test - public void shouldProvideAlertsForANCAtTheRightTimes() throws Exception { - schedule.enrollFor("Ante Natal Care - Normal", newDate(2012, 1, 1), new Time(14, 0)); - - schedule.assertNoAlerts("ANC 1", earliest); - schedule.assertAlertsStartWith("ANC 1", due, date(1, JANUARY), date(2, JANUARY), date(3, JANUARY), date(4, JANUARY), date(5, JANUARY), date(6, JANUARY), - date(7, JANUARY), date(8, JANUARY), date(9, JANUARY)); - schedule.assertAlertsStartWith("ANC 1", late, date(25, MARCH), date(26, MARCH), date(27, MARCH), date(28, MARCH), date(29, MARCH), - date(30, MARCH), date(31, MARCH), date(1, APRIL)); - schedule.assertNoAlerts("ANC 1", max); - - schedule.assertNoAlerts("ANC 2", earliest); - schedule.assertAlertsStartWith("ANC 2", due, date(8, APRIL), date(9, APRIL), date(10, APRIL), date(11, APRIL), date(12, APRIL), date(13, APRIL), date(14, APRIL), - date(15, APRIL), date(16, APRIL), date(17, APRIL), date(18, APRIL), date(19, APRIL)); - schedule.assertAlertsStartWith("ANC 2", late, date(1, JULY), date(2, JULY), date(3, JULY), date(4, JULY), date(5, JULY), - date(6, JULY), date(7, JULY), date(8, JULY)); - schedule.assertNoAlerts("ANC 2", max); - - schedule.assertNoAlerts("ANC 3", earliest); - schedule.assertAlertsStartWith("ANC 3", due, date(15, JULY), date(16, JULY), date(17, JULY), date(18, JULY), date(19, JULY), date(20, JULY)); - schedule.assertAlertsStartWith("ANC 3", late, date(26, AUGUST), date(27, AUGUST), date(28, AUGUST), date(29, AUGUST), date(30, AUGUST)); - schedule.assertNoAlerts("ANC 3", max); - - schedule.assertNoAlerts("ANC 4", earliest); - schedule.assertAlertsStartWith("ANC 4", due, date(9, SEPTEMBER), date(10, SEPTEMBER), date(11, SEPTEMBER), date(12, SEPTEMBER), date(13, SEPTEMBER), - date(14, SEPTEMBER), date(15, SEPTEMBER), date(16, SEPTEMBER), date(17, SEPTEMBER)); - schedule.assertAlertsStartWith("ANC 4", late, date(30, SEPTEMBER), date(1, OCTOBER), date(2, OCTOBER), date(3, OCTOBER), date(4, OCTOBER), date(5, OCTOBER), - date(6, OCTOBER), date(7, OCTOBER), date(8, OCTOBER)); - schedule.assertNoAlerts("ANC 4", max); - - visualization.outputTo("mother-anc-normal.html", 3); - } - - @Test - public void shouldProvideAlertsForLabRemindersATheRightTimes() throws Exception { - schedule.enrollFor("Lab Reminders", newDate(2012, 1, 1), new Time(14, 0)); - - schedule.assertNoAlerts("REMINDER", earliest); - schedule.assertNoAlerts("REMINDER", due); - schedule.assertAlerts("REMINDER", late, date(29, JULY), date(5, AUGUST), date(12, AUGUST), date(19, AUGUST), - date(26, AUGUST), date(2, SEPTEMBER), date(9, SEPTEMBER), date(16, SEPTEMBER), date(23, SEPTEMBER), date(30, SEPTEMBER), date(7, OCTOBER)); - schedule.assertAlerts("REMINDER", max, date(9, OCTOBER), date(10, OCTOBER), date(11, OCTOBER)); - - visualization.outputTo("mother-lab-reminder.html", 3); - } - - @Test - public void shouldProvideAlertsForExpectedDateOfDeliveryAtTheRightTimes() throws Exception { - schedule.enrollFor("Expected Date Of Delivery", newDate(2012, 1, 1), new Time(14, 0)); - - schedule.assertNoAlerts("EDD", earliest); - schedule.assertAlerts("EDD", due, date(23, SEPTEMBER), date(30, SEPTEMBER), date(7, OCTOBER)); - schedule.assertAlertsStartWith("EDD", late, date(10, OCTOBER), date(14, OCTOBER), date(17, OCTOBER), date(21, OCTOBER), date(24, OCTOBER), date(28, OCTOBER), date(31, OCTOBER), date(4, NOVEMBER)); - schedule.assertNoAlerts("EDD", max); - - visualization.outputTo("mother-expected-date-of-delivery.html", 3); - } - - @Test - @Ignore //TODO revise schedule - public void shouldProvideAlertsForBCG() throws Exception { - schedule.enrollFor(CHILD_SCHEDULE_BCG, newDate(2012, JANUARY, 1), new Time(14, 0)); - - schedule.assertNoAlerts(BCG_VALUE, earliest); - schedule.assertAlertsStartWith(BCG_VALUE, due, date(1, JANUARY), date(2, JANUARY), date(3, JANUARY), - date(4, JANUARY)); - schedule.assertAlertsStartWith(BCG_VALUE, late, date(15, JANUARY), date(16, JANUARY), date(17, JANUARY), date(18, JANUARY)); - schedule.assertNoAlerts(BCG_VALUE, max); - - visualization.outputTo("child-bcg.html", 1); - } - - @Test - @Ignore //TODO revise schedule - public void shouldProvideAlertsForOPV0AndOPV1() throws Exception { - schedule.enrollFor(CHILD_SCHEDULE_OPV_0_AND_1, newDate(2012, JANUARY, 1), new Time(14, 0)); - - schedule.assertNoAlerts("opv_0", earliest); - schedule.assertAlertsStartWith("opv_0", due, date(1, JANUARY), date(2, JANUARY), date(3, JANUARY), date(4, JANUARY)); - schedule.assertNoAlerts("opv_0", late); - schedule.assertNoAlerts("opv_0", max); - - schedule.assertAlertsStartWith("opv_1", earliest, date(16, JANUARY), date(17, JANUARY), date(18, JANUARY), date(19, JANUARY)); - schedule.assertAlertsStartWith("opv_1", due, date(12, FEBRUARY), date(13, FEBRUARY), date(14, FEBRUARY), date(15, FEBRUARY)); - schedule.assertAlertsStartWith("opv_1", late, date(26, FEBRUARY), date(27, FEBRUARY), date(28, FEBRUARY), date(29, FEBRUARY)); - schedule.assertNoAlerts("opv_1", max); - - visualization.outputTo("child-opv-0-and-1.html", 1); - } - - @Test - @Ignore //TODO revise schedule - public void shouldProvideAlertsForOPV2() throws Exception { - schedule.enrollFor("OPV 2", newDate(2012, JANUARY, 1), new Time(14, 0)); - - schedule.assertAlertsStartWith("opv_2", earliest, date(1, JANUARY), date(2, JANUARY), date(3, JANUARY), date(4, JANUARY)); - schedule.assertAlertsStartWith("opv_2", due, date(29, JANUARY), date(30, JANUARY), date(31, JANUARY), date(1, FEBRUARY)); - schedule.assertAlertsStartWith("opv_2", late, date(12, FEBRUARY), date(13, FEBRUARY), date(14, FEBRUARY), date(15, FEBRUARY)); - schedule.assertNoAlerts("opv_2", max); - - visualization.outputTo("child-opv-2.html", 1); - } - - @Test - @Ignore //TODO revise schedule - public void shouldProvideAlertsForOPV3() throws Exception { - schedule.enrollFor("OPV 3", newDate(2012, JANUARY, 1), new Time(14, 0)); - - schedule.assertAlertsStartWith("opv_3", earliest, date(1, JANUARY), date(2, JANUARY), date(3, JANUARY), date(4, JANUARY)); - schedule.assertAlertsStartWith("opv_3", due, date(29, JANUARY), date(30, JANUARY), date(31, JANUARY), date(1, FEBRUARY)); - schedule.assertAlertsStartWith("opv_3", late, date(12, FEBRUARY), date(13, FEBRUARY), date(14, FEBRUARY), date(15, FEBRUARY)); - schedule.assertNoAlerts("opv_3", max); - - visualization.outputTo("child-opv-3.html", 1); - } - - @Test - public void shouldProvideAlertsForOPVBooster() throws Exception { - schedule.enrollFor("OPV BOOSTER", newDate(2012, JANUARY, 1), new Time(14, 0)); - - schedule.assertNoAlerts("opvbooster", earliest); - schedule.assertAlertsStartWith("opvbooster", due, dateWithYear(1, MAY, 2013), - dateWithYear(2, MAY, 2013), dateWithYear(3, MAY, 2013), dateWithYear(4, MAY, 2013)); - schedule.assertAlertsStartWith("opvbooster", late, dateWithYear(1, JANUARY, 2014), - dateWithYear(2, JANUARY, 2014), dateWithYear(3, JANUARY, 2014)); - schedule.assertNoAlerts("opvbooster", max); - - visualization.outputTo("child-opv-booster.html", 1); - } - - @Test - @Ignore //TODO revise schedule - public void shouldProvideAlertForMeaslesVaccination() throws Exception { - schedule.enrollFor(CHILD_SCHEDULE_MEASLES, newDate(2012, JANUARY, 1), new Time(14, 0)); - - schedule.assertAlertsStartWith(MEASLES_VALUE, earliest, date(1, JANUARY), date(2, JANUARY), date(3, JANUARY), date(4, JANUARY)); - schedule.assertAlertsStartWith(MEASLES_VALUE, due, date(1, OCTOBER), date(2, OCTOBER), date(3, OCTOBER), date(4, OCTOBER), date(5, OCTOBER)); - schedule.assertAlertsStartWith(MEASLES_VALUE, late, dateWithYear(1, JANUARY, 2013), dateWithYear(2, JANUARY, 2013), dateWithYear(3, JANUARY, 2013), - dateWithYear(4, JANUARY, 2013)); - schedule.assertNoAlerts(MEASLES_VALUE, max); - - visualization.outputTo("child-measles.html", 4); - } - - @Ignore - public void shouldProvideAlertForMeaslesBoosterVaccination() throws Exception { - schedule.enrollFor(CHILD_SCHEDULE_MEASLES_BOOSTER, newDate(2012, JANUARY, 1), new Time(14, 0)); - - schedule.assertAlertsStartWith(MEASLES_BOOSTER_VALUE, earliest, date(1, JANUARY), date(2, JANUARY), date(3, JANUARY)); - schedule.assertAlertsStartWith(MEASLES_BOOSTER_VALUE, due, dateWithYear(1, MAY, 2013), - dateWithYear(2, MAY, 2013), dateWithYear(3, MAY, 2013), dateWithYear(4, MAY, 2013)); - schedule.assertAlertsStartWith(MEASLES_BOOSTER_VALUE, late, dateWithYear(1, JANUARY, 2014), - dateWithYear(2, JANUARY, 2014), dateWithYear(3, JANUARY, 2014)); - schedule.assertNoAlerts(MEASLES_BOOSTER_VALUE, max); - - visualization.outputTo("child-measles-booster.html", 4); - } - - @Test - public void shouldProvideAlertForDPTBooster1Vaccination() throws Exception { - schedule.enrollFor("DPT Booster 1", newDate(2012, 1, 1), new Time(14, 0)); - - schedule.assertAlertsStartWith("dptbooster_1", earliest, date(1, JANUARY), date(2, JANUARY), date(3, JANUARY), date(4, JANUARY)); - schedule.assertAlertsStartWith("dptbooster_1", due, dateWithYear(1, MAY, 2013), dateWithYear(2, MAY, 2013), dateWithYear(3, MAY, 2013)); - schedule.assertAlertsStartWith("dptbooster_1", late, dateWithYear(1, JANUARY, 2014), dateWithYear(2, JANUARY, 2014), dateWithYear(3, JANUARY, 2014)); - schedule.assertNoAlerts("dptbooster_1", max); - - visualization.outputTo("child-dpt-booster1.html", 4); - } - - @Test - public void shouldProvideAlertForDPTBooster2Vaccination() throws Exception { - schedule.enrollFor(CHILD_SCHEDULE_DPT_BOOSTER2, newDate(2012, 1, 1), new Time(14, 0)); - - schedule.assertNoAlerts(DPT_BOOSTER_2_VALUE, earliest); - schedule.assertAlertsStartWith(DPT_BOOSTER_2_VALUE, due, dateWithYear(1, JANUARY, 2017), - dateWithYear(2, JANUARY, 2017), dateWithYear(3, JANUARY, 2017)); - schedule.assertNoAlerts(DPT_BOOSTER_2_VALUE, late); - schedule.assertNoAlerts(DPT_BOOSTER_2_VALUE, max); - - visualization.outputTo("child-dpt-booster2.html", 4); - } - - @Test - public void shouldProvideAlertsForPentavalent1() throws Exception { - schedule.enrollFor("Penta 1", newDate(2012, JANUARY, 1), new Time(14, 0)); - - schedule.assertAlertsStartWith("penta1", earliest, date(1, JANUARY), date(2, JANUARY), date(3, JANUARY), date(4, JANUARY)); - schedule.assertAlertsStartWith("penta1", due, date(12, FEBRUARY), date(13, FEBRUARY), date(14, FEBRUARY), date(15, FEBRUARY)); - schedule.assertAlertsStartWith("penta1", late, date(26, FEBRUARY), date(27, FEBRUARY), date(28, FEBRUARY), date(29, FEBRUARY)); - //schedule.assertNoAlerts("penta1", max); - - visualization.outputTo("child-pentavalent-1.html", 1); - } - - @Test - public void shouldProvideAlertsForPentavalent2() throws Exception { - schedule.enrollFor("Penta 2", newDate(2012, JANUARY, 1), new Time(14, 0)); - - schedule.assertAlertsStartWith("penta2", earliest, date(1, JANUARY), date(2, JANUARY), date(3, JANUARY), date(4, JANUARY)); - schedule.assertAlertsStartWith("penta2", due, date(29, JANUARY), date(30, JANUARY), date(31, JANUARY)); - schedule.assertAlertsStartWith("penta2", late, date(12, FEBRUARY), date(13, FEBRUARY), date(14, FEBRUARY), date(15, FEBRUARY)); - //schedule.assertNoAlerts("penta2", max); - - visualization.outputTo("child-pentavalent-2.html", 1); - } - - @Test - public void shouldProvideAlertsForPentavalent3() throws Exception { - schedule.enrollFor("Penta 3", newDate(2012, JANUARY, 1), new Time(14, 0)); - - schedule.assertAlertsStartWith("penta3", earliest, date(1, JANUARY), date(2, JANUARY), date(3, JANUARY), date(4, JANUARY)); - schedule.assertAlertsStartWith("penta3", due, date(29, JANUARY), date(30, JANUARY), date(31, JANUARY)); - schedule.assertAlertsStartWith("penta3", late, date(12, FEBRUARY), date(13, FEBRUARY), date(14, FEBRUARY), date(15, FEBRUARY)); - //schedule.assertNoAlerts("penta3", max); - - visualization.outputTo("child-pentavalent-3.html", 1); - } - - @Test - @Ignore //TODO revise schedule - public void shouldProvideAlertForBoosterDoses() throws Exception { - schedule.enrollFor("Boosters", newDate(2012, 1, 1), new Time(14, 0)); - - schedule.assertNoAlerts("REMINDER", earliest); - schedule.assertAlerts("REMINDER", due, dateWithYear(19, MAY, 2013)); - schedule.assertNoAlerts("REMINDER", late); - schedule.assertNoAlerts("REMINDER", max); - - visualization.outputTo("child-measles-boosters.html", 4); - } - - @Test - public void shouldProvideAlertsForPNCCloseAtTheRightTimes() throws Exception { - schedule.enrollFor("Auto Close PNC", newDate(2012, 1, 1), new Time(14, 0)); - - schedule.assertNoAlerts("Auto Close PNC", earliest); - schedule.assertAlertsStartWith("Auto Close PNC", due, dateWithYear(26, FEBRUARY, 2012), dateWithYear(27, FEBRUARY, 2012), dateWithYear(28, FEBRUARY, 2012), - dateWithYear(29, FEBRUARY, 2012)); - schedule.assertNoAlerts("Auto Close PNC", late); - schedule.assertNoAlerts("Auto Close PNC", max); - - visualization.outputTo("mother-auto-close-pnc.html", 1); - } - - @Test - public void shouldProvideAlertsForDMPAInjectableRefillAtTheRightTimes() throws Exception { - schedule.enrollFor("DMPA Injectable Refill", newDate(2012, JANUARY, 1), new Time(14, 0)); - - schedule.assertAlertsStartWith("DMPA Injectable Refill", earliest, - dateWithYear(1, JANUARY, 2012), dateWithYear(2, JANUARY, 2012), dateWithYear(3, JANUARY, 2012), dateWithYear(4, JANUARY, 2012)); - schedule.assertAlerts("DMPA Injectable Refill", due, dateWithYear(25, MARCH, 2012), dateWithYear(26, MARCH, 2012), dateWithYear(27, MARCH, 2012), - dateWithYear(28, MARCH, 2012), dateWithYear(29, MARCH, 2012), dateWithYear(30, MARCH, 2012), dateWithYear(31, MARCH, 2012)); - schedule.assertAlertsStartWith("DMPA Injectable Refill", late, dateWithYear(1, APRIL, 2012), dateWithYear(2, APRIL, 2012), dateWithYear(3, APRIL, 2012), - dateWithYear(4, APRIL, 2012), dateWithYear(5, APRIL, 2012), dateWithYear(6, APRIL, 2012), dateWithYear(7, APRIL, 2012)); - schedule.assertNoAlerts("DMPA Injectable Refill", max); - - visualization.outputTo("ec-dmpa-injectable-refill.html", 1); - } - - @Test - public void shouldProvideAlertsForOCPRefillAtTheRightTimes() throws Exception { - schedule.enrollFor("OCP Refill", newDate(2012, JANUARY, 1), new Time(14, 0)); - - schedule.assertNoAlerts("OCP Refill", earliest); - schedule.assertAlerts("OCP Refill", due, dateWithYear(1, JANUARY, 2012), dateWithYear(2, JANUARY, 2012), dateWithYear(3, JANUARY, 2012), dateWithYear(4, JANUARY, 2012), - dateWithYear(5, JANUARY, 2012), dateWithYear(6, JANUARY, 2012), dateWithYear(7, JANUARY, 2012)); - schedule.assertAlertsStartWith("OCP Refill", late, dateWithYear(8, JANUARY, 2012), dateWithYear(9, JANUARY, 2012), dateWithYear(10, JANUARY, 2012), - dateWithYear(11, JANUARY, 2012), dateWithYear(12, JANUARY, 2012), dateWithYear(13, JANUARY, 2012), dateWithYear(14, JANUARY, 2012)); - schedule.assertNoAlerts("OCP Refill", max); - - visualization.outputTo("ec-ocp-refill.html", 1); - } - - @Test - public void shouldProvideAlertsForCondomRefillAtTheRightTimes() throws Exception { - schedule.enrollFor("Condom Refill", newDate(2012, JANUARY, 1), new Time(14, 0)); - - schedule.assertNoAlerts("Condom Refill", earliest); - schedule.assertAlerts("Condom Refill", due, dateWithYear(1, JANUARY, 2012), dateWithYear(2, JANUARY, 2012), - dateWithYear(3, JANUARY, 2012), dateWithYear(4, JANUARY, 2012), dateWithYear(5, JANUARY, 2012), dateWithYear(6, JANUARY, 2012), dateWithYear(7, JANUARY, 2012)); - schedule.assertAlertsStartWith("Condom Refill", late, dateWithYear(8, JANUARY, 2012), dateWithYear(9, JANUARY, 2012), dateWithYear(10, JANUARY, 2012), dateWithYear(11, JANUARY, 2012)); - schedule.assertNoAlerts("Condom Refill", max); - - visualization.outputTo("ec-condom-refill.html", 1); - } - - @Test - public void shouldProvideAlertsForFemaleSterilizationFollowupAtTheRightTimes() throws Exception { - schedule.enrollFor("Female sterilization Followup", newDate(2012, JANUARY, 1), new Time(14, 0)); - - schedule.assertNoAlerts("Female sterilization Followup 1", earliest); - schedule.assertAlerts("Female sterilization Followup 1", due, dateWithYear(1, JANUARY, 2012), dateWithYear(2, JANUARY, 2012)); - schedule.assertAlerts("Female sterilization Followup 1", late, dateWithYear(3, JANUARY, 2012), dateWithYear(4, JANUARY, 2012), dateWithYear(5, JANUARY, 2012), dateWithYear(6, JANUARY, 2012), dateWithYear(7, JANUARY, 2012)); - schedule.assertNoAlerts("Female sterilization Followup 1", max); - - schedule.assertNoAlerts("Female sterilization Followup 2", earliest); - schedule.assertAlerts("Female sterilization Followup 2", due, dateWithYear(8, JANUARY, 2012), dateWithYear(9, JANUARY, 2012)); - schedule.assertAlertsStartWith("Female sterilization Followup 2", late, dateWithYear(10, JANUARY, 2012), dateWithYear(11, JANUARY, 2012), - dateWithYear(12, JANUARY, 2012), dateWithYear(13, JANUARY, 2012), dateWithYear(14, JANUARY, 2012), dateWithYear(15, JANUARY, 2012)); - schedule.assertNoAlerts("Female sterilization Followup 2", max); - - schedule.assertNoAlerts("Female sterilization Followup 3", earliest); - schedule.assertAlertsStartWith("Female sterilization Followup 3", due, dateWithYear(1, FEBRUARY, 2012), dateWithYear(2, FEBRUARY, 2012)); - schedule.assertAlertsStartWith("Female sterilization Followup 3", late, dateWithYear(8, FEBRUARY, 2012), dateWithYear(9, FEBRUARY, 2012), - dateWithYear(10, FEBRUARY, 2012), dateWithYear(11, FEBRUARY, 2012), dateWithYear(12, FEBRUARY, 2012), dateWithYear(13, FEBRUARY, 2012)); - schedule.assertNoAlerts("Female sterilization Followup 3", max); - - visualization.outputTo("ec-female-sterilization-followup.html", 1); - } - - @Test - public void shouldProvideAlertsForMaleSterilizationFollowupAtTheRightTimes() throws Exception { - schedule.enrollFor("Male sterilization Followup", newDate(2012, JANUARY, 1), new Time(14, 0)); - - schedule.assertNoAlerts("Male sterilization Followup 1", earliest); - schedule.assertAlerts("Male sterilization Followup 1", due, dateWithYear(1, JANUARY, 2012), dateWithYear(2, JANUARY, 2012)); - schedule.assertAlertsStartWith("Male sterilization Followup 1", late, dateWithYear(3, JANUARY, 2012), dateWithYear(4, JANUARY, 2012), - dateWithYear(5, JANUARY, 2012), dateWithYear(6, JANUARY, 2012), dateWithYear(7, JANUARY, 2012), dateWithYear(8, JANUARY, 2012), dateWithYear(9, JANUARY, 2012)); - schedule.assertNoAlerts("Male sterilization Followup 1", max); - - schedule.assertNoAlerts("Male sterilization Followup 2", earliest); - schedule.assertAlertsStartWith("Male sterilization Followup 2", due, dateWithYear(1, APRIL, 2012), dateWithYear(2, APRIL, 2012), dateWithYear(3, APRIL, 2012)); - schedule.assertAlertsStartWith("Male sterilization Followup 2", late, dateWithYear(8, APRIL, 2012), dateWithYear(9, APRIL, 2012), - dateWithYear(10, APRIL, 2012), dateWithYear(11, APRIL, 2012), dateWithYear(12, APRIL, 2012), dateWithYear(13, APRIL, 2012), dateWithYear(14, APRIL, 2012)); - schedule.assertNoAlerts("Male sterilization Followup 2", max); - - visualization.outputTo("ec-male-sterilization-followup.html", 1); - } - - @Test - public void shouldProvideAlertsForIUDFollowupAtTheRightTimes() throws Exception { - schedule.enrollFor("IUD Followup", newDate(2012, JANUARY, 1), new Time(14, 0)); - - schedule.assertAlertsStartWith("IUD Followup 1", earliest, dateWithYear(1, JANUARY, 2012), dateWithYear(2, JANUARY, 2012), dateWithYear(3, JANUARY, 2012)); - schedule.assertAlertsStartWith("IUD Followup 1", due, dateWithYear(1, FEBRUARY, 2012), dateWithYear(2, FEBRUARY, 2012), dateWithYear(3, FEBRUARY, 2012)); - schedule.assertAlertsStartWith("IUD Followup 1", late, dateWithYear(8, FEBRUARY, 2012), dateWithYear(9, FEBRUARY, 2012), - dateWithYear(10, FEBRUARY, 2012), dateWithYear(11, FEBRUARY, 2012), dateWithYear(12, FEBRUARY, 2012), dateWithYear(13, FEBRUARY, 2012)); - schedule.assertNoAlerts("IUD Followup 1", max); - - schedule.assertNoAlerts("IUD Followup 2", earliest); - schedule.assertAlertsStartWith("IUD Followup 2", due, dateWithYear(1, MAY, 2012), dateWithYear(2, MAY, 2012), dateWithYear(3, MAY, 2012)); - schedule.assertAlertsStartWith("IUD Followup 2", late, dateWithYear(8, MAY, 2012), dateWithYear(9, MAY, 2012), dateWithYear(10, MAY, 2012) - , dateWithYear(11, MAY, 2012), dateWithYear(12, MAY, 2012), dateWithYear(13, MAY, 2012), dateWithYear(14, MAY, 2012), dateWithYear(15, MAY, 2012)); - schedule.assertNoAlerts("IUD Followup 2", max); - - visualization.outputTo("ec-iud-followup.html", 1); - } - - @Test - public void shouldProvideAlertsForFPFollowupAtTheRightTimes() throws Exception { - schedule.enrollFor("FP Followup", newDate(2012, JANUARY, 1), new Time(14, 0)); - - schedule.assertAlerts("FP Followup", earliest, dateWithYear(1, JANUARY, 2012), dateWithYear(2, JANUARY, 2012), dateWithYear(3, JANUARY, 2012)); - schedule.assertAlerts("FP Followup", due, dateWithYear(4, JANUARY, 2012), dateWithYear(5, JANUARY, 2012), dateWithYear(6, JANUARY, 2012), dateWithYear(7, JANUARY, 2012)); - schedule.assertAlertsStartWith("FP Followup", late, dateWithYear(8, JANUARY, 2012), dateWithYear(9, JANUARY, 2012), dateWithYear(10, JANUARY, 2012), - dateWithYear(11, JANUARY, 2012), dateWithYear(12, JANUARY, 2012), dateWithYear(13, JANUARY, 2012), dateWithYear(14, JANUARY, 2012)); - schedule.assertNoAlerts("FP Followup", max); - - visualization.outputTo("ec-fp-followup.html", 1); - } - - @Test - public void shouldProvideAlertsForFPReferralFollowupAtTheRightTimes() throws Exception { - schedule.enrollFor("FP Referral Followup", newDate(2012, JANUARY, 1), new Time(14, 0)); - - schedule.assertAlerts("FP Referral Followup", earliest, dateWithYear(1, JANUARY, 2012)); - schedule.assertAlerts("FP Referral Followup", due, dateWithYear(2, JANUARY, 2012)); - schedule.assertAlertsStartWith("FP Referral Followup", late, dateWithYear(3, JANUARY, 2012), dateWithYear(4, JANUARY, 2012), - dateWithYear(5, JANUARY, 2012), dateWithYear(6, JANUARY, 2012), dateWithYear(7, JANUARY, 2012), dateWithYear(8, JANUARY, 2012)); - schedule.assertNoAlerts("FP Referral Followup", max); - - visualization.outputTo("ec-fp-referral-followup.html", 1); - } - - @Test - @Ignore //TODO revise schedule - public void shouldProvideAlertsForTT1AtTheRightTimes() throws Exception { - schedule.enrollFor("TT 1", newDate(2012, JANUARY, 1), new Time(14, 0)); - - schedule.assertNoAlerts("TT 1", earliest); - schedule.assertAlertsStartWith("TT 1", due, dateWithYear(1, JANUARY, 2012), dateWithYear(2, JANUARY, 2012), dateWithYear(3, JANUARY, 2012), dateWithYear(4, JANUARY, 2012)); - schedule.assertAlertsStartWith("TT 1", late, dateWithYear(25, MARCH, 2012), dateWithYear(26, MARCH, 2012), dateWithYear(27, MARCH, 2012), dateWithYear(28, MARCH, 2012)); - schedule.assertNoAlerts("TT 1", max); - - visualization.outputTo("mother-tt-1.html", 1); - } - - @Test - @Ignore //TODO revise schedule - public void shouldProvideAlertsForTT2AtTheRightTimes() throws Exception { - schedule.enrollFor("TT 2", newDate(2012, JANUARY, 1), new Time(14, 0)); - - schedule.assertAlertsStartWith("TT 2", earliest, dateWithYear(1, JANUARY, 2012), dateWithYear(2, JANUARY, 2012), dateWithYear(3, JANUARY, 2012)); - schedule.assertAlertsStartWith("TT 2", due, dateWithYear(29, JANUARY, 2012), dateWithYear(30, JANUARY, 2012), dateWithYear(31, JANUARY, 2012)); - schedule.assertAlertsStartWith("TT 2", late, dateWithYear(12, FEBRUARY, 2012), dateWithYear(13, FEBRUARY, 2012), dateWithYear(14, FEBRUARY, 2012)); - schedule.assertNoAlerts("TT 2", max); - - visualization.outputTo("mother-tt-2.html", 1); - } - - @Test - public void shouldProvideAlertsForIFA1() throws Exception { - schedule.enrollFor("IFA 1", newDate(2012, 1, 1), new Time(14, 0)); - - schedule.assertAlertsStartWith("IFA 1", earliest, date(1, JANUARY), date(2, JANUARY), date(3, JANUARY)); - schedule.assertAlertsStartWith("IFA 1", due, date(8, APRIL), date(9, APRIL), date(10, APRIL), date(11, APRIL)); - schedule.assertAlertsStartWith("IFA 1", late, date(22, APRIL), date(23, APRIL), date(24, APRIL), date(25, APRIL)); - schedule.assertNoAlerts("IFA 1", max); - - visualization.outputTo("mother-ifa-1.html", 1); - } - - @Test - public void shouldProvideAlertsForIFA2() throws Exception { - schedule.enrollFor("IFA 2", newDate(2012, 1, 1), new Time(14, 0)); - - schedule.assertAlertsStartWith("IFA 2", earliest, date(1, JANUARY), date(2, JANUARY), date(3, JANUARY)); - schedule.assertAlertsStartWith("IFA 2", due, date(1, FEBRUARY), date(2, FEBRUARY), date(3, FEBRUARY), date(4, FEBRUARY)); - schedule.assertAlertsStartWith("IFA 2", late, date(15, FEBRUARY), date(16, FEBRUARY), date(17, FEBRUARY), date(18, FEBRUARY), date(19, FEBRUARY)); - schedule.assertNoAlerts("IFA 2", max); - - visualization.outputTo("mother-ifa-2.html", 1); - } - - @Test - public void shouldProvideAlertsForIFA3() throws Exception { - schedule.enrollFor("IFA 3", newDate(2012, 1, 1), new Time(14, 0)); - - schedule.assertAlertsStartWith("IFA 3", earliest, date(1, JANUARY), date(2, JANUARY), date(3, JANUARY)); - schedule.assertAlertsStartWith("IFA 3", due, date(1, FEBRUARY), date(2, FEBRUARY), date(3, FEBRUARY), date(4, FEBRUARY)); - schedule.assertAlertsStartWith("IFA 3", late, date(15, FEBRUARY), date(16, FEBRUARY), date(17, FEBRUARY), date(18, FEBRUARY)); - schedule.assertNoAlerts("IFA 3", max); - - visualization.outputTo("mother-ifa-3.html", 1); - } - - @Test - public void shouldProvideAlertsForHbTest1AtTheRightTimes() throws Exception { - schedule.enrollFor("Hb Test 1", newDate(2012, JANUARY, 1), new Time(14, 0)); - - schedule.assertNoAlerts("Hb Test 1", earliest); - schedule.assertAlertsStartWith("Hb Test 1", due, dateWithYear(1, JANUARY, 2012), dateWithYear(2, JANUARY, 2012), dateWithYear(3, JANUARY, 2012), - dateWithYear(4, JANUARY, 2012), dateWithYear(5, JANUARY, 2012), dateWithYear(6, JANUARY, 2012)); - schedule.assertAlertsStartWith("Hb Test 1", late, dateWithYear(25, MARCH, 2012), dateWithYear(26, MARCH, 2012), dateWithYear(27, MARCH, 2012), - dateWithYear(28, MARCH, 2012)); - schedule.assertNoAlerts("Hb Test 1", max); - - visualization.outputTo("mother-hb-test-1.html", 1); - } - - @Test - public void shouldProvideAlertsForHbFollowupTestAtTheRightTimes() throws Exception { - schedule.enrollFor("Hb Followup Test", newDate(2012, JANUARY, 1), new Time(14, 0)); - - schedule.assertAlertsStartWith("Hb Followup Test", earliest, dateWithYear(1, JANUARY, 2012), dateWithYear(2, JANUARY, 2012), - dateWithYear(3, JANUARY, 2012), dateWithYear(4, JANUARY, 2012)); - schedule.assertAlertsStartWith("Hb Followup Test", due, dateWithYear(1, FEBRUARY, 2012), dateWithYear(2, FEBRUARY, 2012), - dateWithYear(3, FEBRUARY, 2012), dateWithYear(4, FEBRUARY, 2012)); - schedule.assertAlertsStartWith("Hb Followup Test", late, dateWithYear(15, FEBRUARY, 2012), dateWithYear(16, FEBRUARY, 2012), dateWithYear(17, FEBRUARY, 2012)); - schedule.assertNoAlerts("Hb Followup Test", max); - - visualization.outputTo("mother-hb-followup-test.html", 1); - } - - @Test - public void shouldProvideAlertsForHbTest2AtTheRightTimes() throws Exception { - schedule.enrollFor("Hb Test 2", newDate(2012, JANUARY, 1), new Time(14, 0)); - - schedule.assertNoAlerts("Hb Test 2", earliest); - schedule.assertAlertsStartWith("Hb Test 2", due, dateWithYear(15, JULY, 2012), dateWithYear(16, JULY, 2012), dateWithYear(17, JULY, 2012), dateWithYear(18, JULY, 2012)); - schedule.assertAlertsStartWith("Hb Test 2", late, dateWithYear(29, JULY, 2012), dateWithYear(30, JULY, 2012), dateWithYear(31, JULY, 2012)); - schedule.assertNoAlerts("Hb Test 2", max); - - visualization.outputTo("mother-hb-test-2.html", 1); - } - - @Test - public void shouldProvideAlertsForDeliveryPlanAtTheRightTimes() throws Exception { - schedule.enrollFor("Delivery Plan", newDate(2012, JANUARY, 1), new Time(14, 0)); - - schedule.assertAlertsStartWith("Delivery Plan", earliest, dateWithYear(1, JANUARY, 2012), dateWithYear(2, JANUARY, 2012), dateWithYear(3, JANUARY, 2012), dateWithYear(4, JANUARY, 2012)); - schedule.assertAlertsStartWith("Delivery Plan", due, dateWithYear(26, AUGUST, 2012), dateWithYear(27, AUGUST, 2012), dateWithYear(28, AUGUST, 2012), dateWithYear(29, AUGUST, 2012)); - schedule.assertAlertsStartWith("Delivery Plan", late, dateWithYear(9, SEPTEMBER, 2012), dateWithYear(10, SEPTEMBER, 2012), dateWithYear(11, SEPTEMBER, 2012)); - schedule.assertNoAlerts("Delivery Plan", max); - - visualization.outputTo("mother-delivery-plan.html", 1); - } - - @Before - public void setUp() throws Exception { - FakeSchedule fakeSchedule = new FakeSchedule(trackingService, schedulerFactoryBean, new SetDateAction() { - @Override - public void setTheDateTo(LocalDate date) { - mockCurrentDate(date); - fakeIt(date); - } - }); - - String outputDir = null; - if (new File("opensrp-web").exists()) { - outputDir = "opensrp-web/doc/schedules/"; - } else if (new File("doc").exists()) { - outputDir = "doc/schedules/"; - } - visualization = new ScheduleVisualization(fakeSchedule, outputDir); - - schedule = new ScheduleWithCapture(fakeSchedule, visualization); - } - - @BeforeClass - public static void turnOffSpringLogging() { - Logger logger = Logger.getLogger("org.springframework"); - logger.setLevel(Level.FATAL); - } - - private Date date(int day, int month) { - return dateWithYear(day, month, 2012); - } - - private Date dateWithYear(int day, int month, int year) { - return new DateTime(year, month, day, 14, 0).toDate(); - } -} diff --git a/opensrp-web/src/test/java/org/opensrp/web/it/RulesFactoryTest.java b/opensrp-web/src/test/java/org/opensrp/web/it/RulesFactoryTest.java deleted file mode 100644 index 0decbcbd34..0000000000 --- a/opensrp-web/src/test/java/org/opensrp/web/it/RulesFactoryTest.java +++ /dev/null @@ -1,174 +0,0 @@ -package org.opensrp.web.it; -/*package org.opensrp.integration; - -import static org.junit.Assert.assertTrue; -import static org.mockito.MockitoAnnotations.initMocks; - -import org.junit.Before; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.opensrp.register.service.reporting.RulesFactory; -import org.opensrp.register.service.reporting.rules.CurrentFPMethodIsCondomRule; -import org.opensrp.register.service.reporting.rules.DeliveryHappenedAtHomeRule; -import org.opensrp.register.service.reporting.rules.DeliveryIsAttendedByNonSBATrainedPersonRule; -import org.opensrp.register.service.reporting.rules.DeliveryIsAttendedBySBATrainedPersonRule; -import org.opensrp.register.service.reporting.rules.IsChildLessThanOneYearOldRule; -import org.opensrp.register.service.reporting.rules.IsJsyBeneficiaryRule; -import org.opensrp.register.service.reporting.rules.IsPersonAnaemicRule; -import org.opensrp.register.service.reporting.rules.MoreThanZeroCondomsSuppliedRule; -import org.opensrp.register.service.reporting.rules.NewFPMethodIsCondomRule; -import org.opensrp.register.service.reporting.rules.RelocationIsPermanentRule; -import org.opensrp.register.service.reporting.rules.ServiceProvidedAtSub_CenterRule; -import org.opensrp.register.service.reporting.rules.WomanIsDischargedWithin48HoursOfDeliveryRule; -import org.opensrp.service.reporting.RuleNotFoundException; -import org.opensrp.service.reporting.rules.IRule; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.test.context.ContextConfiguration; -import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; - -@RunWith(SpringJUnit4ClassRunner.class) -@ContextConfiguration("classpath:spring/applicationContext-opensrp-web.xml") -public class RulesFactoryTest { - - @Autowired - private RulesFactory rulesFactory; - - @Before - public void setUp() throws Exception { - initMocks(this); - } - - @Test(expected = RuleNotFoundException.class) - public void shouldThrowExceptionWhenRuleClassCannotBeFoundByName() throws Exception { - String ruleName = "NonExistentRule"; - IRule rule = rulesFactory.ruleByName(ruleName); - } - - @Test - public void shouldLoadAgeIsLessThanOneYearRuleClassByName() throws Exception { - String ruleName = "IsChildLessThanOneYearOldRule"; - - IRule rule = rulesFactory.ruleByName(ruleName); - - assertTrue(rule instanceof IsChildLessThanOneYearOldRule); - } - - @Test - public void shouldLoadCurrentFPMethodIsCondomRuleClassByName() throws Exception { - String ruleName = "CurrentFPMethodIsCondomRule"; - - IRule rule = rulesFactory.ruleByName(ruleName); - - assertTrue(rule instanceof CurrentFPMethodIsCondomRule); - } - - @Test - public void shouldLoadRelocationIsPermanentRuleClassByName() throws Exception { - String ruleName = "RelocationIsPermanentRule"; - - IRule rule = rulesFactory.ruleByName(ruleName); - - assertTrue(rule instanceof RelocationIsPermanentRule); - } - - @Test - public void shouldLoadNewFPMethodIsCondomRuleClassByName() throws Exception { - String ruleName = "NewFPMethodIsCondomRule"; - - IRule rule = rulesFactory.ruleByName(ruleName); - - assertTrue(rule instanceof NewFPMethodIsCondomRule); - } - - @Test - public void shouldLoadMoreThanOneCondomSuppliedRuleRuleClassByName() throws Exception { - String ruleName = "MoreThanZeroCondomsSuppliedRule"; - - IRule rule = rulesFactory.ruleByName(ruleName); - - assertTrue(rule instanceof MoreThanZeroCondomsSuppliedRule); - } - - - @Test - public void shouldLoadJsyBeneficiaryIsTrueRuleRuleClassByName() throws Exception { - String ruleName = "IsJsyBeneficiaryRule"; - - IRule rule = rulesFactory.ruleByName(ruleName); - - assertTrue(rule instanceof IsJsyBeneficiaryRule); - } - - @Test - public void shouldLoadMinimumThreeANCVisitsHappenedOnTimeRuleClassByName() throws Exception { - String ruleName = "MinimumThreeANCVisitsHappenedOnTimeRule"; - - IRule rule = rulesFactory.ruleByName(ruleName); - - assertTrue(rule instanceof MinimumThreeANCVisitsHappenedOnTimeRule); - } - - @Test - public void shouldLoadServiceProvidedAtSub_CenterRuleClassByName() throws Exception { - String ruleName = "ServiceProvidedAtSub_CenterRule"; - - IRule rule = rulesFactory.ruleByName(ruleName); - - assertTrue(rule instanceof ServiceProvidedAtSub_CenterRule); - } - - @Test - public void shouldLoadIsPersonAnaemicRuleRuleClassByName() throws Exception { - String ruleName = "IsPersonAnaemicRule"; - - IRule rule = rulesFactory.ruleByName(ruleName); - - assertTrue(rule instanceof IsPersonAnaemicRule); - } - - @Test - public void shouldLoadDeliveryIsAttendedBySBATrainedPersonRuleClassByName() throws Exception { - String ruleName = "DeliveryIsAttendedBySBATrainedPersonRule"; - - IRule rule = rulesFactory.ruleByName(ruleName); - - assertTrue(rule instanceof DeliveryIsAttendedBySBATrainedPersonRule); - } - - @Test - public void shouldLoadDeliveryHappenedAtHomeRuleClassByName() throws Exception { - String ruleName = "DeliveryHappenedAtHomeRule"; - - IRule rule = rulesFactory.ruleByName(ruleName); - - assertTrue(rule instanceof DeliveryHappenedAtHomeRule); - } - - @Test - public void shouldLoadDeliveryIsAttendedByNonSBATrainedPersonRuleClassByName() throws Exception { - String ruleName = "DeliveryIsAttendedByNonSBATrainedPersonRule"; - - IRule rule = rulesFactory.ruleByName(ruleName); - - assertTrue(rule instanceof DeliveryIsAttendedByNonSBATrainedPersonRule); - } - - @Test - public void shouldLoadIsPersonAnaemicRuleClassByName() throws Exception { - String ruleName = "IsPersonAnaemicRule"; - - IRule rule = rulesFactory.ruleByName(ruleName); - - assertTrue(rule instanceof IsPersonAnaemicRule); - } - - @Test - public void shouldLoadWomanIsDischargedWithin48HoursOfDeliveryRuleClassByName() throws Exception { - String ruleName = "WomanIsDischargedWithin48HoursOfDeliveryRule"; - - IRule rule = rulesFactory.ruleByName(ruleName); - - assertTrue(rule instanceof WomanIsDischargedWithin48HoursOfDeliveryRule); - } -} -*/ \ No newline at end of file diff --git a/opensrp-web/src/test/java/org/opensrp/web/it/listener/ClientListenerTest.java b/opensrp-web/src/test/java/org/opensrp/web/it/listener/ClientListenerTest.java deleted file mode 100644 index 91727b5310..0000000000 --- a/opensrp-web/src/test/java/org/opensrp/web/it/listener/ClientListenerTest.java +++ /dev/null @@ -1,125 +0,0 @@ -/** - * - */ -package org.opensrp.web.it.listener; - -import java.io.BufferedReader; -import java.io.FileNotFoundException; -import java.io.FileReader; -import java.io.IOException; - -import org.json.JSONException; -import org.junit.Before; -import org.junit.Ignore; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.opensrp.domain.Camp; -import org.opensrp.repository.AllCamp; -import org.opensrp.repository.couch.AllClients; -import org.opensrp.scheduler.repository.couch.AllActions; -import org.opensrp.web.listener.RapidproMessageListener; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.test.context.ContextConfiguration; -import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; - -/** - * @author proshanto - */ - -@RunWith(SpringJUnit4ClassRunner.class) -@ContextConfiguration(locations = { "classpath:spring/applicationContext-opensrp-web.xml" }) -public class ClientListenerTest { - - @Autowired - private AllClients allClients; - - @Autowired - private AllActions allActions; - - @Autowired - private RapidproMessageListener rapidProMessageListener; - - @Autowired - private AllCamp allCamp; - - @Before - public void setup() throws IOException { - //allClients.removeAll(); - // allActions.removeAll(); - } - - @Ignore - @Test - public void testFetchClient() throws JSONException { - - /* Client child = (Client) new Client("127").withFirstName("foomm").withGender("female").withLastName("bae ff") - .withBirthdate(new DateTime(), false).withDateCreated(new DateTime()); - - List motherRelationshipsList = new ArrayList<>(); - motherRelationshipsList.add("130"); - Map> motherRelationships = new HashMap<>(); - motherRelationships.put("mother", motherRelationshipsList); - child.setRelationships(motherRelationships); - - allClients.add(child); - - Client mother = (Client) new Client("130").withFirstName("foorrr").withGender("female").withLastName("bae ff") - .withBirthdate(new DateTime(), false).withDateCreated(new DateTime()); - - Map motherAttributes = new HashMap<>(); - - motherAttributes.put("phoneNumber", "01711082537"); - motherAttributes.put("nationalId", "76543222349775"); - motherAttributes.put("spouseName", "Dion"); - mother.setAttributes(motherAttributes); - allClients.add(mother); - Action normalAction = new Action("127", "ANM 1", ActionData.createAlert("child", "opv", "opv0", normal, - DateTime.now(), DateTime.now().plusDays(3))); - Action upcominglAction = new Action("127", "ANM 1", ActionData.createAlert("child", "opv", "opv0", upcoming, - DateTime.now(), DateTime.now().plusDays(3))); - allActions.add(normalAction); - allActions.add(upcominglAction);*/ - //rapidProMessageListener.fetchClient(); - - rapidProMessageListener.campAnnouncementListener("raihan"); - - } - - @Test - public void createCamp() throws FileNotFoundException { - String csvFile = "/home/sohel/workspace-3.6.1/opensrp-server/CreateNewCamp.csv"; - BufferedReader br = null; - String line = ""; - String cvsSplitBy = ","; - int lineNumber = 0; - try { - br = new BufferedReader(new FileReader(csvFile)); - while ((line = br.readLine()) != null) { - if (lineNumber == 0) { - lineNumber++; - continue; - } - String[] updateObject = line.split(cvsSplitBy); - String providerName = updateObject[0].trim(); - String date = updateObject[1].trim(); - String campName = updateObject[2].trim(); - String centerName = updateObject[3].trim(); - boolean status = Boolean.parseBoolean(updateObject[4].trim()); - Camp camp = new Camp(); - camp.setProviderName(providerName); - camp.setDate(date); - camp.setCampName(campName); - camp.setCenterName(centerName); - camp.setStatus(status); - allCamp.add(camp); - System.err.println("successfully defined camp: " + campName); - lineNumber++; - } - - } - catch (IOException e) { - e.printStackTrace(); - } - } - -} diff --git a/opensrp-web/src/test/java/org/opensrp/web/it/listener/CreateNewCamp.java b/opensrp-web/src/test/java/org/opensrp/web/it/listener/CreateNewCamp.java deleted file mode 100644 index b19ef2cf49..0000000000 --- a/opensrp-web/src/test/java/org/opensrp/web/it/listener/CreateNewCamp.java +++ /dev/null @@ -1,75 +0,0 @@ -package org.opensrp.web.it.listener; - -import java.io.BufferedReader; -import java.io.FileNotFoundException; -import java.io.FileReader; -import java.io.IOException; - -import org.ektorp.CouchDbInstance; -import org.ektorp.http.HttpClient; -import org.ektorp.http.StdHttpClient; -import org.ektorp.impl.StdCouchDbConnector; -import org.ektorp.impl.StdCouchDbInstance; -import org.ektorp.impl.StdObjectMapperFactory; -import org.junit.Before; -import org.junit.Test; -import org.opensrp.domain.Camp; -import org.opensrp.repository.AllCamp; - -public class CreateNewCamp { - - private CouchDbInstance dbInstance; - - private StdCouchDbConnector stdCouchDbConnector; - - private AllCamp allCamp; - - @Before - public void setUp() throws Exception { - HttpClient httpClient = new StdHttpClient.Builder().host("localhost").port(5984).username("rootuser") - .password("adminpass").socketTimeout(10000000).build(); - dbInstance = new StdCouchDbInstance(httpClient); - stdCouchDbConnector = new StdCouchDbConnector("opensrp", dbInstance, new StdObjectMapperFactory()); - stdCouchDbConnector.createDatabaseIfNotExists(); - allCamp = new AllCamp(stdCouchDbConnector); - - } - - @Test - public void createCamp() throws FileNotFoundException { - String csvFile = "/home/sohel/workspace-3.6.1/opensrp-server/CreateNewCamp.csv"; - BufferedReader br = null; - String line = ""; - String cvsSplitBy = ","; - int lineNumber = 0; - try { - br = new BufferedReader(new FileReader(csvFile)); - while ((line = br.readLine()) != null) { - if (lineNumber == 0) { - lineNumber++; - continue; - } - String[] updateObject = line.split(cvsSplitBy); - String providerName = updateObject[0].trim(); - String date = updateObject[1].trim(); - String campName = updateObject[2].trim(); - String centerName = updateObject[3].trim(); - boolean status = Boolean.parseBoolean(updateObject[4].trim()); - Camp camp = new Camp(); - camp.setProviderName(providerName); - camp.setDate(date); - camp.setCampName(campName); - camp.setCenterName(centerName); - camp.setStatus(status); - allCamp.add(camp); - System.err.println("successfully defined camp: " + campName); - lineNumber++; - } - - } - catch (IOException e) { - e.printStackTrace(); - } - } - -} diff --git a/opensrp-web/src/test/java/org/opensrp/web/rest/it/BaseResourceTest.java b/opensrp-web/src/test/java/org/opensrp/web/rest/it/BaseResourceTest.java deleted file mode 100644 index d44e5aac3b..0000000000 --- a/opensrp-web/src/test/java/org/opensrp/web/rest/it/BaseResourceTest.java +++ /dev/null @@ -1,160 +0,0 @@ -package org.opensrp.web.rest.it; - -import org.apache.http.client.entity.UrlEncodedFormEntity; -import org.apache.http.message.BasicNameValuePair; -import org.apache.http.util.EntityUtils; -import org.codehaus.jackson.JsonNode; -import org.codehaus.jackson.map.ObjectMapper; -import org.junit.Before; -import org.junit.runner.RunWith; -import org.motechproject.dao.MotechBaseRepository; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.MediaType; -import org.springframework.security.crypto.codec.Base64; -import org.springframework.test.context.ContextConfiguration; -import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; -import org.springframework.test.web.server.MockMvc; -import org.springframework.test.web.server.MvcResult; -import org.springframework.test.web.server.ResultMatcher; -import org.springframework.test.web.server.setup.MockMvcBuilders; -import org.springframework.web.context.WebApplicationContext; - -import java.io.IOException; -import java.lang.reflect.Field; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; -import static org.springframework.test.web.server.request.MockMvcRequestBuilders.get; -import static org.springframework.test.web.server.request.MockMvcRequestBuilders.post; -import static org.springframework.test.web.server.result.MockMvcResultHandlers.print; - -@RunWith(SpringJUnit4ClassRunner.class) -@ContextConfiguration(loader = TestWebContextLoader.class, locations = { - "classpath:spring/applicationContext-opensrp-web.xml" }) -public abstract class BaseResourceTest { - - @Autowired - protected WebApplicationContext wac; - - protected MockMvc mockMvc; - - protected ObjectMapper mapper = new ObjectMapper(); - - @Before - public void setMockMvc() { - this.mockMvc = MockMvcBuilders.webApplicationContextSetup(this.wac).build(); - } - - protected JsonNode getCallAsJsonNode(String url, String parameter, ResultMatcher expectedStatus) throws Exception { - String finalUrl = url; - if (!parameter.isEmpty()) { - finalUrl = finalUrl + "?" + parameter; - } - - MvcResult mvcResult = this.mockMvc.perform(get(finalUrl).accept(MediaType.APPLICATION_JSON)).andDo(print()) - .andExpect(expectedStatus).andReturn(); - - String responseString = mvcResult.getResponse().getContentAsString(); - if (responseString.isEmpty()) { - return null; - } - JsonNode actualObj = mapper.readTree(responseString); - return actualObj; - } - - protected byte[] getCallAsByeArray(String url, String parameterQuery, ResultMatcher expectedStatus) throws Exception { - String finalUrl = url; - if (!parameterQuery.isEmpty()) { - finalUrl = finalUrl + "?" + parameterQuery; - } - - MvcResult mvcResult = this.mockMvc.perform(get(finalUrl).accept(MediaType.APPLICATION_JSON)) - .andExpect(expectedStatus).andReturn(); - - return mvcResult.getResponse().getContentAsByteArray(); - } - - protected JsonNode postCallWithJsonContent(String url, String data, ResultMatcher expectedStatus) throws Exception { - - MvcResult mvcResult = this.mockMvc.perform( - post(url).contentType(MediaType.APPLICATION_JSON).body(data.getBytes()).accept(MediaType.APPLICATION_JSON)) - .andDo(print()).andExpect(expectedStatus).andReturn(); - - String responseString = mvcResult.getResponse().getContentAsString(); - if (responseString.isEmpty()) { - return null; - } - JsonNode actualObj = mapper.readTree(responseString); - return actualObj; - } - - protected MvcResult postCallWithFormUrlEncode(String url, Map parameters, ResultMatcher expectedStatus) - throws Exception { - List paramList = new ArrayList<>(); - for (Map.Entry entry : parameters.entrySet()) { - paramList.add(new BasicNameValuePair(entry.getKey(), entry.getValue())); - } - - MvcResult mvcResult = this.mockMvc.perform(post(url).contentType(MediaType.APPLICATION_JSON) - .body(EntityUtils.toString(new UrlEncodedFormEntity(paramList)).getBytes()) - .accept(MediaType.APPLICATION_JSON)).andDo(print()).andExpect(expectedStatus).andReturn(); - - return mvcResult; - } - - protected JsonNode postCallWithBasicAuthorizationHeader(String url, String userName, String password, - ResultMatcher expectedStatus) throws Exception { - String basicAuthCredentials = new String(Base64.encode((userName + ":" + password).getBytes())); - System.out.println(basicAuthCredentials); - MvcResult mvcResult = this.mockMvc.perform( - post(url).contentType(MediaType.APPLICATION_JSON).header("Authorization", "Basic " + basicAuthCredentials) - .accept(MediaType.APPLICATION_JSON)).andDo(print()).andExpect(expectedStatus).andReturn(); - - String responseString = mvcResult.getResponse().getContentAsString(); - if (responseString.isEmpty()) { - return null; - } - JsonNode actualObj = mapper.readTree(responseString); - return actualObj; - } - - protected static void addObjectToRepository(List objectList, R repository) { - for (T object : objectList) { - repository.add(object); - } - } - - protected List createObjectListFromJson(JsonNode jsonList, Class classOfT) throws IOException { - final List objectList = new ArrayList<>(); - for (int i = 0; i < jsonList.size(); i++) { - T object = mapper.treeToValue(jsonList.get(i), classOfT); - objectList.add(object); - } - return objectList; - } - - protected void assertTwoListAreSameIgnoringOrder(List expectedList, List actualList) { - assertEquals(expectedList.size(), actualList.size()); - assertTrue("expected: " + expectedList.toString() + "\n" + "actual: " + actualList.toString(), - expectedList.containsAll(actualList) && actualList.containsAll(expectedList)); - } - - //TODO: bug in `assetClassHasAllRequiredFields` method. should check base class for property. - protected void assetClassHasAllRequiredFields(Class classOfT, List requiredProperties) { - Field[] allFields = classOfT.getDeclaredFields(); - List nameOfFieldsOfT = new ArrayList<>(); - for (Field field : allFields) { - if (!field.isSynthetic()) { - nameOfFieldsOfT.add(field.getName().trim().toLowerCase()); - } - } - - for (String requiredProperty : requiredProperties) { - assertTrue("'" + requiredProperty + "' not Found.", - nameOfFieldsOfT.contains(requiredProperty.trim().toLowerCase())); - } - } -} diff --git a/opensrp-web/src/test/java/org/opensrp/web/rest/it/ClientResourceTest.java b/opensrp-web/src/test/java/org/opensrp/web/rest/it/ClientResourceTest.java deleted file mode 100644 index 57825c5e38..0000000000 --- a/opensrp-web/src/test/java/org/opensrp/web/rest/it/ClientResourceTest.java +++ /dev/null @@ -1,449 +0,0 @@ -package org.opensrp.web.rest.it; - -import static java.util.Arrays.asList; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotSame; -import static org.junit.Assert.assertNull; -import static org.junit.Assert.assertTrue; -import static org.opensrp.common.AllConstants.BaseEntity.BASE_ENTITY_ID; -import static org.opensrp.common.AllConstants.Client.BIRTH_DATE; -import static org.opensrp.common.AllConstants.Client.FIRST_NAME; -import static org.opensrp.common.AllConstants.Client.GENDER; -import static org.springframework.test.web.server.result.MockMvcResultMatchers.status; - -import java.util.Collections; -import java.util.List; - -import org.codehaus.jackson.JsonNode; -import org.joda.time.DateTime; -import org.joda.time.DateTimeZone; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; -import org.opensrp.domain.Address; -import org.opensrp.domain.Client; -import org.opensrp.repository.couch.AllClients; -import org.opensrp.service.ClientService; -import org.opensrp.web.rest.ClientResource; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.util.NestedServletException; - -public class ClientResourceTest extends BaseResourceTest { - - private final static String BASE_URL = "/rest/client/"; - - @Autowired - private AllClients allClients; - - @Autowired - private ClientService clientService; - - @Autowired - private ClientResource clientResource; - - String addressType = "addressType"; - - String country = "country"; - - String stateProvince = "stateProvince"; - - String cityVillage = "cityVillage"; - - String countryDistrict = "countryDistrict"; - - String subDistrict = "subDistrict"; - - String town = "town"; - - String name = "name"; - - String male = "male"; - - DateTime birthDate = new DateTime(0l, DateTimeZone.UTC); - - DateTime deathDate = new DateTime(1l, DateTimeZone.UTC); - - Address address = new Address().withAddressType(addressType).withCountry(country).withStateProvince(stateProvince) - .withCityVillage(cityVillage).withCountyDistrict(countryDistrict).withSubDistrict(subDistrict).withTown(town); - - @Before - public void setUp() { - allClients.removeAll(); - } - - @After - public void tearDown() { - allClients.removeAll(); - } - - @Test - public void testRequiredProperties() { - List requiredProperties = clientResource.requiredProperties(); - assertTrue(requiredProperties.contains(FIRST_NAME)); - assertTrue(requiredProperties.contains(GENDER)); - assertTrue(requiredProperties.contains(BIRTH_DATE)); - assertTrue(requiredProperties.contains(BASE_ENTITY_ID)); - } - -/* @Test - public void testClientClassHasAllRequiredProperties() { - assetClassHasAllRequiredFields(Client.class, clientResource.requiredProperties()); - }*/ - - @Test - public void shouldFindClientById() throws Exception { - Client expectedClient = new Client("1").withFirstName("first").withGender("male") - .withBirthdate(new DateTime(0l, DateTimeZone.UTC), false); - addObjectToRepository(Collections.singletonList(expectedClient), allClients); - - JsonNode actualObj = getCallAsJsonNode(BASE_URL + "1", "", status().isOk()); - Client actualClient = mapper.treeToValue(actualObj, Client.class); - - assertEquals(expectedClient, actualClient); - - } - - @Test - public void shouldNotFindClient() throws Exception { - JsonNode response = getCallAsJsonNode(BASE_URL + "1", "", status().isOk()); - - assertNull(response); - } - - @Test - public void shouldCreateClientWithAllRequiredProperties() throws Exception { - Client expectedClient = new Client("1").withFirstName("first").withGender("male") - .withBirthdate(new DateTime(0l, DateTimeZone.UTC), false); - - postCallWithJsonContent(BASE_URL, mapper.writeValueAsString(expectedClient), status().isOk()); - - List allClientsInDb = allClients.getAll(); - Client actualClient = allClientsInDb.get(0); - actualClient.setDateCreated(null); //So We don't need to mock DateTimeUtil.now() - assertEquals(1, allClientsInDb.size()); - assertEquals(expectedClient, actualClient); - } - - @Test(expected = NestedServletException.class) - public void shouldNotCreateClientWithOutBaseEntityId() throws Exception { - Client expectedClient = new Client("1").withGender("male").withBirthdate(new DateTime(0l, DateTimeZone.UTC), false); - expectedClient.setBaseEntityId(null); - - postCallWithJsonContent(BASE_URL, mapper.writeValueAsString(expectedClient), status().isOk()); - - List allClientsInDb = allClients.getAll(); - assertEquals(0, allClientsInDb.size()); - } - - @Test(expected = NestedServletException.class) - public void shouldNotCreateClientWithOutFirstName() throws Exception { - Client expectedClient = new Client("1").withGender("male").withBirthdate(new DateTime(0l, DateTimeZone.UTC), false); - - postCallWithJsonContent(BASE_URL, mapper.writeValueAsString(expectedClient), status().isOk()); - - List allClientsInDb = allClients.getAll(); - assertEquals(0, allClientsInDb.size()); - } - - @Test(expected = NestedServletException.class) - public void shouldNotCreateClientWithOutGender() throws Exception { - Client expectedClient = new Client("1").withFirstName("first").withBirthdate(new DateTime(0l), false); - - postCallWithJsonContent(BASE_URL, mapper.writeValueAsString(expectedClient), status().isOk()); - - List allClientsInDb = allClients.getAll(); - assertEquals(0, allClientsInDb.size()); - - } - - @Test(expected = NestedServletException.class) - public void shouldNotCreateClientWithOutBirthDate() throws Exception { - Client expectedClient = new Client("1").withFirstName("first").withGender("male"); - - postCallWithJsonContent(BASE_URL, mapper.writeValueAsString(expectedClient), status().isOk()); - - List allClientsInDb = allClients.getAll(); - assertEquals(0, allClientsInDb.size()); - - } - - @Test - public void shouldUpdateExistingClient() throws Exception { - Client expectedClient = new Client("1").withFirstName("first").withGender("male") - .withBirthdate(new DateTime(0l, DateTimeZone.UTC), false); - addObjectToRepository(Collections.singletonList(expectedClient), allClients); - - expectedClient.setDeathdate(new DateTime(2l, DateTimeZone.UTC)); - - postCallWithJsonContent(BASE_URL + "1", mapper.writeValueAsString(expectedClient), status().isOk()); - - List allClientsInDb = allClients.getAll(); - Client actualClient = allClientsInDb.get(0); - actualClient.setDateEdited(null); //So We don't need to mock DateTimeUtil.now() - assertEquals(1, allClientsInDb.size()); - assertEquals(expectedClient, actualClient); - - } - - @Test(expected = NestedServletException.class) - public void shouldThrowExceptionWhileUpdateIfClientNotFound() throws Exception { - Client expectedClient = new Client("1").withFirstName("first").withGender("male") - .withBirthdate(new DateTime(0l, DateTimeZone.UTC), false); - expectedClient.setDeathdate(new DateTime(2l, DateTimeZone.UTC)); - - postCallWithJsonContent(BASE_URL + "1", mapper.writeValueAsString(expectedClient), status().isOk()); - - List allClientsInDb = allClients.getAll(); - assertEquals(0, allClientsInDb.size()); - - } - - @Test(expected = NestedServletException.class) - public void shouldThrowExceptionWhileUpdateIfFistNameNotPresent() throws Exception { - Client expectedNotUpdatedClient = new Client("1").withGender("male") - .withBirthdate(new DateTime(0l, DateTimeZone.UTC), false); - addObjectToRepository(Collections.singletonList(expectedNotUpdatedClient), allClients); - Client updatedClient = expectedNotUpdatedClient; - updatedClient.setDeathdate(new DateTime(2l, DateTimeZone.UTC)); - - postCallWithJsonContent(BASE_URL + "1", mapper.writeValueAsString(updatedClient), status().isOk()); - List allClientsInDb = allClients.getAll(); - Client actualClient = allClientsInDb.get(0); - - assertEquals(1, allClientsInDb.size()); - assertEquals(expectedNotUpdatedClient, actualClient); - assertNotSame(updatedClient, actualClient); - } - - @Test(expected = NestedServletException.class) - public void shouldThrowExceptionWhileUpdateIfGenderNotPresent() throws Exception { - Client expectedNotUpdatedClient = new Client("1").withFirstName("name") - .withBirthdate(new DateTime(0l, DateTimeZone.UTC), false); - addObjectToRepository(Collections.singletonList(expectedNotUpdatedClient), allClients); - Client updatedClient = expectedNotUpdatedClient; - updatedClient.setDeathdate(new DateTime(2l, DateTimeZone.UTC)); - - postCallWithJsonContent(BASE_URL + "1", mapper.writeValueAsString(updatedClient), status().isOk()); - List allClientsInDb = allClients.getAll(); - Client actualClient = allClientsInDb.get(0); - - assertEquals(1, allClientsInDb.size()); - assertEquals(expectedNotUpdatedClient, actualClient); - assertNotSame(updatedClient, actualClient); - } - - @Test(expected = NestedServletException.class) - public void shouldThrowExceptionWhileUpdateIfBirthDateNotPresent() throws Exception { - Client expectedNotUpdatedClient = new Client("1").withGender("male").withFirstName("name"); - addObjectToRepository(Collections.singletonList(expectedNotUpdatedClient), allClients); - Client updatedClient = expectedNotUpdatedClient; - updatedClient.setDeathdate(new DateTime(2l, DateTimeZone.UTC)); - - postCallWithJsonContent(BASE_URL + "1", mapper.writeValueAsString(updatedClient), status().isOk()); - List allClientsInDb = allClients.getAll(); - Client actualClient = allClientsInDb.get(0); - - assertEquals(1, allClientsInDb.size()); - assertEquals(expectedNotUpdatedClient, actualClient); - assertNotSame(updatedClient, actualClient); - } - - @Test(expected = NestedServletException.class) - public void shouldThrowExceptionWhileUpdateIfBaseEntityIdNotPresent() throws Exception { - Client expectedNotUpdatedClient = new Client("1").withFirstName("name").withGender("male") - .withBirthdate(new DateTime(0l, DateTimeZone.UTC), false); - expectedNotUpdatedClient.setBaseEntityId(null); - addObjectToRepository(Collections.singletonList(expectedNotUpdatedClient), allClients); - Client updatedClient = expectedNotUpdatedClient; - updatedClient.setDeathdate(new DateTime(2l, DateTimeZone.UTC)); - - postCallWithJsonContent(BASE_URL + "1", mapper.writeValueAsString(updatedClient), status().isOk()); - List allClientsInDb = allClients.getAll(); - Client actualClient = allClientsInDb.get(0); - - assertEquals(1, allClientsInDb.size()); - assertEquals(expectedNotUpdatedClient, actualClient); - assertNotSame(updatedClient, actualClient); - } - - @Test - public void shouldSearchClient() throws Exception { - Client expectedClient = (Client) new Client("1").withFirstName(name).withGender(male).withBirthdate(birthDate, false) - .withDeathdate(deathDate, true).withAddress(address); - expectedClient.setDateCreated(new DateTime(0l, DateTimeZone.UTC)); - - Client otherClient = new Client("2"); - Client otherClient2 = new Client("3"); - addObjectToRepository(asList(expectedClient, otherClient, otherClient2), allClients); - - String searchQuery = - "search?name=" + name + "&gender=" + male + "&addressType=" + addressType + "&birthDate=" + birthDate - .toLocalDate().toString() + "&deathDate=" + deathDate.toLocalDate().toString() + "&country=" - + country + "&stateProvince=" + stateProvince + "&countryDistrict=" + countryDistrict - + "&cityVillage=" + cityVillage + "&town=" + town + "&subDistrict=" + subDistrict; - JsonNode actualObj = getCallAsJsonNode(BASE_URL + searchQuery, "", status().isOk()); - Client actualClient = mapper.treeToValue(actualObj.get(0), Client.class); - - assertEquals(expectedClient, actualClient); - } - - @Test - public void shouldFailSearchClientWithInvalidQuery() throws Exception { - Client expectedClient = (Client) new Client("1").withFirstName(name).withGender(male).withBirthdate(birthDate, false) - .withDeathdate(deathDate, true).withAddress(address); - expectedClient.setDateCreated(new DateTime(0l, DateTimeZone.UTC)); - - Client otherClient = new Client("2"); - Client otherClient2 = new Client("3"); - addObjectToRepository(asList(expectedClient, otherClient, otherClient2), allClients); - - String searchQuery = - "search?name=invalid" + name + "&gender=invalid" + male + "&addressType=" + addressType + "&birthDate=" - + birthDate.toLocalDate().toString() + "&deathDate=" + deathDate.toLocalDate().toString() - + "&country=" + country + "&stateProvince=" + stateProvince + "&countryDistrict=" + countryDistrict - + "&cityVillage=" + cityVillage + "&town=" + town + "&subDistrict=" + subDistrict; - JsonNode actualObj = getCallAsJsonNode(BASE_URL + searchQuery, "", status().isOk()); - - assertTrue(actualObj.isArray()); - assertNull(actualObj.get(0)); - } - - @Test - public void shouldFailToSearchIfClientDoesntHaveDateCreateField() throws Exception { - Client expectedClient = (Client) new Client("1").withFirstName(name).withGender(male).withBirthdate(birthDate, false) - .withDeathdate(deathDate, true).withAddress(address); - - Client otherClient = new Client("2"); - Client otherClient2 = new Client("3"); - addObjectToRepository(asList(expectedClient, otherClient, otherClient2), allClients); - - String searchQuery = "search?name=" + name; - JsonNode actualObj = getCallAsJsonNode(BASE_URL + searchQuery, "", status().isOk()); - - assertTrue(actualObj.isArray()); - assertNull(actualObj.get(0)); - } - - @Test - public void shouldFailToSearchIfClientDoesntHaveBirthDate() throws Exception { - Client expectedClient = (Client) new Client("1").withFirstName(name).withGender(male).withDeathdate(deathDate, true) - .withAddress(address); - expectedClient.setDateCreated(new DateTime(0l, DateTimeZone.UTC)); - - Client otherClient = new Client("2"); - Client otherClient2 = new Client("3"); - addObjectToRepository(asList(expectedClient, otherClient, otherClient2), allClients); - - String searchQuery = "search?gender=" + male; - JsonNode actualObj = getCallAsJsonNode(BASE_URL + searchQuery, "", status().isOk()); - - assertTrue(actualObj.isArray()); - assertNull(actualObj.get(0)); - } - - @Test - public void shouldFailToSearchIfClientDoesntHaveAddressField() throws Exception { - Client expectedClient = (Client) new Client("1").withFirstName(name).withGender(male).withBirthdate(birthDate, false) - .withDeathdate(deathDate, true); - expectedClient.setDateCreated(new DateTime(0l, DateTimeZone.UTC)); - - Client otherClient = new Client("2"); - Client otherClient2 = new Client("3"); - addObjectToRepository(asList(expectedClient, otherClient, otherClient2), allClients); - - String searchQuery = "search?name=" + name; - JsonNode actualObj = getCallAsJsonNode(BASE_URL + searchQuery, "", status().isOk()); - - assertTrue(actualObj.isArray()); - assertNull(actualObj.get(0)); - } - - @Test - public void shouldFilterData() throws Exception { - Client expectedClient = (Client) new Client("1").withFirstName(name).withGender(male).withBirthdate(birthDate, false) - .withDeathdate(deathDate, true).withAddress(address); - expectedClient.setDateCreated(new DateTime(0l, DateTimeZone.UTC)); - - Client otherClient = new Client("2"); - Client otherClient2 = new Client("3"); - addObjectToRepository(asList(expectedClient, otherClient, otherClient2), allClients); - - String searchQuery = - "?q=name:" + name + "and gender:" + male + "and addressType:" + addressType + "and birthDate:" + birthDate - .toLocalDate().toString() + "and deathDate:" + deathDate.toLocalDate().toString() + "and country:" - + country + "and stateProvince:" + stateProvince + "and countryDistrict:" + countryDistrict - + "and cityVillage:" + cityVillage + "and town:" + town + "and subDistrict:" + subDistrict; - JsonNode actualObj = getCallAsJsonNode(BASE_URL + searchQuery, "", status().isOk()); - Client actualClient = mapper.treeToValue(actualObj.get(0), Client.class); - - assertEquals(expectedClient, actualClient); - } - - @Test - public void shouldFailToFilterClientWithInvalidQuery() throws Exception { - Client expectedClient = (Client) new Client("1").withFirstName(name).withGender(male).withBirthdate(birthDate, false) - .withDeathdate(deathDate, true).withAddress(address); - expectedClient.setDateCreated(new DateTime(0l, DateTimeZone.UTC)); - - Client otherClient = new Client("2"); - Client otherClient2 = new Client("3"); - addObjectToRepository(asList(expectedClient, otherClient, otherClient2), allClients); - - String searchQuery = "?q=firstName:invalid" + name + "and gender:invalid" + male; - JsonNode actualObj = getCallAsJsonNode(BASE_URL + searchQuery, "", status().isOk()); - - assertTrue(actualObj.isArray()); - assertNull(actualObj.get(0)); - } - - @Test - public void shouldFailToFailIfClientDoesntHaveDateCreateField() throws Exception { - Client expectedClient = (Client) new Client("1").withFirstName(name).withGender(male).withBirthdate(birthDate, false) - .withDeathdate(deathDate, true).withAddress(address); - - Client otherClient = new Client("2"); - Client otherClient2 = new Client("3"); - addObjectToRepository(asList(expectedClient, otherClient, otherClient2), allClients); - - String searchQuery = "?q=name:" + name; - JsonNode actualObj = getCallAsJsonNode(BASE_URL + searchQuery, "", status().isOk()); - - assertTrue(actualObj.isArray()); - assertNull(actualObj.get(0)); - } - - @Test - public void shouldFailToFilterIfClientDoesntHaveBirthDate() throws Exception { - Client expectedClient = (Client) new Client("1").withFirstName(name).withGender(male).withDeathdate(deathDate, true) - .withAddress(address); - expectedClient.setDateCreated(new DateTime(0l, DateTimeZone.UTC)); - - Client otherClient = new Client("2"); - Client otherClient2 = new Client("3"); - addObjectToRepository(asList(expectedClient, otherClient, otherClient2), allClients); - - String searchQuery = "?q=gender:" + male; - JsonNode actualObj = getCallAsJsonNode(BASE_URL + searchQuery, "", status().isOk()); - - assertTrue(actualObj.isArray()); - assertNull(actualObj.get(0)); - } - - @Test - public void shouldFailToFilterIfClientDoesntHaveAddressField() throws Exception { - Client expectedClient = (Client) new Client("1").withFirstName(name).withGender(male).withBirthdate(birthDate, false) - .withDeathdate(deathDate, true); - expectedClient.setDateCreated(new DateTime(0l, DateTimeZone.UTC)); - - Client otherClient = new Client("2"); - Client otherClient2 = new Client("3"); - addObjectToRepository(asList(expectedClient, otherClient, otherClient2), allClients); - - String searchQuery = "?q=name:" + name; - JsonNode actualObj = getCallAsJsonNode(BASE_URL + searchQuery, "", status().isOk()); - - assertTrue(actualObj.isArray()); - assertNull(actualObj.get(0)); - } - -} diff --git a/opensrp-web/src/test/java/org/opensrp/web/rest/it/EventResourceTest.java b/opensrp-web/src/test/java/org/opensrp/web/rest/it/EventResourceTest.java deleted file mode 100644 index a428c5ea9d..0000000000 --- a/opensrp-web/src/test/java/org/opensrp/web/rest/it/EventResourceTest.java +++ /dev/null @@ -1,505 +0,0 @@ -package org.opensrp.web.rest.it; - -import static java.util.Arrays.asList; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotSame; -import static org.junit.Assert.assertNull; -import static org.junit.Assert.assertTrue; -import static org.opensrp.common.AllConstants.BaseEntity.BASE_ENTITY_ID; -import static org.opensrp.common.AllConstants.Event.EVENT_TYPE; -import static org.opensrp.common.AllConstants.Event.PROVIDER_ID; -import static org.springframework.test.web.server.result.MockMvcResultMatchers.status; - -import java.util.ArrayList; -import java.util.Collections; -import java.util.List; - -import org.codehaus.jackson.JsonNode; -import org.joda.time.DateTime; -import org.joda.time.DateTimeZone; -import org.junit.After; -import org.junit.Before; -import org.junit.Ignore; -import org.junit.Test; -import org.opensrp.domain.Address; -import org.opensrp.domain.Client; -import org.opensrp.domain.Event; -import org.opensrp.repository.couch.AllClients; -import org.opensrp.repository.couch.AllEvents; -import org.opensrp.web.rest.EventResource; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.test.web.server.setup.MockMvcBuilders; -import org.springframework.web.util.NestedServletException; - -public class EventResourceTest extends BaseResourceTest { - - String baseEntityId = "1"; - - String eventType = "eventType"; - - DateTime eventDate = new DateTime(0l, DateTimeZone.UTC); - - String entityType = "entityType"; - - String providerId = "providerId"; - - String locationId = "locationId"; - - String formSubmissionId = "formSubmissionId"; - - String addressType = "addressType"; - - String country = "country"; - - String stateProvince = "stateProvince"; - - String cityVillage = "cityVillage"; - - String countryDistrict = "countryDistrict"; - - String subDistrict = "subDistrict"; - - String town = "town"; - - private final static String BASE_URL = "/rest/event/"; - - @Autowired - private AllEvents allEvents; - - @Autowired - private AllClients allClients; - - @Autowired - private EventResource eventResource; - - @Before - public void setUp() { - allEvents.removeAll(); - allClients.removeAll(); - } - - @After - public void tearDown() { - allEvents.removeAll(); - allClients.removeAll(); - } - - @Test - public void testRequiredProperties() { - List requiredProperties = eventResource.requiredProperties(); - assertTrue(requiredProperties.contains(PROVIDER_ID)); - assertTrue(requiredProperties.contains(EVENT_TYPE)); - assertTrue(requiredProperties.contains(BASE_ENTITY_ID)); - } - - @Test - @Ignore //TODO: bug in `assetClassHasAllRequiredFields` method. should check base class for property. - public void eventClassShouldHaveAllRequiredProperties() { - assetClassHasAllRequiredFields(Event.class, eventResource.requiredProperties()); - } - - @Test - public void shouldFindEventById() throws Exception { - Event expectedEvent = new Event("1", "eventType", new DateTime(0l, DateTimeZone.UTC), "entityType", "providerId", - "locationId", "formSubmissionId"); - expectedEvent.addIdentifier("key", "value"); - createEvent(Collections.singletonList(expectedEvent)); - - JsonNode actualObj = getCallAsJsonNode(BASE_URL + "value", "", status().isOk()); - Event actualEvent = mapper.treeToValue(actualObj, Event.class); - - assertEquals(expectedEvent, actualEvent); - - } - - @Test - public void shouldNotFindEvent() throws Exception { - this.mockMvc = MockMvcBuilders.webApplicationContextSetup(this.wac).build(); - - JsonNode actualObj = getCallAsJsonNode(BASE_URL + "value", "", status().isOk()); - - assertNull(actualObj); - } - - @Test - public void shouldCreateEventWithAllRequiredProperties() throws Exception { - Event expectedEvent = new Event("1", "eventType", new DateTime(0l, DateTimeZone.UTC), "entityType", "providerId", - "locationId", "formSubmissionId"); - expectedEvent.addIdentifier("key", "value"); - - postCallWithJsonContent(BASE_URL, mapper.writeValueAsString(expectedEvent), status().isOk()); - List allEventsInDB = allEvents.getAll(); - Event actualEvent = allEventsInDB.get(0); - actualEvent.setDateCreated(null); //So We don't need to mock DateTimeUtil.now() - - assertEquals(1, allEventsInDB.size()); - assertEquals(expectedEvent, actualEvent); - } - - @Test(expected = NestedServletException.class) - public void shouldNotCreateEventWithOutProviderId() throws Exception { - Event expectedEvent = new Event("1", "eventType", new DateTime(0l, DateTimeZone.UTC), "entityType", "providerId", - "locationId", "formSubmissionId"); - expectedEvent.addIdentifier("key", "value"); - expectedEvent.setProviderId(null); - - postCallWithJsonContent(BASE_URL, mapper.writeValueAsString(expectedEvent), status().isOk()); - - List allEventsInDb = allEvents.getAll(); - assertEquals(0, allEventsInDb.size()); - } - - @Test(expected = NestedServletException.class) - public void shouldNotCreateEventWithOutEventType() throws Exception { - Event expectedEvent = new Event("1", "eventType", new DateTime(0l, DateTimeZone.UTC), "entityType", "providerId", - "locationId", "formSubmissionId"); - expectedEvent.addIdentifier("key", "value"); - expectedEvent.setEventType(null); - - postCallWithJsonContent(BASE_URL, mapper.writeValueAsString(expectedEvent), status().isOk()); - - List allEventsInDb = allEvents.getAll(); - assertEquals(0, allEventsInDb.size()); - } - - @Test(expected = NestedServletException.class) - public void shouldNotCreateEventWithOutBaseEntityId() throws Exception { - Event expectedEvent = new Event("1", "eventType", new DateTime(0l, DateTimeZone.UTC), "entityType", "providerId", - "locationId", "formSubmissionId"); - expectedEvent.addIdentifier("key", "value"); - expectedEvent.setBaseEntityId(null); - - postCallWithJsonContent(BASE_URL, mapper.writeValueAsString(expectedEvent), status().isOk()); - - List allEventsInDb = allEvents.getAll(); - assertEquals(0, allEventsInDb.size()); - } - - @Test - public void shouldUpdateExistingClient() throws Exception { - Event expectedEvent = new Event("1", "eventType", new DateTime(0l, DateTimeZone.UTC), "entityType", "providerId", - "locationId", "formSubmissionId"); - expectedEvent.addIdentifier("key", "value"); - createEvent(Collections.singletonList(expectedEvent)); - expectedEvent.addDetails("detail", "value"); - - postCallWithJsonContent(BASE_URL + "value", mapper.writeValueAsString(expectedEvent), status().isOk()); - - List allEventsInDb = allEvents.getAll(); - Event actualEvent = allEventsInDb.get(0); - actualEvent.setDateEdited(null); //So We don't need to mock DateTimeUtil.now() - assertEquals(1, allEventsInDb.size()); - assertEquals(expectedEvent, actualEvent); - } - - @Test(expected = NestedServletException.class) - public void shouldThrowExceptionWhileUpdateIfClientNotFound() throws Exception { - Event expectedEvent = new Event("1", "eventType", new DateTime(0l, DateTimeZone.UTC), "entityType", "providerId", - "locationId", "formSubmissionId"); - expectedEvent.addDetails("detail", "value"); - - postCallWithJsonContent(BASE_URL + "1", mapper.writeValueAsString(expectedEvent), status().isOk()); - - List allEventsInDb = allEvents.getAll(); - assertEquals(0, allEventsInDb.size()); - - } - - @Test(expected = NestedServletException.class) - public void shouldThrowExceptionWhileUpdateIfBaseEntityIdNotPresent() throws Exception { - Event expectedEvent = new Event("1", "eventType", new DateTime(0l, DateTimeZone.UTC), "entityType", "providerId", - "locationId", "formSubmissionId"); - expectedEvent.addIdentifier("key", "value"); - expectedEvent.setBaseEntityId(null); - createEvent(Collections.singletonList(expectedEvent)); - Event updatedEvent = expectedEvent; - updatedEvent.addDetails("key", "value"); - - postCallWithJsonContent(BASE_URL + "value", mapper.writeValueAsString(expectedEvent), status().isOk()); - - List allEventsInDb = allEvents.getAll(); - Event actualEvent = allEventsInDb.get(0); - assertEquals(1, allEventsInDb.size()); - assertEquals(expectedEvent, actualEvent); - assertNotSame(updatedEvent, actualEvent); - } - - @Test(expected = NestedServletException.class) - public void shouldThrowExceptionWhileUpdateIfEventTypeNotPresent() throws Exception { - Event expectedEvent = new Event("1", "eventType", new DateTime(0l, DateTimeZone.UTC), "entityType", "providerId", - "locationId", "formSubmissionId"); - expectedEvent.addIdentifier("key", "value"); - expectedEvent.setEventType(null); - createEvent(Collections.singletonList(expectedEvent)); - Event updatedEvent = expectedEvent; - updatedEvent.addDetails("key", "value"); - - postCallWithJsonContent(BASE_URL + "value", mapper.writeValueAsString(expectedEvent), status().isOk()); - - List allEventsInDb = allEvents.getAll(); - Event actualEvent = allEventsInDb.get(0); - assertEquals(1, allEventsInDb.size()); - assertEquals(expectedEvent, actualEvent); - assertNotSame(updatedEvent, actualEvent); - } - - @Test(expected = NestedServletException.class) - public void shouldThrowExceptionWhileUpdateIfProviderIdNotPresent() throws Exception { - Event expectedEvent = new Event("1", "eventType", new DateTime(0l, DateTimeZone.UTC), "entityType", "providerId", - "locationId", "formSubmissionId"); - expectedEvent.addIdentifier("key", "value"); - expectedEvent.setProviderId(null); - createEvent(Collections.singletonList(expectedEvent)); - Event updatedEvent = expectedEvent; - updatedEvent.addDetails("key", "value"); - - postCallWithJsonContent(BASE_URL + "value", mapper.writeValueAsString(expectedEvent), status().isOk()); - - List allEventsInDb = allEvents.getAll(); - Event actualEvent = allEventsInDb.get(0); - assertEquals(1, allEventsInDb.size()); - assertEquals(expectedEvent, actualEvent); - assertNotSame(updatedEvent, actualEvent); - } - - @Test - public void shouldSearchEventWithValidQuery() throws Exception { - Event expectedEvent = new Event(baseEntityId, eventType, eventDate, entityType, providerId, locationId, - formSubmissionId); - expectedEvent.addIdentifier("key", "value"); - DateTime dateEdited = new DateTime(3l, DateTimeZone.UTC); - expectedEvent.setDateCreated(dateEdited); - - Event otherEvent = new Event("2", eventType, eventDate, entityType, providerId, locationId, formSubmissionId); - otherEvent.setDateCreated(dateEdited); - Event otherEvent2 = new Event("3", eventType, eventDate, entityType, providerId, locationId, formSubmissionId); - otherEvent2.setDateCreated(dateEdited); - createEvent(asList(expectedEvent, otherEvent, otherEvent2)); - createClient(); - - String searchQuery = "search?identifier=1&" + "eventType=" + eventType + "&locationId=" + locationId + "&providerId=" - + providerId; - JsonNode actualObj = getCallAsJsonNode(BASE_URL + searchQuery, "", status().isOk()); - - Event actualEvent = mapper.treeToValue(actualObj.get(0), Event.class); - assertEquals(1, actualObj.size()); - assertEquals(expectedEvent, actualEvent); - } - - @Test - public void shouldFailToSearchIfEventDoesntHaveAssociatedClient() throws Exception { - Event expectedEvent = new Event(baseEntityId, eventType, eventDate, entityType, providerId, locationId, - formSubmissionId); - expectedEvent.addIdentifier("key", "value"); - DateTime dateEdited = new DateTime(3l, DateTimeZone.UTC); - expectedEvent.setDateEdited(dateEdited); - Event otherEvent = new Event("2", eventType, eventDate, entityType, providerId, locationId, formSubmissionId); - Event otherEvent2 = new Event("3", eventType, eventDate, entityType, providerId, locationId, formSubmissionId); - createEvent(asList(expectedEvent, otherEvent, otherEvent2)); - - String searchQuery = - "search?identifier= invalid" + "eventType=" + eventType + "&locationId=" + locationId + "&providerId=" - + providerId; - JsonNode actualObj = getCallAsJsonNode(BASE_URL + searchQuery, "", status().isOk()); - assertTrue(actualObj.isArray()); - assertEquals(0, actualObj.size()); - } - - @Test - public void shouldFailToSearchIfEventDoesntHaveDateCreatedField() throws Exception { - Event expectedEvent = new Event(baseEntityId, eventType, eventDate, entityType, providerId, locationId, - formSubmissionId); - expectedEvent.addIdentifier("key", "value"); - DateTime dateEdited = new DateTime(3l, DateTimeZone.UTC); - - Event otherEvent = new Event("2", eventType, eventDate, entityType, providerId, locationId, formSubmissionId); - otherEvent.setDateCreated(dateEdited); - Event otherEvent2 = new Event("3", eventType, eventDate, entityType, providerId, locationId, formSubmissionId); - otherEvent2.setDateCreated(dateEdited); - createEvent(asList(expectedEvent, otherEvent, otherEvent2)); - createClient(); - - String searchQuery = "search?identifier=1&" + "eventType=" + eventType + "&locationId=" + locationId + "&providerId=" - + providerId; - - JsonNode actualObj = getCallAsJsonNode(BASE_URL + searchQuery, "", status().isOk()); - assertTrue(actualObj.isArray()); - assertEquals(0, actualObj.size()); - } - - @Test - public void shouldFilterData() throws Exception { - Event expectedEvent = new Event(baseEntityId, eventType, eventDate, entityType, providerId, locationId, - formSubmissionId); - expectedEvent.addIdentifier("key", "value"); - DateTime dateEdited = new DateTime(3l, DateTimeZone.UTC); - expectedEvent.setDateCreated(dateEdited); - - Event otherEvent = new Event("2", eventType, eventDate, entityType, providerId, locationId, formSubmissionId); - otherEvent.setDateCreated(dateEdited); - Event otherEvent2 = new Event("3", eventType, eventDate, entityType, providerId, locationId, formSubmissionId); - otherEvent2.setDateCreated(dateEdited); - List expectedEvents = asList(expectedEvent, otherEvent, otherEvent2); - createEvent(expectedEvents); - - String searchQuery = - "?q=" + "eventType:" + eventType + " and locationId:" + locationId + " and providerId:" + providerId; - JsonNode actualObj = getCallAsJsonNode(BASE_URL + searchQuery, "", status().isOk()); - List actualEventList = new ArrayList<>(); - for (int i = 0; i < actualObj.size(); i++) { - Event actualEvent = mapper.treeToValue(actualObj.get(i), Event.class); - actualEventList.add(actualEvent); - } - - assertTwoListAreSameIgnoringOrder(expectedEvents, actualEventList); - } - - @Test(expected = NestedServletException.class) - public void shouldFailToFilterDataWithoutDateCreatedField() throws Exception { - Event expectedEvent = new Event(baseEntityId, eventType, eventDate, entityType, providerId, locationId, - formSubmissionId); - expectedEvent.addIdentifier("key", "value"); - Event otherEvent = new Event("2", "e", eventDate, entityType, providerId, locationId, formSubmissionId); - otherEvent.setDateCreated(eventDate); - Event otherEvent2 = new Event("3", eventType, eventDate, entityType, providerId, locationId, formSubmissionId); - createEvent(asList(expectedEvent, otherEvent, otherEvent2)); - - String searchQuery = - "?q=" + "eventType:" + eventType + " and locationId:" + locationId + " and providerId:" + providerId; - - getCallAsJsonNode(BASE_URL + searchQuery, "", status().isOk()); - } - - @Test - public void shouldReturnAllEvents() throws Exception { - Event expectedEvent = new Event(baseEntityId, eventType, eventDate, entityType, providerId, locationId, - formSubmissionId); - expectedEvent.addIdentifier("key", "value"); - DateTime dateEdited = new DateTime(3l, DateTimeZone.UTC); - expectedEvent.setDateEdited(dateEdited); - Event otherEvent = new Event("2", eventType, eventDate, entityType, providerId, locationId, formSubmissionId); - Event otherEvent2 = new Event("3", eventType, eventDate, entityType, providerId, locationId, formSubmissionId); - List expectedEvents = asList(expectedEvent, otherEvent, otherEvent2); - createEvent(expectedEvents); - - JsonNode actualObj = getCallAsJsonNode(BASE_URL + "getall", "", status().isOk()); - - List actualEventList = new ArrayList<>(); - for (int i = 0; i < actualObj.size(); i++) { - Event actualEvent = mapper.treeToValue(actualObj.get(i), Event.class); - actualEvent.setDateCreated(null); - actualEventList.add(actualEvent); - } - - assertTwoListAreSameIgnoringOrder(expectedEvents, actualEventList); - } - - @Test - public void shouldSyncEventAndRelatedClient() throws Exception { - - List expectedClient = createClient(); - List expectedEvent = createEventsForSyncTest(); - - String syncQuery = "sync?serverVersion=0&providerId=providerId"; - JsonNode actualObj = getCallAsJsonNode(BASE_URL + syncQuery, "", status().isOk()); - - JsonNode eventObj = actualObj.get("events"); - JsonNode clientObj = actualObj.get("clients"); - int eventSize = actualObj.get("no_of_events").asInt(); - List actualEventList = new ArrayList<>(); - for (int i = 0; i < eventObj.size(); i++) { - Event actualEvent = mapper.treeToValue(eventObj.get(i), Event.class); - actualEventList.add(actualEvent); - } - - List actualClientList = new ArrayList<>(); - for (int i = 0; i < clientObj.size(); i++) { - Client actualClient = mapper.treeToValue(clientObj.get(i), Client.class); - actualClientList.add(actualClient); - } - - assertEquals(4, eventSize); - assertTwoListAreSameIgnoringOrder(expectedClient, actualClientList); - assertTwoListAreSameIgnoringOrder(expectedEvent, actualEventList); - } - - @Test - public void shouldAddClientAndEventFromSyncData() throws Exception { - String synData = - "{\"events\":[{\"identifiers\":{\"key\":\"value\"},\"baseEntityId\":\"1\",\"locationId\":\"locationId\",\"eventDate\":\"1970-01-01T00:00:00.000Z\",\"eventType\":\"eventType\",\"formSubmissionId\":\"formSubmissionId\",\"providerId\":\"providerId\",\"duration\":0,\"obs\":[],\"entityType\":\"entityType\",\"version\":1502179200127,\"dateCreated\":\"1970-01-01T00:00:00.003Z\",\"type\":\"Event\",\"id\":\"14bda0b96952ad4347732585037e1d58\"}," - + "{\"identifiers\":{},\"baseEntityId\":\"2\",\"locationId\":\"locationId\",\"eventDate\":\"1970-01-01T00:00:00.000Z\",\"eventType\":\"eventType\",\"formSubmissionId\":\"formSubmissionId\",\"providerId\":\"providerId\",\"duration\":0,\"obs\":[],\"entityType\":\"entityType\",\"version\":1502179200127,\"dateCreated\":\"1970-01-01T00:00:00.003Z\",\"type\":\"Event\",\"id\":\"14bda0b96952ad4347732585037e1ee8\"}," - + "{\"identifiers\":{},\"baseEntityId\":\"3\",\"locationId\":\"locationId\",\"eventDate\":\"1970-01-01T00:00:00.000Z\",\"eventType\":\"eventType\",\"formSubmissionId\":\"formSubmissionId\",\"providerId\":\"providerId\",\"duration\":0,\"obs\":[],\"entityType\":\"entityType\",\"version\":1502179200127,\"dateCreated\":\"1970-01-01T00:00:00.003Z\",\"type\":\"Event\",\"id\":\"14bda0b96952ad4347732585037e22d3\"}," - + "{\"identifiers\":{},\"baseEntityId\":\"1\",\"locationId\":\"locationId\",\"eventDate\":\"1970-01-01T00:00:00.000Z\",\"eventType\":\"eventType\",\"formSubmissionId\":\"formSubmissionId\",\"providerId\":\"providerId\",\"duration\":0,\"obs\":[],\"entityType\":\"entityType\",\"version\":1502179200127,\"dateCreated\":\"1970-01-01T00:00:00.003Z\",\"type\":\"Event\",\"id\":\"14bda0b96952ad4347732585037e233e\"}]," - + "\"no_of_events\":4," - + "\"clients\":[{\"firstName\":\"name\",\"birthdate\":\"1970-01-01T00:00:00.000Z\",\"birthdateApprox\":false,\"gender\":\"male\",\"baseEntityId\":\"1\",\"identifiers\":{},\"addresses\":[{\"addressType\":\"addressType\",\"town\":\"town\",\"subDistrict\":\"subDistrict\",\"countyDistrict\":\"countryDistrict\",\"cityVillage\":\"cityVillage\",\"stateProvince\":\"stateProvince\",\"country\":\"country\"}],\"attributes\":{},\"dateCreated\":\"1970-01-01T00:00:00.000Z\",\"type\":\"Client\",\"id\":\"14bda0b96952ad4347732585037dff66\"}," - + "{\"firstName\":\"name\",\"birthdate\":\"1970-01-01T00:00:00.000Z\",\"birthdateApprox\":false,\"gender\":\"male\",\"baseEntityId\":\"2\",\"identifiers\":{},\"addresses\":[{\"addressType\":\"addressType\",\"town\":\"town\",\"subDistrict\":\"subDistrict\",\"countyDistrict\":\"countryDistrict\",\"cityVillage\":\"cityVillage\",\"stateProvince\":\"stateProvince\",\"country\":\"country\"}],\"attributes\":{},\"dateCreated\":\"1970-01-01T00:00:00.000Z\",\"type\":\"Client\",\"id\":\"14bda0b96952ad4347732585037e0c85\"}," - + "{\"firstName\":\"name\",\"birthdate\":\"1970-01-01T00:00:00.000Z\",\"birthdateApprox\":false,\"gender\":\"male\",\"baseEntityId\":\"3\",\"identifiers\":{},\"addresses\":[{\"addressType\":\"addressType\",\"town\":\"town\",\"subDistrict\":\"subDistrict\",\"countyDistrict\":\"countryDistrict\",\"cityVillage\":\"cityVillage\",\"stateProvince\":\"stateProvince\",\"country\":\"country\"}],\"attributes\":{},\"dateCreated\":\"1970-01-01T00:00:00.000Z\",\"type\":\"Client\",\"id\":\"14bda0b96952ad4347732585037e1519\"}]}"; - assertEquals(0, allEvents.getAll().size()); - assertEquals(0, allClients.getAll().size()); - - postCallWithJsonContent(BASE_URL + "add", synData, status().isCreated()); - - assertEquals(4, allEvents.getAll().size()); - assertEquals(3, allClients.getAll().size()); - } - - @Test - public void shouldThrowErrorIfSyncDataDoesntHaveClientAndEvent() throws Exception { - String synData = "{\"no_of_events\":0}"; - assertEquals(0, allEvents.getAll().size()); - assertEquals(0, allClients.getAll().size()); - - postCallWithJsonContent(BASE_URL + "add", synData, status().isBadRequest()); - - assertEquals(0, allEvents.getAll().size()); - assertEquals(0, allClients.getAll().size()); - } - - private List createEventsForSyncTest() { - Event expectedEvent = new Event(baseEntityId, eventType, eventDate, entityType, providerId, locationId, - formSubmissionId); - expectedEvent.addIdentifier("key", "value"); - DateTime dateEdited = new DateTime(3l, DateTimeZone.UTC); - expectedEvent.setDateCreated(dateEdited); - - Event oE = new Event("1", eventType, eventDate, entityType, providerId, locationId, formSubmissionId); - oE.setDateCreated(dateEdited); - Event otherEvent = new Event("2", eventType, eventDate, entityType, providerId, locationId, formSubmissionId); - otherEvent.setDateCreated(dateEdited); - Event otherEvent2 = new Event("3", eventType, eventDate, entityType, providerId, locationId, formSubmissionId); - otherEvent2.setDateCreated(dateEdited); - - createEvent(asList(expectedEvent, otherEvent, otherEvent2, oE)); - return asList(expectedEvent, otherEvent, otherEvent2, oE); - } - - private List createClient() { - Address address = new Address().withAddressType(addressType).withCountry(country).withStateProvince(stateProvince) - .withCityVillage(cityVillage).withCountyDistrict(countryDistrict).withSubDistrict(subDistrict) - .withTown(town); - - Client expectedClient = (Client) new Client("1").withFirstName("name").withGender("male") - .withBirthdate(new DateTime(0l, DateTimeZone.UTC), false).withAddress(address); - expectedClient.setDateCreated(new DateTime(0l, DateTimeZone.UTC)); - - Client otherClient = (Client) new Client("2").withFirstName("name").withGender("male") - .withBirthdate(new DateTime(0l, DateTimeZone.UTC), false).withAddress(address); - otherClient.setDateCreated(new DateTime(0l, DateTimeZone.UTC)); - Client otherClient2 = (Client) new Client("3").withFirstName("name").withGender("male") - .withBirthdate(new DateTime(0l, DateTimeZone.UTC), false).withAddress(address); - otherClient2.setDateCreated(new DateTime(0l, DateTimeZone.UTC)); - - createClient(asList(expectedClient, otherClient, otherClient2)); - return asList(expectedClient, otherClient, otherClient2); - - } - - private void createEvent(List events) { - addObjectToRepository(events, allEvents); - } - - private void createClient(List allClient) { - addObjectToRepository(allClient, allClients); - } - -} diff --git a/opensrp-web/src/test/java/org/opensrp/web/rest/it/FormSubmissionResourceTest.java b/opensrp-web/src/test/java/org/opensrp/web/rest/it/FormSubmissionResourceTest.java deleted file mode 100644 index ba1e327a2d..0000000000 --- a/opensrp-web/src/test/java/org/opensrp/web/rest/it/FormSubmissionResourceTest.java +++ /dev/null @@ -1,143 +0,0 @@ -package org.opensrp.web.rest.it; - -import org.codehaus.jackson.JsonNode; -import org.codehaus.jackson.map.ObjectMapper; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.opensrp.domain.Event; -import org.opensrp.form.domain.FormInstance; -import org.opensrp.form.domain.FormSubmission; -import org.opensrp.form.repository.AllFormSubmissions; -import org.opensrp.web.rest.FormSubmissionResource; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.MediaType; -import org.springframework.test.context.ContextConfiguration; -import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; -import org.springframework.test.web.server.MockMvc; -import org.springframework.test.web.server.MvcResult; -import org.springframework.test.web.server.setup.MockMvcBuilders; -import org.springframework.web.context.WebApplicationContext; -import org.springframework.web.util.NestedServletException; - -import java.util.Collections; -import java.util.List; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; -import static org.opensrp.common.AllConstants.BaseEntity.BASE_ENTITY_ID; -import static org.opensrp.common.AllConstants.Event.EVENT_TYPE; -import static org.opensrp.common.AllConstants.Event.PROVIDER_ID; -import static org.springframework.test.web.server.request.MockMvcRequestBuilders.get; -import static org.springframework.test.web.server.request.MockMvcRequestBuilders.post; -import static org.springframework.test.web.server.result.MockMvcResultHandlers.print; -import static org.springframework.test.web.server.result.MockMvcResultMatchers.status; - -public class FormSubmissionResourceTest extends BaseResourceTest { - - public static final String ANM_ID = "anmId"; - - public static final String INTANCE_ID = "intanceId"; - - public static final String FORM_NAME = "formName"; - - public static final String ENTITY_ID = "eintityId"; - - public static final int CLIENT_VERSION = 122; - - public static final String FORM_DATA_DEFINITION_VERSION = "formDataDefinitionVersion"; - - public static final int SERVER_VERSION = 233; - - public static final String BASE_URL = "/rest/formSubmission/"; - - @Autowired - private AllFormSubmissions allFormSubmissions; - - @Autowired - private FormSubmissionResource formSubmissionResource; - - @Before - public void setUp() { - allFormSubmissions.removeAll(); - } - - @After - public void tearDown() { - allFormSubmissions.removeAll(); - } - - @Test - public void testRequiredField() { - List requiredProperties = formSubmissionResource.requiredProperties(); - assertTrue(requiredProperties.contains(PROVIDER_ID)); - assertTrue(requiredProperties.contains(EVENT_TYPE)); - assertTrue(requiredProperties.contains(BASE_ENTITY_ID)); - } - - @Test(expected = NestedServletException.class) - public void shouldThrowExceptionWhileCreating() throws Exception { - FormSubmission formSubmission = new FormSubmission(ANM_ID, INTANCE_ID, FORM_NAME, ENTITY_ID, CLIENT_VERSION, - FORM_DATA_DEFINITION_VERSION, new FormInstance(), SERVER_VERSION); - - postCallWithJsonContent(BASE_URL, mapper.writeValueAsString(formSubmission), status().isOk()); - } - - @Test(expected = NestedServletException.class) - public void shouldThrowExceptionWhileUpdating() throws Exception { - FormSubmission formSubmission = new FormSubmission(ANM_ID, INTANCE_ID, FORM_NAME, ENTITY_ID, CLIENT_VERSION, - FORM_DATA_DEFINITION_VERSION, new FormInstance(), SERVER_VERSION); - addObjectToRepository(Collections.singletonList(formSubmission), allFormSubmissions); - - postCallWithJsonContent(BASE_URL + INTANCE_ID, mapper.writeValueAsString(formSubmission), status().isOk()); - } - - @Test(expected = NestedServletException.class) - public void shouldThrowExceptionWhileFilter() throws Exception { - FormSubmission formSubmission = new FormSubmission(ANM_ID, INTANCE_ID, FORM_NAME, ENTITY_ID, CLIENT_VERSION, - FORM_DATA_DEFINITION_VERSION, new FormInstance(), SERVER_VERSION); - addObjectToRepository(Collections.singletonList(formSubmission), allFormSubmissions); - - postCallWithJsonContent(BASE_URL + "?q=instanceId:" + INTANCE_ID, mapper.writeValueAsString(formSubmission), - status().isOk()); - } - - @Test - public void shouldFindByInstanceId() throws Exception { - FormSubmission expectedFormSubmission = new FormSubmission(ANM_ID, INTANCE_ID, FORM_NAME, ENTITY_ID, CLIENT_VERSION, - FORM_DATA_DEFINITION_VERSION, new FormInstance(), SERVER_VERSION); - addObjectToRepository(Collections.singletonList(expectedFormSubmission), allFormSubmissions); - - JsonNode actualObj = getCallAsJsonNode(BASE_URL + INTANCE_ID, "", status().isOk()); - FormSubmission actualFormSubmission = mapper.treeToValue(actualObj, FormSubmission.class); - - assertEquals(expectedFormSubmission, actualFormSubmission); - } - - @Test - public void shouldSearchFormSubmission() throws Exception { - FormSubmission expectedFormSubmission = new FormSubmission(ANM_ID, INTANCE_ID, FORM_NAME, ENTITY_ID, CLIENT_VERSION, - FORM_DATA_DEFINITION_VERSION, new FormInstance(), SERVER_VERSION); - addObjectToRepository(Collections.singletonList(expectedFormSubmission), allFormSubmissions); - - String searchQuery = "search?formName=" + FORM_NAME + "&version=" + (SERVER_VERSION - 1); - JsonNode actualObj = getCallAsJsonNode(BASE_URL + searchQuery, "", status().isOk()); - FormSubmission actualFormSubmission = mapper.treeToValue(actualObj.get(0), FormSubmission.class); - - assertEquals(expectedFormSubmission, actualFormSubmission); - } - - @Test - public void shouldSearchFormSubmissionWithoutVersion() throws Exception { - FormSubmission expectedFormSubmission = new FormSubmission(ANM_ID, INTANCE_ID, FORM_NAME, ENTITY_ID, CLIENT_VERSION, - FORM_DATA_DEFINITION_VERSION, new FormInstance(), SERVER_VERSION); - addObjectToRepository(Collections.singletonList(expectedFormSubmission), allFormSubmissions); - - String searchQuery = "search?formName=" + FORM_NAME; - JsonNode actualObj = getCallAsJsonNode(BASE_URL + searchQuery, "", status().isOk()); - FormSubmission actualFormSubmission = mapper.treeToValue(actualObj.get(0), FormSubmission.class); - - assertEquals(expectedFormSubmission, actualFormSubmission); - } -} diff --git a/opensrp-web/src/test/java/org/opensrp/web/rest/it/ProviderResourceTest.java b/opensrp-web/src/test/java/org/opensrp/web/rest/it/ProviderResourceTest.java deleted file mode 100644 index 0a1d820e97..0000000000 --- a/opensrp-web/src/test/java/org/opensrp/web/rest/it/ProviderResourceTest.java +++ /dev/null @@ -1,82 +0,0 @@ -package org.opensrp.web.rest.it; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; -import static org.springframework.test.web.server.result.MockMvcResultMatchers.status; - -import java.util.Map; - -import org.codehaus.jackson.JsonNode; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; -import org.opensrp.domain.User; -import org.opensrp.repository.couch.AllUsers; -import org.springframework.beans.factory.annotation.Autowired; - -public class ProviderResourceTest extends BaseResourceTest { - - private final static String BASE_URL = "/rest/provider/"; - - private final static String AUTHENTICATE_URL = "authenticate/"; - - public static final String SALT = "salt"; - - public static final String PASSWORD = "password"; - - public static final String USER_NAME = "userName"; - - public static final String BASE_ENTITY_ID = "1"; - - @Autowired - AllUsers allUsers; - - @Before - public void setUp() { - User user = new User(BASE_ENTITY_ID, USER_NAME, PASSWORD, SALT); - allUsers.add(user); - } - - @After - public void cleanUp() { - allUsers.removeAll(); - } - - @Test - public void shouldReturnErrorMessageWithOutTeamIdAndUserName() throws Exception { - String query = "?p=" + PASSWORD; - String urlWithQuery = BASE_URL + AUTHENTICATE_URL + query; - - JsonNode actualObj = getCallAsJsonNode(urlWithQuery, "", status().isOk()); - Map response = mapper.treeToValue(actualObj, Map.class); - - assertTrue(response.containsKey("ERROR")); - assertEquals("Username and Password not provided.", response.get("ERROR")); - } - - @Test - public void shouldReturnErrorMessageWithOutTeamIdAndPassword() throws Exception { - String query = "?u=" + PASSWORD; - String urlWithQuery = BASE_URL + AUTHENTICATE_URL + query; - - JsonNode actualObj = getCallAsJsonNode(urlWithQuery, "", status().isOk()); - Map response = mapper.treeToValue(actualObj, Map.class); - - assertTrue(response.containsKey("ERROR")); - assertEquals("Username and Password not provided.", response.get("ERROR")); - } - - @Test - public void shouldReturnEmptyMessageWithOutOpenmrsAuthentication() throws Exception { - String query = "?u=" + USER_NAME + "&p=" + PASSWORD; - String urlWithQuery = BASE_URL + AUTHENTICATE_URL + query; - - JsonNode actualObj = getCallAsJsonNode(urlWithQuery, "", status().isOk()); - Map response = mapper.treeToValue(actualObj, Map.class); - - assertTrue(response.containsKey("ERROR")); - assertEquals("Authentication failed with given credentials", response.get("ERROR")); - } - - //TODO: Write rest of the tests after openmrs intigration. -} diff --git a/opensrp-web/src/test/java/org/opensrp/web/rest/it/ReportResourceTest.java b/opensrp-web/src/test/java/org/opensrp/web/rest/it/ReportResourceTest.java deleted file mode 100644 index b748c7c537..0000000000 --- a/opensrp-web/src/test/java/org/opensrp/web/rest/it/ReportResourceTest.java +++ /dev/null @@ -1,71 +0,0 @@ -package org.opensrp.web.rest.it; - -import static java.util.Arrays.asList; -import static org.junit.Assert.assertEquals; -import static org.springframework.test.web.server.result.MockMvcResultMatchers.status; - -import java.util.List; - -import org.junit.After; -import org.junit.Before; -import org.junit.Test; -import org.opensrp.domain.Hia2Indicator; -import org.opensrp.domain.Report; -import org.opensrp.repository.couch.AllReports; -import org.springframework.beans.factory.annotation.Autowired; - -public class ReportResourceTest extends BaseResourceTest { - - public static final String ADD_URL = "add"; - - public static final int DURATION = 200; - - public String BASE_URL = "/rest/report/"; - - @Autowired - public AllReports allReports; - - @Before - public void setUp() { - allReports.removeAll(); - } - - @After - public void cleanUp() { - allReports.removeAll(); - } - - //TODO: Upgrade `jackson` to serialize joda datetime. Currently using null datetime. - @Test - public void shouldCreateReportFromSyncData() throws Exception { - Hia2Indicator hia2Indicator = new Hia2Indicator("indicatorCode", "label", "dhisId", "description", "category", - "value", "providerId", "updatedAt"); - Report expectedReport = new Report("22", "locationId", null, "reportType", "formSubmissionId", "providerId", - "status", 300l, 200, asList(hia2Indicator)); - - String syncData = "{\"reports\" : [" + mapper.writeValueAsString(expectedReport) + "]}"; - postCallWithJsonContent(BASE_URL + ADD_URL, syncData, status().isCreated()); - - List actualReports = allReports.getAll(); - Report actualReport = actualReports.get(0); - - assertEquals(1, actualReports.size()); - assertEquals(expectedReport, actualReport); - - } - - @Test - public void shouldReturnBadRequestIfSyncDataDoesntHaveReport() throws Exception { - String emptySyncData = "{}"; - - postCallWithJsonContent(BASE_URL + ADD_URL, emptySyncData, status().isBadRequest()); - } - - @Test - public void shouldThrowErrorIfReportJsonCanotBeParsed() throws Exception { - String invalidSyncData = "{\"reports\" : \"dsf\"}"; - - postCallWithJsonContent(BASE_URL + ADD_URL, invalidSyncData, status().isInternalServerError()); - } - -} diff --git a/opensrp-web/src/test/java/org/opensrp/web/rest/it/ResourceTestUtility.java b/opensrp-web/src/test/java/org/opensrp/web/rest/it/ResourceTestUtility.java deleted file mode 100644 index b6e64a2431..0000000000 --- a/opensrp-web/src/test/java/org/opensrp/web/rest/it/ResourceTestUtility.java +++ /dev/null @@ -1,43 +0,0 @@ -package org.opensrp.web.rest.it; - -import java.util.List; - -import org.opensrp.domain.Client; -import org.opensrp.domain.ErrorTrace; -import org.opensrp.repository.couch.AllClients; -import org.opensrp.repository.couch.AllErrorTrace; -import org.opensrp.scheduler.Action; -import org.opensrp.scheduler.Alert; -import org.opensrp.scheduler.repository.couch.AllActions; -import org.opensrp.scheduler.repository.couch.AllAlerts; - -public final class ResourceTestUtility { - - private ResourceTestUtility() { - } - - public static void createClients(List allClient, AllClients allClients) { - for (Client client : allClient) { - allClients.add(client); - } - } - - public static void createActions(List actions, AllActions allActions) { - for (Action action : actions) { - allActions.add(action); - } - } - - public static void createAlerts(List alerts, AllAlerts allAlerts) { - for (Alert alert : alerts) { - allAlerts.add(alert); - } - } - - public static void createErrorTraces(List errorTraces, AllErrorTrace allErrorTrace) { - for (ErrorTrace errorTrace : errorTraces) { - allErrorTrace.add(errorTrace); - } - } - -} diff --git a/opensrp-web/src/test/java/org/opensrp/web/rest/it/SearchResourceTest.java b/opensrp-web/src/test/java/org/opensrp/web/rest/it/SearchResourceTest.java deleted file mode 100644 index d173f5c19f..0000000000 --- a/opensrp-web/src/test/java/org/opensrp/web/rest/it/SearchResourceTest.java +++ /dev/null @@ -1,196 +0,0 @@ -package org.opensrp.web.rest.it; - -import static java.util.Arrays.asList; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNull; -import static org.springframework.test.web.server.result.MockMvcResultMatchers.status; - -import org.codehaus.jackson.JsonNode; -import org.joda.time.DateTime; -import org.joda.time.DateTimeZone; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; -import org.opensrp.domain.Address; -import org.opensrp.domain.Client; -import org.opensrp.repository.couch.AllClients; -import org.opensrp.repository.couch.AllEvents; -import org.opensrp.web.rest.SearchResource; -import org.springframework.beans.factory.annotation.Autowired; - -public class SearchResourceTest extends BaseResourceTest { - - private final static String BASE_URL = "/rest/search/"; - - public static final DateTime DATE_CREATED = new DateTime(0l, DateTimeZone.UTC); - - public static final String MIDDLE_NAME = "middlename"; - - public static final String LAST_NAME = "lastName"; - - public static final String IDENTIFIER_TYPE = "type"; - - public static final String IDENTIFIER = "value"; - - public static final String ATTRIBUTES_NAME = "name"; - - public static final String ATTRIBUTES_VALUE = "value"; - - public static final String FEMALE = "female"; - - @Autowired - private SearchResource searchResource; - - @Autowired - private AllClients allClients; - - @Autowired - private AllEvents allEvents; - - String addressType = "addressType"; - - String country = "country"; - - String stateProvince = "stateProvince"; - - String cityVillage = "cityVillage"; - - String countryDistrict = "countryDistrict"; - - String subDistrict = "subDistrict"; - - String town = "town"; - - String firstName = "name"; - - String male = "male"; - - DateTime birthDate = new DateTime(0l, DateTimeZone.UTC); - - DateTime deathDate = new DateTime(1l, DateTimeZone.UTC); - - Address address = new Address().withAddressType(addressType).withCountry(country).withStateProvince(stateProvince) - .withCityVillage(cityVillage).withCountyDistrict(countryDistrict).withSubDistrict(subDistrict).withTown(town); - - @Before - public void setUp() { - allClients.removeAll(); - allEvents.removeAll(); - } - - @After - public void cleanUp() { - allEvents.removeAll(); - allClients.removeAll(); - } - - @Test - public void shouldSearchClientWithFirstName() throws Exception { - Client expectedClient = createOneSearchableClient(); - - String searchQuery = "firstName=" + firstName; - JsonNode actualObj = searchClient(searchQuery); - Client actualClient = mapper.treeToValue(actualObj.get(0), Client.class); - - assertEquals(expectedClient, actualClient); - - } - - @Test - public void shouldSearchClientWithMiddleName() throws Exception { - Client expectedClient = createOneSearchableClient(); - - String searchQuery = "middleName=" + MIDDLE_NAME; - JsonNode actualObj = searchClient(searchQuery); - Client actualClient = mapper.treeToValue(actualObj.get(0), Client.class); - - assertEquals(expectedClient, actualClient); - } - - @Test - public void canNotSearchIfAnyNamePortionHasCamelCaseLetter() throws Exception { - Client expectedClient = createOneSearchableClient(); - - String searchQuery = "lastName=" + LAST_NAME; - JsonNode actualObj = searchClient(searchQuery); - - assertNull(actualObj.get(0)); - } - - @Test - public void shouldSearchClientWithGender() throws Exception { - Client expectedClient = createOneSearchableClient(); - - String searchQuery = "gender=" + male; - JsonNode actualObj = searchClient(searchQuery); - Client actualClient = mapper.treeToValue(actualObj.get(0), Client.class); - - assertEquals(expectedClient, actualClient); - } - - @Test - public void shouldSearchClientWithBirthDate() throws Exception { - Client expectedClient = createOneSearchableClient(); - - String searchQuery = "birthdate=" + birthDate.toLocalDate().toString() + ":" + birthDate.toLocalDate().toString(); - JsonNode actualObj = searchClient(searchQuery); - Client actualClient = mapper.treeToValue(actualObj.get(0), Client.class); - - assertEquals(expectedClient, actualClient); - } - - @Test - public void shouldSearchClientWithLastEdited() throws Exception { - Client expectedClient = createOneSearchableClient(); - - String searchQuery = - "lastEdited=" + DATE_CREATED.toLocalDate().toString() + ":" + DATE_CREATED.toLocalDate().toString(); - JsonNode actualObj = searchClient(searchQuery); - Client actualClient = mapper.treeToValue(actualObj.get(0), Client.class); - - assertEquals(expectedClient, actualClient); - } - - @Test - public void shouldSearchClientWithAttribute() throws Exception { - Client expectedClient = createOneSearchableClient(); - - String searchQuery = "attribute=" + ATTRIBUTES_NAME + ":" + ATTRIBUTES_VALUE; - JsonNode actualObj = searchClient(searchQuery); - Client actualClient = mapper.treeToValue(actualObj.get(0), Client.class); - - assertEquals(expectedClient, actualClient); - } - - private JsonNode searchClient(String query) throws Exception { - String searchQuery = "search?" + query; - - return getCallAsJsonNode(BASE_URL + searchQuery, "", status().isOk()); - } - - private Client createOneSearchableClient() { - Client expectedClient = (Client) new Client("1").withFirstName(firstName).withMiddleName(MIDDLE_NAME) - .withLastName(LAST_NAME).withGender(male).withBirthdate(birthDate, false).withDeathdate(deathDate, true) - .withAddress(address); - expectedClient.setDateCreated(DATE_CREATED); - expectedClient.withIdentifier(IDENTIFIER_TYPE, IDENTIFIER); - expectedClient.withAttribute(ATTRIBUTES_NAME, ATTRIBUTES_VALUE); - - Client otherClient = (Client) new Client("2").withFirstName("ff").withMiddleName("fd").withLastName("sfdf") - .withGender(FEMALE).withBirthdate(birthDate, false).withDeathdate(deathDate, true).withAddress(address); - otherClient.setDateCreated(DATE_CREATED); - otherClient.withIdentifier("fsdf", "sfdf"); - otherClient.withAttribute("sfdf", "sfdf"); - Client otherClient2 = (Client) new Client("3").withFirstName("dd").withMiddleName("fdf").withLastName("sfd") - .withGender(FEMALE).withBirthdate(birthDate, false).withDeathdate(deathDate, true).withAddress(address); - ; - otherClient2.setDateCreated(DATE_CREATED); - otherClient2.withIdentifier("hg", "ghgh"); - otherClient2.withAttribute("hg", "hgh"); - - addObjectToRepository(asList(expectedClient, otherClient, otherClient2), allClients); - - return expectedClient; - } - -} diff --git a/opensrp-web/src/test/java/org/opensrp/web/rest/it/StockResourceTest.java b/opensrp-web/src/test/java/org/opensrp/web/rest/it/StockResourceTest.java deleted file mode 100644 index 3581e7d5cb..0000000000 --- a/opensrp-web/src/test/java/org/opensrp/web/rest/it/StockResourceTest.java +++ /dev/null @@ -1,216 +0,0 @@ -package org.opensrp.web.rest.it; - -import static ch.lambdaj.collection.LambdaCollections.with; -import static java.util.Arrays.asList; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNull; -import static org.junit.Assert.assertTrue; -import static org.opensrp.common.AllConstants.Stock.PROVIDERID; -import static org.opensrp.common.AllConstants.Stock.TIMESTAMP; -import static org.springframework.test.web.server.result.MockMvcResultMatchers.status; - -import java.util.Collections; -import java.util.List; - -import org.codehaus.jackson.JsonNode; -import org.joda.time.DateTime; -import org.joda.time.DateTimeZone; -import org.junit.After; -import org.junit.Before; -import org.junit.Ignore; -import org.junit.Test; -import org.opensrp.domain.Stock; -import org.opensrp.repository.couch.AllStocks; -import org.opensrp.web.rest.StockResource; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.util.NestedServletException; - -import ch.lambdaj.function.convert.Converter; - -/** - * TODO: Solve bug at source {@link StockResource} and refactor like {@link EventResourceTest} - */ -public class StockResourceTest extends BaseResourceTest { - - private static final String BASE_URL = "/rest/stockresource"; - - @Autowired - private AllStocks allStocks; - - @Autowired - private StockResource stockResource; - - @Before - public void setUp() { - allStocks.removeAll(); - } - - @After - public void cleanUp() { - allStocks.removeAll(); - } - - @Test - public void testRequiredProperties() { - List actualRequiredProperties = stockResource.requiredProperties(); - - assertEquals(2, actualRequiredProperties.size()); - assertTrue(actualRequiredProperties.contains(PROVIDERID)); - assertTrue(actualRequiredProperties.contains(TIMESTAMP)); - } - - //TODO: `Stock.class` does't contain `timestamp` field. - @Test - @Ignore - public void testStockClassHasAllTheRequiredField() { - assetClassHasAllRequiredFields(Stock.class, stockResource.requiredProperties()); - } - - //TODO: Error in `couchdb` query. - @Test - @Ignore - public void shouldFindByProviderId() throws Exception { - Stock expectedStock = new Stock(200l, "vaccineTypeId", "transactionType", "providerId", 3, - new DateTime(0l, DateTimeZone.UTC).getMillis(), "toFrom", new DateTime(0l, DateTimeZone.UTC).getMillis(), - 223l); - addObjectToRepository(Collections.singletonList(expectedStock), allStocks); - - JsonNode responseJson = getCallAsJsonNode(BASE_URL + "/provider", "", status().isOk()); - Stock actualStock = mapper.treeToValue(responseJson, Stock.class); - - assertEquals(expectedStock, actualStock); - } - - @Test - public void shouldNotFindStock() throws Exception { - Stock expectedStock = new Stock(200l, "vaccineTypeId", "transactionType", "providerId", 3, - new DateTime(0l, DateTimeZone.UTC).getMillis(), "toFrom", new DateTime(0l, DateTimeZone.UTC).getMillis(), - 223l); - addObjectToRepository(Collections.singletonList(expectedStock), allStocks); - - JsonNode responseJson = getCallAsJsonNode(BASE_URL + "/invalidProviderId", "", status().isOk()); - assertNull(responseJson); - } - - @Test - public void shouldGetAllStocks() throws Exception { - String url = BASE_URL + "/getall"; - Stock expectedStock1 = new Stock(200l, "vaccineTypeId", "transactionType", "providerId", 3, - new DateTime(0l, DateTimeZone.UTC).getMillis(), "toFrom", new DateTime(0l, DateTimeZone.UTC).getMillis(), - 223l); - Stock expectedStock2 = new Stock(300l, "vaccineTypeId", "transactionType", "providerId1", 3, - new DateTime(10l, DateTimeZone.UTC).getMillis(), "toFrom", new DateTime(10l, DateTimeZone.UTC).getMillis(), - 223l); - Stock expectedStock3 = new Stock(400l, "vaccineTypeId", "transactionType", "providerId2", 3, - new DateTime(100l, DateTimeZone.UTC).getMillis(), "toFrom", new DateTime(100l, DateTimeZone.UTC).getMillis(), - 223l); - List expectedStocks = asList(expectedStock1, expectedStock2, expectedStock3); - - addObjectToRepository(expectedStocks, allStocks); - JsonNode responseJson = getCallAsJsonNode(url, "", status().isOk()); - - final List actualStocks = createObjectListFromJson(responseJson.get("stocks"), Stock.class); - - assertTwoListAreSameIgnoringOrder(expectedStocks, actualStocks); - } - - //TODO: There is bug in production code. in `StockService.java` method `addStock()`. - @Test - @Ignore - public void shouldCreateValidStock() throws Exception { - Stock expectedStock = new Stock(200l, "vaccineTypeId", "transactionType", "providerId", 3, - new DateTime(0l, DateTimeZone.UTC).getMillis(), "toFrom", new DateTime(0l, DateTimeZone.UTC).getMillis(), - 223l); - String postData = mapper.writeValueAsString(expectedStock); - - postCallWithJsonContent(BASE_URL + "/", postData, status().isOk()); - Stock actualStock = allStocks.getAll().get(0); - - assertEquals(expectedStock, actualStock); - } - - @Test(expected = NestedServletException.class) - public void shouldFailCreateStockWithOutProviderId() throws Exception { - Stock expectedStock = new Stock(200l, "vaccineTypeId", "transactionType", "providerId", 3, - new DateTime(0l, DateTimeZone.UTC).getMillis(), "toFrom", new DateTime(0l, DateTimeZone.UTC).getMillis(), - 223l); - expectedStock.setProviderid(null); - String postData = mapper.writeValueAsString(expectedStock); - - postCallWithJsonContent(BASE_URL + "/", postData, status().isOk()); - } - - //TODO: `Stock.class` doesn't have a field call `timestamp` - /*@Test(expected = NestedServletException.class) - public void shouldFailCreateStockWithOutTimestamp() throws Exception{ - Stock expectedStock = new Stock(200l, "vaccineTypeId", "transactionType", "providerId", 3, - new DateTime(0l, DateTimeZone.UTC).getMillis(), "toFrom", new DateTime(0l, DateTimeZone.UTC).getMillis(), - 223l); - expectedStock.setProviderid(null); - String postData = mapper.writeValueAsString(expectedStock); - - postCallWithJsonContent(BASE_URL + "/", postData, status().isOk()); - }*/ - - @Test - public void shouldCreateValidStockUsingAddUrl() throws Exception { - Stock expectedStock1 = new Stock(200l, "vaccineTypeId", "transactionType", "providerId", 3, - new DateTime(0l, DateTimeZone.UTC).getMillis(), "toFrom", new DateTime(0l, DateTimeZone.UTC).getMillis(), - 223l); - Stock expectedStock2 = new Stock(300l, "vaccineTypeId", "transactionType", "providerId1", 3, - new DateTime(10l, DateTimeZone.UTC).getMillis(), "toFrom", new DateTime(10l, DateTimeZone.UTC).getMillis(), - 223l); - Stock expectedStock3 = new Stock(400l, "vaccineTypeId", "transactionType", "providerId2", 3, - new DateTime(100l, DateTimeZone.UTC).getMillis(), "toFrom", new DateTime(100l, DateTimeZone.UTC).getMillis(), - 223l); - List expectedStocks = asList(expectedStock1, expectedStock2, expectedStock3); - String postData = "{\"stocks\":" + mapper.writeValueAsString(expectedStocks) + "}"; - - postCallWithJsonContent(BASE_URL + "/add", postData, status().isCreated()); - - List actualStocks = with(allStocks.getAll()).convert(new Converter() { - - @Override - public Stock convert(Stock stock) { - stock.setDateCreated(null); - return stock; - } - }); - - assertTwoListAreSameIgnoringOrder(expectedStocks, actualStocks); - } - - @Test - @Ignore - public void shouldUpdateExistingStockUsingAddUrl() throws Exception { - Stock expectedStock = new Stock(200l, "vaccineTypeId", "transactionType", "providerId", 3, - new DateTime(0l, DateTimeZone.UTC).getMillis(), "toFrom", new DateTime(0l, DateTimeZone.UTC).getMillis(), - 223l); - Stock unchangedStock = new Stock(300l, "vaccineTypeId", "transactionType", "providerId1", 3, - new DateTime(10l, DateTimeZone.UTC).getMillis(), "toFrom", new DateTime(10l, DateTimeZone.UTC).getMillis(), - 223l); - Stock unchangedStock2 = new Stock(400l, "vaccineTypeId", "transactionType", "providerId2", 3, - new DateTime(100l, DateTimeZone.UTC).getMillis(), "toFrom", new DateTime(100l, DateTimeZone.UTC).getMillis(), - 223l); - List stocks = asList(expectedStock, unchangedStock, unchangedStock2); - addObjectToRepository(stocks, allStocks); - //expectedStock = allStocks.f - expectedStock.setProviderid("updatedProviderId"); - List expectedStocks = asList(expectedStock, unchangedStock, unchangedStock2); - String postData = "{\"stocks\":" + mapper.writeValueAsString(Collections.singletonList(expectedStock)) + "}"; - - postCallWithJsonContent(BASE_URL + "/add", postData, status().isCreated()); - - List actualStocks = with(allStocks.getAll()).convert(new Converter() { - - @Override - public Stock convert(Stock stock) { - stock.setDateCreated(null); - return stock; - } - }); - - assertTwoListAreSameIgnoringOrder(expectedStocks, actualStocks); - } - -} diff --git a/opensrp-web/src/test/java/org/opensrp/web/rest/it/TestWebContextLoader.java b/opensrp-web/src/test/java/org/opensrp/web/rest/it/TestWebContextLoader.java deleted file mode 100644 index 190840323a..0000000000 --- a/opensrp-web/src/test/java/org/opensrp/web/rest/it/TestWebContextLoader.java +++ /dev/null @@ -1,68 +0,0 @@ -package org.opensrp.web.rest.it; - -import org.springframework.beans.factory.xml.XmlBeanDefinitionReader; -import org.springframework.context.ApplicationContext; -import org.springframework.context.annotation.AnnotatedBeanDefinitionReader; -import org.springframework.context.annotation.AnnotationConfigUtils; -import org.springframework.core.io.FileSystemResourceLoader; -import org.springframework.core.io.ResourceLoader; -import org.springframework.mock.web.MockRequestDispatcher; -import org.springframework.mock.web.MockServletContext; -import org.springframework.test.context.MergedContextConfiguration; -import org.springframework.test.context.support.AbstractContextLoader; -import org.springframework.web.context.WebApplicationContext; -import org.springframework.web.context.support.GenericWebApplicationContext; - -import javax.servlet.RequestDispatcher; - -public class TestWebContextLoader extends AbstractContextLoader { - - protected final MockServletContext servletContext; - - public TestWebContextLoader() { - this.servletContext = initServletContext("src/main/resources", new FileSystemResourceLoader()); - } - - private MockServletContext initServletContext(String warRootDir, ResourceLoader resourceLoader) { - return new MockServletContext(warRootDir, resourceLoader) { - - public RequestDispatcher getNamedDispatcher(String path) { - return (path.equals("default")) ? new MockRequestDispatcher(path) : super.getNamedDispatcher(path); - } - }; - } - - public ApplicationContext loadContext(MergedContextConfiguration mergedConfig) throws Exception { - GenericWebApplicationContext context = new GenericWebApplicationContext(); - context.getEnvironment().setActiveProfiles(mergedConfig.getActiveProfiles()); - prepareContext(context); - loadBeanDefinitions(context, mergedConfig); - return context; - } - - public ApplicationContext loadContext(String... locations) throws Exception { - throw new UnsupportedOperationException(); - } - - protected void prepareContext(GenericWebApplicationContext context) { - this.servletContext.setAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE, context); - context.setServletContext(this.servletContext); - } - - protected void loadBeanDefinitions(GenericWebApplicationContext context, String[] locations) { - new XmlBeanDefinitionReader(context).loadBeanDefinitions(locations); - AnnotationConfigUtils.registerAnnotationConfigProcessors(context); - context.refresh(); - context.registerShutdownHook(); - } - - protected void loadBeanDefinitions(GenericWebApplicationContext context, MergedContextConfiguration mergedConfig) { - new AnnotatedBeanDefinitionReader(context).register(mergedConfig.getClasses()); - loadBeanDefinitions(context, mergedConfig.getLocations()); - } - - @Override - protected String getResourceSuffix() { - return "-context.xml"; - } -} diff --git a/opensrp-web/src/test/java/org/opensrp/web/security/DrishtiAuthenticationProviderTest.java b/opensrp-web/src/test/java/org/opensrp/web/security/DrishtiAuthenticationProviderTest.java deleted file mode 100644 index d7a05d450e..0000000000 --- a/opensrp-web/src/test/java/org/opensrp/web/security/DrishtiAuthenticationProviderTest.java +++ /dev/null @@ -1,76 +0,0 @@ -package org.opensrp.web.security; - -import org.junit.Rule; -import org.junit.rules.ExpectedException; -import org.mockito.Mock; -import org.springframework.security.authentication.encoding.ShaPasswordEncoder; - -public class DrishtiAuthenticationProviderTest { - @Mock - private ShaPasswordEncoder passwordEncoder; - @Rule - public ExpectedException exception = ExpectedException.none(); - - //private DrishtiAuthenticationProvider authenticationProvider; - - /*@Before - public void setUp() throws Exception { - initMocks(this); - authenticationProvider = new DrishtiAuthenticationProvider(allOpenSRPUsers, passwordEncoder); - } - - @Test - public void shouldAuthenticateValidUser() throws Exception { - when(allOpenSRPUsers.findByUsername("user 1")).thenReturn(new DrishtiUser("user 1", "hashed password 1", "salt", asList("ROLE_USER", "ROLE_ADMIN"), true)); - when(passwordEncoder.encodePassword("password 1", "salt")).thenReturn("hashed password 1"); - - Authentication authentication = authenticationProvider.authenticate(new UsernamePasswordAuthenticationToken("user 1", "password 1")); - - assertEquals(new UsernamePasswordAuthenticationToken("user 1", "password 1", asList(new SimpleGrantedAuthority("ROLE_USER"), new SimpleGrantedAuthority("ROLE_ADMIN"))), authentication); - } - - @Test - public void shouldNotAuthenticateUserWithWrongUsername() throws Exception { - when(allOpenSRPUsers.findByUsername("user 1")).thenReturn(null); - exception.expect(BadCredentialsException.class); - exception.expectMessage("The username or password you entered is incorrect. Please enter the correct credentials."); - - authenticationProvider.authenticate(new UsernamePasswordAuthenticationToken("user 1", "password 1")); - } - - @Test - public void shouldNotAuthenticateUserWithWrongPassword() throws Exception { - when(allOpenSRPUsers.findByUsername("user 1")).thenReturn(new DrishtiUser("user 1", "correct password", "salt", asList("ROLE_USER"), true)); - exception.expect(BadCredentialsException.class); - exception.expectMessage("The username or password you entered is incorrect. Please enter the correct credentials."); - - authenticationProvider.authenticate(new UsernamePasswordAuthenticationToken("user 1", "wrong password")); - } - - @Test - public void shouldNotAuthenticateInactiveUser() throws Exception { - when(allOpenSRPUsers.findByUsername("user 1")).thenReturn(new DrishtiUser("user 1", "hashed password 1", "salt", asList("ROLE_USER"), false)); - when(passwordEncoder.encodePassword("password 1", "salt")).thenReturn("hashed password 1"); - exception.expect(BadCredentialsException.class); - exception.expectMessage("The user has been registered but not activated. Please contact your local administrator."); - - authenticationProvider.authenticate(new UsernamePasswordAuthenticationToken("user 1", "password 1")); - } - - @Test - public void shouldFetchDrishtiUserByUsername() throws Exception { - authenticationProvider.getDrishtiUser("user 1"); - - verify(allOpenSRPUsers).findByUsername("user 1"); - }*/ - - /*@Test - @Ignore - public void toGenerateUserPasswordsAndSalt() throws Exception { - String username = "username"; - String password = "password"; - UUID salt = randomUUID(); - String hashedPassword = new ShaPasswordEncoder().encodePassword(password, salt); - System.out.println(new Gson().toJson(new DrishtiUser(username, hashedPassword, salt.toString(), asList("ROLE_USER"), true))); - }*/ -} diff --git a/opensrp-web/src/test/java/org/opensrp/web/utils/OpenmrsHttpUtil.java b/opensrp-web/src/test/java/org/opensrp/web/utils/OpenmrsHttpUtil.java deleted file mode 100644 index eb0e275fee..0000000000 --- a/opensrp-web/src/test/java/org/opensrp/web/utils/OpenmrsHttpUtil.java +++ /dev/null @@ -1,8 +0,0 @@ -package org.opensrp.web.utils; - -/** - * Created by user on 8/22/17. - */ -public class OpenmrsHttpUtil { - -} diff --git a/opensrp-web/src/test/java/org/opensrp/web/utils/PdfUtilTest.java b/opensrp-web/src/test/java/org/opensrp/web/utils/PdfUtilTest.java deleted file mode 100644 index 03432b283b..0000000000 --- a/opensrp-web/src/test/java/org/opensrp/web/utils/PdfUtilTest.java +++ /dev/null @@ -1,20 +0,0 @@ -package org.opensrp.web.utils; - -import org.junit.Test; - -import java.io.*; - -import static java.util.Arrays.asList; - -public class PdfUtilTest { - - @Test - public void test() throws IOException { - ByteArrayOutputStream pdf = PdfUtil.generatePdf(asList("data", "dataaaa", "ddddddddddddddddddddd"), 10,10, 2, 8); - System.out.println(pdf.size()); - /*FileOutputStream fileOutputStream = new FileOutputStream( File.separator + "samplePdf"); - fileOutputStream.write(pdf.toByteArray()); - fileOutputStream.close();*/ - } - -} diff --git a/opensrp-web/src/test/java/org/opensrp/web/utils/RestUtilsTest.java b/opensrp-web/src/test/java/org/opensrp/web/utils/RestUtilsTest.java deleted file mode 100644 index 8750c7393a..0000000000 --- a/opensrp-web/src/test/java/org/opensrp/web/utils/RestUtilsTest.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.opensrp.web.utils; - -import java.text.ParseException; - -import org.junit.Test; -import org.opensrp.common.AllConstants.BaseEntity; -import org.opensrp.common.AllConstants.Client; -import org.opensrp.web.rest.RestUtils; -import org.springframework.mock.web.MockHttpServletRequest; - -public class RestUtilsTest { - @Test - public void test() throws ParseException { - MockHttpServletRequest req = new MockHttpServletRequest(); - req.addParameter(Client.BIRTH_DATE, "2015-02-01:2016-03-01"); - - System.out.println(RestUtils.getDateRangeFilter(Client.BIRTH_DATE, req)); - } -} diff --git a/opensrp-web/src/test/java/org/opensrp/web/utils/TestResourceLoader.java b/opensrp-web/src/test/java/org/opensrp/web/utils/TestResourceLoader.java deleted file mode 100644 index 13b995940e..0000000000 --- a/opensrp-web/src/test/java/org/opensrp/web/utils/TestResourceLoader.java +++ /dev/null @@ -1,101 +0,0 @@ -package org.opensrp.web.utils; - -import java.io.*; -import java.util.Properties; -import java.util.zip.ZipEntry; -import java.util.zip.ZipOutputStream; - -import org.opensrp.connector.openmrs.service.EncounterService; -import org.opensrp.connector.openmrs.service.PatientService; -import org.opensrp.form.domain.FormSubmission; -import org.springframework.core.io.ClassPathResource; -import org.springframework.core.io.DefaultResourceLoader; -import org.springframework.core.io.Resource; -import org.springframework.core.io.ResourceLoader; -import org.springframework.core.io.support.PropertiesLoaderUtils; - -import com.google.gson.Gson; -import com.google.gson.JsonIOException; -import com.mysql.jdbc.StringUtils; - -public class TestResourceLoader { - - protected String openmrsOpenmrsUrl; - - protected String openmrsUsername; - - protected String openmrsPassword; - - protected String formDirPath; - - protected String formToDownload; - - protected boolean pushToOpenmrsForTest; - - protected PatientService patientService; - - protected EncounterService encounterService; - - public TestResourceLoader() throws IOException { - Resource resource = new ClassPathResource("/opensrp.properties"); - Properties props = PropertiesLoaderUtils.loadProperties(resource); - openmrsOpenmrsUrl = props.getProperty("openmrs.url"); - openmrsUsername = props.getProperty("openmrs.username"); - openmrsPassword = props.getProperty("openmrs.password"); - formDirPath = props.getProperty("form.directory.name"); - formToDownload = props.getProperty("form.download.files").replace(" ", ""); - String rc = props.getProperty("openmrs.test.make-rest-call"); - pushToOpenmrsForTest = StringUtils.isEmptyOrWhitespaceOnly(rc) ? false : Boolean.parseBoolean(rc); - - this.patientService = new PatientService(openmrsOpenmrsUrl, openmrsUsername, openmrsPassword); - this.encounterService = new EncounterService(openmrsOpenmrsUrl, openmrsUsername, openmrsPassword); - this.encounterService.setPatientService(patientService); - } - - public FormSubmission getFormSubmissionFor(String formName, Integer number) throws JsonIOException, IOException { - ResourceLoader loader = new DefaultResourceLoader(); - String path = loader.getResource(formDirPath).getURI().getPath(); - File fsfile = new File(path + "/" + formName + "/form_submission" + (number == null ? "" : number) + ".json"); - return new Gson().fromJson(new FileReader(fsfile), FormSubmission.class); - } - - protected FormSubmission getFormSubmissionFor(String formName) throws JsonIOException, IOException { - return getFormSubmissionFor(formName, null); - } - - public byte[] getFormDirectoryAsZip(String directoryName) throws IOException { - ResourceLoader loader = new DefaultResourceLoader(); - return zipFiles(new File(loader.getResource(formDirPath).getURI().getPath() + "/" + directoryName)); - } - - private byte[] zipFiles(File directory) throws IOException { - ByteArrayOutputStream baos = new ByteArrayOutputStream(); - ZipOutputStream zos = new ZipOutputStream(baos); - byte bytes[] = new byte[2048]; - String[] fl = directory.list(); - for (String fileName : fl) { - if (formToDownload.matches("(.+,)?" + fileName + "(,.+)?$")) { - - FileInputStream fis = new FileInputStream(directory.getPath() + "/" + fileName); - BufferedInputStream bis = new BufferedInputStream(fis); - - zos.putNextEntry(new ZipEntry(fileName)); - - int bytesRead; - while ((bytesRead = bis.read(bytes)) != -1) { - zos.write(bytes, 0, bytesRead); - } - zos.closeEntry(); - bis.close(); - fis.close(); - } - } - - zos.flush(); - baos.flush(); - zos.close(); - baos.close(); - - return baos.toByteArray(); - } -} diff --git a/opensrp-web/src/test/js/auditmessage_spec.js b/opensrp-web/src/test/js/auditmessage_spec.js deleted file mode 100644 index 05fcc540cd..0000000000 --- a/opensrp-web/src/test/js/auditmessage_spec.js +++ /dev/null @@ -1,95 +0,0 @@ -describe("AuditMessage", function() { - it("should create audit message for an unsent SMS, from audit log item of SMS type", function() { - var smsAuditItem = { - time : 1332302355150, - index : 43, - type : "SMS", - data : { - message : "The real SMS message.", - smsIsSent : "false", - recipient : "9845700000" - } - }; - - var actualAuditMessage = new AuditMessage(smsAuditItem); - - var expectedAuditMessage = { - time : 1332302355150, - type : "SMS", - content : "SMS NOT sent to 9845700000: The real SMS message.", - info : {}, - actions : [ - { - "text" : "Resend SMS", - "link" : "javascript:alert('Not implemented yet.');" - } - ] - }; - - expect(actualAuditMessage).toEqual(expectedAuditMessage); - }); - - it("should create audit message for a sent SMS, from audit log item of SMS type", function() { - var smsAuditItem = { - time : 1332302355150, - index : 43, - type : "SMS", - data : { - message : "The real SMS message.", - smsIsSent : "true", - recipient : "9845700000" - } - }; - - var actualAuditMessage = new AuditMessage(smsAuditItem); - - var expectedAuditMessage = { - time : 1332302355150, - type : "SMS", - content : "SMS sent to 9845700000: The real SMS message.", - info : {}, - actions : [ - { - "text" : "Resend SMS", - "link" : "javascript:alert('Not implemented yet.');" - } - ] - }; - - expect(actualAuditMessage).toEqual(expectedAuditMessage); - }); - - it("should create audit message for a form submission, from audit log item of FORM_SUBMISSION type", function() { - var formSubmissionAuditItem = { - time : 1332302355150, - index : 43, - type : "FORM_SUBMISSION", - data : { - formType: "registerMother", - formData: "{\"lmp\":\"2012-02-29\",\"anmPhoneNumber\":\"\",\"caseId\":\"839RUGI9CVN7348CZGLMQ6NUH\"}", - formId: "FORM-ID-HERE" - } - }; - - var actualAuditMessage = new AuditMessage(formSubmissionAuditItem); - - var expectedAuditMessage = { - time : 1332302355150, - type : "Form Submission", - content : "Form for 'registerMother' submitted for case: 839RUGI9CVN7348CZGLMQ6NUH.", - info : { - "lmp" : "2012-02-29", - "anmPhoneNumber" : "", - "caseId" : "839RUGI9CVN7348CZGLMQ6NUH" - }, - actions : [ - { - "text" : "Open form in CommCare", - "link" : "https://www.commcarehq.org/a/frhs-who-columbia/reports/form_data/FORM-ID-HERE/" - } - ] - }; - - expect(actualAuditMessage).toEqual(expectedAuditMessage); - }); -}); \ No newline at end of file diff --git a/opensrp-web/src/test/resources/form/child_enrollment/form.json b/opensrp-web/src/test/resources/form/child_enrollment/form.json deleted file mode 100644 index 68aae63f70..0000000000 --- a/opensrp-web/src/test/resources/form/child_enrollment/form.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"Child_Vaccination_Enrollment","title":"بچّوں کا انرولمنٹ رجسٹر برائے ٹیکاجات - Child Enrollment Vaccination Register","sms_keyword":"child_vaccination_enrollment","default_language":"English","choices":{"provinces":[{"name":"kpk","label":{"Urdu":"خیبر پختون خواہ","English":"Khyber Pakhtunkhwa","Roman Urdu":"Khyber Pakhtunkhwa"}},{"name":"sindh","label":{"Urdu":"سندھ","English":"Sindh","Roman Urdu":"Sindh"}},{"name":"balochistan","label":{"Urdu":"بلوچستان","English":"Balochistan","Roman Urdu":"Balochistan"}},{"name":"punjab","label":{"Urdu":"پنجاب","English":"Punjab","Roman Urdu":"Punjab"}},{"name":"gilgit_baltistan","label":{"Urdu":"گلگت بلتستان","English":"Gilgit Baltistan","Roman Urdu":"Gilgit Baltistan"}},{"name":"kashmir","label":{"Urdu":"کشمیر","English":"Kashmir","Roman Urdu":"Kashmir"}},{"name":"fata","label":{"Urdu":"فاٹا","English":"FATA","Roman Urdu":"FATA"}},{"name":"out_of_country","label":{"Urdu":"ملک سے باہر","English":"Out of Country","Roman Urdu":"Mulk se baahir"}}],"ucs":[{"province":"sindh","city":"karachi","town":"korangi","name":"bilal_colony","label":{"Urdu":"بلال کالونی","Roman Urdu":"Bilal Colony","English":"Bilal Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"nasir_colony","label":{"Urdu":"ناصر کالونی","Roman Urdu":"Nasir Colony","English":"Nasir Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"chakra_goth","label":{"Urdu":"چکرا گوٹھ","Roman Urdu":"Chakra Goth","English":"Chakra Goth"}},{"province":"sindh","city":"karachi","town":"korangi","name":"mustafa_taj_colony","label":{"Urdu":"مصطفی تاج کالونی","Roman Urdu":"Mustafa Taj Colony","English":"Mustafa Taj Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"hundred_quarters","label":{"Urdu":"ہنڈریڈ کوارٹر","Roman Urdu":"Hundred Quarters","English":"Hundred Quarters"}},{"province":"sindh","city":"karachi","town":"korangi","name":"gulzar_colony","label":{"Urdu":"گلزار کالونی","Roman Urdu":"Gulzar Colony","English":"Gulzar Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"korangi_sector_33","label":{"Urdu":"کورنگی سیکٹر 33","Roman Urdu":"Korangi Sector 33","English":"Korangi Sector 33"}},{"province":"sindh","city":"karachi","town":"korangi","name":"zaman_town","label":{"Urdu":"زمان ٹاوَن","Roman Urdu":"Zaman Town","English":"Zaman Town"}},{"province":"sindh","city":"karachi","town":"korangi","name":"hasrat_mohani_colony","label":{"Urdu":"حسرت موہانی کالونی","Roman Urdu":"Hasrat Mohani Colony","English":"Hasrat Mohani Colony"}},{"province":"sindh","city":"karachi","town":"baldia","name":"gulshan_e_ghazi","label":{"Urdu":"گلشن غازی","Roman Urdu":"Gulshan-e-Ghazi","English":"Gulshan-e-Ghazi"}},{"province":"sindh","city":"karachi","town":"baldia","name":"ittehad_town","label":{"Urdu":"اتحاد ٹاوَن","Roman Urdu":"Ittehad Town","English":"Ittehad Town"}},{"province":"sindh","city":"karachi","town":"baldia","name":"islam_nagar","label":{"Urdu":"اسلام نگر","Roman Urdu":"Islam Nagar","English":"Islam Nagar"}},{"province":"sindh","city":"karachi","town":"baldia","name":"nai_abadi","label":{"Urdu":"نئی آبادی","Roman Urdu":"Nai Abadi","English":"Nai Abadi"}},{"province":"sindh","city":"karachi","town":"baldia","name":"saeedabad","label":{"Urdu":"سعید آباد","Roman Urdu":"Saeedabad","English":"Saeedabad"}},{"province":"sindh","city":"karachi","town":"baldia","name":"muslim_mujahid_colony","label":{"Urdu":"مسلم مجاہد کالونی","Roman Urdu":"Muslim Mujahid Colony","English":"Muslim Mujahid Colony"}},{"province":"sindh","city":"karachi","town":"baldia","name":"muhajir_camp","label":{"Urdu":"مہاجر کیمپ","Roman Urdu":"Muhajir Camp","English":"Muhajir Camp"}},{"province":"sindh","city":"karachi","town":"baldia","name":"rasheedabad","label":{"Urdu":"رشید آباد","Roman Urdu":"Rasheedabad","English":"Rasheedabad"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"ibrahim_hyderi","label":{"Urdu":"ابراہیم حیدری","Roman Urdu":"Ibrahim Hyderi","English":"Ibrahim Hyderi"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"rehri","label":{"Urdu":"رہڑی","Roman Urdu":"Rehri","English":"Rehri"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"cattle_colony","label":{"Urdu":"کیٹل کالونی","Roman Urdu":"Cattle Colony","English":"Cattle Colony"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"qaidabad","label":{"Urdu":"قائدآباد","Roman Urdu":"Qaidabad","English":"Qaidabad"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"landhi_colony","label":{"Urdu":"لانڈھی کالونی","Roman Urdu":"Landhi Colony","English":"Landhi Colony"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"gulshan_e_hadeed","label":{"Urdu":"گلشن حدید","Roman Urdu":"Gulshan-e-Hadeed","English":"Gulshan-e-Hadeed"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"gaghar","label":{"Urdu":"گگر","Roman Urdu":"Gaghar","English":"Gaghar"}},{"province":"sindh","city":"karachi","town":"gadap","name":"murad_memon_goth","label":{"Urdu":"مراد میمن گوٹھ","Roman Urdu":"Murad Memon Goth","English":"Murad Memon Goth"}},{"province":"sindh","city":"karachi","town":"gadap","name":"darsano_chana","label":{"Urdu":"درشانو شنو","Roman Urdu":"Darsano Chana","English":"Darsano Chana"}},{"province":"sindh","city":"karachi","town":"gadap","name":"gujro","label":{"Urdu":"گجرو","Roman Urdu":"Gujro","English":"Gujro"}},{"province":"sindh","city":"karachi","town":"gadap","name":"songal","label":{"Urdu":"سنگل","Roman Urdu":"Songal","English":"Songal"}},{"province":"sindh","city":"karachi","town":"gadap","name":"maymarabad","label":{"Urdu":"معمار آباد","Roman Urdu":"Maymarabad","English":"Maymarabad"}},{"province":"sindh","city":"karachi","town":"gadap","name":"yousuf_goth","label":{"Urdu":"یوسف گوٹھ","Roman Urdu":"Yousuf Goth","English":"Yousuf Goth"}},{"province":"sindh","city":"karachi","town":"gadap","name":"manghopir","label":{"Urdu":"منگھوپیر","Roman Urdu":"Manghopir","English":"Manghopir"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"azizabad","label":{"Urdu":"عزیز آباد","Roman Urdu":"Azizabad","English":"Azizabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"karimabad","label":{"Urdu":"کریم آباد","Roman Urdu":"Karimabad","English":"Karimabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"aisha_manzil","label":{"Urdu":"عائشہ منزل","Roman Urdu":"Aisha Manzil","English":"Aisha Manzil"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"ancholi","label":{"Urdu":"انچولی","Roman Urdu":"Ancholi","English":"Ancholi"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"naseerabad","label":{"Urdu":"نصیرآباد","Roman Urdu":"Naseerabad","English":"Naseerabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"yaseenabad","label":{"Urdu":"یاسین آباد","Roman Urdu":"Yaseenabad","English":"Yaseenabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"water_pump","label":{"Urdu":"واٹرپمپ","Roman Urdu":"Water Pump","English":"Water Pump"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"shafiq_mill_colony","label":{"Urdu":"شفیق مل کالونی","Roman Urdu":"Shafiq Mill Colony","English":"Shafiq Mill Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"delhi_mercantile_society","label":{"Urdu":"دہلی مرچنٹائل سوسائٹی","Roman Urdu":"Delhi Mercantile Society","English":"Delhi Mercantile Society"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"civic_centre","label":{"Urdu":"سوک سینٹر","Roman Urdu":"Civic Centre","English":"Civic Centre"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"pir_ilahi_buksh_colony","label":{"Urdu":"پیر الہی بخش کالونی","Roman Urdu":"Pir Ilahi Buksh Colony","English":"Pir Ilahi Buksh Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"essa_nagri","label":{"Urdu":"عیسی نگری","Roman Urdu":"Essa Nagri","English":"Essa Nagri"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gulshan_e_iqbal","label":{"Urdu":"گلشن اقبال","Roman Urdu":"Gulshan-e-Iqbal","English":"Gulshan-e-Iqbal"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gillani_railway_station","label":{"Urdu":"گیلانی ریلوے اسٹیشن","Roman Urdu":"Gillani Railway Station","English":"Gillani Railway Station"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"shanti_nagar","label":{"Urdu":"شانتی نگر","Roman Urdu":"Shanti Nagar","English":"Shanti Nagar"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"jamali_colony","label":{"Urdu":"جمالی کالونی","Roman Urdu":"Jamali Colony","English":"Jamali Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gulshan_e_iqbal_ii","label":{"Urdu":"گلشن اقبال 2","Roman Urdu":"Gulshan-e-Iqbal II","English":"Gulshan-e-Iqbal II"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"pehlwan_goth","label":{"Urdu":"پہلوان گوٹھ","Roman Urdu":"Pehlwan Goth","English":"Pehlwan Goth"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"matrovil_colony","label":{"Urdu":"میٹروویل کالونی","Roman Urdu":"Matrovil Colony","English":"Matrovil Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gulzar_e_hijri","label":{"Urdu":"گلزار ہجری","Roman Urdu":"Gulzar-e-Hijri","English":"Gulzar-e-Hijri"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"safooran_goth","label":{"Urdu":"صفورا گوٹھ","Roman Urdu":"Safooran Goth","English":"Safooran Goth"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"akhtar_colony","label":{"Urdu":"اختر کالونی","Roman Urdu":"Akhtar Colony","English":"Akhtar Colony"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"manzoor_colony","label":{"Urdu":"منظور کالونی","Roman Urdu":"Manzoor Colony","English":"Manzoor Colony"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"azam_basti","label":{"Urdu":"اعظم بستی","Roman Urdu":"Azam Basti","English":"Azam Basti"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"chanesar_goth","label":{"Urdu":"چنیسر گوٹھ","Roman Urdu":"Chanesar Goth","English":"Chanesar Goth"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"mahmudabad","label":{"Urdu":"محمودآباد","Roman Urdu":"Mahmudabad","English":"Mahmudabad"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"pechs","label":{"Urdu":"پی۔ای۔سی۔ایچ۔ایس","Roman Urdu":"P.E.C.H.S.","English":"P.E.C.H.S."}},{"province":"sindh","city":"karachi","town":"jamshed","name":"pechs_ii","label":{"Urdu":"پی۔ای۔سی۔ایچ۔ایس 2","Roman Urdu":"P.E.C.H.S. II","English":"P.E.C.H.S. II"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"jut_line","label":{"Urdu":"جٹ لائن","Roman Urdu":"Jut Line","English":"Jut Line"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"central_jacob_lines","label":{"Urdu":"سینٹرل جیکب لائن","Roman Urdu":"Central Jacob Lines","English":"Central Jacob Lines"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"jamshed_quarters","label":{"Urdu":"جمشید کوارٹر","Roman Urdu":"Jamshed Quarters","English":"Jamshed Quarters"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"garden_east","label":{"Urdu":"گارڈن ایسٹ","Roman Urdu":"Garden East","English":"Garden East"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"soldier_bazar","label":{"Urdu":"سولجر بازار","Roman Urdu":"Soldier Bazar","English":"Soldier Bazar"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"pakistan_quarters","label":{"Urdu":"پاکستان کوارٹر","Roman Urdu":"Pakistan Quarters","English":"Pakistan Quarters"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"bhutta_village","label":{"Urdu":"بھٹا ولیج","Roman Urdu":"Bhutta Village","English":"Bhutta Village"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"sultanabad","label":{"Urdu":"سلطان آباد","Roman Urdu":"Sultanabad","English":"Sultanabad"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"kiamari_uc","label":{"Urdu":"کیماری یو- سی","Roman Urdu":"Kiamari UC","English":"Kiamari UC"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"baba_bhit","label":{"Urdu":"بابا بھٹ","Roman Urdu":"Baba Bhit","English":"Baba Bhit"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"machar_colony","label":{"Urdu":"مچھر کالونی","Roman Urdu":"Machar Colony","English":"Machar Colony"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"maripur","label":{"Urdu":"ماڑی پور","Roman Urdu":"Maripur","English":"Maripur"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"shershah","label":{"Urdu":"شیرشاہ","Roman Urdu":"SherShah","English":"SherShah"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"gabo_pat","label":{"Urdu":"گابو پٹ","Roman Urdu":"Gabo Pat","English":"Gabo Pat"}},{"province":"sindh","city":"karachi","town":"landhi","name":"muzafarabad","label":{"Urdu":"مظفرآباد","Roman Urdu":"Muzafarabad","English":"Muzafarabad"}},{"province":"sindh","city":"karachi","town":"landhi","name":"muslimabad","label":{"Urdu":"مسلم آباد","Roman Urdu":"Muslimabad","English":"Muslimabad"}},{"province":"sindh","city":"karachi","town":"landhi","name":"dawood_chowrangi","label":{"Urdu":"داوَد چورنگی","Roman Urdu":"Dawood Chowrangi","English":"Dawood Chowrangi"}},{"province":"sindh","city":"karachi","town":"landhi","name":"moinabad","label":{"Urdu":"معین آباد","Roman Urdu":"Moinabad","English":"Moinabad"}},{"province":"sindh","city":"karachi","town":"landhi","name":"sharafi_goth","label":{"Urdu":"شرافی گوٹھ","Roman Urdu":"Sharafi Goth","English":"Sharafi Goth"}},{"province":"sindh","city":"karachi","town":"landhi","name":"bhutto_nagar","label":{"Urdu":"بھٹو نگر","Roman Urdu":"Bhutto Nagar","English":"Bhutto Nagar"}},{"province":"sindh","city":"karachi","town":"landhi","name":"khawaja_ajmeer_colony","label":{"Urdu":"خواجہ اجمیر کالونی","Roman Urdu":"Khawaja Ajmeer Colony","English":"Khawaja Ajmeer Colony"}},{"province":"sindh","city":"karachi","town":"landhi","name":"landhi_uc","label":{"Urdu":"لانڈھی یوسی","Roman Urdu":"Landhi UC","English":"Landhi UC"}},{"province":"sindh","city":"karachi","town":"landhi","name":"awami_colony","label":{"Urdu":"عوامی کالونی","Roman Urdu":"Awami Colony","English":"Awami Colony"}},{"province":"sindh","city":"karachi","town":"landhi","name":"burmee_colony","label":{"Urdu":"برمی کالونی","Roman Urdu":"Burmee Colony","English":"Burmee Colony"}},{"province":"sindh","city":"karachi","town":"landhi","name":"korangi_uc","label":{"Urdu":"کورنگی یوسی","Roman Urdu":"Korangi UC","English":"Korangi UC"}},{"province":"sindh","city":"karachi","town":"landhi","name":"sherabad","label":{"Urdu":"شیرآباد","Roman Urdu":"Sherabad","English":"Sherabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"rizvia_society","label":{"Urdu":"رضویہ سوسائٹی","Roman Urdu":"Rizvia Society","English":"Rizvia Society"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"firdous_colony","label":{"Urdu":"فردوس کالونی","Roman Urdu":"Firdous Colony","English":"Firdous Colony"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"super_market","label":{"Urdu":"سپر مارکیٹ","Roman Urdu":"Super Market","English":"Super Market"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"dak_khana","label":{"Urdu":"دک کھانہ","Roman Urdu":"Dak Khana","English":"Dak Khana"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"qasimabad","label":{"Urdu":"قاسم آباد","Roman Urdu":"Qasimabad","English":"Qasimabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"bandhani_colony","label":{"Urdu":"بندھانی کالونی","Roman Urdu":"Bandhani Colony","English":"Bandhani Colony"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"sharifabad","label":{"Urdu":"شریف آباد","Roman Urdu":"Sharifabad","English":"Sharifabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"commercial_area","label":{"Urdu":"کمرشل ایریا","Roman Urdu":"Commercial Area","English":"Commercial Area"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"mujahid_colony","label":{"Urdu":"مجاہد کالونی","Roman Urdu":"Mujahid Colony","English":"Mujahid Colony"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"nazimabad","label":{"Urdu":"ناظم آباد","Roman Urdu":"Nazimabad","English":"Nazimabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"abbasi_shaheed","label":{"Urdu":"عباسی شہید","Roman Urdu":"Abbasi Shaheed","English":"Abbasi Shaheed"}},{"province":"sindh","city":"karachi","town":"lyari","name":"agra_taj_colony","label":{"Urdu":"آگرہ تاج کالونی","Roman Urdu":"Agra Taj Colony","English":"Agra Taj Colony"}},{"province":"sindh","city":"karachi","town":"lyari","name":"daryaabad","label":{"Urdu":"دریاآباد","Roman Urdu":"Daryaabad","English":"Daryaabad"}},{"province":"sindh","city":"karachi","town":"lyari","name":"nawabad","label":{"Urdu":"نواآباد","Roman Urdu":"Nawabad","English":"Nawabad"}},{"province":"sindh","city":"karachi","town":"lyari","name":"khada_memon_society","label":{"Urdu":"خدا- میمن- سوساَٹی","Roman Urdu":"Khada Memon Society","English":"Khada Memon Society"}},{"province":"sindh","city":"karachi","town":"lyari","name":"baghdadi","label":{"Urdu":"بغدادی","Roman Urdu":"Baghdadi","English":"Baghdadi"}},{"province":"sindh","city":"karachi","town":"lyari","name":"shah_baig_line","label":{"Urdu":"شاھ باغ لائن","Roman Urdu":"Shah Baig Line","English":"Shah Baig Line"}},{"province":"sindh","city":"karachi","town":"lyari","name":"bihar_colony","label":{"Urdu":"بہار کالونی","Roman Urdu":"Bihar Colony","English":"Bihar Colony"}},{"province":"sindh","city":"karachi","town":"lyari","name":"ragiwara","label":{"Urdu":"راگی واڑا","Roman Urdu":"Ragiwara","English":"Ragiwara"}},{"province":"sindh","city":"karachi","town":"lyari","name":"singo_line","label":{"Urdu":"سنگولائن","Roman Urdu":"Singo Line","English":"Singo Line"}},{"province":"sindh","city":"karachi","town":"lyari","name":"chakiwara","label":{"Urdu":"چاکی واڑا","Roman Urdu":"Chakiwara","English":"Chakiwara"}},{"province":"sindh","city":"karachi","town":"lyari","name":"allama_iqbal_colony","label":{"Urdu":"علامہ اقبال کالونی","Roman Urdu":"Allama Iqbal Colony","English":"Allama Iqbal Colony"}},{"province":"sindh","city":"karachi","town":"malir","name":"model_colony","label":{"Urdu":"موڈل کالونی","Roman Urdu":"Model Colony","English":"Model Colony"}},{"province":"sindh","city":"karachi","town":"malir","name":"kala_board","label":{"Urdu":"کالا بورڈ","Roman Urdu":"Kala Board","English":"Kala Board"}},{"province":"sindh","city":"karachi","town":"malir","name":"saudabad","label":{"Urdu":"سعودآباد","Roman Urdu":"Saudabad","English":"Saudabad"}},{"province":"sindh","city":"karachi","town":"malir","name":"khokhra_par","label":{"Urdu":"کھوکھرا پار","Roman Urdu":"Khokhra Par","English":"Khokhra Par"}},{"province":"sindh","city":"karachi","town":"malir","name":"jafar_e_tayyar","label":{"Urdu":"جعفر تیار","Roman Urdu":"Jafar-e-Tayyar","English":"Jafar-e-Tayyar"}},{"province":"sindh","city":"karachi","town":"malir","name":"gharibabad","label":{"Urdu":"غریب آباد","Roman Urdu":"Gharibabad","English":"Gharibabad"}},{"province":"sindh","city":"karachi","town":"malir","name":"ghazi_brohi_goth","label":{"Urdu":"غازی بروہی گوٹھ","Roman Urdu":"Ghazi Brohi Goth","English":"Ghazi Brohi Goth"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"kalyana","label":{"Urdu":"کالیانہ","Roman Urdu":"Kalyana","English":"Kalyana"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"sir_syed_colony","label":{"Urdu":"سر سید کالونی","Roman Urdu":"Sir Syed Colony","English":"Sir Syed Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"fatima_jinnah_colony","label":{"Urdu":"فاطمہ جناح کالونی","Roman Urdu":"Fatima Jinnah Colony","English":"Fatima Jinnah Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"godhra","label":{"Urdu":"گودھرا","Roman Urdu":"Godhra","English":"Godhra"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"abu_zar_ghaffari","label":{"Urdu":"ابو زر غفاری","Roman Urdu":"Abu Zar Ghaffari","English":"Abu Zar Ghaffari"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"hakim_ahsan","label":{"Urdu":"حاکم احسان","Roman Urdu":"Hakim Ahsan","English":"Hakim Ahsan"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"madina_colony","label":{"Urdu":"مدینہ کالونی","Roman Urdu":"Madina Colony","English":"Madina Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"faisal_colony","label":{"Urdu":"فیصل کالونی","Roman Urdu":"Faisal Colony","English":"Faisal Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"khamiso_goth","label":{"Urdu":"خمیسو گوٹھ","Roman Urdu":"Khamiso Goth","English":"Khamiso Goth"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"mustufa_colony","label":{"Urdu":"مصطفی کالونی","Roman Urdu":"Mustufa Colony","English":"Mustufa Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"khawaja_ajmeer_nagri","label":{"Urdu":"خواجہ اجمیر نگری","Roman Urdu":"Khawaja Ajmeer Nagri","English":"Khawaja Ajmeer Nagri"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"gulshan_e_saeed","label":{"Urdu":"گلشن سعید","Roman Urdu":"Gulshan-e-Saeed","English":"Gulshan-e-Saeed"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"shah_nawaz_bhutto_colony","label":{"Urdu":"شاہ نواز بھٹو کالونی","Roman Urdu":"Shah Nawaz Bhutto Colony","English":"Shah Nawaz Bhutto Colony"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"paposh_nagar","label":{"Urdu":"پاپوش نگر","Roman Urdu":"Paposh Nagar","English":"Paposh Nagar"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"pahar_ganj","label":{"Urdu":"پہاڑ گنج","Roman Urdu":"Pahar Ganj","English":"Pahar Ganj"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"khandu_goth","label":{"Urdu":"کھنڑو گوٹھ","Roman Urdu":"Khandu Goth","English":"Khandu Goth"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"hyderi","label":{"Urdu":"حیدری","Roman Urdu":"Hyderi","English":"Hyderi"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"sakhi_hassan","label":{"Urdu":"سخی حسن","Roman Urdu":"Sakhi Hassan","English":"Sakhi Hassan"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"farooq_e_azam","label":{"Urdu":"فاروق اعظم","Roman Urdu":"Farooq-e-Azam","English":"Farooq-e-Azam"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"nusrat_bhutto_colony","label":{"Urdu":"نصرت بھٹو کالونی","Roman Urdu":"Nusrat Bhutto Colony","English":"Nusrat Bhutto Colony"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"shadman_town","label":{"Urdu":"شادمان ٹاوَن","Roman Urdu":"Shadman Town","English":"Shadman Town"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"buffer_zone","label":{"Urdu":"بفرزون","Roman Urdu":"Buffer Zone","English":"Buffer Zone"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"buffer_zone_ii","label":{"Urdu":"بفرزون 2","Roman Urdu":"Buffer Zone II","English":"Buffer Zone II"}},{"province":"sindh","city":"karachi","town":"orangi","name":"mominabad","label":{"Urdu":"مومن آباد","Roman Urdu":"Mominabad","English":"Mominabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"haryana_colony","label":{"Urdu":"حریانہ کالونی","Roman Urdu":"Haryana Colony","English":"Haryana Colony"}},{"province":"sindh","city":"karachi","town":"orangi","name":"hanifabad","label":{"Urdu":"حنیف آباد","Roman Urdu":"Hanifabad","English":"Hanifabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"mohammad_nagar","label":{"Urdu":"محمد نگر","Roman Urdu":"Mohammad Nagar","English":"Mohammad Nagar"}},{"province":"sindh","city":"karachi","town":"orangi","name":"madina_colony_orangi","label":{"Urdu":"مدینہ کالونی اورنگی","Roman Urdu":"Madina Colony Orangi","English":"Madina Colony Orangi"}},{"province":"sindh","city":"karachi","town":"orangi","name":"ghaziabad","label":{"Urdu":"غازی آباد","Roman Urdu":"Ghaziabad","English":"Ghaziabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"chisti_nagar","label":{"Urdu":"چشتی نگر","Roman Urdu":"Chisti Nagar","English":"Chisti Nagar"}},{"province":"sindh","city":"karachi","town":"orangi","name":"bilal_colony_orangi","label":{"Urdu":"بلال کالونی اورنگی","Roman Urdu":"Bilal Colony Orangi","English":"Bilal Colony Orangi"}},{"province":"sindh","city":"karachi","town":"orangi","name":"iqbal_baloch_colony","label":{"Urdu":"اقبال بلوچ کالونی","Roman Urdu":"Iqbal Baloch Colony","English":"Iqbal Baloch Colony"}},{"province":"sindh","city":"karachi","town":"orangi","name":"ghabool_town","label":{"Urdu":"گبول ٹاوَن","Roman Urdu":"Ghabool Town","English":"Ghabool Town"}},{"province":"sindh","city":"karachi","town":"orangi","name":"data_nagar","label":{"Urdu":"داتا نگر","Roman Urdu":"Data Nagar","English":"Data Nagar"}},{"province":"sindh","city":"karachi","town":"orangi","name":"mujahidabad","label":{"Urdu":"مجاہد آباد","Roman Urdu":"Mujahidabad","English":"Mujahidabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"baloch_goth","label":{"Urdu":"بلوچ گوٹھ","Roman Urdu":"Baloch Goth","English":"Baloch Goth"}},{"province":"sindh","city":"karachi","town":"saddar","name":"old_haji_camp","label":{"Urdu":"پرانہ حاجی کیمپ","Roman Urdu":"Old Haji Camp","English":"Old Haji Camp"}},{"province":"sindh","city":"karachi","town":"saddar","name":"garden","label":{"Urdu":"گارڈن","Roman Urdu":"Garden","English":"Garden"}},{"province":"sindh","city":"karachi","town":"saddar","name":"kharadar","label":{"Urdu":"کھارادر","Roman Urdu":"Kharadar","English":"Kharadar"}},{"province":"sindh","city":"karachi","town":"saddar","name":"city_railway_colony","label":{"Urdu":"سٹی ریلوے کالونی","Roman Urdu":"City Railway Colony","English":"City Railway Colony"}},{"province":"sindh","city":"karachi","town":"saddar","name":"nanak_wara","label":{"Urdu":"ناناک واڑا","Roman Urdu":"Nanak Wara","English":"Nanak Wara"}},{"province":"sindh","city":"karachi","town":"saddar","name":"gazdarabad","label":{"Urdu":"گزدرآباد","Roman Urdu":"Gazdarabad","English":"Gazdarabad"}},{"province":"sindh","city":"karachi","town":"saddar","name":"millat_nagar_islam_pura","label":{"Urdu":"ملت نگر اسلام پورا","Roman Urdu":"Millat Nagar/Islam Pura","English":"Millat Nagar/Islam Pura"}},{"province":"sindh","city":"karachi","town":"saddar","name":"saddar_uc","label":{"Urdu":"صدر یو سی","Roman Urdu":"Saddar UC","English":"Saddar UC"}},{"province":"sindh","city":"karachi","town":"saddar","name":"civil_line","label":{"Urdu":"سول لائن","Roman Urdu":"Civil Line","English":"Civil Line"}},{"province":"sindh","city":"karachi","town":"saddar","name":"clifton","label":{"Urdu":"کلفٹن","Roman Urdu":"Clifton","English":"Clifton"}},{"province":"sindh","city":"karachi","town":"saddar","name":"kehkashan","label":{"Urdu":"کہکشان","Roman Urdu":"Kehkashan","English":"Kehkashan"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"natha_khan_goth","label":{"Urdu":"ناتھا خان گوٹھ","Roman Urdu":"Natha Khan Goth","English":"Natha Khan Goth"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"pak_sadat_colony","label":{"Urdu":"پاک صدر کالونی","Roman Urdu":"Pak Sadat Colony","English":"Pak Sadat Colony"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"drigh_colony","label":{"Urdu":"ڈرگ کالونی","Roman Urdu":"Drigh Colony","English":"Drigh Colony"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"raita_plot","label":{"Urdu":"رائتا پلاٹ","Roman Urdu":"Raita Plot","English":"Raita Plot"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"moria_khan_goth","label":{"Urdu":"موریا خان گوٹھ","Roman Urdu":"Moria Khan Goth","English":"Moria Khan Goth"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"rafa_e_aam_society","label":{"Urdu":"رفا عام سوسا ئٹی","Roman Urdu":"Rafa-e-Aam Society","English":"Rafa-e-Aam Society"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"al_falah_society","label":{"Urdu":"الفلاح سوسا ئٹی","Roman Urdu":"Al-Falah Society","English":"Al-Falah Society"}},{"province":"sindh","city":"karachi","town":"site","name":"pak_colony","label":{"Urdu":"پاک کالونی","Roman Urdu":"Pak Colony","English":"Pak Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"old_golimar","label":{"Urdu":"پرانہ گولی مار","Roman Urdu":"Old Golimar","English":"Old Golimar"}},{"province":"sindh","city":"karachi","town":"site","name":"jahanabad","label":{"Urdu":"جہان آباد","Roman Urdu":"Jahanabad","English":"Jahanabad"}},{"province":"sindh","city":"karachi","town":"site","name":"metrovil","label":{"Urdu":"میٹروویل","Roman Urdu":"Metrovil","English":"Metrovil"}},{"province":"sindh","city":"karachi","town":"site","name":"bhawani_chali","label":{"Urdu":"بہوانی چالی","Roman Urdu":"Bhawani Chali","English":"Bhawani Chali"}},{"province":"sindh","city":"karachi","town":"site","name":"frontier_colony","label":{"Urdu":"فرونٹر کالونی","Roman Urdu":"Frontier Colony","English":"Frontier Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"banaras_colony","label":{"Urdu":"بنارس کالونی","Roman Urdu":"Banaras Colony","English":"Banaras Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"qasba_colony","label":{"Urdu":"قصبہ کالونی","Roman Urdu":"Qasba Colony","English":"Qasba Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"islamia_colony","label":{"Urdu":"اسلامیہ کالونی","Roman Urdu":"Islamia Colony","English":"Islamia Colony"}},{"province":"na","city":"na","town":"na","name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}},{"province":"na","city":"na","town":"na","name":"not_applicable","label":{"Urdu":"قابل اطلاق نہیں","Roman Urdu":"Qaabil-e-atlaaq nahi","English":"Not Applicable"}}],"gender":[{"instance":{"openmrs_code":"1534AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"male","label":{"Urdu":"مرد/ لڑکا","Roman Urdu":"Mard/larka","English":"Male"}},{"instance":{"openmrs_code":"1535AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"female","label":{"Urdu":"عورت/لڑکی","Roman Urdu":"Aurat/larki","English":"Female"}},{"instance":{"openmrs_code":"163163AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"transgender","label":{"Urdu":"خواجہ سرہ","Roman Urdu":"Khwaja sira","English":"Transgender"}}],"vaccines":[{"instance":{"openmrs_code":"1570AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"bcg","label":{"Urdu":"بی سی جی","Roman Urdu":"BCG","English":"BCG"}},{"instance":{"openmrs_code":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv0","label":{"Urdu":"او پی وی 0","Roman Urdu":"OPV 0","English":"OPV 0"}},{"instance":{"openmrs_code":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv1","label":{"Urdu":"پی سی وی 1","Roman Urdu":"PCV 1","English":"PCV 1"}},{"instance":{"openmrs_code":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv1","label":{"Urdu":"او پی وی 1","Roman Urdu":"OPV 1","English":"OPV 1"}},{"instance":{"openmrs_code":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta1","label":{"Urdu":"پینٹا ویلنٹ 1","Roman Urdu":"Pentavalent 1","English":"Pentavalent 1"}},{"instance":{"openmrs_code":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv2","label":{"Urdu":"پی سی وی 2","Roman Urdu":"PCV 2","English":"PCV 2"}},{"instance":{"openmrs_code":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv2","label":{"Urdu":"او پی وی 2","Roman Urdu":"OPV 2","English":"OPV 2"}},{"instance":{"openmrs_code":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta2","label":{"Urdu":"پینٹا ویلنٹ 2","Roman Urdu":"Pentavalent 2","English":"Pentavalent 2"}},{"instance":{"openmrs_code":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv3","label":{"Urdu":"پی سی وی 3","Roman Urdu":"PCV 3","English":"PCV 3"}},{"instance":{"openmrs_code":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv3","label":{"Urdu":"او پی وی 3","Roman Urdu":"OPV 3","English":"OPV 3"}},{"instance":{"openmrs_code":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta3","label":{"Urdu":"پینٹا ویلنٹ 3","Roman Urdu":"Pentavalent 3","English":"Pentavalent 3"}},{"instance":{"openmrs_code":"82242AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ipv","label":{"Urdu":"آئی پی وی","Roman Urdu":"IPV","English":"IPV"}},{"instance":{"openmrs_code":"79409AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"measles1","label":{"Urdu":"خسرہ 1","Roman Urdu":"Khasra 1","English":"Measles 1"}},{"instance":{"openmrs_code":"79409AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"measles2","label":{"Urdu":"خسرہ 2","Roman Urdu":"Khasra 2","English":"Measles 2"}}],"towns":[{"province":"sindh","city":"karachi","name":"korangi","label":{"Urdu":"کورنگی","Roman Urdu":"Korangi","English":"Korangi"}},{"province":"sindh","city":"karachi","name":"landhi","label":{"Urdu":"لانڈھی","Roman Urdu":"Landhi","English":"Landhi"}},{"province":"sindh","city":"karachi","name":"baldia","label":{"Urdu":"بلدیہ","Roman Urdu":"Baldia","English":"Baldia"}},{"province":"sindh","city":"karachi","name":"bin_qasim","label":{"Urdu":"بن قاسم","Roman Urdu":"Bin Qasim","English":"Bin Qasim"}},{"province":"sindh","city":"karachi","name":"gadap","label":{"Urdu":"گڈاپ","Roman Urdu":"Gadap","English":"Gadap"}},{"province":"sindh","city":"karachi","name":"gulberg","label":{"Urdu":"گلبرگ","Roman Urdu":"Gulberg","English":"Gulberg"}},{"province":"sindh","city":"karachi","name":"gulshan","label":{"Urdu":"گلشن","Roman Urdu":"Gulshan","English":"Gulshan"}},{"province":"sindh","city":"karachi","name":"jamshed","label":{"Urdu":"جمشید","Roman Urdu":"Jamshed","English":"Jamshed"}},{"province":"sindh","city":"karachi","name":"kiamari","label":{"Urdu":"کیماری","Roman Urdu":"Kiamari","English":"Kiamari"}},{"province":"sindh","city":"karachi","name":"liaquatabad","label":{"Urdu":"لیاقت آباد","Roman Urdu":"Liaquatabad","English":"Liaquatabad"}},{"province":"sindh","city":"karachi","name":"lyari","label":{"Urdu":"لیاری","Roman Urdu":"Lyari","English":"Lyari"}},{"province":"sindh","city":"karachi","name":"malir","label":{"Urdu":"ملیر","Roman Urdu":"Malir","English":"Malir"}},{"province":"sindh","city":"karachi","name":"new_karachi","label":{"Urdu":"نیو کراچی","Roman Urdu":"New Karachi","English":"New Karachi"}},{"province":"sindh","city":"karachi","name":"north_nazimabad","label":{"Urdu":"نارتھ ناظم آباد","Roman Urdu":"North Nazimabad","English":"North Nazimabad"}},{"province":"sindh","city":"karachi","name":"orangi","label":{"Urdu":"اورنگی","Roman Urdu":"Orangi","English":"Orangi"}},{"province":"sindh","city":"karachi","name":"saddar","label":{"Urdu":"صدر","Roman Urdu":"Saddar","English":"Saddar"}},{"province":"sindh","city":"karachi","name":"shah_faisal","label":{"Urdu":"شاہ فیصل","Roman Urdu":"Shah Faisal","English":"Shah Faisal"}},{"province":"sindh","city":"karachi","name":"site","label":{"Urdu":"سائٹ","Roman Urdu":"S.I.T.E.","English":"S.I.T.E."}},{"province":"na","city":"na","name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}},{"province":"na","city":"na","name":"not_applicable","label":{"Urdu":"قابل اطلاق نہیں","Roman Urdu":"Qaabil-e-atlaaq nahi","English":"Not Applicable"}}],"cities":[{"province":"sindh","name":"karachi","label":{"Urdu":"کراچی","Roman Urdu":"Karachi","English":"Karachi"}},{"province":"punjab","name":"hafizabad","label":{"Urdu":"حافظ آباد","Roman Urdu":"Hafizabad","English":"Hafizabad"}},{"province":"punjab","name":"muzaffargarh","label":{"Urdu":"مظفر گڑھ","Roman Urdu":"Muzaffargarh","English":"Muzaffargarh"}},{"province":"na","name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}},{"province":"na","name":"not_applicable","label":{"Urdu":"قابل اطلاق نہیں","Roman Urdu":"Not Applicable","English":"Not Applicable"}}],"ethnicity":[{"instance":{"openmrs_code":"163215AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"punjabi","label":{"Urdu":"پنجابی","Roman Urdu":"Punjabi","English":"Punjabi"}},{"instance":{"openmrs_code":"163216AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pushtuns","label":{"Urdu":"پشتون","Roman Urdu":"Pushtun","English":"Pushtun"}},{"instance":{"openmrs_code":"163217AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"sindhi","label":{"Urdu":"سندھی","Roman Urdu":"Sindhi","English":"Sindhi"}},{"instance":{"openmrs_code":"163218AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"saraiki","label":{"Urdu":"سرائیکی","Roman Urdu":"Saraiki","English":"Saraiki"}},{"instance":{"openmrs_code":"163219AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"muhajir","label":{"Urdu":"مہاجر","Roman Urdu":"Muhajir","English":"Muhajir"}},{"instance":{"openmrs_code":"163220AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"balochi","label":{"Urdu":"بلوچی","Roman Urdu":"Balochi","English":"Balochi"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}}],"yes_no":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}]},"instance":{"encounter_type":"Child Vaccination Enrollment"},"version":"201604260934","id_string":"child_vaccination_enrollment","type":"survey","children":[{"type":"hidden","name":"provider_uc"},{"type":"hidden","name":"provider_town"},{"type":"hidden","name":"provider_city"},{"type":"hidden","name":"provider_province"},{"type":"hidden","name":"provider_id"},{"instance":{"openmrs_entity_id":"location_id","openmrs_entity":"encounter"},"type":"hidden","name":"provider_location_id"},{"instance":{"openmrs_entity_id":"Program Client ID","openmrs_entity":"person_identifier"},"type":"hidden","name":"existing_program_client_id"},{"type":"hidden","name":"provider_location_name"},{"type":"note","name":"provider_location_note","label":{"Urdu":"شہر: ${provider_city} ; ٹائون: ${provider_town} ; یوسی: ${provider_uc} ; سینٹرکا نام: ${provider_location_name}","English":"City: ${provider_city} ; Town: ${provider_town} ; UC: ${provider_uc} ; Center Name: ${provider_location_name}","Roman Urdu":"Shehr: ${provider_city} ; Town: ${provider_town} ; UC: ${provider_uc} ; Center ka naam: ${provider_location_name}"}},{"instance":{"openmrs_entity_id":"163137AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"start","name":"start"},{"instance":{"openmrs_entity_id":"163138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"end","name":"end"},{"instance":{"openmrs_entity_id":"163286AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"today","name":"today"},{"instance":{"openmrs_entity_id":"163149AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"deviceid","name":"deviceid"},{"instance":{"openmrs_entity_id":"163150AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"subscriberid","name":"subscriberid"},{"instance":{"openmrs_entity_id":"163151AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"simserial","name":"simserial"},{"instance":{"openmrs_entity_id":"163152AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"phonenumber","name":"phonenumber"},{"name":"client_reg_date","hint":{"Urdu":"بچے کو ویکسین لگنے کی تاریخ","English":"Date on which child was vaccinated","Roman Urdu":"Bachay ko vaccine lagnay ki tareekh"},"bind":{"jr:constraintMsg":{"Urdu":"بچے کی پروگرام میں اندراج کی تاریخ مستقبل کی نہیں ہوسکتی","English":"Child registration date cannot be in the future","Roman Urdu":"Bachay ki program mai andraaj ki tareekh mustaqbil ki nahi hosakti"},"required":"yes","constraint":".<=${today}"},"label":{"Urdu":"پروگرام میں اندراج کی تاریخ","English":"Program Registration date","Roman Urdu":"Program mai andraj ki tareekh"},"instance":{"openmrs_entity_id":"encounter_date","openmrs_entity":"encounter"},"type":"date"},{"bind":{"required":"yes"},"type":"note","name":"program_client_id","label":{"Urdu":"پروگرام آئی ڈی: ${existing_program_client_id}","Roman Urdu":"Program ID: ${existing_program_client_id}","English":"Program ID: ${existing_program_client_id}"}},{"bind":{"jr:constraintMsg":{"Urdu":"نمبر آٹھ ہندسوں پر مشتمل ہونا چاہئے","English":"Number should be 8 digits","Roman Urdu":"Number 8 hindason par mushtamil hona chahiye"},"required":"yes","constraint":"string-length(.) = 8"},"type":"integer","instance":{"openmrs_entity_id":"EPI Card Number","openmrs_entity":"person_attribute"},"name":"epi_card_number","label":{"Urdu":"ای پی آئی کارڈ نمبر","English":"EPI Card Number","Roman Urdu":"EPI Card Number"}},{"bind":{"jr:constraintMsg":{"Urdu":"درج کردہ معلومات درست نہیں","English":"Invalid data entered","Roman Urdu":"Darj karda maaloomaat durust nahi"},"required":"yes","constraint":"regex(., '^[a-zA-Z\\s\\.\\-]{3,25}$')"},"type":"text","instance":{"openmrs_entity_id":"first_name","openmrs_entity":"person"},"name":"first_name","label":{"Urdu":"نام","English":"First Name","Roman Urdu":"Naam"}},{"bind":{"jr:constraintMsg":{"Urdu":"درج کردہ معلومات درست نہیں","English":"Invalid data entered","Roman Urdu":"Darj karda maaloomaat durust nahi"},"required":"yes","constraint":"regex(., '^[a-zA-Z\\s\\.\\-]{3,25}$')"},"type":"text","instance":{"openmrs_entity_id":"last_name","openmrs_entity":"person"},"name":"last_name","label":{"Urdu":"والد کا نام","English":"Last name","Roman Urdu":"Waalid ka naam"}},{"default":"yes","label":{"Urdu":"کیا تاریخ پیدائش معلوم ہے؟","Roman Urdu":"Kya tareekh-e-pedaaish maloom hai?","English":"Is birthdate known?"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}],"name":"member_birth_date_known"},{"bind":{"required":"yes","jr:constraintMsg":{"Urdu":"اندراج کے لیے بچے کی عمر پانچ سال سے کم ہونی چاہئے۔","Roman Urdu":"Andraaj ke liye bachay ki umar paanch saal se kam honi chahiye.","English":"Child's age must be less than five years for enrollment."},"relevant":"selected(${member_birth_date_known}, 'yes')","constraint":".<=${today} and (int((${today} - ${member_birth_date}) div 365) < 5)"},"type":"date","name":"member_birth_date","label":{"Urdu":"تاریخ پیدائش","Roman Urdu":"Tareekh-e-pedaaish","English":"Birth date"}},{"bind":{"required":"yes","jr:constraintMsg":{"Urdu":"اندراج کے لیے بچے کی عمر پانچ سال سے کم ہونی چاہئے","Roman Urdu":"Andraaj ke liye bachay ki umar paanch saal se kam honi chahiye","English":"Child's age must be less than five years for enrollment"},"relevant":"selected(${member_birth_date_known}, 'no')","constraint":".<=60"},"type":"integer","name":"age","label":{"Urdu":"عمر (مہینوں میں)","Roman Urdu":"Umar (mahinon main)","English":"Age (months)"}},{"bind":{"calculate":"int((${today} - ${member_birth_date}) div 30.44)"},"type":"calculate","name":"calc_age"},{"bind":{"calculate":"format-date (date(${today} - int(${age} * 30.44)), '%Y-%m-%d')"},"type":"calculate","name":"calc_dob"},{"bind":{"calculate":"if(${member_birth_date_known}='yes', ${member_birth_date}, ${calc_dob})"},"type":"calculate","name":"calc_dob_confirm","instance":{"openmrs_entity_id":"birthdate","openmrs_entity":"person"}},{"bind":{"calculate":"if(${member_birth_date_known} = 'yes', '0', '1')"},"type":"calculate","name":"calc_dob_estimated","instance":{"openmrs_entity_id":"birthdate_estimated","openmrs_entity":"person"}},{"bind":{"calculate":"if(${member_birth_date_known}='yes', ${calc_age}, ${age})"},"type":"calculate","name":"calc_age_confirm","instance":{"openmrs_entity_id":"154384AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"type":"note","name":"member_birth_date_note","label":{"Urdu":"کلائنٹ کی تاریخ پیدائش: ${calc_dob_confirm}","English":"Member Date of Birth: ${calc_dob_confirm}","Roman Urdu":"Member ki Tareekh-e-pedaaish: ${calc_dob_confirm}"}},{"type":"note","name":"note_age","label":{"Urdu":"عمر: ${calc_age_confirm} مہینے","English":"Age: ${calc_age_confirm} months","Roman Urdu":"Umar: ${calc_age_confirm} mahinay"}},{"control":{"appearance":"minimal"},"name":"gender","bind":{"required":"yes"},"label":{"Urdu":"جنس","English":"Gender","Roman Urdu":"Jins"},"instance":{"openmrs_entity_id":"gender","openmrs_entity":"person"},"type":"select one","children":[{"instance":{"openmrs_code":"1534AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"male","label":{"Urdu":"مرد/ لڑکا","Roman Urdu":"Mard/larka","English":"Male"}},{"instance":{"openmrs_code":"1535AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"female","label":{"Urdu":"عورت/لڑکی","Roman Urdu":"Aurat/larki","English":"Female"}},{"instance":{"openmrs_code":"163163AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"transgender","label":{"Urdu":"خواجہ سرہ","Roman Urdu":"Khwaja sira","English":"Transgender"}}]},{"bind":{"jr:constraintMsg":{"Urdu":"درج کردہ معلومات درست نہیں","English":"Invalid data entered","Roman Urdu":"Darj karda maaloomaat durust nahi"},"constraint":"regex(., '^[a-zA-Z\\s\\.\\-]{3,25}$')"},"type":"text","instance":{"openmrs_entity_id":"1593AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"mother_name","label":{"Urdu":"والدہ کا نام","English":"Mother's Name","Roman Urdu":"Waaldah ka naam"}},{"control":{"appearance":"minimal"},"name":"ethnicity","bind":{"required":"yes"},"label":{"Urdu":"قومیت","English":"Ethnicity","Roman Urdu":"Qomiat"},"instance":{"openmrs_entity_id":"163153AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"163215AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"punjabi","label":{"Urdu":"پنجابی","Roman Urdu":"Punjabi","English":"Punjabi"}},{"instance":{"openmrs_code":"163216AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pushtuns","label":{"Urdu":"پشتون","Roman Urdu":"Pushtun","English":"Pushtun"}},{"instance":{"openmrs_code":"163217AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"sindhi","label":{"Urdu":"سندھی","Roman Urdu":"Sindhi","English":"Sindhi"}},{"instance":{"openmrs_code":"163218AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"saraiki","label":{"Urdu":"سرائیکی","Roman Urdu":"Saraiki","English":"Saraiki"}},{"instance":{"openmrs_code":"163219AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"muhajir","label":{"Urdu":"مہاجر","Roman Urdu":"Muhajir","English":"Muhajir"}},{"instance":{"openmrs_code":"163220AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"balochi","label":{"Urdu":"بلوچی","Roman Urdu":"Balochi","English":"Balochi"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}}]},{"bind":{"relevant":"selected(${ethnicity}, 'other')"},"type":"text","instance":{"openmrs_entity":"concept","openmrs_entity_id":"160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"163330AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ethnicity_other","label":{"Urdu":"وضاحت کریں","Roman Urdu":"Wazaahat karain","English":"Please specify:"}},{"control":{"appearance":"minimal"},"name":"province","default":"${provider_province}","bind":{"required":"yes"},"label":{"Urdu":"صوبہ","Roman Urdu":"Suba","English":"Province"},"instance":{"openmrs_entity":"person_address","openmrs_entity_id":"stateProvince","openmrs_entity_parent":"usual_residence"},"type":"select one","children":[{"name":"kpk","label":{"Urdu":"خیبر پختون خواہ","English":"Khyber Pakhtunkhwa","Roman Urdu":"Khyber Pakhtunkhwa"}},{"name":"sindh","label":{"Urdu":"سندھ","English":"Sindh","Roman Urdu":"Sindh"}},{"name":"balochistan","label":{"Urdu":"بلوچستان","English":"Balochistan","Roman Urdu":"Balochistan"}},{"name":"punjab","label":{"Urdu":"پنجاب","English":"Punjab","Roman Urdu":"Punjab"}},{"name":"gilgit_baltistan","label":{"Urdu":"گلگت بلتستان","English":"Gilgit Baltistan","Roman Urdu":"Gilgit Baltistan"}},{"name":"kashmir","label":{"Urdu":"کشمیر","English":"Kashmir","Roman Urdu":"Kashmir"}},{"name":"fata","label":{"Urdu":"فاٹا","English":"FATA","Roman Urdu":"FATA"}},{"name":"out_of_country","label":{"Urdu":"ملک سے باہر","English":"Out of Country","Roman Urdu":"Mulk se baahir"}}]},{"control":{"appearance":"minimal"},"name":"city_village","choice_filter":"province=${province} or province='na'","default":"${provider_city}","bind":{"required":"yes"},"label":{"Urdu":"شہر","Roman Urdu":"Shehr","English":"City"},"itemset":"cities","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"cityVillage","openmrs_entity_parent":"usual_residence"},"type":"select one"},{"control":{"appearance":"minimal"},"name":"town","choice_filter":"(province=${province} and city=${city_village} ) or city='na'","bind":{"required":"yes"},"label":{"Urdu":"ٹاٰئون/ قصبہ/ بستی","Roman Urdu":"Town / Qasbah / Basti","English":"Town"},"itemset":"towns","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"town","openmrs_entity_parent":"usual_residence"},"type":"select one"},{"control":{"appearance":"minimal"},"name":"union_council","choice_filter":"(province=${province} and city=${city_village} and town=${town}) or town='na'","bind":{"required":"yes"},"label":{"Urdu":"یونین کونسل","Roman Urdu":"Union Council","English":"Union Council"},"itemset":"ucs","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"subTown","openmrs_entity_parent":"usual_residence"},"type":"select one"},{"bind":{"required":"yes"},"type":"text","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"address1","openmrs_entity_parent":"usual_residence"},"name":"address1","label":{"Urdu":"گھر کا پتہ","Roman Urdu":"Ghar ka pata","English":"Home Address"}},{"instance":{"openmrs_entity":"person_address","openmrs_entity_id":"landmark","openmrs_entity_parent":"usual_residence"},"type":"text","name":"landmark","label":{"Urdu":"گھر کے قریب کوئی مشہور جگہ","Roman Urdu":"Ghar ke qareeb koi mashoor jagah","English":"Land Mark"}},{"bind":{"calculate":"jr:choice-name(${province}, '${province}')"},"type":"calculate","name":"provincename"},{"bind":{"calculate":"jr:choice-name(${city_village}, '${city_village}')"},"type":"calculate","name":"city_villagename"},{"bind":{"calculate":"jr:choice-name(${town}, '${town}')"},"type":"calculate","name":"townname"},{"bind":{"calculate":"jr:choice-name(${union_council}, '${union_council}')"},"type":"calculate","name":"union_councilname"},{"type":"note","name":"address","label":{"Urdu":"پتہ: ${address1}, ${landmark}, ${union_councilname}, ${townname}, ${city_villagename}, ${provincename}","English":"Address: ${address1}, ${landmark}, ${union_councilname}, ${townname}, ${city_villagename}, ${provincename}","Roman Urdu":"Pata: ${address1}, ${landmark}, ${union_councilname}, ${townname}, ${city_villagename}, ${provincename}"}},{"instance":{"openmrs_entity_id":"163277AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"geopoint","name":"centre_gps","label":{"Urdu":"حاصل کردہ معلومات کی جگہ کے GPS کارڈینیٹس درج کریں","English":"Collect GPS coordinates of data entry location","Roman Urdu":"Hasil karda malomaat ki jaga ke GPS coordinates darj karain"}},{"name":"child_was_suffering_from_a_disease_at_birth","bind":{"required":"yes"},"label":{"Urdu":"کیا بچہ پیدائش کے وقت کسی مرض میں مبتلا تھا؟","English":"Was the child suffering from a disease at birth?","Roman Urdu":"Kya bacha pedaaish ke waqt kissi marz mai mubtila tha?"},"instance":{"openmrs_entity_id":"159926AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}]},{"name":"reminders_approval","bind":{"required":"yes"},"label":{"Urdu":"کیا آپ اپنے بچے کی اگلی ویکسین کی تاریخ کے لیے SMS موصول کرنا چاہتے ہیں؟","English":"Are you willing to receive SMS reminders for your next visit?","Roman Urdu":"Kya aap apnay bachay ki agli vaccine ki tareekh ke liye SMS mausool karna chahtay hain?"},"instance":{"openmrs_entity_id":"163089AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}]},{"bind":{"jr:constraintMsg":{"Urdu":"فون نمبر گیارہ ہندسوں پر مشتمل اور مندرجہ ذیل شکل میں ہونا چاہئے: *********03","English":"Phone number should be 11 digits in the following format: 03*********","Roman Urdu":"Phone number 11 hindason par mushtamil aur mundarja zail shakal main hona chahiey: 03*********"},"relevant":"${reminders_approval}='yes'","constraint":"regex(., '^03[0-9]{9}$')"},"type":"text","instance":{"openmrs_entity_id":"159635AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"contact_phone_number","label":{"Urdu":"موبائل نمبر:","English":"Mobile Number:","Roman Urdu":"Mobile number:"}},{"bind":{"calculate":"${calc_dob_confirm} + 42"},"type":"calculate","name":"six_weeks"},{"bind":{"calculate":"${calc_dob_confirm} + 70"},"type":"calculate","name":"ten_weeks"},{"bind":{"calculate":"${calc_dob_confirm} + 98"},"type":"calculate","name":"forteen_weeks"},{"bind":{"calculate":"${calc_dob_confirm} + 245"},"type":"calculate","name":"nine_months"},{"bind":{"calculate":"${calc_dob_confirm} + 458"},"type":"calculate","name":"fifteen_months"},{"control":{"appearance":"minimal"},"name":"vaccines","label":{"Urdu":"پچھلی تاریخ جب کسی اور سینٹر پر ٹیکے لگواِے گیے یا قطرے پلائے گئے","Roman Urdu":"Pichli tareekh jab kissi aur center par teekay lagwaye gaye ya katray pilaey gaye","English":"Retro vaccines"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"984AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1421AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"select all that apply","children":[{"instance":{"openmrs_code":"1570AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"bcg","label":{"Urdu":"بی سی جی","Roman Urdu":"BCG","English":"BCG"}},{"instance":{"openmrs_code":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv0","label":{"Urdu":"او پی وی 0","Roman Urdu":"OPV 0","English":"OPV 0"}},{"instance":{"openmrs_code":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv1","label":{"Urdu":"پی سی وی 1","Roman Urdu":"PCV 1","English":"PCV 1"}},{"instance":{"openmrs_code":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv1","label":{"Urdu":"او پی وی 1","Roman Urdu":"OPV 1","English":"OPV 1"}},{"instance":{"openmrs_code":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta1","label":{"Urdu":"پینٹا ویلنٹ 1","Roman Urdu":"Pentavalent 1","English":"Pentavalent 1"}},{"instance":{"openmrs_code":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv2","label":{"Urdu":"پی سی وی 2","Roman Urdu":"PCV 2","English":"PCV 2"}},{"instance":{"openmrs_code":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv2","label":{"Urdu":"او پی وی 2","Roman Urdu":"OPV 2","English":"OPV 2"}},{"instance":{"openmrs_code":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta2","label":{"Urdu":"پینٹا ویلنٹ 2","Roman Urdu":"Pentavalent 2","English":"Pentavalent 2"}},{"instance":{"openmrs_code":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv3","label":{"Urdu":"پی سی وی 3","Roman Urdu":"PCV 3","English":"PCV 3"}},{"instance":{"openmrs_code":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv3","label":{"Urdu":"او پی وی 3","Roman Urdu":"OPV 3","English":"OPV 3"}},{"instance":{"openmrs_code":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta3","label":{"Urdu":"پینٹا ویلنٹ 3","Roman Urdu":"Pentavalent 3","English":"Pentavalent 3"}},{"instance":{"openmrs_code":"82242AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ipv","label":{"Urdu":"آئی پی وی","Roman Urdu":"IPV","English":"IPV"}},{"instance":{"openmrs_code":"79409AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"measles1","label":{"Urdu":"خسرہ 1","Roman Urdu":"Khasra 1","English":"Measles 1"}},{"instance":{"openmrs_code":"79409AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"measles2","label":{"Urdu":"خسرہ 2","Roman Urdu":"Khasra 2","English":"Measles 2"}}]},{"bind":{"relevant":"${vaccines} != ''"},"type":"group","children":[{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'bcg')","constraint":".>= ${calc_dob_confirm} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"886AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"bcg_retro","label":{"Urdu":"بی سی جی","Roman Urdu":"BCG","English":"BCG"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'opv0')","constraint":".>= ${calc_dob_confirm} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv0_retro","label":{"Urdu":"او پی وی 0","Roman Urdu":"OPV 0","English":"OPV 0"}},{"bind":{"relevant":"selected(${vaccines}, 'opv0')","calculate":"0"},"type":"calculate","name":"opv0_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'pcv1')","constraint":".>= ${calc_dob_confirm} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv1_retro","label":{"Urdu":"پی سی وی 1","Roman Urdu":"PCV1","English":"PCV1"}},{"bind":{"relevant":"selected(${vaccines}, 'pcv1')","calculate":"1"},"type":"calculate","name":"pcv1_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'opv1')","constraint":".>= ${calc_dob_confirm} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv1_retro","label":{"Urdu":"او پی وی1","Roman Urdu":"OPV 1","English":"OPV 1"}},{"bind":{"relevant":"selected(${vaccines}, 'opv1')","calculate":"1"},"type":"calculate","name":"opv1_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'penta1')","constraint":".>= ${calc_dob_confirm} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta1_retro","label":{"Urdu":"پینٹا ویلنٹ 1","Roman Urdu":"Pentavalent 1","English":"Pentavalent 1"}},{"bind":{"relevant":"selected(${vaccines}, 'penta1')","calculate":"1"},"type":"calculate","name":"penta1_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'pcv2')","constraint":".>= ${calc_dob_confirm} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv2_retro","label":{"Urdu":"پی سی وی 2","Roman Urdu":"PCV2","English":"PCV2"}},{"bind":{"relevant":"selected(${vaccines}, 'pcv2')","calculate":"2"},"type":"calculate","name":"pcv2_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'opv2')","constraint":".>= ${calc_dob_confirm} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv2_retro","label":{"Urdu":"او پی وی 2","Roman Urdu":"OPV 2","English":"OPV 2"}},{"bind":{"relevant":"selected(${vaccines}, 'opv2')","calculate":"2"},"type":"calculate","name":"opv2_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'penta2')","constraint":".>= ${calc_dob_confirm} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta2_retro","label":{"Urdu":"پینٹا ویلنٹ 2","Roman Urdu":"Pentavalent 2","English":"Pentavalent 2"}},{"bind":{"relevant":"selected(${vaccines}, 'penta2')","calculate":"2"},"type":"calculate","name":"penta2_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'pcv3')","constraint":".>= ${calc_dob_confirm} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv3_retro","label":{"Urdu":"پی سی وی 3","Roman Urdu":"PCV3","English":"PCV3"}},{"bind":{"relevant":"selected(${vaccines}, 'pcv3')","calculate":"3"},"type":"calculate","name":"pcv3_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'opv3')","constraint":".>= ${calc_dob_confirm} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv3_retro","label":{"Urdu":"او پی وی3","Roman Urdu":"OPV 3","English":"OPV 3"}},{"bind":{"relevant":"selected(${vaccines}, 'opv3')","calculate":"3"},"type":"calculate","name":"opv3_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'penta3')","constraint":".>= ${calc_dob_confirm} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta3_retro","label":{"Urdu":"پینٹا ویلنٹ 3","Roman Urdu":"Pentavalent 3","English":"Pentavalent 3"}},{"bind":{"relevant":"selected(${vaccines}, 'penta3')","calculate":"3"},"type":"calculate","name":"penta3_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'ipv')","constraint":".>= ${calc_dob_confirm} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1422AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ipv_retro","label":{"Urdu":"آئی پی وی","Roman Urdu":"IPV","English":"IPV"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'measles1')","constraint":".>= ${calc_dob_confirm} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"measles1_retro","label":{"Urdu":"خسرہ 1","Roman Urdu":"Measles 1","English":"Measles 1"}},{"bind":{"relevant":"selected(${vaccines}, 'measles1')","calculate":"1"},"type":"calculate","name":"measles1_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'measles2')","constraint":".>= ${calc_dob_confirm} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"measles2_retro","label":{"Urdu":"خسرہ 2","Roman Urdu":"Measles2","English":"Measles2"}},{"bind":{"relevant":"selected(${vaccines}, 'measles2')","calculate":"2"},"type":"calculate","name":"measles2_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}}],"name":"vaccines_group"},{"name":"vaccines_2","choice_filter":"name = if(selected(${vaccines}, 'bcg'), '', 'bcg') or \nname = if(selected(${vaccines}, 'opv0'), '', 'opv0') or \nname = if(selected(${vaccines}, 'penta1'), '', 'penta1') or \nname = if(selected(${vaccines}, 'opv1'), '', 'opv1') or \nname = if(selected(${vaccines}, 'pcv1'), '', 'pcv1') or \nname = if(selected(${vaccines}, 'penta2'), '', 'penta2') or \nname = if(selected(${vaccines}, 'opv2'), '', 'opv2') or \nname = if(selected(${vaccines}, 'pcv2'), '', 'pcv2') or \nname = if(selected(${vaccines}, 'penta3'), '', 'penta3') or \nname = if(selected(${vaccines}, 'pcv3'), '', 'pcv3') or \nname = if(selected(${vaccines}, 'opv3'), '', 'opv3') or \nname = if(selected(${vaccines}, 'ipv'), '', 'ipv') or \nname = if(selected(${vaccines}, 'measles1'), '', 'measles1') or \nname = if(selected(${vaccines}, 'measles2'), '', 'measles2')","bind":{"required":"yes"},"label":{"Urdu":"آج کون کون سی ویکسین دی گئی ہیں؟","Roman Urdu":"Aaj kon kon si vaccine di gai hain?","English":"Vaccines administered today"},"itemset":"vaccines","instance":{"openmrs_entity":"concept","openmrs_entity_id":"984AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1441AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"select all that apply"},{"bind":{"calculate":"if(selected(${vaccines_2}, 'bcg'),${client_reg_date},'')"},"type":"calculate","name":"bcg","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"886AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'opv0'),${client_reg_date},'')"},"type":"calculate","name":"opv0","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'opv0')","calculate":"0"},"type":"calculate","name":"opv0_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'pcv1'),${client_reg_date},'')"},"type":"calculate","name":"pcv1","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'pcv1')","calculate":"1"},"type":"calculate","name":"pcv1_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'opv1'),${client_reg_date},'')"},"type":"calculate","name":"opv1","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'opv1')","calculate":"1"},"type":"calculate","name":"opv1_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'penta1'),${client_reg_date},'')"},"type":"calculate","name":"penta1","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'penta1')","calculate":"1"},"type":"calculate","name":"penta1_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'pcv2'),${client_reg_date},'')"},"type":"calculate","name":"pcv2","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'pcv2')","calculate":"2"},"type":"calculate","name":"pcv2_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'opv2'),${client_reg_date},'')"},"type":"calculate","name":"opv2","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'opv2')","calculate":"2"},"type":"calculate","name":"opv2_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'penta2'),${client_reg_date},'')"},"type":"calculate","name":"penta2","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'penta2')","calculate":"2"},"type":"calculate","name":"penta2_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'pcv3'),${client_reg_date},'')"},"type":"calculate","name":"pcv3","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'pcv3')","calculate":"3"},"type":"calculate","name":"pcv3_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'opv3'),${client_reg_date},'')"},"type":"calculate","name":"opv3","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'opv3')","calculate":"3"},"type":"calculate","name":"opv3_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'penta3'),${client_reg_date},'')"},"type":"calculate","name":"penta3","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'penta3')","calculate":"3"},"type":"calculate","name":"penta3_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines}, 'ipv')","calculate":"if(selected(${vaccines_2}, 'ipv'),${client_reg_date},'')"},"type":"calculate","name":"ipv","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1422AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'measles1'),${client_reg_date},'')"},"type":"calculate","name":"measles1","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'measles1')","calculate":"1"},"type":"calculate","name":"measles1_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'measles2'),${client_reg_date},'')"},"type":"calculate","name":"measles2","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'measles2')","calculate":"2"},"type":"calculate","name":"measles2_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"control":{"bodyless":true},"type":"group","children":[{"bind":{"readonly":"true()","calculate":"concat('uuid:', uuid())"},"type":"calculate","name":"instanceID"}],"name":"meta"}]} \ No newline at end of file diff --git a/opensrp-web/src/test/resources/form/child_enrollment/form.xml b/opensrp-web/src/test/resources/form/child_enrollment/form.xml deleted file mode 100644 index 188aa85437..0000000000 --- a/opensrp-web/src/test/resources/form/child_enrollment/form.xml +++ /dev/null @@ -1,1699 +0,0 @@ -
- - -

بچّوں کا انرولمنٹ رجسٹر برائے ٹیکاجات - Child Enrollment Vaccination Register

-
-
- - کیا تاریخ پیدائش معلوم ہے؟ - Is birthdate known? - - Kya tareekh-e-pedaaish maloom hai? -
- - -
-
-
-
- - کیا بچہ پیدائش کے وقت کسی مرض میں مبتلا تھا؟ - Was the child suffering from a disease at birth? - - Kya bacha pedaaish ke waqt kissi marz mai mubtila tha? - * -
- - -
-
-
-
- - کیا آپ اپنے بچے کی اگلی ویکسین کی تاریخ کے لیے SMS موصول کرنا چاہتے ہیں؟ - Are you willing to receive SMS reminders for your next visit? - - Kya aap apnay bachay ki agli vaccine ki tareekh ke liye SMS mausool karna chahtay hain? - * -
- - -
-
-
- - - - - - - - - - - - - -
-
-
- - آج کون کون سی ویکسین دی گئی ہیں؟ - Vaccines administered today - - Aaj kon kon si vaccine di gai hain? - * -
- - - بی سی جی - BCG - 1570AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - BCG - او پی وی 0 - OPV 0 - 783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - OPV 0 - پی سی وی 1 - PCV 1 - 162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - PCV 1 - او پی وی 1 - OPV 1 - 783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - OPV 1 - پینٹا ویلنٹ 1 - Pentavalent 1 - 162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - Pentavalent 1 - پی سی وی 2 - PCV 2 - 162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - PCV 2 - او پی وی 2 - OPV 2 - 783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - OPV 2 - پینٹا ویلنٹ 2 - Pentavalent 2 - 162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - Pentavalent 2 - پی سی وی 3 - PCV 3 - 162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - PCV 3 - او پی وی 3 - OPV 3 - 783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - OPV 3 - پینٹا ویلنٹ 3 - Pentavalent 3 - 162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - Pentavalent 3 - آئی پی وی - IPV - 82242AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - IPV - خسرہ 1 - Measles 1 - 79409AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - Khasra 1 - خسرہ 2 - Measles 2 - 79409AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - Khasra 2 -
-
-
- -
diff --git a/opensrp-web/src/test/resources/form/child_enrollment/form_definition.json b/opensrp-web/src/test/resources/form/child_enrollment/form_definition.json deleted file mode 100644 index ad1aa7f618..0000000000 --- a/opensrp-web/src/test/resources/form/child_enrollment/form_definition.json +++ /dev/null @@ -1,343 +0,0 @@ -{ - "form_data_definition_version" : "1", - "form" : { - "bind_type" : "pkchild", - "default_bind_path" : "/model/instance/Child_Vaccination_Enrollment/", - "fields" : [ { - "name" : "id", - "shouldLoadValue" : true - }, { - "name" : "provider_uc", - "bind" : "/model/instance/Child_Vaccination_Enrollment/provider_uc", - "shouldLoadValue" : true - }, { - "name" : "provider_town", - "bind" : "/model/instance/Child_Vaccination_Enrollment/provider_town", - "shouldLoadValue" : true - }, { - "name" : "provider_city", - "bind" : "/model/instance/Child_Vaccination_Enrollment/provider_city", - "shouldLoadValue" : true - }, { - "name" : "provider_province", - "bind" : "/model/instance/Child_Vaccination_Enrollment/provider_province", - "shouldLoadValue" : true - }, { - "name" : "provider_id", - "bind" : "/model/instance/Child_Vaccination_Enrollment/provider_id", - "shouldLoadValue" : true - }, { - "name" : "provider_location_id", - "bind" : "/model/instance/Child_Vaccination_Enrollment/provider_location_id", - "shouldLoadValue" : true - }, { - "name" : "existing_program_client_id", - "bind" : "/model/instance/Child_Vaccination_Enrollment/existing_program_client_id", - "shouldLoadValue" : true - }, { - "name" : "provider_location_name", - "bind" : "/model/instance/Child_Vaccination_Enrollment/provider_location_name", - "shouldLoadValue" : true - }, { - "name" : "provider_location_note", - "bind" : "/model/instance/Child_Vaccination_Enrollment/provider_location_note" - }, { - "name" : "start", - "bind" : "/model/instance/Child_Vaccination_Enrollment/start" - }, { - "name" : "end", - "bind" : "/model/instance/Child_Vaccination_Enrollment/end" - }, { - "name" : "today", - "bind" : "/model/instance/Child_Vaccination_Enrollment/today" - }, { - "name" : "deviceid", - "bind" : "/model/instance/Child_Vaccination_Enrollment/deviceid" - }, { - "name" : "subscriberid", - "bind" : "/model/instance/Child_Vaccination_Enrollment/subscriberid" - }, { - "name" : "simserial", - "bind" : "/model/instance/Child_Vaccination_Enrollment/simserial" - }, { - "name" : "phonenumber", - "bind" : "/model/instance/Child_Vaccination_Enrollment/phonenumber" - }, { - "name" : "client_reg_date", - "bind" : "/model/instance/Child_Vaccination_Enrollment/client_reg_date" - }, { - "name" : "program_client_id", - "bind" : "/model/instance/Child_Vaccination_Enrollment/program_client_id" - }, { - "name" : "epi_card_number", - "bind" : "/model/instance/Child_Vaccination_Enrollment/epi_card_number" - }, { - "name" : "first_name", - "bind" : "/model/instance/Child_Vaccination_Enrollment/first_name" - }, { - "name" : "last_name", - "bind" : "/model/instance/Child_Vaccination_Enrollment/last_name" - }, { - "name" : "birth_date_known", - "bind" : "/model/instance/Child_Vaccination_Enrollment/member_birth_date_known" - }, { - "name" : "birth_date", - "bind" : "/model/instance/Child_Vaccination_Enrollment/member_birth_date" - }, { - "name" : "age", - "bind" : "/model/instance/Child_Vaccination_Enrollment/age" - }, { - "name" : "calc_age", - "bind" : "/model/instance/Child_Vaccination_Enrollment/calc_age" - }, { - "name" : "calc_dob", - "bind" : "/model/instance/Child_Vaccination_Enrollment/calc_dob" - }, { - "name" : "dob", - "bind" : "/model/instance/Child_Vaccination_Enrollment/calc_dob_confirm" - }, { - "name" : "calc_dob_estimated", - "bind" : "/model/instance/Child_Vaccination_Enrollment/calc_dob_estimated" - }, { - "name" : "calc_age_confirm", - "bind" : "/model/instance/Child_Vaccination_Enrollment/calc_age_confirm" - }, { - "name" : "gender", - "bind" : "/model/instance/Child_Vaccination_Enrollment/gender" - }, { - "name" : "mother_name", - "bind" : "/model/instance/Child_Vaccination_Enrollment/mother_name" - }, { - "name" : "ethnicity", - "bind" : "/model/instance/Child_Vaccination_Enrollment/ethnicity" - }, { - "name" : "ethnicity_other", - "bind" : "/model/instance/Child_Vaccination_Enrollment/ethnicity_other" - }, { - "name" : "province", - "bind" : "/model/instance/Child_Vaccination_Enrollment/province" - }, { - "name" : "city_village", - "bind" : "/model/instance/Child_Vaccination_Enrollment/city_village" - }, { - "name" : "town", - "bind" : "/model/instance/Child_Vaccination_Enrollment/town" - }, { - "name" : "union_council", - "bind" : "/model/instance/Child_Vaccination_Enrollment/union_council" - }, { - "name" : "address1", - "bind" : "/model/instance/Child_Vaccination_Enrollment/address1" - }, { - "name" : "landmark", - "bind" : "/model/instance/Child_Vaccination_Enrollment/landmark" - }, { - "name" : "provincename", - "bind" : "/model/instance/Child_Vaccination_Enrollment/provincename" - }, { - "name" : "city_villagename", - "bind" : "/model/instance/Child_Vaccination_Enrollment/city_villagename" - }, { - "name" : "townname", - "bind" : "/model/instance/Child_Vaccination_Enrollment/townname" - }, { - "name" : "union_councilname", - "bind" : "/model/instance/Child_Vaccination_Enrollment/union_councilname" - }, { - "name" : "address", - "bind" : "/model/instance/Child_Vaccination_Enrollment/address" - }, { - "name" : "centre_gps", - "bind" : "/model/instance/Child_Vaccination_Enrollment/centre_gps" - }, { - "name" : "child_was_suffering_from_a_disease_at_birth", - "bind" : "/model/instance/Child_Vaccination_Enrollment/child_was_suffering_from_a_disease_at_birth" - }, { - "name" : "reminders_approval", - "bind" : "/model/instance/Child_Vaccination_Enrollment/reminders_approval" - }, { - "name" : "contact_phone_number", - "bind" : "/model/instance/Child_Vaccination_Enrollment/contact_phone_number" - }, { - "name" : "six_weeks", - "bind" : "/model/instance/Child_Vaccination_Enrollment/six_weeks" - }, { - "name" : "ten_weeks", - "bind" : "/model/instance/Child_Vaccination_Enrollment/ten_weeks" - }, { - "name" : "forteen_weeks", - "bind" : "/model/instance/Child_Vaccination_Enrollment/forteen_weeks" - }, { - "name" : "nine_months", - "bind" : "/model/instance/Child_Vaccination_Enrollment/nine_months" - }, { - "name" : "fifteen_months", - "bind" : "/model/instance/Child_Vaccination_Enrollment/fifteen_months" - }, { - "name" : "vaccines", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines" - }, { - "name" : "bcg_retro", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/bcg_retro" - }, { - "name" : "opv0_retro", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/opv0_retro" - }, { - "name" : "opv0_dose", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/opv0_dose" - }, { - "name" : "pcv1_retro", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/pcv1_retro" - }, { - "name" : "pcv1_dose", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/pcv1_dose" - }, { - "name" : "opv1_retro", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/opv1_retro" - }, { - "name" : "opv1_dose", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/opv1_dose" - }, { - "name" : "penta1_retro", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/penta1_retro" - }, { - "name" : "penta1_dose", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/penta1_dose" - }, { - "name" : "pcv2_retro", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/pcv2_retro" - }, { - "name" : "pcv2_dose", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/pcv2_dose" - }, { - "name" : "opv2_retro", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/opv2_retro" - }, { - "name" : "opv2_dose", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/opv2_dose" - }, { - "name" : "penta2_retro", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/penta2_retro" - }, { - "name" : "penta2_dose", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/penta2_dose" - }, { - "name" : "pcv3_retro", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/pcv3_retro" - }, { - "name" : "pcv3_dose", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/pcv3_dose" - }, { - "name" : "opv3_retro", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/opv3_retro" - }, { - "name" : "opv3_dose", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/opv3_dose" - }, { - "name" : "penta3_retro", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/penta3_retro" - }, { - "name" : "penta3_dose", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/penta3_dose" - }, { - "name" : "ipv_retro", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/ipv_retro" - }, { - "name" : "measles1_retro", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/measles1_retro" - }, { - "name" : "measles1_dose", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/measles1_dose" - }, { - "name" : "measles2_retro", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/measles2_retro" - }, { - "name" : "measles2_dose", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_group/measles2_dose" - }, { - "name" : "vaccines_2", - "bind" : "/model/instance/Child_Vaccination_Enrollment/vaccines_2" - }, { - "name" : "bcg", - "bind" : "/model/instance/Child_Vaccination_Enrollment/bcg" - }, { - "name" : "opv0", - "bind" : "/model/instance/Child_Vaccination_Enrollment/opv0" - }, { - "name" : "opv0_dose_today", - "bind" : "/model/instance/Child_Vaccination_Enrollment/opv0_dose_today" - }, { - "name" : "pcv1", - "bind" : "/model/instance/Child_Vaccination_Enrollment/pcv1" - }, { - "name" : "pcv1_dose_today", - "bind" : "/model/instance/Child_Vaccination_Enrollment/pcv1_dose_today" - }, { - "name" : "opv1", - "bind" : "/model/instance/Child_Vaccination_Enrollment/opv1" - }, { - "name" : "opv1_dose_today", - "bind" : "/model/instance/Child_Vaccination_Enrollment/opv1_dose_today" - }, { - "name" : "penta1", - "bind" : "/model/instance/Child_Vaccination_Enrollment/penta1" - }, { - "name" : "penta1_dose_today", - "bind" : "/model/instance/Child_Vaccination_Enrollment/penta1_dose_today" - }, { - "name" : "pcv2", - "bind" : "/model/instance/Child_Vaccination_Enrollment/pcv2" - }, { - "name" : "pcv2_dose_today", - "bind" : "/model/instance/Child_Vaccination_Enrollment/pcv2_dose_today" - }, { - "name" : "opv2", - "bind" : "/model/instance/Child_Vaccination_Enrollment/opv2" - }, { - "name" : "opv2_dose_today", - "bind" : "/model/instance/Child_Vaccination_Enrollment/opv2_dose_today" - }, { - "name" : "penta2", - "bind" : "/model/instance/Child_Vaccination_Enrollment/penta2" - }, { - "name" : "penta2_dose_today", - "bind" : "/model/instance/Child_Vaccination_Enrollment/penta2_dose_today" - }, { - "name" : "pcv3", - "bind" : "/model/instance/Child_Vaccination_Enrollment/pcv3" - }, { - "name" : "pcv3_dose_today", - "bind" : "/model/instance/Child_Vaccination_Enrollment/pcv3_dose_today" - }, { - "name" : "opv3", - "bind" : "/model/instance/Child_Vaccination_Enrollment/opv3" - }, { - "name" : "opv3_dose_today", - "bind" : "/model/instance/Child_Vaccination_Enrollment/opv3_dose_today" - }, { - "name" : "penta3", - "bind" : "/model/instance/Child_Vaccination_Enrollment/penta3" - }, { - "name" : "penta3_dose_today", - "bind" : "/model/instance/Child_Vaccination_Enrollment/penta3_dose_today" - }, { - "name" : "ipv", - "bind" : "/model/instance/Child_Vaccination_Enrollment/ipv" - }, { - "name" : "measles1", - "bind" : "/model/instance/Child_Vaccination_Enrollment/measles1" - }, { - "name" : "measles1_dose_today", - "bind" : "/model/instance/Child_Vaccination_Enrollment/measles1_dose_today" - }, { - "name" : "measles2", - "bind" : "/model/instance/Child_Vaccination_Enrollment/measles2" - }, { - "name" : "measles2_dose_today", - "bind" : "/model/instance/Child_Vaccination_Enrollment/measles2_dose_today" - }, { - "name" : "instanceID", - "bind" : "/model/instance/Child_Vaccination_Enrollment/meta/instanceID" - } ] - } -} \ No newline at end of file diff --git a/opensrp-web/src/test/resources/form/child_enrollment/model.xml b/opensrp-web/src/test/resources/form/child_enrollment/model.xml deleted file mode 100644 index f264edd831..0000000000 --- a/opensrp-web/src/test/resources/form/child_enrollment/model.xml +++ /dev/null @@ -1,1690 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - yes - - - - - - - - - - - - - - ${provider_province} - ${provider_city} - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - static_instance-provinces-0 - kpk - - - static_instance-provinces-1 - sindh - - - static_instance-provinces-2 - balochistan - - - static_instance-provinces-3 - punjab - - - static_instance-provinces-4 - gilgit_baltistan - - - static_instance-provinces-5 - kashmir - - - static_instance-provinces-6 - fata - - - static_instance-provinces-7 - out_of_country - - - - - - - static_instance-ucs-0 - sindh - karachi - korangi - bilal_colony - - - static_instance-ucs-1 - sindh - karachi - korangi - nasir_colony - - - static_instance-ucs-2 - sindh - karachi - korangi - chakra_goth - - - static_instance-ucs-3 - sindh - karachi - korangi - mustafa_taj_colony - - - static_instance-ucs-4 - sindh - karachi - korangi - hundred_quarters - - - static_instance-ucs-5 - sindh - karachi - korangi - gulzar_colony - - - static_instance-ucs-6 - sindh - karachi - korangi - korangi_sector_33 - - - static_instance-ucs-7 - sindh - karachi - korangi - zaman_town - - - static_instance-ucs-8 - sindh - karachi - korangi - hasrat_mohani_colony - - - static_instance-ucs-9 - sindh - karachi - baldia - gulshan_e_ghazi - - - static_instance-ucs-10 - sindh - karachi - baldia - ittehad_town - - - static_instance-ucs-11 - sindh - karachi - baldia - islam_nagar - - - static_instance-ucs-12 - sindh - karachi - baldia - nai_abadi - - - static_instance-ucs-13 - sindh - karachi - baldia - saeedabad - - - static_instance-ucs-14 - sindh - karachi - baldia - muslim_mujahid_colony - - - static_instance-ucs-15 - sindh - karachi - baldia - muhajir_camp - - - static_instance-ucs-16 - sindh - karachi - baldia - rasheedabad - - - static_instance-ucs-17 - sindh - karachi - bin_qasim - ibrahim_hyderi - - - static_instance-ucs-18 - sindh - karachi - bin_qasim - rehri - - - static_instance-ucs-19 - sindh - karachi - bin_qasim - cattle_colony - - - static_instance-ucs-20 - sindh - karachi - bin_qasim - qaidabad - - - static_instance-ucs-21 - sindh - karachi - bin_qasim - landhi_colony - - - static_instance-ucs-22 - sindh - karachi - bin_qasim - gulshan_e_hadeed - - - static_instance-ucs-23 - sindh - karachi - bin_qasim - gaghar - - - static_instance-ucs-24 - sindh - karachi - gadap - murad_memon_goth - - - static_instance-ucs-25 - sindh - karachi - gadap - darsano_chana - - - static_instance-ucs-26 - sindh - karachi - gadap - gujro - - - static_instance-ucs-27 - sindh - karachi - gadap - songal - - - static_instance-ucs-28 - sindh - karachi - gadap - maymarabad - - - static_instance-ucs-29 - sindh - karachi - gadap - yousuf_goth - - - static_instance-ucs-30 - sindh - karachi - gadap - manghopir - - - static_instance-ucs-31 - sindh - karachi - gulberg - azizabad - - - static_instance-ucs-32 - sindh - karachi - gulberg - karimabad - - - static_instance-ucs-33 - sindh - karachi - gulberg - aisha_manzil - - - static_instance-ucs-34 - sindh - karachi - gulberg - ancholi - - - static_instance-ucs-35 - sindh - karachi - gulberg - naseerabad - - - static_instance-ucs-36 - sindh - karachi - gulberg - yaseenabad - - - static_instance-ucs-37 - sindh - karachi - gulberg - water_pump - - - static_instance-ucs-38 - sindh - karachi - gulberg - shafiq_mill_colony - - - static_instance-ucs-39 - sindh - karachi - gulshan - delhi_mercantile_society - - - static_instance-ucs-40 - sindh - karachi - gulshan - civic_centre - - - static_instance-ucs-41 - sindh - karachi - gulshan - pir_ilahi_buksh_colony - - - static_instance-ucs-42 - sindh - karachi - gulshan - essa_nagri - - - static_instance-ucs-43 - sindh - karachi - gulshan - gulshan_e_iqbal - - - static_instance-ucs-44 - sindh - karachi - gulshan - gillani_railway_station - - - static_instance-ucs-45 - sindh - karachi - gulshan - shanti_nagar - - - static_instance-ucs-46 - sindh - karachi - gulshan - jamali_colony - - - static_instance-ucs-47 - sindh - karachi - gulshan - gulshan_e_iqbal_ii - - - static_instance-ucs-48 - sindh - karachi - gulshan - pehlwan_goth - - - static_instance-ucs-49 - sindh - karachi - gulshan - matrovil_colony - - - static_instance-ucs-50 - sindh - karachi - gulshan - gulzar_e_hijri - - - static_instance-ucs-51 - sindh - karachi - gulshan - safooran_goth - - - static_instance-ucs-52 - sindh - karachi - jamshed - akhtar_colony - - - static_instance-ucs-53 - sindh - karachi - jamshed - manzoor_colony - - - static_instance-ucs-54 - sindh - karachi - jamshed - azam_basti - - - static_instance-ucs-55 - sindh - karachi - jamshed - chanesar_goth - - - static_instance-ucs-56 - sindh - karachi - jamshed - mahmudabad - - - static_instance-ucs-57 - sindh - karachi - jamshed - pechs - - - static_instance-ucs-58 - sindh - karachi - jamshed - pechs_ii - - - static_instance-ucs-59 - sindh - karachi - jamshed - jut_line - - - static_instance-ucs-60 - sindh - karachi - jamshed - central_jacob_lines - - - static_instance-ucs-61 - sindh - karachi - jamshed - jamshed_quarters - - - static_instance-ucs-62 - sindh - karachi - jamshed - garden_east - - - static_instance-ucs-63 - sindh - karachi - jamshed - soldier_bazar - - - static_instance-ucs-64 - sindh - karachi - jamshed - pakistan_quarters - - - static_instance-ucs-65 - sindh - karachi - kiamari - bhutta_village - - - static_instance-ucs-66 - sindh - karachi - kiamari - sultanabad - - - static_instance-ucs-67 - sindh - karachi - kiamari - kiamari_uc - - - static_instance-ucs-68 - sindh - karachi - kiamari - baba_bhit - - - static_instance-ucs-69 - sindh - karachi - kiamari - machar_colony - - - static_instance-ucs-70 - sindh - karachi - kiamari - maripur - - - static_instance-ucs-71 - sindh - karachi - kiamari - shershah - - - static_instance-ucs-72 - sindh - karachi - kiamari - gabo_pat - - - static_instance-ucs-73 - sindh - karachi - landhi - muzafarabad - - - static_instance-ucs-74 - sindh - karachi - landhi - muslimabad - - - static_instance-ucs-75 - sindh - karachi - landhi - dawood_chowrangi - - - static_instance-ucs-76 - sindh - karachi - landhi - moinabad - - - static_instance-ucs-77 - sindh - karachi - landhi - sharafi_goth - - - static_instance-ucs-78 - sindh - karachi - landhi - bhutto_nagar - - - static_instance-ucs-79 - sindh - karachi - landhi - khawaja_ajmeer_colony - - - static_instance-ucs-80 - sindh - karachi - landhi - landhi_uc - - - static_instance-ucs-81 - sindh - karachi - landhi - awami_colony - - - static_instance-ucs-82 - sindh - karachi - landhi - burmee_colony - - - static_instance-ucs-83 - sindh - karachi - landhi - korangi_uc - - - static_instance-ucs-84 - sindh - karachi - landhi - sherabad - - - static_instance-ucs-85 - sindh - karachi - liaquatabad - rizvia_society - - - static_instance-ucs-86 - sindh - karachi - liaquatabad - firdous_colony - - - static_instance-ucs-87 - sindh - karachi - liaquatabad - super_market - - - static_instance-ucs-88 - sindh - karachi - liaquatabad - dak_khana - - - static_instance-ucs-89 - sindh - karachi - liaquatabad - qasimabad - - - static_instance-ucs-90 - sindh - karachi - liaquatabad - bandhani_colony - - - static_instance-ucs-91 - sindh - karachi - liaquatabad - sharifabad - - - static_instance-ucs-92 - sindh - karachi - liaquatabad - commercial_area - - - static_instance-ucs-93 - sindh - karachi - liaquatabad - mujahid_colony - - - static_instance-ucs-94 - sindh - karachi - liaquatabad - nazimabad - - - static_instance-ucs-95 - sindh - karachi - liaquatabad - abbasi_shaheed - - - static_instance-ucs-96 - sindh - karachi - lyari - agra_taj_colony - - - static_instance-ucs-97 - sindh - karachi - lyari - daryaabad - - - static_instance-ucs-98 - sindh - karachi - lyari - nawabad - - - static_instance-ucs-99 - sindh - karachi - lyari - khada_memon_society - - - static_instance-ucs-100 - sindh - karachi - lyari - baghdadi - - - static_instance-ucs-101 - sindh - karachi - lyari - shah_baig_line - - - static_instance-ucs-102 - sindh - karachi - lyari - bihar_colony - - - static_instance-ucs-103 - sindh - karachi - lyari - ragiwara - - - static_instance-ucs-104 - sindh - karachi - lyari - singo_line - - - static_instance-ucs-105 - sindh - karachi - lyari - chakiwara - - - static_instance-ucs-106 - sindh - karachi - lyari - allama_iqbal_colony - - - static_instance-ucs-107 - sindh - karachi - malir - model_colony - - - static_instance-ucs-108 - sindh - karachi - malir - kala_board - - - static_instance-ucs-109 - sindh - karachi - malir - saudabad - - - static_instance-ucs-110 - sindh - karachi - malir - khokhra_par - - - static_instance-ucs-111 - sindh - karachi - malir - jafar_e_tayyar - - - static_instance-ucs-112 - sindh - karachi - malir - gharibabad - - - static_instance-ucs-113 - sindh - karachi - malir - ghazi_brohi_goth - - - static_instance-ucs-114 - sindh - karachi - new_karachi - kalyana - - - static_instance-ucs-115 - sindh - karachi - new_karachi - sir_syed_colony - - - static_instance-ucs-116 - sindh - karachi - new_karachi - fatima_jinnah_colony - - - static_instance-ucs-117 - sindh - karachi - new_karachi - godhra - - - static_instance-ucs-118 - sindh - karachi - new_karachi - abu_zar_ghaffari - - - static_instance-ucs-119 - sindh - karachi - new_karachi - hakim_ahsan - - - static_instance-ucs-120 - sindh - karachi - new_karachi - madina_colony - - - static_instance-ucs-121 - sindh - karachi - new_karachi - faisal_colony - - - static_instance-ucs-122 - sindh - karachi - new_karachi - khamiso_goth - - - static_instance-ucs-123 - sindh - karachi - new_karachi - mustufa_colony - - - static_instance-ucs-124 - sindh - karachi - new_karachi - khawaja_ajmeer_nagri - - - static_instance-ucs-125 - sindh - karachi - new_karachi - gulshan_e_saeed - - - static_instance-ucs-126 - sindh - karachi - new_karachi - shah_nawaz_bhutto_colony - - - static_instance-ucs-127 - sindh - karachi - north_nazimabad - paposh_nagar - - - static_instance-ucs-128 - sindh - karachi - north_nazimabad - pahar_ganj - - - static_instance-ucs-129 - sindh - karachi - north_nazimabad - khandu_goth - - - static_instance-ucs-130 - sindh - karachi - north_nazimabad - hyderi - - - static_instance-ucs-131 - sindh - karachi - north_nazimabad - sakhi_hassan - - - static_instance-ucs-132 - sindh - karachi - north_nazimabad - farooq_e_azam - - - static_instance-ucs-133 - sindh - karachi - north_nazimabad - nusrat_bhutto_colony - - - static_instance-ucs-134 - sindh - karachi - north_nazimabad - shadman_town - - - static_instance-ucs-135 - sindh - karachi - north_nazimabad - buffer_zone - - - static_instance-ucs-136 - sindh - karachi - north_nazimabad - buffer_zone_ii - - - static_instance-ucs-137 - sindh - karachi - orangi - mominabad - - - static_instance-ucs-138 - sindh - karachi - orangi - haryana_colony - - - static_instance-ucs-139 - sindh - karachi - orangi - hanifabad - - - static_instance-ucs-140 - sindh - karachi - orangi - mohammad_nagar - - - static_instance-ucs-141 - sindh - karachi - orangi - madina_colony_orangi - - - static_instance-ucs-142 - sindh - karachi - orangi - ghaziabad - - - static_instance-ucs-143 - sindh - karachi - orangi - chisti_nagar - - - static_instance-ucs-144 - sindh - karachi - orangi - bilal_colony_orangi - - - static_instance-ucs-145 - sindh - karachi - orangi - iqbal_baloch_colony - - - static_instance-ucs-146 - sindh - karachi - orangi - ghabool_town - - - static_instance-ucs-147 - sindh - karachi - orangi - data_nagar - - - static_instance-ucs-148 - sindh - karachi - orangi - mujahidabad - - - static_instance-ucs-149 - sindh - karachi - orangi - baloch_goth - - - static_instance-ucs-150 - sindh - karachi - saddar - old_haji_camp - - - static_instance-ucs-151 - sindh - karachi - saddar - garden - - - static_instance-ucs-152 - sindh - karachi - saddar - kharadar - - - static_instance-ucs-153 - sindh - karachi - saddar - city_railway_colony - - - static_instance-ucs-154 - sindh - karachi - saddar - nanak_wara - - - static_instance-ucs-155 - sindh - karachi - saddar - gazdarabad - - - static_instance-ucs-156 - sindh - karachi - saddar - millat_nagar_islam_pura - - - static_instance-ucs-157 - sindh - karachi - saddar - saddar_uc - - - static_instance-ucs-158 - sindh - karachi - saddar - civil_line - - - static_instance-ucs-159 - sindh - karachi - saddar - clifton - - - static_instance-ucs-160 - sindh - karachi - saddar - kehkashan - - - static_instance-ucs-161 - sindh - karachi - shah_faisal - natha_khan_goth - - - static_instance-ucs-162 - sindh - karachi - shah_faisal - pak_sadat_colony - - - static_instance-ucs-163 - sindh - karachi - shah_faisal - drigh_colony - - - static_instance-ucs-164 - sindh - karachi - shah_faisal - raita_plot - - - static_instance-ucs-165 - sindh - karachi - shah_faisal - moria_khan_goth - - - static_instance-ucs-166 - sindh - karachi - shah_faisal - rafa_e_aam_society - - - static_instance-ucs-167 - sindh - karachi - shah_faisal - al_falah_society - - - static_instance-ucs-168 - sindh - karachi - site - pak_colony - - - static_instance-ucs-169 - sindh - karachi - site - old_golimar - - - static_instance-ucs-170 - sindh - karachi - site - jahanabad - - - static_instance-ucs-171 - sindh - karachi - site - metrovil - - - static_instance-ucs-172 - sindh - karachi - site - bhawani_chali - - - static_instance-ucs-173 - sindh - karachi - site - frontier_colony - - - static_instance-ucs-174 - sindh - karachi - site - banaras_colony - - - static_instance-ucs-175 - sindh - karachi - site - qasba_colony - - - static_instance-ucs-176 - sindh - karachi - site - islamia_colony - - - static_instance-ucs-177 - na - na - na - other - - - static_instance-ucs-178 - na - na - na - not_applicable - - - - - - - static_instance-gender-0 - male - - - static_instance-gender-1 - female - - - static_instance-gender-2 - transgender - - - - - - - static_instance-vaccines-0 - bcg - - - static_instance-vaccines-1 - opv0 - - - static_instance-vaccines-2 - pcv1 - - - static_instance-vaccines-3 - opv1 - - - static_instance-vaccines-4 - penta1 - - - static_instance-vaccines-5 - pcv2 - - - static_instance-vaccines-6 - opv2 - - - static_instance-vaccines-7 - penta2 - - - static_instance-vaccines-8 - pcv3 - - - static_instance-vaccines-9 - opv3 - - - static_instance-vaccines-10 - penta3 - - - static_instance-vaccines-11 - ipv - - - static_instance-vaccines-12 - measles1 - - - static_instance-vaccines-13 - measles2 - - - - - - - static_instance-towns-0 - sindh - karachi - korangi - - - static_instance-towns-1 - sindh - karachi - landhi - - - static_instance-towns-2 - sindh - karachi - baldia - - - static_instance-towns-3 - sindh - karachi - bin_qasim - - - static_instance-towns-4 - sindh - karachi - gadap - - - static_instance-towns-5 - sindh - karachi - gulberg - - - static_instance-towns-6 - sindh - karachi - gulshan - - - static_instance-towns-7 - sindh - karachi - jamshed - - - static_instance-towns-8 - sindh - karachi - kiamari - - - static_instance-towns-9 - sindh - karachi - liaquatabad - - - static_instance-towns-10 - sindh - karachi - lyari - - - static_instance-towns-11 - sindh - karachi - malir - - - static_instance-towns-12 - sindh - karachi - new_karachi - - - static_instance-towns-13 - sindh - karachi - north_nazimabad - - - static_instance-towns-14 - sindh - karachi - orangi - - - static_instance-towns-15 - sindh - karachi - saddar - - - static_instance-towns-16 - sindh - karachi - shah_faisal - - - static_instance-towns-17 - sindh - karachi - site - - - static_instance-towns-18 - na - na - other - - - static_instance-towns-19 - na - na - not_applicable - - - - - - - static_instance-cities-0 - sindh - karachi - - - static_instance-cities-1 - punjab - hafizabad - - - static_instance-cities-2 - punjab - muzaffargarh - - - static_instance-cities-3 - na - other - - - static_instance-cities-4 - na - not_applicable - - - - - - - static_instance-ethnicity-0 - punjabi - - - static_instance-ethnicity-1 - pushtuns - - - static_instance-ethnicity-2 - sindhi - - - static_instance-ethnicity-3 - saraiki - - - static_instance-ethnicity-4 - muhajir - - - static_instance-ethnicity-5 - balochi - - - static_instance-ethnicity-6 - other - - - - - - - static_instance-yes_no-0 - yes - - - static_instance-yes_no-1 - no - - - - diff --git a/opensrp-web/src/test/resources/form/child_followup/form.json b/opensrp-web/src/test/resources/form/child_followup/form.json deleted file mode 100644 index 7ecafcbbe1..0000000000 --- a/opensrp-web/src/test/resources/form/child_followup/form.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"Child_Vaccination_Followup","title":"بچّوں کا فالو اپ رجسٹر برائے ٹیکاجات - Child Follow Up Vaccination Register","sms_keyword":"child_vaccination_followup","default_language":"English","choices":{"provinces":[{"name":"kpk","label":{"Urdu":"خیبر پختون خواہ","English":"Khyber Pakhtunkhwa","Roman Urdu":"Khyber Pakhtunkhwa"}},{"name":"sindh","label":{"Urdu":"سندھ","English":"Sindh","Roman Urdu":"Sindh"}},{"name":"balochistan","label":{"Urdu":"بلوچستان","English":"Balochistan","Roman Urdu":"Balochistan"}},{"name":"punjab","label":{"Urdu":"پنجاب","English":"Punjab","Roman Urdu":"Punjab"}},{"name":"gilgit_baltistan","label":{"Urdu":"گلگت بلتستان","English":"Gilgit Baltistan","Roman Urdu":"Gilgit Baltistan"}},{"name":"kashmir","label":{"Urdu":"کشمیر","English":"Kashmir","Roman Urdu":"Kashmir"}},{"name":"fata","label":{"Urdu":"فاٹا","English":"FATA","Roman Urdu":"FATA"}},{"name":"out_of_country","label":{"Urdu":"ملک سے باہر","English":"Out of Country","Roman Urdu":"Out of Country"}}],"ucs":[{"province":"sindh","city":"karachi","town":"korangi","name":"bilal_colony","label":{"Urdu":"بلال کالونی","Roman Urdu":"Bilal Colony","English":"Bilal Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"nasir_colony","label":{"Urdu":"ناصر کالونی","Roman Urdu":"Nasir Colony","English":"Nasir Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"chakra_goth","label":{"Urdu":"چکرا گوٹھ","Roman Urdu":"Chakra Goth","English":"Chakra Goth"}},{"province":"sindh","city":"karachi","town":"korangi","name":"mustafa_taj_colony","label":{"Urdu":"مصطفی تاج کالونی","Roman Urdu":"Mustafa Taj Colony","English":"Mustafa Taj Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"hundred_quarters","label":{"Urdu":"ہنڈریڈ کوارٹر","Roman Urdu":"Hundred Quarters","English":"Hundred Quarters"}},{"province":"sindh","city":"karachi","town":"korangi","name":"gulzar_colony","label":{"Urdu":"گلزار کالونی","Roman Urdu":"Gulzar Colony","English":"Gulzar Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"korangi_sector_33","label":{"Urdu":"کورنگی سیکٹر 33","Roman Urdu":"Korangi Sector 33","English":"Korangi Sector 33"}},{"province":"sindh","city":"karachi","town":"korangi","name":"zaman_town","label":{"Urdu":"زمان ٹاوَن","Roman Urdu":"Zaman Town","English":"Zaman Town"}},{"province":"sindh","city":"karachi","town":"korangi","name":"hasrat_mohani_colony","label":{"Urdu":"حسرت موہانی کالونی","Roman Urdu":"Hasrat Mohani Colony","English":"Hasrat Mohani Colony"}},{"province":"sindh","city":"karachi","town":"baldia","name":"gulshan_e_ghazi","label":{"Urdu":"گلشن غازی","Roman Urdu":"Gulshan-e-Ghazi","English":"Gulshan-e-Ghazi"}},{"province":"sindh","city":"karachi","town":"baldia","name":"ittehad_town","label":{"Urdu":"اتحاد ٹاوَن","Roman Urdu":"Ittehad Town","English":"Ittehad Town"}},{"province":"sindh","city":"karachi","town":"baldia","name":"islam_nagar","label":{"Urdu":"اسلام نگر","Roman Urdu":"Islam Nagar","English":"Islam Nagar"}},{"province":"sindh","city":"karachi","town":"baldia","name":"nai_abadi","label":{"Urdu":"نئی آبادی","Roman Urdu":"Nai Abadi","English":"Nai Abadi"}},{"province":"sindh","city":"karachi","town":"baldia","name":"saeedabad","label":{"Urdu":"سعید آباد","Roman Urdu":"Saeedabad","English":"Saeedabad"}},{"province":"sindh","city":"karachi","town":"baldia","name":"muslim_mujahid_colony","label":{"Urdu":"مسلم مجاہد کالونی","Roman Urdu":"Muslim Mujahid Colony","English":"Muslim Mujahid Colony"}},{"province":"sindh","city":"karachi","town":"baldia","name":"muhajir_camp","label":{"Urdu":"مہاجر کیمپ","Roman Urdu":"Muhajir Camp","English":"Muhajir Camp"}},{"province":"sindh","city":"karachi","town":"baldia","name":"rasheedabad","label":{"Urdu":"رشید آباد","Roman Urdu":"Rasheedabad","English":"Rasheedabad"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"ibrahim_hyderi","label":{"Urdu":"ابراہیم حیدری","Roman Urdu":"Ibrahim Hyderi","English":"Ibrahim Hyderi"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"rehri","label":{"Urdu":"رہڑی","Roman Urdu":"Rehri","English":"Rehri"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"cattle_colony","label":{"Urdu":"کیٹل کالونی","Roman Urdu":"Cattle Colony","English":"Cattle Colony"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"qaidabad","label":{"Urdu":"قائدآباد","Roman Urdu":"Qaidabad","English":"Qaidabad"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"landhi_colony","label":{"Urdu":"لانڈھی کالونی","Roman Urdu":"Landhi Colony","English":"Landhi Colony"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"gulshan_e_hadeed","label":{"Urdu":"گلشن حدید","Roman Urdu":"Gulshan-e-Hadeed","English":"Gulshan-e-Hadeed"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"gaghar","label":{"Urdu":"گگر","Roman Urdu":"Gaghar","English":"Gaghar"}},{"province":"sindh","city":"karachi","town":"gadap","name":"murad_memon_goth","label":{"Urdu":"مراد میمن گوٹھ","Roman Urdu":"Murad Memon Goth","English":"Murad Memon Goth"}},{"province":"sindh","city":"karachi","town":"gadap","name":"darsano_chana","label":{"Urdu":"درشانو شنو","Roman Urdu":"Darsano Chana","English":"Darsano Chana"}},{"province":"sindh","city":"karachi","town":"gadap","name":"gujro","label":{"Urdu":"گجرو","Roman Urdu":"Gujro","English":"Gujro"}},{"province":"sindh","city":"karachi","town":"gadap","name":"songal","label":{"Urdu":"سنگل","Roman Urdu":"Songal","English":"Songal"}},{"province":"sindh","city":"karachi","town":"gadap","name":"maymarabad","label":{"Urdu":"معمار آباد","Roman Urdu":"Maymarabad","English":"Maymarabad"}},{"province":"sindh","city":"karachi","town":"gadap","name":"yousuf_goth","label":{"Urdu":"یوسف گوٹھ","Roman Urdu":"Yousuf Goth","English":"Yousuf Goth"}},{"province":"sindh","city":"karachi","town":"gadap","name":"manghopir","label":{"Urdu":"منگھوپیر","Roman Urdu":"Manghopir","English":"Manghopir"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"azizabad","label":{"Urdu":"عزیز آباد","Roman Urdu":"Azizabad","English":"Azizabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"karimabad","label":{"Urdu":"کریم آباد","Roman Urdu":"Karimabad","English":"Karimabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"aisha_manzil","label":{"Urdu":"عائشہ منزل","Roman Urdu":"Aisha Manzil","English":"Aisha Manzil"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"ancholi","label":{"Urdu":"انچولی","Roman Urdu":"Ancholi","English":"Ancholi"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"naseerabad","label":{"Urdu":"نصیرآباد","Roman Urdu":"Naseerabad","English":"Naseerabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"yaseenabad","label":{"Urdu":"یاسین آباد","Roman Urdu":"Yaseenabad","English":"Yaseenabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"water_pump","label":{"Urdu":"واٹرپمپ","Roman Urdu":"Water Pump","English":"Water Pump"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"shafiq_mill_colony","label":{"Urdu":"شفیق مل کالونی","Roman Urdu":"Shafiq Mill Colony","English":"Shafiq Mill Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"delhi_mercantile_society","label":{"Urdu":"دہلی مرچنٹائل سوسائٹی","Roman Urdu":"Delhi Mercantile Society","English":"Delhi Mercantile Society"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"civic_centre","label":{"Urdu":"سوک سینٹر","Roman Urdu":"Civic Centre","English":"Civic Centre"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"pir_ilahi_buksh_colony","label":{"Urdu":"پیر الہی بخش کالونی","Roman Urdu":"Pir Ilahi Buksh Colony","English":"Pir Ilahi Buksh Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"essa_nagri","label":{"Urdu":"عیسی نگری","Roman Urdu":"Essa Nagri","English":"Essa Nagri"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gulshan_e_iqbal","label":{"Urdu":"گلشن اقبال","Roman Urdu":"Gulshan-e-Iqbal","English":"Gulshan-e-Iqbal"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gillani_railway_station","label":{"Urdu":"گیلانی ریلوے اسٹیشن","Roman Urdu":"Gillani Railway Station","English":"Gillani Railway Station"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"shanti_nagar","label":{"Urdu":"شانتی نگر","Roman Urdu":"Shanti Nagar","English":"Shanti Nagar"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"jamali_colony","label":{"Urdu":"جمالی کالونی","Roman Urdu":"Jamali Colony","English":"Jamali Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gulshan_e_iqbal_ii","label":{"Urdu":"گلشن اقبال 2","Roman Urdu":"Gulshan-e-Iqbal II","English":"Gulshan-e-Iqbal II"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"pehlwan_goth","label":{"Urdu":"پہلوان گوٹھ","Roman Urdu":"Pehlwan Goth","English":"Pehlwan Goth"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"matrovil_colony","label":{"Urdu":"میٹروویل کالونی","Roman Urdu":"Matrovil Colony","English":"Matrovil Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gulzar_e_hijri","label":{"Urdu":"گلزار ہجری","Roman Urdu":"Gulzar-e-Hijri","English":"Gulzar-e-Hijri"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"safooran_goth","label":{"Urdu":"صفورا گوٹھ","Roman Urdu":"Safooran Goth","English":"Safooran Goth"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"akhtar_colony","label":{"Urdu":"اختر کالونی","Roman Urdu":"Akhtar Colony","English":"Akhtar Colony"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"manzoor_colony","label":{"Urdu":"منظور کالونی","Roman Urdu":"Manzoor Colony","English":"Manzoor Colony"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"azam_basti","label":{"Urdu":"اعظم بستی","Roman Urdu":"Azam Basti","English":"Azam Basti"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"chanesar_goth","label":{"Urdu":"چنیسر گوٹھ","Roman Urdu":"Chanesar Goth","English":"Chanesar Goth"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"mahmudabad","label":{"Urdu":"محمودآباد","Roman Urdu":"Mahmudabad","English":"Mahmudabad"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"pechs","label":{"Urdu":"پی۔ای۔سی۔ایچ۔ایس","Roman Urdu":"P.E.C.H.S.","English":"P.E.C.H.S."}},{"province":"sindh","city":"karachi","town":"jamshed","name":"pechs_ii","label":{"Urdu":"پی۔ای۔سی۔ایچ۔ایس 2","Roman Urdu":"P.E.C.H.S. II","English":"P.E.C.H.S. II"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"jut_line","label":{"Urdu":"جٹ لائن","Roman Urdu":"Jut Line","English":"Jut Line"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"central_jacob_lines","label":{"Urdu":"سینٹرل جیکب لائن","Roman Urdu":"Central Jacob Lines","English":"Central Jacob Lines"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"jamshed_quarters","label":{"Urdu":"جمشید کوارٹر","Roman Urdu":"Jamshed Quarters","English":"Jamshed Quarters"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"garden_east","label":{"Urdu":"گارڈن ایسٹ","Roman Urdu":"Garden East","English":"Garden East"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"soldier_bazar","label":{"Urdu":"سولجر بازار","Roman Urdu":"Soldier Bazar","English":"Soldier Bazar"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"pakistan_quarters","label":{"Urdu":"پاکستان کوارٹر","Roman Urdu":"Pakistan Quarters","English":"Pakistan Quarters"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"bhutta_village","label":{"Urdu":"بھٹا ولیج","Roman Urdu":"Bhutta Village","English":"Bhutta Village"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"sultanabad","label":{"Urdu":"سلطان آباد","Roman Urdu":"Sultanabad","English":"Sultanabad"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"kiamari_uc","label":{"Urdu":"کیماری یو- سی","Roman Urdu":"Kiamari UC","English":"Kiamari UC"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"baba_bhit","label":{"Urdu":"بابا بھٹ","Roman Urdu":"Baba Bhit","English":"Baba Bhit"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"machar_colony","label":{"Urdu":"مچھر کالونی","Roman Urdu":"Machar Colony","English":"Machar Colony"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"maripur","label":{"Urdu":"ماڑی پور","Roman Urdu":"Maripur","English":"Maripur"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"shershah","label":{"Urdu":"شیرشاہ","Roman Urdu":"SherShah","English":"SherShah"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"gabo_pat","label":{"Urdu":"گابو پٹ","Roman Urdu":"Gabo Pat","English":"Gabo Pat"}},{"province":"sindh","city":"karachi","town":"landhi","name":"muzafarabad","label":{"Urdu":"مظفرآباد","Roman Urdu":"Muzafarabad","English":"Muzafarabad"}},{"province":"sindh","city":"karachi","town":"landhi","name":"muslimabad","label":{"Urdu":"مسلم آباد","Roman Urdu":"Muslimabad","English":"Muslimabad"}},{"province":"sindh","city":"karachi","town":"landhi","name":"dawood_chowrangi","label":{"Urdu":"داوَد چورنگی","Roman Urdu":"Dawood Chowrangi","English":"Dawood Chowrangi"}},{"province":"sindh","city":"karachi","town":"landhi","name":"moinabad","label":{"Urdu":"معین آباد","Roman Urdu":"Moinabad","English":"Moinabad"}},{"province":"sindh","city":"karachi","town":"landhi","name":"sharafi_goth","label":{"Urdu":"شرافی گوٹھ","Roman Urdu":"Sharafi Goth","English":"Sharafi Goth"}},{"province":"sindh","city":"karachi","town":"landhi","name":"bhutto_nagar","label":{"Urdu":"بھٹو نگر","Roman Urdu":"Bhutto Nagar","English":"Bhutto Nagar"}},{"province":"sindh","city":"karachi","town":"landhi","name":"khawaja_ajmeer_colony","label":{"Urdu":"خواجہ اجمیر کالونی","Roman Urdu":"Khawaja Ajmeer Colony","English":"Khawaja Ajmeer Colony"}},{"province":"sindh","city":"karachi","town":"landhi","name":"landhi_uc","label":{"Urdu":"لانڈھی یوسی","Roman Urdu":"Landhi UC","English":"Landhi UC"}},{"province":"sindh","city":"karachi","town":"landhi","name":"awami_colony","label":{"Urdu":"عوامی کالونی","Roman Urdu":"Awami Colony","English":"Awami Colony"}},{"province":"sindh","city":"karachi","town":"landhi","name":"burmee_colony","label":{"Urdu":"برمی کالونی","Roman Urdu":"Burmee Colony","English":"Burmee Colony"}},{"province":"sindh","city":"karachi","town":"landhi","name":"korangi_uc","label":{"Urdu":"کورنگی یوسی","Roman Urdu":"Korangi UC","English":"Korangi UC"}},{"province":"sindh","city":"karachi","town":"landhi","name":"sherabad","label":{"Urdu":"شیرآباد","Roman Urdu":"Sherabad","English":"Sherabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"rizvia_society","label":{"Urdu":"رضویہ سوسائٹی","Roman Urdu":"Rizvia Society","English":"Rizvia Society"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"firdous_colony","label":{"Urdu":"فردوس کالونی","Roman Urdu":"Firdous Colony","English":"Firdous Colony"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"super_market","label":{"Urdu":"سپر مارکیٹ","Roman Urdu":"Super Market","English":"Super Market"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"dak_khana","label":{"Urdu":"دک کھانہ","Roman Urdu":"Dak Khana","English":"Dak Khana"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"qasimabad","label":{"Urdu":"قاسم آباد","Roman Urdu":"Qasimabad","English":"Qasimabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"bandhani_colony","label":{"Urdu":"بندھانی کالونی","Roman Urdu":"Bandhani Colony","English":"Bandhani Colony"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"sharifabad","label":{"Urdu":"شریف آباد","Roman Urdu":"Sharifabad","English":"Sharifabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"commercial_area","label":{"Urdu":"کمرشل ایریا","Roman Urdu":"Commercial Area","English":"Commercial Area"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"mujahid_colony","label":{"Urdu":"مجاہد کالونی","Roman Urdu":"Mujahid Colony","English":"Mujahid Colony"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"nazimabad","label":{"Urdu":"ناظم آباد","Roman Urdu":"Nazimabad","English":"Nazimabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"abbasi_shaheed","label":{"Urdu":"عباسی شہید","Roman Urdu":"Abbasi Shaheed","English":"Abbasi Shaheed"}},{"province":"sindh","city":"karachi","town":"lyari","name":"agra_taj_colony","label":{"Urdu":"آگرہ تاج کالونی","Roman Urdu":"Agra Taj Colony","English":"Agra Taj Colony"}},{"province":"sindh","city":"karachi","town":"lyari","name":"daryaabad","label":{"Urdu":"دریاآباد","Roman Urdu":"Daryaabad","English":"Daryaabad"}},{"province":"sindh","city":"karachi","town":"lyari","name":"nawabad","label":{"Urdu":"نواآباد","Roman Urdu":"Nawabad","English":"Nawabad"}},{"province":"sindh","city":"karachi","town":"lyari","name":"khada_memon_society","label":{"Urdu":"خدا- میمن- سوساَٹی","Roman Urdu":"Khada Memon Society","English":"Khada Memon Society"}},{"province":"sindh","city":"karachi","town":"lyari","name":"baghdadi","label":{"Urdu":"بغدادی","Roman Urdu":"Baghdadi","English":"Baghdadi"}},{"province":"sindh","city":"karachi","town":"lyari","name":"shah_baig_line","label":{"Urdu":"شاھ باغ لائن","Roman Urdu":"Shah Baig Line","English":"Shah Baig Line"}},{"province":"sindh","city":"karachi","town":"lyari","name":"bihar_colony","label":{"Urdu":"بہار کالونی","Roman Urdu":"Bihar Colony","English":"Bihar Colony"}},{"province":"sindh","city":"karachi","town":"lyari","name":"ragiwara","label":{"Urdu":"راگی واڑا","Roman Urdu":"Ragiwara","English":"Ragiwara"}},{"province":"sindh","city":"karachi","town":"lyari","name":"singo_line","label":{"Urdu":"سنگولائن","Roman Urdu":"Singo Line","English":"Singo Line"}},{"province":"sindh","city":"karachi","town":"lyari","name":"chakiwara","label":{"Urdu":"چاکی واڑا","Roman Urdu":"Chakiwara","English":"Chakiwara"}},{"province":"sindh","city":"karachi","town":"lyari","name":"allama_iqbal_colony","label":{"Urdu":"علامہ اقبال کالونی","Roman Urdu":"Allama Iqbal Colony","English":"Allama Iqbal Colony"}},{"province":"sindh","city":"karachi","town":"malir","name":"model_colony","label":{"Urdu":"موڈل کالونی","Roman Urdu":"Model Colony","English":"Model Colony"}},{"province":"sindh","city":"karachi","town":"malir","name":"kala_board","label":{"Urdu":"کالا بورڈ","Roman Urdu":"Kala Board","English":"Kala Board"}},{"province":"sindh","city":"karachi","town":"malir","name":"saudabad","label":{"Urdu":"سعودآباد","Roman Urdu":"Saudabad","English":"Saudabad"}},{"province":"sindh","city":"karachi","town":"malir","name":"khokhra_par","label":{"Urdu":"کھوکھرا پار","Roman Urdu":"Khokhra Par","English":"Khokhra Par"}},{"province":"sindh","city":"karachi","town":"malir","name":"jafar_e_tayyar","label":{"Urdu":"جعفر تیار","Roman Urdu":"Jafar-e-Tayyar","English":"Jafar-e-Tayyar"}},{"province":"sindh","city":"karachi","town":"malir","name":"gharibabad","label":{"Urdu":"غریب آباد","Roman Urdu":"Gharibabad","English":"Gharibabad"}},{"province":"sindh","city":"karachi","town":"malir","name":"ghazi_brohi_goth","label":{"Urdu":"غازی بروہی گوٹھ","Roman Urdu":"Ghazi Brohi Goth","English":"Ghazi Brohi Goth"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"kalyana","label":{"Urdu":"کالیانہ","Roman Urdu":"Kalyana","English":"Kalyana"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"sir_syed_colony","label":{"Urdu":"سر سید کالونی","Roman Urdu":"Sir Syed Colony","English":"Sir Syed Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"fatima_jinnah_colony","label":{"Urdu":"فاطمہ جناح کالونی","Roman Urdu":"Fatima Jinnah Colony","English":"Fatima Jinnah Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"godhra","label":{"Urdu":"گودھرا","Roman Urdu":"Godhra","English":"Godhra"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"abu_zar_ghaffari","label":{"Urdu":"ابو زر غفاری","Roman Urdu":"Abu Zar Ghaffari","English":"Abu Zar Ghaffari"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"hakim_ahsan","label":{"Urdu":"حاکم احسان","Roman Urdu":"Hakim Ahsan","English":"Hakim Ahsan"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"madina_colony","label":{"Urdu":"مدینہ کالونی","Roman Urdu":"Madina Colony","English":"Madina Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"faisal_colony","label":{"Urdu":"فیصل کالونی","Roman Urdu":"Faisal Colony","English":"Faisal Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"khamiso_goth","label":{"Urdu":"خمیسو گوٹھ","Roman Urdu":"Khamiso Goth","English":"Khamiso Goth"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"mustufa_colony","label":{"Urdu":"مصطفی کالونی","Roman Urdu":"Mustufa Colony","English":"Mustufa Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"khawaja_ajmeer_nagri","label":{"Urdu":"خواجہ اجمیر نگری","Roman Urdu":"Khawaja Ajmeer Nagri","English":"Khawaja Ajmeer Nagri"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"gulshan_e_saeed","label":{"Urdu":"گلشن سعید","Roman Urdu":"Gulshan-e-Saeed","English":"Gulshan-e-Saeed"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"shah_nawaz_bhutto_colony","label":{"Urdu":"شاہ نواز بھٹو کالونی","Roman Urdu":"Shah Nawaz Bhutto Colony","English":"Shah Nawaz Bhutto Colony"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"paposh_nagar","label":{"Urdu":"پاپوش نگر","Roman Urdu":"Paposh Nagar","English":"Paposh Nagar"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"pahar_ganj","label":{"Urdu":"پہاڑ گنج","Roman Urdu":"Pahar Ganj","English":"Pahar Ganj"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"khandu_goth","label":{"Urdu":"کھنڑو گوٹھ","Roman Urdu":"Khandu Goth","English":"Khandu Goth"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"hyderi","label":{"Urdu":"حیدری","Roman Urdu":"Hyderi","English":"Hyderi"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"sakhi_hassan","label":{"Urdu":"سخی حسن","Roman Urdu":"Sakhi Hassan","English":"Sakhi Hassan"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"farooq_e_azam","label":{"Urdu":"فاروق اعظم","Roman Urdu":"Farooq-e-Azam","English":"Farooq-e-Azam"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"nusrat_bhutto_colony","label":{"Urdu":"نصرت بھٹو کالونی","Roman Urdu":"Nusrat Bhutto Colony","English":"Nusrat Bhutto Colony"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"shadman_town","label":{"Urdu":"شادمان ٹاوَن","Roman Urdu":"Shadman Town","English":"Shadman Town"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"buffer_zone","label":{"Urdu":"بفرزون","Roman Urdu":"Buffer Zone","English":"Buffer Zone"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"buffer_zone_ii","label":{"Urdu":"بفرزون 2","Roman Urdu":"Buffer Zone II","English":"Buffer Zone II"}},{"province":"sindh","city":"karachi","town":"orangi","name":"mominabad","label":{"Urdu":"مومن آباد","Roman Urdu":"Mominabad","English":"Mominabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"haryana_colony","label":{"Urdu":"حریانہ کالونی","Roman Urdu":"Haryana Colony","English":"Haryana Colony"}},{"province":"sindh","city":"karachi","town":"orangi","name":"hanifabad","label":{"Urdu":"حنیف آباد","Roman Urdu":"Hanifabad","English":"Hanifabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"mohammad_nagar","label":{"Urdu":"محمد نگر","Roman Urdu":"Mohammad Nagar","English":"Mohammad Nagar"}},{"province":"sindh","city":"karachi","town":"orangi","name":"madina_colony_orangi","label":{"Urdu":"مدینہ کالونی اورنگی","Roman Urdu":"Madina Colony Orangi","English":"Madina Colony Orangi"}},{"province":"sindh","city":"karachi","town":"orangi","name":"ghaziabad","label":{"Urdu":"غازی آباد","Roman Urdu":"Ghaziabad","English":"Ghaziabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"chisti_nagar","label":{"Urdu":"چشتی نگر","Roman Urdu":"Chisti Nagar","English":"Chisti Nagar"}},{"province":"sindh","city":"karachi","town":"orangi","name":"bilal_colony_orangi","label":{"Urdu":"بلال کالونی اورنگی","Roman Urdu":"Bilal Colony Orangi","English":"Bilal Colony Orangi"}},{"province":"sindh","city":"karachi","town":"orangi","name":"iqbal_baloch_colony","label":{"Urdu":"اقبال بلوچ کالونی","Roman Urdu":"Iqbal Baloch Colony","English":"Iqbal Baloch Colony"}},{"province":"sindh","city":"karachi","town":"orangi","name":"ghabool_town","label":{"Urdu":"گبول ٹاوَن","Roman Urdu":"Ghabool Town","English":"Ghabool Town"}},{"province":"sindh","city":"karachi","town":"orangi","name":"data_nagar","label":{"Urdu":"داتا نگر","Roman Urdu":"Data Nagar","English":"Data Nagar"}},{"province":"sindh","city":"karachi","town":"orangi","name":"mujahidabad","label":{"Urdu":"مجاہد آباد","Roman Urdu":"Mujahidabad","English":"Mujahidabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"baloch_goth","label":{"Urdu":"بلوچ گوٹھ","Roman Urdu":"Baloch Goth","English":"Baloch Goth"}},{"province":"sindh","city":"karachi","town":"saddar","name":"old_haji_camp","label":{"Urdu":"پرانہ حاجی کیمپ","Roman Urdu":"Old Haji Camp","English":"Old Haji Camp"}},{"province":"sindh","city":"karachi","town":"saddar","name":"garden","label":{"Urdu":"گارڈن","Roman Urdu":"Garden","English":"Garden"}},{"province":"sindh","city":"karachi","town":"saddar","name":"kharadar","label":{"Urdu":"کھارادر","Roman Urdu":"Kharadar","English":"Kharadar"}},{"province":"sindh","city":"karachi","town":"saddar","name":"city_railway_colony","label":{"Urdu":"سٹی ریلوے کالونی","Roman Urdu":"City Railway Colony","English":"City Railway Colony"}},{"province":"sindh","city":"karachi","town":"saddar","name":"nanak_wara","label":{"Urdu":"ناناک واڑا","Roman Urdu":"Nanak Wara","English":"Nanak Wara"}},{"province":"sindh","city":"karachi","town":"saddar","name":"gazdarabad","label":{"Urdu":"گزدرآباد","Roman Urdu":"Gazdarabad","English":"Gazdarabad"}},{"province":"sindh","city":"karachi","town":"saddar","name":"millat_nagar_islam_pura","label":{"Urdu":"ملت نگر اسلام پورا","Roman Urdu":"Millat Nagar/Islam Pura","English":"Millat Nagar/Islam Pura"}},{"province":"sindh","city":"karachi","town":"saddar","name":"saddar_uc","label":{"Urdu":"صدر یو سی","Roman Urdu":"Saddar UC","English":"Saddar UC"}},{"province":"sindh","city":"karachi","town":"saddar","name":"civil_line","label":{"Urdu":"سول لائن","Roman Urdu":"Civil Line","English":"Civil Line"}},{"province":"sindh","city":"karachi","town":"saddar","name":"clifton","label":{"Urdu":"کلفٹن","Roman Urdu":"Clifton","English":"Clifton"}},{"province":"sindh","city":"karachi","town":"saddar","name":"kehkashan","label":{"Urdu":"کہکشان","Roman Urdu":"Kehkashan","English":"Kehkashan"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"natha_khan_goth","label":{"Urdu":"ناتھا خان گوٹھ","Roman Urdu":"Natha Khan Goth","English":"Natha Khan Goth"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"pak_sadat_colony","label":{"Urdu":"پاک صدر کالونی","Roman Urdu":"Pak Sadat Colony","English":"Pak Sadat Colony"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"drigh_colony","label":{"Urdu":"ڈرگ کالونی","Roman Urdu":"Drigh Colony","English":"Drigh Colony"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"raita_plot","label":{"Urdu":"رائتا پلاٹ","Roman Urdu":"Raita Plot","English":"Raita Plot"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"moria_khan_goth","label":{"Urdu":"موریا خان گوٹھ","Roman Urdu":"Moria Khan Goth","English":"Moria Khan Goth"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"rafa_e_aam_society","label":{"Urdu":"رفا عام سوسا ئٹی","Roman Urdu":"Rafa-e-Aam Society","English":"Rafa-e-Aam Society"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"al_falah_society","label":{"Urdu":"الفلاح سوسا ئٹی","Roman Urdu":"Al-Falah Society","English":"Al-Falah Society"}},{"province":"sindh","city":"karachi","town":"site","name":"pak_colony","label":{"Urdu":"پاک کالونی","Roman Urdu":"Pak Colony","English":"Pak Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"old_golimar","label":{"Urdu":"پرانہ گولی مار","Roman Urdu":"Old Golimar","English":"Old Golimar"}},{"province":"sindh","city":"karachi","town":"site","name":"jahanabad","label":{"Urdu":"جہان آباد","Roman Urdu":"Jahanabad","English":"Jahanabad"}},{"province":"sindh","city":"karachi","town":"site","name":"metrovil","label":{"Urdu":"میٹروویل","Roman Urdu":"Metrovil","English":"Metrovil"}},{"province":"sindh","city":"karachi","town":"site","name":"bhawani_chali","label":{"Urdu":"بہوانی چالی","Roman Urdu":"Bhawani Chali","English":"Bhawani Chali"}},{"province":"sindh","city":"karachi","town":"site","name":"frontier_colony","label":{"Urdu":"فرونٹر کالونی","Roman Urdu":"Frontier Colony","English":"Frontier Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"banaras_colony","label":{"Urdu":"بنارس کالونی","Roman Urdu":"Banaras Colony","English":"Banaras Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"qasba_colony","label":{"Urdu":"قصبہ کالونی","Roman Urdu":"Qasba Colony","English":"Qasba Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"islamia_colony","label":{"Urdu":"اسلامیہ کالونی","Roman Urdu":"Islamia Colony","English":"Islamia Colony"}},{"province":"na","city":"na","town":"na","name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}},{"province":"na","city":"na","town":"na","name":"not_applicable","label":{"Urdu":"قابل اطلاق نہیں","Roman Urdu":"Qaabil-e-atlaaq nahi","English":"Not Applicable"}}],"gender":[{"instance":{"openmrs_code":"1534AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"male","label":{"Urdu":"مرد/ لڑکا","Roman Urdu":"Mard/larka","English":"Male"}},{"instance":{"openmrs_code":"1535AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"female","label":{"Urdu":"عورت/لڑکی","Roman Urdu":"Aurat/larki","English":"Female"}},{"instance":{"openmrs_code":"163163AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"transgender","label":{"Urdu":"خواجہ سرہ","Roman Urdu":"Khwaja sira","English":"Transgender"}}],"vaccines":[{"instance":{"openmrs_code":"1570AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"bcg","label":{"Urdu":"بی سی جی","Roman Urdu":"BCG","English":"BCG"}},{"instance":{"openmrs_code":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv0","label":{"Urdu":"او پی وی 0","Roman Urdu":"OPV 0","English":"OPV 0"}},{"instance":{"openmrs_code":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv1","label":{"Urdu":"پی سی وی 1","Roman Urdu":"PCV 1","English":"PCV 1"}},{"instance":{"openmrs_code":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv1","label":{"Urdu":"او پی وی 1","Roman Urdu":"OPV 1","English":"OPV 1"}},{"instance":{"openmrs_code":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta1","label":{"Urdu":"پینٹا ویلنٹ 1","Roman Urdu":"Pentavalent 1","English":"Pentavalent 1"}},{"instance":{"openmrs_code":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv2","label":{"Urdu":"پی سی وی 2","Roman Urdu":"PCV 2","English":"PCV 2"}},{"instance":{"openmrs_code":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv2","label":{"Urdu":"او پی وی 2","Roman Urdu":"OPV 2","English":"OPV 2"}},{"instance":{"openmrs_code":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta2","label":{"Urdu":"پینٹا ویلنٹ 2","Roman Urdu":"Pentavalent 2","English":"Pentavalent 2"}},{"instance":{"openmrs_code":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv3","label":{"Urdu":"پی سی وی 3","Roman Urdu":"PCV 3","English":"PCV 3"}},{"instance":{"openmrs_code":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv3","label":{"Urdu":"او پی وی 3","Roman Urdu":"OPV 3","English":"OPV 3"}},{"instance":{"openmrs_code":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta3","label":{"Urdu":"پینٹا ویلنٹ 3","Roman Urdu":"Pentavalent 3","English":"Pentavalent 3"}},{"instance":{"openmrs_code":"82242AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ipv","label":{"Urdu":"آئی پی وی","Roman Urdu":"IPV","English":"IPV"}},{"instance":{"openmrs_code":"79409AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"measles1","label":{"Urdu":"خسرہ 1","Roman Urdu":"Khasra 1","English":"Measles 1"}},{"instance":{"openmrs_code":"79409AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"measles2","label":{"Urdu":"خسرہ 2","Roman Urdu":"Khasra 2","English":"Measles 2"}}],"towns":[{"province":"sindh","city":"karachi","name":"korangi","label":{"Urdu":"کورنگی","Roman Urdu":"Korangi","English":"Korangi"}},{"province":"sindh","city":"karachi","name":"landhi","label":{"Urdu":"لانڈھی","Roman Urdu":"Landhi","English":"Landhi"}},{"province":"sindh","city":"karachi","name":"baldia","label":{"Urdu":"بلدیہ","Roman Urdu":"Baldia","English":"Baldia"}},{"province":"sindh","city":"karachi","name":"bin_qasim","label":{"Urdu":"بن قاسم","Roman Urdu":"Bin Qasim","English":"Bin Qasim"}},{"province":"sindh","city":"karachi","name":"gadap","label":{"Urdu":"گڈاپ","Roman Urdu":"Gadap","English":"Gadap"}},{"province":"sindh","city":"karachi","name":"gulberg","label":{"Urdu":"گلبرگ","Roman Urdu":"Gulberg","English":"Gulberg"}},{"province":"sindh","city":"karachi","name":"gulshan","label":{"Urdu":"گلشن","Roman Urdu":"Gulshan","English":"Gulshan"}},{"province":"sindh","city":"karachi","name":"jamshed","label":{"Urdu":"جمشید","Roman Urdu":"Jamshed","English":"Jamshed"}},{"province":"sindh","city":"karachi","name":"kiamari","label":{"Urdu":"کیماری","Roman Urdu":"Kiamari","English":"Kiamari"}},{"province":"sindh","city":"karachi","name":"liaquatabad","label":{"Urdu":"لیاقت آباد","Roman Urdu":"Liaquatabad","English":"Liaquatabad"}},{"province":"sindh","city":"karachi","name":"lyari","label":{"Urdu":"لیاری","Roman Urdu":"Lyari","English":"Lyari"}},{"province":"sindh","city":"karachi","name":"malir","label":{"Urdu":"ملیر","Roman Urdu":"Malir","English":"Malir"}},{"province":"sindh","city":"karachi","name":"new_karachi","label":{"Urdu":"نیو کراچی","Roman Urdu":"New Karachi","English":"New Karachi"}},{"province":"sindh","city":"karachi","name":"north_nazimabad","label":{"Urdu":"نارتھ ناظم آباد","Roman Urdu":"North Nazimabad","English":"North Nazimabad"}},{"province":"sindh","city":"karachi","name":"orangi","label":{"Urdu":"اورنگی","Roman Urdu":"Orangi","English":"Orangi"}},{"province":"sindh","city":"karachi","name":"saddar","label":{"Urdu":"صدر","Roman Urdu":"Saddar","English":"Saddar"}},{"province":"sindh","city":"karachi","name":"shah_faisal","label":{"Urdu":"شاہ فیصل","Roman Urdu":"Shah Faisal","English":"Shah Faisal"}},{"province":"sindh","city":"karachi","name":"site","label":{"Urdu":"سائٹ","Roman Urdu":"S.I.T.E.","English":"S.I.T.E."}},{"province":"na","city":"na","name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}},{"province":"na","city":"na","name":"not_applicable","label":{"Urdu":"قابل اطلاق نہیں","Roman Urdu":"Qaabil-e-atlaaq nahi","English":"Not Applicable"}}],"cities":[{"province":"sindh","name":"karachi","label":{"Urdu":"کراچی","Roman Urdu":"Karachi","English":"Karachi"}},{"province":"punjab","name":"hafizabad","label":{"Urdu":"حافظ آباد","Roman Urdu":"Hafizabad","English":"Hafizabad"}},{"province":"punjab","name":"muzaffargarh","label":{"Urdu":"مظفر گڑھ","Roman Urdu":"Muzaffargarh","English":"Muzaffargarh"}},{"province":"na","name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}},{"province":"na","name":"not_applicable","label":{"Urdu":"قابل اطلاق نہیں","Roman Urdu":"Qaabil-e-atlaaq nahi","English":"Not Applicable"}}],"yes_no":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}]},"instance":{"encounter_type":"Child Vaccination Followup"},"version":"201604260934","id_string":"child_vaccination_followup","type":"survey","children":[{"type":"hidden","name":"provider_uc"},{"type":"hidden","name":"provider_town"},{"type":"hidden","name":"provider_city"},{"type":"hidden","name":"provider_province"},{"type":"hidden","name":"existing_first_name"},{"type":"hidden","name":"existing_last_name"},{"type":"hidden","name":"existing_mother_name"},{"type":"hidden","name":"existing_gender"},{"type":"hidden","name":"existing_birth_date"},{"type":"hidden","name":"existing_client_reg_date"},{"type":"hidden","name":"existing_landmark"},{"type":"hidden","name":"existing_address1"},{"type":"hidden","name":"existing_union_council"},{"type":"hidden","name":"existing_town"},{"type":"hidden","name":"existing_city_village"},{"type":"hidden","name":"existing_province"},{"type":"hidden","name":"existing_union_councilname"},{"type":"hidden","name":"existing_townname"},{"type":"hidden","name":"existing_city_villagename"},{"type":"hidden","name":"existing_provincename"},{"type":"hidden","name":"existing_ethnicity"},{"type":"hidden","name":"existing_program_client_id"},{"type":"hidden","name":"existing_epi_card_number"},{"type":"hidden","name":"existing_child_was_suffering_from_a_disease_at_birth"},{"type":"hidden","name":"existing_reminders_approval"},{"type":"hidden","name":"existing_contact_phone_number"},{"type":"hidden","name":"e_bcg"},{"type":"hidden","name":"e_opv0"},{"type":"hidden","name":"e_penta2"},{"type":"hidden","name":"e_penta1"},{"type":"hidden","name":"e_penta3"},{"type":"hidden","name":"e_opv1"},{"type":"hidden","name":"e_opv2"},{"type":"hidden","name":"e_opv3"},{"type":"hidden","name":"e_pcv1"},{"type":"hidden","name":"e_pcv2"},{"type":"hidden","name":"e_pcv3"},{"type":"hidden","name":"e_ipv"},{"type":"hidden","name":"e_measles1"},{"type":"hidden","name":"e_measles2"},{"type":"hidden","name":"provider_id"},{"instance":{"openmrs_entity_id":"location_id","openmrs_entity":"encounter"},"type":"hidden","name":"provider_location_id"},{"type":"hidden","name":"provider_location_name"},{"type":"note","name":"provider_location_note","label":{"Urdu":"شہر: ${provider_city} ; ٹائون: ${provider_town} ; یوسی: ${provider_uc} ; سینٹرکا نام: ${provider_location_name}","English":"City: ${provider_city} ; Town: ${provider_town} ; UC: ${provider_uc} ; Center Name: ${provider_location_name}","Roman Urdu":"Shehr: ${provider_city} ; Town: ${provider_town} ; UC: ${provider_uc} ; Center ka Naam: ${provider_location_name}"}},{"instance":{"openmrs_entity_id":"163137AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"start","name":"start"},{"instance":{"openmrs_entity_id":"163138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"end","name":"end"},{"instance":{"openmrs_entity_id":"163286AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"today","name":"today"},{"instance":{"openmrs_entity_id":"163149AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"deviceid","name":"deviceid"},{"instance":{"openmrs_entity_id":"163150AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"subscriberid","name":"subscriberid"},{"instance":{"openmrs_entity_id":"163151AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"simserial","name":"simserial"},{"instance":{"openmrs_entity_id":"163152AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"phonenumber","name":"phonenumber"},{"bind":{"required":"yes"},"label":{"Urdu":"پروگرام میں اندراج کی تاریخ: ${existing_client_reg_date}","Roman Urdu":"Program mai andraj ki tareekh: ${existing_client_reg_date}","English":"Program Registration date: ${existing_client_reg_date}"},"type":"note","name":"existing_client_reg_date_note","hint":{"Urdu":"بچے کو ویکسین لگنے کی تاریخ","Roman Urdu":"Bachay ko vaccine lagnay ki tareekh","English":"Date on which child was vaccinated"}},{"bind":{"required":"yes"},"type":"note","name":"program_client_id_note","label":{"Urdu":"پروگرام آئی ڈی: ${existing_program_client_id}","Roman Urdu":"Program ID: ${existing_program_client_id}","English":"Program ID: ${existing_program_client_id}"}},{"bind":{"required":"yes"},"type":"note","instance":{"openmrs_entity_id":"EPI Card Number","openmrs_entity":"person_attribute"},"name":"epi_card_number_note","label":{"Urdu":"ای پی آئی کارڈ نمبر: ${existing_epi_card_number}","English":"EPI Card Number: ${existing_epi_card_number}","Roman Urdu":"EPI Card Number: ${existing_epi_card_number}"}},{"bind":{"required":"yes"},"type":"note","name":"first_name_note","label":{"Urdu":"نام: ${existing_first_name}","Roman Urdu":"Naam: ${existing_first_name}","English":"First Name: ${existing_first_name}"}},{"bind":{"required":"yes"},"type":"note","name":"last_name_note","label":{"Urdu":"والد کا نام: ${existing_last_name}","Roman Urdu":"Waalid ka naam: ${existing_last_name}","English":"Last name: ${existing_last_name}"}},{"bind":{"calculate":"int((${today} - ${existing_birth_date}) div 30.42)"},"type":"calculate","name":"child_age","instance":{"openmrs_entity_id":"154384AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"type":"note","name":"calc_dob_note","label":{"Urdu":"بچے کی تاریخ پیدائش: ${existing_birth_date} (${child_age}) مہینے","English":"Child Date of Birth: ${existing_birth_date} (${child_age}) months","Roman Urdu":"Bachay ki tareekh-e-paidaish: ${existing_birth_date} (${child_age}) mahinay"}},{"bind":{"required":"yes"},"type":"note","name":"gender_note","label":{"Urdu":"جنس: ${existing_gender}","Roman Urdu":"Jins:${existing_gender}","English":"Gender: ${existing_gender}"}},{"type":"note","name":"mother_name_note","label":{"Urdu":"ماں کا نام: ${existing_mother_name}","English":"Mother's Name: ${existing_mother_name}","Roman Urdu":"Maa ka naam: ${existing_mother_name}"}},{"bind":{"required":"yes"},"type":"note","name":"exisiting_ethnicity_note","label":{"Urdu":"قومیت: ${existing_ethnicity}","Roman Urdu":"Qomiat: ${existing_ethnicity}","English":"Ethnicity: ${existing_ethnicity}"}},{"type":"note","name":"address","label":{"Urdu":"موجودہ پتہ: ${existing_address1}, ${existing_landmark}, ${existing_union_councilname}, ${existing_townname}, ${existing_city_villagename}, ${existing_provincename}","English":"Current Address: ${existing_address1}, ${existing_landmark}, ${existing_union_councilname}, ${existing_townname}, ${existing_city_villagename}, ${existing_provincename}","Roman Urdu":"Mojooda Address: ${existing_address1}, ${existing_landmark}, ${existing_union_councilname}, ${existing_townname}, ${existing_city_villagename}, ${existing_provincename}"}},{"label":{"Urdu":"کیا آپ کا گھر کا پتہ بدلا ہے؟","English":"Has your home address changed?","Roman Urdu":"Kya aap ka ghar ka pata badla hai?"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}],"name":"address_change"},{"control":{"appearance":"minimal"},"name":"province","default":"${provider_province}","bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"label":{"Urdu":"صوبہ","Roman Urdu":"Suba","English":"Province"},"instance":{"openmrs_entity":"person_address","openmrs_entity_id":"stateProvince","openmrs_entity_parent":"usual_residence"},"type":"select one","children":[{"name":"kpk","label":{"Urdu":"خیبر پختون خواہ","English":"Khyber Pakhtunkhwa","Roman Urdu":"Khyber Pakhtunkhwa"}},{"name":"sindh","label":{"Urdu":"سندھ","English":"Sindh","Roman Urdu":"Sindh"}},{"name":"balochistan","label":{"Urdu":"بلوچستان","English":"Balochistan","Roman Urdu":"Balochistan"}},{"name":"punjab","label":{"Urdu":"پنجاب","English":"Punjab","Roman Urdu":"Punjab"}},{"name":"gilgit_baltistan","label":{"Urdu":"گلگت بلتستان","English":"Gilgit Baltistan","Roman Urdu":"Gilgit Baltistan"}},{"name":"kashmir","label":{"Urdu":"کشمیر","English":"Kashmir","Roman Urdu":"Kashmir"}},{"name":"fata","label":{"Urdu":"فاٹا","English":"FATA","Roman Urdu":"FATA"}},{"name":"out_of_country","label":{"Urdu":"ملک سے باہر","English":"Out of Country","Roman Urdu":"Out of Country"}}]},{"control":{"appearance":"minimal"},"name":"city_village","choice_filter":"province=${province} or province='na'","default":"${provider_city}","bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"label":{"Urdu":"شہر","Roman Urdu":"Shehr","English":"City"},"itemset":"cities","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"cityVillage","openmrs_entity_parent":"usual_residence"},"type":"select one"},{"control":{"appearance":"minimal"},"name":"town","choice_filter":"(province=${province} and city=${city_village} ) or city='na'","bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"label":{"Urdu":"ٹاٰئون/ قصبہ/ بستی","Roman Urdu":"Town / Qasbah / Basti","English":"Town"},"itemset":"towns","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"town","openmrs_entity_parent":"usual_residence"},"type":"select one"},{"control":{"appearance":"minimal"},"name":"union_council","choice_filter":"(province=${province} and city=${city_village} and town=${town}) or town='na'","bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"label":{"Urdu":"یونین کونسل","Roman Urdu":"Union Council","English":"Union Council"},"itemset":"ucs","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"subTown","openmrs_entity_parent":"usual_residence"},"type":"select one"},{"bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"type":"text","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"address1","openmrs_entity_parent":"usual_residence"},"name":"address1","label":{"Urdu":"گھر کا پتہ","Roman Urdu":"Ghar ka pata","English":"Home Address"}},{"bind":{"relevant":"selected(${address_change}, 'yes')"},"type":"text","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"landmark","openmrs_entity_parent":"usual_residence"},"name":"landmark","label":{"Urdu":"گھر کے قریب کوئی مشہور جگہ","Roman Urdu":"Ghar ke qareeb koi mashoor jagah","English":"Land Mark"}},{"instance":{"openmrs_entity_id":"163277AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"geopoint","name":"center_gps","label":{"Urdu":"حاصل کردہ معلومات کی جگہ کے GPS کارڈینیٹس درج کریں","English":"Collect GPS coordinates of data entry location:","Roman Urdu":"Hasil karda malomaat ki jaga ke GPS coordinates darj karain"}},{"bind":{"required":"yes"},"type":"note","name":"child_was_suffering_from_a_disease_at_birth_note","label":{"Urdu":"کیا بچہ پیدائش کے وقت کسی مرض میں مبتلا تھا؟ ${existing_child_was_suffering_from_a_disease_at_birth}","Roman Urdu":"Kya bacha pedaaish k waqt kissi marz mai mubtila tha? ${existing_child_was_suffering_from_a_disease_at_birth}","English":"Child was suffering from a disease at birth: ${existing_child_was_suffering_from_a_disease_at_birth}"}},{"instance":{"openmrs_entity_id":"163162AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"text","name":"aefi","label":{"Urdu":"حفاظتی ٹیکوں کے مضر اثرات","English":"Temporary side-effects of immunization shots","Roman Urdu":"Hifazati teekon ke muzr asraat"}},{"name":"reminders_approval","bind":{"required":"yes"},"label":{"Urdu":"کیا آپ اپنے بچے کی اگلی ویکسین کی تاریخ کے لیے SMS موصول کرنا چاہتے ہیں؟ ${existing_reminders_approval}","English":"Are you willing to receive SMS reminders for your next visit? ${existing_reminders_approval}","Roman Urdu":"Kya aap apnay bachay ki agli vaccine ki tareekh ke liye SMS mausool karna chahtay hain? ${existing_reminders_approval}"},"instance":{"openmrs_entity_id":"163089AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}]},{"bind":{"jr:constraintMsg":{"Urdu":"فون نمبر گیارہ ہندسوں پر مشتمل اور مندرجہ ذیل شکل میں ہونا چاہئے: *********03","English":"Phone number should be 11 digits in the following format: 03*********","Roman Urdu":"Phone number 11 hindason par mushtamil aur mundarja zail shakal main hona chahiey: 03*********"},"relevant":"${reminders_approval}='yes'","constraint":"regex(., '^03[0-9]{9}$')"},"type":"text","instance":{"openmrs_entity_id":"159635AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"contact_phone_number","label":{"Urdu":"موبائل نمبر: ${existing_contact_phone_number}","English":"Mobile Number: ${existing_contact_phone_number}","Roman Urdu":"Mobile Number: ${existing_contact_phone_number}"}},{"bind":{"calculate":"${existing_birth_date} + 42"},"type":"calculate","name":"six_weeks"},{"bind":{"calculate":"${existing_birth_date} + 70"},"type":"calculate","name":"ten_weeks"},{"bind":{"calculate":"${existing_birth_date} + 98"},"type":"calculate","name":"forteen_weeks"},{"bind":{"calculate":"${existing_birth_date} + 245"},"type":"calculate","name":"nine_months"},{"bind":{"calculate":"${existing_birth_date} + 458"},"type":"calculate","name":"fifteen_months"},{"bind":{"relevant":"${e_bcg} != ''"},"type":"note","name":"bcg_note","label":{"Urdu":"${e_bcg}","Roman Urdu":"${e_bcg}","English":"${e_bcg}"}},{"bind":{"relevant":"${e_opv0} != ''"},"type":"note","name":"opv0_note","label":{"Urdu":"${e_opv0}","Roman Urdu":"${e_opv0}","English":"${e_opv0}"}},{"bind":{"relevant":"${e_penta2} != ''"},"type":"note","name":"opv1_note","label":{"Urdu":"${e_penta2}","Roman Urdu":"${e_penta2}","English":"${e_penta2}"}},{"bind":{"relevant":"${e_penta1} != ''"},"type":"note","name":"pcv1_note","label":{"Urdu":"${e_penta1}","Roman Urdu":"${e_penta1}","English":"${e_penta1}"}},{"bind":{"relevant":"${e_penta3} != ''"},"type":"note","name":"penta1_note","label":{"Urdu":"${e_penta3}","Roman Urdu":"${e_penta3}","English":"${e_penta3}"}},{"bind":{"relevant":"${e_opv1} != ''"},"type":"note","name":"opv2_note","label":{"Urdu":"${e_opv1}","Roman Urdu":"${e_opv1}","English":"${e_opv1}"}},{"bind":{"relevant":"${e_opv2} != ''"},"type":"note","name":"pcv2_note","label":{"Urdu":"${e_opv2}","Roman Urdu":"${e_opv2}","English":"${e_opv2}"}},{"bind":{"relevant":"${e_opv3} != ''"},"type":"note","name":"penta2_note","label":{"Urdu":"${e_opv3}","Roman Urdu":"${e_opv3}","English":"${e_opv3}"}},{"bind":{"relevant":"${e_pcv1} != ''"},"type":"note","name":"opv3_note","label":{"Urdu":"${e_pcv1}","Roman Urdu":"${e_pcv1}","English":"${e_pcv1}"}},{"bind":{"relevant":"${e_pcv2} != ''"},"type":"note","name":"pcv3_note","label":{"Urdu":"${e_pcv2}","Roman Urdu":"${e_pcv2}","English":"${e_pcv2}"}},{"bind":{"relevant":"${e_pcv3} != ''"},"type":"note","name":"penta3_note","label":{"Urdu":"${e_pcv3}","Roman Urdu":"${e_pcv3}","English":"${e_pcv3}"}},{"bind":{"relevant":"${e_ipv} != ''"},"type":"note","name":"ipv_note","label":{"Urdu":"${e_ipv}","Roman Urdu":"${e_ipv}","English":"${e_ipv}"}},{"bind":{"relevant":"${e_measles1} != ''"},"type":"note","name":"measles1_note","label":{"Urdu":"${e_measles1}","Roman Urdu":"${e_measles1}","English":"${e_measles1}"}},{"bind":{"relevant":"${e_measles2} != ''"},"type":"note","name":"measles2_note","label":{"Urdu":"${e_measles2}","Roman Urdu":"${e_measles2}","English":"${e_measles2}"}},{"control":{"appearance":"minimal"},"name":"vaccines","choice_filter":"name != if( ${e_bcg} != '', 'bcg' , '') and \nname != if( ${e_opv0} != '', 'opv0' , '') and \nname != if( ${e_penta1} != '', 'penta1' , '') and \nname != if( ${e_penta2} != '', 'penta2' , '') and \nname != if( ${e_penta3} != '', 'penta3' , '') and \nname != if( ${e_opv1} != '', 'opv1' , '') and \nname != if( ${e_opv2} != '', 'opv2' , '') and \nname != if( ${e_opv3} != '', 'opv3' , '') and \nname != if( ${e_pcv1} != '', 'pcv1' , '') and \nname != if( ${e_pcv2} != '', 'pcv2' , '') and \nname != if( ${e_pcv3} != '', 'pcv3' , '') and \nname != if( ${e_ipv} != '', 'ipv' , '') and \nname != if( ${e_measles1} != '', 'measles1' , '') and \nname != if( ${e_measles2} != '', 'measles2' , '')","label":{"Urdu":"پچھلی تاریخ جب کسی اور سینٹر پر ٹیکے لگواِے گیے یا قطرے پلائے گئے","Roman Urdu":"Pichli tareekh jab kissi aur center par teekay lagwaye gaye ya katray pilaey gaye","English":"Retro vaccines"},"itemset":"vaccines","instance":{"openmrs_entity":"concept","openmrs_entity_id":"984AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1421AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"select all that apply"},{"type":"group","children":[{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'bcg')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"886AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"bcg_retro","label":{"Urdu":"بی سی جی","Roman Urdu":"BCG","English":"BCG"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'opv0')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv0_retro","label":{"Urdu":"او پی وی 0","Roman Urdu":"OPV 0","English":"OPV 0"}},{"bind":{"relevant":"selected(${vaccines}, 'opv0')","calculate":"0"},"type":"calculate","name":"opv0_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'pcv1')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv1_retro","label":{"Urdu":"پی سی وی 1","Roman Urdu":"PCV1","English":"PCV1"}},{"bind":{"relevant":"selected(${vaccines}, 'pcv1')","calculate":"1"},"type":"calculate","name":"pcv1_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'opv1')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv1_retro","label":{"Urdu":"او پی وی1","Roman Urdu":"OPV 1","English":"OPV 1"}},{"bind":{"relevant":"selected(${vaccines}, 'opv1')","calculate":"1"},"type":"calculate","name":"opv1_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'penta1')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta1_retro","label":{"Urdu":"پینٹا ویلنٹ 1","Roman Urdu":"Pentavalent 1","English":"Pentavalent 1"}},{"bind":{"relevant":"selected(${vaccines}, 'penta1')","calculate":"1"},"type":"calculate","name":"penta1_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'pcv2')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv2_retro","label":{"Urdu":"پی سی وی 2","Roman Urdu":"PCV2","English":"PCV2"}},{"bind":{"relevant":"selected(${vaccines}, 'pcv2')","calculate":"2"},"type":"calculate","name":"pcv2_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'opv2')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv2_retro","label":{"Urdu":"او پی وی 2","Roman Urdu":"OPV 2","English":"OPV 2"}},{"bind":{"relevant":"selected(${vaccines}, 'opv2')","calculate":"2"},"type":"calculate","name":"opv2_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'penta2')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta2_retro","label":{"Urdu":"پینٹا ویلنٹ 2","Roman Urdu":"Pentavalent 2","English":"Pentavalent 2"}},{"bind":{"relevant":"selected(${vaccines}, 'penta2')","calculate":"2"},"type":"calculate","name":"penta2_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'pcv3')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv3_retro","label":{"Urdu":"پی سی وی 3","Roman Urdu":"PCV3","English":"PCV3"}},{"bind":{"relevant":"selected(${vaccines}, 'penta2')","calculate":"3"},"type":"calculate","name":"pcv3_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'opv3')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv3_retro","label":{"Urdu":"او پی وی3","Roman Urdu":"OPV 3","English":"OPV 3"}},{"bind":{"relevant":"selected(${vaccines}, 'opv3')","calculate":"3"},"type":"calculate","name":"opv3_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'penta3')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta3_retro","label":{"Urdu":"پینٹا ویلنٹ 3","Roman Urdu":"Pentavalent 3","English":"Pentavalent 3"}},{"bind":{"relevant":"selected(${vaccines}, 'penta3')","calculate":"3"},"type":"calculate","name":"penta3_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'ipv')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1422AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ipv_retro","label":{"Urdu":"آئی پی وی","Roman Urdu":"IPV","English":"IPV"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'measles1')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"measles1_retro","label":{"Urdu":"خسرہ 1","Roman Urdu":"Measles 1","English":"Measles 1"}},{"bind":{"relevant":"selected(${vaccines}, 'measles1')","calculate":"1"},"type":"calculate","name":"measles1_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'measles2')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"measles2_retro","label":{"Urdu":"خسرہ 2","Roman Urdu":"Measles2","English":"Measles2"}},{"bind":{"relevant":"selected(${vaccines}, 'measles2')","calculate":"2"},"type":"calculate","name":"measles2_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}}],"name":"vaccines_group"},{"control":{"appearance":"minimal"},"name":"vaccines_2","choice_filter":"name != if( ${e_bcg} != '', 'bcg' , '') and \nname != if( ${e_opv0} != '', 'opv0' , '') and \nname != if( ${e_penta2} != '', 'penta2' , '') and \nname != if( ${e_penta1} != '', 'penta1' , '') and \nname != if( ${e_penta3} != '', 'penta3' , '') and \nname != if( ${e_opv1} != '', 'opv1' , '') and \nname != if( ${e_opv2} != '', 'opv2' , '') and \nname != if( ${e_opv3} != '', 'opv3' , '') and \nname != if( ${e_pcv1} != '', 'pcv1' , '') and \nname != if( ${e_pcv2} != '', 'pcv2' , '') and \nname != if( ${e_pcv3} != '', 'pcv3' , '') and \nname != if( ${e_measles1} != '', 'measles1' , '') and \nname != if( ${e_measles2} != '', 'measles2' , '') and \nname != if(selected(${vaccines}, 'bcg'), 'bcg', '') and \nname != if(selected(${vaccines}, 'opv0'), 'opv0', '') and \nname != if(selected(${vaccines}, 'penta1'), 'penta1', '') and \nname != if(selected(${vaccines}, 'opv1'), 'opv1', '') and \nname != if(selected(${vaccines}, 'pcv1'), 'pcv1', '') and \nname != if(selected(${vaccines}, 'penta2'), 'penta2', '') and \nname != if(selected(${vaccines}, 'opv2'), 'opv2', '') and \nname != if(selected(${vaccines}, 'pcv2'), 'pcv2', '') and \nname != if(selected(${vaccines}, 'penta3'), 'penta3', '') and \nname != if(selected(${vaccines}, 'opv3'), 'opv3', '') and \nname != if(selected(${vaccines}, 'pcv3'), 'pcv3', '') and\nname != if(selected(${vaccines}, 'ipv'), 'ipv', '') and \nname != if(selected(${vaccines}, 'measles1'), 'measles1', '') and \nname != if(selected(${vaccines}, 'measles2'), 'measles2', '')","bind":{"required":"yes","constraint":"if(selected(${vaccines_2}, 'bcg') or selected(${vaccines_2}, 'opv0') , .>= ${existing_birth_date} and .<=${today}, if(selected(${vaccines_2}, 'opv1') or selected(${vaccines_2}, 'penta1'), .>= ${six_weeks} and .<=${today}, if(selected(${vaccines_2}, 'opv2') or selected(${vaccines_2}, 'penta2'), .>=${ten_weeks} and .<=${today}, if(selected(${vaccines_2}, 'opv3') or selected(${vaccines_2}, 'penta3'), .>=${forteen_weeks} and .<=${today}, if(selected(${vaccines_2}, 'measles1'), .>=${nine_months} and .<=${today}, if(selected(${vaccines_2}, 'measles2'), .>= ${fifteen_months} and .<=${today}))))))"},"label":{"Urdu":"آج کون کون سی ویکسین دی گئی ہیں؟","Roman Urdu":"Aaj kon kon si vaccine di gai hain?","English":"Vaccines administered"},"itemset":"vaccines","instance":{"openmrs_entity":"concept","openmrs_entity_id":"984AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1441AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"select all that apply"},{"name":"vaccination_date","default":"${today}","bind":{"required":"yes","constraint":"if(selected(${vaccines_2}, 'bcg') or selected(${vaccines_2}, 'opv0') , .>= ${existing_birth_date} and .<=${today}, if(selected(${vaccines_2}, 'opv1') or selected(${vaccines_2}, 'penta1'), .>= ${six_weeks} and .<=${today}, if(selected(${vaccines_2}, 'opv2') or selected(${vaccines_2}, 'penta2'), .>=${ten_weeks} and .<=${today}, if(selected(${vaccines_2}, 'opv3') or selected(${vaccines_2}, 'penta3'), .>=${forteen_weeks} and .<=${today}, if(selected(${vaccines_2}, 'measles1'), .>=${nine_months} and .<=${today}, if(selected(${vaccines_2}, 'measles2'), .>= ${fifteen_months} and .<=${today}))))))"},"label":{"Urdu":"تاریخ","English":"Vaccination date","Roman Urdu":"Tareekh"},"instance":{"openmrs_entity_id":"encounter_date","openmrs_entity":"encounter"},"type":"date"},{"bind":{"calculate":"if(selected(${vaccines_2}, 'bcg'),${vaccination_date},'')"},"type":"calculate","name":"bcg","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"886AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'opv0'),${vaccination_date},'')"},"type":"calculate","name":"opv0","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'opv0')","calculate":"0"},"type":"calculate","name":"opv0_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'pcv1'),${vaccination_date},'')"},"type":"calculate","name":"pcv1","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'pcv1')","calculate":"1"},"type":"calculate","name":"pcv1_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'opv1'),${vaccination_date},'')"},"type":"calculate","name":"opv1","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'opv1')","calculate":"1"},"type":"calculate","name":"opv1_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'penta1'),${vaccination_date},'')"},"type":"calculate","name":"penta1","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'penta1')","calculate":"1"},"type":"calculate","name":"penta1_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'pcv2'),${vaccination_date},'')"},"type":"calculate","name":"pcv2","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'pcv2')","calculate":"2"},"type":"calculate","name":"pcv2_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'opv2'),${vaccination_date},'')"},"type":"calculate","name":"opv2","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'opv2')","calculate":"2"},"type":"calculate","name":"opv2_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'penta2'),${vaccination_date},'')"},"type":"calculate","name":"penta2","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'penta2')","calculate":"2"},"type":"calculate","name":"penta2_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'pcv3'),${vaccination_date},'')"},"type":"calculate","name":"pcv3","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'pcv3')","calculate":"3"},"type":"calculate","name":"pcv3_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'opv3'),${vaccination_date},'')"},"type":"calculate","name":"opv3","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'opv3')","calculate":"3"},"type":"calculate","name":"opv3_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'penta3'),${vaccination_date},'')"},"type":"calculate","name":"penta3","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'penta3')","calculate":"3"},"type":"calculate","name":"penta3_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines}, 'ipv')","calculate":"if(selected(${vaccines_2}, 'ipv'),${vaccination_date},'')"},"type":"calculate","name":"ipv","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1422AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'measles1'),${vaccination_date},'')"},"type":"calculate","name":"measles1","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'measles1')","calculate":"1"},"type":"calculate","name":"measles1_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'measles2'),${vaccination_date},'')"},"type":"calculate","name":"measles2","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'measles2')","calculate":"2"},"type":"calculate","name":"measles2_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"control":{"bodyless":true},"type":"group","children":[{"bind":{"readonly":"true()","calculate":"concat('uuid:', uuid())"},"type":"calculate","name":"instanceID"}],"name":"meta"}]} \ No newline at end of file diff --git a/opensrp-web/src/test/resources/form/child_followup/form.xml b/opensrp-web/src/test/resources/form/child_followup/form.xml deleted file mode 100644 index 0aef19d800..0000000000 --- a/opensrp-web/src/test/resources/form/child_followup/form.xml +++ /dev/null @@ -1,1689 +0,0 @@ -
- - -

بچّوں کا فالو اپ رجسٹر برائے ٹیکاجات - Child Follow Up Vaccination Register

-
-
- - کیا آپ کا گھر کا پتہ بدلا ہے؟ - Has your home address changed? - - Kya aap ka ghar ka pata badla hai? -
- - -
-
-
-
- - کیا آپ اپنے بچے کی اگلی ویکسین کی تاریخ کے لیے SMS موصول کرنا چاہتے ہیں؟ - - Are you willing to receive SMS reminders for your next visit? - - - Kya aap apnay bachay ki agli vaccine ki tareekh ke liye SMS mausool karna chahtay hain? - - * -
- - -
-
-
- - - - - - - - - - - - - -
- - -
diff --git a/opensrp-web/src/test/resources/form/child_followup/form_definition.json b/opensrp-web/src/test/resources/form/child_followup/form_definition.json deleted file mode 100644 index 5b5743183f..0000000000 --- a/opensrp-web/src/test/resources/form/child_followup/form_definition.json +++ /dev/null @@ -1,459 +0,0 @@ -{ - "form_data_definition_version" : "1", - "form" : { - "bind_type" : "pkchild", - "default_bind_path" : "/model/instance/Child_Vaccination_Followup/", - "fields" : [ { - "name" : "id", - "shouldLoadValue" : true - }, { - "name" : "provider_uc", - "bind" : "/model/instance/Child_Vaccination_Followup/provider_uc", - "shouldLoadValue" : true - }, { - "name" : "provider_town", - "bind" : "/model/instance/Child_Vaccination_Followup/provider_town", - "shouldLoadValue" : true - }, { - "name" : "provider_city", - "bind" : "/model/instance/Child_Vaccination_Followup/provider_city", - "shouldLoadValue" : true - }, { - "name" : "provider_province", - "bind" : "/model/instance/Child_Vaccination_Followup/provider_province", - "shouldLoadValue" : true - }, { - "name" : "existing_first_name", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_first_name", - "shouldLoadValue" : true - }, { - "name" : "existing_last_name", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_last_name", - "shouldLoadValue" : true - }, { - "name" : "existing_mother_name", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_mother_name", - "shouldLoadValue" : true - }, { - "name" : "existing_gender", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_gender", - "shouldLoadValue" : true - }, { - "name" : "existing_birth_date", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_birth_date", - "shouldLoadValue" : true - }, { - "name" : "existing_client_reg_date", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_client_reg_date", - "shouldLoadValue" : true - }, { - "name" : "existing_landmark", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_landmark", - "shouldLoadValue" : true - }, { - "name" : "existing_address1", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_address1", - "shouldLoadValue" : true - }, { - "name" : "existing_union_council", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_union_council", - "shouldLoadValue" : true - }, { - "name" : "existing_town", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_town", - "shouldLoadValue" : true - }, { - "name" : "existing_city_village", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_city_village", - "shouldLoadValue" : true - }, { - "name" : "existing_province", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_province", - "shouldLoadValue" : true - }, { - "name" : "existing_union_councilname", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_union_councilname", - "shouldLoadValue" : true - }, { - "name" : "existing_townname", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_townname", - "shouldLoadValue" : true - }, { - "name" : "existing_city_villagename", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_city_villagename", - "shouldLoadValue" : true - }, { - "name" : "existing_provincename", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_provincename", - "shouldLoadValue" : true - }, { - "name" : "existing_ethnicity", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_ethnicity", - "shouldLoadValue" : true - }, { - "name" : "existing_program_client_id", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_program_client_id", - "shouldLoadValue" : true - }, { - "name" : "existing_epi_card_number", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_epi_card_number", - "shouldLoadValue" : true - }, { - "name" : "existing_child_was_suffering_from_a_disease_at_birth", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_child_was_suffering_from_a_disease_at_birth", - "shouldLoadValue" : true - }, { - "name" : "existing_reminders_approval", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_reminders_approval", - "shouldLoadValue" : true - }, { - "name" : "existing_contact_phone_number", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_contact_phone_number", - "shouldLoadValue" : true - }, { - "name" : "e_bcg", - "bind" : "/model/instance/Child_Vaccination_Followup/e_bcg", - "shouldLoadValue" : true - }, { - "name" : "e_opv0", - "bind" : "/model/instance/Child_Vaccination_Followup/e_opv0", - "shouldLoadValue" : true - }, { - "name" : "e_penta2", - "bind" : "/model/instance/Child_Vaccination_Followup/e_penta2", - "shouldLoadValue" : true - }, { - "name" : "e_penta1", - "bind" : "/model/instance/Child_Vaccination_Followup/e_penta1", - "shouldLoadValue" : true - }, { - "name" : "e_penta3", - "bind" : "/model/instance/Child_Vaccination_Followup/e_penta3", - "shouldLoadValue" : true - }, { - "name" : "e_opv1", - "bind" : "/model/instance/Child_Vaccination_Followup/e_opv1", - "shouldLoadValue" : true - }, { - "name" : "e_opv2", - "bind" : "/model/instance/Child_Vaccination_Followup/e_opv2", - "shouldLoadValue" : true - }, { - "name" : "e_opv3", - "bind" : "/model/instance/Child_Vaccination_Followup/e_opv3", - "shouldLoadValue" : true - }, { - "name" : "e_pcv1", - "bind" : "/model/instance/Child_Vaccination_Followup/e_pcv1", - "shouldLoadValue" : true - }, { - "name" : "e_pcv2", - "bind" : "/model/instance/Child_Vaccination_Followup/e_pcv2", - "shouldLoadValue" : true - }, { - "name" : "e_pcv3", - "bind" : "/model/instance/Child_Vaccination_Followup/e_pcv3", - "shouldLoadValue" : true - }, { - "name" : "e_ipv", - "bind" : "/model/instance/Child_Vaccination_Followup/e_ipv", - "shouldLoadValue" : true - }, { - "name" : "e_measles1", - "bind" : "/model/instance/Child_Vaccination_Followup/e_measles1", - "shouldLoadValue" : true - }, { - "name" : "e_measles2", - "bind" : "/model/instance/Child_Vaccination_Followup/e_measles2", - "shouldLoadValue" : true - }, { - "name" : "provider_id", - "bind" : "/model/instance/Child_Vaccination_Followup/provider_id", - "shouldLoadValue" : true - }, { - "name" : "provider_location_id", - "bind" : "/model/instance/Child_Vaccination_Followup/provider_location_id", - "shouldLoadValue" : true - }, { - "name" : "provider_location_name", - "bind" : "/model/instance/Child_Vaccination_Followup/provider_location_name", - "shouldLoadValue" : true - }, { - "name" : "provider_location_note", - "bind" : "/model/instance/Child_Vaccination_Followup/provider_location_note" - }, { - "name" : "start", - "bind" : "/model/instance/Child_Vaccination_Followup/start" - }, { - "name" : "end", - "bind" : "/model/instance/Child_Vaccination_Followup/end" - }, { - "name" : "today", - "bind" : "/model/instance/Child_Vaccination_Followup/today" - }, { - "name" : "deviceid", - "bind" : "/model/instance/Child_Vaccination_Followup/deviceid" - }, { - "name" : "subscriberid", - "bind" : "/model/instance/Child_Vaccination_Followup/subscriberid" - }, { - "name" : "simserial", - "bind" : "/model/instance/Child_Vaccination_Followup/simserial" - }, { - "name" : "phonenumber", - "bind" : "/model/instance/Child_Vaccination_Followup/phonenumber" - }, { - "name" : "existing_client_reg_date_note", - "bind" : "/model/instance/Child_Vaccination_Followup/existing_client_reg_date_note" - }, { - "name" : "program_client_id_note", - "bind" : "/model/instance/Child_Vaccination_Followup/program_client_id_note" - }, { - "name" : "epi_card_number_note", - "bind" : "/model/instance/Child_Vaccination_Followup/epi_card_number_note" - }, { - "name" : "first_name_note", - "bind" : "/model/instance/Child_Vaccination_Followup/first_name_note" - }, { - "name" : "last_name_note", - "bind" : "/model/instance/Child_Vaccination_Followup/last_name_note" - }, { - "name" : "child_age", - "bind" : "/model/instance/Child_Vaccination_Followup/child_age" - }, { - "name" : "calc_dob_note", - "bind" : "/model/instance/Child_Vaccination_Followup/calc_dob_note" - }, { - "name" : "gender_note", - "bind" : "/model/instance/Child_Vaccination_Followup/gender_note" - }, { - "name" : "mother_name_note", - "bind" : "/model/instance/Child_Vaccination_Followup/mother_name_note" - }, { - "name" : "exisiting_ethnicity_note", - "bind" : "/model/instance/Child_Vaccination_Followup/exisiting_ethnicity_note" - }, { - "name" : "address", - "bind" : "/model/instance/Child_Vaccination_Followup/address" - }, { - "name" : "address_change", - "bind" : "/model/instance/Child_Vaccination_Followup/address_change" - }, { - "name" : "province", - "bind" : "/model/instance/Child_Vaccination_Followup/province" - }, { - "name" : "city_village", - "bind" : "/model/instance/Child_Vaccination_Followup/city_village" - }, { - "name" : "town", - "bind" : "/model/instance/Child_Vaccination_Followup/town" - }, { - "name" : "union_council", - "bind" : "/model/instance/Child_Vaccination_Followup/union_council" - }, { - "name" : "address1", - "bind" : "/model/instance/Child_Vaccination_Followup/address1" - }, { - "name" : "landmark", - "bind" : "/model/instance/Child_Vaccination_Followup/landmark" - }, { - "name" : "center_gps", - "bind" : "/model/instance/Child_Vaccination_Followup/center_gps" - }, { - "name" : "child_was_suffering_from_a_disease_at_birth_note", - "bind" : "/model/instance/Child_Vaccination_Followup/child_was_suffering_from_a_disease_at_birth_note" - }, { - "name" : "aefi", - "bind" : "/model/instance/Child_Vaccination_Followup/aefi" - }, { - "name" : "reminders_approval", - "bind" : "/model/instance/Child_Vaccination_Followup/reminders_approval" - }, { - "name" : "contact_phone_number", - "bind" : "/model/instance/Child_Vaccination_Followup/contact_phone_number" - }, { - "name" : "six_weeks", - "bind" : "/model/instance/Child_Vaccination_Followup/six_weeks" - }, { - "name" : "ten_weeks", - "bind" : "/model/instance/Child_Vaccination_Followup/ten_weeks" - }, { - "name" : "forteen_weeks", - "bind" : "/model/instance/Child_Vaccination_Followup/forteen_weeks" - }, { - "name" : "nine_months", - "bind" : "/model/instance/Child_Vaccination_Followup/nine_months" - }, { - "name" : "fifteen_months", - "bind" : "/model/instance/Child_Vaccination_Followup/fifteen_months" - }, { - "name" : "vaccines", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines" - }, { - "name" : "bcg_retro", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/bcg_retro" - }, { - "name" : "opv0_retro", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/opv0_retro" - }, { - "name" : "opv0_dose", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/opv0_dose" - }, { - "name" : "pcv1_retro", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/pcv1_retro" - }, { - "name" : "pcv1_dose", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/pcv1_dose" - }, { - "name" : "opv1_retro", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/opv1_retro" - }, { - "name" : "opv1_dose", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/opv1_dose" - }, { - "name" : "penta1_retro", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/penta1_retro" - }, { - "name" : "penta1_dose", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/penta1_dose" - }, { - "name" : "pcv2_retro", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/pcv2_retro" - }, { - "name" : "pcv2_dose", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/pcv2_dose" - }, { - "name" : "opv2_retro", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/opv2_retro" - }, { - "name" : "opv2_dose", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/opv2_dose" - }, { - "name" : "penta2_retro", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/penta2_retro" - }, { - "name" : "penta2_dose", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/penta2_dose" - }, { - "name" : "pcv3_retro", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/pcv3_retro" - }, { - "name" : "pcv3_dose", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/pcv3_dose" - }, { - "name" : "opv3_retro", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/opv3_retro" - }, { - "name" : "opv3_dose", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/opv3_dose" - }, { - "name" : "penta3_retro", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/penta3_retro" - }, { - "name" : "penta3_dose", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/penta3_dose" - }, { - "name" : "ipv_retro", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/ipv_retro" - }, { - "name" : "measles1_retro", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/measles1_retro" - }, { - "name" : "measles1_dose", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/measles1_dose" - }, { - "name" : "measles2_retro", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/measles2_retro" - }, { - "name" : "measles2_dose", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_group/measles2_dose" - }, { - "name" : "vaccines_2", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccines_2" - }, { - "name" : "vaccination_date", - "bind" : "/model/instance/Child_Vaccination_Followup/vaccination_date" - }, { - "name" : "bcg", - "bind" : "/model/instance/Child_Vaccination_Followup/bcg" - }, { - "name" : "opv0", - "bind" : "/model/instance/Child_Vaccination_Followup/opv0" - }, { - "name" : "opv0_dose_today", - "bind" : "/model/instance/Child_Vaccination_Followup/opv0_dose_today" - }, { - "name" : "pcv1", - "bind" : "/model/instance/Child_Vaccination_Followup/pcv1" - }, { - "name" : "pcv1_dose_today", - "bind" : "/model/instance/Child_Vaccination_Followup/pcv1_dose_today" - }, { - "name" : "opv1", - "bind" : "/model/instance/Child_Vaccination_Followup/opv1" - }, { - "name" : "opv1_dose_today", - "bind" : "/model/instance/Child_Vaccination_Followup/opv1_dose_today" - }, { - "name" : "penta1", - "bind" : "/model/instance/Child_Vaccination_Followup/penta1" - }, { - "name" : "penta1_dose_today", - "bind" : "/model/instance/Child_Vaccination_Followup/penta1_dose_today" - }, { - "name" : "pcv2", - "bind" : "/model/instance/Child_Vaccination_Followup/pcv2" - }, { - "name" : "pcv2_dose_today", - "bind" : "/model/instance/Child_Vaccination_Followup/pcv2_dose_today" - }, { - "name" : "opv2", - "bind" : "/model/instance/Child_Vaccination_Followup/opv2" - }, { - "name" : "opv2_dose_today", - "bind" : "/model/instance/Child_Vaccination_Followup/opv2_dose_today" - }, { - "name" : "penta2", - "bind" : "/model/instance/Child_Vaccination_Followup/penta2" - }, { - "name" : "penta2_dose_today", - "bind" : "/model/instance/Child_Vaccination_Followup/penta2_dose_today" - }, { - "name" : "pcv3", - "bind" : "/model/instance/Child_Vaccination_Followup/pcv3" - }, { - "name" : "pcv3_dose_today", - "bind" : "/model/instance/Child_Vaccination_Followup/pcv3_dose_today" - }, { - "name" : "opv3", - "bind" : "/model/instance/Child_Vaccination_Followup/opv3" - }, { - "name" : "opv3_dose_today", - "bind" : "/model/instance/Child_Vaccination_Followup/opv3_dose_today" - }, { - "name" : "penta3", - "bind" : "/model/instance/Child_Vaccination_Followup/penta3" - }, { - "name" : "penta3_dose_today", - "bind" : "/model/instance/Child_Vaccination_Followup/penta3_dose_today" - }, { - "name" : "ipv", - "bind" : "/model/instance/Child_Vaccination_Followup/ipv" - }, { - "name" : "measles1", - "bind" : "/model/instance/Child_Vaccination_Followup/measles1" - }, { - "name" : "measles1_dose_today", - "bind" : "/model/instance/Child_Vaccination_Followup/measles1_dose_today" - }, { - "name" : "measles2", - "bind" : "/model/instance/Child_Vaccination_Followup/measles2" - }, { - "name" : "measles2_dose_today", - "bind" : "/model/instance/Child_Vaccination_Followup/measles2_dose_today" - }, { - "name" : "instanceID", - "bind" : "/model/instance/Child_Vaccination_Followup/meta/instanceID" - } ] - } -} \ No newline at end of file diff --git a/opensrp-web/src/test/resources/form/child_followup/model.xml b/opensrp-web/src/test/resources/form/child_followup/model.xml deleted file mode 100644 index 5a1a479061..0000000000 --- a/opensrp-web/src/test/resources/form/child_followup/model.xml +++ /dev/null @@ -1,1697 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - ${provider_province} - ${provider_city} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ${today} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - static_instance-provinces-0 - kpk - - - static_instance-provinces-1 - sindh - - - static_instance-provinces-2 - balochistan - - - static_instance-provinces-3 - punjab - - - static_instance-provinces-4 - gilgit_baltistan - - - static_instance-provinces-5 - kashmir - - - static_instance-provinces-6 - fata - - - static_instance-provinces-7 - out_of_country - - - - - - - static_instance-ucs-0 - sindh - karachi - korangi - bilal_colony - - - static_instance-ucs-1 - sindh - karachi - korangi - nasir_colony - - - static_instance-ucs-2 - sindh - karachi - korangi - chakra_goth - - - static_instance-ucs-3 - sindh - karachi - korangi - mustafa_taj_colony - - - static_instance-ucs-4 - sindh - karachi - korangi - hundred_quarters - - - static_instance-ucs-5 - sindh - karachi - korangi - gulzar_colony - - - static_instance-ucs-6 - sindh - karachi - korangi - korangi_sector_33 - - - static_instance-ucs-7 - sindh - karachi - korangi - zaman_town - - - static_instance-ucs-8 - sindh - karachi - korangi - hasrat_mohani_colony - - - static_instance-ucs-9 - sindh - karachi - baldia - gulshan_e_ghazi - - - static_instance-ucs-10 - sindh - karachi - baldia - ittehad_town - - - static_instance-ucs-11 - sindh - karachi - baldia - islam_nagar - - - static_instance-ucs-12 - sindh - karachi - baldia - nai_abadi - - - static_instance-ucs-13 - sindh - karachi - baldia - saeedabad - - - static_instance-ucs-14 - sindh - karachi - baldia - muslim_mujahid_colony - - - static_instance-ucs-15 - sindh - karachi - baldia - muhajir_camp - - - static_instance-ucs-16 - sindh - karachi - baldia - rasheedabad - - - static_instance-ucs-17 - sindh - karachi - bin_qasim - ibrahim_hyderi - - - static_instance-ucs-18 - sindh - karachi - bin_qasim - rehri - - - static_instance-ucs-19 - sindh - karachi - bin_qasim - cattle_colony - - - static_instance-ucs-20 - sindh - karachi - bin_qasim - qaidabad - - - static_instance-ucs-21 - sindh - karachi - bin_qasim - landhi_colony - - - static_instance-ucs-22 - sindh - karachi - bin_qasim - gulshan_e_hadeed - - - static_instance-ucs-23 - sindh - karachi - bin_qasim - gaghar - - - static_instance-ucs-24 - sindh - karachi - gadap - murad_memon_goth - - - static_instance-ucs-25 - sindh - karachi - gadap - darsano_chana - - - static_instance-ucs-26 - sindh - karachi - gadap - gujro - - - static_instance-ucs-27 - sindh - karachi - gadap - songal - - - static_instance-ucs-28 - sindh - karachi - gadap - maymarabad - - - static_instance-ucs-29 - sindh - karachi - gadap - yousuf_goth - - - static_instance-ucs-30 - sindh - karachi - gadap - manghopir - - - static_instance-ucs-31 - sindh - karachi - gulberg - azizabad - - - static_instance-ucs-32 - sindh - karachi - gulberg - karimabad - - - static_instance-ucs-33 - sindh - karachi - gulberg - aisha_manzil - - - static_instance-ucs-34 - sindh - karachi - gulberg - ancholi - - - static_instance-ucs-35 - sindh - karachi - gulberg - naseerabad - - - static_instance-ucs-36 - sindh - karachi - gulberg - yaseenabad - - - static_instance-ucs-37 - sindh - karachi - gulberg - water_pump - - - static_instance-ucs-38 - sindh - karachi - gulberg - shafiq_mill_colony - - - static_instance-ucs-39 - sindh - karachi - gulshan - delhi_mercantile_society - - - static_instance-ucs-40 - sindh - karachi - gulshan - civic_centre - - - static_instance-ucs-41 - sindh - karachi - gulshan - pir_ilahi_buksh_colony - - - static_instance-ucs-42 - sindh - karachi - gulshan - essa_nagri - - - static_instance-ucs-43 - sindh - karachi - gulshan - gulshan_e_iqbal - - - static_instance-ucs-44 - sindh - karachi - gulshan - gillani_railway_station - - - static_instance-ucs-45 - sindh - karachi - gulshan - shanti_nagar - - - static_instance-ucs-46 - sindh - karachi - gulshan - jamali_colony - - - static_instance-ucs-47 - sindh - karachi - gulshan - gulshan_e_iqbal_ii - - - static_instance-ucs-48 - sindh - karachi - gulshan - pehlwan_goth - - - static_instance-ucs-49 - sindh - karachi - gulshan - matrovil_colony - - - static_instance-ucs-50 - sindh - karachi - gulshan - gulzar_e_hijri - - - static_instance-ucs-51 - sindh - karachi - gulshan - safooran_goth - - - static_instance-ucs-52 - sindh - karachi - jamshed - akhtar_colony - - - static_instance-ucs-53 - sindh - karachi - jamshed - manzoor_colony - - - static_instance-ucs-54 - sindh - karachi - jamshed - azam_basti - - - static_instance-ucs-55 - sindh - karachi - jamshed - chanesar_goth - - - static_instance-ucs-56 - sindh - karachi - jamshed - mahmudabad - - - static_instance-ucs-57 - sindh - karachi - jamshed - pechs - - - static_instance-ucs-58 - sindh - karachi - jamshed - pechs_ii - - - static_instance-ucs-59 - sindh - karachi - jamshed - jut_line - - - static_instance-ucs-60 - sindh - karachi - jamshed - central_jacob_lines - - - static_instance-ucs-61 - sindh - karachi - jamshed - jamshed_quarters - - - static_instance-ucs-62 - sindh - karachi - jamshed - garden_east - - - static_instance-ucs-63 - sindh - karachi - jamshed - soldier_bazar - - - static_instance-ucs-64 - sindh - karachi - jamshed - pakistan_quarters - - - static_instance-ucs-65 - sindh - karachi - kiamari - bhutta_village - - - static_instance-ucs-66 - sindh - karachi - kiamari - sultanabad - - - static_instance-ucs-67 - sindh - karachi - kiamari - kiamari_uc - - - static_instance-ucs-68 - sindh - karachi - kiamari - baba_bhit - - - static_instance-ucs-69 - sindh - karachi - kiamari - machar_colony - - - static_instance-ucs-70 - sindh - karachi - kiamari - maripur - - - static_instance-ucs-71 - sindh - karachi - kiamari - shershah - - - static_instance-ucs-72 - sindh - karachi - kiamari - gabo_pat - - - static_instance-ucs-73 - sindh - karachi - landhi - muzafarabad - - - static_instance-ucs-74 - sindh - karachi - landhi - muslimabad - - - static_instance-ucs-75 - sindh - karachi - landhi - dawood_chowrangi - - - static_instance-ucs-76 - sindh - karachi - landhi - moinabad - - - static_instance-ucs-77 - sindh - karachi - landhi - sharafi_goth - - - static_instance-ucs-78 - sindh - karachi - landhi - bhutto_nagar - - - static_instance-ucs-79 - sindh - karachi - landhi - khawaja_ajmeer_colony - - - static_instance-ucs-80 - sindh - karachi - landhi - landhi_uc - - - static_instance-ucs-81 - sindh - karachi - landhi - awami_colony - - - static_instance-ucs-82 - sindh - karachi - landhi - burmee_colony - - - static_instance-ucs-83 - sindh - karachi - landhi - korangi_uc - - - static_instance-ucs-84 - sindh - karachi - landhi - sherabad - - - static_instance-ucs-85 - sindh - karachi - liaquatabad - rizvia_society - - - static_instance-ucs-86 - sindh - karachi - liaquatabad - firdous_colony - - - static_instance-ucs-87 - sindh - karachi - liaquatabad - super_market - - - static_instance-ucs-88 - sindh - karachi - liaquatabad - dak_khana - - - static_instance-ucs-89 - sindh - karachi - liaquatabad - qasimabad - - - static_instance-ucs-90 - sindh - karachi - liaquatabad - bandhani_colony - - - static_instance-ucs-91 - sindh - karachi - liaquatabad - sharifabad - - - static_instance-ucs-92 - sindh - karachi - liaquatabad - commercial_area - - - static_instance-ucs-93 - sindh - karachi - liaquatabad - mujahid_colony - - - static_instance-ucs-94 - sindh - karachi - liaquatabad - nazimabad - - - static_instance-ucs-95 - sindh - karachi - liaquatabad - abbasi_shaheed - - - static_instance-ucs-96 - sindh - karachi - lyari - agra_taj_colony - - - static_instance-ucs-97 - sindh - karachi - lyari - daryaabad - - - static_instance-ucs-98 - sindh - karachi - lyari - nawabad - - - static_instance-ucs-99 - sindh - karachi - lyari - khada_memon_society - - - static_instance-ucs-100 - sindh - karachi - lyari - baghdadi - - - static_instance-ucs-101 - sindh - karachi - lyari - shah_baig_line - - - static_instance-ucs-102 - sindh - karachi - lyari - bihar_colony - - - static_instance-ucs-103 - sindh - karachi - lyari - ragiwara - - - static_instance-ucs-104 - sindh - karachi - lyari - singo_line - - - static_instance-ucs-105 - sindh - karachi - lyari - chakiwara - - - static_instance-ucs-106 - sindh - karachi - lyari - allama_iqbal_colony - - - static_instance-ucs-107 - sindh - karachi - malir - model_colony - - - static_instance-ucs-108 - sindh - karachi - malir - kala_board - - - static_instance-ucs-109 - sindh - karachi - malir - saudabad - - - static_instance-ucs-110 - sindh - karachi - malir - khokhra_par - - - static_instance-ucs-111 - sindh - karachi - malir - jafar_e_tayyar - - - static_instance-ucs-112 - sindh - karachi - malir - gharibabad - - - static_instance-ucs-113 - sindh - karachi - malir - ghazi_brohi_goth - - - static_instance-ucs-114 - sindh - karachi - new_karachi - kalyana - - - static_instance-ucs-115 - sindh - karachi - new_karachi - sir_syed_colony - - - static_instance-ucs-116 - sindh - karachi - new_karachi - fatima_jinnah_colony - - - static_instance-ucs-117 - sindh - karachi - new_karachi - godhra - - - static_instance-ucs-118 - sindh - karachi - new_karachi - abu_zar_ghaffari - - - static_instance-ucs-119 - sindh - karachi - new_karachi - hakim_ahsan - - - static_instance-ucs-120 - sindh - karachi - new_karachi - madina_colony - - - static_instance-ucs-121 - sindh - karachi - new_karachi - faisal_colony - - - static_instance-ucs-122 - sindh - karachi - new_karachi - khamiso_goth - - - static_instance-ucs-123 - sindh - karachi - new_karachi - mustufa_colony - - - static_instance-ucs-124 - sindh - karachi - new_karachi - khawaja_ajmeer_nagri - - - static_instance-ucs-125 - sindh - karachi - new_karachi - gulshan_e_saeed - - - static_instance-ucs-126 - sindh - karachi - new_karachi - shah_nawaz_bhutto_colony - - - static_instance-ucs-127 - sindh - karachi - north_nazimabad - paposh_nagar - - - static_instance-ucs-128 - sindh - karachi - north_nazimabad - pahar_ganj - - - static_instance-ucs-129 - sindh - karachi - north_nazimabad - khandu_goth - - - static_instance-ucs-130 - sindh - karachi - north_nazimabad - hyderi - - - static_instance-ucs-131 - sindh - karachi - north_nazimabad - sakhi_hassan - - - static_instance-ucs-132 - sindh - karachi - north_nazimabad - farooq_e_azam - - - static_instance-ucs-133 - sindh - karachi - north_nazimabad - nusrat_bhutto_colony - - - static_instance-ucs-134 - sindh - karachi - north_nazimabad - shadman_town - - - static_instance-ucs-135 - sindh - karachi - north_nazimabad - buffer_zone - - - static_instance-ucs-136 - sindh - karachi - north_nazimabad - buffer_zone_ii - - - static_instance-ucs-137 - sindh - karachi - orangi - mominabad - - - static_instance-ucs-138 - sindh - karachi - orangi - haryana_colony - - - static_instance-ucs-139 - sindh - karachi - orangi - hanifabad - - - static_instance-ucs-140 - sindh - karachi - orangi - mohammad_nagar - - - static_instance-ucs-141 - sindh - karachi - orangi - madina_colony_orangi - - - static_instance-ucs-142 - sindh - karachi - orangi - ghaziabad - - - static_instance-ucs-143 - sindh - karachi - orangi - chisti_nagar - - - static_instance-ucs-144 - sindh - karachi - orangi - bilal_colony_orangi - - - static_instance-ucs-145 - sindh - karachi - orangi - iqbal_baloch_colony - - - static_instance-ucs-146 - sindh - karachi - orangi - ghabool_town - - - static_instance-ucs-147 - sindh - karachi - orangi - data_nagar - - - static_instance-ucs-148 - sindh - karachi - orangi - mujahidabad - - - static_instance-ucs-149 - sindh - karachi - orangi - baloch_goth - - - static_instance-ucs-150 - sindh - karachi - saddar - old_haji_camp - - - static_instance-ucs-151 - sindh - karachi - saddar - garden - - - static_instance-ucs-152 - sindh - karachi - saddar - kharadar - - - static_instance-ucs-153 - sindh - karachi - saddar - city_railway_colony - - - static_instance-ucs-154 - sindh - karachi - saddar - nanak_wara - - - static_instance-ucs-155 - sindh - karachi - saddar - gazdarabad - - - static_instance-ucs-156 - sindh - karachi - saddar - millat_nagar_islam_pura - - - static_instance-ucs-157 - sindh - karachi - saddar - saddar_uc - - - static_instance-ucs-158 - sindh - karachi - saddar - civil_line - - - static_instance-ucs-159 - sindh - karachi - saddar - clifton - - - static_instance-ucs-160 - sindh - karachi - saddar - kehkashan - - - static_instance-ucs-161 - sindh - karachi - shah_faisal - natha_khan_goth - - - static_instance-ucs-162 - sindh - karachi - shah_faisal - pak_sadat_colony - - - static_instance-ucs-163 - sindh - karachi - shah_faisal - drigh_colony - - - static_instance-ucs-164 - sindh - karachi - shah_faisal - raita_plot - - - static_instance-ucs-165 - sindh - karachi - shah_faisal - moria_khan_goth - - - static_instance-ucs-166 - sindh - karachi - shah_faisal - rafa_e_aam_society - - - static_instance-ucs-167 - sindh - karachi - shah_faisal - al_falah_society - - - static_instance-ucs-168 - sindh - karachi - site - pak_colony - - - static_instance-ucs-169 - sindh - karachi - site - old_golimar - - - static_instance-ucs-170 - sindh - karachi - site - jahanabad - - - static_instance-ucs-171 - sindh - karachi - site - metrovil - - - static_instance-ucs-172 - sindh - karachi - site - bhawani_chali - - - static_instance-ucs-173 - sindh - karachi - site - frontier_colony - - - static_instance-ucs-174 - sindh - karachi - site - banaras_colony - - - static_instance-ucs-175 - sindh - karachi - site - qasba_colony - - - static_instance-ucs-176 - sindh - karachi - site - islamia_colony - - - static_instance-ucs-177 - na - na - na - other - - - static_instance-ucs-178 - na - na - na - not_applicable - - - - - - - static_instance-gender-0 - male - - - static_instance-gender-1 - female - - - static_instance-gender-2 - transgender - - - - - - - static_instance-vaccines-0 - bcg - - - static_instance-vaccines-1 - opv0 - - - static_instance-vaccines-2 - pcv1 - - - static_instance-vaccines-3 - opv1 - - - static_instance-vaccines-4 - penta1 - - - static_instance-vaccines-5 - pcv2 - - - static_instance-vaccines-6 - opv2 - - - static_instance-vaccines-7 - penta2 - - - static_instance-vaccines-8 - pcv3 - - - static_instance-vaccines-9 - opv3 - - - static_instance-vaccines-10 - penta3 - - - static_instance-vaccines-11 - ipv - - - static_instance-vaccines-12 - measles1 - - - static_instance-vaccines-13 - measles2 - - - - - - - static_instance-towns-0 - sindh - karachi - korangi - - - static_instance-towns-1 - sindh - karachi - landhi - - - static_instance-towns-2 - sindh - karachi - baldia - - - static_instance-towns-3 - sindh - karachi - bin_qasim - - - static_instance-towns-4 - sindh - karachi - gadap - - - static_instance-towns-5 - sindh - karachi - gulberg - - - static_instance-towns-6 - sindh - karachi - gulshan - - - static_instance-towns-7 - sindh - karachi - jamshed - - - static_instance-towns-8 - sindh - karachi - kiamari - - - static_instance-towns-9 - sindh - karachi - liaquatabad - - - static_instance-towns-10 - sindh - karachi - lyari - - - static_instance-towns-11 - sindh - karachi - malir - - - static_instance-towns-12 - sindh - karachi - new_karachi - - - static_instance-towns-13 - sindh - karachi - north_nazimabad - - - static_instance-towns-14 - sindh - karachi - orangi - - - static_instance-towns-15 - sindh - karachi - saddar - - - static_instance-towns-16 - sindh - karachi - shah_faisal - - - static_instance-towns-17 - sindh - karachi - site - - - static_instance-towns-18 - na - na - other - - - static_instance-towns-19 - na - na - not_applicable - - - - - - - static_instance-cities-0 - sindh - karachi - - - static_instance-cities-1 - punjab - hafizabad - - - static_instance-cities-2 - punjab - muzaffargarh - - - static_instance-cities-3 - na - other - - - static_instance-cities-4 - na - not_applicable - - - - - - - static_instance-yes_no-0 - yes - - - static_instance-yes_no-1 - no - - - - diff --git a/opensrp-web/src/test/resources/form/entity_relationship.json b/opensrp-web/src/test/resources/form/entity_relationship.json deleted file mode 100644 index 02ccf2f21f..0000000000 --- a/opensrp-web/src/test/resources/form/entity_relationship.json +++ /dev/null @@ -1,35 +0,0 @@ -[ - { - "parent": "pkwoman", - "child": "pkchild", - "field": "child", - "kind": "one_to_many", - "from": "pkwoman.id", - "to": "pkchild.relationalid" - }, - - { - "parent": "stock", - "child": "reports", - "field": "stock", - "kind": "one_to_one", - "from": "stock.id", - "to": "reports.relationalid" - }, - { - "parent": "eligible_couple", - "child": "mother", - "field": "wife", - "kind": "one_to_one", - "from": "eligible_couple.id", - "to": "mother.ecCaseId" - }, - { - "parent": "wife", - "child": "child", - "field": "children", - "kind": "one_to_many", - "from": "wife.id", - "to": "child.motherCaseId" - } -] \ No newline at end of file diff --git a/opensrp-web/src/test/resources/form/new_household_registration/form.json b/opensrp-web/src/test/resources/form/new_household_registration/form.json deleted file mode 100644 index 0288ac30df..0000000000 --- a/opensrp-web/src/test/resources/form/new_household_registration/form.json +++ /dev/null @@ -1,655 +0,0 @@ -{ - "default_language": "Bengali", - "id_string": "FWNewHH_1", - "children": [ - { - "name": "existing_location", - "instance": { - "openmrs_entity_id": "location_id", - "openmrs_entity": "encounter" - }, - "type": "hidden" - }, - { - "name": "today", - "instance": { - "openmrs_entity_id": "encounter_date", - "openmrs_entity": "encounter" - }, - "type": "today" - }, - { - "name": "start", - "instance": { - "openmrs_entity_id": "encounter_start", - "openmrs_entity": "encounter" - }, - "type": "start" - }, - { - "name": "end", - "instance": { - "openmrs_entity_id": "encounter_end", - "openmrs_entity": "encounter" - }, - "type": "end" - }, - { - "name": "FWNHREGDATE", - "hint": { - "Bengali": "আজকের তারিখ দিন", - "English": "Confirm Today’s date is correct" - }, - "bind": { - "jr:constraintMsg": { - "Bengali": "তারিখ আজকের তারিখের চেয়ে বেশী হতে পারবেনা", - "English": "Date cannot be greater than current date." - }, - "required": "yes", - "constraint": ".<=${today}" - }, - "label": { - "Bengali": "তথ্য সংগ্রহের তারিখ", - "English": "Date of Interview" - }, - "instance": { - "openmrs_entity_id": "160753AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "date" - }, - { - "control": { - "appearance": "numbers" - }, - "name": "FWGOBHHID", - "hint": { - "Bengali": "অনুগ্রহ করে খানার দরজাতে লেখা কালো রঙের JiVitA/Study household ID (HHID) টি টাইপ করুন", - "English": "Please input the Black – painted Government household ID (HHID) as displayed on the door/wall of the HH." - }, - "bind": { - "jr:constraintMsg": { - "Bengali": "অনুগ্রহ করে ০০০১ থেকে ৯৯৯৯ এর মধ্যে ৪ ডিজিটের GoB HHID টাইপ করুন", - "English": "Please enter 4 digits of GoB HHID from 0001 to 9999" - }, - "required": "yes", - "constraint": "regex(., '^(?!0{4})[0-9]{4}$')" - }, - "label": { - "Bengali": "GoB HHID", - "English": "GoB HHID" - }, - "instance": { - "openmrs_entity_id": "GOB HHID", - "openmrs_entity": "person_identifier" - }, - "type": "text" - }, - { - "control": { - "appearance": "numbers" - }, - "name": "FWJIVHHID", - "hint": { - "Bengali": "অনুগ্রহ করে খানার দরজাতে লেখা লাল রঙের JiVitA/Study household ID (HHID) টি টাইপ করুন", - "English": "Please input the RED – painted JiVitA / Study household ID (HHID) as displayed on the door/wall of the HH." - }, - "bind": { - "jr:constraintMsg": { - "Bengali": "অনুগ্রহ করে ০০০১ থেকে ৯৯৯৯ এর মধ্যে ৪ ডিজিটের JiVitA HHID টাইপ করুন", - "English": "Please enter 4 digits of JiVitA HHID from 0001 to 9999" - }, - "required": "yes", - "constraint": "regex(., '^(?!0{4})[0-9]{4}$')" - }, - "label": { - "Bengali": "JiVitA HHID", - "English": "JiVitA HHID" - }, - "instance": { - "openmrs_entity_id": "JiVitA HHID", - "openmrs_entity": "person_identifier" - }, - "type": "text" - }, - { - "name": "FWNHNEARTO", - "label": { - "Bengali": "নিকটবর্তী স্থান", - "English": "Near to" - }, - "instance": { - "openmrs_entity_parent": "usual_residence", - "openmrs_entity_id": "landmark", - "openmrs_entity": "person_address" - }, - "type": "text" - }, - { - "name": "FWNHHHGPS", - "bind": { - "required": "yes" - }, - "label": { - "Bengali": "জি পি এস", - "English": "Collect GPS Location of HH" - }, - "instance": { - "openmrs_entity_parent": "usual_residence", - "openmrs_entity_id": "geopoint", - "openmrs_entity": "person_address" - }, - "type": "geopoint" - }, - { - "name": "FWHOHFNAME", - "bind": { - "required": "yes" - }, - "label": { - "Bengali": "খানা প্রধানের নাম-", - "English": "Head of Household Name" - }, - "instance": { - "openmrs_entity_id": "first_name", - "openmrs_entity": "person" - }, - "type": "text" - }, - { - "name": "FWHOHLNAME", - "bind": { - "calculate": "\".\"" - }, - "instance": { - "openmrs_entity_id": "last_name", - "openmrs_entity": "person" - }, - "type": "calculate" - }, - { - "name": "FWHOHBIRTHDATE", - "bind": { - "calculate": "\"1900-01-01\"" - }, - "instance": { - "openmrs_entity_id": "birthdate", - "openmrs_entity": "person" - }, - "type": "calculate" - }, - { - "name": "FWHOHGENDER", - "bind": { - "calculate": "\"male\"" - }, - "instance": { - "openmrs_entity_id": "gender", - "openmrs_entity": "person" - }, - "type": "calculate" - }, - { - "name": "FWNHHMBRNUM", - "label": { - "Bengali": "খানা সদস্যের সংখ্যা কত?", - "English": "How many people are currently living in this household?" - }, - "instance": { - "openmrs_entity_id": "5611AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "integer" - }, - { - "children": [ - { - "name": "0", - "label": { - "Bengali": "না", - "English": "No" - }, - "instance": { - "openmrs_code": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - } - }, - { - "name": "1", - "label": { - "Bengali": "হ্যাঁ", - "English": "Yes" - }, - "instance": { - "openmrs_code": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - } - }, - { - "name": "9", - "label": { - "Bengali": "জানিনা", - "English": "Don't know" - }, - "instance": { - "openmrs_code": "1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - } - } - ], - "name": "FWNHHMWRA", - "label": { - "Bengali": "এই খানায় কি প্রজনন বয়সী বিবাহিত মহিলা আছেন?", - "English": "Are there any MWRAs in this Household?" - }, - "type": "select one" - }, - { - "children": [ - { - "name": "FWWOMFNAME", - "hint": { - "Bengali": "অনুগ্রহ করে মহিলার নাম টাইপ করুন", - "English": "Please type woman's name" - }, - "bind": { - "required": "yes" - }, - "label": { - "Bengali": "মহিলার নাম-", - "English": "Woman Name" - }, - "instance": { - "openmrs_entity_id": "first_name", - "openmrs_entity": "person" - }, - "type": "text" - }, - { - "name": "FWWOMLNAME", - "bind": { - "calculate": "\".\"" - }, - "instance": { - "openmrs_entity_id": "last_name", - "openmrs_entity": "person" - }, - "type": "calculate" - }, - { - "control": { - "appearance": "numbers" - }, - "name": "FWWOMNID", - "hint": { - "Bengali": "অনুগ্রহ করে জাতীয় পরিচয়পত্র কার্ড দেখে সরকার প্রদত্ত আইডি টাইপ করুন", - "English": "Please input the Government ID as displayed on the national ID card" - }, - "bind": { - "jr:constraintMsg": { - "Bengali": "জাতীয় পরিচয়পত্র নং ১৩ অথবা ১৭ ডিজিটের হবে", - "English": "National ID should be 13 or 17 digits" - }, - "constraint": "regex(., '^(?!0{13})[0-9]{13}$') or regex(., '^(?!0{17})[0-9]{17}$')" - }, - "label": { - "Bengali": "মহিলার জাতীয় পরিচয়পত্র নং-", - "English": "Woman's National ID Number" - }, - "instance": { - "openmrs_entity_id": "NID", - "openmrs_entity": "person_identifier" - }, - "type": "text" - }, - { - "control": { - "appearance": "numbers" - }, - "name": "FWWOMBID", - "hint": { - "Bengali": "অনুগ্রহ করে জন্ম নিবন্ধন সনদ দেখে সরকার প্রদত্ত আইডি টাইপ করুন", - "English": "Please input the Government ID as displayed on the birth certificate" - }, - "bind": { - "jr:constraintMsg": { - "Bengali": "জন্ম নিবন্ধন সনদ নং ১৭ ডিজিটের হবে", - "English": "Birth Registration ID should be 17 digits" - }, - "required": "yes", - "constraint": "regex(., '^(?!0{17})[0-9]{17}$')" - }, - "label": { - "Bengali": "মহিলার জন্ম নিবন্ধন সনদ নং-", - "English": "Woman's Birth Registration ID" - }, - "instance": { - "openmrs_entity_id": "Birth Registration ID", - "openmrs_entity": "person_identifier" - }, - "type": "text" - }, - { - "name": "FWHUSNAME", - "hint": { - "Bengali": "অনুগ্রহ করে স্বামীর নাম টাইপ করুন", - "English": "Please type husband's name" - }, - "bind": { - "required": "yes" - }, - "label": { - "Bengali": "স্বামীর নাম-", - "English": "Husband Name" - }, - "instance": { - "openmrs_entity_id": "161135AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "text" - }, - { - "name": "FWBIRTHDATE", - "hint": { - "Bengali": "মহিলার জন্ম নিবন্ধন পত্র থাকলে সেখান থেকে জন্ম তারিখটি লিখে নিন। যদি জন্ম তারিখ জানা না থাকে তবে তারিখ ১৫ সিলেক্ট করুন, যদি মাস জানা না থাকে তবে মাস ৬ (জুন) সিলেক্ট করুন", - "English": "If birth certificate is available, take date of birth from the birth certificate. \nIf date of birth is unknown, choose 15th as the date of birth. If month is unknown, choose month 06 (June) as month of birth." - }, - "bind": { - "jr:constraintMsg": { - "Bengali": "মহিলার বয়স অবশ্যই ১৩ বছরের বেশী হবে", - "English": "Woman must be older than 13 years of age" - }, - "required": "yes", - "constraint": "((${FWBIRTHDATE})+4745) <= today()" - }, - "label": { - "Bengali": "মহিলার জন্ম তারিখ", - "English": "Woman's Date of Birth" - }, - "instance": { - "openmrs_entity_id": "birthdate", - "openmrs_entity": "person" - }, - "type": "date" - }, - { - "name": "FWGENDER", - "bind": { - "calculate": "\"female\"" - }, - "instance": { - "openmrs_entity_id": "gender", - "openmrs_entity": "person" - }, - "type": "calculate" - }, - { - "name": "FWWOMAGE", - "bind": { - "calculate": "round(((${today} - ${FWBIRTHDATE}) div 365.25),0)" - }, - "type": "calculate" - }, - { - "name": "display_age", - "label": { - "Bengali": "মহিলার বয়স ${FWWOMAGE}", - "English": "The woman's age is ${FWWOMAGE}." - }, - "type": "note" - }, - { - "children": [ - { - "name": "0", - "label": { - "Bengali": "না", - "English": "No" - }, - "instance": { - "openmrs_code": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - } - }, - { - "name": "1", - "label": { - "Bengali": "হ্যাঁ", - "English": "Yes" - }, - "instance": { - "openmrs_code": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - } - }, - { - "name": "9", - "label": { - "Bengali": "জানিনা", - "English": "Don't know" - }, - "instance": { - "openmrs_code": "1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - } - } - ], - "name": "FWNHWOMSTRMEN", - "bind": { - "required": "yes" - }, - "label": { - "Bengali": "আপনার কি মাসিক একেবারে উঠে গেছে/আপনি কি স্থায়ী জন্মনিয়ন্ত্রন পদ্ধতি গ্রহণ করেছেন?", - "English": "Are you currently menopausal or sterilized?" - }, - "type": "select one" - }, - { - "children": [ - { - "name": "0", - "label": { - "Bengali": "মারা গেছেন", - "English": "Deceased" - }, - "instance": { - "openmrs_code": "159AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - } - }, - { - "name": "1", - "label": { - "Bengali": "বেঁচে আছেন", - "English": "Alive" - }, - "instance": { - "openmrs_code": "160429AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - } - }, - { - "name": "9", - "label": { - "Bengali": "জানিনা", - "English": "Don't know" - }, - "instance": { - "openmrs_code": "1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - } - } - ], - "name": "FWNHWOMHUSALV", - "bind": { - "relevant": "${FWNHWOMSTRMEN}='0'", - "required": "yes" - }, - "label": { - "Bengali": "আপনার স্বামী কি বেঁচে আছেন?", - "English": "Is the husband alive?" - }, - "instance": { - "openmrs_entity_id": "5561AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "select one" - }, - { - "children": [ - { - "name": "0", - "label": { - "Bengali": "না", - "English": "No" - }, - "instance": { - "openmrs_code": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - } - }, - { - "name": "1", - "label": { - "Bengali": "হ্যাঁ", - "English": "Yes" - }, - "instance": { - "openmrs_code": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - } - }, - { - "name": "9", - "label": { - "Bengali": "জানিনা", - "English": "Don't know" - }, - "instance": { - "openmrs_code": "1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - } - } - ], - "name": "FWNHWOMHUSLIV", - "bind": { - "relevant": "${FWNHWOMSTRMEN}='0' and ${FWNHWOMHUSALV}='1'", - "required": "yes" - }, - "label": { - "Bengali": "আপনি কি বর্তমানে আপনার স্বামীর সাথে বসবাস করছেন?", - "English": "Are you currently living with your husband?" - }, - "instance": { - "openmrs_entity_id": "1060AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "select one" - }, - { - "children": [ - { - "name": "0", - "label": { - "Bengali": "না", - "English": "No" - }, - "instance": { - "openmrs_code": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - } - }, - { - "name": "1", - "label": { - "Bengali": "হ্যাঁ", - "English": "Yes" - }, - "instance": { - "openmrs_code": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - } - }, - { - "name": "9", - "label": { - "Bengali": "জানিনা", - "English": "Don't know" - }, - "instance": { - "openmrs_code": "1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - } - } - ], - "name": "FWNHWOMHUSSTR", - "bind": { - "relevant": "${FWNHWOMSTRMEN}='0' and ${FWNHWOMHUSLIV}='1'", - "required": "yes" - }, - "label": { - "Bengali": "আপনার স্বামী কি স্থায়ী জন্মনিয়ন্ত্রন পদ্ধতি গ্রহণ করেছেন?", - "English": "Is the husband sterilized?" - }, - "type": "select one" - }, - { - "name": "FWELIGIBLE", - "bind": { - "calculate": "if(${FWNHWOMSTRMEN}='0' and ${FWNHWOMHUSLIV}='1' and ${FWNHWOMHUSSTR}='0',1,0)" - }, - "type": "calculate" - }, - { - "name": "add_women", - "label": { - "Bengali": "এই খানায় যদি আরও কোন মহিলা থাকে যাকে রেজিস্ট্রেশন করা হয়নি, তাহলে '+' অপশনটি বাছুন এবং একই প্রক্রিয়ায় পরবর্তী মহিলাকে রেজিস্ট্রেশন করুন", - "English": "If there are any additional unregistered women in this household, select the '+' to add them now." - }, - "type": "note" - } - ], - "name": "woman", - "hint": { - "Bengali": "আমরা এখন মহিলাটির রেজিস্ট্রেশন প্রক্রিয়া শুরু করতে যাচ্ছি। অনুগ্রহ করে মহিলাটিরে তার জন্ম নিবন্ধন স ও জাতীয় পরিচয়পত্র নিয়ে আসতে বলুন।", - "English": "We will now register the woman. Please ask her to bring her National ID Card and Birth Certificate." - }, - "bind": { - "relevant": "${FWNHHMWRA}='1'" - }, - "label": { - "Bengali": "মহিলা তথ্যঃ", - "English": "New Woman Registration" - }, - "instance": { - "openmrs_entity_id": "Census and New Woman Registration", - "openmrs_entity": "person" - }, - "type": "repeat" - }, - { - "name": "join_names", - "bind": { - "calculate": "join(' ', ${FWWOMFNAME})" - }, - "type": "calculate" - }, - { - "name": "MWRA", - "bind": { - "calculate": "if(${join_names} = '', 0, count(${woman}))" - }, - "type": "calculate" - }, - { - "control": { - "bodyless": true - }, - "children": [ - { - "name": "instanceID", - "bind": { - "readonly": "true()", - "calculate": "concat('uuid:', uuid())" - }, - "type": "calculate" - } - ], - "name": "meta", - "type": "group" - } - ], - "instance": { - "encounter_type": "New Household Registration" - }, - "version": "201505070930", - "type": "survey", - "name": "FWNewHH", - "sms_keyword": "FWNewHH", - "title": "FW new HH Reg" -} \ No newline at end of file diff --git a/opensrp-web/src/test/resources/form/new_household_registration/form.xml b/opensrp-web/src/test/resources/form/new_household_registration/form.xml deleted file mode 100644 index 85089deaa5..0000000000 --- a/opensrp-web/src/test/resources/form/new_household_registration/form.xml +++ /dev/null @@ -1,26 +0,0 @@ - -
-

নতুন খানা রেজিস্ট্রেশন ফর্ম

- - - - - - - - - -
এই খানায় কি প্রজনন বয়সী বিবাহিত মহিলা আছেন?Are there any MWRAs in this Household? -
-

মহিলা তথ্যঃNew Woman Registration

আপনার কি মাসিক একেবারে উঠে গেছে/আপনি কি স্থায়ী জন্মনিয়ন্ত্রন পদ্ধতি গ্রহণ করেছেন?Are you currently menopausal or sterilized?* -
আপনার স্বামী কি বেঁচে আছেন?Is the husband alive?* -
আপনি কি বর্তমানে আপনার স্বামীর সাথে বসবাস করছেন?Are you currently living with your husband?* -
আপনার স্বামী কি স্থায়ী জন্মনিয়ন্ত্রন পদ্ধতি গ্রহণ করেছেন?Is the husband sterilized?* -
-
-
- -
XML to HTML transformation for form took 0.03 secondsThis validation is yet not functional.
diff --git a/opensrp-web/src/test/resources/form/new_household_registration/form_definition.json b/opensrp-web/src/test/resources/form/new_household_registration/form_definition.json deleted file mode 100644 index f1dea2a941..0000000000 --- a/opensrp-web/src/test/resources/form/new_household_registration/form_definition.json +++ /dev/null @@ -1,166 +0,0 @@ -{ - "form_data_definition_version": "1", - "form": { - "default_bind_path": "/model/instance/FWNewHH", - "bind_type": "household", - "fields": [ - { - "name": "id", - "shouldLoadValue": true - }, - { - "name": "existing_location", - "bind": "/model/instance/FWNewHH/existing_location" - }, - { - "name": "today", - "bind": "/model/instance/FWNewHH/today" - }, - { - "name": "start", - "bind": "/model/instance/FWNewHH/start" - }, - { - "name": "end", - "bind": "/model/instance/FWNewHH/end" - }, - { - "name": "FWNHREGDATE", - "bind": "/model/instance/FWNewHH/FWNHREGDATE" - }, - { - "name": "FWGOBHHID", - "bind": "/model/instance/FWNewHH/FWGOBHHID" - }, - { - "name": "FWJIVHHID", - "bind": "/model/instance/FWNewHH/FWJIVHHID" - }, - { - "name": "FWNHNEARTO", - "bind": "/model/instance/FWNewHH/FWNHNEARTO" - }, - { - "name": "FWNHHHGPS", - "bind": "/model/instance/FWNewHH/FWNHHHGPS" - }, - { - "name": "FWHOHFNAME", - "bind": "/model/instance/FWNewHH/FWHOHFNAME" - }, - { - "name": "FWHOHLNAME", - "bind": "/model/instance/FWNewHH/FWHOHLNAME" - }, - { - "name": "FWHOHBIRTHDATE", - "bind": "/model/instance/FWNewHH/FWHOHBIRTHDATE" - }, - { - "name": "FWHOHBIRTHDATEAPPROX", - "bind": "/model/instance/FWNewHH/FWHOHBIRTHDATEAPPROX" - }, - { - "name": "FWHOHGENDER", - "bind": "/model/instance/FWNewHH/FWHOHGENDER" - }, - { - "name": "FWNHHMBRNUM", - "bind": "/model/instance/FWNewHH/FWNHHMBRNUM" - }, - { - "name": "FWNHHMWRA", - "bind": "/model/instance/FWNewHH/FWNHHMWRA" - }, - { - "name": "join_names", - "bind": "/model/instance/FWNewHH/join_names" - }, - { - "name": "MWRA", - "bind": "/model/instance/FWNewHH/MWRA" - } - ], - "sub_forms": [ - { - "name": "elco_registration", - "bind_type": "elco", - "default_bind_path": "/model/instance/FWNewHH/woman", - "fields": [ - { - "name": "id", - "shouldLoadValue": true - }, - { - "name": "GOBHHID", - "bind": "/model/instance/FWNewHH/woman/GOBHHID" - }, - { - "name": "JiVitAHHID", - "bind": "/model/instance/FWNewHH/woman/JiVitAHHID" - }, - { - "name": "FWWOMFNAME", - "bind": "/model/instance/FWNewHH/woman/FWWOMFNAME" - }, - { - "name": "FWWOMLNAME", - "bind": "/model/instance/FWNewHH/woman/FWWOMLNAME" - }, - { - "name": "FWWOMNID", - "bind": "/model/instance/FWNewHH/woman/FWWOMNID" - }, - { - "name": "FWWOMBID", - "bind": "/model/instance/FWNewHH/woman/FWWOMBID" - }, - { - "name": "FWHUSNAME", - "bind": "/model/instance/FWNewHH/woman/FWHUSNAME" - }, - { - "name": "FWBIRTHDATE", - "bind": "/model/instance/FWNewHH/woman/FWBIRTHDATE" - }, - { - "name": "FWBIRTHDATEAPPROX", - "bind": "/model/instance/FWNewHH/woman/FWBIRTHDATEAPPROX" - }, - { - "name": "FWGENDER", - "bind": "/model/instance/FWNewHH/woman/FWGENDER" - }, - { - "name": "FWWOMAGE", - "bind": "/model/instance/FWNewHH/woman/FWWOMAGE" - }, - { - "name": "display_age", - "bind": "/model/instance/FWNewHH/woman/display_age" - }, - { - "name": "FWNHWOMSTRMEN", - "bind": "/model/instance/FWNewHH/woman/FWNHWOMSTRMEN" - }, - { - "name": "FWNHWOMHUSALV", - "bind": "/model/instance/FWNewHH/woman/FWNHWOMHUSALV" - }, - { - "name": "FWNHWOMHUSLIV", - "bind": "/model/instance/FWNewHH/woman/FWNHWOMHUSLIV" - }, - { - "name": "FWNHWOMHUSSTR", - "bind": "/model/instance/FWNewHH/woman/FWNHWOMHUSSTR" - }, - { - "name": "FWELIGIBLE", - "bind": "/model/instance/FWNewHH/woman/FWELIGIBLE" - } - ] - } - ] - } -} \ No newline at end of file diff --git a/opensrp-web/src/test/resources/form/new_household_registration/form_submission1.json b/opensrp-web/src/test/resources/form/new_household_registration/form_submission1.json deleted file mode 100644 index a6a2f189a5..0000000000 --- a/opensrp-web/src/test/resources/form/new_household_registration/form_submission1.json +++ /dev/null @@ -1,228 +0,0 @@ -{ - "_id": "251ca0ef09df9af88f0e9d5f180115a3", - "_rev": "1-e73e1d93acdcdaeb1d41a738da5d9284", - "type": "FormSubmission", - "anmId": "demotest", - "instanceId": "88c0e824-10b4-44c2-9429-754b8d823776", - "formName": "new_household_registration", - "entityId": "a3f2abf4-2699-4761-819a-cea739224164", - "clientVersion": 1430997074596, - "formDataDefinitionVersion": "1", - "formInstance": { - "form_data_definition_version": "1", - "form": { - "bind_type": "household", - "default_bind_path": "/model/instance/FWNewHH", - "fields": [ - { - "name": "id", - "value": "a3f2abf4-2699-4761-819a-cea739224164", - "source": "household.id" - }, - { - "name": "existing_location", - "value": "KUPTALA", - "source": "household.existing_location" - }, - { - "name": "today", - "value": "2015-05-07", - "source": "household.today" - }, - { - "name": "start", - "value": "2015-05-07T17:07:21.000+06:00", - "source": "household.start" - }, - { - "name": "end", - "value": "2015-05-07T17:07:21.000+06:00", - "source": "household.end" - }, - { - "name": "FWNHREGDATE", - "value": "2015-05-07", - "source": "household.FWNHREGDATE" - }, - { - "name": "FWGOBHHID", - "value": "1234", - "source": "household.FWGOBHHID" - }, - { - "name": "FWJIVHHID", - "value": "1234", - "source": "household.FWJIVHHID" - }, - { - "name": "FWNHNEARTO", - "value": "nothing", - "source": "household.FWNHNEARTO" - }, - { - "name": "FWNHHHGPS", - "value": "34 34 0 0", - "source": "household.FWNHHHGPS" - }, - { - "name": "FWHOHFNAME", - "value": "test", - "source": "household.FWHOHFNAME" - }, - { - "name": "FWHOHLNAME", - "value": ".", - "source": "household.FWHOHLNAME" - }, - { - "name": "FWHOHBIRTHDATE", - "value": "1900-01-01", - "source": "household.FWHOHBIRTHDATE" - }, - { - "name": "FWHOHGENDER", - "value": "male", - "source": "household.FWHOHGENDER" - }, - { - "name": "FWNHHMBRNUM", - "value": "2", - "source": "household.FWNHHMBRNUM" - }, - { - "name": "FWNHHMWRA", - "value": "1", - "source": "household.FWNHHMWRA" - }, - { - "name": "join_names", - "value": "shumi sumaita", - "source": "household.join_names" - }, - { - "name": "MWRA", - "value": "2", - "source": "household.MWRA" - } - ], - "sub_forms": [ - { - "name": "elco_registration", - "bind_type": "elco", - "default_bind_path": "/model/instance/FWNewHH/woman", - "fields": [ - { - "name": "id", - "source": "elco.id" - }, - { - "name": "GOBHHID", - "source": "elco.GOBHHID" - }, - { - "name": "JiVitAHHID", - "source": "elco.JiVitAHHID" - }, - { - "name": "FWWOMFNAME", - "source": "elco.FWWOMFNAME" - }, - { - "name": "FWWOMLNAME", - "source": "elco.FWWOMLNAME" - }, - { - "name": "FWWOMNID", - "source": "elco.FWWOMNID" - }, - { - "name": "FWWOMBID", - "source": "elco.FWWOMBID" - }, - { - "name": "FWHUSNAME", - "source": "elco.FWHUSNAME" - }, - { - "name": "FWBIRTHDATE", - "source": "elco.FWBIRTHDATE" - }, - { - "name": "FWGENDER", - "source": "elco.FWGENDER" - }, - { - "name": "FWWOMAGE", - "source": "elco.FWWOMAGE" - }, - { - "name": "display_age", - "source": "elco.display_age" - }, - { - "name": "FWNHWOMSTRMEN", - "source": "elco.FWNHWOMSTRMEN" - }, - { - "name": "FWNHWOMHUSALV", - "source": "elco.FWNHWOMHUSALV" - }, - { - "name": "FWNHWOMHUSLIV", - "source": "elco.FWNHWOMHUSLIV" - }, - { - "name": "FWNHWOMHUSSTR", - "source": "elco.FWNHWOMHUSSTR" - }, - { - "name": "FWELIGIBLE", - "source": "elco.FWELIGIBLE" - } - ], - "instances": [ - { - "GOBHHID": "1234323", - "JiVitAHHID": "123465656", - "FWWOMFNAME": "shumi", - "FWWOMLNAME": ".", - "FWWOMNID": "", - "FWWOMBID": "54676545676787876", - "FWHUSNAME": "selim", - "FWBIRTHDATE": "1998-02-04", - "FWGENDER": "female", - "FWWOMAGE": "17", - "display_age": "", - "FWNHWOMSTRMEN": "1", - "FWNHWOMHUSALV": "", - "FWNHWOMHUSLIV": "", - "FWNHWOMHUSSTR": "", - "FWELIGIBLE": "0", - "id": "babcd9d2-b3e9-4f6d-8a06-2df8f5fbf01f" - }, - { - "GOBHHID": "1234121", - "JiVitAHHID": "12348787", - "FWWOMFNAME": "sumaita", - "FWWOMLNAME": ".", - "FWWOMNID": "", - "FWWOMBID": "56543456567654567", - "FWHUSNAME": "razzak", - "FWBIRTHDATE": "1989-08-18", - "FWGENDER": "female", - "FWWOMAGE": "26", - "display_age": "", - "FWNHWOMSTRMEN": "0", - "FWNHWOMHUSALV": "1", - "FWNHWOMHUSLIV": "1", - "FWNHWOMHUSSTR": "1", - "FWELIGIBLE": "0", - "id": "74eebb60-a1b9-4691-81a4-5c04ecce7ae9" - } - ] - } - ] - } - }, - "serverVersion": 1430998001293 -} \ No newline at end of file diff --git a/opensrp-web/src/test/resources/form/new_household_registration/form_submission10.json b/opensrp-web/src/test/resources/form/new_household_registration/form_submission10.json deleted file mode 100644 index 9865433f21..0000000000 --- a/opensrp-web/src/test/resources/form/new_household_registration/form_submission10.json +++ /dev/null @@ -1,248 +0,0 @@ -{ - "_id": "7d4c3478fc23d9d68a755448d922626a", - "_rev": "1-1bf3d28bcacc299b757ac93a806314eb", - "type": "FormSubmission", - "anmId": "demotest", - "instanceId": "88c0e824-10b4-44c2-9429-754b8d823776", - "formName": "new_household_registration", - "entityId": "a3f2abf4-2699-4761-819a-cea739224164", - "clientVersion": 1430997074596, - "formDataDefinitionVersion": "1", - "formInstance": { - "form_data_definition_version": "1", - "form": { - "bind_type": "household", - "default_bind_path": "/model/instance/FWNewHH", - "fields": [ - { - "name": "id", - "value": "a3f2abf4-2699-4761-819a-cea739224164", - "source": "household.id" - }, - { - "name": "existing_location", - "value": "KUPTALA", - "source": "household.existing_location" - }, - { - "name": "today", - "value": "2015-05-07", - "source": "household.today" - }, - { - "name": "start", - "value": "2015-05-07T17:07:21.000+06:00", - "source": "household.start" - }, - { - "name": "end", - "value": "2015-05-07T17:07:21.000+06:00", - "source": "household.end" - }, - { - "name": "FWNHREGDATE", - "value": "2015-05-07", - "source": "household.FWNHREGDATE" - }, - { - "name": "FWGOBHHID", - "value": "1234", - "source": "household.FWGOBHHID" - }, - { - "name": "FWJIVHHID", - "value": "1234", - "source": "household.FWJIVHHID" - }, - { - "name": "FWNHNEARTO", - "value": "nothing", - "source": "household.FWNHNEARTO" - }, - { - "name": "FWNHHHGPS", - "value": "34 34 0 0", - "source": "household.FWNHHHGPS" - }, - { - "name": "FWHOHFNAME", - "value": "test", - "source": "household.FWHOHFNAME" - }, - { - "name": "FWHOHLNAME", - "value": ".", - "source": "household.FWHOHLNAME" - }, - { - "name": "FWHOHBIRTHDATE", - "value": "1900-01-01", - "source": "household.FWHOHBIRTHDATE" - }, - { - "name": "FWHOHGENDER", - "value": "male", - "source": "household.FWHOHGENDER" - }, - { - "name": "FWNHHMBRNUM", - "value": "2", - "source": "household.FWNHHMBRNUM" - }, - { - "name": "FWNHHMWRA", - "value": "1", - "source": "household.FWNHHMWRA" - }, - { - "name": "join_names", - "value": "shumi sumaita", - "source": "household.join_names" - }, - { - "name": "MWRA", - "value": "2", - "source": "household.MWRA" - } - ], - "sub_forms": [ - { - "name": "elco_registration", - "bind_type": "elco", - "default_bind_path": "/model/instance/FWNewHH/woman", - "fields": [ - { - "name": "id", - "source": "elco.id" - }, - { - "name": "GOBHHID", - "source": "elco.GOBHHID" - }, - { - "name": "JiVitAHHID", - "source": "elco.JiVitAHHID" - }, - { - "name": "FWWOMFNAME", - "source": "elco.FWWOMFNAME" - }, - { - "name": "FWWOMLNAME", - "source": "elco.FWWOMLNAME" - }, - { - "name": "FWWOMNID", - "source": "elco.FWWOMNID" - }, - { - "name": "FWWOMBID", - "source": "elco.FWWOMBID" - }, - { - "name": "FWHUSNAME", - "source": "elco.FWHUSNAME" - }, - { - "name": "FWBIRTHDATE", - "source": "elco.FWBIRTHDATE" - }, - { - "name": "FWGENDER", - "source": "elco.FWGENDER" - }, - { - "name": "FWWOMAGE", - "source": "elco.FWWOMAGE" - }, - { - "name": "display_age", - "source": "elco.display_age" - }, - { - "name": "FWNHWOMSTRMEN", - "source": "elco.FWNHWOMSTRMEN" - }, - { - "name": "FWNHWOMHUSALV", - "source": "elco.FWNHWOMHUSALV" - }, - { - "name": "FWNHWOMHUSLIV", - "source": "elco.FWNHWOMHUSLIV" - }, - { - "name": "FWNHWOMHUSSTR", - "source": "elco.FWNHWOMHUSSTR" - }, - { - "name": "FWELIGIBLE", - "source": "elco.FWELIGIBLE" - } - ], - "instances": [ - { - "GOBHHID": "1234323", - "JiVitAHHID": "123465656", - "FWWOMFNAME": "shumi", - "FWWOMLNAME": ".", - "FWWOMNID": "", - "FWWOMBID": "54676545676787876", - "FWHUSNAME": "selim", - "FWBIRTHDATE": "1998-02-04", - "FWGENDER": "female", - "FWWOMAGE": "17", - "display_age": "", - "FWNHWOMSTRMEN": "1", - "FWNHWOMHUSALV": "", - "FWNHWOMHUSLIV": "", - "FWNHWOMHUSSTR": "", - "FWELIGIBLE": "0", - "id": "babcd9d2-b3e9-4f6d-8a06-2df8f5fbf01f" - }, - { - "GOBHHID": "1234121", - "JiVitAHHID": "12348787", - "FWWOMFNAME": "sumaita", - "FWWOMLNAME": ".", - "FWWOMNID": "", - "FWWOMBID": "56543456567654567", - "FWHUSNAME": "razzak", - "FWBIRTHDATE": "1989-08-18", - "FWGENDER": "female", - "FWWOMAGE": "26", - "display_age": "", - "FWNHWOMSTRMEN": "0", - "FWNHWOMHUSALV": "1", - "FWNHWOMHUSLIV": "1", - "FWNHWOMHUSSTR": "1", - "FWELIGIBLE": "0", - "id": "74eebb60-a1b9-4691-81a4-5c04ecce7ae9" - } - ] - } - ], - "fieldsAsMap": { - "FWHOHLNAME": ".", - "FWHOHGENDER": "male", - "FWNHREGDATE": "2015-05-07", - "join_names": "shumi sumaita", - "FWNHHHGPS": "34 34 0 0", - "start": "2015-05-07T17:07:21.000+06:00", - "FWNHHMWRA": "1", - "FWGOBHHID": "1234", - "existing_location": "KUPTALA", - "FWHOHFNAME": "test", - "FWNHNEARTO": "nothing", - "today": "2015-05-07", - "FWJIVHHID": "1234", - "FWHOHBIRTHDATE": "1900-01-01", - "end": "2015-05-07T17:07:21.000+06:00", - "id": "a3f2abf4-2699-4761-819a-cea739224164", - "FWNHHMBRNUM": "2", - "MWRA": "2" - } - } - }, - "serverVersion": 1502972618849 -} diff --git a/opensrp-web/src/test/resources/form/new_household_registration/form_submission2.json b/opensrp-web/src/test/resources/form/new_household_registration/form_submission2.json deleted file mode 100644 index 7141db6678..0000000000 --- a/opensrp-web/src/test/resources/form/new_household_registration/form_submission2.json +++ /dev/null @@ -1,207 +0,0 @@ -{ - "_id": "251ca0ef09df9af88f0e9d5f18000df2", - "_rev": "1-0cec42380dce0fef7b1263aad8652c3f", - "type": "FormSubmission", - "anmId": "demotest", - "instanceId": "916363c4-a10e-488d-8de4-9be7a05d43cd", - "formName": "new_household_registration", - "entityId": "0aac6d81-b51f-4096-b354-5a5786e406c8", - "clientVersion": 1430924780686, - "formDataDefinitionVersion": "1", - "formInstance": { - "form_data_definition_version": "1", - "form": { - "bind_type": "household", - "default_bind_path": "/model/instance/FWNewHH", - "fields": [ - { - "name": "id", - "value": "0aac6d81-b51f-4096-b354-5a5786e406c8", - "source": "household.id" - }, - { - "name": "existing_location", - "value": "KUPTALA", - "source": "household.existing_location" - }, - { - "name": "today", - "value": "2015-05-06", - "source": "household.today" - }, - { - "name": "start", - "value": "2015-05-06T21:05:35.000+06:00", - "source": "household.start" - }, - { - "name": "end", - "value": "2015-05-06T21:05:35.000+06:00", - "source": "household.end" - }, - { - "name": "FWNHREGDATE", - "value": "2015-05-06", - "source": "household.FWNHREGDATE" - }, - { - "name": "FWGOBHHID", - "value": "0002", - "source": "household.FWGOBHHID" - }, - { - "name": "FWJIVHHID", - "value": "0002", - "source": "household.FWJIVHHID" - }, - { - "name": "FWNHNEARTO", - "source": "household.FWNHNEARTO" - }, - { - "name": "FWNHHHGPS", - "value": "23.7984 90.4019 0 25", - "source": "household.FWNHHHGPS" - }, - { - "name": "FWHOHFNAME", - "value": "karim mia", - "source": "household.FWHOHFNAME" - }, - { - "name": "FWHOHLNAME", - "value": ".", - "source": "household.FWHOHLNAME" - }, - { - "name": "FWHOHBIRTHDATE", - "value": "1900-01-01", - "source": "household.FWHOHBIRTHDATE" - }, - { - "name": "FWHOHGENDER", - "value": "male", - "source": "household.FWHOHGENDER" - }, - { - "name": "FWNHHMBRNUM", - "value": "1", - "source": "household.FWNHHMBRNUM" - }, - { - "name": "FWNHHMWRA", - "value": "0", - "source": "household.FWNHHMWRA" - }, - { - "name": "join_names", - "source": "household.join_names" - }, - { - "name": "MWRA", - "value": "0", - "source": "household.MWRA" - } - ], - "sub_forms": [ - { - "name": "elco_registration", - "bind_type": "elco", - "default_bind_path": "/model/instance/FWNewHH/woman", - "fields": [ - { - "name": "id", - "source": "elco.id" - }, - { - "name": "GOBHHID", - "source": "elco.GOBHHID" - }, - { - "name": "JiVitAHHID", - "source": "elco.JiVitAHHID" - }, - { - "name": "FWWOMFNAME", - "source": "elco.FWWOMFNAME" - }, - { - "name": "FWWOMLNAME", - "source": "elco.FWWOMLNAME" - }, - { - "name": "FWWOMNID", - "source": "elco.FWWOMNID" - }, - { - "name": "FWWOMBID", - "source": "elco.FWWOMBID" - }, - { - "name": "FWHUSNAME", - "source": "elco.FWHUSNAME" - }, - { - "name": "FWBIRTHDATE", - "source": "elco.FWBIRTHDATE" - }, - { - "name": "FWGENDER", - "source": "elco.FWGENDER" - }, - { - "name": "FWWOMAGE", - "source": "elco.FWWOMAGE" - }, - { - "name": "display_age", - "source": "elco.display_age" - }, - { - "name": "FWNHWOMSTRMEN", - "source": "elco.FWNHWOMSTRMEN" - }, - { - "name": "FWNHWOMHUSALV", - "source": "elco.FWNHWOMHUSALV" - }, - { - "name": "FWNHWOMHUSLIV", - "source": "elco.FWNHWOMHUSLIV" - }, - { - "name": "FWNHWOMHUSSTR", - "source": "elco.FWNHWOMHUSSTR" - }, - { - "name": "FWELIGIBLE", - "source": "elco.FWELIGIBLE" - } - ], - "instances": [ - { - "GOBHHID": "0002", - "JiVitAHHID": "042002", - "FWWOMFNAME": "fana", - "FWWOMLNAME": ".", - "FWWOMNID": "", - "FWWOMBID": "9999999999999999", - "FWHUSNAME": "", - "FWBIRTHDATE": "2000-12-12", - "FWGENDER": "female", - "FWWOMAGE": "NaN", - "display_age": "", - "FWNHWOMSTRMEN": "", - "FWNHWOMHUSALV": "", - "FWNHWOMHUSLIV": "", - "FWNHWOMHUSSTR": "", - "FWELIGIBLE": "1", - "id": "b19db74f-6e96-4652-a765-5078beb12434" - } - ] - } - ] - } - }, - "serverVersion": 1430924937728 -} \ No newline at end of file diff --git a/opensrp-web/src/test/resources/form/new_household_registration/form_submission3.json b/opensrp-web/src/test/resources/form/new_household_registration/form_submission3.json deleted file mode 100644 index 113c3c0829..0000000000 --- a/opensrp-web/src/test/resources/form/new_household_registration/form_submission3.json +++ /dev/null @@ -1,208 +0,0 @@ -{ - "_id": "251ca0ef09df9af88f0e9d5f1800160d", - "_rev": "1-89988ca8cc2db0cd67afc292263137fe", - "type": "FormSubmission", - "anmId": "demotest", - "instanceId": "1cdf1628-86f2-440b-b5b0-4bc612d2fd2f", - "formName": "new_household_registration", - "entityId": "baf59aa4-64e9-46fc-99e6-8cd8f01618ff", - "clientVersion": 1430925173098, - "formDataDefinitionVersion": "1", - "formInstance": { - "form_data_definition_version": "1", - "form": { - "bind_type": "household", - "default_bind_path": "/model/instance/FWNewHH", - "fields": [ - { - "name": "id", - "value": "baf59aa4-64e9-46fc-99e6-8cd8f01618ff", - "source": "household.id" - }, - { - "name": "existing_location", - "value": "LAKSHMIPUR", - "source": "household.existing_location" - }, - { - "name": "today", - "value": "2015-05-06", - "source": "household.today" - }, - { - "name": "start", - "value": "2015-05-06T21:09:22.000+06:00", - "source": "household.start" - }, - { - "name": "end", - "value": "2015-05-06T21:09:22.000+06:00", - "source": "household.end" - }, - { - "name": "FWNHREGDATE", - "value": "2015-05-06", - "source": "household.FWNHREGDATE" - }, - { - "name": "FWGOBHHID", - "value": "0091", - "source": "household.FWGOBHHID" - }, - { - "name": "FWJIVHHID", - "value": "0091", - "source": "household.FWJIVHHID" - }, - { - "name": "FWNHNEARTO", - "source": "household.FWNHNEARTO" - }, - { - "name": "FWNHHHGPS", - "value": "23.7984 90.402 0 40", - "source": "household.FWNHHHGPS" - }, - { - "name": "FWHOHFNAME", - "value": "hasan ferox", - "source": "household.FWHOHFNAME" - }, - { - "name": "FWHOHLNAME", - "value": ".", - "source": "household.FWHOHLNAME" - }, - { - "name": "FWHOHBIRTHDATE", - "value": "1900-01-01", - "source": "household.FWHOHBIRTHDATE" - }, - { - "name": "FWHOHGENDER", - "value": "male", - "source": "household.FWHOHGENDER" - }, - { - "name": "FWNHHMBRNUM", - "value": "1", - "source": "household.FWNHHMBRNUM" - }, - { - "name": "FWNHHMWRA", - "value": "1", - "source": "household.FWNHHMWRA" - }, - { - "name": "join_names", - "value": "mithila", - "source": "household.join_names" - }, - { - "name": "MWRA", - "value": "1", - "source": "household.MWRA" - } - ], - "sub_forms": [ - { - "name": "elco_registration", - "bind_type": "elco", - "default_bind_path": "/model/instance/FWNewHH/woman", - "fields": [ - { - "name": "id", - "source": "elco.id" - }, - { - "name": "GOBHHID", - "source": "elco.GOBHHID" - }, - { - "name": "JiVitAHHID", - "source": "elco.JiVitAHHID" - }, - { - "name": "FWWOMFNAME", - "source": "elco.FWWOMFNAME" - }, - { - "name": "FWWOMLNAME", - "source": "elco.FWWOMLNAME" - }, - { - "name": "FWWOMNID", - "source": "elco.FWWOMNID" - }, - { - "name": "FWWOMBID", - "source": "elco.FWWOMBID" - }, - { - "name": "FWHUSNAME", - "source": "elco.FWHUSNAME" - }, - { - "name": "FWBIRTHDATE", - "source": "elco.FWBIRTHDATE" - }, - { - "name": "FWGENDER", - "source": "elco.FWGENDER" - }, - { - "name": "FWWOMAGE", - "source": "elco.FWWOMAGE" - }, - { - "name": "display_age", - "source": "elco.display_age" - }, - { - "name": "FWNHWOMSTRMEN", - "source": "elco.FWNHWOMSTRMEN" - }, - { - "name": "FWNHWOMHUSALV", - "source": "elco.FWNHWOMHUSALV" - }, - { - "name": "FWNHWOMHUSLIV", - "source": "elco.FWNHWOMHUSLIV" - }, - { - "name": "FWNHWOMHUSSTR", - "source": "elco.FWNHWOMHUSSTR" - }, - { - "name": "FWELIGIBLE", - "source": "elco.FWELIGIBLE" - } - ], - "instances": [ - { - "GOBHHID": "0091", - "JiVitAHHID": "0524091", - "FWWOMFNAME": "mithila", - "FWWOMLNAME": ".", - "FWWOMNID": "1111111111111", - "FWWOMBID": "12345678912345678", - "FWHUSNAME": "hasan feroz", - "FWBIRTHDATE": "1989-01-01", - "FWGENDER": "female", - "FWWOMAGE": "26", - "display_age": "", - "FWNHWOMSTRMEN": "0", - "FWNHWOMHUSALV": "1", - "FWNHWOMHUSLIV": "1", - "FWNHWOMHUSSTR": "1", - "FWELIGIBLE": "0", - "id": "409b44c4-262a-40b8-ad7d-748c480c7c13" - } - ] - } - ] - } - }, - "serverVersion": 1430925176060 -} \ No newline at end of file diff --git a/opensrp-web/src/test/resources/form/new_household_registration/form_submission4.json b/opensrp-web/src/test/resources/form/new_household_registration/form_submission4.json deleted file mode 100644 index 7665de2411..0000000000 --- a/opensrp-web/src/test/resources/form/new_household_registration/form_submission4.json +++ /dev/null @@ -1,208 +0,0 @@ -{ - "_id": "251ca0ef09df9af88f0e9d5f18001e50", - "_rev": "1-3a413b7428ae33aafd08898dc2c974d4", - "type": "FormSubmission", - "anmId": "demotest", - "instanceId": "cad01d9c-9f7f-4e0b-a66a-2d1121bf8b8d", - "formName": "new_household_registration", - "entityId": "f92ee1b5-c3ce-42fb-bbc8-e01f474acc5a", - "clientVersion": 1430926871912, - "formDataDefinitionVersion": "1", - "formInstance": { - "form_data_definition_version": "1", - "form": { - "bind_type": "household", - "default_bind_path": "/model/instance/FWNewHH", - "fields": [ - { - "name": "id", - "value": "f92ee1b5-c3ce-42fb-bbc8-e01f474acc5a", - "source": "household.id" - }, - { - "name": "existing_location", - "value": "KUPTALA", - "source": "household.existing_location" - }, - { - "name": "today", - "value": "2015-05-06", - "source": "household.today" - }, - { - "name": "start", - "value": "2015-05-06T21:38:52.000+06:00", - "source": "household.start" - }, - { - "name": "end", - "value": "2015-05-06T21:38:52.000+06:00", - "source": "household.end" - }, - { - "name": "FWNHREGDATE", - "value": "2015-05-06", - "source": "household.FWNHREGDATE" - }, - { - "name": "FWGOBHHID", - "value": "4567", - "source": "household.FWGOBHHID" - }, - { - "name": "FWJIVHHID", - "value": "5678", - "source": "household.FWJIVHHID" - }, - { - "name": "FWNHNEARTO", - "source": "household.FWNHNEARTO" - }, - { - "name": "FWNHHHGPS", - "value": "23.7984 90.4021 0 37", - "source": "household.FWNHHHGPS" - }, - { - "name": "FWHOHFNAME", - "value": "jashim mia", - "source": "household.FWHOHFNAME" - }, - { - "name": "FWHOHLNAME", - "value": ".", - "source": "household.FWHOHLNAME" - }, - { - "name": "FWHOHBIRTHDATE", - "value": "1900-01-01", - "source": "household.FWHOHBIRTHDATE" - }, - { - "name": "FWHOHGENDER", - "value": "male", - "source": "household.FWHOHGENDER" - }, - { - "name": "FWNHHMBRNUM", - "value": "5", - "source": "household.FWNHHMBRNUM" - }, - { - "name": "FWNHHMWRA", - "value": "1", - "source": "household.FWNHHMWRA" - }, - { - "name": "join_names", - "value": "razia sultana", - "source": "household.join_names" - }, - { - "name": "MWRA", - "value": "1", - "source": "household.MWRA" - } - ], - "sub_forms": [ - { - "name": "elco_registration", - "bind_type": "elco", - "default_bind_path": "/model/instance/FWNewHH/woman", - "fields": [ - { - "name": "id", - "source": "elco.id" - }, - { - "name": "GOBHHID", - "source": "elco.GOBHHID" - }, - { - "name": "JiVitAHHID", - "source": "elco.JiVitAHHID" - }, - { - "name": "FWWOMFNAME", - "source": "elco.FWWOMFNAME" - }, - { - "name": "FWWOMLNAME", - "source": "elco.FWWOMLNAME" - }, - { - "name": "FWWOMNID", - "source": "elco.FWWOMNID" - }, - { - "name": "FWWOMBID", - "source": "elco.FWWOMBID" - }, - { - "name": "FWHUSNAME", - "source": "elco.FWHUSNAME" - }, - { - "name": "FWBIRTHDATE", - "source": "elco.FWBIRTHDATE" - }, - { - "name": "FWGENDER", - "source": "elco.FWGENDER" - }, - { - "name": "FWWOMAGE", - "source": "elco.FWWOMAGE" - }, - { - "name": "display_age", - "source": "elco.display_age" - }, - { - "name": "FWNHWOMSTRMEN", - "source": "elco.FWNHWOMSTRMEN" - }, - { - "name": "FWNHWOMHUSALV", - "source": "elco.FWNHWOMHUSALV" - }, - { - "name": "FWNHWOMHUSLIV", - "source": "elco.FWNHWOMHUSLIV" - }, - { - "name": "FWNHWOMHUSSTR", - "source": "elco.FWNHWOMHUSSTR" - }, - { - "name": "FWELIGIBLE", - "source": "elco.FWELIGIBLE" - } - ], - "instances": [ - { - "GOBHHID": "4567", - "JiVitAHHID": "5678", - "FWWOMFNAME": "razia sultana", - "FWWOMLNAME": ".", - "FWWOMNID": "0987654321123", - "FWWOMBID": "09876543211234567", - "FWHUSNAME": "jashim mia", - "FWBIRTHDATE": "1991-02-27", - "FWGENDER": "female", - "FWWOMAGE": "24", - "display_age": "", - "FWNHWOMSTRMEN": "0", - "FWNHWOMHUSALV": "1", - "FWNHWOMHUSLIV": "1", - "FWNHWOMHUSSTR": "0", - "FWELIGIBLE": "1", - "id": "0036b7ca-36ec-4242-9885-a0a03a666cda" - } - ] - } - ] - } - }, - "serverVersion": 1430926886181 -} \ No newline at end of file diff --git a/opensrp-web/src/test/resources/form/new_household_registration/form_submission5.json b/opensrp-web/src/test/resources/form/new_household_registration/form_submission5.json deleted file mode 100644 index 8447c0ff4a..0000000000 --- a/opensrp-web/src/test/resources/form/new_household_registration/form_submission5.json +++ /dev/null @@ -1,209 +0,0 @@ -{ - "_id": "251ca0ef09df9af88f0e9d5f180115a3", - "_rev": "1-e73e1d93acdcdaeb1d41a738da5d9284", - "type": "FormSubmission", - "anmId": "demotest", - "instanceId": "88c0e824-10b4-44c2-9429-754b8d823776", - "formName": "new_household_registration", - "entityId": "a3f2abf4-2699-4761-819a-cea739224164", - "clientVersion": 1430997074596, - "formDataDefinitionVersion": "1", - "formInstance": { - "form_data_definition_version": "1", - "form": { - "bind_type": "household", - "default_bind_path": "/model/instance/FWNewHH", - "fields": [ - { - "name": "id", - "value": "a3f2abf4-2699-4761-819a-cea739224164", - "source": "household.id" - }, - { - "name": "existing_location", - "value": "KUPTALA", - "source": "household.existing_location" - }, - { - "name": "today", - "value": "2015-05-07", - "source": "household.today" - }, - { - "name": "start", - "value": "2015-05-07T17:07:21.000+06:00", - "source": "household.start" - }, - { - "name": "end", - "value": "2015-05-07T17:07:21.000+06:00", - "source": "household.end" - }, - { - "name": "FWNHREGDATE", - "value": "2015-05-07", - "source": "household.FWNHREGDATE" - }, - { - "name": "FWGOBHHID", - "value": "1234", - "source": "household.FWGOBHHID" - }, - { - "name": "FWJIVHHID", - "value": "1234", - "source": "household.FWJIVHHID" - }, - { - "name": "FWNHNEARTO", - "value": "nothing", - "source": "household.FWNHNEARTO" - }, - { - "name": "FWNHHHGPS", - "value": "34 34 0 0", - "source": "household.FWNHHHGPS" - }, - { - "name": "FWHOHFNAME", - "value": "test", - "source": "household.FWHOHFNAME" - }, - { - "name": "FWHOHLNAME", - "value": ".", - "source": "household.FWHOHLNAME" - }, - { - "name": "FWHOHBIRTHDATE", - "value": "1900-01-01", - "source": "household.FWHOHBIRTHDATE" - }, - { - "name": "FWHOHGENDER", - "value": "male", - "source": "household.FWHOHGENDER" - }, - { - "name": "FWNHHMBRNUM", - "value": "2", - "source": "household.FWNHHMBRNUM" - }, - { - "name": "FWNHHMWRA", - "value": "1", - "source": "household.FWNHHMWRA" - }, - { - "name": "join_names", - "value": "shumi sumaita", - "source": "household.join_names" - }, - { - "name": "MWRA", - "value": "2", - "source": "household.MWRA" - } - ], - "sub_forms": [ - { - "name": "elco_registration", - "bind_type": "elco", - "default_bind_path": "/model/instance/FWNewHH/woman", - "fields": [ - { - "name": "id", - "source": "elco.id" - }, - { - "name": "GOBHHID", - "source": "elco.GOBHHID" - }, - { - "name": "JiVitAHHID", - "source": "elco.JiVitAHHID" - }, - { - "name": "FWWOMFNAME", - "source": "elco.FWWOMFNAME" - }, - { - "name": "FWWOMLNAME", - "source": "elco.FWWOMLNAME" - }, - { - "name": "FWWOMNID", - "source": "elco.FWWOMNID" - }, - { - "name": "FWWOMBID", - "source": "elco.FWWOMBID" - }, - { - "name": "FWHUSNAME", - "source": "elco.FWHUSNAME" - }, - { - "name": "FWBIRTHDATE", - "source": "elco.FWBIRTHDATE" - }, - { - "name": "FWGENDER", - "source": "elco.FWGENDER" - }, - { - "name": "FWWOMAGE", - "source": "elco.FWWOMAGE" - }, - { - "name": "display_age", - "source": "elco.display_age" - }, - { - "name": "FWNHWOMSTRMEN", - "source": "elco.FWNHWOMSTRMEN" - }, - { - "name": "FWNHWOMHUSALV", - "source": "elco.FWNHWOMHUSALV" - }, - { - "name": "FWNHWOMHUSLIV", - "source": "elco.FWNHWOMHUSLIV" - }, - { - "name": "FWNHWOMHUSSTR", - "source": "elco.FWNHWOMHUSSTR" - }, - { - "name": "FWELIGIBLE", - "source": "elco.FWELIGIBLE" - } - ], - "instances": [ - { - "GOBHHID": "", - "JiVitAHHID": "", - "FWWOMFNAME": "", - "FWWOMLNAME": "", - "FWWOMNID": "", - "FWWOMBID": "", - "FWHUSNAME": "", - "FWBIRTHDATE": "", - "FWGENDER": "", - "FWWOMAGE": "", - "display_age": "", - "FWNHWOMSTRMEN": "", - "FWNHWOMHUSALV": "", - "FWNHWOMHUSLIV": "", - "FWNHWOMHUSSTR": "", - "FWELIGIBLE": "", - "id": "babcd9d2-b3e9-4f6d-8a06-2df8f5fbf01f" - } - ] - } - ] - } - }, - "serverVersion": 1430998001293 -} \ No newline at end of file diff --git a/opensrp-web/src/test/resources/form/new_household_registration/form_submission6.json b/opensrp-web/src/test/resources/form/new_household_registration/form_submission6.json deleted file mode 100644 index 8f3ec6c5ad..0000000000 --- a/opensrp-web/src/test/resources/form/new_household_registration/form_submission6.json +++ /dev/null @@ -1,216 +0,0 @@ -{ - "_id": "251ca0ef09df9af88f0e9d5f180115a3", - "_rev": "1-e73e1d93acdcdaeb1d41a738da5d9284", - "type": "FormSubmission", - "anmId": "admin", - "instanceId": "88c0e824-10b4-44c2-9429-754b8d823776", - "formName": "new_household_registration", - "entityId": "a3f2abf4-2699-4761-819a-cea739224164", - "clientVersion": 1430997074596, - "formDataDefinitionVersion": "1", - "formInstance": { - "form_data_definition_version": "1", - "form": { - "bind_type": "household", - "default_bind_path": "/model/instance/FWNewHH", - "fields": [ - { - "name": "id", - "value": "a3f2abf4-2699-4761-819a-cea739224164", - "source": "household.id" - }, - { - "name": "existing_location", - "value": "KUPTALA", - "source": "household.existing_location" - }, - { - "name": "today", - "value": "2015-05-07", - "source": "household.today" - }, - { - "name": "start", - "value": "2015-05-07T17:07:21.000+06:00", - "source": "household.start" - }, - { - "name": "end", - "value": "2015-05-07T17:07:21.000+06:00", - "source": "household.end" - }, - { - "name": "FWNHREGDATE", - "value": "2015-05-07", - "source": "household.FWNHREGDATE" - }, - { - "name": "FWGOBHHID", - "value": "1234", - "source": "household.FWGOBHHID" - }, - { - "name": "FWJIVHHID", - "value": "1234", - "source": "household.FWJIVHHID" - }, - { - "name": "FWNHNEARTO", - "value": "nothing", - "source": "household.FWNHNEARTO" - }, - { - "name": "FWNHHHGPS", - "value": "34 34 0 0", - "source": "household.FWNHHHGPS" - }, - { - "name": "FWHOHFNAME", - "value": "test", - "source": "household.FWHOHFNAME" - }, - { - "name": "FWHOHLNAME", - "value": ".", - "source": "household.FWHOHLNAME" - }, - { - "name": "FWHOHBIRTHDATE", - "value": "1900-01-01", - "source": "household.FWHOHBIRTHDATE" - }, - { - "name": "FWHOHBIRTHDATEAPPROX", - "value": "1", - "source": "household.FWHOHBIRTHDATEAPPROX" - }, - { - "name": "FWHOHGENDER", - "value": "male", - "source": "household.FWHOHGENDER" - }, - { - "name": "FWNHHMBRNUM", - "source": "household.FWNHHMBRNUM" - }, - { - "name": "FWNHHMWRA", - "source": "household.FWNHHMWRA" - }, - { - "name": "join_names", - "value": "shumi sumaita", - "source": "household.join_names" - }, - { - "name": "MWRA", - "source": "household.MWRA" - } - ], - "sub_forms": [ - { - "name": "elco_registration", - "bind_type": "elco", - "default_bind_path": "/model/instance/FWNewHH/woman", - "fields": [ - { - "name": "id", - "source": "elco.id" - }, - { - "name": "GOBHHID", - "source": "elco.GOBHHID" - }, - { - "name": "JiVitAHHID", - "source": "elco.JiVitAHHID" - }, - { - "name": "FWWOMFNAME", - "source": "elco.FWWOMFNAME" - }, - { - "name": "FWWOMLNAME", - "source": "elco.FWWOMLNAME" - }, - { - "name": "FWWOMNID", - "source": "elco.FWWOMNID" - }, - { - "name": "FWWOMBID", - "source": "elco.FWWOMBID" - }, - { - "name": "FWHUSNAME", - "source": "elco.FWHUSNAME" - }, - { - "name": "FWBIRTHDATE", - "source": "elco.FWBIRTHDATE" - }, - { - "name": "FWBIRTHDATEAPPROX", - "source": "elco.FWBIRTHDATEAPPROX" - }, - { - "name": "FWGENDER", - "source": "elco.FWGENDER" - }, - { - "name": "FWWOMAGE", - "source": "elco.FWWOMAGE" - }, - { - "name": "display_age", - "source": "elco.display_age" - }, - { - "name": "FWNHWOMSTRMEN", - "source": "elco.FWNHWOMSTRMEN" - }, - { - "name": "FWNHWOMHUSALV", - "source": "elco.FWNHWOMHUSALV" - }, - { - "name": "FWNHWOMHUSLIV", - "source": "elco.FWNHWOMHUSLIV" - }, - { - "name": "FWNHWOMHUSSTR", - "source": "elco.FWNHWOMHUSSTR" - }, - { - "name": "FWELIGIBLE", - "source": "elco.FWELIGIBLE" - } - ], - "instances": [ - { - "GOBHHID": "48374", - "JiVitAHHID": "78748", - "FWWOMFNAME": "tEST First", - "FWWOMLNAME": " lastname", - "FWWOMNID": "", - "FWWOMBID": "", - "FWHUSNAME": "", - "FWBIRTHDATE": "2000-05-07", - "FWBIRTHDATEAPPROX":"1", - "FWGENDER": "Female", - "FWWOMAGE": "", - "display_age": "", - "FWNHWOMSTRMEN": "", - "FWNHWOMHUSALV": "", - "FWNHWOMHUSLIV": "", - "FWNHWOMHUSSTR": "", - "FWELIGIBLE": "", - "id": "babcd9d2-b3e9-4f6d-8a06-2df8f5fbf01f" - } - ] - } - ] - } - }, - "serverVersion": 1430998001293 -} \ No newline at end of file diff --git a/opensrp-web/src/test/resources/form/new_household_registration/form_submission7.json b/opensrp-web/src/test/resources/form/new_household_registration/form_submission7.json deleted file mode 100644 index 443ced2385..0000000000 --- a/opensrp-web/src/test/resources/form/new_household_registration/form_submission7.json +++ /dev/null @@ -1,216 +0,0 @@ -{ - "_id": "251ca0ef09df9af88f0e9d5f180115a3", - "_rev": "1-e73e1d93acdcdaeb1d41a738da5d9284", - "type": "FormSubmission", - "anmId": "admin", - "instanceId": "88c0e824-10b4-44c2-9429-754b8d823776", - "formName": "new_household_registration", - "entityId": "a3f2abf4-2699-4761-819a-cea739224164", - "clientVersion": 1430997074596, - "formDataDefinitionVersion": "1", - "formInstance": { - "form_data_definition_version": "1", - "form": { - "bind_type": "household", - "default_bind_path": "/model/instance/FWNewHH", - "fields": [ - { - "name": "id", - "value": "a3f2abf4-2699-4761-819a-cea739224164", - "source": "household.id" - }, - { - "name": "existing_location", - "value": "KUPTALA", - "source": "household.existing_location" - }, - { - "name": "today", - "value": "2015-05-07", - "source": "household.today" - }, - { - "name": "start", - "value": "2015-05-07T17:07:21.000+06:00", - "source": "household.start" - }, - { - "name": "end", - "value": "2015-05-07T17:07:21.000+06:00", - "source": "household.end" - }, - { - "name": "FWNHREGDATE", - "value": "2015-05-07", - "source": "household.FWNHREGDATE" - }, - { - "name": "FWGOBHHID", - "value": "1234", - "source": "household.FWGOBHHID" - }, - { - "name": "FWJIVHHID", - "value": "1234", - "source": "household.FWJIVHHID" - }, - { - "name": "FWNHNEARTO", - "value": "nothing", - "source": "household.FWNHNEARTO" - }, - { - "name": "FWNHHHGPS", - "value": "34 34 0 0", - "source": "household.FWNHHHGPS" - }, - { - "name": "FWHOHFNAME", - "value": "test", - "source": "household.FWHOHFNAME" - }, - { - "name": "FWHOHLNAME", - "value": ".", - "source": "household.FWHOHLNAME" - }, - { - "name": "FWHOHBIRTHDATE", - "value": "1900-01-01", - "source": "household.FWHOHBIRTHDATE" - }, - { - "name": "FWHOHBIRTHDATEAPPROX", - "value": "1", - "source": "household.FWHOHBIRTHDATEAPPROX" - }, - { - "name": "FWHOHGENDER", - "value": "male", - "source": "household.FWHOHGENDER" - }, - { - "name": "FWNHHMBRNUM", - "source": "household.FWNHHMBRNUM" - }, - { - "name": "FWNHHMWRA", - "source": "household.FWNHHMWRA" - }, - { - "name": "join_names", - "value": "shumi sumaita", - "source": "household.join_names" - }, - { - "name": "MWRA", - "source": "household.MWRA" - } - ], - "sub_forms": [ - { - "name": "elco_registration", - "bind_type": "elco", - "default_bind_path": "/model/instance/FWNewHH/woman", - "fields": [ - { - "name": "id", - "source": "elco.id" - }, - { - "name": "GOBHHID", - "source": "elco.GOBHHID" - }, - { - "name": "JiVitAHHID", - "source": "elco.JiVitAHHID" - }, - { - "name": "FWWOMFNAME", - "source": "elco.FWWOMFNAME" - }, - { - "name": "FWWOMLNAME", - "source": "elco.FWWOMLNAME" - }, - { - "name": "FWWOMNID", - "source": "elco.FWWOMNID" - }, - { - "name": "FWWOMBID", - "source": "elco.FWWOMBID" - }, - { - "name": "FWHUSNAME", - "source": "elco.FWHUSNAME" - }, - { - "name": "FWBIRTHDATE", - "source": "elco.FWBIRTHDATE" - }, - { - "name": "FWBIRTHDATEAPPROX", - "source": "elco.FWBIRTHDATEAPPROX" - }, - { - "name": "FWGENDER", - "source": "elco.FWGENDER" - }, - { - "name": "FWWOMAGE", - "source": "elco.FWWOMAGE" - }, - { - "name": "display_age", - "source": "elco.display_age" - }, - { - "name": "FWNHWOMSTRMEN", - "source": "elco.FWNHWOMSTRMEN" - }, - { - "name": "FWNHWOMHUSALV", - "source": "elco.FWNHWOMHUSALV" - }, - { - "name": "FWNHWOMHUSLIV", - "source": "elco.FWNHWOMHUSLIV" - }, - { - "name": "FWNHWOMHUSSTR", - "source": "elco.FWNHWOMHUSSTR" - }, - { - "name": "FWELIGIBLE", - "source": "elco.FWELIGIBLE" - } - ], - "instances": [ - { - "GOBHHID": "48374", - "JiVitAHHID": "78748", - "FWWOMFNAME": "tEST First", - "FWWOMLNAME": " lastname", - "FWWOMNID": "5478549854895", - "FWWOMBID": "43030293029323", - "FWHUSNAME": "husb", - "FWBIRTHDATE": "2000-05-07", - "FWBIRTHDATEAPPROX":"0", - "FWGENDER": "Female", - "FWWOMAGE": "21", - "display_age": "", - "FWNHWOMSTRMEN": "", - "FWNHWOMHUSALV": "", - "FWNHWOMHUSLIV": "", - "FWNHWOMHUSSTR": "", - "FWELIGIBLE": "", - "id": "babcd9d2-b3e9-4f6d-8a06-2df8f5fbf01f" - } - ] - } - ] - } - }, - "serverVersion": 1430998001293 -} \ No newline at end of file diff --git a/opensrp-web/src/test/resources/form/new_household_registration/form_submission8.json b/opensrp-web/src/test/resources/form/new_household_registration/form_submission8.json deleted file mode 100644 index 0c1850d4ed..0000000000 --- a/opensrp-web/src/test/resources/form/new_household_registration/form_submission8.json +++ /dev/null @@ -1,211 +0,0 @@ -{ - "_id": "251ca0ef09df9af88f0e9d5f180115a3", - "_rev": "1-e73e1d93acdcdaeb1d41a738da5d9284", - "type": "FormSubmission", - "anmId": "admin", - "instanceId": "88c0e824-10b4-44c2-9429-754b8d823776", - "formName": "new_household_registration", - "entityId": "a3f2abf4-2699-4761-819a-cea739224164", - "clientVersion": 1430997074596, - "formDataDefinitionVersion": "1", - "formInstance": { - "form_data_definition_version": "1", - "form": { - "bind_type": "household", - "default_bind_path": "/model/instance/FWNewHH", - "fields": [ - { - "name": "id", - "value": "a3f2abf4-2699-4761-819a-cea739224164", - "source": "household.id" - }, - { - "name": "existing_location", - "value": "KUPTALA", - "source": "household.existing_location" - }, - { - "name": "today", - "value": "2015-05-07", - "source": "household.today" - }, - { - "name": "start", - "value": "2015-05-07T17:07:21.000+06:00", - "source": "household.start" - }, - { - "name": "end", - "value": "2015-05-07T17:07:21.000+06:00", - "source": "household.end" - }, - { - "name": "FWNHREGDATE", - "value": "2015-05-07", - "source": "household.FWNHREGDATE" - }, - { - "name": "FWGOBHHID", - "value": "1234", - "source": "household.FWGOBHHID" - }, - { - "name": "FWJIVHHID", - "value": "1234", - "source": "household.FWJIVHHID" - }, - { - "name": "FWNHNEARTO", - "value": "nothing", - "source": "household.FWNHNEARTO" - }, - { - "name": "FWNHHHGPS", - "value": "34 34 0 0", - "source": "household.FWNHHHGPS" - }, - { - "name": "FWHOHFNAME", - "value": "test", - "source": "household.FWHOHFNAME" - }, - { - "name": "FWHOHLNAME", - "value": ".", - "source": "household.FWHOHLNAME" - }, - { - "name": "FWHOHBIRTHDATE", - "value": "1900-01-01", - "source": "household.FWHOHBIRTHDATE" - }, - { - "name": "FWHOHGENDER", - "value": "male", - "source": "household.FWHOHGENDER" - }, - { - "name": "FWNHHMBRNUM", - "source": "household.FWNHHMBRNUM" - }, - { - "name": "FWNHHMWRA", - "source": "household.FWNHHMWRA" - }, - { - "name": "join_names", - "value": "shumi sumaita", - "source": "household.join_names" - }, - { - "name": "MWRA", - "source": "household.MWRA" - } - ], - "sub_forms": [ - { - "name": "elco_registration", - "bind_type": "elco", - "default_bind_path": "/model/instance/FWNewHH/woman", - "fields": [ - { - "name": "id", - "source": "elco.id" - }, - { - "name": "GOBHHID", - "source": "elco.GOBHHID" - }, - { - "name": "JiVitAHHID", - "source": "elco.JiVitAHHID" - }, - { - "name": "FWWOMFNAME", - "source": "elco.FWWOMFNAME" - }, - { - "name": "FWWOMLNAME", - "source": "elco.FWWOMLNAME" - }, - { - "name": "FWWOMNID", - "source": "elco.FWWOMNID" - }, - { - "name": "FWWOMBID", - "source": "elco.FWWOMBID" - }, - { - "name": "FWHUSNAME", - "source": "elco.FWHUSNAME" - }, - { - "name": "FWBIRTHDATE", - "source": "elco.FWBIRTHDATE" - }, - { - "name": "FWBIRTHDATEAPPROX", - "source": "elco.FWBIRTHDATEAPPROX" - }, - { - "name": "FWGENDER", - "source": "elco.FWGENDER" - }, - { - "name": "FWWOMAGE", - "source": "elco.FWWOMAGE" - }, - { - "name": "display_age", - "source": "elco.display_age" - }, - { - "name": "FWNHWOMSTRMEN", - "source": "elco.FWNHWOMSTRMEN" - }, - { - "name": "FWNHWOMHUSALV", - "source": "elco.FWNHWOMHUSALV" - }, - { - "name": "FWNHWOMHUSLIV", - "source": "elco.FWNHWOMHUSLIV" - }, - { - "name": "FWNHWOMHUSSTR", - "source": "elco.FWNHWOMHUSSTR" - }, - { - "name": "FWELIGIBLE", - "source": "elco.FWELIGIBLE" - } - ], - "instances": [ - { - "GOBHHID": "48374", - "JiVitAHHID": "78748", - "FWWOMFNAME": "tEST First", - "FWWOMLNAME": " lastname", - "FWWOMNID": "", - "FWWOMBID": "", - "FWHUSNAME": "", - "FWBIRTHDATE": "2000-05-07", - "FWBIRTHDATEAPPROX":"", - "FWGENDER": "Female", - "FWWOMAGE": "", - "display_age": "", - "FWNHWOMSTRMEN": "", - "FWNHWOMHUSALV": "", - "FWNHWOMHUSLIV": "", - "FWNHWOMHUSSTR": "", - "FWELIGIBLE": "", - "id": "babcd9d2-b3e9-4f6d-8a06-2df8f5fbf01f" - } - ] - } - ] - } - }, - "serverVersion": 1430998001293 -} \ No newline at end of file diff --git a/opensrp-web/src/test/resources/form/new_household_registration/form_submission9.json b/opensrp-web/src/test/resources/form/new_household_registration/form_submission9.json deleted file mode 100644 index b1dd5bcb96..0000000000 --- a/opensrp-web/src/test/resources/form/new_household_registration/form_submission9.json +++ /dev/null @@ -1,206 +0,0 @@ -{ - "_id": "251ca0ef09df9af88f0e9d5f180115a3", - "_rev": "1-e73e1d93acdcdaeb1d41a738da5d9284", - "type": "FormSubmission", - "anmId": "admin", - "instanceId": "88c0e824-10b4-44c2-9429-754b8d823776", - "formName": "new_household_registration", - "entityId": "a3f2abf4-2699-4761-819a-cea739224164", - "clientVersion": 1430997074596, - "formDataDefinitionVersion": "1", - "formInstance": { - "form_data_definition_version": "1", - "form": { - "bind_type": "household", - "default_bind_path": "/model/instance/FWNewHH", - "fields": [ - { - "name": "id", - "value": "a3f2abf4-2699-4761-819a-cea739224164", - "source": "household.id" - }, - { - "name": "existing_location", - "value": "KUPTALA", - "source": "household.existing_location" - }, - { - "name": "today", - "value": "2015-05-07", - "source": "household.today" - }, - { - "name": "start", - "value": "2015-05-07T17:07:21.000+06:00", - "source": "household.start" - }, - { - "name": "end", - "value": "2015-05-07T17:07:21.000+06:00", - "source": "household.end" - }, - { - "name": "FWNHREGDATE", - "value": "2015-05-07", - "source": "household.FWNHREGDATE" - }, - { - "name": "FWGOBHHID", - "value": "1234", - "source": "household.FWGOBHHID" - }, - { - "name": "FWJIVHHID", - "value": "1234", - "source": "household.FWJIVHHID" - }, - { - "name": "FWNHNEARTO", - "value": "nothing", - "source": "household.FWNHNEARTO" - }, - { - "name": "FWNHHHGPS", - "value": "34 34 0 0", - "source": "household.FWNHHHGPS" - }, - { - "name": "FWHOHLNAME", - "value": ".", - "source": "household.FWHOHLNAME" - }, - { - "name": "FWHOHBIRTHDATE", - "value": "1900-01-01", - "source": "household.FWHOHBIRTHDATE" - }, - { - "name": "FWHOHGENDER", - "value": "male", - "source": "household.FWHOHGENDER" - }, - { - "name": "FWNHHMBRNUM", - "source": "household.FWNHHMBRNUM" - }, - { - "name": "FWNHHMWRA", - "source": "household.FWNHHMWRA" - }, - { - "name": "join_names", - "value": "shumi sumaita", - "source": "household.join_names" - }, - { - "name": "MWRA", - "source": "household.MWRA" - } - ], - "sub_forms": [ - { - "name": "elco_registration", - "bind_type": "elco", - "default_bind_path": "/model/instance/FWNewHH/woman", - "fields": [ - { - "name": "id", - "source": "elco.id" - }, - { - "name": "GOBHHID", - "source": "elco.GOBHHID" - }, - { - "name": "JiVitAHHID", - "source": "elco.JiVitAHHID" - }, - { - "name": "FWWOMFNAME", - "source": "elco.FWWOMFNAME" - }, - { - "name": "FWWOMLNAME", - "source": "elco.FWWOMLNAME" - }, - { - "name": "FWWOMNID", - "source": "elco.FWWOMNID" - }, - { - "name": "FWWOMBID", - "source": "elco.FWWOMBID" - }, - { - "name": "FWHUSNAME", - "source": "elco.FWHUSNAME" - }, - { - "name": "FWBIRTHDATE", - "source": "elco.FWBIRTHDATE" - }, - { - "name": "FWBIRTHDATEAPPROX", - "source": "elco.FWBIRTHDATEAPPROX" - }, - { - "name": "FWGENDER", - "source": "elco.FWGENDER" - }, - { - "name": "FWWOMAGE", - "source": "elco.FWWOMAGE" - }, - { - "name": "display_age", - "source": "elco.display_age" - }, - { - "name": "FWNHWOMSTRMEN", - "source": "elco.FWNHWOMSTRMEN" - }, - { - "name": "FWNHWOMHUSALV", - "source": "elco.FWNHWOMHUSALV" - }, - { - "name": "FWNHWOMHUSLIV", - "source": "elco.FWNHWOMHUSLIV" - }, - { - "name": "FWNHWOMHUSSTR", - "source": "elco.FWNHWOMHUSSTR" - }, - { - "name": "FWELIGIBLE", - "source": "elco.FWELIGIBLE" - } - ], - "instances": [ - { - "GOBHHID": "48374", - "JiVitAHHID": "78748", - "FWWOMFNAME": "tEST First", - "FWWOMLNAME": " lastname", - "FWWOMNID": "", - "FWWOMBID": "", - "FWHUSNAME": "", - "FWBIRTHDATE": "2000-05-07", - "FWBIRTHDATEAPPROX":"", - "FWGENDER": "Female", - "FWWOMAGE": "", - "display_age": "", - "FWNHWOMSTRMEN": "", - "FWNHWOMHUSALV": "", - "FWNHWOMHUSLIV": "", - "FWNHWOMHUSSTR": "", - "FWELIGIBLE": "", - "id": "babcd9d2-b3e9-4f6d-8a06-2df8f5fbf01f" - } - ] - } - ] - } - }, - "serverVersion": 1430998001293 -} \ No newline at end of file diff --git a/opensrp-web/src/test/resources/form/new_household_registration/model.xml b/opensrp-web/src/test/resources/form/new_household_registration/model.xml deleted file mode 100644 index a0cabcad26..0000000000 --- a/opensrp-web/src/test/resources/form/new_household_registration/model.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/opensrp-web/src/test/resources/form/offsite_child_followup/form.json b/opensrp-web/src/test/resources/form/offsite_child_followup/form.json deleted file mode 100644 index b6825ad6f8..0000000000 --- a/opensrp-web/src/test/resources/form/offsite_child_followup/form.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"Offsite_Child_Vaccination_Followup","title":"دوسرے سینٹر میں رجسٹرڈ بچّوں کا فالو اپ رجسٹر برائے ٹیکاجات - Off Site Child Follow Up Vaccination Register","sms_keyword":"offsite_child_vaccination_followup","default_language":"English","choices":{"provinces":[{"name":"kpk","label":{"Urdu":"خیبر پختون خواہ","English":"Khyber Pakhtunkhwa","Roman Urdu":"Khyber Pakhtunkhwa"}},{"name":"sindh","label":{"Urdu":"سندھ","English":"Sindh","Roman Urdu":"Sindh"}},{"name":"balochistan","label":{"Urdu":"بلوچستان","English":"Balochistan","Roman Urdu":"Balochistan"}},{"name":"punjab","label":{"Urdu":"پنجاب","English":"Punjab","Roman Urdu":"Punjab"}},{"name":"gilgit_baltistan","label":{"Urdu":"گلگت بلتستان","English":"Gilgit Baltistan","Roman Urdu":"Gilgit Baltistan"}},{"name":"kashmir","label":{"Urdu":"کشمیر","English":"Kashmir","Roman Urdu":"Kashmir"}},{"name":"fata","label":{"Urdu":"فاٹا","English":"FATA","Roman Urdu":"FATA"}},{"name":"out_of_country","label":{"Urdu":"ملک سے باہر","English":"Out of Country","Roman Urdu":"Out of Country"}}],"ucs":[{"province":"sindh","city":"karachi","town":"korangi","name":"bilal_colony","label":{"Urdu":"بلال کالونی","Roman Urdu":"Bilal Colony","English":"Bilal Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"nasir_colony","label":{"Urdu":"ناصر کالونی","Roman Urdu":"Nasir Colony","English":"Nasir Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"chakra_goth","label":{"Urdu":"چکرا گوٹھ","Roman Urdu":"Chakra Goth","English":"Chakra Goth"}},{"province":"sindh","city":"karachi","town":"korangi","name":"mustafa_taj_colony","label":{"Urdu":"مصطفی تاج کالونی","Roman Urdu":"Mustafa Taj Colony","English":"Mustafa Taj Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"hundred_quarters","label":{"Urdu":"ہنڈریڈ کوارٹر","Roman Urdu":"Hundred Quarters","English":"Hundred Quarters"}},{"province":"sindh","city":"karachi","town":"korangi","name":"gulzar_colony","label":{"Urdu":"گلزار کالونی","Roman Urdu":"Gulzar Colony","English":"Gulzar Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"korangi_sector_33","label":{"Urdu":"کورنگی سیکٹر 33","Roman Urdu":"Korangi Sector 33","English":"Korangi Sector 33"}},{"province":"sindh","city":"karachi","town":"korangi","name":"zaman_town","label":{"Urdu":"زمان ٹاوَن","Roman Urdu":"Zaman Town","English":"Zaman Town"}},{"province":"sindh","city":"karachi","town":"korangi","name":"hasrat_mohani_colony","label":{"Urdu":"حسرت موہانی کالونی","Roman Urdu":"Hasrat Mohani Colony","English":"Hasrat Mohani Colony"}},{"province":"sindh","city":"karachi","town":"baldia","name":"gulshan_e_ghazi","label":{"Urdu":"گلشن غازی","Roman Urdu":"Gulshan-e-Ghazi","English":"Gulshan-e-Ghazi"}},{"province":"sindh","city":"karachi","town":"baldia","name":"ittehad_town","label":{"Urdu":"اتحاد ٹاوَن","Roman Urdu":"Ittehad Town","English":"Ittehad Town"}},{"province":"sindh","city":"karachi","town":"baldia","name":"islam_nagar","label":{"Urdu":"اسلام نگر","Roman Urdu":"Islam Nagar","English":"Islam Nagar"}},{"province":"sindh","city":"karachi","town":"baldia","name":"nai_abadi","label":{"Urdu":"نئی آبادی","Roman Urdu":"Nai Abadi","English":"Nai Abadi"}},{"province":"sindh","city":"karachi","town":"baldia","name":"saeedabad","label":{"Urdu":"سعید آباد","Roman Urdu":"Saeedabad","English":"Saeedabad"}},{"province":"sindh","city":"karachi","town":"baldia","name":"muslim_mujahid_colony","label":{"Urdu":"مسلم مجاہد کالونی","Roman Urdu":"Muslim Mujahid Colony","English":"Muslim Mujahid Colony"}},{"province":"sindh","city":"karachi","town":"baldia","name":"muhajir_camp","label":{"Urdu":"مہاجر کیمپ","Roman Urdu":"Muhajir Camp","English":"Muhajir Camp"}},{"province":"sindh","city":"karachi","town":"baldia","name":"rasheedabad","label":{"Urdu":"رشید آباد","Roman Urdu":"Rasheedabad","English":"Rasheedabad"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"ibrahim_hyderi","label":{"Urdu":"ابراہیم حیدری","Roman Urdu":"Ibrahim Hyderi","English":"Ibrahim Hyderi"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"rehri","label":{"Urdu":"رہڑی","Roman Urdu":"Rehri","English":"Rehri"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"cattle_colony","label":{"Urdu":"کیٹل کالونی","Roman Urdu":"Cattle Colony","English":"Cattle Colony"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"qaidabad","label":{"Urdu":"قائدآباد","Roman Urdu":"Qaidabad","English":"Qaidabad"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"landhi_colony","label":{"Urdu":"لانڈھی کالونی","Roman Urdu":"Landhi Colony","English":"Landhi Colony"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"gulshan_e_hadeed","label":{"Urdu":"گلشن حدید","Roman Urdu":"Gulshan-e-Hadeed","English":"Gulshan-e-Hadeed"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"gaghar","label":{"Urdu":"گگر","Roman Urdu":"Gaghar","English":"Gaghar"}},{"province":"sindh","city":"karachi","town":"gadap","name":"murad_memon_goth","label":{"Urdu":"مراد میمن گوٹھ","Roman Urdu":"Murad Memon Goth","English":"Murad Memon Goth"}},{"province":"sindh","city":"karachi","town":"gadap","name":"darsano_chana","label":{"Urdu":"درشانو شنو","Roman Urdu":"Darsano Chana","English":"Darsano Chana"}},{"province":"sindh","city":"karachi","town":"gadap","name":"gujro","label":{"Urdu":"گجرو","Roman Urdu":"Gujro","English":"Gujro"}},{"province":"sindh","city":"karachi","town":"gadap","name":"songal","label":{"Urdu":"سنگل","Roman Urdu":"Songal","English":"Songal"}},{"province":"sindh","city":"karachi","town":"gadap","name":"maymarabad","label":{"Urdu":"معمار آباد","Roman Urdu":"Maymarabad","English":"Maymarabad"}},{"province":"sindh","city":"karachi","town":"gadap","name":"yousuf_goth","label":{"Urdu":"یوسف گوٹھ","Roman Urdu":"Yousuf Goth","English":"Yousuf Goth"}},{"province":"sindh","city":"karachi","town":"gadap","name":"manghopir","label":{"Urdu":"منگھوپیر","Roman Urdu":"Manghopir","English":"Manghopir"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"azizabad","label":{"Urdu":"عزیز آباد","Roman Urdu":"Azizabad","English":"Azizabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"karimabad","label":{"Urdu":"کریم آباد","Roman Urdu":"Karimabad","English":"Karimabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"aisha_manzil","label":{"Urdu":"عائشہ منزل","Roman Urdu":"Aisha Manzil","English":"Aisha Manzil"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"ancholi","label":{"Urdu":"انچولی","Roman Urdu":"Ancholi","English":"Ancholi"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"naseerabad","label":{"Urdu":"نصیرآباد","Roman Urdu":"Naseerabad","English":"Naseerabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"yaseenabad","label":{"Urdu":"یاسین آباد","Roman Urdu":"Yaseenabad","English":"Yaseenabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"water_pump","label":{"Urdu":"واٹرپمپ","Roman Urdu":"Water Pump","English":"Water Pump"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"shafiq_mill_colony","label":{"Urdu":"شفیق مل کالونی","Roman Urdu":"Shafiq Mill Colony","English":"Shafiq Mill Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"delhi_mercantile_society","label":{"Urdu":"دہلی مرچنٹائل سوسائٹی","Roman Urdu":"Delhi Mercantile Society","English":"Delhi Mercantile Society"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"civic_centre","label":{"Urdu":"سوک سینٹر","Roman Urdu":"Civic Centre","English":"Civic Centre"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"pir_ilahi_buksh_colony","label":{"Urdu":"پیر الہی بخش کالونی","Roman Urdu":"Pir Ilahi Buksh Colony","English":"Pir Ilahi Buksh Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"essa_nagri","label":{"Urdu":"عیسی نگری","Roman Urdu":"Essa Nagri","English":"Essa Nagri"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gulshan_e_iqbal","label":{"Urdu":"گلشن اقبال","Roman Urdu":"Gulshan-e-Iqbal","English":"Gulshan-e-Iqbal"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gillani_railway_station","label":{"Urdu":"گیلانی ریلوے اسٹیشن","Roman Urdu":"Gillani Railway Station","English":"Gillani Railway Station"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"shanti_nagar","label":{"Urdu":"شانتی نگر","Roman Urdu":"Shanti Nagar","English":"Shanti Nagar"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"jamali_colony","label":{"Urdu":"جمالی کالونی","Roman Urdu":"Jamali Colony","English":"Jamali Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gulshan_e_iqbal_ii","label":{"Urdu":"گلشن اقبال 2","Roman Urdu":"Gulshan-e-Iqbal II","English":"Gulshan-e-Iqbal II"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"pehlwan_goth","label":{"Urdu":"پہلوان گوٹھ","Roman Urdu":"Pehlwan Goth","English":"Pehlwan Goth"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"matrovil_colony","label":{"Urdu":"میٹروویل کالونی","Roman Urdu":"Matrovil Colony","English":"Matrovil Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gulzar_e_hijri","label":{"Urdu":"گلزار ہجری","Roman Urdu":"Gulzar-e-Hijri","English":"Gulzar-e-Hijri"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"safooran_goth","label":{"Urdu":"صفورا گوٹھ","Roman Urdu":"Safooran Goth","English":"Safooran Goth"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"akhtar_colony","label":{"Urdu":"اختر کالونی","Roman Urdu":"Akhtar Colony","English":"Akhtar Colony"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"manzoor_colony","label":{"Urdu":"منظور کالونی","Roman Urdu":"Manzoor Colony","English":"Manzoor Colony"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"azam_basti","label":{"Urdu":"اعظم بستی","Roman Urdu":"Azam Basti","English":"Azam Basti"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"chanesar_goth","label":{"Urdu":"چنیسر گوٹھ","Roman Urdu":"Chanesar Goth","English":"Chanesar Goth"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"mahmudabad","label":{"Urdu":"محمودآباد","Roman Urdu":"Mahmudabad","English":"Mahmudabad"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"pechs","label":{"Urdu":"پی۔ای۔سی۔ایچ۔ایس","Roman Urdu":"P.E.C.H.S.","English":"P.E.C.H.S."}},{"province":"sindh","city":"karachi","town":"jamshed","name":"pechs_ii","label":{"Urdu":"پی۔ای۔سی۔ایچ۔ایس 2","Roman Urdu":"P.E.C.H.S. II","English":"P.E.C.H.S. II"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"jut_line","label":{"Urdu":"جٹ لائن","Roman Urdu":"Jut Line","English":"Jut Line"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"central_jacob_lines","label":{"Urdu":"سینٹرل جیکب لائن","Roman Urdu":"Central Jacob Lines","English":"Central Jacob Lines"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"jamshed_quarters","label":{"Urdu":"جمشید کوارٹر","Roman Urdu":"Jamshed Quarters","English":"Jamshed Quarters"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"garden_east","label":{"Urdu":"گارڈن ایسٹ","Roman Urdu":"Garden East","English":"Garden East"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"soldier_bazar","label":{"Urdu":"سولجر بازار","Roman Urdu":"Soldier Bazar","English":"Soldier Bazar"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"pakistan_quarters","label":{"Urdu":"پاکستان کوارٹر","Roman Urdu":"Pakistan Quarters","English":"Pakistan Quarters"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"bhutta_village","label":{"Urdu":"بھٹا ولیج","Roman Urdu":"Bhutta Village","English":"Bhutta Village"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"sultanabad","label":{"Urdu":"سلطان آباد","Roman Urdu":"Sultanabad","English":"Sultanabad"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"kiamari_uc","label":{"Urdu":"کیماری یو- سی","Roman Urdu":"Kiamari UC","English":"Kiamari UC"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"baba_bhit","label":{"Urdu":"بابا بھٹ","Roman Urdu":"Baba Bhit","English":"Baba Bhit"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"machar_colony","label":{"Urdu":"مچھر کالونی","Roman Urdu":"Machar Colony","English":"Machar Colony"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"maripur","label":{"Urdu":"ماڑی پور","Roman Urdu":"Maripur","English":"Maripur"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"shershah","label":{"Urdu":"شیرشاہ","Roman Urdu":"SherShah","English":"SherShah"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"gabo_pat","label":{"Urdu":"گابو پٹ","Roman Urdu":"Gabo Pat","English":"Gabo Pat"}},{"province":"sindh","city":"karachi","town":"landhi","name":"muzafarabad","label":{"Urdu":"مظفرآباد","Roman Urdu":"Muzafarabad","English":"Muzafarabad"}},{"province":"sindh","city":"karachi","town":"landhi","name":"muslimabad","label":{"Urdu":"مسلم آباد","Roman Urdu":"Muslimabad","English":"Muslimabad"}},{"province":"sindh","city":"karachi","town":"landhi","name":"dawood_chowrangi","label":{"Urdu":"داوَد چورنگی","Roman Urdu":"Dawood Chowrangi","English":"Dawood Chowrangi"}},{"province":"sindh","city":"karachi","town":"landhi","name":"moinabad","label":{"Urdu":"معین آباد","Roman Urdu":"Moinabad","English":"Moinabad"}},{"province":"sindh","city":"karachi","town":"landhi","name":"sharafi_goth","label":{"Urdu":"شرافی گوٹھ","Roman Urdu":"Sharafi Goth","English":"Sharafi Goth"}},{"province":"sindh","city":"karachi","town":"landhi","name":"bhutto_nagar","label":{"Urdu":"بھٹو نگر","Roman Urdu":"Bhutto Nagar","English":"Bhutto Nagar"}},{"province":"sindh","city":"karachi","town":"landhi","name":"khawaja_ajmeer_colony","label":{"Urdu":"خواجہ اجمیر کالونی","Roman Urdu":"Khawaja Ajmeer Colony","English":"Khawaja Ajmeer Colony"}},{"province":"sindh","city":"karachi","town":"landhi","name":"landhi_uc","label":{"Urdu":"لانڈھی یوسی","Roman Urdu":"Landhi UC","English":"Landhi UC"}},{"province":"sindh","city":"karachi","town":"landhi","name":"awami_colony","label":{"Urdu":"عوامی کالونی","Roman Urdu":"Awami Colony","English":"Awami Colony"}},{"province":"sindh","city":"karachi","town":"landhi","name":"burmee_colony","label":{"Urdu":"برمی کالونی","Roman Urdu":"Burmee Colony","English":"Burmee Colony"}},{"province":"sindh","city":"karachi","town":"landhi","name":"korangi_uc","label":{"Urdu":"کورنگی یوسی","Roman Urdu":"Korangi UC","English":"Korangi UC"}},{"province":"sindh","city":"karachi","town":"landhi","name":"sherabad","label":{"Urdu":"شیرآباد","Roman Urdu":"Sherabad","English":"Sherabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"rizvia_society","label":{"Urdu":"رضویہ سوسائٹی","Roman Urdu":"Rizvia Society","English":"Rizvia Society"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"firdous_colony","label":{"Urdu":"فردوس کالونی","Roman Urdu":"Firdous Colony","English":"Firdous Colony"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"super_market","label":{"Urdu":"سپر مارکیٹ","Roman Urdu":"Super Market","English":"Super Market"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"dak_khana","label":{"Urdu":"دک کھانہ","Roman Urdu":"Dak Khana","English":"Dak Khana"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"qasimabad","label":{"Urdu":"قاسم آباد","Roman Urdu":"Qasimabad","English":"Qasimabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"bandhani_colony","label":{"Urdu":"بندھانی کالونی","Roman Urdu":"Bandhani Colony","English":"Bandhani Colony"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"sharifabad","label":{"Urdu":"شریف آباد","Roman Urdu":"Sharifabad","English":"Sharifabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"commercial_area","label":{"Urdu":"کمرشل ایریا","Roman Urdu":"Commercial Area","English":"Commercial Area"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"mujahid_colony","label":{"Urdu":"مجاہد کالونی","Roman Urdu":"Mujahid Colony","English":"Mujahid Colony"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"nazimabad","label":{"Urdu":"ناظم آباد","Roman Urdu":"Nazimabad","English":"Nazimabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"abbasi_shaheed","label":{"Urdu":"عباسی شہید","Roman Urdu":"Abbasi Shaheed","English":"Abbasi Shaheed"}},{"province":"sindh","city":"karachi","town":"lyari","name":"agra_taj_colony","label":{"Urdu":"آگرہ تاج کالونی","Roman Urdu":"Agra Taj Colony","English":"Agra Taj Colony"}},{"province":"sindh","city":"karachi","town":"lyari","name":"daryaabad","label":{"Urdu":"دریاآباد","Roman Urdu":"Daryaabad","English":"Daryaabad"}},{"province":"sindh","city":"karachi","town":"lyari","name":"nawabad","label":{"Urdu":"نواآباد","Roman Urdu":"Nawabad","English":"Nawabad"}},{"province":"sindh","city":"karachi","town":"lyari","name":"khada_memon_society","label":{"Urdu":"خدا- میمن- سوساَٹی","Roman Urdu":"Khada Memon Society","English":"Khada Memon Society"}},{"province":"sindh","city":"karachi","town":"lyari","name":"baghdadi","label":{"Urdu":"بغدادی","Roman Urdu":"Baghdadi","English":"Baghdadi"}},{"province":"sindh","city":"karachi","town":"lyari","name":"shah_baig_line","label":{"Urdu":"شاھ باغ لائن","Roman Urdu":"Shah Baig Line","English":"Shah Baig Line"}},{"province":"sindh","city":"karachi","town":"lyari","name":"bihar_colony","label":{"Urdu":"بہار کالونی","Roman Urdu":"Bihar Colony","English":"Bihar Colony"}},{"province":"sindh","city":"karachi","town":"lyari","name":"ragiwara","label":{"Urdu":"راگی واڑا","Roman Urdu":"Ragiwara","English":"Ragiwara"}},{"province":"sindh","city":"karachi","town":"lyari","name":"singo_line","label":{"Urdu":"سنگولائن","Roman Urdu":"Singo Line","English":"Singo Line"}},{"province":"sindh","city":"karachi","town":"lyari","name":"chakiwara","label":{"Urdu":"چاکی واڑا","Roman Urdu":"Chakiwara","English":"Chakiwara"}},{"province":"sindh","city":"karachi","town":"lyari","name":"allama_iqbal_colony","label":{"Urdu":"علامہ اقبال کالونی","Roman Urdu":"Allama Iqbal Colony","English":"Allama Iqbal Colony"}},{"province":"sindh","city":"karachi","town":"malir","name":"model_colony","label":{"Urdu":"موڈل کالونی","Roman Urdu":"Model Colony","English":"Model Colony"}},{"province":"sindh","city":"karachi","town":"malir","name":"kala_board","label":{"Urdu":"کالا بورڈ","Roman Urdu":"Kala Board","English":"Kala Board"}},{"province":"sindh","city":"karachi","town":"malir","name":"saudabad","label":{"Urdu":"سعودآباد","Roman Urdu":"Saudabad","English":"Saudabad"}},{"province":"sindh","city":"karachi","town":"malir","name":"khokhra_par","label":{"Urdu":"کھوکھرا پار","Roman Urdu":"Khokhra Par","English":"Khokhra Par"}},{"province":"sindh","city":"karachi","town":"malir","name":"jafar_e_tayyar","label":{"Urdu":"جعفر تیار","Roman Urdu":"Jafar-e-Tayyar","English":"Jafar-e-Tayyar"}},{"province":"sindh","city":"karachi","town":"malir","name":"gharibabad","label":{"Urdu":"غریب آباد","Roman Urdu":"Gharibabad","English":"Gharibabad"}},{"province":"sindh","city":"karachi","town":"malir","name":"ghazi_brohi_goth","label":{"Urdu":"غازی بروہی گوٹھ","Roman Urdu":"Ghazi Brohi Goth","English":"Ghazi Brohi Goth"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"kalyana","label":{"Urdu":"کالیانہ","Roman Urdu":"Kalyana","English":"Kalyana"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"sir_syed_colony","label":{"Urdu":"سر سید کالونی","Roman Urdu":"Sir Syed Colony","English":"Sir Syed Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"fatima_jinnah_colony","label":{"Urdu":"فاطمہ جناح کالونی","Roman Urdu":"Fatima Jinnah Colony","English":"Fatima Jinnah Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"godhra","label":{"Urdu":"گودھرا","Roman Urdu":"Godhra","English":"Godhra"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"abu_zar_ghaffari","label":{"Urdu":"ابو زر غفاری","Roman Urdu":"Abu Zar Ghaffari","English":"Abu Zar Ghaffari"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"hakim_ahsan","label":{"Urdu":"حاکم احسان","Roman Urdu":"Hakim Ahsan","English":"Hakim Ahsan"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"madina_colony","label":{"Urdu":"مدینہ کالونی","Roman Urdu":"Madina Colony","English":"Madina Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"faisal_colony","label":{"Urdu":"فیصل کالونی","Roman Urdu":"Faisal Colony","English":"Faisal Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"khamiso_goth","label":{"Urdu":"خمیسو گوٹھ","Roman Urdu":"Khamiso Goth","English":"Khamiso Goth"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"mustufa_colony","label":{"Urdu":"مصطفی کالونی","Roman Urdu":"Mustufa Colony","English":"Mustufa Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"khawaja_ajmeer_nagri","label":{"Urdu":"خواجہ اجمیر نگری","Roman Urdu":"Khawaja Ajmeer Nagri","English":"Khawaja Ajmeer Nagri"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"gulshan_e_saeed","label":{"Urdu":"گلشن سعید","Roman Urdu":"Gulshan-e-Saeed","English":"Gulshan-e-Saeed"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"shah_nawaz_bhutto_colony","label":{"Urdu":"شاہ نواز بھٹو کالونی","Roman Urdu":"Shah Nawaz Bhutto Colony","English":"Shah Nawaz Bhutto Colony"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"paposh_nagar","label":{"Urdu":"پاپوش نگر","Roman Urdu":"Paposh Nagar","English":"Paposh Nagar"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"pahar_ganj","label":{"Urdu":"پہاڑ گنج","Roman Urdu":"Pahar Ganj","English":"Pahar Ganj"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"khandu_goth","label":{"Urdu":"کھنڑو گوٹھ","Roman Urdu":"Khandu Goth","English":"Khandu Goth"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"hyderi","label":{"Urdu":"حیدری","Roman Urdu":"Hyderi","English":"Hyderi"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"sakhi_hassan","label":{"Urdu":"سخی حسن","Roman Urdu":"Sakhi Hassan","English":"Sakhi Hassan"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"farooq_e_azam","label":{"Urdu":"فاروق اعظم","Roman Urdu":"Farooq-e-Azam","English":"Farooq-e-Azam"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"nusrat_bhutto_colony","label":{"Urdu":"نصرت بھٹو کالونی","Roman Urdu":"Nusrat Bhutto Colony","English":"Nusrat Bhutto Colony"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"shadman_town","label":{"Urdu":"شادمان ٹاوَن","Roman Urdu":"Shadman Town","English":"Shadman Town"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"buffer_zone","label":{"Urdu":"بفرزون","Roman Urdu":"Buffer Zone","English":"Buffer Zone"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"buffer_zone_ii","label":{"Urdu":"بفرزون 2","Roman Urdu":"Buffer Zone II","English":"Buffer Zone II"}},{"province":"sindh","city":"karachi","town":"orangi","name":"mominabad","label":{"Urdu":"مومن آباد","Roman Urdu":"Mominabad","English":"Mominabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"haryana_colony","label":{"Urdu":"حریانہ کالونی","Roman Urdu":"Haryana Colony","English":"Haryana Colony"}},{"province":"sindh","city":"karachi","town":"orangi","name":"hanifabad","label":{"Urdu":"حنیف آباد","Roman Urdu":"Hanifabad","English":"Hanifabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"mohammad_nagar","label":{"Urdu":"محمد نگر","Roman Urdu":"Mohammad Nagar","English":"Mohammad Nagar"}},{"province":"sindh","city":"karachi","town":"orangi","name":"madina_colony_orangi","label":{"Urdu":"مدینہ کالونی اورنگی","Roman Urdu":"Madina Colony Orangi","English":"Madina Colony Orangi"}},{"province":"sindh","city":"karachi","town":"orangi","name":"ghaziabad","label":{"Urdu":"غازی آباد","Roman Urdu":"Ghaziabad","English":"Ghaziabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"chisti_nagar","label":{"Urdu":"چشتی نگر","Roman Urdu":"Chisti Nagar","English":"Chisti Nagar"}},{"province":"sindh","city":"karachi","town":"orangi","name":"bilal_colony_orangi","label":{"Urdu":"بلال کالونی اورنگی","Roman Urdu":"Bilal Colony Orangi","English":"Bilal Colony Orangi"}},{"province":"sindh","city":"karachi","town":"orangi","name":"iqbal_baloch_colony","label":{"Urdu":"اقبال بلوچ کالونی","Roman Urdu":"Iqbal Baloch Colony","English":"Iqbal Baloch Colony"}},{"province":"sindh","city":"karachi","town":"orangi","name":"ghabool_town","label":{"Urdu":"گبول ٹاوَن","Roman Urdu":"Ghabool Town","English":"Ghabool Town"}},{"province":"sindh","city":"karachi","town":"orangi","name":"data_nagar","label":{"Urdu":"داتا نگر","Roman Urdu":"Data Nagar","English":"Data Nagar"}},{"province":"sindh","city":"karachi","town":"orangi","name":"mujahidabad","label":{"Urdu":"مجاہد آباد","Roman Urdu":"Mujahidabad","English":"Mujahidabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"baloch_goth","label":{"Urdu":"بلوچ گوٹھ","Roman Urdu":"Baloch Goth","English":"Baloch Goth"}},{"province":"sindh","city":"karachi","town":"saddar","name":"old_haji_camp","label":{"Urdu":"پرانہ حاجی کیمپ","Roman Urdu":"Old Haji Camp","English":"Old Haji Camp"}},{"province":"sindh","city":"karachi","town":"saddar","name":"garden","label":{"Urdu":"گارڈن","Roman Urdu":"Garden","English":"Garden"}},{"province":"sindh","city":"karachi","town":"saddar","name":"kharadar","label":{"Urdu":"کھارادر","Roman Urdu":"Kharadar","English":"Kharadar"}},{"province":"sindh","city":"karachi","town":"saddar","name":"city_railway_colony","label":{"Urdu":"سٹی ریلوے کالونی","Roman Urdu":"City Railway Colony","English":"City Railway Colony"}},{"province":"sindh","city":"karachi","town":"saddar","name":"nanak_wara","label":{"Urdu":"ناناک واڑا","Roman Urdu":"Nanak Wara","English":"Nanak Wara"}},{"province":"sindh","city":"karachi","town":"saddar","name":"gazdarabad","label":{"Urdu":"گزدرآباد","Roman Urdu":"Gazdarabad","English":"Gazdarabad"}},{"province":"sindh","city":"karachi","town":"saddar","name":"millat_nagar_islam_pura","label":{"Urdu":"ملت نگر اسلام پورا","Roman Urdu":"Millat Nagar/Islam Pura","English":"Millat Nagar/Islam Pura"}},{"province":"sindh","city":"karachi","town":"saddar","name":"saddar_uc","label":{"Urdu":"صدر یو سی","Roman Urdu":"Saddar UC","English":"Saddar UC"}},{"province":"sindh","city":"karachi","town":"saddar","name":"civil_line","label":{"Urdu":"سول لائن","Roman Urdu":"Civil Line","English":"Civil Line"}},{"province":"sindh","city":"karachi","town":"saddar","name":"clifton","label":{"Urdu":"کلفٹن","Roman Urdu":"Clifton","English":"Clifton"}},{"province":"sindh","city":"karachi","town":"saddar","name":"kehkashan","label":{"Urdu":"کہکشان","Roman Urdu":"Kehkashan","English":"Kehkashan"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"natha_khan_goth","label":{"Urdu":"ناتھا خان گوٹھ","Roman Urdu":"Natha Khan Goth","English":"Natha Khan Goth"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"pak_sadat_colony","label":{"Urdu":"پاک صدر کالونی","Roman Urdu":"Pak Sadat Colony","English":"Pak Sadat Colony"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"drigh_colony","label":{"Urdu":"ڈرگ کالونی","Roman Urdu":"Drigh Colony","English":"Drigh Colony"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"raita_plot","label":{"Urdu":"رائتا پلاٹ","Roman Urdu":"Raita Plot","English":"Raita Plot"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"moria_khan_goth","label":{"Urdu":"موریا خان گوٹھ","Roman Urdu":"Moria Khan Goth","English":"Moria Khan Goth"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"rafa_e_aam_society","label":{"Urdu":"رفا عام سوسا ئٹی","Roman Urdu":"Rafa-e-Aam Society","English":"Rafa-e-Aam Society"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"al_falah_society","label":{"Urdu":"الفلاح سوسا ئٹی","Roman Urdu":"Al-Falah Society","English":"Al-Falah Society"}},{"province":"sindh","city":"karachi","town":"site","name":"pak_colony","label":{"Urdu":"پاک کالونی","Roman Urdu":"Pak Colony","English":"Pak Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"old_golimar","label":{"Urdu":"پرانہ گولی مار","Roman Urdu":"Old Golimar","English":"Old Golimar"}},{"province":"sindh","city":"karachi","town":"site","name":"jahanabad","label":{"Urdu":"جہان آباد","Roman Urdu":"Jahanabad","English":"Jahanabad"}},{"province":"sindh","city":"karachi","town":"site","name":"metrovil","label":{"Urdu":"میٹروویل","Roman Urdu":"Metrovil","English":"Metrovil"}},{"province":"sindh","city":"karachi","town":"site","name":"bhawani_chali","label":{"Urdu":"بہوانی چالی","Roman Urdu":"Bhawani Chali","English":"Bhawani Chali"}},{"province":"sindh","city":"karachi","town":"site","name":"frontier_colony","label":{"Urdu":"فرونٹر کالونی","Roman Urdu":"Frontier Colony","English":"Frontier Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"banaras_colony","label":{"Urdu":"بنارس کالونی","Roman Urdu":"Banaras Colony","English":"Banaras Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"qasba_colony","label":{"Urdu":"قصبہ کالونی","Roman Urdu":"Qasba Colony","English":"Qasba Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"islamia_colony","label":{"Urdu":"اسلامیہ کالونی","Roman Urdu":"Islamia Colony","English":"Islamia Colony"}},{"province":"na","city":"na","town":"na","name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}},{"province":"na","city":"na","town":"na","name":"not_applicable","label":{"Urdu":"قابل اطلاق نہیں","Roman Urdu":"Qaabil-e-atlaaq nahi","English":"Not Applicable"}}],"gender":[{"instance":{"openmrs_code":"1534AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"male","label":{"Urdu":"مرد/ لڑکا","Roman Urdu":"Mard/larka","English":"Male"}},{"instance":{"openmrs_code":"1535AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"female","label":{"Urdu":"عورت/لڑکی","Roman Urdu":"Aurat/larki","English":"Female"}},{"instance":{"openmrs_code":"163163AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"transgender","label":{"Urdu":"خواجہ سرہ","Roman Urdu":"Khwaja sira","English":"Transgender"}}],"vaccines":[{"instance":{"openmrs_code":"1570AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"bcg","label":{"Urdu":"بی سی جی","Roman Urdu":"BCG","English":"BCG"}},{"instance":{"openmrs_code":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv0","label":{"Urdu":"او پی وی 0","Roman Urdu":"OPV 0","English":"OPV 0"}},{"instance":{"openmrs_code":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv1","label":{"Urdu":"پی سی وی 1","Roman Urdu":"PCV 1","English":"PCV 1"}},{"instance":{"openmrs_code":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv1","label":{"Urdu":"او پی وی 1","Roman Urdu":"OPV 1","English":"OPV 1"}},{"instance":{"openmrs_code":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta1","label":{"Urdu":"پینٹا ویلنٹ 1","Roman Urdu":"Pentavalent 1","English":"Pentavalent 1"}},{"instance":{"openmrs_code":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv2","label":{"Urdu":"پی سی وی 2","Roman Urdu":"PCV 2","English":"PCV 2"}},{"instance":{"openmrs_code":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv2","label":{"Urdu":"او پی وی 2","Roman Urdu":"OPV 2","English":"OPV 2"}},{"instance":{"openmrs_code":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta2","label":{"Urdu":"پینٹا ویلنٹ 2","Roman Urdu":"Pentavalent 2","English":"Pentavalent 2"}},{"instance":{"openmrs_code":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv3","label":{"Urdu":"پی سی وی 3","Roman Urdu":"PCV 3","English":"PCV 3"}},{"instance":{"openmrs_code":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv3","label":{"Urdu":"او پی وی 3","Roman Urdu":"OPV 3","English":"OPV 3"}},{"instance":{"openmrs_code":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta3","label":{"Urdu":"پینٹا ویلنٹ 3","Roman Urdu":"Pentavalent 3","English":"Pentavalent 3"}},{"instance":{"openmrs_code":"82242AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ipv","label":{"Urdu":"آئی پی وی","Roman Urdu":"IPV","English":"IPV"}},{"instance":{"openmrs_code":"79409AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"measles1","label":{"Urdu":"خسرہ 1","Roman Urdu":"Khasra 1","English":"Measles 1"}},{"instance":{"openmrs_code":"79409AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"measles2","label":{"Urdu":"خسرہ 2","Roman Urdu":"Khasra 2","English":"Measles 2"}}],"towns":[{"province":"sindh","city":"karachi","name":"korangi","label":{"Urdu":"کورنگی","Roman Urdu":"Korangi","English":"Korangi"}},{"province":"sindh","city":"karachi","name":"landhi","label":{"Urdu":"لانڈھی","Roman Urdu":"Landhi","English":"Landhi"}},{"province":"sindh","city":"karachi","name":"baldia","label":{"Urdu":"بلدیہ","Roman Urdu":"Baldia","English":"Baldia"}},{"province":"sindh","city":"karachi","name":"bin_qasim","label":{"Urdu":"بن قاسم","Roman Urdu":"Bin Qasim","English":"Bin Qasim"}},{"province":"sindh","city":"karachi","name":"gadap","label":{"Urdu":"گڈاپ","Roman Urdu":"Gadap","English":"Gadap"}},{"province":"sindh","city":"karachi","name":"gulberg","label":{"Urdu":"گلبرگ","Roman Urdu":"Gulberg","English":"Gulberg"}},{"province":"sindh","city":"karachi","name":"gulshan","label":{"Urdu":"گلشن","Roman Urdu":"Gulshan","English":"Gulshan"}},{"province":"sindh","city":"karachi","name":"jamshed","label":{"Urdu":"جمشید","Roman Urdu":"Jamshed","English":"Jamshed"}},{"province":"sindh","city":"karachi","name":"kiamari","label":{"Urdu":"کیماری","Roman Urdu":"Kiamari","English":"Kiamari"}},{"province":"sindh","city":"karachi","name":"liaquatabad","label":{"Urdu":"لیاقت آباد","Roman Urdu":"Liaquatabad","English":"Liaquatabad"}},{"province":"sindh","city":"karachi","name":"lyari","label":{"Urdu":"لیاری","Roman Urdu":"Lyari","English":"Lyari"}},{"province":"sindh","city":"karachi","name":"malir","label":{"Urdu":"ملیر","Roman Urdu":"Malir","English":"Malir"}},{"province":"sindh","city":"karachi","name":"new_karachi","label":{"Urdu":"نیو کراچی","Roman Urdu":"New Karachi","English":"New Karachi"}},{"province":"sindh","city":"karachi","name":"north_nazimabad","label":{"Urdu":"نارتھ ناظم آباد","Roman Urdu":"North Nazimabad","English":"North Nazimabad"}},{"province":"sindh","city":"karachi","name":"orangi","label":{"Urdu":"اورنگی","Roman Urdu":"Orangi","English":"Orangi"}},{"province":"sindh","city":"karachi","name":"saddar","label":{"Urdu":"صدر","Roman Urdu":"Saddar","English":"Saddar"}},{"province":"sindh","city":"karachi","name":"shah_faisal","label":{"Urdu":"شاہ فیصل","Roman Urdu":"Shah Faisal","English":"Shah Faisal"}},{"province":"sindh","city":"karachi","name":"site","label":{"Urdu":"سائٹ","Roman Urdu":"S.I.T.E.","English":"S.I.T.E."}},{"province":"na","city":"na","name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}},{"province":"na","city":"na","name":"not_applicable","label":{"Urdu":"قابل اطلاق نہیں","Roman Urdu":"Qaabil-e-atlaaq nahi","English":"Not Applicable"}}],"cities":[{"province":"sindh","name":"karachi","label":{"Urdu":"کراچی","Roman Urdu":"Karachi","English":"Karachi"}},{"province":"punjab","name":"hafizabad","label":{"Urdu":"حافظ آباد","Roman Urdu":"Hafizabad","English":"Hafizabad"}},{"province":"punjab","name":"muzaffargarh","label":{"Urdu":"مظفر گڑھ","Roman Urdu":"Muzaffargarh","English":"Muzaffargarh"}},{"province":"na","name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}},{"province":"na","name":"not_applicable","label":{"Urdu":"قابل اطلاق نہیں","Roman Urdu":"Qaabil-e-atlaaq nahi","English":"Not Applicable"}}],"yes_no":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}]},"instance":{"encounter_type":"Off Site Child Vaccination Follow Up"},"version":"201604260935","id_string":"offsite_child_vaccination_followup","type":"survey","children":[{"type":"hidden","name":"provider_uc"},{"type":"hidden","name":"provider_town"},{"type":"hidden","name":"provider_city"},{"type":"hidden","name":"provider_province"},{"type":"hidden","name":"existing_first_name"},{"type":"hidden","name":"existing_last_name"},{"type":"hidden","name":"existing_mother_name"},{"type":"hidden","name":"existing_gender"},{"type":"hidden","name":"existing_birth_date"},{"type":"hidden","name":"existing_client_reg_date"},{"type":"hidden","name":"existing_landmark"},{"type":"hidden","name":"existing_address1"},{"type":"hidden","name":"existing_union_council"},{"type":"hidden","name":"existing_town"},{"type":"hidden","name":"existing_city_village"},{"type":"hidden","name":"existing_province"},{"type":"hidden","name":"existing_union_councilname"},{"type":"hidden","name":"existing_townname"},{"type":"hidden","name":"existing_city_villagename"},{"type":"hidden","name":"existing_provincename"},{"type":"hidden","name":"existing_ethnicity"},{"type":"hidden","name":"existing_program_client_id"},{"type":"hidden","name":"existing_epi_card_number"},{"type":"hidden","name":"existing_child_was_suffering_from_a_disease_at_birth"},{"type":"hidden","name":"existing_reminders_approval"},{"type":"hidden","name":"existing_contact_phone_number"},{"type":"hidden","name":"e_bcg"},{"type":"hidden","name":"e_opv0"},{"type":"hidden","name":"e_penta2"},{"type":"hidden","name":"e_penta1"},{"type":"hidden","name":"e_penta3"},{"type":"hidden","name":"e_opv1"},{"type":"hidden","name":"e_opv2"},{"type":"hidden","name":"e_opv3"},{"type":"hidden","name":"e_pcv1"},{"type":"hidden","name":"e_pcv2"},{"type":"hidden","name":"e_pcv3"},{"type":"hidden","name":"e_ipv"},{"type":"hidden","name":"e_measles1"},{"type":"hidden","name":"e_measles2"},{"type":"hidden","name":"provider_id"},{"instance":{"openmrs_entity_id":"location_id","openmrs_entity":"encounter"},"type":"hidden","name":"provider_location_id"},{"type":"hidden","name":"provider_location_name"},{"type":"note","name":"provider_location_note","label":{"Urdu":"شہر: ${provider_city} ; ٹائون: ${provider_town} ; یوسی: ${provider_uc} ; سینٹرکا نام: ${provider_location_name}","English":"City: ${provider_city} ; Town: ${provider_town} ; UC: ${provider_uc} ; Center Name: ${provider_location_name}","Roman Urdu":"Shehr: ${provider_city} ; Town: ${provider_town} ; UC: ${provider_uc} ; Center ka Naam: ${provider_location_name}"}},{"instance":{"openmrs_entity_id":"163137AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"start","name":"start"},{"instance":{"openmrs_entity_id":"163138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"end","name":"end"},{"instance":{"openmrs_entity_id":"163286AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"today","name":"today"},{"instance":{"openmrs_entity_id":"163149AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"deviceid","name":"deviceid"},{"instance":{"openmrs_entity_id":"163150AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"subscriberid","name":"subscriberid"},{"instance":{"openmrs_entity_id":"163151AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"simserial","name":"simserial"},{"instance":{"openmrs_entity_id":"163152AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"phonenumber","name":"phonenumber"},{"bind":{"required":"yes"},"label":{"Urdu":"پروگرام میں اندراج کی تاریخ: ${existing_client_reg_date}","Roman Urdu":"Program mai andraj ki tareekh: ${existing_client_reg_date}","English":"Program Registration date: ${existing_client_reg_date}"},"type":"note","name":"existing_client_reg_date_note","hint":{"Urdu":"بچے کو ویکسین لگنے کی تاریخ","Roman Urdu":"Bachay ko vaccine lagnay ki tareekh","English":"Date on which child was vaccinated"}},{"bind":{"required":"yes"},"type":"note","name":"program_client_id_note","label":{"Urdu":"پروگرام آئی ڈی: ${existing_program_client_id}","Roman Urdu":"Program ID: ${existing_program_client_id}","English":"Program ID: ${existing_program_client_id}"}},{"bind":{"jr:constraintMsg":{"Urdu":"نمبر آٹھ ہندسوں پر مشتمل ہونا چاہئے","English":"Number should be 8 digits","Roman Urdu":"Number 8 hindason par mushtamil hona chahiye"},"required":"yes","constraint":"string-length(.) = 8"},"type":"integer","instance":{"openmrs_entity_id":"EPI Card Number","openmrs_entity":"person_attribute"},"name":"epi_card_number","label":{"Urdu":"ای پی آئی کارڈ نمبر: ${existing_epi_card_number}","English":"EPI Card Number: ${existing_epi_card_number}","Roman Urdu":"EPI Card Number: ${existing_epi_card_number}"}},{"bind":{"required":"yes"},"type":"note","name":"first_name_note","label":{"Urdu":"نام: ${existing_first_name}","Roman Urdu":"Naam: ${existing_first_name}","English":"First Name: ${existing_first_name}"}},{"bind":{"required":"yes"},"type":"note","name":"last_name_note","label":{"Urdu":"والد کا نام: ${existing_last_name}","Roman Urdu":"Waalid ka naam: ${existing_last_name}","English":"Last name: ${existing_last_name}"}},{"bind":{"calculate":"int((${today} - ${existing_birth_date}) div 30.42)"},"type":"calculate","name":"child_age","instance":{"openmrs_entity_id":"154384AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"type":"note","name":"calc_dob_note","label":{"Urdu":"بچے کی تاریخ پیدائش: ${existing_birth_date} (${child_age}) مہینے","English":"Child Date of Birth: ${existing_birth_date} (${child_age}) months","Roman Urdu":"Bachay ki tareekh-e-paidaish: ${existing_birth_date} (${child_age}) mahinay"}},{"bind":{"required":"yes"},"type":"note","name":"gender_note","label":{"Urdu":"جنس: ${existing_gender}","Roman Urdu":"Jins:${existing_gender}","English":"Gender: ${existing_gender}"}},{"type":"note","name":"mother_name_note","label":{"Urdu":"ماں کا نام: ${existing_mother_name}","English":"Mother's Name: ${existing_mother_name}","Roman Urdu":"Maa ka naam: ${existing_mother_name}"}},{"bind":{"required":"yes"},"type":"note","name":"exisiting_ethnicity_note","label":{"Urdu":"قومیت: ${existing_ethnicity}","Roman Urdu":"Qomiat: ${existing_ethnicity}","English":"Ethnicity: ${existing_ethnicity}"}},{"type":"note","name":"address","label":{"Urdu":"موجودہ پتہ: ${existing_address1}, ${existing_landmark}, ${existing_union_councilname}, ${existing_townname}, ${existing_city_villagename}, ${existing_provincename}","English":"Current Address: ${existing_address1}, ${existing_landmark}, ${existing_union_councilname}, ${existing_townname}, ${existing_city_villagename}, ${existing_provincename}","Roman Urdu":"Mojooda Address: ${existing_address1}, ${existing_landmark}, ${existing_union_councilname}, ${existing_townname}, ${existing_city_villagename}, ${existing_provincename}"}},{"label":{"Urdu":"کیا آپ کا گھر کا پتہ بدلا ہے؟","English":"Has your home address changed?","Roman Urdu":"Kya aap ka ghar ka pata badla hai?"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}],"name":"address_change"},{"control":{"appearance":"minimal"},"name":"province","default":"${provider_province}","bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"label":{"Urdu":"صوبہ","Roman Urdu":"Suba","English":"Province"},"instance":{"openmrs_entity":"person_address","openmrs_entity_id":"stateProvince","openmrs_entity_parent":"usual_residence"},"type":"select one","children":[{"name":"kpk","label":{"Urdu":"خیبر پختون خواہ","English":"Khyber Pakhtunkhwa","Roman Urdu":"Khyber Pakhtunkhwa"}},{"name":"sindh","label":{"Urdu":"سندھ","English":"Sindh","Roman Urdu":"Sindh"}},{"name":"balochistan","label":{"Urdu":"بلوچستان","English":"Balochistan","Roman Urdu":"Balochistan"}},{"name":"punjab","label":{"Urdu":"پنجاب","English":"Punjab","Roman Urdu":"Punjab"}},{"name":"gilgit_baltistan","label":{"Urdu":"گلگت بلتستان","English":"Gilgit Baltistan","Roman Urdu":"Gilgit Baltistan"}},{"name":"kashmir","label":{"Urdu":"کشمیر","English":"Kashmir","Roman Urdu":"Kashmir"}},{"name":"fata","label":{"Urdu":"فاٹا","English":"FATA","Roman Urdu":"FATA"}},{"name":"out_of_country","label":{"Urdu":"ملک سے باہر","English":"Out of Country","Roman Urdu":"Out of Country"}}]},{"control":{"appearance":"minimal"},"name":"city_village","choice_filter":"province=${province} or province='na'","default":"${provider_city}","bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"label":{"Urdu":"شہر","Roman Urdu":"Shehr","English":"City"},"itemset":"cities","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"cityVillage","openmrs_entity_parent":"usual_residence"},"type":"select one"},{"control":{"appearance":"minimal"},"name":"town","choice_filter":"(province=${province} and city=${city_village} ) or city='na'","bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"label":{"Urdu":"ٹاٰئون/ قصبہ/ بستی","Roman Urdu":"Town / Qasbah / Basti","English":"Town"},"itemset":"towns","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"town","openmrs_entity_parent":"usual_residence"},"type":"select one"},{"control":{"appearance":"minimal"},"name":"union_council","choice_filter":"(province=${province} and city=${city_village} and town=${town}) or town='na'","bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"label":{"Urdu":"یونین کونسل","Roman Urdu":"Union Council","English":"Union Council"},"itemset":"ucs","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"subTown","openmrs_entity_parent":"usual_residence"},"type":"select one"},{"bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"type":"text","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"address1","openmrs_entity_parent":"usual_residence"},"name":"address1","label":{"Urdu":"گھر کا پتہ","Roman Urdu":"Ghar ka pata","English":"Home Address"}},{"bind":{"relevant":"selected(${address_change}, 'yes')"},"type":"text","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"landmark","openmrs_entity_parent":"usual_residence"},"name":"landmark","label":{"Urdu":"گھر کے قریب کوئی مشہور جگہ","Roman Urdu":"Ghar ke qareeb koi mashoor jagah","English":"Land Mark"}},{"instance":{"openmrs_entity_id":"163277AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"geopoint","name":"center_gps","label":{"Urdu":"حاصل کردہ معلومات کی جگہ کے GPS کارڈینیٹس درج کریں","English":"Collect GPS coordinates of data entry location:","Roman Urdu":"Hasil karda malomaat ki jaga ke GPS coordinates darj karain"}},{"bind":{"required":"yes"},"type":"note","name":"child_was_suffering_from_a_disease_at_birth_note","label":{"Urdu":"کیا بچہ پیدائش کے وقت کسی مرض میں مبتلا تھا؟ ${existing_child_was_suffering_from_a_disease_at_birth}","Roman Urdu":"Kya bacha pedaaish k waqt kissi marz mai mubtila tha? ${existing_child_was_suffering_from_a_disease_at_birth}","English":"Child was suffering from a disease at birth: ${existing_child_was_suffering_from_a_disease_at_birth}"}},{"instance":{"openmrs_entity_id":"163162AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"text","name":"aefi","label":{"Urdu":"حفاظتی ٹیکوں کے مضر اثرات","English":"Temporary side-effects of immunization shots","Roman Urdu":"Hifazati teekon ke muzr asraat"}},{"name":"reminders_approval","bind":{"required":"yes"},"label":{"Urdu":"کیا آپ اپنے بچے کی اگلی ویکسین کی تاریخ کے لیے SMS موصول کرنا چاہتے ہیں؟ ${existing_reminders_approval}","English":"Are you willing to receive SMS reminders for your next visit? ${existing_reminders_approval}","Roman Urdu":"Kya aap apnay bachay ki agli vaccine ki tareekh ke liye SMS mausool karna chahtay hain? ${existing_reminders_approval}"},"instance":{"openmrs_entity_id":"163089AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}]},{"bind":{"jr:constraintMsg":{"Urdu":"فون نمبر گیارہ ہندسوں پر مشتمل اور مندرجہ ذیل شکل میں ہونا چاہئے: *********03","English":"Phone number should be 11 digits in the following format: 03*********","Roman Urdu":"Phone number 11 hindason par mushtamil aur mundarja zail shakal main hona chahiey: 03*********"},"relevant":"${reminders_approval}='yes'","constraint":"regex(., '^03[0-9]{9}$')"},"type":"text","instance":{"openmrs_entity_id":"159635AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"contact_phone_number","label":{"Urdu":"موبائل نمبر: ${existing_contact_phone_number}","English":"Mobile Number: ${existing_contact_phone_number}","Roman Urdu":"Mobile Number: ${existing_contact_phone_number}"}},{"bind":{"calculate":"${existing_birth_date} + 42"},"type":"calculate","name":"six_weeks"},{"bind":{"calculate":"${existing_birth_date} + 70"},"type":"calculate","name":"ten_weeks"},{"bind":{"calculate":"${existing_birth_date} + 98"},"type":"calculate","name":"forteen_weeks"},{"bind":{"calculate":"${existing_birth_date} + 245"},"type":"calculate","name":"nine_months"},{"bind":{"calculate":"${existing_birth_date} + 458"},"type":"calculate","name":"fifteen_months"},{"bind":{"relevant":"${e_bcg} != ''"},"type":"note","name":"bcg_note","label":{"Urdu":"${e_bcg}","Roman Urdu":"${e_bcg}","English":"${e_bcg}"}},{"bind":{"relevant":"${e_opv0} != ''"},"type":"note","name":"opv0_note","label":{"Urdu":"${e_opv0}","Roman Urdu":"${e_opv0}","English":"${e_opv0}"}},{"bind":{"relevant":"${e_penta2} != ''"},"type":"note","name":"opv1_note","label":{"Urdu":"${e_penta2}","Roman Urdu":"${e_penta2}","English":"${e_penta2}"}},{"bind":{"relevant":"${e_penta1} != ''"},"type":"note","name":"pcv1_note","label":{"Urdu":"${e_penta1}","Roman Urdu":"${e_penta1}","English":"${e_penta1}"}},{"bind":{"relevant":"${e_penta3} != ''"},"type":"note","name":"penta1_note","label":{"Urdu":"${e_penta3}","Roman Urdu":"${e_penta3}","English":"${e_penta3}"}},{"bind":{"relevant":"${e_opv1} != ''"},"type":"note","name":"opv2_note","label":{"Urdu":"${e_opv1}","Roman Urdu":"${e_opv1}","English":"${e_opv1}"}},{"bind":{"relevant":"${e_opv2} != ''"},"type":"note","name":"pcv2_note","label":{"Urdu":"${e_opv2}","Roman Urdu":"${e_opv2}","English":"${e_opv2}"}},{"bind":{"relevant":"${e_opv3} != ''"},"type":"note","name":"penta2_note","label":{"Urdu":"${e_opv3}","Roman Urdu":"${e_opv3}","English":"${e_opv3}"}},{"bind":{"relevant":"${e_pcv1} != ''"},"type":"note","name":"opv3_note","label":{"Urdu":"${e_pcv1}","Roman Urdu":"${e_pcv1}","English":"${e_pcv1}"}},{"bind":{"relevant":"${e_pcv2} != ''"},"type":"note","name":"pcv3_note","label":{"Urdu":"${e_pcv2}","Roman Urdu":"${e_pcv2}","English":"${e_pcv2}"}},{"bind":{"relevant":"${e_pcv3} != ''"},"type":"note","name":"penta3_note","label":{"Urdu":"${e_pcv3}","Roman Urdu":"${e_pcv3}","English":"${e_pcv3}"}},{"bind":{"relevant":"${e_ipv} != ''"},"type":"note","name":"ipv_note","label":{"Urdu":"${e_ipv}","Roman Urdu":"${e_ipv}","English":"${e_ipv}"}},{"bind":{"relevant":"${e_measles1} != ''"},"type":"note","name":"measles1_note","label":{"Urdu":"${e_measles1}","Roman Urdu":"${e_measles1}","English":"${e_measles1}"}},{"bind":{"relevant":"${e_measles2} != ''"},"type":"note","name":"measles2_note","label":{"Urdu":"${e_measles2}","Roman Urdu":"${e_measles2}","English":"${e_measles2}"}},{"control":{"appearance":"minimal"},"name":"vaccines","choice_filter":"name != if( ${e_bcg} != '', 'bcg' , '') and \nname != if( ${e_opv0} != '', 'opv0' , '') and \nname != if( ${e_penta1} != '', 'penta1' , '') and \nname != if( ${e_penta2} != '', 'penta2' , '') and \nname != if( ${e_penta3} != '', 'penta3' , '') and \nname != if( ${e_opv1} != '', 'opv1' , '') and \nname != if( ${e_opv2} != '', 'opv2' , '') and \nname != if( ${e_opv3} != '', 'opv3' , '') and \nname != if( ${e_pcv1} != '', 'pcv1' , '') and \nname != if( ${e_pcv2} != '', 'pcv2' , '') and \nname != if( ${e_pcv3} != '', 'pcv3' , '') and \nname != if( ${e_ipv} != '', 'ipv' , '') and \nname != if( ${e_measles1} != '', 'measles1' , '') and \nname != if( ${e_measles2} != '', 'measles2' , '')","label":{"Urdu":"پچھلی تاریخ جب کسی اور سینٹر پر ٹیکے لگواِے گیے یا قطرے پلائے گئے","Roman Urdu":"Pichli tareekh jab kissi aur center par teekay lagwaye gaye ya katray pilaey gaye","English":"Retro vaccines"},"itemset":"vaccines","instance":{"openmrs_entity":"concept","openmrs_entity_id":"984AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1421AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"select all that apply"},{"type":"group","children":[{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'bcg')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"886AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"bcg_retro","label":{"Urdu":"بی سی جی","Roman Urdu":"BCG","English":"BCG"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'opv0')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv0_retro","label":{"Urdu":"او پی وی 0","Roman Urdu":"OPV 0","English":"OPV 0"}},{"bind":{"relevant":"selected(${vaccines}, 'opv0')","calculate":"0"},"type":"calculate","name":"opv0_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'pcv1')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv1_retro","label":{"Urdu":"پی سی وی 1","Roman Urdu":"PCV1","English":"PCV1"}},{"bind":{"relevant":"selected(${vaccines}, 'pcv1')","calculate":"1"},"type":"calculate","name":"pcv1_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'opv1')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv1_retro","label":{"Urdu":"او پی وی1","Roman Urdu":"OPV 1","English":"OPV 1"}},{"bind":{"relevant":"selected(${vaccines}, 'opv1')","calculate":"1"},"type":"calculate","name":"opv1_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'penta1')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta1_retro","label":{"Urdu":"پینٹا ویلنٹ 1","Roman Urdu":"Pentavalent 1","English":"Pentavalent 1"}},{"bind":{"relevant":"selected(${vaccines}, 'penta1')","calculate":"1"},"type":"calculate","name":"penta1_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'pcv2')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv2_retro","label":{"Urdu":"پی سی وی 2","Roman Urdu":"PCV2","English":"PCV2"}},{"bind":{"relevant":"selected(${vaccines}, 'pcv2')","calculate":"2"},"type":"calculate","name":"pcv2_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'opv2')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv2_retro","label":{"Urdu":"او پی وی 2","Roman Urdu":"OPV 2","English":"OPV 2"}},{"bind":{"relevant":"selected(${vaccines}, 'opv2')","calculate":"2"},"type":"calculate","name":"opv2_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'penta2')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta2_retro","label":{"Urdu":"پینٹا ویلنٹ 2","Roman Urdu":"Pentavalent 2","English":"Pentavalent 2"}},{"bind":{"relevant":"selected(${vaccines}, 'penta2')","calculate":"2"},"type":"calculate","name":"penta2_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'pcv3')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pcv3_retro","label":{"Urdu":"پی سی وی 3","Roman Urdu":"PCV3","English":"PCV3"}},{"bind":{"relevant":"selected(${vaccines}, 'penta2')","calculate":"3"},"type":"calculate","name":"pcv3_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'opv3')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"opv3_retro","label":{"Urdu":"او پی وی3","Roman Urdu":"OPV 3","English":"OPV 3"}},{"bind":{"relevant":"selected(${vaccines}, 'opv3')","calculate":"3"},"type":"calculate","name":"opv3_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'penta3')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"penta3_retro","label":{"Urdu":"پینٹا ویلنٹ 3","Roman Urdu":"Pentavalent 3","English":"Pentavalent 3"}},{"bind":{"relevant":"selected(${vaccines}, 'penta3')","calculate":"3"},"type":"calculate","name":"penta3_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'ipv')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1422AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ipv_retro","label":{"Urdu":"آئی پی وی","Roman Urdu":"IPV","English":"IPV"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'measles1')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"measles1_retro","label":{"Urdu":"خسرہ 1","Roman Urdu":"Measles 1","English":"Measles 1"}},{"bind":{"relevant":"selected(${vaccines}, 'measles1')","calculate":"1"},"type":"calculate","name":"measles1_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"حفاظتی ٹیکا ملنے کی تاریخ، بچے کی تاریخ پیدائش کے بعد اور آج کی تاریخ سے پہلے کی ہونی چاہیے","English":"The date of vaccination must be greater than the child's birthdate and less than today.","Roman Urdu":"Hifaazati teeka milnay ki tareekh, bachay ki tareekh-e-pedaaish ke baad aur aaj ki tareekh se phlay ki honi chahiye."},"relevant":"selected(${vaccines}, 'measles2')","constraint":".>= ${existing_birth_date} and .<=${today}"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"measles2_retro","label":{"Urdu":"خسرہ 2","Roman Urdu":"Measles2","English":"Measles2"}},{"bind":{"relevant":"selected(${vaccines}, 'measles2')","calculate":"2"},"type":"calculate","name":"measles2_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}}],"name":"vaccines_group"},{"control":{"appearance":"minimal"},"name":"vaccines_2","choice_filter":"name != if( ${e_bcg} != '', 'bcg' , '') and \nname != if( ${e_opv0} != '', 'opv0' , '') and \nname != if( ${e_penta2} != '', 'penta2' , '') and \nname != if( ${e_penta1} != '', 'penta1' , '') and \nname != if( ${e_penta3} != '', 'penta3' , '') and \nname != if( ${e_opv1} != '', 'opv1' , '') and \nname != if( ${e_opv2} != '', 'opv2' , '') and \nname != if( ${e_opv3} != '', 'opv3' , '') and \nname != if( ${e_pcv1} != '', 'pcv1' , '') and \nname != if( ${e_pcv2} != '', 'pcv2' , '') and \nname != if( ${e_pcv3} != '', 'pcv3' , '') and \nname != if( ${e_measles1} != '', 'measles1' , '') and \nname != if( ${e_measles2} != '', 'measles2' , '') and \nname != if(selected(${vaccines}, 'bcg'), 'bcg', '') and \nname != if(selected(${vaccines}, 'opv0'), 'opv0', '') and \nname != if(selected(${vaccines}, 'penta1'), 'penta1', '') and \nname != if(selected(${vaccines}, 'opv1'), 'opv1', '') and \nname != if(selected(${vaccines}, 'pcv1'), 'pcv1', '') and \nname != if(selected(${vaccines}, 'penta2'), 'penta2', '') and \nname != if(selected(${vaccines}, 'opv2'), 'opv2', '') and \nname != if(selected(${vaccines}, 'pcv2'), 'pcv2', '') and \nname != if(selected(${vaccines}, 'penta3'), 'penta3', '') and \nname != if(selected(${vaccines}, 'opv3'), 'opv3', '') and \nname != if(selected(${vaccines}, 'pcv3'), 'pcv3', '') and\nname != if(selected(${vaccines}, 'ipv'), 'ipv', '') and \nname != if(selected(${vaccines}, 'measles1'), 'measles1', '') and \nname != if(selected(${vaccines}, 'measles2'), 'measles2', '')","bind":{"required":"yes","constraint":"if(selected(${vaccines_2}, 'bcg') or selected(${vaccines_2}, 'opv0') , .>= ${existing_birth_date} and .<=${today}, if(selected(${vaccines_2}, 'opv1') or selected(${vaccines_2}, 'penta1'), .>= ${six_weeks} and .<=${today}, if(selected(${vaccines_2}, 'opv2') or selected(${vaccines_2}, 'penta2'), .>=${ten_weeks} and .<=${today}, if(selected(${vaccines_2}, 'opv3') or selected(${vaccines_2}, 'penta3'), .>=${forteen_weeks} and .<=${today}, if(selected(${vaccines_2}, 'measles1'), .>=${nine_months} and .<=${today}, if(selected(${vaccines_2}, 'measles2'), .>= ${fifteen_months} and .<=${today}))))))"},"label":{"Urdu":"آج کون کون سی ویکسین دی گئی ہیں؟","Roman Urdu":"Aaj kon kon si vaccine di gai hain?","English":"Vaccines administered"},"itemset":"vaccines","instance":{"openmrs_entity":"concept","openmrs_entity_id":"984AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1441AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"select all that apply"},{"name":"vaccination_date","default":"${today}","bind":{"required":"yes","constraint":"if(selected(${vaccines_2}, 'bcg') or selected(${vaccines_2}, 'opv0') , .>= ${existing_birth_date} and .<=${today}, if(selected(${vaccines_2}, 'opv1') or selected(${vaccines_2}, 'penta1'), .>= ${six_weeks} and .<=${today}, if(selected(${vaccines_2}, 'opv2') or selected(${vaccines_2}, 'penta2'), .>=${ten_weeks} and .<=${today}, if(selected(${vaccines_2}, 'opv3') or selected(${vaccines_2}, 'penta3'), .>=${forteen_weeks} and .<=${today}, if(selected(${vaccines_2}, 'measles1'), .>=${nine_months} and .<=${today}, if(selected(${vaccines_2}, 'measles2'), .>= ${fifteen_months} and .<=${today}))))))"},"label":{"Urdu":"تاریخ","English":"Vaccination date","Roman Urdu":"Tareekh"},"instance":{"openmrs_entity_id":"encounter_date","openmrs_entity":"encounter"},"type":"date"},{"bind":{"calculate":"if(selected(${vaccines_2}, 'bcg'),${vaccination_date},'')"},"type":"calculate","name":"bcg","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"886AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'opv0'),${vaccination_date},'')"},"type":"calculate","name":"opv0","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'opv0')","calculate":"0"},"type":"calculate","name":"opv0_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'pcv1'),${vaccination_date},'')"},"type":"calculate","name":"pcv1","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'pcv1')","calculate":"1"},"type":"calculate","name":"pcv1_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'opv1'),${vaccination_date},'')"},"type":"calculate","name":"opv1","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'opv1')","calculate":"1"},"type":"calculate","name":"opv1_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'penta1'),${vaccination_date},'')"},"type":"calculate","name":"penta1","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'penta1')","calculate":"1"},"type":"calculate","name":"penta1_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'pcv2'),${vaccination_date},'')"},"type":"calculate","name":"pcv2","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'pcv2')","calculate":"2"},"type":"calculate","name":"pcv2_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'opv2'),${vaccination_date},'')"},"type":"calculate","name":"opv2","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'opv2')","calculate":"2"},"type":"calculate","name":"opv2_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'penta2'),${vaccination_date},'')"},"type":"calculate","name":"penta2","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'penta2')","calculate":"2"},"type":"calculate","name":"penta2_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'pcv3'),${vaccination_date},'')"},"type":"calculate","name":"pcv3","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'pcv3')","calculate":"3"},"type":"calculate","name":"pcv3_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'opv3'),${vaccination_date},'')"},"type":"calculate","name":"opv3","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'opv3')","calculate":"3"},"type":"calculate","name":"opv3_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'penta3'),${vaccination_date},'')"},"type":"calculate","name":"penta3","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'penta3')","calculate":"3"},"type":"calculate","name":"penta3_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines}, 'ipv')","calculate":"if(selected(${vaccines_2}, 'ipv'),${vaccination_date},'')"},"type":"calculate","name":"ipv","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1422AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'measles1'),${vaccination_date},'')"},"type":"calculate","name":"measles1","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'measles1')","calculate":"1"},"type":"calculate","name":"measles1_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'measles2'),${vaccination_date},'')"},"type":"calculate","name":"measles2","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2}, 'measles2')","calculate":"2"},"type":"calculate","name":"measles2_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"control":{"bodyless":true},"type":"group","children":[{"bind":{"readonly":"true()","calculate":"concat('uuid:', uuid())"},"type":"calculate","name":"instanceID"}],"name":"meta"}]} \ No newline at end of file diff --git a/opensrp-web/src/test/resources/form/offsite_child_followup/form.xml b/opensrp-web/src/test/resources/form/offsite_child_followup/form.xml deleted file mode 100644 index 6599e47c89..0000000000 --- a/opensrp-web/src/test/resources/form/offsite_child_followup/form.xml +++ /dev/null @@ -1,1694 +0,0 @@ -
- - -

دوسرے سینٹر میں رجسٹرڈ بچّوں کا فالو اپ رجسٹر برائے ٹیکاجات - Off Site Child Follow Up Vaccination Register

-
-
- - کیا آپ کا گھر کا پتہ بدلا ہے؟ - Has your home address changed? - - Kya aap ka ghar ka pata badla hai? -
- - -
-
-
-
- - کیا آپ اپنے بچے کی اگلی ویکسین کی تاریخ کے لیے SMS موصول کرنا چاہتے ہیں؟ - - Are you willing to receive SMS reminders for your next visit? - - - Kya aap apnay bachay ki agli vaccine ki tareekh ke liye SMS mausool karna chahtay hain? - - * -
- - -
-
-
- - - - - - - - - - - - - -
- - -
diff --git a/opensrp-web/src/test/resources/form/offsite_child_followup/form_definition.json b/opensrp-web/src/test/resources/form/offsite_child_followup/form_definition.json deleted file mode 100644 index e8b17da725..0000000000 --- a/opensrp-web/src/test/resources/form/offsite_child_followup/form_definition.json +++ /dev/null @@ -1,459 +0,0 @@ -{ - "form_data_definition_version" : "1", - "form" : { - "bind_type" : "pkchild", - "default_bind_path" : "/model/instance/Offsite_Child_Vaccination_Followup/", - "fields" : [ { - "name" : "id", - "shouldLoadValue" : true - }, { - "name" : "provider_uc", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/provider_uc", - "shouldLoadValue" : true - }, { - "name" : "provider_town", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/provider_town", - "shouldLoadValue" : true - }, { - "name" : "provider_city", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/provider_city", - "shouldLoadValue" : true - }, { - "name" : "provider_province", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/provider_province", - "shouldLoadValue" : true - }, { - "name" : "existing_first_name", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_first_name", - "shouldLoadValue" : true - }, { - "name" : "existing_last_name", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_last_name", - "shouldLoadValue" : true - }, { - "name" : "existing_mother_name", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_mother_name", - "shouldLoadValue" : true - }, { - "name" : "existing_gender", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_gender", - "shouldLoadValue" : true - }, { - "name" : "existing_birth_date", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_birth_date", - "shouldLoadValue" : true - }, { - "name" : "existing_client_reg_date", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_client_reg_date", - "shouldLoadValue" : true - }, { - "name" : "existing_landmark", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_landmark", - "shouldLoadValue" : true - }, { - "name" : "existing_address1", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_address1", - "shouldLoadValue" : true - }, { - "name" : "existing_union_council", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_union_council", - "shouldLoadValue" : true - }, { - "name" : "existing_town", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_town", - "shouldLoadValue" : true - }, { - "name" : "existing_city_village", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_city_village", - "shouldLoadValue" : true - }, { - "name" : "existing_province", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_province", - "shouldLoadValue" : true - }, { - "name" : "existing_union_councilname", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_union_councilname", - "shouldLoadValue" : true - }, { - "name" : "existing_townname", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_townname", - "shouldLoadValue" : true - }, { - "name" : "existing_city_villagename", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_city_villagename", - "shouldLoadValue" : true - }, { - "name" : "existing_provincename", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_provincename", - "shouldLoadValue" : true - }, { - "name" : "existing_ethnicity", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_ethnicity", - "shouldLoadValue" : true - }, { - "name" : "existing_program_client_id", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_program_client_id", - "shouldLoadValue" : true - }, { - "name" : "existing_epi_card_number", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_epi_card_number", - "shouldLoadValue" : true - }, { - "name" : "existing_child_was_suffering_from_a_disease_at_birth", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_child_was_suffering_from_a_disease_at_birth", - "shouldLoadValue" : true - }, { - "name" : "existing_reminders_approval", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_reminders_approval", - "shouldLoadValue" : true - }, { - "name" : "existing_contact_phone_number", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_contact_phone_number", - "shouldLoadValue" : true - }, { - "name" : "e_bcg", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/e_bcg", - "shouldLoadValue" : true - }, { - "name" : "e_opv0", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/e_opv0", - "shouldLoadValue" : true - }, { - "name" : "e_penta2", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/e_penta2", - "shouldLoadValue" : true - }, { - "name" : "e_penta1", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/e_penta1", - "shouldLoadValue" : true - }, { - "name" : "e_penta3", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/e_penta3", - "shouldLoadValue" : true - }, { - "name" : "e_opv1", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/e_opv1", - "shouldLoadValue" : true - }, { - "name" : "e_opv2", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/e_opv2", - "shouldLoadValue" : true - }, { - "name" : "e_opv3", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/e_opv3", - "shouldLoadValue" : true - }, { - "name" : "e_pcv1", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/e_pcv1", - "shouldLoadValue" : true - }, { - "name" : "e_pcv2", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/e_pcv2", - "shouldLoadValue" : true - }, { - "name" : "e_pcv3", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/e_pcv3", - "shouldLoadValue" : true - }, { - "name" : "e_ipv", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/e_ipv", - "shouldLoadValue" : true - }, { - "name" : "e_measles1", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/e_measles1", - "shouldLoadValue" : true - }, { - "name" : "e_measles2", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/e_measles2", - "shouldLoadValue" : true - }, { - "name" : "provider_id", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/provider_id", - "shouldLoadValue" : true - }, { - "name" : "provider_location_id", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/provider_location_id", - "shouldLoadValue" : true - }, { - "name" : "provider_location_name", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/provider_location_name", - "shouldLoadValue" : true - }, { - "name" : "provider_location_note", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/provider_location_note" - }, { - "name" : "start", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/start" - }, { - "name" : "end", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/end" - }, { - "name" : "today", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/today" - }, { - "name" : "deviceid", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/deviceid" - }, { - "name" : "subscriberid", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/subscriberid" - }, { - "name" : "simserial", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/simserial" - }, { - "name" : "phonenumber", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/phonenumber" - }, { - "name" : "existing_client_reg_date_note", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/existing_client_reg_date_note" - }, { - "name" : "program_client_id_note", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/program_client_id_note" - }, { - "name" : "epi_card_number", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/epi_card_number" - }, { - "name" : "first_name_note", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/first_name_note" - }, { - "name" : "last_name_note", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/last_name_note" - }, { - "name" : "child_age", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/child_age" - }, { - "name" : "calc_dob_note", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/calc_dob_note" - }, { - "name" : "gender_note", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/gender_note" - }, { - "name" : "mother_name_note", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/mother_name_note" - }, { - "name" : "exisiting_ethnicity_note", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/exisiting_ethnicity_note" - }, { - "name" : "address", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/address" - }, { - "name" : "address_change", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/address_change" - }, { - "name" : "province", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/province" - }, { - "name" : "city_village", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/city_village" - }, { - "name" : "town", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/town" - }, { - "name" : "union_council", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/union_council" - }, { - "name" : "address1", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/address1" - }, { - "name" : "landmark", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/landmark" - }, { - "name" : "center_gps", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/center_gps" - }, { - "name" : "child_was_suffering_from_a_disease_at_birth_note", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/child_was_suffering_from_a_disease_at_birth_note" - }, { - "name" : "aefi", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/aefi" - }, { - "name" : "reminders_approval", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/reminders_approval" - }, { - "name" : "contact_phone_number", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/contact_phone_number" - }, { - "name" : "six_weeks", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/six_weeks" - }, { - "name" : "ten_weeks", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/ten_weeks" - }, { - "name" : "forteen_weeks", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/forteen_weeks" - }, { - "name" : "nine_months", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/nine_months" - }, { - "name" : "fifteen_months", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/fifteen_months" - }, { - "name" : "vaccines", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines" - }, { - "name" : "bcg_retro", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/bcg_retro" - }, { - "name" : "opv0_retro", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/opv0_retro" - }, { - "name" : "opv0_dose", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/opv0_dose" - }, { - "name" : "pcv1_retro", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/pcv1_retro" - }, { - "name" : "pcv1_dose", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/pcv1_dose" - }, { - "name" : "opv1_retro", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/opv1_retro" - }, { - "name" : "opv1_dose", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/opv1_dose" - }, { - "name" : "penta1_retro", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/penta1_retro" - }, { - "name" : "penta1_dose", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/penta1_dose" - }, { - "name" : "pcv2_retro", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/pcv2_retro" - }, { - "name" : "pcv2_dose", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/pcv2_dose" - }, { - "name" : "opv2_retro", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/opv2_retro" - }, { - "name" : "opv2_dose", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/opv2_dose" - }, { - "name" : "penta2_retro", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/penta2_retro" - }, { - "name" : "penta2_dose", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/penta2_dose" - }, { - "name" : "pcv3_retro", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/pcv3_retro" - }, { - "name" : "pcv3_dose", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/pcv3_dose" - }, { - "name" : "opv3_retro", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/opv3_retro" - }, { - "name" : "opv3_dose", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/opv3_dose" - }, { - "name" : "penta3_retro", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/penta3_retro" - }, { - "name" : "penta3_dose", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/penta3_dose" - }, { - "name" : "ipv_retro", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/ipv_retro" - }, { - "name" : "measles1_retro", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/measles1_retro" - }, { - "name" : "measles1_dose", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/measles1_dose" - }, { - "name" : "measles2_retro", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/measles2_retro" - }, { - "name" : "measles2_dose", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_group/measles2_dose" - }, { - "name" : "vaccines_2", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccines_2" - }, { - "name" : "vaccination_date", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/vaccination_date" - }, { - "name" : "bcg", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/bcg" - }, { - "name" : "opv0", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/opv0" - }, { - "name" : "opv0_dose_today", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/opv0_dose_today" - }, { - "name" : "pcv1", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/pcv1" - }, { - "name" : "pcv1_dose_today", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/pcv1_dose_today" - }, { - "name" : "opv1", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/opv1" - }, { - "name" : "opv1_dose_today", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/opv1_dose_today" - }, { - "name" : "penta1", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/penta1" - }, { - "name" : "penta1_dose_today", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/penta1_dose_today" - }, { - "name" : "pcv2", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/pcv2" - }, { - "name" : "pcv2_dose_today", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/pcv2_dose_today" - }, { - "name" : "opv2", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/opv2" - }, { - "name" : "opv2_dose_today", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/opv2_dose_today" - }, { - "name" : "penta2", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/penta2" - }, { - "name" : "penta2_dose_today", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/penta2_dose_today" - }, { - "name" : "pcv3", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/pcv3" - }, { - "name" : "pcv3_dose_today", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/pcv3_dose_today" - }, { - "name" : "opv3", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/opv3" - }, { - "name" : "opv3_dose_today", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/opv3_dose_today" - }, { - "name" : "penta3", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/penta3" - }, { - "name" : "penta3_dose_today", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/penta3_dose_today" - }, { - "name" : "ipv", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/ipv" - }, { - "name" : "measles1", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/measles1" - }, { - "name" : "measles1_dose_today", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/measles1_dose_today" - }, { - "name" : "measles2", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/measles2" - }, { - "name" : "measles2_dose_today", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/measles2_dose_today" - }, { - "name" : "instanceID", - "bind" : "/model/instance/Offsite_Child_Vaccination_Followup/meta/instanceID" - } ] - } -} \ No newline at end of file diff --git a/opensrp-web/src/test/resources/form/offsite_child_followup/model.xml b/opensrp-web/src/test/resources/form/offsite_child_followup/model.xml deleted file mode 100644 index 4277bfe50b..0000000000 --- a/opensrp-web/src/test/resources/form/offsite_child_followup/model.xml +++ /dev/null @@ -1,1697 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - ${provider_province} - ${provider_city} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ${today} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - static_instance-provinces-0 - kpk - - - static_instance-provinces-1 - sindh - - - static_instance-provinces-2 - balochistan - - - static_instance-provinces-3 - punjab - - - static_instance-provinces-4 - gilgit_baltistan - - - static_instance-provinces-5 - kashmir - - - static_instance-provinces-6 - fata - - - static_instance-provinces-7 - out_of_country - - - - - - - static_instance-ucs-0 - sindh - karachi - korangi - bilal_colony - - - static_instance-ucs-1 - sindh - karachi - korangi - nasir_colony - - - static_instance-ucs-2 - sindh - karachi - korangi - chakra_goth - - - static_instance-ucs-3 - sindh - karachi - korangi - mustafa_taj_colony - - - static_instance-ucs-4 - sindh - karachi - korangi - hundred_quarters - - - static_instance-ucs-5 - sindh - karachi - korangi - gulzar_colony - - - static_instance-ucs-6 - sindh - karachi - korangi - korangi_sector_33 - - - static_instance-ucs-7 - sindh - karachi - korangi - zaman_town - - - static_instance-ucs-8 - sindh - karachi - korangi - hasrat_mohani_colony - - - static_instance-ucs-9 - sindh - karachi - baldia - gulshan_e_ghazi - - - static_instance-ucs-10 - sindh - karachi - baldia - ittehad_town - - - static_instance-ucs-11 - sindh - karachi - baldia - islam_nagar - - - static_instance-ucs-12 - sindh - karachi - baldia - nai_abadi - - - static_instance-ucs-13 - sindh - karachi - baldia - saeedabad - - - static_instance-ucs-14 - sindh - karachi - baldia - muslim_mujahid_colony - - - static_instance-ucs-15 - sindh - karachi - baldia - muhajir_camp - - - static_instance-ucs-16 - sindh - karachi - baldia - rasheedabad - - - static_instance-ucs-17 - sindh - karachi - bin_qasim - ibrahim_hyderi - - - static_instance-ucs-18 - sindh - karachi - bin_qasim - rehri - - - static_instance-ucs-19 - sindh - karachi - bin_qasim - cattle_colony - - - static_instance-ucs-20 - sindh - karachi - bin_qasim - qaidabad - - - static_instance-ucs-21 - sindh - karachi - bin_qasim - landhi_colony - - - static_instance-ucs-22 - sindh - karachi - bin_qasim - gulshan_e_hadeed - - - static_instance-ucs-23 - sindh - karachi - bin_qasim - gaghar - - - static_instance-ucs-24 - sindh - karachi - gadap - murad_memon_goth - - - static_instance-ucs-25 - sindh - karachi - gadap - darsano_chana - - - static_instance-ucs-26 - sindh - karachi - gadap - gujro - - - static_instance-ucs-27 - sindh - karachi - gadap - songal - - - static_instance-ucs-28 - sindh - karachi - gadap - maymarabad - - - static_instance-ucs-29 - sindh - karachi - gadap - yousuf_goth - - - static_instance-ucs-30 - sindh - karachi - gadap - manghopir - - - static_instance-ucs-31 - sindh - karachi - gulberg - azizabad - - - static_instance-ucs-32 - sindh - karachi - gulberg - karimabad - - - static_instance-ucs-33 - sindh - karachi - gulberg - aisha_manzil - - - static_instance-ucs-34 - sindh - karachi - gulberg - ancholi - - - static_instance-ucs-35 - sindh - karachi - gulberg - naseerabad - - - static_instance-ucs-36 - sindh - karachi - gulberg - yaseenabad - - - static_instance-ucs-37 - sindh - karachi - gulberg - water_pump - - - static_instance-ucs-38 - sindh - karachi - gulberg - shafiq_mill_colony - - - static_instance-ucs-39 - sindh - karachi - gulshan - delhi_mercantile_society - - - static_instance-ucs-40 - sindh - karachi - gulshan - civic_centre - - - static_instance-ucs-41 - sindh - karachi - gulshan - pir_ilahi_buksh_colony - - - static_instance-ucs-42 - sindh - karachi - gulshan - essa_nagri - - - static_instance-ucs-43 - sindh - karachi - gulshan - gulshan_e_iqbal - - - static_instance-ucs-44 - sindh - karachi - gulshan - gillani_railway_station - - - static_instance-ucs-45 - sindh - karachi - gulshan - shanti_nagar - - - static_instance-ucs-46 - sindh - karachi - gulshan - jamali_colony - - - static_instance-ucs-47 - sindh - karachi - gulshan - gulshan_e_iqbal_ii - - - static_instance-ucs-48 - sindh - karachi - gulshan - pehlwan_goth - - - static_instance-ucs-49 - sindh - karachi - gulshan - matrovil_colony - - - static_instance-ucs-50 - sindh - karachi - gulshan - gulzar_e_hijri - - - static_instance-ucs-51 - sindh - karachi - gulshan - safooran_goth - - - static_instance-ucs-52 - sindh - karachi - jamshed - akhtar_colony - - - static_instance-ucs-53 - sindh - karachi - jamshed - manzoor_colony - - - static_instance-ucs-54 - sindh - karachi - jamshed - azam_basti - - - static_instance-ucs-55 - sindh - karachi - jamshed - chanesar_goth - - - static_instance-ucs-56 - sindh - karachi - jamshed - mahmudabad - - - static_instance-ucs-57 - sindh - karachi - jamshed - pechs - - - static_instance-ucs-58 - sindh - karachi - jamshed - pechs_ii - - - static_instance-ucs-59 - sindh - karachi - jamshed - jut_line - - - static_instance-ucs-60 - sindh - karachi - jamshed - central_jacob_lines - - - static_instance-ucs-61 - sindh - karachi - jamshed - jamshed_quarters - - - static_instance-ucs-62 - sindh - karachi - jamshed - garden_east - - - static_instance-ucs-63 - sindh - karachi - jamshed - soldier_bazar - - - static_instance-ucs-64 - sindh - karachi - jamshed - pakistan_quarters - - - static_instance-ucs-65 - sindh - karachi - kiamari - bhutta_village - - - static_instance-ucs-66 - sindh - karachi - kiamari - sultanabad - - - static_instance-ucs-67 - sindh - karachi - kiamari - kiamari_uc - - - static_instance-ucs-68 - sindh - karachi - kiamari - baba_bhit - - - static_instance-ucs-69 - sindh - karachi - kiamari - machar_colony - - - static_instance-ucs-70 - sindh - karachi - kiamari - maripur - - - static_instance-ucs-71 - sindh - karachi - kiamari - shershah - - - static_instance-ucs-72 - sindh - karachi - kiamari - gabo_pat - - - static_instance-ucs-73 - sindh - karachi - landhi - muzafarabad - - - static_instance-ucs-74 - sindh - karachi - landhi - muslimabad - - - static_instance-ucs-75 - sindh - karachi - landhi - dawood_chowrangi - - - static_instance-ucs-76 - sindh - karachi - landhi - moinabad - - - static_instance-ucs-77 - sindh - karachi - landhi - sharafi_goth - - - static_instance-ucs-78 - sindh - karachi - landhi - bhutto_nagar - - - static_instance-ucs-79 - sindh - karachi - landhi - khawaja_ajmeer_colony - - - static_instance-ucs-80 - sindh - karachi - landhi - landhi_uc - - - static_instance-ucs-81 - sindh - karachi - landhi - awami_colony - - - static_instance-ucs-82 - sindh - karachi - landhi - burmee_colony - - - static_instance-ucs-83 - sindh - karachi - landhi - korangi_uc - - - static_instance-ucs-84 - sindh - karachi - landhi - sherabad - - - static_instance-ucs-85 - sindh - karachi - liaquatabad - rizvia_society - - - static_instance-ucs-86 - sindh - karachi - liaquatabad - firdous_colony - - - static_instance-ucs-87 - sindh - karachi - liaquatabad - super_market - - - static_instance-ucs-88 - sindh - karachi - liaquatabad - dak_khana - - - static_instance-ucs-89 - sindh - karachi - liaquatabad - qasimabad - - - static_instance-ucs-90 - sindh - karachi - liaquatabad - bandhani_colony - - - static_instance-ucs-91 - sindh - karachi - liaquatabad - sharifabad - - - static_instance-ucs-92 - sindh - karachi - liaquatabad - commercial_area - - - static_instance-ucs-93 - sindh - karachi - liaquatabad - mujahid_colony - - - static_instance-ucs-94 - sindh - karachi - liaquatabad - nazimabad - - - static_instance-ucs-95 - sindh - karachi - liaquatabad - abbasi_shaheed - - - static_instance-ucs-96 - sindh - karachi - lyari - agra_taj_colony - - - static_instance-ucs-97 - sindh - karachi - lyari - daryaabad - - - static_instance-ucs-98 - sindh - karachi - lyari - nawabad - - - static_instance-ucs-99 - sindh - karachi - lyari - khada_memon_society - - - static_instance-ucs-100 - sindh - karachi - lyari - baghdadi - - - static_instance-ucs-101 - sindh - karachi - lyari - shah_baig_line - - - static_instance-ucs-102 - sindh - karachi - lyari - bihar_colony - - - static_instance-ucs-103 - sindh - karachi - lyari - ragiwara - - - static_instance-ucs-104 - sindh - karachi - lyari - singo_line - - - static_instance-ucs-105 - sindh - karachi - lyari - chakiwara - - - static_instance-ucs-106 - sindh - karachi - lyari - allama_iqbal_colony - - - static_instance-ucs-107 - sindh - karachi - malir - model_colony - - - static_instance-ucs-108 - sindh - karachi - malir - kala_board - - - static_instance-ucs-109 - sindh - karachi - malir - saudabad - - - static_instance-ucs-110 - sindh - karachi - malir - khokhra_par - - - static_instance-ucs-111 - sindh - karachi - malir - jafar_e_tayyar - - - static_instance-ucs-112 - sindh - karachi - malir - gharibabad - - - static_instance-ucs-113 - sindh - karachi - malir - ghazi_brohi_goth - - - static_instance-ucs-114 - sindh - karachi - new_karachi - kalyana - - - static_instance-ucs-115 - sindh - karachi - new_karachi - sir_syed_colony - - - static_instance-ucs-116 - sindh - karachi - new_karachi - fatima_jinnah_colony - - - static_instance-ucs-117 - sindh - karachi - new_karachi - godhra - - - static_instance-ucs-118 - sindh - karachi - new_karachi - abu_zar_ghaffari - - - static_instance-ucs-119 - sindh - karachi - new_karachi - hakim_ahsan - - - static_instance-ucs-120 - sindh - karachi - new_karachi - madina_colony - - - static_instance-ucs-121 - sindh - karachi - new_karachi - faisal_colony - - - static_instance-ucs-122 - sindh - karachi - new_karachi - khamiso_goth - - - static_instance-ucs-123 - sindh - karachi - new_karachi - mustufa_colony - - - static_instance-ucs-124 - sindh - karachi - new_karachi - khawaja_ajmeer_nagri - - - static_instance-ucs-125 - sindh - karachi - new_karachi - gulshan_e_saeed - - - static_instance-ucs-126 - sindh - karachi - new_karachi - shah_nawaz_bhutto_colony - - - static_instance-ucs-127 - sindh - karachi - north_nazimabad - paposh_nagar - - - static_instance-ucs-128 - sindh - karachi - north_nazimabad - pahar_ganj - - - static_instance-ucs-129 - sindh - karachi - north_nazimabad - khandu_goth - - - static_instance-ucs-130 - sindh - karachi - north_nazimabad - hyderi - - - static_instance-ucs-131 - sindh - karachi - north_nazimabad - sakhi_hassan - - - static_instance-ucs-132 - sindh - karachi - north_nazimabad - farooq_e_azam - - - static_instance-ucs-133 - sindh - karachi - north_nazimabad - nusrat_bhutto_colony - - - static_instance-ucs-134 - sindh - karachi - north_nazimabad - shadman_town - - - static_instance-ucs-135 - sindh - karachi - north_nazimabad - buffer_zone - - - static_instance-ucs-136 - sindh - karachi - north_nazimabad - buffer_zone_ii - - - static_instance-ucs-137 - sindh - karachi - orangi - mominabad - - - static_instance-ucs-138 - sindh - karachi - orangi - haryana_colony - - - static_instance-ucs-139 - sindh - karachi - orangi - hanifabad - - - static_instance-ucs-140 - sindh - karachi - orangi - mohammad_nagar - - - static_instance-ucs-141 - sindh - karachi - orangi - madina_colony_orangi - - - static_instance-ucs-142 - sindh - karachi - orangi - ghaziabad - - - static_instance-ucs-143 - sindh - karachi - orangi - chisti_nagar - - - static_instance-ucs-144 - sindh - karachi - orangi - bilal_colony_orangi - - - static_instance-ucs-145 - sindh - karachi - orangi - iqbal_baloch_colony - - - static_instance-ucs-146 - sindh - karachi - orangi - ghabool_town - - - static_instance-ucs-147 - sindh - karachi - orangi - data_nagar - - - static_instance-ucs-148 - sindh - karachi - orangi - mujahidabad - - - static_instance-ucs-149 - sindh - karachi - orangi - baloch_goth - - - static_instance-ucs-150 - sindh - karachi - saddar - old_haji_camp - - - static_instance-ucs-151 - sindh - karachi - saddar - garden - - - static_instance-ucs-152 - sindh - karachi - saddar - kharadar - - - static_instance-ucs-153 - sindh - karachi - saddar - city_railway_colony - - - static_instance-ucs-154 - sindh - karachi - saddar - nanak_wara - - - static_instance-ucs-155 - sindh - karachi - saddar - gazdarabad - - - static_instance-ucs-156 - sindh - karachi - saddar - millat_nagar_islam_pura - - - static_instance-ucs-157 - sindh - karachi - saddar - saddar_uc - - - static_instance-ucs-158 - sindh - karachi - saddar - civil_line - - - static_instance-ucs-159 - sindh - karachi - saddar - clifton - - - static_instance-ucs-160 - sindh - karachi - saddar - kehkashan - - - static_instance-ucs-161 - sindh - karachi - shah_faisal - natha_khan_goth - - - static_instance-ucs-162 - sindh - karachi - shah_faisal - pak_sadat_colony - - - static_instance-ucs-163 - sindh - karachi - shah_faisal - drigh_colony - - - static_instance-ucs-164 - sindh - karachi - shah_faisal - raita_plot - - - static_instance-ucs-165 - sindh - karachi - shah_faisal - moria_khan_goth - - - static_instance-ucs-166 - sindh - karachi - shah_faisal - rafa_e_aam_society - - - static_instance-ucs-167 - sindh - karachi - shah_faisal - al_falah_society - - - static_instance-ucs-168 - sindh - karachi - site - pak_colony - - - static_instance-ucs-169 - sindh - karachi - site - old_golimar - - - static_instance-ucs-170 - sindh - karachi - site - jahanabad - - - static_instance-ucs-171 - sindh - karachi - site - metrovil - - - static_instance-ucs-172 - sindh - karachi - site - bhawani_chali - - - static_instance-ucs-173 - sindh - karachi - site - frontier_colony - - - static_instance-ucs-174 - sindh - karachi - site - banaras_colony - - - static_instance-ucs-175 - sindh - karachi - site - qasba_colony - - - static_instance-ucs-176 - sindh - karachi - site - islamia_colony - - - static_instance-ucs-177 - na - na - na - other - - - static_instance-ucs-178 - na - na - na - not_applicable - - - - - - - static_instance-gender-0 - male - - - static_instance-gender-1 - female - - - static_instance-gender-2 - transgender - - - - - - - static_instance-vaccines-0 - bcg - - - static_instance-vaccines-1 - opv0 - - - static_instance-vaccines-2 - pcv1 - - - static_instance-vaccines-3 - opv1 - - - static_instance-vaccines-4 - penta11 - - - static_instance-vaccines-5 - pcv2 - - - static_instance-vaccines-6 - opv2 - - - static_instance-vaccines-7 - penta12 - - - static_instance-vaccines-8 - pcv3 - - - static_instance-vaccines-9 - opv3 - - - static_instance-vaccines-10 - penta13 - - - static_instance-vaccines-11 - ipv - - - static_instance-vaccines-12 - measles1 - - - static_instance-vaccines-13 - measles2 - - - - - - - static_instance-towns-0 - sindh - karachi - korangi - - - static_instance-towns-1 - sindh - karachi - landhi - - - static_instance-towns-2 - sindh - karachi - baldia - - - static_instance-towns-3 - sindh - karachi - bin_qasim - - - static_instance-towns-4 - sindh - karachi - gadap - - - static_instance-towns-5 - sindh - karachi - gulberg - - - static_instance-towns-6 - sindh - karachi - gulshan - - - static_instance-towns-7 - sindh - karachi - jamshed - - - static_instance-towns-8 - sindh - karachi - kiamari - - - static_instance-towns-9 - sindh - karachi - liaquatabad - - - static_instance-towns-10 - sindh - karachi - lyari - - - static_instance-towns-11 - sindh - karachi - malir - - - static_instance-towns-12 - sindh - karachi - new_karachi - - - static_instance-towns-13 - sindh - karachi - north_nazimabad - - - static_instance-towns-14 - sindh - karachi - orangi - - - static_instance-towns-15 - sindh - karachi - saddar - - - static_instance-towns-16 - sindh - karachi - shah_faisal - - - static_instance-towns-17 - sindh - karachi - site - - - static_instance-towns-18 - na - na - other - - - static_instance-towns-19 - na - na - not_applicable - - - - - - - static_instance-cities-0 - sindh - karachi - - - static_instance-cities-1 - punjab - hafizabad - - - static_instance-cities-2 - punjab - muzaffargarh - - - static_instance-cities-3 - na - other - - - static_instance-cities-4 - na - not_applicable - - - - - - - static_instance-yes_no-0 - yes - - - static_instance-yes_no-1 - no - - - - diff --git a/opensrp-web/src/test/resources/form/offsite_woman_followup/form.json b/opensrp-web/src/test/resources/form/offsite_woman_followup/form.json deleted file mode 100644 index 41c6d21a61..0000000000 --- a/opensrp-web/src/test/resources/form/offsite_woman_followup/form.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"Offsite_Woman_Followup_Form","title":"دوسرے سینٹر میں رجسٹرڈ خواتین فالواپ رجسٹر - Off Site Woman Follow Up Form","sms_keyword":"offsite_woman_followup_form","default_language":"English","choices":{"provinces":[{"name":"kpk","label":{"Urdu":"خیبر پختون خواہ","English":"Khyber Pakhtunkhwa","Roman Urdu":"Khyber Pakhtunkhwa"}},{"name":"sindh","label":{"Urdu":"سندھ","English":"Sindh","Roman Urdu":"Sindh"}},{"name":"balochistan","label":{"Urdu":"بلوچستان","English":"Balochistan","Roman Urdu":"Balochistan"}},{"name":"punjab","label":{"Urdu":"پنجاب","English":"Punjab","Roman Urdu":"Punjab"}},{"name":"gilgit_baltistan","label":{"Urdu":"گلگت بلتستان","English":"Gilgit Baltistan","Roman Urdu":"Gilgit Baltistan"}},{"name":"kashmir","label":{"Urdu":"کشمیر","English":"Kashmir","Roman Urdu":"Kashmir"}},{"name":"fata","label":{"Urdu":"فاٹا","English":"FATA","Roman Urdu":"FATA"}},{"name":"out_of_country","label":{"Urdu":"ملک سے باہر","English":"Out of Country","Roman Urdu":"Mulk se baahir"}}],"ucs":[{"province":"sindh","city":"karachi","town":"korangi","name":"bilal_colony","label":{"Urdu":"بلال کالونی","Roman Urdu":"Bilal Colony","English":"Bilal Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"nasir_colony","label":{"Urdu":"ناصر کالونی","Roman Urdu":"Nasir Colony","English":"Nasir Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"chakra_goth","label":{"Urdu":"چکرا گوٹھ","Roman Urdu":"Chakra Goth","English":"Chakra Goth"}},{"province":"sindh","city":"karachi","town":"korangi","name":"mustafa_taj_colony","label":{"Urdu":"مصطفی تاج کالونی","Roman Urdu":"Mustafa Taj Colony","English":"Mustafa Taj Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"hundred_quarters","label":{"Urdu":"ہنڈریڈ کوارٹر","Roman Urdu":"Hundred Quarters","English":"Hundred Quarters"}},{"province":"sindh","city":"karachi","town":"korangi","name":"gulzar_colony","label":{"Urdu":"گلزار کالونی","Roman Urdu":"Gulzar Colony","English":"Gulzar Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"korangi_sector_33","label":{"Urdu":"کورنگی سیکٹر 33","Roman Urdu":"Korangi Sector 33","English":"Korangi Sector 33"}},{"province":"sindh","city":"karachi","town":"korangi","name":"zaman_town","label":{"Urdu":"زمان ٹاوَن","Roman Urdu":"Zaman Town","English":"Zaman Town"}},{"province":"sindh","city":"karachi","town":"korangi","name":"hasrat_mohani_colony","label":{"Urdu":"حسرت موہانی کالونی","Roman Urdu":"Hasrat Mohani Colony","English":"Hasrat Mohani Colony"}},{"province":"sindh","city":"karachi","town":"baldia","name":"gulshan_e_ghazi","label":{"Urdu":"گلشن غازی","Roman Urdu":"Gulshan-e-Ghazi","English":"Gulshan-e-Ghazi"}},{"province":"sindh","city":"karachi","town":"baldia","name":"ittehad_town","label":{"Urdu":"اتحاد ٹاوَن","Roman Urdu":"Ittehad Town","English":"Ittehad Town"}},{"province":"sindh","city":"karachi","town":"baldia","name":"islam_nagar","label":{"Urdu":"اسلام نگر","Roman Urdu":"Islam Nagar","English":"Islam Nagar"}},{"province":"sindh","city":"karachi","town":"baldia","name":"nai_abadi","label":{"Urdu":"نئی آبادی","Roman Urdu":"Nai Abadi","English":"Nai Abadi"}},{"province":"sindh","city":"karachi","town":"baldia","name":"saeedabad","label":{"Urdu":"سعید آباد","Roman Urdu":"Saeedabad","English":"Saeedabad"}},{"province":"sindh","city":"karachi","town":"baldia","name":"muslim_mujahid_colony","label":{"Urdu":"مسلم مجاہد کالونی","Roman Urdu":"Muslim Mujahid Colony","English":"Muslim Mujahid Colony"}},{"province":"sindh","city":"karachi","town":"baldia","name":"muhajir_camp","label":{"Urdu":"مہاجر کیمپ","Roman Urdu":"Muhajir Camp","English":"Muhajir Camp"}},{"province":"sindh","city":"karachi","town":"baldia","name":"rasheedabad","label":{"Urdu":"رشید آباد","Roman Urdu":"Rasheedabad","English":"Rasheedabad"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"ibrahim_hyderi","label":{"Urdu":"ابراہیم حیدری","Roman Urdu":"Ibrahim Hyderi","English":"Ibrahim Hyderi"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"rehri","label":{"Urdu":"رہڑی","Roman Urdu":"Rehri","English":"Rehri"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"cattle_colony","label":{"Urdu":"کیٹل کالونی","Roman Urdu":"Cattle Colony","English":"Cattle Colony"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"qaidabad","label":{"Urdu":"قائدآباد","Roman Urdu":"Qaidabad","English":"Qaidabad"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"landhi_colony","label":{"Urdu":"لانڈھی کالونی","Roman Urdu":"Landhi Colony","English":"Landhi Colony"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"gulshan_e_hadeed","label":{"Urdu":"گلشن حدید","Roman Urdu":"Gulshan-e-Hadeed","English":"Gulshan-e-Hadeed"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"gaghar","label":{"Urdu":"گگر","Roman Urdu":"Gaghar","English":"Gaghar"}},{"province":"sindh","city":"karachi","town":"gadap","name":"murad_memon_goth","label":{"Urdu":"مراد میمن گوٹھ","Roman Urdu":"Murad Memon Goth","English":"Murad Memon Goth"}},{"province":"sindh","city":"karachi","town":"gadap","name":"darsano_chana","label":{"Urdu":"درشانو شنو","Roman Urdu":"Darsano Chana","English":"Darsano Chana"}},{"province":"sindh","city":"karachi","town":"gadap","name":"gujro","label":{"Urdu":"گجرو","Roman Urdu":"Gujro","English":"Gujro"}},{"province":"sindh","city":"karachi","town":"gadap","name":"songal","label":{"Urdu":"سنگل","Roman Urdu":"Songal","English":"Songal"}},{"province":"sindh","city":"karachi","town":"gadap","name":"maymarabad","label":{"Urdu":"معمار آباد","Roman Urdu":"Maymarabad","English":"Maymarabad"}},{"province":"sindh","city":"karachi","town":"gadap","name":"yousuf_goth","label":{"Urdu":"یوسف گوٹھ","Roman Urdu":"Yousuf Goth","English":"Yousuf Goth"}},{"province":"sindh","city":"karachi","town":"gadap","name":"manghopir","label":{"Urdu":"منگھوپیر","Roman Urdu":"Manghopir","English":"Manghopir"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"azizabad","label":{"Urdu":"عزیز آباد","Roman Urdu":"Azizabad","English":"Azizabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"karimabad","label":{"Urdu":"کریم آباد","Roman Urdu":"Karimabad","English":"Karimabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"aisha_manzil","label":{"Urdu":"عائشہ منزل","Roman Urdu":"Aisha Manzil","English":"Aisha Manzil"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"ancholi","label":{"Urdu":"انچولی","Roman Urdu":"Ancholi","English":"Ancholi"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"naseerabad","label":{"Urdu":"نصیرآباد","Roman Urdu":"Naseerabad","English":"Naseerabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"yaseenabad","label":{"Urdu":"یاسین آباد","Roman Urdu":"Yaseenabad","English":"Yaseenabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"water_pump","label":{"Urdu":"واٹرپمپ","Roman Urdu":"Water Pump","English":"Water Pump"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"shafiq_mill_colony","label":{"Urdu":"شفیق مل کالونی","Roman Urdu":"Shafiq Mill Colony","English":"Shafiq Mill Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"delhi_mercantile_society","label":{"Urdu":"دہلی مرچنٹائل سوسائٹی","Roman Urdu":"Delhi Mercantile Society","English":"Delhi Mercantile Society"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"civic_centre","label":{"Urdu":"سوک سینٹر","Roman Urdu":"Civic Centre","English":"Civic Centre"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"pir_ilahi_buksh_colony","label":{"Urdu":"پیر الہی بخش کالونی","Roman Urdu":"Pir Ilahi Buksh Colony","English":"Pir Ilahi Buksh Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"essa_nagri","label":{"Urdu":"عیسی نگری","Roman Urdu":"Essa Nagri","English":"Essa Nagri"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gulshan_e_iqbal","label":{"Urdu":"گلشن اقبال","Roman Urdu":"Gulshan-e-Iqbal","English":"Gulshan-e-Iqbal"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gillani_railway_station","label":{"Urdu":"گیلانی ریلوے اسٹیشن","Roman Urdu":"Gillani Railway Station","English":"Gillani Railway Station"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"shanti_nagar","label":{"Urdu":"شانتی نگر","Roman Urdu":"Shanti Nagar","English":"Shanti Nagar"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"jamali_colony","label":{"Urdu":"جمالی کالونی","Roman Urdu":"Jamali Colony","English":"Jamali Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gulshan_e_iqbal_ii","label":{"Urdu":"گلشن اقبال 2","Roman Urdu":"Gulshan-e-Iqbal II","English":"Gulshan-e-Iqbal II"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"pehlwan_goth","label":{"Urdu":"پہلوان گوٹھ","Roman Urdu":"Pehlwan Goth","English":"Pehlwan Goth"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"matrovil_colony","label":{"Urdu":"میٹروویل کالونی","Roman Urdu":"Matrovil Colony","English":"Matrovil Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gulzar_e_hijri","label":{"Urdu":"گلزار ہجری","Roman Urdu":"Gulzar-e-Hijri","English":"Gulzar-e-Hijri"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"safooran_goth","label":{"Urdu":"صفورا گوٹھ","Roman Urdu":"Safooran Goth","English":"Safooran Goth"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"akhtar_colony","label":{"Urdu":"اختر کالونی","Roman Urdu":"Akhtar Colony","English":"Akhtar Colony"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"manzoor_colony","label":{"Urdu":"منظور کالونی","Roman Urdu":"Manzoor Colony","English":"Manzoor Colony"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"azam_basti","label":{"Urdu":"اعظم بستی","Roman Urdu":"Azam Basti","English":"Azam Basti"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"chanesar_goth","label":{"Urdu":"چنیسر گوٹھ","Roman Urdu":"Chanesar Goth","English":"Chanesar Goth"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"mahmudabad","label":{"Urdu":"محمودآباد","Roman Urdu":"Mahmudabad","English":"Mahmudabad"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"pechs","label":{"Urdu":"پی۔ای۔سی۔ایچ۔ایس","Roman Urdu":"P.E.C.H.S.","English":"P.E.C.H.S."}},{"province":"sindh","city":"karachi","town":"jamshed","name":"pechs_ii","label":{"Urdu":"پی۔ای۔سی۔ایچ۔ایس 2","Roman Urdu":"P.E.C.H.S. II","English":"P.E.C.H.S. II"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"jut_line","label":{"Urdu":"جٹ لائن","Roman Urdu":"Jut Line","English":"Jut Line"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"central_jacob_lines","label":{"Urdu":"سینٹرل جیکب لائن","Roman Urdu":"Central Jacob Lines","English":"Central Jacob Lines"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"jamshed_quarters","label":{"Urdu":"جمشید کوارٹر","Roman Urdu":"Jamshed Quarters","English":"Jamshed Quarters"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"garden_east","label":{"Urdu":"گارڈن ایسٹ","Roman Urdu":"Garden East","English":"Garden East"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"soldier_bazar","label":{"Urdu":"سولجر بازار","Roman Urdu":"Soldier Bazar","English":"Soldier Bazar"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"pakistan_quarters","label":{"Urdu":"پاکستان کوارٹر","Roman Urdu":"Pakistan Quarters","English":"Pakistan Quarters"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"bhutta_village","label":{"Urdu":"بھٹا ولیج","Roman Urdu":"Bhutta Village","English":"Bhutta Village"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"sultanabad","label":{"Urdu":"سلطان آباد","Roman Urdu":"Sultanabad","English":"Sultanabad"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"kiamari_uc","label":{"Urdu":"کیماری یوسی","Roman Urdu":"Kiamari UC","English":"Kiamari UC"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"baba_bhit","label":{"Urdu":"بابا بھٹ","Roman Urdu":"Baba Bhit","English":"Baba Bhit"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"machar_colony","label":{"Urdu":"مچھر کالونی","Roman Urdu":"Machar Colony","English":"Machar Colony"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"maripur","label":{"Urdu":"ماڑی پور","Roman Urdu":"Maripur","English":"Maripur"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"shershah","label":{"Urdu":"شیرشاہ","Roman Urdu":"SherShah","English":"SherShah"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"gabo_pat","label":{"Urdu":"گابو پٹ","Roman Urdu":"Gabo Pat","English":"Gabo Pat"}},{"province":"sindh","city":"karachi","town":"landhi","name":"muzafarabad","label":{"Urdu":"مظفرآباد","Roman Urdu":"Muzafarabad","English":"Muzafarabad"}},{"province":"sindh","city":"karachi","town":"landhi","name":"muslimabad","label":{"Urdu":"مسلم آباد","Roman Urdu":"Muslimabad","English":"Muslimabad"}},{"province":"sindh","city":"karachi","town":"landhi","name":"dawood_chowrangi","label":{"Urdu":"داوَد چورنگی","Roman Urdu":"Dawood Chowrangi","English":"Dawood Chowrangi"}},{"province":"sindh","city":"karachi","town":"landhi","name":"moinabad","label":{"Urdu":"معین آباد","Roman Urdu":"Moinabad","English":"Moinabad"}},{"province":"sindh","city":"karachi","town":"landhi","name":"sharafi_goth","label":{"Urdu":"شرافی گوٹھ","Roman Urdu":"Sharafi Goth","English":"Sharafi Goth"}},{"province":"sindh","city":"karachi","town":"landhi","name":"bhutto_nagar","label":{"Urdu":"بھٹو نگر","Roman Urdu":"Bhutto Nagar","English":"Bhutto Nagar"}},{"province":"sindh","city":"karachi","town":"landhi","name":"khawaja_ajmeer_colony","label":{"Urdu":"خواجہ اجمیر کالونی","Roman Urdu":"Khawaja Ajmeer Colony","English":"Khawaja Ajmeer Colony"}},{"province":"sindh","city":"karachi","town":"landhi","name":"landhi_uc","label":{"Urdu":"لانڈھی یوسی","Roman Urdu":"Landhi UC","English":"Landhi UC"}},{"province":"sindh","city":"karachi","town":"landhi","name":"awami_colony","label":{"Urdu":"عوامی کالونی","Roman Urdu":"Awami Colony","English":"Awami Colony"}},{"province":"sindh","city":"karachi","town":"landhi","name":"burmee_colony","label":{"Urdu":"برمی کالونی","Roman Urdu":"Burmee Colony","English":"Burmee Colony"}},{"province":"sindh","city":"karachi","town":"landhi","name":"korangi_uc","label":{"Urdu":"کورنگی یوسی","Roman Urdu":"Korangi UC","English":"Korangi UC"}},{"province":"sindh","city":"karachi","town":"landhi","name":"sherabad","label":{"Urdu":"شیرآباد","Roman Urdu":"Sherabad","English":"Sherabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"rizvia_society","label":{"Urdu":"رضویہ سوسائٹی","Roman Urdu":"Rizvia Society","English":"Rizvia Society"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"firdous_colony","label":{"Urdu":"فردوس کالونی","Roman Urdu":"Firdous Colony","English":"Firdous Colony"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"super_market","label":{"Urdu":"سپر مارکیٹ","Roman Urdu":"Super Market","English":"Super Market"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"dak_khana","label":{"Urdu":"دک کھانہ","Roman Urdu":"Dak Khana","English":"Dak Khana"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"qasimabad","label":{"Urdu":"قاسم آباد","Roman Urdu":"Qasimabad","English":"Qasimabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"bandhani_colony","label":{"Urdu":"بندھانی کالونی","Roman Urdu":"Bandhani Colony","English":"Bandhani Colony"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"sharifabad","label":{"Urdu":"شریف آباد","Roman Urdu":"Sharifabad","English":"Sharifabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"commercial_area","label":{"Urdu":"کمرشل ایریا","Roman Urdu":"Commercial Area","English":"Commercial Area"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"mujahid_colony","label":{"Urdu":"مجاہد کالونی","Roman Urdu":"Mujahid Colony","English":"Mujahid Colony"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"nazimabad","label":{"Urdu":"ناظم آباد","Roman Urdu":"Nazimabad","English":"Nazimabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"abbasi_shaheed","label":{"Urdu":"عباسی شہید","Roman Urdu":"Abbasi Shaheed","English":"Abbasi Shaheed"}},{"province":"sindh","city":"karachi","town":"lyari","name":"agra_taj_colony","label":{"Urdu":"آگرہ تاج کالونی","Roman Urdu":"Agra Taj Colony","English":"Agra Taj Colony"}},{"province":"sindh","city":"karachi","town":"lyari","name":"daryaabad","label":{"Urdu":"دریاآباد","Roman Urdu":"Daryaabad","English":"Daryaabad"}},{"province":"sindh","city":"karachi","town":"lyari","name":"nawabad","label":{"Urdu":"نواآباد","Roman Urdu":"Nawabad","English":"Nawabad"}},{"province":"sindh","city":"karachi","town":"lyari","name":"khada_memon_society","label":{"Urdu":"خدا- میمن- سوساَٹی","Roman Urdu":"Khada Memon Society","English":"Khada Memon Society"}},{"province":"sindh","city":"karachi","town":"lyari","name":"baghdadi","label":{"Urdu":"بغدادی","Roman Urdu":"Baghdadi","English":"Baghdadi"}},{"province":"sindh","city":"karachi","town":"lyari","name":"shah_baig_line","label":{"Urdu":"شاھ باغ لائن","Roman Urdu":"Shah Baig Line","English":"Shah Baig Line"}},{"province":"sindh","city":"karachi","town":"lyari","name":"bihar_colony","label":{"Urdu":"بہار کالونی","Roman Urdu":"Bihar Colony","English":"Bihar Colony"}},{"province":"sindh","city":"karachi","town":"lyari","name":"ragiwara","label":{"Urdu":"راگی واڑا","Roman Urdu":"Ragiwara","English":"Ragiwara"}},{"province":"sindh","city":"karachi","town":"lyari","name":"singo_line","label":{"Urdu":"سنگولائن","Roman Urdu":"Singo Line","English":"Singo Line"}},{"province":"sindh","city":"karachi","town":"lyari","name":"chakiwara","label":{"Urdu":"چاکی واڑا","Roman Urdu":"Chakiwara","English":"Chakiwara"}},{"province":"sindh","city":"karachi","town":"lyari","name":"allama_iqbal_colony","label":{"Urdu":"علامہ اقبال کالونی","Roman Urdu":"Allama Iqbal Colony","English":"Allama Iqbal Colony"}},{"province":"sindh","city":"karachi","town":"malir","name":"model_colony","label":{"Urdu":"موڈل کالونی","Roman Urdu":"Model Colony","English":"Model Colony"}},{"province":"sindh","city":"karachi","town":"malir","name":"kala_board","label":{"Urdu":"کالا بورڈ","Roman Urdu":"Kala Board","English":"Kala Board"}},{"province":"sindh","city":"karachi","town":"malir","name":"saudabad","label":{"Urdu":"سعودآباد","Roman Urdu":"Saudabad","English":"Saudabad"}},{"province":"sindh","city":"karachi","town":"malir","name":"khokhra_par","label":{"Urdu":"کھوکھرا پار","Roman Urdu":"Khokhra Par","English":"Khokhra Par"}},{"province":"sindh","city":"karachi","town":"malir","name":"jafar_e_tayyar","label":{"Urdu":"جعفر تیار","Roman Urdu":"Jafar-e-Tayyar","English":"Jafar-e-Tayyar"}},{"province":"sindh","city":"karachi","town":"malir","name":"gharibabad","label":{"Urdu":"غریب آباد","Roman Urdu":"Gharibabad","English":"Gharibabad"}},{"province":"sindh","city":"karachi","town":"malir","name":"ghazi_brohi_goth","label":{"Urdu":"غازی بروہی گوٹھ","Roman Urdu":"Ghazi Brohi Goth","English":"Ghazi Brohi Goth"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"kalyana","label":{"Urdu":"کالیانہ","Roman Urdu":"Kalyana","English":"Kalyana"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"sir_syed_colony","label":{"Urdu":"سر سید کالونی","Roman Urdu":"Sir Syed Colony","English":"Sir Syed Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"fatima_jinnah_colony","label":{"Urdu":"فاطمہ جناح کالونی","Roman Urdu":"Fatima Jinnah Colony","English":"Fatima Jinnah Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"godhra","label":{"Urdu":"گودھرا","Roman Urdu":"Godhra","English":"Godhra"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"abu_zar_ghaffari","label":{"Urdu":"ابو زر غفاری","Roman Urdu":"Abu Zar Ghaffari","English":"Abu Zar Ghaffari"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"hakim_ahsan","label":{"Urdu":"حاکم احسان","Roman Urdu":"Hakim Ahsan","English":"Hakim Ahsan"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"madina_colony","label":{"Urdu":"مدینہ کالونی","Roman Urdu":"Madina Colony","English":"Madina Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"faisal_colony","label":{"Urdu":"فیصل کالونی","Roman Urdu":"Faisal Colony","English":"Faisal Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"khamiso_goth","label":{"Urdu":"خمیسو گوٹھ","Roman Urdu":"Khamiso Goth","English":"Khamiso Goth"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"mustufa_colony","label":{"Urdu":"مصطفی کالونی","Roman Urdu":"Mustufa Colony","English":"Mustufa Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"khawaja_ajmeer_nagri","label":{"Urdu":"خواجہ اجمیر نگری","Roman Urdu":"Khawaja Ajmeer Nagri","English":"Khawaja Ajmeer Nagri"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"gulshan_e_saeed","label":{"Urdu":"گلشن سعید","Roman Urdu":"Gulshan-e-Saeed","English":"Gulshan-e-Saeed"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"shah_nawaz_bhutto_colony","label":{"Urdu":"شاہ نواز بھٹو کالونی","Roman Urdu":"Shah Nawaz Bhutto Colony","English":"Shah Nawaz Bhutto Colony"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"paposh_nagar","label":{"Urdu":"پاپوش نگر","Roman Urdu":"Paposh Nagar","English":"Paposh Nagar"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"pahar_ganj","label":{"Urdu":"پہاڑ گنج","Roman Urdu":"Pahar Ganj","English":"Pahar Ganj"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"khandu_goth","label":{"Urdu":"کھنڑو گوٹھ","Roman Urdu":"Khandu Goth","English":"Khandu Goth"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"hyderi","label":{"Urdu":"حیدری","Roman Urdu":"Hyderi","English":"Hyderi"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"sakhi_hassan","label":{"Urdu":"سخی حسن","Roman Urdu":"Sakhi Hassan","English":"Sakhi Hassan"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"farooq_e_azam","label":{"Urdu":"فاروق اعظم","Roman Urdu":"Farooq-e-Azam","English":"Farooq-e-Azam"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"nusrat_bhutto_colony","label":{"Urdu":"نصرت بھٹو کالونی","Roman Urdu":"Nusrat Bhutto Colony","English":"Nusrat Bhutto Colony"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"shadman_town","label":{"Urdu":"شادمان ٹاوَن","Roman Urdu":"Shadman Town","English":"Shadman Town"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"buffer_zone","label":{"Urdu":"بفرزون","Roman Urdu":"Buffer Zone","English":"Buffer Zone"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"buffer_zone_ii","label":{"Urdu":"بفرزون 2","Roman Urdu":"Buffer Zone II","English":"Buffer Zone II"}},{"province":"sindh","city":"karachi","town":"orangi","name":"mominabad","label":{"Urdu":"مومن آباد","Roman Urdu":"Mominabad","English":"Mominabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"haryana_colony","label":{"Urdu":"حریانہ کالونی","Roman Urdu":"Haryana Colony","English":"Haryana Colony"}},{"province":"sindh","city":"karachi","town":"orangi","name":"hanifabad","label":{"Urdu":"حنیف آباد","Roman Urdu":"Hanifabad","English":"Hanifabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"mohammad_nagar","label":{"Urdu":"محمد نگر","Roman Urdu":"Mohammad Nagar","English":"Mohammad Nagar"}},{"province":"sindh","city":"karachi","town":"orangi","name":"madina_colony_orangi","label":{"Urdu":"مدینہ کالونی اورنگی","Roman Urdu":"Madina Colony Orangi","English":"Madina Colony Orangi"}},{"province":"sindh","city":"karachi","town":"orangi","name":"ghaziabad","label":{"Urdu":"غازی آباد","Roman Urdu":"Ghaziabad","English":"Ghaziabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"chisti_nagar","label":{"Urdu":"چشتی نگر","Roman Urdu":"Chisti Nagar","English":"Chisti Nagar"}},{"province":"sindh","city":"karachi","town":"orangi","name":"bilal_colony_orangi","label":{"Urdu":"بلال کالونی اورنگی","Roman Urdu":"Bilal Colony Orangi","English":"Bilal Colony Orangi"}},{"province":"sindh","city":"karachi","town":"orangi","name":"iqbal_baloch_colony","label":{"Urdu":"اقبال بلوچ کالونی","Roman Urdu":"Iqbal Baloch Colony","English":"Iqbal Baloch Colony"}},{"province":"sindh","city":"karachi","town":"orangi","name":"ghabool_town","label":{"Urdu":"گبول ٹاوَن","Roman Urdu":"Ghabool Town","English":"Ghabool Town"}},{"province":"sindh","city":"karachi","town":"orangi","name":"data_nagar","label":{"Urdu":"داتا نگر","Roman Urdu":"Data Nagar","English":"Data Nagar"}},{"province":"sindh","city":"karachi","town":"orangi","name":"mujahidabad","label":{"Urdu":"مجاہد آباد","Roman Urdu":"Mujahidabad","English":"Mujahidabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"baloch_goth","label":{"Urdu":"بلوچ گوٹھ","Roman Urdu":"Baloch Goth","English":"Baloch Goth"}},{"province":"sindh","city":"karachi","town":"saddar","name":"old_haji_camp","label":{"Urdu":"پرانہ حاجی کیمپ","Roman Urdu":"Old Haji Camp","English":"Old Haji Camp"}},{"province":"sindh","city":"karachi","town":"saddar","name":"garden","label":{"Urdu":"گارڈن","Roman Urdu":"Garden","English":"Garden"}},{"province":"sindh","city":"karachi","town":"saddar","name":"kharadar","label":{"Urdu":"کھارادر","Roman Urdu":"Kharadar","English":"Kharadar"}},{"province":"sindh","city":"karachi","town":"saddar","name":"city_railway_colony","label":{"Urdu":"سٹی ریلوے کالونی","Roman Urdu":"City Railway Colony","English":"City Railway Colony"}},{"province":"sindh","city":"karachi","town":"saddar","name":"nanak_wara","label":{"Urdu":"ناناک واڑا","Roman Urdu":"Nanak Wara","English":"Nanak Wara"}},{"province":"sindh","city":"karachi","town":"saddar","name":"gazdarabad","label":{"Urdu":"گزدرآباد","Roman Urdu":"Gazdarabad","English":"Gazdarabad"}},{"province":"sindh","city":"karachi","town":"saddar","name":"millat_nagar_islam_pura","label":{"Urdu":"ملت نگر اسلام پورا","Roman Urdu":"Millat Nagar/Islam Pura","English":"Millat Nagar/Islam Pura"}},{"province":"sindh","city":"karachi","town":"saddar","name":"saddar_uc","label":{"Urdu":"صدر یو سی","Roman Urdu":"Saddar UC","English":"Saddar UC"}},{"province":"sindh","city":"karachi","town":"saddar","name":"civil_line","label":{"Urdu":"سول لائن","Roman Urdu":"Civil Line","English":"Civil Line"}},{"province":"sindh","city":"karachi","town":"saddar","name":"clifton","label":{"Urdu":"کلفٹن","Roman Urdu":"Clifton","English":"Clifton"}},{"province":"sindh","city":"karachi","town":"saddar","name":"kehkashan","label":{"Urdu":"کہکشان","Roman Urdu":"Kehkashan","English":"Kehkashan"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"natha_khan_goth","label":{"Urdu":"ناتھا خان گوٹھ","Roman Urdu":"Natha Khan Goth","English":"Natha Khan Goth"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"pak_sadat_colony","label":{"Urdu":"پاک صدر کالونی","Roman Urdu":"Pak Sadat Colony","English":"Pak Sadat Colony"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"drigh_colony","label":{"Urdu":"ڈرگ کالونی","Roman Urdu":"Drigh Colony","English":"Drigh Colony"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"raita_plot","label":{"Urdu":"رائتا پلاٹ","Roman Urdu":"Raita Plot","English":"Raita Plot"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"moria_khan_goth","label":{"Urdu":"موریا خان گوٹھ","Roman Urdu":"Moria Khan Goth","English":"Moria Khan Goth"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"rafa_e_aam_society","label":{"Urdu":"رفا عام سوسا ئٹی","Roman Urdu":"Rafa-e-Aam Society","English":"Rafa-e-Aam Society"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"al_falah_society","label":{"Urdu":"الفلاح سوسا ئٹی","Roman Urdu":"Al-Falah Society","English":"Al-Falah Society"}},{"province":"sindh","city":"karachi","town":"site","name":"pak_colony","label":{"Urdu":"پاک کالونی","Roman Urdu":"Pak Colony","English":"Pak Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"old_golimar","label":{"Urdu":"پرانہ گولی مار","Roman Urdu":"Old Golimar","English":"Old Golimar"}},{"province":"sindh","city":"karachi","town":"site","name":"jahanabad","label":{"Urdu":"جہان آباد","Roman Urdu":"Jahanabad","English":"Jahanabad"}},{"province":"sindh","city":"karachi","town":"site","name":"metrovil","label":{"Urdu":"میٹروویل","Roman Urdu":"Metrovil","English":"Metrovil"}},{"province":"sindh","city":"karachi","town":"site","name":"bhawani_chali","label":{"Urdu":"بہوانی چالی","Roman Urdu":"Bhawani Chali","English":"Bhawani Chali"}},{"province":"sindh","city":"karachi","town":"site","name":"frontier_colony","label":{"Urdu":"فرونٹر کالونی","Roman Urdu":"Frontier Colony","English":"Frontier Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"banaras_colony","label":{"Urdu":"بنارس کالونی","Roman Urdu":"Banaras Colony","English":"Banaras Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"qasba_colony","label":{"Urdu":"قصبہ کالونی","Roman Urdu":"Qasba Colony","English":"Qasba Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"islamia_colony","label":{"Urdu":"اسلامیہ کالونی","Roman Urdu":"Islamia Colony","English":"Islamia Colony"}},{"province":"na","city":"na","town":"na","name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}},{"province":"na","city":"na","town":"na","name":"not_applicable","label":{"Urdu":"قابل اطلاق نہیں","Roman Urdu":"Qaabil-e-atlaaq nahi","English":"Not Applicable"}}],"gender":[{"instance":{"openmrs_code":"1534AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"male","label":{"Urdu":"مرد/ لڑکا","Roman Urdu":"Mard/larka","English":"Male"}},{"instance":{"openmrs_code":"1535AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"female","label":{"Urdu":"عورت/لڑکی","Roman Urdu":"Aurat/larki","English":"Female"}},{"instance":{"openmrs_code":"163163AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"transgender","label":{"Urdu":"خواجہ سرہ","Roman Urdu":"Khwaja sira","English":"Transgender"}}],"vaccines":[{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT1","label":{"Urdu":"ٹی ٹی 1","Roman Urdu":"TT1","English":"TT1"}},{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT2","label":{"Urdu":"ٹی ٹی 2","Roman Urdu":"TT2","English":"TT2"}},{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT3","label":{"Urdu":"ٹی ٹی 3","Roman Urdu":"TT3","English":"TT3"}},{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT4","label":{"Urdu":"ٹی ٹی 4","Roman Urdu":"TT4","English":"TT4"}},{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT5","label":{"Urdu":"ٹی ٹی 5","Roman Urdu":"TT5","English":"TT5"}}],"towns":[{"province":"sindh","city":"karachi","name":"korangi","label":{"Urdu":"کورنگی","Roman Urdu":"Korangi","English":"Korangi"}},{"province":"sindh","city":"karachi","name":"landhi","label":{"Urdu":"لانڈھی","Roman Urdu":"Landhi","English":"Landhi"}},{"province":"sindh","city":"karachi","name":"baldia","label":{"Urdu":"بلدیہ","Roman Urdu":"Baldia","English":"Baldia"}},{"province":"sindh","city":"karachi","name":"bin_qasim","label":{"Urdu":"بن قاسم","Roman Urdu":"Bin Qasim","English":"Bin Qasim"}},{"province":"sindh","city":"karachi","name":"gadap","label":{"Urdu":"گڈاپ","Roman Urdu":"Gadap","English":"Gadap"}},{"province":"sindh","city":"karachi","name":"gulberg","label":{"Urdu":"گلبرگ","Roman Urdu":"Gulberg","English":"Gulberg"}},{"province":"sindh","city":"karachi","name":"gulshan","label":{"Urdu":"گلشن","Roman Urdu":"Gulshan","English":"Gulshan"}},{"province":"sindh","city":"karachi","name":"jamshed","label":{"Urdu":"جمشید","Roman Urdu":"Jamshed","English":"Jamshed"}},{"province":"sindh","city":"karachi","name":"kiamari","label":{"Urdu":"کیماری","Roman Urdu":"Kiamari","English":"Kiamari"}},{"province":"sindh","city":"karachi","name":"liaquatabad","label":{"Urdu":"لیاقت آباد","Roman Urdu":"Liaquatabad","English":"Liaquatabad"}},{"province":"sindh","city":"karachi","name":"lyari","label":{"Urdu":"لیاری","Roman Urdu":"Lyari","English":"Lyari"}},{"province":"sindh","city":"karachi","name":"malir","label":{"Urdu":"ملیر","Roman Urdu":"Malir","English":"Malir"}},{"province":"sindh","city":"karachi","name":"new_karachi","label":{"Urdu":"نیو کراچی","Roman Urdu":"New Karachi","English":"New Karachi"}},{"province":"sindh","city":"karachi","name":"north_nazimabad","label":{"Urdu":"نارتھ ناظم آباد","Roman Urdu":"North Nazimabad","English":"North Nazimabad"}},{"province":"sindh","city":"karachi","name":"orangi","label":{"Urdu":"اورنگی","Roman Urdu":"Orangi","English":"Orangi"}},{"province":"sindh","city":"karachi","name":"saddar","label":{"Urdu":"صدر","Roman Urdu":"Saddar","English":"Saddar"}},{"province":"sindh","city":"karachi","name":"shah_faisal","label":{"Urdu":"شاہ فیصل","Roman Urdu":"Shah Faisal","English":"Shah Faisal"}},{"province":"sindh","city":"karachi","name":"site","label":{"Urdu":"سائٹ","Roman Urdu":"S.I.T.E.","English":"S.I.T.E."}},{"province":"na","city":"na","name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}},{"province":"na","city":"na","name":"not_applicable","label":{"Urdu":"قابل اطلاق نہیں","Roman Urdu":"Qaabil-e-atlaaq nahi","English":"Not Applicable"}}],"cities":[{"province":"sindh","name":"karachi","label":{"Urdu":"کراچی","Roman Urdu":"Karachi","English":"Karachi"}},{"province":"punjab","name":"hafizabad","label":{"Urdu":"حافظ آباد","Roman Urdu":"Hafizabad","English":"Hafizabad"}},{"province":"punjab","name":"muzaffargarh","label":{"Urdu":"مظفر گڑھ","Roman Urdu":"Muzaffargarh","English":"Muzaffargarh"}},{"province":"na","name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}},{"province":"na","name":"not_applicable","label":{"Urdu":"قابل اطلاق نہیں","Roman Urdu":"Not Applicable","English":"Not Applicable"}}],"edd_lmp":[{"instance":{"openmrs_code":"5596AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"edd","label":{"Urdu":"زچگی کی متوقع تاریخ","Roman Urdu":"EDD","English":"EDD"}},{"instance":{"openmrs_code":"1427AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"lmp","label":{"Urdu":"پچھلی مہواری کی تاریخ","Roman Urdu":"LMP","English":"LMP"}},{"instance":{"openmrs_code":"159617AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ultrasound","label":{"Urdu":"الٹرا سائونڈ","Roman Urdu":"Ultrasound","English":"Ultrasound"}},{"instance":{"openmrs_code":"1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"none","label":{"Urdu":"کوئی بھی نہیں","Roman Urdu":"Koi bhi nahi","English":"None of the above"}}],"yes_no":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}]},"instance":{"encounter_type":"Off Site Woman Follow Up"},"version":"201604260935","id_string":"offsite_woman_followup_form","type":"survey","children":[{"type":"hidden","name":"provider_uc"},{"type":"hidden","name":"provider_town"},{"type":"hidden","name":"provider_city"},{"type":"hidden","name":"provider_province"},{"type":"hidden","name":"existing_landmark"},{"type":"hidden","name":"existing_address1"},{"type":"hidden","name":"existing_union_council"},{"type":"hidden","name":"existing_town"},{"type":"hidden","name":"existing_city_village"},{"type":"hidden","name":"existing_province"},{"type":"hidden","name":"existing_union_councilname"},{"type":"hidden","name":"existing_townname"},{"type":"hidden","name":"existing_city_villagename"},{"type":"hidden","name":"existing_provincename"},{"type":"hidden","name":"existing_first_name"},{"type":"hidden","name":"existing_last_name"},{"type":"hidden","name":"existing_father_name"},{"type":"hidden","name":"existing_husband_name"},{"type":"hidden","name":"existing_marriage"},{"type":"hidden","name":"existing_birth_date"},{"type":"hidden","name":"existing_gender"},{"type":"hidden","name":"existing_ethnicity"},{"type":"hidden","name":"existing_client_reg_date"},{"type":"hidden","name":"existing_program_client_id"},{"type":"hidden","name":"existing_epi_card_number"},{"type":"hidden","name":"existing_reminders_approval"},{"type":"hidden","name":"existing_contact_phone_number"},{"type":"hidden","name":"e_tt1"},{"type":"hidden","name":"e_tt2"},{"type":"hidden","name":"e_tt3"},{"type":"hidden","name":"e_tt4"},{"type":"hidden","name":"e_tt5"},{"type":"hidden","name":"provider_id"},{"instance":{"openmrs_entity_id":"location_id","openmrs_entity":"encounter"},"type":"hidden","name":"provider_location_id"},{"type":"hidden","name":"provider_location_name"},{"type":"note","name":"provider_location_note","label":{"Urdu":"شہر: ${provider_city} ; ٹائون: ${provider_town} ; یوسی: ${provider_uc} ; سینٹرکا نام: ${provider_location_name}","English":"City: ${provider_city} ; Town: ${provider_town} ; UC: ${provider_uc} ; Center Name: ${provider_location_name}"}},{"instance":{"openmrs_entity_id":"163137AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"start","name":"start"},{"instance":{"openmrs_entity_id":"163138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"end","name":"end"},{"instance":{"openmrs_entity_id":"163286AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"today","name":"today"},{"instance":{"openmrs_entity_id":"163149AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"deviceid","name":"deviceid"},{"instance":{"openmrs_entity_id":"163150AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"subscriberid","name":"subscriberid"},{"instance":{"openmrs_entity_id":"163151AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"simserial","name":"simserial"},{"instance":{"openmrs_entity_id":"163152AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"phonenumber","name":"phonenumber"},{"bind":{"required":"yes"},"type":"note","name":"client_reg_date_note","label":{"Urdu":"پروگرام میں اندراج کی تاریخ: ${existing_client_reg_date}","Roman Urdu":"Program mai andraj ki tareekh: ${existing_client_reg_date}","English":"Program Registration date: ${existing_client_reg_date}"}},{"bind":{"required":"yes"},"type":"note","name":"program_client_id_note","label":{"Urdu":"پروگرام آئی ڈی: ${existing_program_client_id}","Roman Urdu":"Program ID: ${existing_program_client_id}","English":"Program ID: ${existing_program_client_id}"}},{"bind":{"jr:constraintMsg":{"Urdu":"نمبر آٹھ ہندسوں پر مشتمل ہونا چاہئے","English":"Number should be 8 digits","Roman Urdu":"Number 8 hindason par mushtamil hona chahiye"},"required":"yes","constraint":"string-length(.) = 8"},"type":"integer","instance":{"openmrs_entity_id":"EPI Card Number","openmrs_entity":"person_attribute"},"name":"epi_card_number","label":{"Urdu":"${existing_epi_card_number} :ای پی آئی کارڈ نمبر","English":"EPI Card Number: ${existing_epi_card_number}","Roman Urdu":"EPI Card Number: ${existing_epi_card_number}"}},{"bind":{"required":"yes"},"type":"note","name":"first_name_note","label":{"Urdu":"${existing_first_name} :نام","Roman Urdu":"Naam: ${existing_first_name}","English":"First Name: ${existing_first_name}"}},{"bind":{"required":"yes"},"type":"note","name":"last_name_note","label":{"Urdu":"والد کا نام: ${existing_last_name}","Roman Urdu":"Waalid ka naam: ${existing_last_name}","English":"Last name: ${existing_last_name}"}},{"bind":{"calculate":"date( today() - (${existing_birth_date} div 365.25))"},"type":"calculate","name":"client_age","instance":{"openmrs_entity_id":"154384AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"type":"note","name":"member_birth_date_note","label":{"Urdu":"کلائنٹ کی تاریخِ پیدائش: ${existing_birth_date} (${client_age}) سال","English":"Client birth date: ${existing_birth_date} (${client_age}) years","Roman Urdu":"Client ki tareekh-e-pedaaish: ${existing_birth_date} (${client_age}) years"}},{"bind":{"required":"yes"},"type":"note","name":"gender_note","label":{"Urdu":"${existing_gender} :جنس","Roman Urdu":"Jins:${existing_gender}","English":"Gender: ${existing_gender}"}},{"type":"note","name":"father_name_note","label":{"Urdu":"والد کا نام: ${existing_father_name}","English":"Father's Name: ${existing_father_name}","Roman Urdu":"Waalid ka naam: ${existing_father_name}"}},{"type":"note","name":"marriage_note","label":{"Urdu":"کیا آپ شادی شدہ ہیں: ${existing_marriage}","English":"Are you married: ${existing_marriage}","Roman Urdu":"Kya aap shaadi shuda hain: ${existing_marriage}"}},{"type":"note","name":"husband_name_note","label":{"Urdu":"شوہر کا نام: ${existing_husband_name}","English":"Husband's name: ${existing_husband_name}","Roman Urdu":"Shohar ka naam: ${existing_husband_name}"}},{"bind":{"required":"yes"},"type":"note","name":"ethnicity_note","label":{"Urdu":"قومیت: ${existing_ethnicity}","Roman Urdu":"Qomiat: ${existing_ethnicity}","English":"Ethnicity: ${existing_ethnicity}"}},{"type":"note","name":"address","label":{"Urdu":"موجودہ پتہ: ${existing_address1}, ${existing_landmark}, ${existing_union_councilname}, ${existing_townname}, ${existing_city_villagename}, ${existing_provincename}","English":"Current Address: ${existing_address1}, ${existing_landmark}, ${existing_union_councilname}, ${existing_townname}, ${existing_city_villagename}, ${existing_provincename}","Roman Urdu":"Mojooda Address: ${existing_address1}, ${existing_landmark}, ${existing_union_councilname}, ${existing_townname}, ${existing_city_villagename}, ${existing_provincename}"}},{"label":{"Urdu":"کیا آپ کا گھر کا پتہ بدلا ہے؟","English":"Has your home address changed?","Roman Urdu":"Kya aap ka ghar ka pata badla hai?"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}],"name":"address_change"},{"control":{"appearance":"minimal"},"name":"province","default":"${provider_province}","bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"label":{"Urdu":"صوبہ","Roman Urdu":"Suba","English":"Province"},"instance":{"openmrs_entity":"person_address","openmrs_entity_id":"stateProvince","openmrs_entity_parent":"usual_residence"},"type":"select one","children":[{"name":"kpk","label":{"Urdu":"خیبر پختون خواہ","English":"Khyber Pakhtunkhwa","Roman Urdu":"Khyber Pakhtunkhwa"}},{"name":"sindh","label":{"Urdu":"سندھ","English":"Sindh","Roman Urdu":"Sindh"}},{"name":"balochistan","label":{"Urdu":"بلوچستان","English":"Balochistan","Roman Urdu":"Balochistan"}},{"name":"punjab","label":{"Urdu":"پنجاب","English":"Punjab","Roman Urdu":"Punjab"}},{"name":"gilgit_baltistan","label":{"Urdu":"گلگت بلتستان","English":"Gilgit Baltistan","Roman Urdu":"Gilgit Baltistan"}},{"name":"kashmir","label":{"Urdu":"کشمیر","English":"Kashmir","Roman Urdu":"Kashmir"}},{"name":"fata","label":{"Urdu":"فاٹا","English":"FATA","Roman Urdu":"FATA"}},{"name":"out_of_country","label":{"Urdu":"ملک سے باہر","English":"Out of Country","Roman Urdu":"Mulk se baahir"}}]},{"control":{"appearance":"minimal"},"name":"city_village","choice_filter":"province=${province} or province='na'","default":"${provider_city}","bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"label":{"Urdu":"شہر","Roman Urdu":"Shehr","English":"City"},"itemset":"cities","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"cityVillage","openmrs_entity_parent":"usual_residence"},"type":"select one"},{"control":{"appearance":"minimal"},"name":"town","choice_filter":"(province=${province} and city=${city_village} ) or city='na'","bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"label":{"Urdu":"ٹاٰئون/ قصبہ/ بستی","Roman Urdu":"Town / Qasbah / Basti","English":"Town"},"itemset":"towns","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"town","openmrs_entity_parent":"usual_residence"},"type":"select one"},{"control":{"appearance":"minimal"},"name":"union_council","choice_filter":"(province=${province} and city=${city_village} and town=${town}) or town='na'","bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"label":{"Urdu":"یونین کونسل","Roman Urdu":"Union Council","English":"Union Council"},"itemset":"ucs","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"subTown","openmrs_entity_parent":"usual_residence"},"type":"select one"},{"bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"type":"text","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"address1","openmrs_entity_parent":"usual_residence"},"name":"address1","label":{"Urdu":"گھر کا پتہ","Roman Urdu":"Ghar ka pata","English":"Home Address"}},{"bind":{"relevant":"selected(${address_change}, 'yes')"},"type":"text","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"landmark","openmrs_entity_parent":"usual_residence"},"name":"landmark","label":{"Urdu":"گھر کے قریب کوئی مشہور جگہ","Roman Urdu":"Ghar ke qareeb koi mashoor jagah","English":"Land Mark"}},{"instance":{"openmrs_entity_id":"163277AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"geopoint","name":"center_gps","label":{"Urdu":"حاصل کردہ معلومات کی جگہ کے GPS کارڈینیٹس درج کریں","English":"Collect GPS coordinates of data entry location:","Roman Urdu":"Hasil karda malomaat ki jaga ke GPS coordinates darj karain"}},{"name":"reminders_approval","bind":{"required":"yes"},"label":{"Urdu":"کیا آپ اپنے اگلے دورے کی یاددہانی کے لیے SMS موصول کرنا چاہتی ہیں؟ ${existing_reminders_approval}","English":"Are you willing to receive SMS reminders for your next visit? ${existing_reminders_approval}","Roman Urdu":"Kya aap apnay aglay doray ki yaad-dihani ke liye SMS mausool karna chahti hain? ${existing_reminders_approval}"},"instance":{"openmrs_entity_id":"163089AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}]},{"bind":{"jr:constraintMsg":{"Urdu":"فون نمبر گیارہ ہندسوں پر مشتمل اور مندرجہ ذیل شکل میں ہونا چاہئے: *********03","English":"Phone number should be 11 digits in the following format: 03*********","Roman Urdu":"Phone number 11 hindason par mushtamil aur mundarja zail shakal main hona chahiey: 03*********"},"relevant":"${reminders_approval}='yes'","constraint":"regex(., '^03[0-9]{9}$')"},"type":"text","instance":{"openmrs_entity_id":"159635AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"contact_phone_number","label":{"Urdu":"موبائل نمبر: ${existing_contact_phone_number}","English":"Mobile Number: ${existing_contact_phone_number}","Roman Urdu":"Mobile Number: ${existing_contact_phone_number}"}},{"instance":{"openmrs_entity_id":"5272AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"label":{"Urdu":"کیا آپ حاملہ ہیں؟","English":"Are you pregnant?","Roman Urdu":"Kia aap haamla hain?"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}],"name":"pregnant"},{"name":"edd_lmp","bind":{"relevant":"selected (${pregnant}, 'yes')"},"label":{"Urdu":"کیا آپ کو اپنی پچھلی ماہواری کی تاریخ، زچگی کی متوقع تاریخ، یا الٹرا سائونڈ کا علم ہے؟","English":"Do you know your LMP, EDD or last Ultrasound information?","Roman Urdu":"Kya aap ko apni pichli mahwaari ki tareekh, zachgi ki mutawaqqa tareekh ya ultrasound ka ilm hai?"},"instance":{"openmrs_entity_id":"160697AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"5596AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"edd","label":{"Urdu":"زچگی کی متوقع تاریخ","Roman Urdu":"EDD","English":"EDD"}},{"instance":{"openmrs_code":"1427AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"lmp","label":{"Urdu":"پچھلی مہواری کی تاریخ","Roman Urdu":"LMP","English":"LMP"}},{"instance":{"openmrs_code":"159617AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ultrasound","label":{"Urdu":"الٹرا سائونڈ","Roman Urdu":"Ultrasound","English":"Ultrasound"}},{"instance":{"openmrs_code":"1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"none","label":{"Urdu":"کوئی بھی نہیں","Roman Urdu":"Koi bhi nahi","English":"None of the above"}}]},{"bind":{"jr:constraintMsg":{"Urdu":"زچگی کی متوقع تاریخ ماضی کی نہیں ہو سکتی","Roman Urdu":"Zachgi ki mutawaqqa tareekh maazi ki nahi hosakti","English":"EDD cannot be in the past"},"relevant":"selected (${edd_lmp}, 'edd')","constraint":".>=${today}"},"type":"date","name":"edd","label":{"Urdu":"زچگی کی متوقع تاریخ","Roman Urdu":"Zachgi ki mutawaqqa tareekh","English":"EDD"}},{"bind":{"jr:constraintMsg":{"Urdu":"پچھلی ماہواری کی تاریخ مستقبل کی نہیں ہوسکتی","Roman Urdu":"Pichli mahwaari ki tareekh mustaqbil ki nahi hosakti","English":"LMP cannot be in the future"},"relevant":"selected (${edd_lmp}, 'lmp')","constraint":".<=${today}"},"type":"date","name":"lmp","label":{"Urdu":"پچھلی ماہواری کی تاریخ","Roman Urdu":"Pichli mahwaari ki tareekh","English":"LMP"}},{"bind":{"relevant":"selected (${edd_lmp}, 'ultrasound')"},"type":"date","instance":{"openmrs_entity_id":"163165AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"ultrasound_date","label":{"Urdu":"الٹرا سائونڈ کی تاریخ","English":"Ultrasound Date","Roman Urdu":"Ultrasound ki tareekh"}},{"bind":{"relevant":"selected (${edd_lmp}, 'ultrasound')"},"type":"integer","name":"ultrasound_weeks","label":{"Urdu":"الٹرا سائونڈ کی مدد سے حمل کی مدت [ہفتوں میں]","Roman Urdu":"Ultrasound ki madad se hamal ki muddat (hafton me)","English":"Gestational age determined by ultrasound"}},{"bind":{"calculate":"date(${lmp}+280)"},"type":"calculate","name":"edd_calc_lmp"},{"bind":{"calculate":"date((280-(${ultrasound_weeks}*7)+${ultrasound_date} ))"},"type":"calculate","name":"edd_calc_ultrasound"},{"bind":{"calculate":"format-date(${edd_calc_lmp}, '%Y-%n-%e')"},"type":"calculate","name":"edd_calc_lmp_formatted"},{"bind":{"calculate":"format-date(${edd_calc_ultrasound}, '%Y-%n-%e')"},"type":"calculate","name":"edd_calc_ultrasound_formatted"},{"bind":{"calculate":"date(${edd}-280)"},"type":"calculate","name":"lmp_calc_edd"},{"bind":{"calculate":"date(${ultrasound_date}-(${ultrasound_weeks}*7))"},"type":"calculate","name":"lmp_calc_ultrasound"},{"bind":{"calculate":"format-date(${lmp_calc_edd}, '%Y-%n-%e')"},"type":"calculate","name":"lmp_calc_edd_formatted"},{"bind":{"calculate":"format-date(${lmp_calc_ultrasound}, '%Y-%n-%e')"},"type":"calculate","name":"lmp_calc_ultrasound_formatted"},{"bind":{"calculate":"if(${edd_lmp}='lmp',${edd_calc_lmp_formatted},if(${edd_lmp}='edd',${edd} ,if(${edd_lmp}='ultrasound',${edd_calc_ultrasound_formatted},'')))"},"type":"calculate","name":"final_edd","instance":{"openmrs_entity_id":"5596AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"bind":{"calculate":"if(${edd_lmp}='lmp',${lmp},if(${edd_lmp}='edd',${lmp_calc_edd_formatted} ,if(${edd_lmp}='ultrasound',${lmp_calc_ultrasound_formatted},'')))"},"type":"calculate","name":"final_lmp","instance":{"openmrs_entity_id":"1427AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"bind":{"calculate":"int((${vaccination_date} - (${edd}-280))div7)"},"type":"calculate","name":"ga_edd"},{"bind":{"calculate":"int((${vaccination_date} - ${lmp})div7)"},"type":"calculate","name":"ga_lmp"},{"bind":{"calculate":"int((${vaccination_date} -(${ultrasound_date}-(${ultrasound_weeks}*7)))div7)"},"type":"calculate","name":"ga_ult"},{"bind":{"relevant":"selected (${pregnant}, 'yes')"},"type":"note","name":"final_edd_note","label":{"Urdu":"${final_edd} :زچگی کی متوقع تاریخ","Roman Urdu":"Zachgi ki mutawaqqa tareekh: ${final_edd}","English":"EDD: ${final_edd}"}},{"bind":{"relevant":"selected (${pregnant}, 'yes')"},"type":"note","name":"final_lmp_note","label":{"Urdu":"پچھلی ماہواری کی تاریخ: ${final_edd}","Roman Urdu":"Pichli mahwaari ki tareekh: ${final_lmp}","English":"LMP: ${final_lmp}"}},{"bind":{"calculate":"if(${edd_lmp}='lmp',${ga_lmp},if(${edd_lmp}='edd',${ga_edd} ,if(${edd_lmp}='ultrasound',${ga_ult},'')))"},"type":"calculate","name":"final_ga","instance":{"openmrs_entity_id":"163166AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"bind":{"relevant":"selected (${pregnant}, 'yes')"},"type":"note","name":"final_ga_note","label":{"Urdu":"حمل کی مُدّت: {final_ga}$ ہفتے","Roman Urdu":"Hamal ki muddat: ${final_ga} weeks","English":"GA: ${final_ga} weeks"}},{"bind":{"relevant":"${e_tt1} != ''"},"type":"note","name":"tt1_note","label":{"Urdu":"${e_tt1}","Roman Urdu":"${e_tt1}","English":"${e_tt1}"}},{"bind":{"relevant":"${e_tt2} != ''"},"type":"note","name":"tt2_note","label":{"Urdu":"${e_tt2}","Roman Urdu":"${e_tt2}","English":"${e_tt2}"}},{"bind":{"relevant":"${e_tt3} != ''"},"type":"note","name":"tt3_note","label":{"Urdu":"${e_tt3}","Roman Urdu":"${e_tt3}","English":"${e_tt3}"}},{"bind":{"relevant":"${e_tt4} != ''"},"type":"note","name":"tt4_note","label":{"Urdu":"${e_tt4}","Roman Urdu":"${e_tt4}","English":"${e_tt4}"}},{"name":"vaccines","choice_filter":"name != if( ${e_tt1} != '', 'TT1' , '') and \nname != if( ${e_tt2} != '', 'TT2' , '') and \nname != if( ${e_tt3} != '', 'TT3' , '') and \nname != if( ${e_tt4} != '', 'TT4' , '') and \nname != if( ${e_tt5} != '', 'TT5' , '')","default":"minimal","label":{"Urdu":"پچھلی تاریخ جب کسی اور سینٹر پر ٹیکہ لگوایا گیا یا قطرے پلائے گئے","Roman Urdu":"Pichli tareekh jab kissi aur center par teeka lagwaya gaya ya katray pilaey gaye","English":"Retro vaccines"},"itemset":"vaccines","instance":{"openmrs_entity":"concept","openmrs_entity_id":"984AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1421AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"select all that apply"},{"bind":{"jr:constraintMsg":{"Urdu":"درج کردہ معلومات درست نہیں","English":"Invalid data entered","Roman Urdu":"Darj karda maaloomaat durust nahi"},"relevant":"selected(${vaccines},'TT1')","constraint":"(.<=${today} and .>=${existing_birth_date})"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tt1_retro","label":{"Urdu":"ٹی ٹی 1","Roman Urdu":"TT1","English":"TT1"}},{"bind":{"relevant":"selected(${vaccines},'TT1')","calculate":"1"},"type":"calculate","name":"tt_1_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"درج کردہ معلومات درست نہیں","English":"Invalid data entered","Roman Urdu":"Darj karda maaloomaat durust nahi"},"relevant":"selected(${vaccines},'TT2')","constraint":"(.<=${today} and .>=${tt1_retro} and .>=${existing_birth_date} and ((selected(${vaccines}, 'TT1'))))"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tt2_retro","label":{"Urdu":"ٹی ٹی 2","Roman Urdu":"TT2","English":"TT2"}},{"bind":{"relevant":"selected(${vaccines},'TT2')","calculate":"2"},"type":"calculate","name":"tt_2_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"درج کردہ معلومات درست نہیں","English":"Invalid data entered","Roman Urdu":"Darj karda maaloomaat durust nahi"},"relevant":"selected(${vaccines},'TT3')","constraint":"(.<=${today} and .>=${tt2_retro} and .>=${existing_birth_date} and ((selected(${vaccines}, 'TT2'))))"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tt3_retro","label":{"Urdu":"ٹی ٹی 3","Roman Urdu":"TT3","English":"TT3"}},{"bind":{"relevant":"selected(${vaccines},'TT3')","calculate":"3"},"type":"calculate","name":"tt_3_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"درج کردہ معلومات درست نہیں","English":"Invalid data entered","Roman Urdu":"Darj karda maaloomaat durust nahi"},"relevant":"selected(${vaccines},'TT4')","constraint":"(.<=${today} and .>=${tt3_retro} and .>=${existing_birth_date} and ((selected(${vaccines}, 'TT3'))))"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tt4_retro","label":{"Urdu":"ٹی ٹی 4","Roman Urdu":"TT4","English":"TT4"}},{"bind":{"relevant":"selected(${vaccines},'TT4')","calculate":"4"},"type":"calculate","name":"tt_4_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"name":"vaccines_2","choice_filter":"name != if( ${e_tt1} != '', 'TT1' , '') and \nname != if( ${e_tt2} != '', 'TT2' , '') and \nname != if( ${e_tt3} != '', 'TT3' , '') and \nname != if( ${e_tt4} != '', 'TT4' , '') and \nname != if( ${e_tt5} != '', 'TT5' , '') and \nname != if( selected(${vaccines}, 'TT1') , 'TT1', '') and \nname != if( selected(${vaccines}, 'TT2') , 'TT2', '') and \nname != if( selected(${vaccines}, 'TT3') , 'TT3', '') and \nname != if( selected(${vaccines}, 'TT4') , 'TT4', '') and \nname != if( selected(${vaccines}, 'TT5') , 'TT5', '')","bind":{"required":"yes"},"label":{"Urdu":"آج کون کون سی ویکسین دی گئی ہیں؟","Roman Urdu":"Aaj kon kon si vaccine di gai hain?","English":"Vaccine administered today"},"itemset":"vaccines","instance":{"openmrs_entity":"concept","openmrs_entity_id":"984AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1441AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"select all that apply"},{"bind":{"jr:constraintMsg":{"Urdu":"یہ تاریخ مستقبل کی نہیں ہوسکتی","English":"This date cannot be in the future","Roman Urdu":"Ye tareekh mustaqbil ki nahi hosakti"},"required":"yes","constraint":".<=${today}"},"type":"date","instance":{"openmrs_entity_id":"encounter_date","openmrs_entity":"encounter"},"name":"vaccination_date","label":{"Urdu":"تاریخ","English":"Vaccination date","Roman Urdu":"Tareekh"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'TT1'),${vaccination_date},'')"},"type":"calculate","name":"tt1","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2},'TT1')","calculate":"1"},"type":"calculate","name":"tt_1_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'TT2'),${vaccination_date},'')"},"type":"calculate","name":"tt2","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2},'TT2')","calculate":"2"},"type":"calculate","name":"tt_2_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'TT3'),${vaccination_date},'')"},"type":"calculate","name":"tt3","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2},'TT3')","calculate":"3"},"type":"calculate","name":"tt_3_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'TT4'),${vaccination_date},'')"},"type":"calculate","name":"tt4","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2},'TT4')","calculate":"4"},"type":"calculate","name":"tt_4_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'TT5'),${vaccination_date},'')"},"type":"calculate","name":"tt5","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2},'TT5')","calculate":"5"},"type":"calculate","name":"tt_5_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"control":{"bodyless":true},"type":"group","children":[{"bind":{"readonly":"true()","calculate":"concat('uuid:', uuid())"},"type":"calculate","name":"instanceID"}],"name":"meta"}]} \ No newline at end of file diff --git a/opensrp-web/src/test/resources/form/offsite_woman_followup/form.xml b/opensrp-web/src/test/resources/form/offsite_woman_followup/form.xml deleted file mode 100644 index 2cc334fbed..0000000000 --- a/opensrp-web/src/test/resources/form/offsite_woman_followup/form.xml +++ /dev/null @@ -1,1500 +0,0 @@ -
- - -

دوسرے سینٹر میں رجسٹرڈ خواتین فالواپ رجسٹر - Off Site Woman Follow Up Form

-
-
- - کیا آپ کا گھر کا پتہ بدلا ہے؟ - Kya aap ka ghar ka pata badla hai? - - Has your home address changed? -
- - -
-
-
-
- - کیا آپ اپنے اگلے دورے کی یاددہانی کے لیے SMS موصول کرنا چاہتی ہیں؟ - - Kya aap apnay aglay doray ki yaad-dihani ke liye SMS mausool karna chahti hain? - - - Are you willing to receive SMS reminders for your next visit? - - * -
- - -
-
-
-
- - کیا آپ حاملہ ہیں؟ - Kia aap haamla hain? - - Are you pregnant? -
- - -
-
-
-
- - کیا آپ کو اپنی پچھلی ماہواری کی تاریخ، زچگی کی متوقع تاریخ، یا الٹرا سائونڈ کا علم ہے؟ - Kya aap ko apni pichli mahwaari ki tareekh, zachgi ki mutawaqqa tareekh ya ultrasound ka ilm hai? - - Do you know your LMP, EDD or last Ultrasound information? -
- - - - -
-
-
-
- - پچھلی تاریخ جب کسی اور سینٹر پر ٹیکہ لگوایا گیا یا قطرے پلائے گئے - Pichli tareekh jab kissi aur center par teeka lagwaya gaya ya katray pilaey gaye - - Retro vaccines -
- - - ٹی ٹی 1 - TT1 - 84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - TT1 - ٹی ٹی 2 - TT2 - 84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - TT2 - ٹی ٹی 3 - TT3 - 84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - TT3 - ٹی ٹی 4 - TT4 - 84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - TT4 - ٹی ٹی 5 - TT5 - 84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - TT5 -
-
-
-
- - آج کون کون سی ویکسین دی گئی ہیں؟ - Aaj kon kon si vaccine di gai hain? - - Vaccine administered today - * -
- - - ٹی ٹی 1 - TT1 - 84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - TT1 - ٹی ٹی 2 - TT2 - 84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - TT2 - ٹی ٹی 3 - TT3 - 84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - TT3 - ٹی ٹی 4 - TT4 - 84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - TT4 - ٹی ٹی 5 - TT5 - 84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - TT5 -
-
-
- -
diff --git a/opensrp-web/src/test/resources/form/offsite_woman_followup/form_definition.json b/opensrp-web/src/test/resources/form/offsite_woman_followup/form_definition.json deleted file mode 100644 index f6b58fac11..0000000000 --- a/opensrp-web/src/test/resources/form/offsite_woman_followup/form_definition.json +++ /dev/null @@ -1,377 +0,0 @@ -{ - "form_data_definition_version" : "1", - "form" : { - "bind_type" : "pkwoman", - "default_bind_path" : "/model/instance/Offsite_Woman_Followup_Form/", - "fields" : [ { - "name" : "id", - "shouldLoadValue" : true - }, { - "name" : "provider_uc", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/provider_uc", - "shouldLoadValue" : true - }, { - "name" : "provider_town", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/provider_town", - "shouldLoadValue" : true - }, { - "name" : "provider_city", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/provider_city", - "shouldLoadValue" : true - }, { - "name" : "provider_province", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/provider_province", - "shouldLoadValue" : true - }, { - "name" : "existing_landmark", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_landmark", - "shouldLoadValue" : true - }, { - "name" : "existing_address1", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_address1", - "shouldLoadValue" : true - }, { - "name" : "existing_union_council", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_union_council", - "shouldLoadValue" : true - }, { - "name" : "existing_town", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_town", - "shouldLoadValue" : true - }, { - "name" : "existing_city_village", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_city_village", - "shouldLoadValue" : true - }, { - "name" : "existing_province", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_province", - "shouldLoadValue" : true - }, { - "name" : "existing_union_councilname", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_union_councilname", - "shouldLoadValue" : true - }, { - "name" : "existing_townname", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_townname", - "shouldLoadValue" : true - }, { - "name" : "existing_city_villagename", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_city_villagename", - "shouldLoadValue" : true - }, { - "name" : "existing_provincename", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_provincename", - "shouldLoadValue" : true - }, { - "name" : "existing_first_name", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_first_name", - "shouldLoadValue" : true - }, { - "name" : "existing_last_name", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_last_name", - "shouldLoadValue" : true - }, { - "name" : "existing_father_name", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_father_name", - "shouldLoadValue" : true - }, { - "name" : "existing_husband_name", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_husband_name", - "shouldLoadValue" : true - }, { - "name" : "existing_marriage", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_marriage", - "shouldLoadValue" : true - }, { - "name" : "existing_birth_date", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_birth_date", - "shouldLoadValue" : true - }, { - "name" : "existing_gender", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_gender", - "shouldLoadValue" : true - }, { - "name" : "existing_ethnicity", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_ethnicity", - "shouldLoadValue" : true - }, { - "name" : "existing_client_reg_date", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_client_reg_date", - "shouldLoadValue" : true - }, { - "name" : "existing_program_client_id", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_program_client_id", - "shouldLoadValue" : true - }, { - "name" : "existing_epi_card_number", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_epi_card_number", - "shouldLoadValue" : true - }, { - "name" : "existing_reminders_approval", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_reminders_approval" - }, { - "name" : "existing_contact_phone_number", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/existing_contact_phone_number" - }, { - "name" : "e_tt1", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/e_tt1", - "shouldLoadValue" : true - }, { - "name" : "e_tt2", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/e_tt2", - "shouldLoadValue" : true - }, { - "name" : "e_tt3", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/e_tt3", - "shouldLoadValue" : true - }, { - "name" : "e_tt4", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/e_tt4", - "shouldLoadValue" : true - }, { - "name" : "e_tt5", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/e_tt5", - "shouldLoadValue" : true - }, { - "name" : "provider_id", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/provider_id", - "shouldLoadValue" : true - }, { - "name" : "provider_location_id", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/provider_location_id", - "shouldLoadValue" : true - }, { - "name" : "provider_location_name", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/provider_location_name", - "shouldLoadValue" : true - }, { - "name" : "provider_location_note", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/provider_location_note" - }, { - "name" : "start", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/start" - }, { - "name" : "end", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/end" - }, { - "name" : "today", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/today" - }, { - "name" : "deviceid", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/deviceid" - }, { - "name" : "subscriberid", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/subscriberid" - }, { - "name" : "simserial", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/simserial" - }, { - "name" : "phonenumber", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/phonenumber" - }, { - "name" : "client_reg_date_note", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/client_reg_date_note" - }, { - "name" : "program_client_id_note", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/program_client_id_note" - }, { - "name" : "epi_card_number", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/epi_card_number" - }, { - "name" : "first_name_note", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/first_name_note" - }, { - "name" : "last_name_note", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/last_name_note" - }, { - "name" : "client_age", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/client_age" - }, { - "name" : "birth_date_note", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/member_birth_date_note" - }, { - "name" : "gender_note", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/gender_note" - }, { - "name" : "father_name_note", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/father_name_note" - }, { - "name" : "marriage_note", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/marriage_note" - }, { - "name" : "husband_name_note", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/husband_name_note" - }, { - "name" : "ethnicity_note", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/ethnicity_note" - }, { - "name" : "address", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/address" - }, { - "name" : "address_change", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/address_change" - }, { - "name" : "province", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/province" - }, { - "name" : "city_village", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/city_village" - }, { - "name" : "town", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/town" - }, { - "name" : "union_council", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/union_council" - }, { - "name" : "address1", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/address1" - }, { - "name" : "landmark", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/landmark" - }, { - "name" : "center_gps", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/center_gps" - }, { - "name" : "reminders_approval", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/reminders_approval" - }, { - "name" : "contact_phone_number", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/contact_phone_number" - }, { - "name" : "pregnant", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/pregnant" - }, { - "name" : "edd_lmp", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/edd_lmp" - }, { - "name" : "edd", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/edd" - }, { - "name" : "lmp", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/lmp" - }, { - "name" : "ultrasound_date", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/ultrasound_date" - }, { - "name" : "ultrasound_weeks", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/ultrasound_weeks" - }, { - "name" : "edd_calc_lmp", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/edd_calc_lmp" - }, { - "name" : "edd_calc_ultrasound", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/edd_calc_ultrasound" - }, { - "name" : "edd_calc_lmp_formatted", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/edd_calc_lmp_formatted" - }, { - "name" : "edd_calc_ultrasound_formatted", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/edd_calc_ultrasound_formatted" - }, { - "name" : "lmp_calc_edd", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/lmp_calc_edd" - }, { - "name" : "lmp_calc_ultrasound", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/lmp_calc_ultrasound" - }, { - "name" : "lmp_calc_edd_formatted", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/lmp_calc_edd_formatted" - }, { - "name" : "lmp_calc_ultrasound_formatted", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/lmp_calc_ultrasound_formatted" - }, { - "name" : "final_edd", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/final_edd" - }, { - "name" : "final_lmp", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/final_lmp" - }, { - "name" : "ga_edd", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/ga_edd" - }, { - "name" : "ga_lmp", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/ga_lmp" - }, { - "name" : "ga_ult", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/ga_ult" - }, { - "name" : "final_edd_note", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/final_edd_note" - }, { - "name" : "final_lmp_note", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/final_lmp_note" - }, { - "name" : "final_ga", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/final_ga" - }, { - "name" : "final_ga_note", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/final_ga_note" - }, { - "name" : "vaccines", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/vaccines" - }, { - "name" : "tt1_retro", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/tt1_retro" - }, { - "name" : "tt_1_dose", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/tt_1_dose" - }, { - "name" : "tt2_retro", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/tt2_retro" - }, { - "name" : "tt_2_dose", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/tt_2_dose" - }, { - "name" : "tt3_retro", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/tt3_retro" - }, { - "name" : "tt_3_dose", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/tt_3_dose" - }, { - "name" : "tt4_retro", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/tt4_retro" - }, { - "name" : "tt_4_dose", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/tt_4_dose" - }, { - "name" : "vaccines_2", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/vaccines_2" - }, { - "name" : "vaccination_date", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/vaccination_date" - }, { - "name" : "tt1", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/tt1" - }, { - "name" : "tt_1_dose_today", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/tt_1_dose_today" - }, { - "name" : "tt2", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/tt2" - }, { - "name" : "tt_2_dose_today", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/tt_2_dose_today" - }, { - "name" : "tt3", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/tt3" - }, { - "name" : "tt_3_dose_today", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/tt_3_dose_today" - }, { - "name" : "tt4", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/tt4" - }, { - "name" : "tt_4_dose_today", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/tt_4_dose_today" - }, { - "name" : "tt5", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/tt5" - }, { - "name" : "tt_5_dose_today", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/tt_5_dose_today" - }, { - "name" : "instanceID", - "bind" : "/model/instance/Offsite_Woman_Followup_Form/meta/instanceID" - } ] - } -} \ No newline at end of file diff --git a/opensrp-web/src/test/resources/form/offsite_woman_followup/model.xml b/opensrp-web/src/test/resources/form/offsite_woman_followup/model.xml deleted file mode 100644 index d661d1b866..0000000000 --- a/opensrp-web/src/test/resources/form/offsite_woman_followup/model.xml +++ /dev/null @@ -1,1645 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - ${provider_province} - ${provider_city} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - minimal - - - - - - - - - - - - - - - - - - - - - - - - - - - - - static_instance-provinces-0 - kpk - - - static_instance-provinces-1 - sindh - - - static_instance-provinces-2 - balochistan - - - static_instance-provinces-3 - punjab - - - static_instance-provinces-4 - gilgit_baltistan - - - static_instance-provinces-5 - kashmir - - - static_instance-provinces-6 - fata - - - static_instance-provinces-7 - out_of_country - - - - - - - static_instance-ucs-0 - sindh - karachi - korangi - bilal_colony - - - static_instance-ucs-1 - sindh - karachi - korangi - nasir_colony - - - static_instance-ucs-2 - sindh - karachi - korangi - chakra_goth - - - static_instance-ucs-3 - sindh - karachi - korangi - mustafa_taj_colony - - - static_instance-ucs-4 - sindh - karachi - korangi - hundred_quarters - - - static_instance-ucs-5 - sindh - karachi - korangi - gulzar_colony - - - static_instance-ucs-6 - sindh - karachi - korangi - korangi_sector_33 - - - static_instance-ucs-7 - sindh - karachi - korangi - zaman_town - - - static_instance-ucs-8 - sindh - karachi - korangi - hasrat_mohani_colony - - - static_instance-ucs-9 - sindh - karachi - baldia - gulshan_e_ghazi - - - static_instance-ucs-10 - sindh - karachi - baldia - ittehad_town - - - static_instance-ucs-11 - sindh - karachi - baldia - islam_nagar - - - static_instance-ucs-12 - sindh - karachi - baldia - nai_abadi - - - static_instance-ucs-13 - sindh - karachi - baldia - saeedabad - - - static_instance-ucs-14 - sindh - karachi - baldia - muslim_mujahid_colony - - - static_instance-ucs-15 - sindh - karachi - baldia - muhajir_camp - - - static_instance-ucs-16 - sindh - karachi - baldia - rasheedabad - - - static_instance-ucs-17 - sindh - karachi - bin_qasim - ibrahim_hyderi - - - static_instance-ucs-18 - sindh - karachi - bin_qasim - rehri - - - static_instance-ucs-19 - sindh - karachi - bin_qasim - cattle_colony - - - static_instance-ucs-20 - sindh - karachi - bin_qasim - qaidabad - - - static_instance-ucs-21 - sindh - karachi - bin_qasim - landhi_colony - - - static_instance-ucs-22 - sindh - karachi - bin_qasim - gulshan_e_hadeed - - - static_instance-ucs-23 - sindh - karachi - bin_qasim - gaghar - - - static_instance-ucs-24 - sindh - karachi - gadap - murad_memon_goth - - - static_instance-ucs-25 - sindh - karachi - gadap - darsano_chana - - - static_instance-ucs-26 - sindh - karachi - gadap - gujro - - - static_instance-ucs-27 - sindh - karachi - gadap - songal - - - static_instance-ucs-28 - sindh - karachi - gadap - maymarabad - - - static_instance-ucs-29 - sindh - karachi - gadap - yousuf_goth - - - static_instance-ucs-30 - sindh - karachi - gadap - manghopir - - - static_instance-ucs-31 - sindh - karachi - gulberg - azizabad - - - static_instance-ucs-32 - sindh - karachi - gulberg - karimabad - - - static_instance-ucs-33 - sindh - karachi - gulberg - aisha_manzil - - - static_instance-ucs-34 - sindh - karachi - gulberg - ancholi - - - static_instance-ucs-35 - sindh - karachi - gulberg - naseerabad - - - static_instance-ucs-36 - sindh - karachi - gulberg - yaseenabad - - - static_instance-ucs-37 - sindh - karachi - gulberg - water_pump - - - static_instance-ucs-38 - sindh - karachi - gulberg - shafiq_mill_colony - - - static_instance-ucs-39 - sindh - karachi - gulshan - delhi_mercantile_society - - - static_instance-ucs-40 - sindh - karachi - gulshan - civic_centre - - - static_instance-ucs-41 - sindh - karachi - gulshan - pir_ilahi_buksh_colony - - - static_instance-ucs-42 - sindh - karachi - gulshan - essa_nagri - - - static_instance-ucs-43 - sindh - karachi - gulshan - gulshan_e_iqbal - - - static_instance-ucs-44 - sindh - karachi - gulshan - gillani_railway_station - - - static_instance-ucs-45 - sindh - karachi - gulshan - shanti_nagar - - - static_instance-ucs-46 - sindh - karachi - gulshan - jamali_colony - - - static_instance-ucs-47 - sindh - karachi - gulshan - gulshan_e_iqbal_ii - - - static_instance-ucs-48 - sindh - karachi - gulshan - pehlwan_goth - - - static_instance-ucs-49 - sindh - karachi - gulshan - matrovil_colony - - - static_instance-ucs-50 - sindh - karachi - gulshan - gulzar_e_hijri - - - static_instance-ucs-51 - sindh - karachi - gulshan - safooran_goth - - - static_instance-ucs-52 - sindh - karachi - jamshed - akhtar_colony - - - static_instance-ucs-53 - sindh - karachi - jamshed - manzoor_colony - - - static_instance-ucs-54 - sindh - karachi - jamshed - azam_basti - - - static_instance-ucs-55 - sindh - karachi - jamshed - chanesar_goth - - - static_instance-ucs-56 - sindh - karachi - jamshed - mahmudabad - - - static_instance-ucs-57 - sindh - karachi - jamshed - pechs - - - static_instance-ucs-58 - sindh - karachi - jamshed - pechs_ii - - - static_instance-ucs-59 - sindh - karachi - jamshed - jut_line - - - static_instance-ucs-60 - sindh - karachi - jamshed - central_jacob_lines - - - static_instance-ucs-61 - sindh - karachi - jamshed - jamshed_quarters - - - static_instance-ucs-62 - sindh - karachi - jamshed - garden_east - - - static_instance-ucs-63 - sindh - karachi - jamshed - soldier_bazar - - - static_instance-ucs-64 - sindh - karachi - jamshed - pakistan_quarters - - - static_instance-ucs-65 - sindh - karachi - kiamari - bhutta_village - - - static_instance-ucs-66 - sindh - karachi - kiamari - sultanabad - - - static_instance-ucs-67 - sindh - karachi - kiamari - kiamari_uc - - - static_instance-ucs-68 - sindh - karachi - kiamari - baba_bhit - - - static_instance-ucs-69 - sindh - karachi - kiamari - machar_colony - - - static_instance-ucs-70 - sindh - karachi - kiamari - maripur - - - static_instance-ucs-71 - sindh - karachi - kiamari - shershah - - - static_instance-ucs-72 - sindh - karachi - kiamari - gabo_pat - - - static_instance-ucs-73 - sindh - karachi - landhi - muzafarabad - - - static_instance-ucs-74 - sindh - karachi - landhi - muslimabad - - - static_instance-ucs-75 - sindh - karachi - landhi - dawood_chowrangi - - - static_instance-ucs-76 - sindh - karachi - landhi - moinabad - - - static_instance-ucs-77 - sindh - karachi - landhi - sharafi_goth - - - static_instance-ucs-78 - sindh - karachi - landhi - bhutto_nagar - - - static_instance-ucs-79 - sindh - karachi - landhi - khawaja_ajmeer_colony - - - static_instance-ucs-80 - sindh - karachi - landhi - landhi_uc - - - static_instance-ucs-81 - sindh - karachi - landhi - awami_colony - - - static_instance-ucs-82 - sindh - karachi - landhi - burmee_colony - - - static_instance-ucs-83 - sindh - karachi - landhi - korangi_uc - - - static_instance-ucs-84 - sindh - karachi - landhi - sherabad - - - static_instance-ucs-85 - sindh - karachi - liaquatabad - rizvia_society - - - static_instance-ucs-86 - sindh - karachi - liaquatabad - firdous_colony - - - static_instance-ucs-87 - sindh - karachi - liaquatabad - super_market - - - static_instance-ucs-88 - sindh - karachi - liaquatabad - dak_khana - - - static_instance-ucs-89 - sindh - karachi - liaquatabad - qasimabad - - - static_instance-ucs-90 - sindh - karachi - liaquatabad - bandhani_colony - - - static_instance-ucs-91 - sindh - karachi - liaquatabad - sharifabad - - - static_instance-ucs-92 - sindh - karachi - liaquatabad - commercial_area - - - static_instance-ucs-93 - sindh - karachi - liaquatabad - mujahid_colony - - - static_instance-ucs-94 - sindh - karachi - liaquatabad - nazimabad - - - static_instance-ucs-95 - sindh - karachi - liaquatabad - abbasi_shaheed - - - static_instance-ucs-96 - sindh - karachi - lyari - agra_taj_colony - - - static_instance-ucs-97 - sindh - karachi - lyari - daryaabad - - - static_instance-ucs-98 - sindh - karachi - lyari - nawabad - - - static_instance-ucs-99 - sindh - karachi - lyari - khada_memon_society - - - static_instance-ucs-100 - sindh - karachi - lyari - baghdadi - - - static_instance-ucs-101 - sindh - karachi - lyari - shah_baig_line - - - static_instance-ucs-102 - sindh - karachi - lyari - bihar_colony - - - static_instance-ucs-103 - sindh - karachi - lyari - ragiwara - - - static_instance-ucs-104 - sindh - karachi - lyari - singo_line - - - static_instance-ucs-105 - sindh - karachi - lyari - chakiwara - - - static_instance-ucs-106 - sindh - karachi - lyari - allama_iqbal_colony - - - static_instance-ucs-107 - sindh - karachi - malir - model_colony - - - static_instance-ucs-108 - sindh - karachi - malir - kala_board - - - static_instance-ucs-109 - sindh - karachi - malir - saudabad - - - static_instance-ucs-110 - sindh - karachi - malir - khokhra_par - - - static_instance-ucs-111 - sindh - karachi - malir - jafar_e_tayyar - - - static_instance-ucs-112 - sindh - karachi - malir - gharibabad - - - static_instance-ucs-113 - sindh - karachi - malir - ghazi_brohi_goth - - - static_instance-ucs-114 - sindh - karachi - new_karachi - kalyana - - - static_instance-ucs-115 - sindh - karachi - new_karachi - sir_syed_colony - - - static_instance-ucs-116 - sindh - karachi - new_karachi - fatima_jinnah_colony - - - static_instance-ucs-117 - sindh - karachi - new_karachi - godhra - - - static_instance-ucs-118 - sindh - karachi - new_karachi - abu_zar_ghaffari - - - static_instance-ucs-119 - sindh - karachi - new_karachi - hakim_ahsan - - - static_instance-ucs-120 - sindh - karachi - new_karachi - madina_colony - - - static_instance-ucs-121 - sindh - karachi - new_karachi - faisal_colony - - - static_instance-ucs-122 - sindh - karachi - new_karachi - khamiso_goth - - - static_instance-ucs-123 - sindh - karachi - new_karachi - mustufa_colony - - - static_instance-ucs-124 - sindh - karachi - new_karachi - khawaja_ajmeer_nagri - - - static_instance-ucs-125 - sindh - karachi - new_karachi - gulshan_e_saeed - - - static_instance-ucs-126 - sindh - karachi - new_karachi - shah_nawaz_bhutto_colony - - - static_instance-ucs-127 - sindh - karachi - north_nazimabad - paposh_nagar - - - static_instance-ucs-128 - sindh - karachi - north_nazimabad - pahar_ganj - - - static_instance-ucs-129 - sindh - karachi - north_nazimabad - khandu_goth - - - static_instance-ucs-130 - sindh - karachi - north_nazimabad - hyderi - - - static_instance-ucs-131 - sindh - karachi - north_nazimabad - sakhi_hassan - - - static_instance-ucs-132 - sindh - karachi - north_nazimabad - farooq_e_azam - - - static_instance-ucs-133 - sindh - karachi - north_nazimabad - nusrat_bhutto_colony - - - static_instance-ucs-134 - sindh - karachi - north_nazimabad - shadman_town - - - static_instance-ucs-135 - sindh - karachi - north_nazimabad - buffer_zone - - - static_instance-ucs-136 - sindh - karachi - north_nazimabad - buffer_zone_ii - - - static_instance-ucs-137 - sindh - karachi - orangi - mominabad - - - static_instance-ucs-138 - sindh - karachi - orangi - haryana_colony - - - static_instance-ucs-139 - sindh - karachi - orangi - hanifabad - - - static_instance-ucs-140 - sindh - karachi - orangi - mohammad_nagar - - - static_instance-ucs-141 - sindh - karachi - orangi - madina_colony_orangi - - - static_instance-ucs-142 - sindh - karachi - orangi - ghaziabad - - - static_instance-ucs-143 - sindh - karachi - orangi - chisti_nagar - - - static_instance-ucs-144 - sindh - karachi - orangi - bilal_colony_orangi - - - static_instance-ucs-145 - sindh - karachi - orangi - iqbal_baloch_colony - - - static_instance-ucs-146 - sindh - karachi - orangi - ghabool_town - - - static_instance-ucs-147 - sindh - karachi - orangi - data_nagar - - - static_instance-ucs-148 - sindh - karachi - orangi - mujahidabad - - - static_instance-ucs-149 - sindh - karachi - orangi - baloch_goth - - - static_instance-ucs-150 - sindh - karachi - saddar - old_haji_camp - - - static_instance-ucs-151 - sindh - karachi - saddar - garden - - - static_instance-ucs-152 - sindh - karachi - saddar - kharadar - - - static_instance-ucs-153 - sindh - karachi - saddar - city_railway_colony - - - static_instance-ucs-154 - sindh - karachi - saddar - nanak_wara - - - static_instance-ucs-155 - sindh - karachi - saddar - gazdarabad - - - static_instance-ucs-156 - sindh - karachi - saddar - millat_nagar_islam_pura - - - static_instance-ucs-157 - sindh - karachi - saddar - saddar_uc - - - static_instance-ucs-158 - sindh - karachi - saddar - civil_line - - - static_instance-ucs-159 - sindh - karachi - saddar - clifton - - - static_instance-ucs-160 - sindh - karachi - saddar - kehkashan - - - static_instance-ucs-161 - sindh - karachi - shah_faisal - natha_khan_goth - - - static_instance-ucs-162 - sindh - karachi - shah_faisal - pak_sadat_colony - - - static_instance-ucs-163 - sindh - karachi - shah_faisal - drigh_colony - - - static_instance-ucs-164 - sindh - karachi - shah_faisal - raita_plot - - - static_instance-ucs-165 - sindh - karachi - shah_faisal - moria_khan_goth - - - static_instance-ucs-166 - sindh - karachi - shah_faisal - rafa_e_aam_society - - - static_instance-ucs-167 - sindh - karachi - shah_faisal - al_falah_society - - - static_instance-ucs-168 - sindh - karachi - site - pak_colony - - - static_instance-ucs-169 - sindh - karachi - site - old_golimar - - - static_instance-ucs-170 - sindh - karachi - site - jahanabad - - - static_instance-ucs-171 - sindh - karachi - site - metrovil - - - static_instance-ucs-172 - sindh - karachi - site - bhawani_chali - - - static_instance-ucs-173 - sindh - karachi - site - frontier_colony - - - static_instance-ucs-174 - sindh - karachi - site - banaras_colony - - - static_instance-ucs-175 - sindh - karachi - site - qasba_colony - - - static_instance-ucs-176 - sindh - karachi - site - islamia_colony - - - static_instance-ucs-177 - na - na - na - other - - - static_instance-ucs-178 - na - na - na - not_applicable - - - - - - - static_instance-gender-0 - male - - - static_instance-gender-1 - female - - - static_instance-gender-2 - transgender - - - - - - - static_instance-vaccines-0 - TT1 - - - static_instance-vaccines-1 - TT2 - - - static_instance-vaccines-2 - TT3 - - - static_instance-vaccines-3 - TT4 - - - static_instance-vaccines-4 - TT5 - - - - - - - static_instance-towns-0 - sindh - karachi - korangi - - - static_instance-towns-1 - sindh - karachi - landhi - - - static_instance-towns-2 - sindh - karachi - baldia - - - static_instance-towns-3 - sindh - karachi - bin_qasim - - - static_instance-towns-4 - sindh - karachi - gadap - - - static_instance-towns-5 - sindh - karachi - gulberg - - - static_instance-towns-6 - sindh - karachi - gulshan - - - static_instance-towns-7 - sindh - karachi - jamshed - - - static_instance-towns-8 - sindh - karachi - kiamari - - - static_instance-towns-9 - sindh - karachi - liaquatabad - - - static_instance-towns-10 - sindh - karachi - lyari - - - static_instance-towns-11 - sindh - karachi - malir - - - static_instance-towns-12 - sindh - karachi - new_karachi - - - static_instance-towns-13 - sindh - karachi - north_nazimabad - - - static_instance-towns-14 - sindh - karachi - orangi - - - static_instance-towns-15 - sindh - karachi - saddar - - - static_instance-towns-16 - sindh - karachi - shah_faisal - - - static_instance-towns-17 - sindh - karachi - site - - - static_instance-towns-18 - na - na - other - - - static_instance-towns-19 - na - na - not_applicable - - - - - - - static_instance-cities-0 - sindh - karachi - - - static_instance-cities-1 - punjab - hafizabad - - - static_instance-cities-2 - punjab - muzaffargarh - - - static_instance-cities-3 - na - other - - - static_instance-cities-4 - na - not_applicable - - - - - - - static_instance-edd_lmp-0 - edd - - - static_instance-edd_lmp-1 - lmp - - - static_instance-edd_lmp-2 - ultrasound - - - static_instance-edd_lmp-3 - none - - - - - - - static_instance-yes_no-0 - yes - - - static_instance-yes_no-1 - no - - - - diff --git a/opensrp-web/src/test/resources/form/vaccine_stock_position/form.json b/opensrp-web/src/test/resources/form/vaccine_stock_position/form.json deleted file mode 100644 index 7a7b26bebe..0000000000 --- a/opensrp-web/src/test/resources/form/vaccine_stock_position/form.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"Vaccine_Stock_Position","title":"ویکسین اسٹاک پوزیشن - Vaccine Stock Position","sms_keyword":"vaccine_stock_position","default_language":"English","instance":{"encounter_type":"Vaccine stock position"},"version":"201604180554","id_string":"vaccine_stock_position","type":"survey","children":[{"type":"hidden","name":"provider_uc"},{"type":"hidden","name":"provider_town"},{"type":"hidden","name":"provider_city"},{"type":"hidden","name":"provider_province"},{"type":"hidden","name":"provider_id"},{"instance":{"openmrs_entity_id":"location_id","openmrs_entity":"encounter"},"type":"hidden","name":"provider_location_id"},{"type":"hidden","name":"provider_location_name"},{"type":"note","name":"provider_location_note","label":{"Urdu":"شہر: ${provider_city} ; Town: ${provider_town} ; UC: ${provider_uc} ; Center Name: ${provider_location_name}","English":"City: ${provider_city} ; Town: ${provider_town} ; UC: ${provider_uc} ; Center Name: ${provider_location_name}","Roman Urdu":"Shehr: ${provider_city} ; Town: ${provider_town} ; UC: ${provider_uc} ; Center Name: ${provider_location_name}"}},{"instance":{"openmrs_entity_id":"163137AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"start","name":"start"},{"instance":{"openmrs_entity_id":"163138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"end","name":"end"},{"instance":{"openmrs_entity_id":"163286AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"today","name":"today"},{"instance":{"openmrs_entity_id":"163149AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"deviceid","name":"deviceid"},{"instance":{"openmrs_entity_id":"163150AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"subscriberid","name":"subscriberid"},{"instance":{"openmrs_entity_id":"163151AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"simserial","name":"simserial"},{"instance":{"openmrs_entity_id":"163152AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"phonenumber","name":"phonenumber"},{"bind":{"calculate":"format-date(${today}, '%e-%n-%Y')"},"type":"calculate","name":"date_formatted"},{"type":"note","name":"vaccinator_name","label":{"Urdu":"${provider_id}","English":"${provider_id}","Roman Urdu":"${provider_id}"}},{"type":"note","name":"center_name","label":{"Urdu":"سینٹر کا نام: ${provider_location_name}","English":"Center Name: ${provider_location_name}","Roman Urdu":"Center ka naam: ${provider_location_name}"}},{"bind":{"jr:constraintMsg":{"Urdu":"یہ تاریخ مستقبل کی نہیں ہو سکتی۔","English":"This cannot be a date in the future.","Roman Urdu":"Ye tareekh mustaqbil ki nahi ho sakti."},"constraint":".<=${today}"},"type":"date","instance":{"openmrs_entity_id":"encounter_date","openmrs_entity":"encounter"},"name":"date","label":{"Urdu":"تاریخ","English":"Date","Roman Urdu":"Tareekh"}},{"name":"report","bind":{"required":"yes"},"label":{"Urdu":"رپورٹ کی قسم","English":"Report Type","Roman Urdu":"Report ki kism"},"instance":{"openmrs_entity_id":"163331AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"160862AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"daily","label":{"Urdu":"روزانہ کی رپورٹ","Roman Urdu":"Rozaana ki report","English":"Daily"}},{"instance":{"openmrs_code":"1098AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"monthly","label":{"Urdu":"ماہانہ رپورٹ","Roman Urdu":"Mahaana report","English":"Monthly"}}]},{"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"type":"integer","instance":{"openmrs_entity_id":"163174AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"Target_assigned_for_vaccination_at_each_month","label":{"Urdu":"ویکسین لگانے کا ماہانہ ہدف","English":"Monthly Target","Roman Urdu":"Vaccine laganay ka mahaana hadf"}},{"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"type":"integer","instance":{"openmrs_entity_id":"163175AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"Target_assigned_for_vaccination_for_the_year","label":{"Urdu":"ویکسین لگانے کا سالانہ ہدف","English":"Yearly Target","Roman Urdu":"Vaccine laganay ka salaana hadf"}},{"name":"bcg_balance_in_hand","hint":{"Urdu":"خوراک کی تعداد","Roman Urdu":"Khoraak ki taadaad","English":"Number of doses"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"موجودہ بی سی جی کی تعداد","Roman Urdu":"Maujooda BCG ki taadaad","English":"BCG balance in hand"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163173AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"886AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"bcg_received","hint":{"Urdu":"خوراک کی تعداد","Roman Urdu":"Khoraak ki taadaad","English":"Number of doses"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"موصول ہونے والی بی سی جی کی تعداد","Roman Urdu":"Mausool honay wali BCG ki taadaad","English":"BCG received"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163170AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"886AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"bcg_wasted","hint":{"Urdu":"خوراک کی تعداد","Roman Urdu":"Khoraak ki taadaad","English":"Number of doses"},"bind":{"relevant":"selected(${report}, 'daily')","required":"yes"},"label":{"Urdu":"ضائع ہونے والی بی سی جی کی تعداد","Roman Urdu":"Zaya honay wali BCG ki taadaad","English":"BCG wasted"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163172AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"886AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"opv_balance_in_hand","hint":{"Urdu":"خوراک کی تعداد","Roman Urdu":"Khoraak ki taadaad","English":"Number of doses"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"موجودہ او پی وی کی تعداد","Roman Urdu":"Maujooda OPV ki taadaad","English":"OPV balance in hand"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163173AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"opv_received","hint":{"Urdu":"خوراک کی تعداد","Roman Urdu":"Khoraak ki taadaad","English":"Number of doses"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"موصول ہونے والی او پی وی کی تعداد","Roman Urdu":"Mausool honay wali OPV ki taadaad","English":"OPV received"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163170AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"opv_wasted","hint":{"Urdu":"خوراک کی تعداد","Roman Urdu":"Khoraak ki taadaad","English":"Number of doses"},"bind":{"relevant":"selected(${report}, 'daily')","required":"yes"},"label":{"Urdu":"ضائع ہونے والی او پی وی کی تعداد","Roman Urdu":"Zaya honay wali OPV ki taadaad","English":"OPV wasted"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163172AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"ipv_balance_in_hand","hint":{"Urdu":"خوراک کی تعداد","Roman Urdu":"Khoraak ki taadaad","English":"Number of doses"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"موجودہ آئی پی وی کی تعداد","Roman Urdu":"Maujooda IPV ki taadaad","English":"IPV balance in hand"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163173AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1422AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"ipv_received","hint":{"Urdu":"خوراک کی تعداد","Roman Urdu":"Khoraak ki taadaad","English":"Number of doses"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"موصول ہونے والی آئی پی وی کی تعداد","Roman Urdu":"Mausool honay wali IPV ki taadaad","English":"IPV received"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163170AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1422AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"ipv_wasted","hint":{"Urdu":"خوراک کی تعداد","Roman Urdu":"Khoraak ki taadaad","English":"Number of doses"},"bind":{"relevant":"selected(${report}, 'daily')","required":"yes"},"label":{"Urdu":"ضائع ہونے والی آئی پی وی کی تعداد","Roman Urdu":"Zaya honay wali IPV ki taadaad","English":"IPV wasted"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163172AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1422AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"pcv_balance_in_hand","hint":{"Urdu":"خوراک کی تعداد","Roman Urdu":"Khoraak ki taadaad","English":"Number of doses"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"موجودہ پی سی وی کی تعداد","Roman Urdu":"Maujooda PCV ki taadaad","English":"PCV balance in hand"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163173AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"pcv_received","hint":{"Urdu":"خوراک کی تعداد","Roman Urdu":"Khoraak ki taadaad","English":"Number of doses"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"موصول ہونے والی پی سی وی کی تعداد","Roman Urdu":"Mausool honay wali PCV ki taadaad","English":"PCV received"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163170AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"pcv_wasted","hint":{"Urdu":"خوراک کی تعداد","Roman Urdu":"Khoraak ki taadaad","English":"Number of doses"},"bind":{"relevant":"selected(${report}, 'daily')","required":"yes"},"label":{"Urdu":"ضائع ہونے والی پی سی وی کی تعداد","Roman Urdu":"Zaya honay wali PCV ki taadaad","English":"PCV wasted"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163172AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"penta_balance_in_hand","hint":{"Urdu":"خوراک کی تعداد","Roman Urdu":"Khoraak ki taadaad","English":"Number of doses"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"موجودہ پینٹاویلنٹ کی تعداد","Roman Urdu":"Maujooda Pentavalent ki taadaad","English":"Penta balance in hand"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163173AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"penta_received","hint":{"Urdu":"خوراک کی تعداد","Roman Urdu":"Khoraak ki taadaad","English":"Number of doses"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"موصول ہونے والی پینٹاویلنٹ کی تعداد","Roman Urdu":"Mausool honay wali Pentavalent ki taadaad","English":"Penta received"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163170AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"penta_wasted","hint":{"Urdu":"خوراک کی تعداد","Roman Urdu":"Khoraak ki taadaad","English":"Number of doses"},"bind":{"relevant":"selected(${report}, 'daily')","required":"yes"},"label":{"Urdu":"ضائع ہونے والی پینٹاویلنٹ کی تعداد","Roman Urdu":"Zaya honay wali Pentavalent ki taadaad","English":"Penta wasted"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163172AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"measles_balance_in_hand","hint":{"Urdu":"خوراک کی تعداد","Roman Urdu":"Khoraak ki taadaad","English":"Number of doses"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"موجودہ خسرے کے ٹیکوں کی تعداد","Roman Urdu":"Maujooda khasray ke teekon ki taadaad","English":"Measles balance in hand"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163173AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"79409AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"measles_received","hint":{"Urdu":"خوراک کی تعداد","Roman Urdu":"Khoraak ki taadaad","English":"Number of doses"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"موصول ہونے والے خسرے کے ٹیکوں کی تعداد","Roman Urdu":"Mausool honay walay khasray ke teekay ki taadaad","English":"Measles received"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163170AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"79409AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"measles_wasted","hint":{"Urdu":"خوراک کی تعداد","Roman Urdu":"Khoraak ki taadaad","English":"Number of doses"},"bind":{"relevant":"selected(${report}, 'daily')","required":"yes"},"label":{"Urdu":"ضائع ہونے والے خسرے کے ٹیکوں کی تعداد","Roman Urdu":"Zaya honay walay khasray ke teekay ki taadaad","English":"Measles wasted"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163172AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"79409AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"tt_balance_in_hand","hint":{"Urdu":"خوراک کی تعداد","Roman Urdu":"Khoraak ki taadaad","English":"Number of doses"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"موجودہ ٹی ٹی کی تعداد","Roman Urdu":"Maujooda TT ki taadaad","English":"TT balance in hand"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163173AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"tt_received","hint":{"Urdu":"خوراک کی تعداد","Roman Urdu":"Khoraak ki taadaad","English":"Number of doses"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"موصول ہونے والی ٹی ٹی کی تعداد","Roman Urdu":"Mausool honay wali TT ki taadaad","English":"TT received"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163170AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"tt_wasted","hint":{"Urdu":"خوراک کی تعداد","Roman Urdu":"Khoraak ki taadaad","English":"Number of doses"},"bind":{"relevant":"selected(${report}, 'daily')","required":"yes"},"label":{"Urdu":"ضائع ہونے والی ٹی ٹی کی تعداد","Roman Urdu":"Zaya honay wali TT ki taadaad","English":"TT wasted"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163172AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"dilutants_balance_in_hand","hint":{"Urdu":"خوراک کی تعداد","Roman Urdu":"Khoraak ki taadaad","English":"Number of doses"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"انجیکشن کے لئے موجودہ جراثیم سے پاک پانی کی شیشیوں کی تعداد","Roman Urdu":"Injection ke liye maujooda jaraseem se paak paani ki sheeshion ki taadaad","English":"Dilutants balance in hand"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163173AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"163287AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"dilutants_received","hint":{"Urdu":"خوراک کی تعداد","Roman Urdu":"Khoraak ki taadaad","English":"Number of doses"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"انجیکشن کے لئے موصول ہونے والا جراثیم سے پاک پانی کی شیشیوں کی تعداد","Roman Urdu":"Injection ke liye mausool honay wala jaraseem se paak paani ki sheeshion ki taadaad","English":"Dilutants received"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163170AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"163287AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"dilutants_wasted","hint":{"Urdu":"خوراک کی تعداد","Roman Urdu":"Khoraak ki taadaad","English":"Number of doses"},"bind":{"relevant":"selected(${report}, 'daily')","required":"yes"},"label":{"Urdu":"انجیکشن کے لئے ضائع ہونے والا جراثیم سے پاک پانی کی شیشیوں کی تعداد","Roman Urdu":"Injection ke liye zaya honay wala jaraseem se paak paani ki sheeshion ki taadaad","English":"Dilutants wasted"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163172AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"163287AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"syringes_balance_in_hand","hint":{"Urdu":"سرنج کی تعداد","Roman Urdu":"Syringe ki taadaad","English":"Number of syringes"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"موجودہ سرنج کی تعداد","Roman Urdu":"Maujooda siranj ki taadaad","English":"Syringes balance in hand"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163173AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162377AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"syringes_received","hint":{"Urdu":"سرنج کی تعداد","Roman Urdu":"Syringe ki taadaad","English":"Number of syringes"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"موصول ہونے والی سرنج کی تعداد","Roman Urdu":"Mausool honay wali siranj ki taadaad","English":"Syringes received"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163170AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162377AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"syringes_wasted","hint":{"Urdu":"سرنج کی تعداد","Roman Urdu":"Syringe ki taadaad","English":"Number of syringes"},"bind":{"relevant":"selected(${report}, 'daily')","required":"yes"},"label":{"Urdu":"ضائع ہونے والی سرنج کی تعداد","Roman Urdu":"Zaya honay wali siranj taadaad","English":"Syringes wasted"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163172AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"162377AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"safety_boxes_balance_in_hand","hint":{"Urdu":"باکس کی تعداد","Roman Urdu":"Box ki taadaad","English":"Number of boxes"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"موجودہ سیفٹی باکس","Roman Urdu":"Maujooda safety box","English":"Safety Box balance in hand"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163173AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"163285AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"safety_boxes_received","hint":{"Urdu":"باکس کی تعداد","Roman Urdu":"Box ki taadaad","English":"Number of boxes"},"bind":{"relevant":"selected(${report}, 'monthly')","required":"yes"},"label":{"Urdu":"موصول ہونے والے سیفٹی باکس","Roman Urdu":"Mausool honay walay safety box","English":"Safety Box received"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163170AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"163285AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"name":"safety_boxes_wasted","hint":{"Urdu":"باکس کی تعداد","Roman Urdu":"Box ki taadaad","English":"Number of boxes"},"bind":{"relevant":"selected(${report}, 'daily')","required":"yes"},"label":{"Urdu":"ضائع ہونے والے سیفٹی باکس","Roman Urdu":"Zaya honay walay safety","English":"Safety Box wasted"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163172AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"163285AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"integer"},{"bind":{"jr:constraintMsg":{"Urdu":"یہ تعداد موصول ہونے والی کل تعداد سے کم یا برابر ہونی چاہئیے","Roman Urdu":"Ye taadaad mausool honay wali kul taadaad se kam ya baraber honi chahiye","English":"This quantity should be less than or equal to the total quantity received"},"calculate":"${bcg_wasted}+${opv_wasted}+${ipv_wasted}+${pcv_wasted}+${penta_wasted}+${measles_wasted}+${tt_wasted}+${dilutants_wasted}+${syringes_wasted}+${safety_boxes_wasted}","constraint":".<=${total_received}"},"type":"calculate","name":"total_wasted","label":{"Urdu":"ضائع ہونے والی اشیاء کی مکمل تعداد","Roman Urdu":"Zaya honay wali ashia ki mukammal taadaad","English":"Total wasted"}},{"bind":{"calculate":"${bcg_received}+${opv_received}+${ipv_received}+${pcv_received}+${penta_received}+${measles_received}+${tt_received}+${dilutants_received}+${syringes_received}+${safety_boxes_received}"},"type":"calculate","name":"total_received","label":{"Urdu":"موصول ہونے والی اشیاء کی مکمل تعداد","Roman Urdu":"Mausool honay wali ashia ki mukammal taadaad","English":"Total received"}},{"bind":{"calculate":"${bcg_balance_in_hand}+${opv_balance_in_hand}+${ipv_balance_in_hand}+${pcv_balance_in_hand}+${penta_balance_in_hand}+${measles_balance_in_hand}+${tt_balance_in_hand}+${dilutants_balance_in_hand}+${syringes_balance_in_hand}+${safety_boxes_balance_in_hand}"},"type":"calculate","name":"total_balanceInHand","label":{"Urdu":"موجودہ اشیاء کی مکمل تعداد","Roman Urdu":"Maujooda ashia ki mukammal taadaad","English":"Total balance in hand"}},{"control":{"bodyless":true},"type":"group","children":[{"bind":{"readonly":"true()","calculate":"concat('uuid:', uuid())"},"type":"calculate","name":"instanceID"}],"name":"meta"}]} \ No newline at end of file diff --git a/opensrp-web/src/test/resources/form/vaccine_stock_position/form.xml b/opensrp-web/src/test/resources/form/vaccine_stock_position/form.xml deleted file mode 100644 index 888d63375f..0000000000 --- a/opensrp-web/src/test/resources/form/vaccine_stock_position/form.xml +++ /dev/null @@ -1,385 +0,0 @@ -
- - -

ویکسین اسٹاک پوزیشن - Vaccine Stock Position

-
-
- - رپورٹ کی قسم - Report Type - Report ki kism - * -
- - -
-
-
- -
diff --git a/opensrp-web/src/test/resources/form/vaccine_stock_position/form_definition.json b/opensrp-web/src/test/resources/form/vaccine_stock_position/form_definition.json deleted file mode 100644 index e03f70ddc4..0000000000 --- a/opensrp-web/src/test/resources/form/vaccine_stock_position/form_definition.json +++ /dev/null @@ -1,189 +0,0 @@ -{ - "form_data_definition_version" : "1", - "form" : { - "bind_type" : "stock", - "default_bind_path" : "/model/instance/Vaccine_Stock_Position/", - "fields" : [ { - "name" : "id", - "shouldLoadValue" : true - },{ - "name" : "no_client_event", - "value" : true - }, { - "name" : "provider_uc", - "bind" : "/model/instance/Vaccine_Stock_Position/provider_uc", - "shouldLoadValue" : true - }, { - "name" : "provider_town", - "bind" : "/model/instance/Vaccine_Stock_Position/provider_town", - "shouldLoadValue" : true - }, { - "name" : "provider_city", - "bind" : "/model/instance/Vaccine_Stock_Position/provider_city", - "shouldLoadValue" : true - }, { - "name" : "provider_province", - "bind" : "/model/instance/Vaccine_Stock_Position/provider_province", - "shouldLoadValue" : true - }, { - "name" : "provider_id", - "bind" : "/model/instance/Vaccine_Stock_Position/provider_id", - "shouldLoadValue" : true - }, { - "name" : "provider_location_id", - "bind" : "/model/instance/Vaccine_Stock_Position/provider_location_id", - "shouldLoadValue" : true - }, { - "name" : "provider_location_name", - "bind" : "/model/instance/Vaccine_Stock_Position/provider_location_name", - "shouldLoadValue" : true - }, { - "name" : "provider_location_note", - "bind" : "/model/instance/Vaccine_Stock_Position/provider_location_note" - }, { - "name" : "start", - "bind" : "/model/instance/Vaccine_Stock_Position/start" - }, { - "name" : "end", - "bind" : "/model/instance/Vaccine_Stock_Position/end" - }, { - "name" : "today", - "bind" : "/model/instance/Vaccine_Stock_Position/today" - }, { - "name" : "deviceid", - "bind" : "/model/instance/Vaccine_Stock_Position/deviceid" - }, { - "name" : "subscriberid", - "bind" : "/model/instance/Vaccine_Stock_Position/subscriberid" - }, { - "name" : "simserial", - "bind" : "/model/instance/Vaccine_Stock_Position/simserial" - }, { - "name" : "phonenumber", - "bind" : "/model/instance/Vaccine_Stock_Position/phonenumber" - }, { - "name" : "date_formatted", - "bind" : "/model/instance/Vaccine_Stock_Position/date_formatted" - }, { - "name" : "vaccinator_name", - "bind" : "/model/instance/Vaccine_Stock_Position/vaccinator_name" - }, { - "name" : "center_name", - "bind" : "/model/instance/Vaccine_Stock_Position/center_name" - }, { - "name" : "date", - "bind" : "/model/instance/Vaccine_Stock_Position/date" - }, { - "name" : "report", - "bind" : "/model/instance/Vaccine_Stock_Position/report" - }, { - "name" : "Target_assigned_for_vaccination_at_each_month", - "bind" : "/model/instance/Vaccine_Stock_Position/Target_assigned_for_vaccination_at_each_month" - }, { - "name" : "Target_assigned_for_vaccination_for_the_year", - "bind" : "/model/instance/Vaccine_Stock_Position/Target_assigned_for_vaccination_for_the_year" - }, { - "name" : "bcg_balance_in_hand", - "bind" : "/model/instance/Vaccine_Stock_Position/bcg_balance_in_hand" - }, { - "name" : "bcg_received", - "bind" : "/model/instance/Vaccine_Stock_Position/bcg_received" - }, { - "name" : "bcg_wasted", - "bind" : "/model/instance/Vaccine_Stock_Position/bcg_wasted" - }, { - "name" : "opv_balance_in_hand", - "bind" : "/model/instance/Vaccine_Stock_Position/opv_balance_in_hand" - }, { - "name" : "opv_received", - "bind" : "/model/instance/Vaccine_Stock_Position/opv_received" - }, { - "name" : "opv_wasted", - "bind" : "/model/instance/Vaccine_Stock_Position/opv_wasted" - }, { - "name" : "ipv_balance_in_hand", - "bind" : "/model/instance/Vaccine_Stock_Position/ipv_balance_in_hand" - }, { - "name" : "ipv_received", - "bind" : "/model/instance/Vaccine_Stock_Position/ipv_received" - }, { - "name" : "ipv_wasted", - "bind" : "/model/instance/Vaccine_Stock_Position/ipv_wasted" - }, { - "name" : "pcv_balance_in_hand", - "bind" : "/model/instance/Vaccine_Stock_Position/pcv_balance_in_hand" - }, { - "name" : "pcv_received", - "bind" : "/model/instance/Vaccine_Stock_Position/pcv_received" - }, { - "name" : "pcv_wasted", - "bind" : "/model/instance/Vaccine_Stock_Position/pcv_wasted" - }, { - "name" : "penta_balance_in_hand", - "bind" : "/model/instance/Vaccine_Stock_Position/penta_balance_in_hand" - }, { - "name" : "penta_received", - "bind" : "/model/instance/Vaccine_Stock_Position/penta_received" - }, { - "name" : "penta_wasted", - "bind" : "/model/instance/Vaccine_Stock_Position/penta_wasted" - }, { - "name" : "measles_balance_in_hand", - "bind" : "/model/instance/Vaccine_Stock_Position/measles_balance_in_hand" - }, { - "name" : "measles_received", - "bind" : "/model/instance/Vaccine_Stock_Position/measles_received" - }, { - "name" : "measles_wasted", - "bind" : "/model/instance/Vaccine_Stock_Position/measles_wasted" - }, { - "name" : "tt_balance_in_hand", - "bind" : "/model/instance/Vaccine_Stock_Position/tt_balance_in_hand" - }, { - "name" : "tt_received", - "bind" : "/model/instance/Vaccine_Stock_Position/tt_received" - }, { - "name" : "tt_wasted", - "bind" : "/model/instance/Vaccine_Stock_Position/tt_wasted" - }, { - "name" : "dilutants_balance_in_hand", - "bind" : "/model/instance/Vaccine_Stock_Position/dilutants_balance_in_hand" - }, { - "name" : "dilutants_received", - "bind" : "/model/instance/Vaccine_Stock_Position/dilutants_received" - }, { - "name" : "dilutants_wasted", - "bind" : "/model/instance/Vaccine_Stock_Position/dilutants_wasted" - }, { - "name" : "syringes_balance_in_hand", - "bind" : "/model/instance/Vaccine_Stock_Position/syringes_balance_in_hand" - }, { - "name" : "syringes_received", - "bind" : "/model/instance/Vaccine_Stock_Position/syringes_received" - }, { - "name" : "syringes_wasted", - "bind" : "/model/instance/Vaccine_Stock_Position/syringes_wasted" - }, { - "name" : "safety_boxes_balance_in_hand", - "bind" : "/model/instance/Vaccine_Stock_Position/safety_boxes_balance_in_hand" - }, { - "name" : "safety_boxes_received", - "bind" : "/model/instance/Vaccine_Stock_Position/safety_boxes_received" - }, { - "name" : "safety_boxes_wasted", - "bind" : "/model/instance/Vaccine_Stock_Position/safety_boxes_wasted" - }, { - "name" : "total_wasted", - "bind" : "/model/instance/Vaccine_Stock_Position/total_wasted" - }, { - "name" : "total_received", - "bind" : "/model/instance/Vaccine_Stock_Position/total_received" - }, { - "name" : "total_balanceInHand", - "bind" : "/model/instance/Vaccine_Stock_Position/total_balanceInHand" - }, { - "name" : "instanceID", - "bind" : "/model/instance/Vaccine_Stock_Position/meta/instanceID" - } ] - } -} \ No newline at end of file diff --git a/opensrp-web/src/test/resources/form/vaccine_stock_position/model.xml b/opensrp-web/src/test/resources/form/vaccine_stock_position/model.xml deleted file mode 100644 index 45ff083b17..0000000000 --- a/opensrp-web/src/test/resources/form/vaccine_stock_position/model.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/opensrp-web/src/test/resources/form/woman_enrollment/form.json b/opensrp-web/src/test/resources/form/woman_enrollment/form.json deleted file mode 100644 index e64275c472..0000000000 --- a/opensrp-web/src/test/resources/form/woman_enrollment/form.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"Woman_TT_Enrollment_Form","title":"خواتین انرولمنٹ فارم برائے ٹی ٹی ٹیکاجات - Woman TT Enrollment Form","sms_keyword":"woman_tt_enrollement_form","default_language":"English","choices":{"provinces":[{"name":"kpk","label":{"Urdu":"خیبر پختون خواہ","English":"Khyber Pakhtunkhwa","Roman Urdu":"Khyber Pakhtunkhwa"}},{"name":"sindh","label":{"Urdu":"سندھ","English":"Sindh","Roman Urdu":"Sindh"}},{"name":"balochistan","label":{"Urdu":"بلوچستان","English":"Balochistan","Roman Urdu":"Balochistan"}},{"name":"punjab","label":{"Urdu":"پنجاب","English":"Punjab","Roman Urdu":"Punjab"}},{"name":"gilgit_baltistan","label":{"Urdu":"گلگت بلتستان","English":"Gilgit Baltistan","Roman Urdu":"Gilgit Baltistan"}},{"name":"kashmir","label":{"Urdu":"کشمیر","English":"Kashmir","Roman Urdu":"Kashmir"}},{"name":"fata","label":{"Urdu":"فاٹا","English":"FATA","Roman Urdu":"FATA"}},{"name":"out_of_country","label":{"Urdu":"ملک سے باہر","English":"Out of Country","Roman Urdu":"Mulk se baahir"}}],"ucs":[{"province":"sindh","city":"karachi","town":"korangi","name":"bilal_colony","label":{"Urdu":"بلال کالونی","Roman Urdu":"Bilal Colony","English":"Bilal Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"nasir_colony","label":{"Urdu":"ناصر کالونی","Roman Urdu":"Nasir Colony","English":"Nasir Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"chakra_goth","label":{"Urdu":"چکرا گوٹھ","Roman Urdu":"Chakra Goth","English":"Chakra Goth"}},{"province":"sindh","city":"karachi","town":"korangi","name":"mustafa_taj_colony","label":{"Urdu":"مصطفی تاج کالونی","Roman Urdu":"Mustafa Taj Colony","English":"Mustafa Taj Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"hundred_quarters","label":{"Urdu":"ہنڈریڈ کوارٹر","Roman Urdu":"Hundred Quarters","English":"Hundred Quarters"}},{"province":"sindh","city":"karachi","town":"korangi","name":"gulzar_colony","label":{"Urdu":"گلزار کالونی","Roman Urdu":"Gulzar Colony","English":"Gulzar Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"korangi_sector_33","label":{"Urdu":"کورنگی سیکٹر 33","Roman Urdu":"Korangi Sector 33","English":"Korangi Sector 33"}},{"province":"sindh","city":"karachi","town":"korangi","name":"zaman_town","label":{"Urdu":"زمان ٹاوَن","Roman Urdu":"Zaman Town","English":"Zaman Town"}},{"province":"sindh","city":"karachi","town":"korangi","name":"hasrat_mohani_colony","label":{"Urdu":"حسرت موہانی کالونی","Roman Urdu":"Hasrat Mohani Colony","English":"Hasrat Mohani Colony"}},{"province":"sindh","city":"karachi","town":"baldia","name":"gulshan_e_ghazi","label":{"Urdu":"گلشن غازی","Roman Urdu":"Gulshan-e-Ghazi","English":"Gulshan-e-Ghazi"}},{"province":"sindh","city":"karachi","town":"baldia","name":"ittehad_town","label":{"Urdu":"اتحاد ٹاوَن","Roman Urdu":"Ittehad Town","English":"Ittehad Town"}},{"province":"sindh","city":"karachi","town":"baldia","name":"islam_nagar","label":{"Urdu":"اسلام نگر","Roman Urdu":"Islam Nagar","English":"Islam Nagar"}},{"province":"sindh","city":"karachi","town":"baldia","name":"nai_abadi","label":{"Urdu":"نئی آبادی","Roman Urdu":"Nai Abadi","English":"Nai Abadi"}},{"province":"sindh","city":"karachi","town":"baldia","name":"saeedabad","label":{"Urdu":"سعید آباد","Roman Urdu":"Saeedabad","English":"Saeedabad"}},{"province":"sindh","city":"karachi","town":"baldia","name":"muslim_mujahid_colony","label":{"Urdu":"مسلم مجاہد کالونی","Roman Urdu":"Muslim Mujahid Colony","English":"Muslim Mujahid Colony"}},{"province":"sindh","city":"karachi","town":"baldia","name":"muhajir_camp","label":{"Urdu":"مہاجر کیمپ","Roman Urdu":"Muhajir Camp","English":"Muhajir Camp"}},{"province":"sindh","city":"karachi","town":"baldia","name":"rasheedabad","label":{"Urdu":"رشید آباد","Roman Urdu":"Rasheedabad","English":"Rasheedabad"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"ibrahim_hyderi","label":{"Urdu":"ابراہیم حیدری","Roman Urdu":"Ibrahim Hyderi","English":"Ibrahim Hyderi"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"rehri","label":{"Urdu":"رہڑی","Roman Urdu":"Rehri","English":"Rehri"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"cattle_colony","label":{"Urdu":"کیٹل کالونی","Roman Urdu":"Cattle Colony","English":"Cattle Colony"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"qaidabad","label":{"Urdu":"قائدآباد","Roman Urdu":"Qaidabad","English":"Qaidabad"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"landhi_colony","label":{"Urdu":"لانڈھی کالونی","Roman Urdu":"Landhi Colony","English":"Landhi Colony"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"gulshan_e_hadeed","label":{"Urdu":"گلشن حدید","Roman Urdu":"Gulshan-e-Hadeed","English":"Gulshan-e-Hadeed"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"gaghar","label":{"Urdu":"گگر","Roman Urdu":"Gaghar","English":"Gaghar"}},{"province":"sindh","city":"karachi","town":"gadap","name":"murad_memon_goth","label":{"Urdu":"مراد میمن گوٹھ","Roman Urdu":"Murad Memon Goth","English":"Murad Memon Goth"}},{"province":"sindh","city":"karachi","town":"gadap","name":"darsano_chana","label":{"Urdu":"درشانو شنو","Roman Urdu":"Darsano Chana","English":"Darsano Chana"}},{"province":"sindh","city":"karachi","town":"gadap","name":"gujro","label":{"Urdu":"گجرو","Roman Urdu":"Gujro","English":"Gujro"}},{"province":"sindh","city":"karachi","town":"gadap","name":"songal","label":{"Urdu":"سنگل","Roman Urdu":"Songal","English":"Songal"}},{"province":"sindh","city":"karachi","town":"gadap","name":"maymarabad","label":{"Urdu":"معمار آباد","Roman Urdu":"Maymarabad","English":"Maymarabad"}},{"province":"sindh","city":"karachi","town":"gadap","name":"yousuf_goth","label":{"Urdu":"یوسف گوٹھ","Roman Urdu":"Yousuf Goth","English":"Yousuf Goth"}},{"province":"sindh","city":"karachi","town":"gadap","name":"manghopir","label":{"Urdu":"منگھوپیر","Roman Urdu":"Manghopir","English":"Manghopir"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"azizabad","label":{"Urdu":"عزیز آباد","Roman Urdu":"Azizabad","English":"Azizabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"karimabad","label":{"Urdu":"کریم آباد","Roman Urdu":"Karimabad","English":"Karimabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"aisha_manzil","label":{"Urdu":"عائشہ منزل","Roman Urdu":"Aisha Manzil","English":"Aisha Manzil"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"ancholi","label":{"Urdu":"انچولی","Roman Urdu":"Ancholi","English":"Ancholi"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"naseerabad","label":{"Urdu":"نصیرآباد","Roman Urdu":"Naseerabad","English":"Naseerabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"yaseenabad","label":{"Urdu":"یاسین آباد","Roman Urdu":"Yaseenabad","English":"Yaseenabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"water_pump","label":{"Urdu":"واٹرپمپ","Roman Urdu":"Water Pump","English":"Water Pump"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"shafiq_mill_colony","label":{"Urdu":"شفیق مل کالونی","Roman Urdu":"Shafiq Mill Colony","English":"Shafiq Mill Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"delhi_mercantile_society","label":{"Urdu":"دہلی مرچنٹائل سوسائٹی","Roman Urdu":"Delhi Mercantile Society","English":"Delhi Mercantile Society"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"civic_centre","label":{"Urdu":"سوک سینٹر","Roman Urdu":"Civic Centre","English":"Civic Centre"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"pir_ilahi_buksh_colony","label":{"Urdu":"پیر الہی بخش کالونی","Roman Urdu":"Pir Ilahi Buksh Colony","English":"Pir Ilahi Buksh Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"essa_nagri","label":{"Urdu":"عیسی نگری","Roman Urdu":"Essa Nagri","English":"Essa Nagri"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gulshan_e_iqbal","label":{"Urdu":"گلشن اقبال","Roman Urdu":"Gulshan-e-Iqbal","English":"Gulshan-e-Iqbal"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gillani_railway_station","label":{"Urdu":"گیلانی ریلوے اسٹیشن","Roman Urdu":"Gillani Railway Station","English":"Gillani Railway Station"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"shanti_nagar","label":{"Urdu":"شانتی نگر","Roman Urdu":"Shanti Nagar","English":"Shanti Nagar"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"jamali_colony","label":{"Urdu":"جمالی کالونی","Roman Urdu":"Jamali Colony","English":"Jamali Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gulshan_e_iqbal_ii","label":{"Urdu":"گلشن اقبال 2","Roman Urdu":"Gulshan-e-Iqbal II","English":"Gulshan-e-Iqbal II"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"pehlwan_goth","label":{"Urdu":"پہلوان گوٹھ","Roman Urdu":"Pehlwan Goth","English":"Pehlwan Goth"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"matrovil_colony","label":{"Urdu":"میٹروویل کالونی","Roman Urdu":"Matrovil Colony","English":"Matrovil Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gulzar_e_hijri","label":{"Urdu":"گلزار ہجری","Roman Urdu":"Gulzar-e-Hijri","English":"Gulzar-e-Hijri"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"safooran_goth","label":{"Urdu":"صفورا گوٹھ","Roman Urdu":"Safooran Goth","English":"Safooran Goth"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"akhtar_colony","label":{"Urdu":"اختر کالونی","Roman Urdu":"Akhtar Colony","English":"Akhtar Colony"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"manzoor_colony","label":{"Urdu":"منظور کالونی","Roman Urdu":"Manzoor Colony","English":"Manzoor Colony"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"azam_basti","label":{"Urdu":"اعظم بستی","Roman Urdu":"Azam Basti","English":"Azam Basti"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"chanesar_goth","label":{"Urdu":"چنیسر گوٹھ","Roman Urdu":"Chanesar Goth","English":"Chanesar Goth"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"mahmudabad","label":{"Urdu":"محمودآباد","Roman Urdu":"Mahmudabad","English":"Mahmudabad"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"pechs","label":{"Urdu":"پی۔ای۔سی۔ایچ۔ایس","Roman Urdu":"P.E.C.H.S.","English":"P.E.C.H.S."}},{"province":"sindh","city":"karachi","town":"jamshed","name":"pechs_ii","label":{"Urdu":"پی۔ای۔سی۔ایچ۔ایس 2","Roman Urdu":"P.E.C.H.S. II","English":"P.E.C.H.S. II"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"jut_line","label":{"Urdu":"جٹ لائن","Roman Urdu":"Jut Line","English":"Jut Line"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"central_jacob_lines","label":{"Urdu":"سینٹرل جیکب لائن","Roman Urdu":"Central Jacob Lines","English":"Central Jacob Lines"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"jamshed_quarters","label":{"Urdu":"جمشید کوارٹر","Roman Urdu":"Jamshed Quarters","English":"Jamshed Quarters"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"garden_east","label":{"Urdu":"گارڈن ایسٹ","Roman Urdu":"Garden East","English":"Garden East"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"soldier_bazar","label":{"Urdu":"سولجر بازار","Roman Urdu":"Soldier Bazar","English":"Soldier Bazar"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"pakistan_quarters","label":{"Urdu":"پاکستان کوارٹر","Roman Urdu":"Pakistan Quarters","English":"Pakistan Quarters"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"bhutta_village","label":{"Urdu":"بھٹا ولیج","Roman Urdu":"Bhutta Village","English":"Bhutta Village"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"sultanabad","label":{"Urdu":"سلطان آباد","Roman Urdu":"Sultanabad","English":"Sultanabad"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"kiamari_uc","label":{"Urdu":"کیماری یوسی","Roman Urdu":"Kiamari UC","English":"Kiamari UC"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"baba_bhit","label":{"Urdu":"بابا بھٹ","Roman Urdu":"Baba Bhit","English":"Baba Bhit"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"machar_colony","label":{"Urdu":"مچھر کالونی","Roman Urdu":"Machar Colony","English":"Machar Colony"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"maripur","label":{"Urdu":"ماڑی پور","Roman Urdu":"Maripur","English":"Maripur"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"shershah","label":{"Urdu":"شیرشاہ","Roman Urdu":"SherShah","English":"SherShah"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"gabo_pat","label":{"Urdu":"گابو پٹ","Roman Urdu":"Gabo Pat","English":"Gabo Pat"}},{"province":"sindh","city":"karachi","town":"landhi","name":"muzafarabad","label":{"Urdu":"مظفرآباد","Roman Urdu":"Muzafarabad","English":"Muzafarabad"}},{"province":"sindh","city":"karachi","town":"landhi","name":"muslimabad","label":{"Urdu":"مسلم آباد","Roman Urdu":"Muslimabad","English":"Muslimabad"}},{"province":"sindh","city":"karachi","town":"landhi","name":"dawood_chowrangi","label":{"Urdu":"داوَد چورنگی","Roman Urdu":"Dawood Chowrangi","English":"Dawood Chowrangi"}},{"province":"sindh","city":"karachi","town":"landhi","name":"moinabad","label":{"Urdu":"معین آباد","Roman Urdu":"Moinabad","English":"Moinabad"}},{"province":"sindh","city":"karachi","town":"landhi","name":"sharafi_goth","label":{"Urdu":"شرافی گوٹھ","Roman Urdu":"Sharafi Goth","English":"Sharafi Goth"}},{"province":"sindh","city":"karachi","town":"landhi","name":"bhutto_nagar","label":{"Urdu":"بھٹو نگر","Roman Urdu":"Bhutto Nagar","English":"Bhutto Nagar"}},{"province":"sindh","city":"karachi","town":"landhi","name":"khawaja_ajmeer_colony","label":{"Urdu":"خواجہ اجمیر کالونی","Roman Urdu":"Khawaja Ajmeer Colony","English":"Khawaja Ajmeer Colony"}},{"province":"sindh","city":"karachi","town":"landhi","name":"landhi_uc","label":{"Urdu":"لانڈھی یوسی","Roman Urdu":"Landhi UC","English":"Landhi UC"}},{"province":"sindh","city":"karachi","town":"landhi","name":"awami_colony","label":{"Urdu":"عوامی کالونی","Roman Urdu":"Awami Colony","English":"Awami Colony"}},{"province":"sindh","city":"karachi","town":"landhi","name":"burmee_colony","label":{"Urdu":"برمی کالونی","Roman Urdu":"Burmee Colony","English":"Burmee Colony"}},{"province":"sindh","city":"karachi","town":"landhi","name":"korangi_uc","label":{"Urdu":"کورنگی یوسی","Roman Urdu":"Korangi UC","English":"Korangi UC"}},{"province":"sindh","city":"karachi","town":"landhi","name":"sherabad","label":{"Urdu":"شیرآباد","Roman Urdu":"Sherabad","English":"Sherabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"rizvia_society","label":{"Urdu":"رضویہ سوسائٹی","Roman Urdu":"Rizvia Society","English":"Rizvia Society"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"firdous_colony","label":{"Urdu":"فردوس کالونی","Roman Urdu":"Firdous Colony","English":"Firdous Colony"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"super_market","label":{"Urdu":"سپر مارکیٹ","Roman Urdu":"Super Market","English":"Super Market"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"dak_khana","label":{"Urdu":"دک کھانہ","Roman Urdu":"Dak Khana","English":"Dak Khana"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"qasimabad","label":{"Urdu":"قاسم آباد","Roman Urdu":"Qasimabad","English":"Qasimabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"bandhani_colony","label":{"Urdu":"بندھانی کالونی","Roman Urdu":"Bandhani Colony","English":"Bandhani Colony"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"sharifabad","label":{"Urdu":"شریف آباد","Roman Urdu":"Sharifabad","English":"Sharifabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"commercial_area","label":{"Urdu":"کمرشل ایریا","Roman Urdu":"Commercial Area","English":"Commercial Area"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"mujahid_colony","label":{"Urdu":"مجاہد کالونی","Roman Urdu":"Mujahid Colony","English":"Mujahid Colony"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"nazimabad","label":{"Urdu":"ناظم آباد","Roman Urdu":"Nazimabad","English":"Nazimabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"abbasi_shaheed","label":{"Urdu":"عباسی شہید","Roman Urdu":"Abbasi Shaheed","English":"Abbasi Shaheed"}},{"province":"sindh","city":"karachi","town":"lyari","name":"agra_taj_colony","label":{"Urdu":"آگرہ تاج کالونی","Roman Urdu":"Agra Taj Colony","English":"Agra Taj Colony"}},{"province":"sindh","city":"karachi","town":"lyari","name":"daryaabad","label":{"Urdu":"دریاآباد","Roman Urdu":"Daryaabad","English":"Daryaabad"}},{"province":"sindh","city":"karachi","town":"lyari","name":"nawabad","label":{"Urdu":"نواآباد","Roman Urdu":"Nawabad","English":"Nawabad"}},{"province":"sindh","city":"karachi","town":"lyari","name":"khada_memon_society","label":{"Urdu":"خدا- میمن- سوساَٹی","Roman Urdu":"Khada Memon Society","English":"Khada Memon Society"}},{"province":"sindh","city":"karachi","town":"lyari","name":"baghdadi","label":{"Urdu":"بغدادی","Roman Urdu":"Baghdadi","English":"Baghdadi"}},{"province":"sindh","city":"karachi","town":"lyari","name":"shah_baig_line","label":{"Urdu":"شاھ باغ لائن","Roman Urdu":"Shah Baig Line","English":"Shah Baig Line"}},{"province":"sindh","city":"karachi","town":"lyari","name":"bihar_colony","label":{"Urdu":"بہار کالونی","Roman Urdu":"Bihar Colony","English":"Bihar Colony"}},{"province":"sindh","city":"karachi","town":"lyari","name":"ragiwara","label":{"Urdu":"راگی واڑا","Roman Urdu":"Ragiwara","English":"Ragiwara"}},{"province":"sindh","city":"karachi","town":"lyari","name":"singo_line","label":{"Urdu":"سنگولائن","Roman Urdu":"Singo Line","English":"Singo Line"}},{"province":"sindh","city":"karachi","town":"lyari","name":"chakiwara","label":{"Urdu":"چاکی واڑا","Roman Urdu":"Chakiwara","English":"Chakiwara"}},{"province":"sindh","city":"karachi","town":"lyari","name":"allama_iqbal_colony","label":{"Urdu":"علامہ اقبال کالونی","Roman Urdu":"Allama Iqbal Colony","English":"Allama Iqbal Colony"}},{"province":"sindh","city":"karachi","town":"malir","name":"model_colony","label":{"Urdu":"موڈل کالونی","Roman Urdu":"Model Colony","English":"Model Colony"}},{"province":"sindh","city":"karachi","town":"malir","name":"kala_board","label":{"Urdu":"کالا بورڈ","Roman Urdu":"Kala Board","English":"Kala Board"}},{"province":"sindh","city":"karachi","town":"malir","name":"saudabad","label":{"Urdu":"سعودآباد","Roman Urdu":"Saudabad","English":"Saudabad"}},{"province":"sindh","city":"karachi","town":"malir","name":"khokhra_par","label":{"Urdu":"کھوکھرا پار","Roman Urdu":"Khokhra Par","English":"Khokhra Par"}},{"province":"sindh","city":"karachi","town":"malir","name":"jafar_e_tayyar","label":{"Urdu":"جعفر تیار","Roman Urdu":"Jafar-e-Tayyar","English":"Jafar-e-Tayyar"}},{"province":"sindh","city":"karachi","town":"malir","name":"gharibabad","label":{"Urdu":"غریب آباد","Roman Urdu":"Gharibabad","English":"Gharibabad"}},{"province":"sindh","city":"karachi","town":"malir","name":"ghazi_brohi_goth","label":{"Urdu":"غازی بروہی گوٹھ","Roman Urdu":"Ghazi Brohi Goth","English":"Ghazi Brohi Goth"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"kalyana","label":{"Urdu":"کالیانہ","Roman Urdu":"Kalyana","English":"Kalyana"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"sir_syed_colony","label":{"Urdu":"سر سید کالونی","Roman Urdu":"Sir Syed Colony","English":"Sir Syed Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"fatima_jinnah_colony","label":{"Urdu":"فاطمہ جناح کالونی","Roman Urdu":"Fatima Jinnah Colony","English":"Fatima Jinnah Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"godhra","label":{"Urdu":"گودھرا","Roman Urdu":"Godhra","English":"Godhra"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"abu_zar_ghaffari","label":{"Urdu":"ابو زر غفاری","Roman Urdu":"Abu Zar Ghaffari","English":"Abu Zar Ghaffari"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"hakim_ahsan","label":{"Urdu":"حاکم احسان","Roman Urdu":"Hakim Ahsan","English":"Hakim Ahsan"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"madina_colony","label":{"Urdu":"مدینہ کالونی","Roman Urdu":"Madina Colony","English":"Madina Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"faisal_colony","label":{"Urdu":"فیصل کالونی","Roman Urdu":"Faisal Colony","English":"Faisal Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"khamiso_goth","label":{"Urdu":"خمیسو گوٹھ","Roman Urdu":"Khamiso Goth","English":"Khamiso Goth"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"mustufa_colony","label":{"Urdu":"مصطفی کالونی","Roman Urdu":"Mustufa Colony","English":"Mustufa Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"khawaja_ajmeer_nagri","label":{"Urdu":"خواجہ اجمیر نگری","Roman Urdu":"Khawaja Ajmeer Nagri","English":"Khawaja Ajmeer Nagri"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"gulshan_e_saeed","label":{"Urdu":"گلشن سعید","Roman Urdu":"Gulshan-e-Saeed","English":"Gulshan-e-Saeed"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"shah_nawaz_bhutto_colony","label":{"Urdu":"شاہ نواز بھٹو کالونی","Roman Urdu":"Shah Nawaz Bhutto Colony","English":"Shah Nawaz Bhutto Colony"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"paposh_nagar","label":{"Urdu":"پاپوش نگر","Roman Urdu":"Paposh Nagar","English":"Paposh Nagar"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"pahar_ganj","label":{"Urdu":"پہاڑ گنج","Roman Urdu":"Pahar Ganj","English":"Pahar Ganj"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"khandu_goth","label":{"Urdu":"کھنڑو گوٹھ","Roman Urdu":"Khandu Goth","English":"Khandu Goth"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"hyderi","label":{"Urdu":"حیدری","Roman Urdu":"Hyderi","English":"Hyderi"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"sakhi_hassan","label":{"Urdu":"سخی حسن","Roman Urdu":"Sakhi Hassan","English":"Sakhi Hassan"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"farooq_e_azam","label":{"Urdu":"فاروق اعظم","Roman Urdu":"Farooq-e-Azam","English":"Farooq-e-Azam"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"nusrat_bhutto_colony","label":{"Urdu":"نصرت بھٹو کالونی","Roman Urdu":"Nusrat Bhutto Colony","English":"Nusrat Bhutto Colony"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"shadman_town","label":{"Urdu":"شادمان ٹاوَن","Roman Urdu":"Shadman Town","English":"Shadman Town"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"buffer_zone","label":{"Urdu":"بفرزون","Roman Urdu":"Buffer Zone","English":"Buffer Zone"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"buffer_zone_ii","label":{"Urdu":"بفرزون 2","Roman Urdu":"Buffer Zone II","English":"Buffer Zone II"}},{"province":"sindh","city":"karachi","town":"orangi","name":"mominabad","label":{"Urdu":"مومن آباد","Roman Urdu":"Mominabad","English":"Mominabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"haryana_colony","label":{"Urdu":"حریانہ کالونی","Roman Urdu":"Haryana Colony","English":"Haryana Colony"}},{"province":"sindh","city":"karachi","town":"orangi","name":"hanifabad","label":{"Urdu":"حنیف آباد","Roman Urdu":"Hanifabad","English":"Hanifabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"mohammad_nagar","label":{"Urdu":"محمد نگر","Roman Urdu":"Mohammad Nagar","English":"Mohammad Nagar"}},{"province":"sindh","city":"karachi","town":"orangi","name":"madina_colony_orangi","label":{"Urdu":"مدینہ کالونی اورنگی","Roman Urdu":"Madina Colony Orangi","English":"Madina Colony Orangi"}},{"province":"sindh","city":"karachi","town":"orangi","name":"ghaziabad","label":{"Urdu":"غازی آباد","Roman Urdu":"Ghaziabad","English":"Ghaziabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"chisti_nagar","label":{"Urdu":"چشتی نگر","Roman Urdu":"Chisti Nagar","English":"Chisti Nagar"}},{"province":"sindh","city":"karachi","town":"orangi","name":"bilal_colony_orangi","label":{"Urdu":"بلال کالونی اورنگی","Roman Urdu":"Bilal Colony Orangi","English":"Bilal Colony Orangi"}},{"province":"sindh","city":"karachi","town":"orangi","name":"iqbal_baloch_colony","label":{"Urdu":"اقبال بلوچ کالونی","Roman Urdu":"Iqbal Baloch Colony","English":"Iqbal Baloch Colony"}},{"province":"sindh","city":"karachi","town":"orangi","name":"ghabool_town","label":{"Urdu":"گبول ٹاوَن","Roman Urdu":"Ghabool Town","English":"Ghabool Town"}},{"province":"sindh","city":"karachi","town":"orangi","name":"data_nagar","label":{"Urdu":"داتا نگر","Roman Urdu":"Data Nagar","English":"Data Nagar"}},{"province":"sindh","city":"karachi","town":"orangi","name":"mujahidabad","label":{"Urdu":"مجاہد آباد","Roman Urdu":"Mujahidabad","English":"Mujahidabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"baloch_goth","label":{"Urdu":"بلوچ گوٹھ","Roman Urdu":"Baloch Goth","English":"Baloch Goth"}},{"province":"sindh","city":"karachi","town":"saddar","name":"old_haji_camp","label":{"Urdu":"پرانہ حاجی کیمپ","Roman Urdu":"Old Haji Camp","English":"Old Haji Camp"}},{"province":"sindh","city":"karachi","town":"saddar","name":"garden","label":{"Urdu":"گارڈن","Roman Urdu":"Garden","English":"Garden"}},{"province":"sindh","city":"karachi","town":"saddar","name":"kharadar","label":{"Urdu":"کھارادر","Roman Urdu":"Kharadar","English":"Kharadar"}},{"province":"sindh","city":"karachi","town":"saddar","name":"city_railway_colony","label":{"Urdu":"سٹی ریلوے کالونی","Roman Urdu":"City Railway Colony","English":"City Railway Colony"}},{"province":"sindh","city":"karachi","town":"saddar","name":"nanak_wara","label":{"Urdu":"ناناک واڑا","Roman Urdu":"Nanak Wara","English":"Nanak Wara"}},{"province":"sindh","city":"karachi","town":"saddar","name":"gazdarabad","label":{"Urdu":"گزدرآباد","Roman Urdu":"Gazdarabad","English":"Gazdarabad"}},{"province":"sindh","city":"karachi","town":"saddar","name":"millat_nagar_islam_pura","label":{"Urdu":"ملت نگر اسلام پورا","Roman Urdu":"Millat Nagar/Islam Pura","English":"Millat Nagar/Islam Pura"}},{"province":"sindh","city":"karachi","town":"saddar","name":"saddar_uc","label":{"Urdu":"صدر یو سی","Roman Urdu":"Saddar UC","English":"Saddar UC"}},{"province":"sindh","city":"karachi","town":"saddar","name":"civil_line","label":{"Urdu":"سول لائن","Roman Urdu":"Civil Line","English":"Civil Line"}},{"province":"sindh","city":"karachi","town":"saddar","name":"clifton","label":{"Urdu":"کلفٹن","Roman Urdu":"Clifton","English":"Clifton"}},{"province":"sindh","city":"karachi","town":"saddar","name":"kehkashan","label":{"Urdu":"کہکشان","Roman Urdu":"Kehkashan","English":"Kehkashan"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"natha_khan_goth","label":{"Urdu":"ناتھا خان گوٹھ","Roman Urdu":"Natha Khan Goth","English":"Natha Khan Goth"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"pak_sadat_colony","label":{"Urdu":"پاک صدر کالونی","Roman Urdu":"Pak Sadat Colony","English":"Pak Sadat Colony"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"drigh_colony","label":{"Urdu":"ڈرگ کالونی","Roman Urdu":"Drigh Colony","English":"Drigh Colony"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"raita_plot","label":{"Urdu":"رائتا پلاٹ","Roman Urdu":"Raita Plot","English":"Raita Plot"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"moria_khan_goth","label":{"Urdu":"موریا خان گوٹھ","Roman Urdu":"Moria Khan Goth","English":"Moria Khan Goth"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"rafa_e_aam_society","label":{"Urdu":"رفا عام سوسا ئٹی","Roman Urdu":"Rafa-e-Aam Society","English":"Rafa-e-Aam Society"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"al_falah_society","label":{"Urdu":"الفلاح سوسا ئٹی","Roman Urdu":"Al-Falah Society","English":"Al-Falah Society"}},{"province":"sindh","city":"karachi","town":"site","name":"pak_colony","label":{"Urdu":"پاک کالونی","Roman Urdu":"Pak Colony","English":"Pak Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"old_golimar","label":{"Urdu":"پرانہ گولی مار","Roman Urdu":"Old Golimar","English":"Old Golimar"}},{"province":"sindh","city":"karachi","town":"site","name":"jahanabad","label":{"Urdu":"جہان آباد","Roman Urdu":"Jahanabad","English":"Jahanabad"}},{"province":"sindh","city":"karachi","town":"site","name":"metrovil","label":{"Urdu":"میٹروویل","Roman Urdu":"Metrovil","English":"Metrovil"}},{"province":"sindh","city":"karachi","town":"site","name":"bhawani_chali","label":{"Urdu":"بہوانی چالی","Roman Urdu":"Bhawani Chali","English":"Bhawani Chali"}},{"province":"sindh","city":"karachi","town":"site","name":"frontier_colony","label":{"Urdu":"فرونٹر کالونی","Roman Urdu":"Frontier Colony","English":"Frontier Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"banaras_colony","label":{"Urdu":"بنارس کالونی","Roman Urdu":"Banaras Colony","English":"Banaras Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"qasba_colony","label":{"Urdu":"قصبہ کالونی","Roman Urdu":"Qasba Colony","English":"Qasba Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"islamia_colony","label":{"Urdu":"اسلامیہ کالونی","Roman Urdu":"Islamia Colony","English":"Islamia Colony"}},{"province":"na","city":"na","town":"na","name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}},{"province":"na","city":"na","town":"na","name":"not_applicable","label":{"Urdu":"قابل اطلاق نہیں","Roman Urdu":"Qaabil-e-atlaaq nahi","English":"Not Applicable"}}],"gender":[{"instance":{"openmrs_code":"1534AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"male","label":{"Urdu":"مرد/ لڑکا","Roman Urdu":"Mard/larka","English":"Male"}},{"instance":{"openmrs_code":"1535AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"female","label":{"Urdu":"عورت/لڑکی","Roman Urdu":"Aurat/larki","English":"Female"}},{"instance":{"openmrs_code":"163163AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"transgender","label":{"Urdu":"خواجہ سرہ","Roman Urdu":"Khwaja sira","English":"Transgender"}}],"vaccines":[{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT1","label":{"Urdu":"ٹی ٹی 1","Roman Urdu":"TT1","English":"TT1"}},{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT2","label":{"Urdu":"ٹی ٹی 2","Roman Urdu":"TT2","English":"TT2"}},{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT3","label":{"Urdu":"ٹی ٹی 3","Roman Urdu":"TT3","English":"TT3"}},{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT4","label":{"Urdu":"ٹی ٹی 4","Roman Urdu":"TT4","English":"TT4"}},{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT5","label":{"Urdu":"ٹی ٹی 5","Roman Urdu":"TT5","English":"TT5"}}],"towns":[{"province":"sindh","city":"karachi","name":"korangi","label":{"Urdu":"کورنگی","Roman Urdu":"Korangi","English":"Korangi"}},{"province":"sindh","city":"karachi","name":"landhi","label":{"Urdu":"لانڈھی","Roman Urdu":"Landhi","English":"Landhi"}},{"province":"sindh","city":"karachi","name":"baldia","label":{"Urdu":"بلدیہ","Roman Urdu":"Baldia","English":"Baldia"}},{"province":"sindh","city":"karachi","name":"bin_qasim","label":{"Urdu":"بن قاسم","Roman Urdu":"Bin Qasim","English":"Bin Qasim"}},{"province":"sindh","city":"karachi","name":"gadap","label":{"Urdu":"گڈاپ","Roman Urdu":"Gadap","English":"Gadap"}},{"province":"sindh","city":"karachi","name":"gulberg","label":{"Urdu":"گلبرگ","Roman Urdu":"Gulberg","English":"Gulberg"}},{"province":"sindh","city":"karachi","name":"gulshan","label":{"Urdu":"گلشن","Roman Urdu":"Gulshan","English":"Gulshan"}},{"province":"sindh","city":"karachi","name":"jamshed","label":{"Urdu":"جمشید","Roman Urdu":"Jamshed","English":"Jamshed"}},{"province":"sindh","city":"karachi","name":"kiamari","label":{"Urdu":"کیماری","Roman Urdu":"Kiamari","English":"Kiamari"}},{"province":"sindh","city":"karachi","name":"liaquatabad","label":{"Urdu":"لیاقت آباد","Roman Urdu":"Liaquatabad","English":"Liaquatabad"}},{"province":"sindh","city":"karachi","name":"lyari","label":{"Urdu":"لیاری","Roman Urdu":"Lyari","English":"Lyari"}},{"province":"sindh","city":"karachi","name":"malir","label":{"Urdu":"ملیر","Roman Urdu":"Malir","English":"Malir"}},{"province":"sindh","city":"karachi","name":"new_karachi","label":{"Urdu":"نیو کراچی","Roman Urdu":"New Karachi","English":"New Karachi"}},{"province":"sindh","city":"karachi","name":"north_nazimabad","label":{"Urdu":"نارتھ ناظم آباد","Roman Urdu":"North Nazimabad","English":"North Nazimabad"}},{"province":"sindh","city":"karachi","name":"orangi","label":{"Urdu":"اورنگی","Roman Urdu":"Orangi","English":"Orangi"}},{"province":"sindh","city":"karachi","name":"saddar","label":{"Urdu":"صدر","Roman Urdu":"Saddar","English":"Saddar"}},{"province":"sindh","city":"karachi","name":"shah_faisal","label":{"Urdu":"شاہ فیصل","Roman Urdu":"Shah Faisal","English":"Shah Faisal"}},{"province":"sindh","city":"karachi","name":"site","label":{"Urdu":"سائٹ","Roman Urdu":"S.I.T.E.","English":"S.I.T.E."}},{"province":"na","city":"na","name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}},{"province":"na","city":"na","name":"not_applicable","label":{"Urdu":"قابل اطلاق نہیں","Roman Urdu":"Qaabil-e-atlaaq nahi","English":"Not Applicable"}}],"cities":[{"province":"sindh","name":"karachi","label":{"Urdu":"کراچی","Roman Urdu":"Karachi","English":"Karachi"}},{"province":"punjab","name":"hafizabad","label":{"Urdu":"حافظ آباد","Roman Urdu":"Hafizabad","English":"Hafizabad"}},{"province":"punjab","name":"muzaffargarh","label":{"Urdu":"مظفر گڑھ","Roman Urdu":"Muzaffargarh","English":"Muzaffargarh"}},{"province":"na","name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}},{"province":"na","name":"not_applicable","label":{"Urdu":"قابل اطلاق نہیں","Roman Urdu":"Not Applicable","English":"Not Applicable"}}],"edd_lmp":[{"instance":{"openmrs_code":"5596AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"edd","label":{"Urdu":"زچگی کی متوقع تاریخ","Roman Urdu":"EDD","English":"EDD"}},{"instance":{"openmrs_code":"1427AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"lmp","label":{"Urdu":"پچھلی مہواری کی تاریخ","Roman Urdu":"LMP","English":"LMP"}},{"instance":{"openmrs_code":"159617AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ultrasound","label":{"Urdu":"الٹرا سائونڈ","Roman Urdu":"Ultrasound","English":"Ultrasound"}},{"instance":{"openmrs_code":"1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"none","label":{"Urdu":"کوئی بھی نہیں","Roman Urdu":"Koi bhi nahi","English":"None of the above"}}],"ethnicity":[{"instance":{"openmrs_code":"163215AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"punjabi","label":{"Urdu":"پنجابی","Roman Urdu":"Punjabi","English":"Punjabi"}},{"instance":{"openmrs_code":"163216AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pushtuns","label":{"Urdu":"پشتون","Roman Urdu":"Pushtun","English":"Pushtun"}},{"instance":{"openmrs_code":"163217AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"sindhi","label":{"Urdu":"سندھی","Roman Urdu":"Sindhi","English":"Sindhi"}},{"instance":{"openmrs_code":"163218AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"saraiki","label":{"Urdu":"سرائیکی","Roman Urdu":"Saraiki","English":"Saraiki"}},{"instance":{"openmrs_code":"163219AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"muhajir","label":{"Urdu":"مہاجر","Roman Urdu":"Muhajir","English":"Muhajir"}},{"instance":{"openmrs_code":"163220AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"balochi","label":{"Urdu":"بلوچی","Roman Urdu":"Balochi","English":"Balochi"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}}],"yes_no":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}]},"instance":{"encounter_type":"Woman TT enrollment"},"version":"201604260935","id_string":"woman_tt_enrollement_form","type":"survey","children":[{"type":"hidden","name":"provider_uc"},{"type":"hidden","name":"provider_town"},{"type":"hidden","name":"provider_city"},{"type":"hidden","name":"provider_province"},{"type":"hidden","name":"provider_id"},{"instance":{"openmrs_entity_id":"location_id","openmrs_entity":"encounter"},"type":"hidden","name":"provider_location_id"},{"instance":{"openmrs_entity_id":"Program Client ID","openmrs_entity":"person_identifier"},"type":"hidden","name":"existing_program_client_id"},{"type":"hidden","name":"provider_location_name"},{"instance":{"openmrs_entity_id":"gender","openmrs_entity":"person"},"type":"hidden","name":"gender"},{"type":"note","name":"provider_location_note","label":{"Urdu":"شہر: ${provider_city} ; ٹائون: ${provider_town} ; یوسی: ${provider_uc} ; سینٹرکا نام: ${provider_location_name}","English":"City: ${provider_city} ; Town: ${provider_town} ; UC: ${provider_uc} ; Center Name: ${provider_location_name}","Roman Urdu":"Shehr: ${provider_city} ; Town: ${provider_town} ; UC: ${provider_uc} ; Center ka naam: ${provider_location_name}"}},{"instance":{"openmrs_entity_id":"163137AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"start","name":"start"},{"instance":{"openmrs_entity_id":"163138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"end","name":"end"},{"instance":{"openmrs_entity_id":"163286AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"today","name":"today"},{"instance":{"openmrs_entity_id":"163149AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"deviceid","name":"deviceid"},{"instance":{"openmrs_entity_id":"163150AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"subscriberid","name":"subscriberid"},{"instance":{"openmrs_entity_id":"163151AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"simserial","name":"simserial"},{"instance":{"openmrs_entity_id":"163152AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"phonenumber","name":"phonenumber"},{"name":"client_reg_date","hint":{"Urdu":"خاتون کو ویکسین لگنے کی تاریخ","English":"Date on which woman was vaccinated","Roman Urdu":"Khatoon ko vaccine lagnay ki tareekh"},"bind":{"jr:constraintMsg":{"Urdu":"پروگرام مین اندراج کی تاریخ مستقبل کی نہیں ہوسکتی","English":"Client registration date cannot be in the future","Roman Urdu":"Program mai andraaj ki tareekh mustaqbil ki nahi hosakti"},"required":"yes","constraint":".<=${today}"},"label":{"Urdu":"پروگرام میں اندراج کی تاریخ","English":"Program Registration date","Roman Urdu":"Program mai andraj ki tareekh"},"instance":{"openmrs_entity_id":"encounter_date","openmrs_entity":"encounter"},"type":"date"},{"bind":{"required":"yes"},"type":"note","name":"program_client_id","label":{"Urdu":"پروگرام آئی ڈی: ${existing_program_client_id}","Roman Urdu":"Program ID: ${existing_program_client_id}","English":"Program ID: ${existing_program_client_id}"}},{"bind":{"jr:constraintMsg":{"Urdu":"نمبر آٹھ ہندسوں پر مشتمل ہونا چاہئے","English":"Number should be 8 digits","Roman Urdu":"Number 8 hindason par mushtamil hona chahiye"},"required":"yes","constraint":"string-length(.) = 8"},"type":"integer","instance":{"openmrs_entity_id":"EPI Card Number","openmrs_entity":"person_attribute"},"name":"epi_card_number","label":{"Urdu":"ای پی آئی کارڈ نمبر","English":"EPI Card Number","Roman Urdu":"EPI Card Number"}},{"bind":{"jr:constraintMsg":{"Urdu":"درج کردہ معلومات درست نہیں","English":"Invalid data entered","Roman Urdu":"Darj karda maaloomaat durust nahi"},"required":"yes","constraint":"regex(., '^[a-zA-Z\\s\\.\\-]{3,25}$')"},"type":"text","instance":{"openmrs_entity_id":"first_name","openmrs_entity":"person"},"name":"first_name","label":{"Urdu":"نام","English":"First Name","Roman Urdu":"Naam"}},{"default":"yes","label":{"Urdu":"کیا تاریخ پیدائش معلوم ہے؟","Roman Urdu":"Kya tareekh-e-pedaaish maloom hai?","English":"Is birthdate known?"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}],"name":"member_birth_date_known"},{"default":"yes","bind":{"jr:constraintMsg":{"Urdu":"یہ تاریخ مستقبل کی نہیں ہوسکتی","Roman Urdu":"Ye tareekh mustaqbil ki nahi hosakti","English":"This date cannot be in the future"},"relevant":"selected(${member_birth_date_known}, 'yes')","constraint":".<=${today}"},"type":"date","name":"member_birth_date","label":{"Urdu":"تاریخ پیدائش","Roman Urdu":"Tareekh-e-pedaaish","English":"Birth date"}},{"default":"yes","bind":{"relevant":"selected(${member_birth_date_known}, 'no')"},"type":"integer","name":"age","label":{"Urdu":"عمر (سالوں میں)","Roman Urdu":"Umar (saalon me)","English":"Age (years)"}},{"bind":{"calculate":"int((${today} - ${member_birth_date}) div 365.25)"},"type":"calculate","name":"calc_age"},{"bind":{"calculate":"format-date (date(${today} - int(${age} * 365.25)), '%Y-%m-%d')"},"type":"calculate","name":"calc_dob"},{"bind":{"calculate":"if(${member_birth_date_known}='yes', ${member_birth_date}, ${calc_dob})"},"type":"calculate","name":"calc_dob_confirm","instance":{"openmrs_entity_id":"birthdate","openmrs_entity":"person"}},{"bind":{"calculate":"if(${member_birth_date_known} = 'yes', '0', '1')"},"type":"calculate","name":"calc_dob_estimated","instance":{"openmrs_entity_id":"birthdate_estimated","openmrs_entity":"person"}},{"bind":{"calculate":"if(${member_birth_date_known}='yes', ${calc_age}, ${age})"},"type":"calculate","name":"calc_age_confirm","instance":{"openmrs_entity_id":"154384AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"type":"note","name":"birth_date_note","label":{"Urdu":"کلائنٹ کی تاریخ پیدائش: ${calc_dob_confirm}","English":"Date of Birth: ${calc_dob_confirm}","Roman Urdu":"Member ki Tareekh-e-pedaaish: ${calc_dob_confirm}"}},{"type":"note","name":"note_age","label":{"Urdu":"عمر: ${calc_age_confirm} سال","English":"Age: ${calc_age_confirm} years","Roman Urdu":"Umar: ${calc_age_confirm} saal"}},{"default":"female","bind":{"required":"yes","calculate":"concat(\"female\",\"\")"},"type":"calculate","name":"gender1","label":{"Urdu":"جنس","Roman Urdu":"Jins","English":"Gender"}},{"bind":{"jr:constraintMsg":{"Urdu":"درج کردہ معلومات درست نہیں","English":"Invalid data entered","Roman Urdu":"Darj karda maaloomaat durust nahi"},"constraint":"regex(., '^[a-zA-Z\\s\\.\\-]{3,25}$')"},"type":"text","instance":{"openmrs_entity_id":"1594AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"father_name","label":{"Urdu":"والد کا نام","English":"Father's Name","Roman Urdu":"Waalid ka naam"}},{"label":{"Urdu":"کیا آپ شادی شدہ ہیں؟","English":"Are you married?","Roman Urdu":"Kya aap shaadi shuda hain?"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}],"name":"marriage"},{"bind":{"jr:constraintMsg":{"Urdu":"درج کردہ معلومات درست نہیں","English":"Invalid data entered","Roman Urdu":"Darj karda maaloomaat durust nahi"},"relevant":"selected(${marriage}, 'yes')","constraint":"regex(., '^[a-zA-Z\\s\\.\\-]{3,25}$')"},"type":"text","instance":{"openmrs_entity_id":"161135AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"husband_name","label":{"Urdu":"شوہر کا نام","English":"Husband's Name","Roman Urdu":"Shohar ka naam"}},{"bind":{"calculate":"if(${marriage} = 'no', ${father_name}, ${husband_name})"},"type":"calculate","name":"last_name","instance":{"openmrs_entity_id":"last_name","openmrs_entity":"person"}},{"control":{"appearance":"minimal"},"name":"ethnicity","bind":{"required":"yes"},"label":{"Urdu":"قومیت","English":"Ethnicity","Roman Urdu":"Qomiat"},"instance":{"openmrs_entity_id":"163153AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"163215AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"punjabi","label":{"Urdu":"پنجابی","Roman Urdu":"Punjabi","English":"Punjabi"}},{"instance":{"openmrs_code":"163216AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pushtuns","label":{"Urdu":"پشتون","Roman Urdu":"Pushtun","English":"Pushtun"}},{"instance":{"openmrs_code":"163217AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"sindhi","label":{"Urdu":"سندھی","Roman Urdu":"Sindhi","English":"Sindhi"}},{"instance":{"openmrs_code":"163218AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"saraiki","label":{"Urdu":"سرائیکی","Roman Urdu":"Saraiki","English":"Saraiki"}},{"instance":{"openmrs_code":"163219AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"muhajir","label":{"Urdu":"مہاجر","Roman Urdu":"Muhajir","English":"Muhajir"}},{"instance":{"openmrs_code":"163220AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"balochi","label":{"Urdu":"بلوچی","Roman Urdu":"Balochi","English":"Balochi"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}}]},{"bind":{"relevant":"selected(${ethnicity}, 'other')"},"type":"text","instance":{"openmrs_entity":"concept","openmrs_entity_id":"160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"163330AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ethnicity_other","label":{"Urdu":"وضاحت کریں","Roman Urdu":"Wazaahat karain","English":"Please specify:"}},{"control":{"appearance":"minimal"},"name":"province","default":"${provider_province}","bind":{"required":"yes"},"label":{"Urdu":"صوبہ","Roman Urdu":"Suba","English":"Province"},"instance":{"openmrs_entity":"person_address","openmrs_entity_id":"stateProvince","openmrs_entity_parent":"usual_residence"},"type":"select one","children":[{"name":"kpk","label":{"Urdu":"خیبر پختون خواہ","English":"Khyber Pakhtunkhwa","Roman Urdu":"Khyber Pakhtunkhwa"}},{"name":"sindh","label":{"Urdu":"سندھ","English":"Sindh","Roman Urdu":"Sindh"}},{"name":"balochistan","label":{"Urdu":"بلوچستان","English":"Balochistan","Roman Urdu":"Balochistan"}},{"name":"punjab","label":{"Urdu":"پنجاب","English":"Punjab","Roman Urdu":"Punjab"}},{"name":"gilgit_baltistan","label":{"Urdu":"گلگت بلتستان","English":"Gilgit Baltistan","Roman Urdu":"Gilgit Baltistan"}},{"name":"kashmir","label":{"Urdu":"کشمیر","English":"Kashmir","Roman Urdu":"Kashmir"}},{"name":"fata","label":{"Urdu":"فاٹا","English":"FATA","Roman Urdu":"FATA"}},{"name":"out_of_country","label":{"Urdu":"ملک سے باہر","English":"Out of Country","Roman Urdu":"Mulk se baahir"}}]},{"control":{"appearance":"minimal"},"name":"city_village","choice_filter":"province=${province} or province='na'","default":"${provider_city}","bind":{"required":"yes"},"label":{"Urdu":"شہر","Roman Urdu":"Shehr","English":"City"},"itemset":"cities","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"cityVillage","openmrs_entity_parent":"usual_residence"},"type":"select one"},{"control":{"appearance":"minimal"},"name":"town","choice_filter":"(province=${province} and city=${city_village} ) or city='na'","bind":{"required":"yes"},"label":{"Urdu":"ٹاٰئون/ قصبہ/ بستی","Roman Urdu":"Town / Qasbah / Basti","English":"Town"},"itemset":"towns","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"town","openmrs_entity_parent":"usual_residence"},"type":"select one"},{"control":{"appearance":"minimal"},"name":"union_council","choice_filter":"(province=${province} and city=${city_village} and town=${town}) or town='na'","bind":{"required":"yes"},"label":{"Urdu":"یونین کونسل","Roman Urdu":"Union Council","English":"Union Council"},"itemset":"ucs","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"subTown","openmrs_entity_parent":"usual_residence"},"type":"select one"},{"bind":{"required":"yes"},"type":"text","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"address1","openmrs_entity_parent":"usual_residence"},"name":"address1","label":{"Urdu":"گھر کا پتہ","Roman Urdu":"Ghar ka pata","English":"Home Address"}},{"instance":{"openmrs_entity":"person_address","openmrs_entity_id":"landmark","openmrs_entity_parent":"usual_residence"},"type":"text","name":"landmark","label":{"Urdu":"گھر کے قریب کوئی مشہور جگہ","Roman Urdu":"Ghar ke qareeb koi mashoor jagah","English":"Land Mark"}},{"bind":{"calculate":"jr:choice-name(${province}, '${province}')"},"type":"calculate","name":"provincename"},{"bind":{"calculate":"jr:choice-name(${city_village}, '${city_village}')"},"type":"calculate","name":"city_villagename"},{"bind":{"calculate":"jr:choice-name(${town}, '${town}')"},"type":"calculate","name":"townname"},{"bind":{"calculate":"jr:choice-name(${union_council}, '${union_council}')"},"type":"calculate","name":"union_councilname"},{"type":"note","name":"address","label":{"Urdu":"پتہ: ${address1}, ${landmark}, ${union_councilname}, ${townname}, ${city_villagename}, ${provincename}","English":"Address: ${address1}, ${landmark}, ${union_councilname}, ${townname}, ${city_villagename}, ${provincename}","Roman Urdu":"Pata: ${address1}, ${landmark}, ${union_councilname}, ${townname}, ${city_villagename}, ${provincename}"}},{"instance":{"openmrs_entity_id":"163277AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"geopoint","name":"centre_gps","label":{"Urdu":"حاصل کردہ معلومات کی جگہ کے GPS کارڈینیٹس درج کریں","English":"Collect GPS coordinates of data entry location","Roman Urdu":"Hasil karda malomaat ki jaga ke GPS coordinates darj karain"}},{"name":"reminders_approval","bind":{"required":"yes"},"label":{"Urdu":"کیا آپ اپنے اگلے دورے کی یاددہانی کے لیے SMS موصول کرنا چاہتی ہیں؟","English":"Are you willing to receive SMS reminders for your next visit?","Roman Urdu":"Kya aap apnay aglay doray ki yaad-dihani ke liye SMS mausool karna chahti hain?"},"instance":{"openmrs_entity_id":"163089AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}]},{"bind":{"jr:constraintMsg":{"Urdu":"فون نمبر گیارہ ہندسوں پر مشتمل اور مندرجہ ذیل شکل میں ہونا چاہئے: *********03","English":"Phone number should be 11 digits in the following format: 03*********","Roman Urdu":"Phone number 11 hindason par mushtamil aur mundarja zail shakal main hona chahiey: 03*********"},"relevant":"${reminders_approval}='yes'","constraint":"regex(., '^03[0-9]{9}$')"},"type":"text","instance":{"openmrs_entity_id":"159635AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"contact_phone_number","label":{"Urdu":"موبائل نمبر:","English":"Mobile Number:","Roman Urdu":"Mobile number:"}},{"instance":{"openmrs_entity_id":"5272AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"label":{"Urdu":"کیا آپ حاملہ ہیں؟","English":"Are you pregnant?","Roman Urdu":"Kia aap haamla hain?"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}],"name":"pregnant"},{"name":"edd_lmp","bind":{"relevant":"selected (${pregnant}, 'yes')"},"label":{"Urdu":"کیا آپ کو اپنی پچھلی ماہواری کی تاریخ، زچگی کی متوقع تاریخ، یا الٹرا سائونڈ کا علم ہے؟","English":"Do you know your LMP, EDD or last Ultrasound information?","Roman Urdu":"Kya aap ko apni pichli mahwaari ki tareekh, zachgi ki mutawaqqa tareekh ya ultrasound ka ilm hai?"},"instance":{"openmrs_entity_id":"160697AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"5596AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"edd","label":{"Urdu":"زچگی کی متوقع تاریخ","Roman Urdu":"EDD","English":"EDD"}},{"instance":{"openmrs_code":"1427AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"lmp","label":{"Urdu":"پچھلی مہواری کی تاریخ","Roman Urdu":"LMP","English":"LMP"}},{"instance":{"openmrs_code":"159617AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ultrasound","label":{"Urdu":"الٹرا سائونڈ","Roman Urdu":"Ultrasound","English":"Ultrasound"}},{"instance":{"openmrs_code":"1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"none","label":{"Urdu":"کوئی بھی نہیں","Roman Urdu":"Koi bhi nahi","English":"None of the above"}}]},{"bind":{"jr:constraintMsg":{"Urdu":"زچگی کی متوقع تاریخ ماضی کی نہیں ہو سکتی","Roman Urdu":"Zachgi ki mutawaqqa tareekh maazi ki nahi hosakti","English":"EDD cannot be in the past"},"relevant":"selected (${edd_lmp}, 'edd')","constraint":".>=${today}"},"type":"date","name":"edd","label":{"Urdu":"زچگی کی متوقع تاریخ","Roman Urdu":"Zachgi ki mutawaqqa tareekh","English":"EDD"}},{"bind":{"jr:constraintMsg":{"Urdu":"پچھلی ماہواری کی تاریخ مستقبل کی نہیں ہوسکتی","Roman Urdu":"Pichli mahwaari ki tareekh mustaqbil ki nahi hosakti","English":"LMP cannot be in the future"},"relevant":"selected (${edd_lmp}, 'lmp')","constraint":".<=${today}"},"type":"date","name":"lmp","label":{"Urdu":"پچھلی ماہواری کی تاریخ","Roman Urdu":"Pichli mahwaari ki tareekh","English":"LMP"}},{"bind":{"relevant":"selected (${edd_lmp}, 'ultrasound')"},"type":"date","instance":{"openmrs_entity_id":"163165AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"ultrasound_date","label":{"Urdu":"الٹرا سائونڈ کی تاریخ","English":"Ultrasound Date","Roman Urdu":"Ultrasound ki tareekh"}},{"bind":{"relevant":"selected (${edd_lmp}, 'ultrasound')"},"type":"integer","name":"ultrasound_weeks","label":{"Urdu":"الٹرا سائونڈ کی مدد سے حمل کی مدت [ہفتوں میں]","Roman Urdu":"Ultrasound ki madad se hamal ki muddat (hafton me)","English":"Gestational age determined by ultrasound"}},{"bind":{"calculate":"date(${lmp}+280)"},"type":"calculate","name":"edd_calc_lmp"},{"bind":{"calculate":"date((280-(${ultrasound_weeks}*7)+${ultrasound_date} ))"},"type":"calculate","name":"edd_calc_ultrasound"},{"bind":{"calculate":"format-date(${edd_calc_lmp}, '%Y-%n-%e')"},"type":"calculate","name":"edd_calc_lmp_formatted"},{"bind":{"calculate":"format-date(${edd_calc_ultrasound}, '%Y-%n-%e')"},"type":"calculate","name":"edd_calc_ultrasound_formatted"},{"bind":{"calculate":"date(${edd}-280)"},"type":"calculate","name":"lmp_calc_edd"},{"bind":{"calculate":"date(${ultrasound_date}-(${ultrasound_weeks}*7))"},"type":"calculate","name":"lmp_calc_ultrasound"},{"bind":{"calculate":"format-date(${lmp_calc_edd}, '%Y-%n-%e')"},"type":"calculate","name":"lmp_calc_edd_formatted"},{"bind":{"calculate":"format-date(${lmp_calc_ultrasound}, '%Y-%n-%e')"},"type":"calculate","name":"lmp_calc_ultrasound_formatted"},{"bind":{"calculate":"if(${edd_lmp}='lmp',${edd_calc_lmp_formatted},if(${edd_lmp}='edd',${edd} ,if(${edd_lmp}='ultrasound',${edd_calc_ultrasound_formatted},'')))"},"type":"calculate","name":"final_edd","instance":{"openmrs_entity_id":"5596AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"bind":{"calculate":"if(${edd_lmp}='lmp',${lmp},if(${edd_lmp}='edd',${lmp_calc_edd_formatted} ,if(${edd_lmp}='ultrasound',${lmp_calc_ultrasound_formatted},'')))"},"type":"calculate","name":"final_lmp","instance":{"openmrs_entity_id":"1427AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"bind":{"calculate":"int((${today} - (${edd}-280))div7)"},"type":"calculate","name":"ga_edd"},{"bind":{"calculate":"int((${today} - ${lmp})div7)"},"type":"calculate","name":"ga_lmp"},{"bind":{"calculate":"int((${today} -(${ultrasound_date}-(${ultrasound_weeks}*7)))div7)"},"type":"calculate","name":"ga_ult"},{"bind":{"relevant":"selected (${pregnant}, 'yes')"},"type":"note","name":"final_edd_note","label":{"Urdu":"${final_edd}: زچگی کی متوقع تاریخ","Roman Urdu":"Zachgi ki mutawaqqa tareekh: ${final_edd}","English":"EDD: ${final_edd}"}},{"bind":{"relevant":"selected (${pregnant}, 'yes')"},"type":"note","name":"final_lmp_note","label":{"Urdu":"پچھلی ماہواری کی تاریخ :{final_lmp}$","Roman Urdu":"Pichli mahwaari ki tareekh: ${final_lmp}","English":"LMP: ${final_lmp}"}},{"bind":{"calculate":"if(${edd_lmp}='lmp',${ga_lmp},if(${edd_lmp}='edd',${ga_edd} ,if(${edd_lmp}='ultrasound',${ga_ult},'')))"},"type":"calculate","name":"final_ga","instance":{"openmrs_entity_id":"163166AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"bind":{"relevant":"selected (${pregnant}, 'yes')"},"type":"note","name":"final_ga_note","label":{"Urdu":"حمل کی مُدّت: {final_ga}$ ہفتے","Roman Urdu":"Hamal ki muddat: ${final_ga} weeks","English":"GA: ${final_ga} weeks"}},{"name":"vaccines","bind":{"calculate":"minimal"},"label":{"Urdu":"پچھلی تاریخ جب کسی اور سینٹر پر ٹیکہ لگوایا گیا یا قطرے پلائے گئے","Roman Urdu":"Pichli tareekh jab kissi aur center par teeka lagwaya gaya ya katray pilaey gaye","English":"Retro vaccines"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"984AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1421AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"select all that apply","children":[{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT1","label":{"Urdu":"ٹی ٹی 1","Roman Urdu":"TT1","English":"TT1"}},{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT2","label":{"Urdu":"ٹی ٹی 2","Roman Urdu":"TT2","English":"TT2"}},{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT3","label":{"Urdu":"ٹی ٹی 3","Roman Urdu":"TT3","English":"TT3"}},{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT4","label":{"Urdu":"ٹی ٹی 4","Roman Urdu":"TT4","English":"TT4"}},{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT5","label":{"Urdu":"ٹی ٹی 5","Roman Urdu":"TT5","English":"TT5"}}]},{"bind":{"jr:constraintMsg":{"Urdu":"درج کردہ معلومات درست نہیں","English":"Invalid data entered","Roman Urdu":"Darj karda maaloomaat durust nahi"},"relevant":"selected(${vaccines},'TT1')","constraint":"(.<=${today} and .<=${client_reg_date} and .>=${calc_dob_confirm})"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tt1_retro","label":{"Urdu":"ٹی ٹی 1","Roman Urdu":"TT1","English":"TT1"}},{"bind":{"relevant":"selected(${vaccines},'TT1')","calculate":"1"},"type":"calculate","name":"tt_1_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"درج کردہ معلومات درست نہیں","English":"Invalid data entered","Roman Urdu":"Darj karda maaloomaat durust nahi"},"relevant":"selected(${vaccines},'TT2')","constraint":"(.<=${today} and .>=${tt1_retro} and .>=${calc_dob_confirm} and ((selected(${vaccines}, 'TT1'))))"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tt2_retro","label":{"Urdu":"ٹی ٹی 2","Roman Urdu":"TT2","English":"TT2"}},{"bind":{"relevant":"selected(${vaccines},'TT2')","calculate":"2"},"type":"calculate","name":"tt_2_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"درج کردہ معلومات درست نہیں","English":"Invalid data entered","Roman Urdu":"Darj karda maaloomaat durust nahi"},"relevant":"selected(${vaccines},'TT3')","constraint":"(.<=${today} and .>=${tt2_retro} and .>=${calc_dob_confirm} and ((selected(${vaccines}, 'TT2'))))"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tt3_retro","label":{"Urdu":"ٹی ٹی 3","Roman Urdu":"TT3","English":"TT3"}},{"bind":{"relevant":"selected(${vaccines},'TT3')","calculate":"3"},"type":"calculate","name":"tt_3_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"درج کردہ معلومات درست نہیں","English":"Invalid data entered","Roman Urdu":"Darj karda maaloomaat durust nahi"},"relevant":"selected(${vaccines},'TT4')","constraint":"(.<=${today} and .>=${tt3_retro} and .>=${calc_dob_confirm} and ((selected(${vaccines}, 'TT3'))))"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tt4_retro","label":{"Urdu":"ٹی ٹی 4","Roman Urdu":"TT4","English":"TT4"}},{"bind":{"relevant":"selected(${vaccines},'TT4')","calculate":"4"},"type":"calculate","name":"tt_4_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"name":"vaccines_2","choice_filter":"name = if(selected(${vaccines}, 'TT1'), '', 'TT1') or \nname = if(selected(${vaccines}, 'TT2'), '', 'TT2') or \nname = if(selected(${vaccines}, 'TT3'), '', 'TT3') or \nname = if(selected(${vaccines}, 'TT4'), '', 'TT4') or \nname = if(selected(${vaccines}, 'TT5'), '', 'TT5')","bind":{"required":"yes"},"label":{"Urdu":"آج کون کون سی ویکسین دی گئی ہیں؟","Roman Urdu":"Aaj kon kon si vaccine di gai hain?","English":"Vaccine administered today"},"itemset":"vaccines","instance":{"openmrs_entity":"concept","openmrs_entity_id":"984AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1441AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"select all that apply"},{"bind":{"calculate":"if(selected(${vaccines_2}, 'TT1'),${client_reg_date},'')"},"type":"calculate","name":"tt1","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2},'TT1')","calculate":"1"},"type":"calculate","name":"tt_1_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'TT2'),${client_reg_date},'')"},"type":"calculate","name":"tt2","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2},'TT2')","calculate":"2"},"type":"calculate","name":"tt_2_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'TT3'),${client_reg_date},'')"},"type":"calculate","name":"tt3","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2},'TT3')","calculate":"3"},"type":"calculate","name":"tt_3_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'TT4'),${client_reg_date},'')"},"type":"calculate","name":"tt4","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2},'TT4')","calculate":"4"},"type":"calculate","name":"tt_4_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'TT5'),${client_reg_date},'')"},"type":"calculate","name":"tt5","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2},'TT5')","calculate":"5"},"type":"calculate","name":"tt_5_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"control":{"bodyless":true},"type":"group","children":[{"bind":{"readonly":"true()","calculate":"concat('uuid:', uuid())"},"type":"calculate","name":"instanceID"}],"name":"meta"}]} \ No newline at end of file diff --git a/opensrp-web/src/test/resources/form/woman_enrollment/form.xml b/opensrp-web/src/test/resources/form/woman_enrollment/form.xml deleted file mode 100644 index 6a8a221893..0000000000 --- a/opensrp-web/src/test/resources/form/woman_enrollment/form.xml +++ /dev/null @@ -1,1559 +0,0 @@ -
- - -

خواتین انرولمنٹ فارم برائے ٹی ٹی ٹیکاجات - Woman TT Enrollment Form

-
-
- - کیا تاریخ پیدائش معلوم ہے؟ - Is birthdate known? - - Kya tareekh-e-pedaaish maloom hai? -
- - -
-
-
-
- - کیا آپ شادی شدہ ہیں؟ - Are you married? - - Kya aap shaadi shuda hain? -
- - -
-
-
-
- - کیا آپ اپنے اگلے دورے کی یاددہانی کے لیے SMS موصول کرنا چاہتی ہیں؟ - Are you willing to receive SMS reminders for your next visit? - - Kya aap apnay aglay doray ki yaad-dihani ke liye SMS mausool karna chahti hain? - * -
- - -
-
-
-
- - کیا آپ حاملہ ہیں؟ - Are you pregnant? - - Kia aap haamla hain? -
- - -
-
-
-
- - کیا آپ کو اپنی پچھلی ماہواری کی تاریخ، زچگی کی متوقع تاریخ، یا الٹرا سائونڈ کا علم ہے؟ - Do you know your LMP, EDD or last Ultrasound information? - - Kya aap ko apni pichli mahwaari ki tareekh, zachgi ki mutawaqqa tareekh ya ultrasound ka ilm hai? -
- - - - -
-
-
-
- - پچھلی تاریخ جب کسی اور سینٹر پر ٹیکہ لگوایا گیا یا قطرے پلائے گئے - Retro vaccines - - Pichli tareekh jab kissi aur center par teeka lagwaya gaya ya katray pilaey gaye -
- - - - - -
-
-
-
- - آج کون کون سی ویکسین دی گئی ہیں؟ - Vaccine administered today - - Aaj kon kon si vaccine di gai hain? - * -
- - - ٹی ٹی 1 - TT1 - 84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - TT1 - ٹی ٹی 2 - TT2 - 84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - TT2 - ٹی ٹی 3 - TT3 - 84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - TT3 - ٹی ٹی 4 - TT4 - 84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - TT4 - ٹی ٹی 5 - TT5 - 84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - TT5 -
-
-
- -
diff --git a/opensrp-web/src/test/resources/form/woman_enrollment/form_definition.json b/opensrp-web/src/test/resources/form/woman_enrollment/form_definition.json deleted file mode 100644 index a030da6f81..0000000000 --- a/opensrp-web/src/test/resources/form/woman_enrollment/form_definition.json +++ /dev/null @@ -1,308 +0,0 @@ -{ - "form_data_definition_version" : "1", - "form" : { - "bind_type" : "pkwoman", - "default_bind_path" : "/model/instance/Woman_TT_Enrollment_Form/", - "fields" : [ { - "name" : "id", - "shouldLoadValue" : true - }, { - "name" : "provider_uc", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/provider_uc", - "shouldLoadValue" : true - }, { - "name" : "provider_town", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/provider_town", - "shouldLoadValue" : true - }, { - "name" : "provider_city", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/provider_city", - "shouldLoadValue" : true - }, { - "name" : "provider_province", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/provider_province", - "shouldLoadValue" : true - }, { - "name" : "provider_id", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/provider_id", - "shouldLoadValue" : true - }, { - "name" : "provider_location_id", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/provider_location_id", - "shouldLoadValue" : true - }, { - "name" : "existing_program_client_id", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/existing_program_client_id", - "shouldLoadValue" : true - }, { - "name" : "provider_location_name", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/provider_location_name", - "shouldLoadValue" : true - }, { - "name" : "gender", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/gender", - "shouldLoadValue" : true - }, { - "name" : "provider_location_note", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/provider_location_note" - }, { - "name" : "start", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/start" - }, { - "name" : "end", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/end" - }, { - "name" : "today", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/today" - }, { - "name" : "deviceid", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/deviceid" - }, { - "name" : "subscriberid", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/subscriberid" - }, { - "name" : "simserial", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/simserial" - }, { - "name" : "phonenumber", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/phonenumber" - }, { - "name" : "client_reg_date", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/client_reg_date" - }, { - "name" : "program_client_id", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/program_client_id" - }, { - "name" : "epi_card_number", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/epi_card_number" - }, { - "name" : "first_name", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/first_name" - }, { - "name" : "birth_date_known", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/member_birth_date_known" - }, { - "name" : "birth_date", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/member_birth_date" - }, { - "name" : "age", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/age" - }, { - "name" : "calc_age", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/calc_age" - }, { - "name" : "calc_dob", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/calc_dob" - }, { - "name" : "dob", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/calc_dob_confirm" - }, { - "name" : "calc_dob_estimated", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/calc_dob_estimated" - }, { - "name" : "calc_age_confirm", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/calc_age_confirm" - }, { - "name" : "birth_date_note", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/birth_date_note" - }, { - "name" : "note_age", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/note_age" - }, { - "name" : "gender1", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/gender1" - }, { - "name" : "father_name", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/father_name" - }, { - "name" : "marriage", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/marriage" - }, { - "name" : "husband_name", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/husband_name" - }, { - "name" : "last_name", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/last_name" - }, { - "name" : "ethnicity", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/ethnicity" - }, { - "name" : "ethnicity_other", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/ethnicity_other" - }, { - "name" : "province", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/province" - }, { - "name" : "city_village", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/city_village" - }, { - "name" : "town", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/town" - }, { - "name" : "union_council", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/union_council" - }, { - "name" : "address1", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/address1" - }, { - "name" : "landmark", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/landmark" - }, { - "name" : "provincename", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/provincename" - }, { - "name" : "city_villagename", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/city_villagename" - }, { - "name" : "townname", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/townname" - }, { - "name" : "union_councilname", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/union_councilname" - }, { - "name" : "address", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/address" - }, { - "name" : "centre_gps", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/centre_gps" - }, { - "name" : "reminders_approval", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/reminders_approval" - }, { - "name" : "contact_phone_number", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/contact_phone_number" - }, { - "name" : "pregnant", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/pregnant" - }, { - "name" : "edd_lmp", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/edd_lmp" - }, { - "name" : "edd", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/edd" - }, { - "name" : "lmp", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/lmp" - }, { - "name" : "ultrasound_date", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/ultrasound_date" - }, { - "name" : "ultrasound_weeks", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/ultrasound_weeks" - }, { - "name" : "edd_calc_lmp", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/edd_calc_lmp" - }, { - "name" : "edd_calc_ultrasound", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/edd_calc_ultrasound" - }, { - "name" : "edd_calc_lmp_formatted", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/edd_calc_lmp_formatted" - }, { - "name" : "edd_calc_ultrasound_formatted", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/edd_calc_ultrasound_formatted" - }, { - "name" : "lmp_calc_edd", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/lmp_calc_edd" - }, { - "name" : "lmp_calc_ultrasound", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/lmp_calc_ultrasound" - }, { - "name" : "lmp_calc_edd_formatted", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/lmp_calc_edd_formatted" - }, { - "name" : "lmp_calc_ultrasound_formatted", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/lmp_calc_ultrasound_formatted" - }, { - "name" : "final_edd", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/final_edd" - }, { - "name" : "final_lmp", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/final_lmp" - }, { - "name" : "ga_edd", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/ga_edd" - }, { - "name" : "ga_lmp", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/ga_lmp" - }, { - "name" : "ga_ult", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/ga_ult" - }, { - "name" : "final_edd_note", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/final_edd_note" - }, { - "name" : "final_lmp_note", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/final_lmp_note" - }, { - "name" : "final_ga", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/final_ga" - }, { - "name" : "final_ga_note", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/final_ga_note" - }, { - "name" : "vaccines", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/vaccines" - }, { - "name" : "tt1_retro", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/tt1_retro" - }, { - "name" : "tt_1_dose", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/tt_1_dose" - }, { - "name" : "tt2_retro", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/tt2_retro" - }, { - "name" : "tt_2_dose", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/tt_2_dose" - }, { - "name" : "tt3_retro", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/tt3_retro" - }, { - "name" : "tt_3_dose", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/tt_3_dose" - }, { - "name" : "tt4_retro", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/tt4_retro" - }, { - "name" : "tt_4_dose", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/tt_4_dose" - }, { - "name" : "vaccines_2", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/vaccines_2" - }, { - "name" : "tt1", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/tt1" - }, { - "name" : "tt_1_dose_today", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/tt_1_dose_today" - }, { - "name" : "tt2", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/tt2" - }, { - "name" : "tt_2_dose_today", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/tt_2_dose_today" - }, { - "name" : "tt3", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/tt3" - }, { - "name" : "tt_3_dose_today", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/tt_3_dose_today" - }, { - "name" : "tt4", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/tt4" - }, { - "name" : "tt_4_dose_today", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/tt_4_dose_today" - }, { - "name" : "tt5", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/tt5" - }, { - "name" : "tt_5_dose_today", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/tt_5_dose_today" - }, { - "name" : "instanceID", - "bind" : "/model/instance/Woman_TT_Enrollment_Form/meta/instanceID" - } ] - } -} \ No newline at end of file diff --git a/opensrp-web/src/test/resources/form/woman_enrollment/model.xml b/opensrp-web/src/test/resources/form/woman_enrollment/model.xml deleted file mode 100644 index 2a189a9632..0000000000 --- a/opensrp-web/src/test/resources/form/woman_enrollment/model.xml +++ /dev/null @@ -1,1658 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - yes - - - - - - - - - - female - - - - - - - ${provider_province} - ${provider_city} - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - static_instance-provinces-0 - kpk - - - static_instance-provinces-1 - sindh - - - static_instance-provinces-2 - balochistan - - - static_instance-provinces-3 - punjab - - - static_instance-provinces-4 - gilgit_baltistan - - - static_instance-provinces-5 - kashmir - - - static_instance-provinces-6 - fata - - - static_instance-provinces-7 - out_of_country - - - - - - - static_instance-ucs-0 - sindh - karachi - korangi - bilal_colony - - - static_instance-ucs-1 - sindh - karachi - korangi - nasir_colony - - - static_instance-ucs-2 - sindh - karachi - korangi - chakra_goth - - - static_instance-ucs-3 - sindh - karachi - korangi - mustafa_taj_colony - - - static_instance-ucs-4 - sindh - karachi - korangi - hundred_quarters - - - static_instance-ucs-5 - sindh - karachi - korangi - gulzar_colony - - - static_instance-ucs-6 - sindh - karachi - korangi - korangi_sector_33 - - - static_instance-ucs-7 - sindh - karachi - korangi - zaman_town - - - static_instance-ucs-8 - sindh - karachi - korangi - hasrat_mohani_colony - - - static_instance-ucs-9 - sindh - karachi - baldia - gulshan_e_ghazi - - - static_instance-ucs-10 - sindh - karachi - baldia - ittehad_town - - - static_instance-ucs-11 - sindh - karachi - baldia - islam_nagar - - - static_instance-ucs-12 - sindh - karachi - baldia - nai_abadi - - - static_instance-ucs-13 - sindh - karachi - baldia - saeedabad - - - static_instance-ucs-14 - sindh - karachi - baldia - muslim_mujahid_colony - - - static_instance-ucs-15 - sindh - karachi - baldia - muhajir_camp - - - static_instance-ucs-16 - sindh - karachi - baldia - rasheedabad - - - static_instance-ucs-17 - sindh - karachi - bin_qasim - ibrahim_hyderi - - - static_instance-ucs-18 - sindh - karachi - bin_qasim - rehri - - - static_instance-ucs-19 - sindh - karachi - bin_qasim - cattle_colony - - - static_instance-ucs-20 - sindh - karachi - bin_qasim - qaidabad - - - static_instance-ucs-21 - sindh - karachi - bin_qasim - landhi_colony - - - static_instance-ucs-22 - sindh - karachi - bin_qasim - gulshan_e_hadeed - - - static_instance-ucs-23 - sindh - karachi - bin_qasim - gaghar - - - static_instance-ucs-24 - sindh - karachi - gadap - murad_memon_goth - - - static_instance-ucs-25 - sindh - karachi - gadap - darsano_chana - - - static_instance-ucs-26 - sindh - karachi - gadap - gujro - - - static_instance-ucs-27 - sindh - karachi - gadap - songal - - - static_instance-ucs-28 - sindh - karachi - gadap - maymarabad - - - static_instance-ucs-29 - sindh - karachi - gadap - yousuf_goth - - - static_instance-ucs-30 - sindh - karachi - gadap - manghopir - - - static_instance-ucs-31 - sindh - karachi - gulberg - azizabad - - - static_instance-ucs-32 - sindh - karachi - gulberg - karimabad - - - static_instance-ucs-33 - sindh - karachi - gulberg - aisha_manzil - - - static_instance-ucs-34 - sindh - karachi - gulberg - ancholi - - - static_instance-ucs-35 - sindh - karachi - gulberg - naseerabad - - - static_instance-ucs-36 - sindh - karachi - gulberg - yaseenabad - - - static_instance-ucs-37 - sindh - karachi - gulberg - water_pump - - - static_instance-ucs-38 - sindh - karachi - gulberg - shafiq_mill_colony - - - static_instance-ucs-39 - sindh - karachi - gulshan - delhi_mercantile_society - - - static_instance-ucs-40 - sindh - karachi - gulshan - civic_centre - - - static_instance-ucs-41 - sindh - karachi - gulshan - pir_ilahi_buksh_colony - - - static_instance-ucs-42 - sindh - karachi - gulshan - essa_nagri - - - static_instance-ucs-43 - sindh - karachi - gulshan - gulshan_e_iqbal - - - static_instance-ucs-44 - sindh - karachi - gulshan - gillani_railway_station - - - static_instance-ucs-45 - sindh - karachi - gulshan - shanti_nagar - - - static_instance-ucs-46 - sindh - karachi - gulshan - jamali_colony - - - static_instance-ucs-47 - sindh - karachi - gulshan - gulshan_e_iqbal_ii - - - static_instance-ucs-48 - sindh - karachi - gulshan - pehlwan_goth - - - static_instance-ucs-49 - sindh - karachi - gulshan - matrovil_colony - - - static_instance-ucs-50 - sindh - karachi - gulshan - gulzar_e_hijri - - - static_instance-ucs-51 - sindh - karachi - gulshan - safooran_goth - - - static_instance-ucs-52 - sindh - karachi - jamshed - akhtar_colony - - - static_instance-ucs-53 - sindh - karachi - jamshed - manzoor_colony - - - static_instance-ucs-54 - sindh - karachi - jamshed - azam_basti - - - static_instance-ucs-55 - sindh - karachi - jamshed - chanesar_goth - - - static_instance-ucs-56 - sindh - karachi - jamshed - mahmudabad - - - static_instance-ucs-57 - sindh - karachi - jamshed - pechs - - - static_instance-ucs-58 - sindh - karachi - jamshed - pechs_ii - - - static_instance-ucs-59 - sindh - karachi - jamshed - jut_line - - - static_instance-ucs-60 - sindh - karachi - jamshed - central_jacob_lines - - - static_instance-ucs-61 - sindh - karachi - jamshed - jamshed_quarters - - - static_instance-ucs-62 - sindh - karachi - jamshed - garden_east - - - static_instance-ucs-63 - sindh - karachi - jamshed - soldier_bazar - - - static_instance-ucs-64 - sindh - karachi - jamshed - pakistan_quarters - - - static_instance-ucs-65 - sindh - karachi - kiamari - bhutta_village - - - static_instance-ucs-66 - sindh - karachi - kiamari - sultanabad - - - static_instance-ucs-67 - sindh - karachi - kiamari - kiamari_uc - - - static_instance-ucs-68 - sindh - karachi - kiamari - baba_bhit - - - static_instance-ucs-69 - sindh - karachi - kiamari - machar_colony - - - static_instance-ucs-70 - sindh - karachi - kiamari - maripur - - - static_instance-ucs-71 - sindh - karachi - kiamari - shershah - - - static_instance-ucs-72 - sindh - karachi - kiamari - gabo_pat - - - static_instance-ucs-73 - sindh - karachi - landhi - muzafarabad - - - static_instance-ucs-74 - sindh - karachi - landhi - muslimabad - - - static_instance-ucs-75 - sindh - karachi - landhi - dawood_chowrangi - - - static_instance-ucs-76 - sindh - karachi - landhi - moinabad - - - static_instance-ucs-77 - sindh - karachi - landhi - sharafi_goth - - - static_instance-ucs-78 - sindh - karachi - landhi - bhutto_nagar - - - static_instance-ucs-79 - sindh - karachi - landhi - khawaja_ajmeer_colony - - - static_instance-ucs-80 - sindh - karachi - landhi - landhi_uc - - - static_instance-ucs-81 - sindh - karachi - landhi - awami_colony - - - static_instance-ucs-82 - sindh - karachi - landhi - burmee_colony - - - static_instance-ucs-83 - sindh - karachi - landhi - korangi_uc - - - static_instance-ucs-84 - sindh - karachi - landhi - sherabad - - - static_instance-ucs-85 - sindh - karachi - liaquatabad - rizvia_society - - - static_instance-ucs-86 - sindh - karachi - liaquatabad - firdous_colony - - - static_instance-ucs-87 - sindh - karachi - liaquatabad - super_market - - - static_instance-ucs-88 - sindh - karachi - liaquatabad - dak_khana - - - static_instance-ucs-89 - sindh - karachi - liaquatabad - qasimabad - - - static_instance-ucs-90 - sindh - karachi - liaquatabad - bandhani_colony - - - static_instance-ucs-91 - sindh - karachi - liaquatabad - sharifabad - - - static_instance-ucs-92 - sindh - karachi - liaquatabad - commercial_area - - - static_instance-ucs-93 - sindh - karachi - liaquatabad - mujahid_colony - - - static_instance-ucs-94 - sindh - karachi - liaquatabad - nazimabad - - - static_instance-ucs-95 - sindh - karachi - liaquatabad - abbasi_shaheed - - - static_instance-ucs-96 - sindh - karachi - lyari - agra_taj_colony - - - static_instance-ucs-97 - sindh - karachi - lyari - daryaabad - - - static_instance-ucs-98 - sindh - karachi - lyari - nawabad - - - static_instance-ucs-99 - sindh - karachi - lyari - khada_memon_society - - - static_instance-ucs-100 - sindh - karachi - lyari - baghdadi - - - static_instance-ucs-101 - sindh - karachi - lyari - shah_baig_line - - - static_instance-ucs-102 - sindh - karachi - lyari - bihar_colony - - - static_instance-ucs-103 - sindh - karachi - lyari - ragiwara - - - static_instance-ucs-104 - sindh - karachi - lyari - singo_line - - - static_instance-ucs-105 - sindh - karachi - lyari - chakiwara - - - static_instance-ucs-106 - sindh - karachi - lyari - allama_iqbal_colony - - - static_instance-ucs-107 - sindh - karachi - malir - model_colony - - - static_instance-ucs-108 - sindh - karachi - malir - kala_board - - - static_instance-ucs-109 - sindh - karachi - malir - saudabad - - - static_instance-ucs-110 - sindh - karachi - malir - khokhra_par - - - static_instance-ucs-111 - sindh - karachi - malir - jafar_e_tayyar - - - static_instance-ucs-112 - sindh - karachi - malir - gharibabad - - - static_instance-ucs-113 - sindh - karachi - malir - ghazi_brohi_goth - - - static_instance-ucs-114 - sindh - karachi - new_karachi - kalyana - - - static_instance-ucs-115 - sindh - karachi - new_karachi - sir_syed_colony - - - static_instance-ucs-116 - sindh - karachi - new_karachi - fatima_jinnah_colony - - - static_instance-ucs-117 - sindh - karachi - new_karachi - godhra - - - static_instance-ucs-118 - sindh - karachi - new_karachi - abu_zar_ghaffari - - - static_instance-ucs-119 - sindh - karachi - new_karachi - hakim_ahsan - - - static_instance-ucs-120 - sindh - karachi - new_karachi - madina_colony - - - static_instance-ucs-121 - sindh - karachi - new_karachi - faisal_colony - - - static_instance-ucs-122 - sindh - karachi - new_karachi - khamiso_goth - - - static_instance-ucs-123 - sindh - karachi - new_karachi - mustufa_colony - - - static_instance-ucs-124 - sindh - karachi - new_karachi - khawaja_ajmeer_nagri - - - static_instance-ucs-125 - sindh - karachi - new_karachi - gulshan_e_saeed - - - static_instance-ucs-126 - sindh - karachi - new_karachi - shah_nawaz_bhutto_colony - - - static_instance-ucs-127 - sindh - karachi - north_nazimabad - paposh_nagar - - - static_instance-ucs-128 - sindh - karachi - north_nazimabad - pahar_ganj - - - static_instance-ucs-129 - sindh - karachi - north_nazimabad - khandu_goth - - - static_instance-ucs-130 - sindh - karachi - north_nazimabad - hyderi - - - static_instance-ucs-131 - sindh - karachi - north_nazimabad - sakhi_hassan - - - static_instance-ucs-132 - sindh - karachi - north_nazimabad - farooq_e_azam - - - static_instance-ucs-133 - sindh - karachi - north_nazimabad - nusrat_bhutto_colony - - - static_instance-ucs-134 - sindh - karachi - north_nazimabad - shadman_town - - - static_instance-ucs-135 - sindh - karachi - north_nazimabad - buffer_zone - - - static_instance-ucs-136 - sindh - karachi - north_nazimabad - buffer_zone_ii - - - static_instance-ucs-137 - sindh - karachi - orangi - mominabad - - - static_instance-ucs-138 - sindh - karachi - orangi - haryana_colony - - - static_instance-ucs-139 - sindh - karachi - orangi - hanifabad - - - static_instance-ucs-140 - sindh - karachi - orangi - mohammad_nagar - - - static_instance-ucs-141 - sindh - karachi - orangi - madina_colony_orangi - - - static_instance-ucs-142 - sindh - karachi - orangi - ghaziabad - - - static_instance-ucs-143 - sindh - karachi - orangi - chisti_nagar - - - static_instance-ucs-144 - sindh - karachi - orangi - bilal_colony_orangi - - - static_instance-ucs-145 - sindh - karachi - orangi - iqbal_baloch_colony - - - static_instance-ucs-146 - sindh - karachi - orangi - ghabool_town - - - static_instance-ucs-147 - sindh - karachi - orangi - data_nagar - - - static_instance-ucs-148 - sindh - karachi - orangi - mujahidabad - - - static_instance-ucs-149 - sindh - karachi - orangi - baloch_goth - - - static_instance-ucs-150 - sindh - karachi - saddar - old_haji_camp - - - static_instance-ucs-151 - sindh - karachi - saddar - garden - - - static_instance-ucs-152 - sindh - karachi - saddar - kharadar - - - static_instance-ucs-153 - sindh - karachi - saddar - city_railway_colony - - - static_instance-ucs-154 - sindh - karachi - saddar - nanak_wara - - - static_instance-ucs-155 - sindh - karachi - saddar - gazdarabad - - - static_instance-ucs-156 - sindh - karachi - saddar - millat_nagar_islam_pura - - - static_instance-ucs-157 - sindh - karachi - saddar - saddar_uc - - - static_instance-ucs-158 - sindh - karachi - saddar - civil_line - - - static_instance-ucs-159 - sindh - karachi - saddar - clifton - - - static_instance-ucs-160 - sindh - karachi - saddar - kehkashan - - - static_instance-ucs-161 - sindh - karachi - shah_faisal - natha_khan_goth - - - static_instance-ucs-162 - sindh - karachi - shah_faisal - pak_sadat_colony - - - static_instance-ucs-163 - sindh - karachi - shah_faisal - drigh_colony - - - static_instance-ucs-164 - sindh - karachi - shah_faisal - raita_plot - - - static_instance-ucs-165 - sindh - karachi - shah_faisal - moria_khan_goth - - - static_instance-ucs-166 - sindh - karachi - shah_faisal - rafa_e_aam_society - - - static_instance-ucs-167 - sindh - karachi - shah_faisal - al_falah_society - - - static_instance-ucs-168 - sindh - karachi - site - pak_colony - - - static_instance-ucs-169 - sindh - karachi - site - old_golimar - - - static_instance-ucs-170 - sindh - karachi - site - jahanabad - - - static_instance-ucs-171 - sindh - karachi - site - metrovil - - - static_instance-ucs-172 - sindh - karachi - site - bhawani_chali - - - static_instance-ucs-173 - sindh - karachi - site - frontier_colony - - - static_instance-ucs-174 - sindh - karachi - site - banaras_colony - - - static_instance-ucs-175 - sindh - karachi - site - qasba_colony - - - static_instance-ucs-176 - sindh - karachi - site - islamia_colony - - - static_instance-ucs-177 - na - na - na - other - - - static_instance-ucs-178 - na - na - na - not_applicable - - - - - - - static_instance-gender-0 - male - - - static_instance-gender-1 - female - - - static_instance-gender-2 - transgender - - - - - - - static_instance-vaccines-0 - TT1 - - - static_instance-vaccines-1 - TT2 - - - static_instance-vaccines-2 - TT3 - - - static_instance-vaccines-3 - TT4 - - - static_instance-vaccines-4 - TT5 - - - - - - - static_instance-towns-0 - sindh - karachi - korangi - - - static_instance-towns-1 - sindh - karachi - landhi - - - static_instance-towns-2 - sindh - karachi - baldia - - - static_instance-towns-3 - sindh - karachi - bin_qasim - - - static_instance-towns-4 - sindh - karachi - gadap - - - static_instance-towns-5 - sindh - karachi - gulberg - - - static_instance-towns-6 - sindh - karachi - gulshan - - - static_instance-towns-7 - sindh - karachi - jamshed - - - static_instance-towns-8 - sindh - karachi - kiamari - - - static_instance-towns-9 - sindh - karachi - liaquatabad - - - static_instance-towns-10 - sindh - karachi - lyari - - - static_instance-towns-11 - sindh - karachi - malir - - - static_instance-towns-12 - sindh - karachi - new_karachi - - - static_instance-towns-13 - sindh - karachi - north_nazimabad - - - static_instance-towns-14 - sindh - karachi - orangi - - - static_instance-towns-15 - sindh - karachi - saddar - - - static_instance-towns-16 - sindh - karachi - shah_faisal - - - static_instance-towns-17 - sindh - karachi - site - - - static_instance-towns-18 - na - na - other - - - static_instance-towns-19 - na - na - not_applicable - - - - - - - static_instance-cities-0 - sindh - karachi - - - static_instance-cities-1 - punjab - hafizabad - - - static_instance-cities-2 - punjab - muzaffargarh - - - static_instance-cities-3 - na - other - - - static_instance-cities-4 - na - not_applicable - - - - - - - static_instance-edd_lmp-0 - edd - - - static_instance-edd_lmp-1 - lmp - - - static_instance-edd_lmp-2 - ultrasound - - - static_instance-edd_lmp-3 - none - - - - - - - static_instance-ethnicity-0 - punjabi - - - static_instance-ethnicity-1 - pushtuns - - - static_instance-ethnicity-2 - sindhi - - - static_instance-ethnicity-3 - saraiki - - - static_instance-ethnicity-4 - muhajir - - - static_instance-ethnicity-5 - balochi - - - static_instance-ethnicity-6 - other - - - - - - - static_instance-yes_no-0 - yes - - - static_instance-yes_no-1 - no - - - - diff --git a/opensrp-web/src/test/resources/form/woman_followup/form.json b/opensrp-web/src/test/resources/form/woman_followup/form.json deleted file mode 100644 index af7866ef6c..0000000000 --- a/opensrp-web/src/test/resources/form/woman_followup/form.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"Woman_TT_Followup_Form","title":"خواتین فالواپ رجسٹر برائے ٹیکاجات - Woman TT Follow Up Form","sms_keyword":"woman_tt_followup_form","default_language":"English","choices":{"provinces":[{"name":"kpk","label":{"Urdu":"خیبر پختون خواہ","English":"Khyber Pakhtunkhwa","Roman Urdu":"Khyber Pakhtunkhwa"}},{"name":"sindh","label":{"Urdu":"سندھ","English":"Sindh","Roman Urdu":"Sindh"}},{"name":"balochistan","label":{"Urdu":"بلوچستان","English":"Balochistan","Roman Urdu":"Balochistan"}},{"name":"punjab","label":{"Urdu":"پنجاب","English":"Punjab","Roman Urdu":"Punjab"}},{"name":"gilgit_baltistan","label":{"Urdu":"گلگت بلتستان","English":"Gilgit Baltistan","Roman Urdu":"Gilgit Baltistan"}},{"name":"kashmir","label":{"Urdu":"کشمیر","English":"Kashmir","Roman Urdu":"Kashmir"}},{"name":"fata","label":{"Urdu":"فاٹا","English":"FATA","Roman Urdu":"FATA"}},{"name":"out_of_country","label":{"Urdu":"ملک سے باہر","English":"Out of Country","Roman Urdu":"Mulk se baahir"}}],"ucs":[{"province":"sindh","city":"karachi","town":"korangi","name":"bilal_colony","label":{"Urdu":"بلال کالونی","Roman Urdu":"Bilal Colony","English":"Bilal Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"nasir_colony","label":{"Urdu":"ناصر کالونی","Roman Urdu":"Nasir Colony","English":"Nasir Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"chakra_goth","label":{"Urdu":"چکرا گوٹھ","Roman Urdu":"Chakra Goth","English":"Chakra Goth"}},{"province":"sindh","city":"karachi","town":"korangi","name":"mustafa_taj_colony","label":{"Urdu":"مصطفی تاج کالونی","Roman Urdu":"Mustafa Taj Colony","English":"Mustafa Taj Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"hundred_quarters","label":{"Urdu":"ہنڈریڈ کوارٹر","Roman Urdu":"Hundred Quarters","English":"Hundred Quarters"}},{"province":"sindh","city":"karachi","town":"korangi","name":"gulzar_colony","label":{"Urdu":"گلزار کالونی","Roman Urdu":"Gulzar Colony","English":"Gulzar Colony"}},{"province":"sindh","city":"karachi","town":"korangi","name":"korangi_sector_33","label":{"Urdu":"کورنگی سیکٹر 33","Roman Urdu":"Korangi Sector 33","English":"Korangi Sector 33"}},{"province":"sindh","city":"karachi","town":"korangi","name":"zaman_town","label":{"Urdu":"زمان ٹاوَن","Roman Urdu":"Zaman Town","English":"Zaman Town"}},{"province":"sindh","city":"karachi","town":"korangi","name":"hasrat_mohani_colony","label":{"Urdu":"حسرت موہانی کالونی","Roman Urdu":"Hasrat Mohani Colony","English":"Hasrat Mohani Colony"}},{"province":"sindh","city":"karachi","town":"baldia","name":"gulshan_e_ghazi","label":{"Urdu":"گلشن غازی","Roman Urdu":"Gulshan-e-Ghazi","English":"Gulshan-e-Ghazi"}},{"province":"sindh","city":"karachi","town":"baldia","name":"ittehad_town","label":{"Urdu":"اتحاد ٹاوَن","Roman Urdu":"Ittehad Town","English":"Ittehad Town"}},{"province":"sindh","city":"karachi","town":"baldia","name":"islam_nagar","label":{"Urdu":"اسلام نگر","Roman Urdu":"Islam Nagar","English":"Islam Nagar"}},{"province":"sindh","city":"karachi","town":"baldia","name":"nai_abadi","label":{"Urdu":"نئی آبادی","Roman Urdu":"Nai Abadi","English":"Nai Abadi"}},{"province":"sindh","city":"karachi","town":"baldia","name":"saeedabad","label":{"Urdu":"سعید آباد","Roman Urdu":"Saeedabad","English":"Saeedabad"}},{"province":"sindh","city":"karachi","town":"baldia","name":"muslim_mujahid_colony","label":{"Urdu":"مسلم مجاہد کالونی","Roman Urdu":"Muslim Mujahid Colony","English":"Muslim Mujahid Colony"}},{"province":"sindh","city":"karachi","town":"baldia","name":"muhajir_camp","label":{"Urdu":"مہاجر کیمپ","Roman Urdu":"Muhajir Camp","English":"Muhajir Camp"}},{"province":"sindh","city":"karachi","town":"baldia","name":"rasheedabad","label":{"Urdu":"رشید آباد","Roman Urdu":"Rasheedabad","English":"Rasheedabad"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"ibrahim_hyderi","label":{"Urdu":"ابراہیم حیدری","Roman Urdu":"Ibrahim Hyderi","English":"Ibrahim Hyderi"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"rehri","label":{"Urdu":"رہڑی","Roman Urdu":"Rehri","English":"Rehri"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"cattle_colony","label":{"Urdu":"کیٹل کالونی","Roman Urdu":"Cattle Colony","English":"Cattle Colony"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"qaidabad","label":{"Urdu":"قائدآباد","Roman Urdu":"Qaidabad","English":"Qaidabad"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"landhi_colony","label":{"Urdu":"لانڈھی کالونی","Roman Urdu":"Landhi Colony","English":"Landhi Colony"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"gulshan_e_hadeed","label":{"Urdu":"گلشن حدید","Roman Urdu":"Gulshan-e-Hadeed","English":"Gulshan-e-Hadeed"}},{"province":"sindh","city":"karachi","town":"bin_qasim","name":"gaghar","label":{"Urdu":"گگر","Roman Urdu":"Gaghar","English":"Gaghar"}},{"province":"sindh","city":"karachi","town":"gadap","name":"murad_memon_goth","label":{"Urdu":"مراد میمن گوٹھ","Roman Urdu":"Murad Memon Goth","English":"Murad Memon Goth"}},{"province":"sindh","city":"karachi","town":"gadap","name":"darsano_chana","label":{"Urdu":"درشانو شنو","Roman Urdu":"Darsano Chana","English":"Darsano Chana"}},{"province":"sindh","city":"karachi","town":"gadap","name":"gujro","label":{"Urdu":"گجرو","Roman Urdu":"Gujro","English":"Gujro"}},{"province":"sindh","city":"karachi","town":"gadap","name":"songal","label":{"Urdu":"سنگل","Roman Urdu":"Songal","English":"Songal"}},{"province":"sindh","city":"karachi","town":"gadap","name":"maymarabad","label":{"Urdu":"معمار آباد","Roman Urdu":"Maymarabad","English":"Maymarabad"}},{"province":"sindh","city":"karachi","town":"gadap","name":"yousuf_goth","label":{"Urdu":"یوسف گوٹھ","Roman Urdu":"Yousuf Goth","English":"Yousuf Goth"}},{"province":"sindh","city":"karachi","town":"gadap","name":"manghopir","label":{"Urdu":"منگھوپیر","Roman Urdu":"Manghopir","English":"Manghopir"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"azizabad","label":{"Urdu":"عزیز آباد","Roman Urdu":"Azizabad","English":"Azizabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"karimabad","label":{"Urdu":"کریم آباد","Roman Urdu":"Karimabad","English":"Karimabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"aisha_manzil","label":{"Urdu":"عائشہ منزل","Roman Urdu":"Aisha Manzil","English":"Aisha Manzil"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"ancholi","label":{"Urdu":"انچولی","Roman Urdu":"Ancholi","English":"Ancholi"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"naseerabad","label":{"Urdu":"نصیرآباد","Roman Urdu":"Naseerabad","English":"Naseerabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"yaseenabad","label":{"Urdu":"یاسین آباد","Roman Urdu":"Yaseenabad","English":"Yaseenabad"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"water_pump","label":{"Urdu":"واٹرپمپ","Roman Urdu":"Water Pump","English":"Water Pump"}},{"province":"sindh","city":"karachi","town":"gulberg","name":"shafiq_mill_colony","label":{"Urdu":"شفیق مل کالونی","Roman Urdu":"Shafiq Mill Colony","English":"Shafiq Mill Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"delhi_mercantile_society","label":{"Urdu":"دہلی مرچنٹائل سوسائٹی","Roman Urdu":"Delhi Mercantile Society","English":"Delhi Mercantile Society"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"civic_centre","label":{"Urdu":"سوک سینٹر","Roman Urdu":"Civic Centre","English":"Civic Centre"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"pir_ilahi_buksh_colony","label":{"Urdu":"پیر الہی بخش کالونی","Roman Urdu":"Pir Ilahi Buksh Colony","English":"Pir Ilahi Buksh Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"essa_nagri","label":{"Urdu":"عیسی نگری","Roman Urdu":"Essa Nagri","English":"Essa Nagri"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gulshan_e_iqbal","label":{"Urdu":"گلشن اقبال","Roman Urdu":"Gulshan-e-Iqbal","English":"Gulshan-e-Iqbal"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gillani_railway_station","label":{"Urdu":"گیلانی ریلوے اسٹیشن","Roman Urdu":"Gillani Railway Station","English":"Gillani Railway Station"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"shanti_nagar","label":{"Urdu":"شانتی نگر","Roman Urdu":"Shanti Nagar","English":"Shanti Nagar"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"jamali_colony","label":{"Urdu":"جمالی کالونی","Roman Urdu":"Jamali Colony","English":"Jamali Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gulshan_e_iqbal_ii","label":{"Urdu":"گلشن اقبال 2","Roman Urdu":"Gulshan-e-Iqbal II","English":"Gulshan-e-Iqbal II"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"pehlwan_goth","label":{"Urdu":"پہلوان گوٹھ","Roman Urdu":"Pehlwan Goth","English":"Pehlwan Goth"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"matrovil_colony","label":{"Urdu":"میٹروویل کالونی","Roman Urdu":"Matrovil Colony","English":"Matrovil Colony"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"gulzar_e_hijri","label":{"Urdu":"گلزار ہجری","Roman Urdu":"Gulzar-e-Hijri","English":"Gulzar-e-Hijri"}},{"province":"sindh","city":"karachi","town":"gulshan","name":"safooran_goth","label":{"Urdu":"صفورا گوٹھ","Roman Urdu":"Safooran Goth","English":"Safooran Goth"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"akhtar_colony","label":{"Urdu":"اختر کالونی","Roman Urdu":"Akhtar Colony","English":"Akhtar Colony"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"manzoor_colony","label":{"Urdu":"منظور کالونی","Roman Urdu":"Manzoor Colony","English":"Manzoor Colony"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"azam_basti","label":{"Urdu":"اعظم بستی","Roman Urdu":"Azam Basti","English":"Azam Basti"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"chanesar_goth","label":{"Urdu":"چنیسر گوٹھ","Roman Urdu":"Chanesar Goth","English":"Chanesar Goth"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"mahmudabad","label":{"Urdu":"محمودآباد","Roman Urdu":"Mahmudabad","English":"Mahmudabad"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"pechs","label":{"Urdu":"پی۔ای۔سی۔ایچ۔ایس","Roman Urdu":"P.E.C.H.S.","English":"P.E.C.H.S."}},{"province":"sindh","city":"karachi","town":"jamshed","name":"pechs_ii","label":{"Urdu":"پی۔ای۔سی۔ایچ۔ایس 2","Roman Urdu":"P.E.C.H.S. II","English":"P.E.C.H.S. II"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"jut_line","label":{"Urdu":"جٹ لائن","Roman Urdu":"Jut Line","English":"Jut Line"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"central_jacob_lines","label":{"Urdu":"سینٹرل جیکب لائن","Roman Urdu":"Central Jacob Lines","English":"Central Jacob Lines"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"jamshed_quarters","label":{"Urdu":"جمشید کوارٹر","Roman Urdu":"Jamshed Quarters","English":"Jamshed Quarters"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"garden_east","label":{"Urdu":"گارڈن ایسٹ","Roman Urdu":"Garden East","English":"Garden East"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"soldier_bazar","label":{"Urdu":"سولجر بازار","Roman Urdu":"Soldier Bazar","English":"Soldier Bazar"}},{"province":"sindh","city":"karachi","town":"jamshed","name":"pakistan_quarters","label":{"Urdu":"پاکستان کوارٹر","Roman Urdu":"Pakistan Quarters","English":"Pakistan Quarters"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"bhutta_village","label":{"Urdu":"بھٹا ولیج","Roman Urdu":"Bhutta Village","English":"Bhutta Village"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"sultanabad","label":{"Urdu":"سلطان آباد","Roman Urdu":"Sultanabad","English":"Sultanabad"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"kiamari_uc","label":{"Urdu":"کیماری یوسی","Roman Urdu":"Kiamari UC","English":"Kiamari UC"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"baba_bhit","label":{"Urdu":"بابا بھٹ","Roman Urdu":"Baba Bhit","English":"Baba Bhit"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"machar_colony","label":{"Urdu":"مچھر کالونی","Roman Urdu":"Machar Colony","English":"Machar Colony"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"maripur","label":{"Urdu":"ماڑی پور","Roman Urdu":"Maripur","English":"Maripur"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"shershah","label":{"Urdu":"شیرشاہ","Roman Urdu":"SherShah","English":"SherShah"}},{"province":"sindh","city":"karachi","town":"kiamari","name":"gabo_pat","label":{"Urdu":"گابو پٹ","Roman Urdu":"Gabo Pat","English":"Gabo Pat"}},{"province":"sindh","city":"karachi","town":"landhi","name":"muzafarabad","label":{"Urdu":"مظفرآباد","Roman Urdu":"Muzafarabad","English":"Muzafarabad"}},{"province":"sindh","city":"karachi","town":"landhi","name":"muslimabad","label":{"Urdu":"مسلم آباد","Roman Urdu":"Muslimabad","English":"Muslimabad"}},{"province":"sindh","city":"karachi","town":"landhi","name":"dawood_chowrangi","label":{"Urdu":"داوَد چورنگی","Roman Urdu":"Dawood Chowrangi","English":"Dawood Chowrangi"}},{"province":"sindh","city":"karachi","town":"landhi","name":"moinabad","label":{"Urdu":"معین آباد","Roman Urdu":"Moinabad","English":"Moinabad"}},{"province":"sindh","city":"karachi","town":"landhi","name":"sharafi_goth","label":{"Urdu":"شرافی گوٹھ","Roman Urdu":"Sharafi Goth","English":"Sharafi Goth"}},{"province":"sindh","city":"karachi","town":"landhi","name":"bhutto_nagar","label":{"Urdu":"بھٹو نگر","Roman Urdu":"Bhutto Nagar","English":"Bhutto Nagar"}},{"province":"sindh","city":"karachi","town":"landhi","name":"khawaja_ajmeer_colony","label":{"Urdu":"خواجہ اجمیر کالونی","Roman Urdu":"Khawaja Ajmeer Colony","English":"Khawaja Ajmeer Colony"}},{"province":"sindh","city":"karachi","town":"landhi","name":"landhi_uc","label":{"Urdu":"لانڈھی یوسی","Roman Urdu":"Landhi UC","English":"Landhi UC"}},{"province":"sindh","city":"karachi","town":"landhi","name":"awami_colony","label":{"Urdu":"عوامی کالونی","Roman Urdu":"Awami Colony","English":"Awami Colony"}},{"province":"sindh","city":"karachi","town":"landhi","name":"burmee_colony","label":{"Urdu":"برمی کالونی","Roman Urdu":"Burmee Colony","English":"Burmee Colony"}},{"province":"sindh","city":"karachi","town":"landhi","name":"korangi_uc","label":{"Urdu":"کورنگی یوسی","Roman Urdu":"Korangi UC","English":"Korangi UC"}},{"province":"sindh","city":"karachi","town":"landhi","name":"sherabad","label":{"Urdu":"شیرآباد","Roman Urdu":"Sherabad","English":"Sherabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"rizvia_society","label":{"Urdu":"رضویہ سوسائٹی","Roman Urdu":"Rizvia Society","English":"Rizvia Society"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"firdous_colony","label":{"Urdu":"فردوس کالونی","Roman Urdu":"Firdous Colony","English":"Firdous Colony"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"super_market","label":{"Urdu":"سپر مارکیٹ","Roman Urdu":"Super Market","English":"Super Market"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"dak_khana","label":{"Urdu":"دک کھانہ","Roman Urdu":"Dak Khana","English":"Dak Khana"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"qasimabad","label":{"Urdu":"قاسم آباد","Roman Urdu":"Qasimabad","English":"Qasimabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"bandhani_colony","label":{"Urdu":"بندھانی کالونی","Roman Urdu":"Bandhani Colony","English":"Bandhani Colony"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"sharifabad","label":{"Urdu":"شریف آباد","Roman Urdu":"Sharifabad","English":"Sharifabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"commercial_area","label":{"Urdu":"کمرشل ایریا","Roman Urdu":"Commercial Area","English":"Commercial Area"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"mujahid_colony","label":{"Urdu":"مجاہد کالونی","Roman Urdu":"Mujahid Colony","English":"Mujahid Colony"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"nazimabad","label":{"Urdu":"ناظم آباد","Roman Urdu":"Nazimabad","English":"Nazimabad"}},{"province":"sindh","city":"karachi","town":"liaquatabad","name":"abbasi_shaheed","label":{"Urdu":"عباسی شہید","Roman Urdu":"Abbasi Shaheed","English":"Abbasi Shaheed"}},{"province":"sindh","city":"karachi","town":"lyari","name":"agra_taj_colony","label":{"Urdu":"آگرہ تاج کالونی","Roman Urdu":"Agra Taj Colony","English":"Agra Taj Colony"}},{"province":"sindh","city":"karachi","town":"lyari","name":"daryaabad","label":{"Urdu":"دریاآباد","Roman Urdu":"Daryaabad","English":"Daryaabad"}},{"province":"sindh","city":"karachi","town":"lyari","name":"nawabad","label":{"Urdu":"نواآباد","Roman Urdu":"Nawabad","English":"Nawabad"}},{"province":"sindh","city":"karachi","town":"lyari","name":"khada_memon_society","label":{"Urdu":"خدا- میمن- سوساَٹی","Roman Urdu":"Khada Memon Society","English":"Khada Memon Society"}},{"province":"sindh","city":"karachi","town":"lyari","name":"baghdadi","label":{"Urdu":"بغدادی","Roman Urdu":"Baghdadi","English":"Baghdadi"}},{"province":"sindh","city":"karachi","town":"lyari","name":"shah_baig_line","label":{"Urdu":"شاھ باغ لائن","Roman Urdu":"Shah Baig Line","English":"Shah Baig Line"}},{"province":"sindh","city":"karachi","town":"lyari","name":"bihar_colony","label":{"Urdu":"بہار کالونی","Roman Urdu":"Bihar Colony","English":"Bihar Colony"}},{"province":"sindh","city":"karachi","town":"lyari","name":"ragiwara","label":{"Urdu":"راگی واڑا","Roman Urdu":"Ragiwara","English":"Ragiwara"}},{"province":"sindh","city":"karachi","town":"lyari","name":"singo_line","label":{"Urdu":"سنگولائن","Roman Urdu":"Singo Line","English":"Singo Line"}},{"province":"sindh","city":"karachi","town":"lyari","name":"chakiwara","label":{"Urdu":"چاکی واڑا","Roman Urdu":"Chakiwara","English":"Chakiwara"}},{"province":"sindh","city":"karachi","town":"lyari","name":"allama_iqbal_colony","label":{"Urdu":"علامہ اقبال کالونی","Roman Urdu":"Allama Iqbal Colony","English":"Allama Iqbal Colony"}},{"province":"sindh","city":"karachi","town":"malir","name":"model_colony","label":{"Urdu":"موڈل کالونی","Roman Urdu":"Model Colony","English":"Model Colony"}},{"province":"sindh","city":"karachi","town":"malir","name":"kala_board","label":{"Urdu":"کالا بورڈ","Roman Urdu":"Kala Board","English":"Kala Board"}},{"province":"sindh","city":"karachi","town":"malir","name":"saudabad","label":{"Urdu":"سعودآباد","Roman Urdu":"Saudabad","English":"Saudabad"}},{"province":"sindh","city":"karachi","town":"malir","name":"khokhra_par","label":{"Urdu":"کھوکھرا پار","Roman Urdu":"Khokhra Par","English":"Khokhra Par"}},{"province":"sindh","city":"karachi","town":"malir","name":"jafar_e_tayyar","label":{"Urdu":"جعفر تیار","Roman Urdu":"Jafar-e-Tayyar","English":"Jafar-e-Tayyar"}},{"province":"sindh","city":"karachi","town":"malir","name":"gharibabad","label":{"Urdu":"غریب آباد","Roman Urdu":"Gharibabad","English":"Gharibabad"}},{"province":"sindh","city":"karachi","town":"malir","name":"ghazi_brohi_goth","label":{"Urdu":"غازی بروہی گوٹھ","Roman Urdu":"Ghazi Brohi Goth","English":"Ghazi Brohi Goth"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"kalyana","label":{"Urdu":"کالیانہ","Roman Urdu":"Kalyana","English":"Kalyana"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"sir_syed_colony","label":{"Urdu":"سر سید کالونی","Roman Urdu":"Sir Syed Colony","English":"Sir Syed Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"fatima_jinnah_colony","label":{"Urdu":"فاطمہ جناح کالونی","Roman Urdu":"Fatima Jinnah Colony","English":"Fatima Jinnah Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"godhra","label":{"Urdu":"گودھرا","Roman Urdu":"Godhra","English":"Godhra"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"abu_zar_ghaffari","label":{"Urdu":"ابو زر غفاری","Roman Urdu":"Abu Zar Ghaffari","English":"Abu Zar Ghaffari"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"hakim_ahsan","label":{"Urdu":"حاکم احسان","Roman Urdu":"Hakim Ahsan","English":"Hakim Ahsan"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"madina_colony","label":{"Urdu":"مدینہ کالونی","Roman Urdu":"Madina Colony","English":"Madina Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"faisal_colony","label":{"Urdu":"فیصل کالونی","Roman Urdu":"Faisal Colony","English":"Faisal Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"khamiso_goth","label":{"Urdu":"خمیسو گوٹھ","Roman Urdu":"Khamiso Goth","English":"Khamiso Goth"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"mustufa_colony","label":{"Urdu":"مصطفی کالونی","Roman Urdu":"Mustufa Colony","English":"Mustufa Colony"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"khawaja_ajmeer_nagri","label":{"Urdu":"خواجہ اجمیر نگری","Roman Urdu":"Khawaja Ajmeer Nagri","English":"Khawaja Ajmeer Nagri"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"gulshan_e_saeed","label":{"Urdu":"گلشن سعید","Roman Urdu":"Gulshan-e-Saeed","English":"Gulshan-e-Saeed"}},{"province":"sindh","city":"karachi","town":"new_karachi","name":"shah_nawaz_bhutto_colony","label":{"Urdu":"شاہ نواز بھٹو کالونی","Roman Urdu":"Shah Nawaz Bhutto Colony","English":"Shah Nawaz Bhutto Colony"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"paposh_nagar","label":{"Urdu":"پاپوش نگر","Roman Urdu":"Paposh Nagar","English":"Paposh Nagar"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"pahar_ganj","label":{"Urdu":"پہاڑ گنج","Roman Urdu":"Pahar Ganj","English":"Pahar Ganj"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"khandu_goth","label":{"Urdu":"کھنڑو گوٹھ","Roman Urdu":"Khandu Goth","English":"Khandu Goth"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"hyderi","label":{"Urdu":"حیدری","Roman Urdu":"Hyderi","English":"Hyderi"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"sakhi_hassan","label":{"Urdu":"سخی حسن","Roman Urdu":"Sakhi Hassan","English":"Sakhi Hassan"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"farooq_e_azam","label":{"Urdu":"فاروق اعظم","Roman Urdu":"Farooq-e-Azam","English":"Farooq-e-Azam"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"nusrat_bhutto_colony","label":{"Urdu":"نصرت بھٹو کالونی","Roman Urdu":"Nusrat Bhutto Colony","English":"Nusrat Bhutto Colony"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"shadman_town","label":{"Urdu":"شادمان ٹاوَن","Roman Urdu":"Shadman Town","English":"Shadman Town"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"buffer_zone","label":{"Urdu":"بفرزون","Roman Urdu":"Buffer Zone","English":"Buffer Zone"}},{"province":"sindh","city":"karachi","town":"north_nazimabad","name":"buffer_zone_ii","label":{"Urdu":"بفرزون 2","Roman Urdu":"Buffer Zone II","English":"Buffer Zone II"}},{"province":"sindh","city":"karachi","town":"orangi","name":"mominabad","label":{"Urdu":"مومن آباد","Roman Urdu":"Mominabad","English":"Mominabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"haryana_colony","label":{"Urdu":"حریانہ کالونی","Roman Urdu":"Haryana Colony","English":"Haryana Colony"}},{"province":"sindh","city":"karachi","town":"orangi","name":"hanifabad","label":{"Urdu":"حنیف آباد","Roman Urdu":"Hanifabad","English":"Hanifabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"mohammad_nagar","label":{"Urdu":"محمد نگر","Roman Urdu":"Mohammad Nagar","English":"Mohammad Nagar"}},{"province":"sindh","city":"karachi","town":"orangi","name":"madina_colony_orangi","label":{"Urdu":"مدینہ کالونی اورنگی","Roman Urdu":"Madina Colony Orangi","English":"Madina Colony Orangi"}},{"province":"sindh","city":"karachi","town":"orangi","name":"ghaziabad","label":{"Urdu":"غازی آباد","Roman Urdu":"Ghaziabad","English":"Ghaziabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"chisti_nagar","label":{"Urdu":"چشتی نگر","Roman Urdu":"Chisti Nagar","English":"Chisti Nagar"}},{"province":"sindh","city":"karachi","town":"orangi","name":"bilal_colony_orangi","label":{"Urdu":"بلال کالونی اورنگی","Roman Urdu":"Bilal Colony Orangi","English":"Bilal Colony Orangi"}},{"province":"sindh","city":"karachi","town":"orangi","name":"iqbal_baloch_colony","label":{"Urdu":"اقبال بلوچ کالونی","Roman Urdu":"Iqbal Baloch Colony","English":"Iqbal Baloch Colony"}},{"province":"sindh","city":"karachi","town":"orangi","name":"ghabool_town","label":{"Urdu":"گبول ٹاوَن","Roman Urdu":"Ghabool Town","English":"Ghabool Town"}},{"province":"sindh","city":"karachi","town":"orangi","name":"data_nagar","label":{"Urdu":"داتا نگر","Roman Urdu":"Data Nagar","English":"Data Nagar"}},{"province":"sindh","city":"karachi","town":"orangi","name":"mujahidabad","label":{"Urdu":"مجاہد آباد","Roman Urdu":"Mujahidabad","English":"Mujahidabad"}},{"province":"sindh","city":"karachi","town":"orangi","name":"baloch_goth","label":{"Urdu":"بلوچ گوٹھ","Roman Urdu":"Baloch Goth","English":"Baloch Goth"}},{"province":"sindh","city":"karachi","town":"saddar","name":"old_haji_camp","label":{"Urdu":"پرانہ حاجی کیمپ","Roman Urdu":"Old Haji Camp","English":"Old Haji Camp"}},{"province":"sindh","city":"karachi","town":"saddar","name":"garden","label":{"Urdu":"گارڈن","Roman Urdu":"Garden","English":"Garden"}},{"province":"sindh","city":"karachi","town":"saddar","name":"kharadar","label":{"Urdu":"کھارادر","Roman Urdu":"Kharadar","English":"Kharadar"}},{"province":"sindh","city":"karachi","town":"saddar","name":"city_railway_colony","label":{"Urdu":"سٹی ریلوے کالونی","Roman Urdu":"City Railway Colony","English":"City Railway Colony"}},{"province":"sindh","city":"karachi","town":"saddar","name":"nanak_wara","label":{"Urdu":"ناناک واڑا","Roman Urdu":"Nanak Wara","English":"Nanak Wara"}},{"province":"sindh","city":"karachi","town":"saddar","name":"gazdarabad","label":{"Urdu":"گزدرآباد","Roman Urdu":"Gazdarabad","English":"Gazdarabad"}},{"province":"sindh","city":"karachi","town":"saddar","name":"millat_nagar_islam_pura","label":{"Urdu":"ملت نگر اسلام پورا","Roman Urdu":"Millat Nagar/Islam Pura","English":"Millat Nagar/Islam Pura"}},{"province":"sindh","city":"karachi","town":"saddar","name":"saddar_uc","label":{"Urdu":"صدر یو سی","Roman Urdu":"Saddar UC","English":"Saddar UC"}},{"province":"sindh","city":"karachi","town":"saddar","name":"civil_line","label":{"Urdu":"سول لائن","Roman Urdu":"Civil Line","English":"Civil Line"}},{"province":"sindh","city":"karachi","town":"saddar","name":"clifton","label":{"Urdu":"کلفٹن","Roman Urdu":"Clifton","English":"Clifton"}},{"province":"sindh","city":"karachi","town":"saddar","name":"kehkashan","label":{"Urdu":"کہکشان","Roman Urdu":"Kehkashan","English":"Kehkashan"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"natha_khan_goth","label":{"Urdu":"ناتھا خان گوٹھ","Roman Urdu":"Natha Khan Goth","English":"Natha Khan Goth"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"pak_sadat_colony","label":{"Urdu":"پاک صدر کالونی","Roman Urdu":"Pak Sadat Colony","English":"Pak Sadat Colony"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"drigh_colony","label":{"Urdu":"ڈرگ کالونی","Roman Urdu":"Drigh Colony","English":"Drigh Colony"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"raita_plot","label":{"Urdu":"رائتا پلاٹ","Roman Urdu":"Raita Plot","English":"Raita Plot"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"moria_khan_goth","label":{"Urdu":"موریا خان گوٹھ","Roman Urdu":"Moria Khan Goth","English":"Moria Khan Goth"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"rafa_e_aam_society","label":{"Urdu":"رفا عام سوسا ئٹی","Roman Urdu":"Rafa-e-Aam Society","English":"Rafa-e-Aam Society"}},{"province":"sindh","city":"karachi","town":"shah_faisal","name":"al_falah_society","label":{"Urdu":"الفلاح سوسا ئٹی","Roman Urdu":"Al-Falah Society","English":"Al-Falah Society"}},{"province":"sindh","city":"karachi","town":"site","name":"pak_colony","label":{"Urdu":"پاک کالونی","Roman Urdu":"Pak Colony","English":"Pak Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"old_golimar","label":{"Urdu":"پرانہ گولی مار","Roman Urdu":"Old Golimar","English":"Old Golimar"}},{"province":"sindh","city":"karachi","town":"site","name":"jahanabad","label":{"Urdu":"جہان آباد","Roman Urdu":"Jahanabad","English":"Jahanabad"}},{"province":"sindh","city":"karachi","town":"site","name":"metrovil","label":{"Urdu":"میٹروویل","Roman Urdu":"Metrovil","English":"Metrovil"}},{"province":"sindh","city":"karachi","town":"site","name":"bhawani_chali","label":{"Urdu":"بہوانی چالی","Roman Urdu":"Bhawani Chali","English":"Bhawani Chali"}},{"province":"sindh","city":"karachi","town":"site","name":"frontier_colony","label":{"Urdu":"فرونٹر کالونی","Roman Urdu":"Frontier Colony","English":"Frontier Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"banaras_colony","label":{"Urdu":"بنارس کالونی","Roman Urdu":"Banaras Colony","English":"Banaras Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"qasba_colony","label":{"Urdu":"قصبہ کالونی","Roman Urdu":"Qasba Colony","English":"Qasba Colony"}},{"province":"sindh","city":"karachi","town":"site","name":"islamia_colony","label":{"Urdu":"اسلامیہ کالونی","Roman Urdu":"Islamia Colony","English":"Islamia Colony"}},{"province":"na","city":"na","town":"na","name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}},{"province":"na","city":"na","town":"na","name":"not_applicable","label":{"Urdu":"قابل اطلاق نہیں","Roman Urdu":"Qaabil-e-atlaaq nahi","English":"Not Applicable"}}],"gender":[{"instance":{"openmrs_code":"1534AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"male","label":{"Urdu":"مرد/ لڑکا","Roman Urdu":"Mard/larka","English":"Male"}},{"instance":{"openmrs_code":"1535AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"female","label":{"Urdu":"عورت/لڑکی","Roman Urdu":"Aurat/larki","English":"Female"}},{"instance":{"openmrs_code":"163163AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"transgender","label":{"Urdu":"خواجہ سرہ","Roman Urdu":"Khwaja sira","English":"Transgender"}}],"vaccines":[{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT1","label":{"Urdu":"ٹی ٹی 1","Roman Urdu":"TT1","English":"TT1"}},{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT2","label":{"Urdu":"ٹی ٹی 2","Roman Urdu":"TT2","English":"TT2"}},{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT3","label":{"Urdu":"ٹی ٹی 3","Roman Urdu":"TT3","English":"TT3"}},{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT4","label":{"Urdu":"ٹی ٹی 4","Roman Urdu":"TT4","English":"TT4"}},{"instance":{"openmrs_code":"84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TT5","label":{"Urdu":"ٹی ٹی 5","Roman Urdu":"TT5","English":"TT5"}}],"towns":[{"province":"sindh","city":"karachi","name":"korangi","label":{"Urdu":"کورنگی","Roman Urdu":"Korangi","English":"Korangi"}},{"province":"sindh","city":"karachi","name":"landhi","label":{"Urdu":"لانڈھی","Roman Urdu":"Landhi","English":"Landhi"}},{"province":"sindh","city":"karachi","name":"baldia","label":{"Urdu":"بلدیہ","Roman Urdu":"Baldia","English":"Baldia"}},{"province":"sindh","city":"karachi","name":"bin_qasim","label":{"Urdu":"بن قاسم","Roman Urdu":"Bin Qasim","English":"Bin Qasim"}},{"province":"sindh","city":"karachi","name":"gadap","label":{"Urdu":"گڈاپ","Roman Urdu":"Gadap","English":"Gadap"}},{"province":"sindh","city":"karachi","name":"gulberg","label":{"Urdu":"گلبرگ","Roman Urdu":"Gulberg","English":"Gulberg"}},{"province":"sindh","city":"karachi","name":"gulshan","label":{"Urdu":"گلشن","Roman Urdu":"Gulshan","English":"Gulshan"}},{"province":"sindh","city":"karachi","name":"jamshed","label":{"Urdu":"جمشید","Roman Urdu":"Jamshed","English":"Jamshed"}},{"province":"sindh","city":"karachi","name":"kiamari","label":{"Urdu":"کیماری","Roman Urdu":"Kiamari","English":"Kiamari"}},{"province":"sindh","city":"karachi","name":"liaquatabad","label":{"Urdu":"لیاقت آباد","Roman Urdu":"Liaquatabad","English":"Liaquatabad"}},{"province":"sindh","city":"karachi","name":"lyari","label":{"Urdu":"لیاری","Roman Urdu":"Lyari","English":"Lyari"}},{"province":"sindh","city":"karachi","name":"malir","label":{"Urdu":"ملیر","Roman Urdu":"Malir","English":"Malir"}},{"province":"sindh","city":"karachi","name":"new_karachi","label":{"Urdu":"نیو کراچی","Roman Urdu":"New Karachi","English":"New Karachi"}},{"province":"sindh","city":"karachi","name":"north_nazimabad","label":{"Urdu":"نارتھ ناظم آباد","Roman Urdu":"North Nazimabad","English":"North Nazimabad"}},{"province":"sindh","city":"karachi","name":"orangi","label":{"Urdu":"اورنگی","Roman Urdu":"Orangi","English":"Orangi"}},{"province":"sindh","city":"karachi","name":"saddar","label":{"Urdu":"صدر","Roman Urdu":"Saddar","English":"Saddar"}},{"province":"sindh","city":"karachi","name":"shah_faisal","label":{"Urdu":"شاہ فیصل","Roman Urdu":"Shah Faisal","English":"Shah Faisal"}},{"province":"sindh","city":"karachi","name":"site","label":{"Urdu":"سائٹ","Roman Urdu":"S.I.T.E.","English":"S.I.T.E."}},{"province":"na","city":"na","name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}},{"province":"na","city":"na","name":"not_applicable","label":{"Urdu":"قابل اطلاق نہیں","Roman Urdu":"Qaabil-e-atlaaq nahi","English":"Not Applicable"}}],"cities":[{"province":"sindh","name":"karachi","label":{"Urdu":"کراچی","Roman Urdu":"Karachi","English":"Karachi"}},{"province":"punjab","name":"hafizabad","label":{"Urdu":"حافظ آباد","Roman Urdu":"Hafizabad","English":"Hafizabad"}},{"province":"punjab","name":"muzaffargarh","label":{"Urdu":"مظفر گڑھ","Roman Urdu":"Muzaffargarh","English":"Muzaffargarh"}},{"province":"na","name":"other","label":{"Urdu":"دیگر","Roman Urdu":"Deegar","English":"Other"}},{"province":"na","name":"not_applicable","label":{"Urdu":"قابل اطلاق نہیں","Roman Urdu":"Not Applicable","English":"Not Applicable"}}],"edd_lmp":[{"instance":{"openmrs_code":"5596AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"edd","label":{"Urdu":"زچگی کی متوقع تاریخ","Roman Urdu":"EDD","English":"EDD"}},{"instance":{"openmrs_code":"1427AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"lmp","label":{"Urdu":"پچھلی مہواری کی تاریخ","Roman Urdu":"LMP","English":"LMP"}},{"instance":{"openmrs_code":"159617AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ultrasound","label":{"Urdu":"الٹرا سائونڈ","Roman Urdu":"Ultrasound","English":"Ultrasound"}},{"instance":{"openmrs_code":"1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"none","label":{"Urdu":"کوئی بھی نہیں","Roman Urdu":"Koi bhi nahi","English":"None of the above"}}],"yes_no":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}]},"instance":{"encounter_type":"Woman TT Follow Up"},"version":"201604260935","id_string":"woman_tt_followup_form","type":"survey","children":[{"type":"hidden","name":"provider_uc"},{"type":"hidden","name":"provider_town"},{"type":"hidden","name":"provider_city"},{"type":"hidden","name":"provider_province"},{"type":"hidden","name":"existing_landmark"},{"type":"hidden","name":"existing_address1"},{"type":"hidden","name":"existing_union_council"},{"type":"hidden","name":"existing_town"},{"type":"hidden","name":"existing_city_village"},{"type":"hidden","name":"existing_province"},{"type":"hidden","name":"existing_union_councilname"},{"type":"hidden","name":"existing_townname"},{"type":"hidden","name":"existing_city_villagename"},{"type":"hidden","name":"existing_provincename"},{"type":"hidden","name":"existing_first_name"},{"type":"hidden","name":"existing_last_name"},{"type":"hidden","name":"existing_father_name"},{"type":"hidden","name":"existing_husband_name"},{"type":"hidden","name":"existing_marriage"},{"type":"hidden","name":"existing_birth_date"},{"type":"hidden","name":"existing_gender"},{"type":"hidden","name":"existing_ethnicity"},{"type":"hidden","name":"existing_client_reg_date"},{"type":"hidden","name":"existing_program_client_id"},{"type":"hidden","name":"existing_epi_card_number"},{"type":"hidden","name":"existing_reminders_approval"},{"type":"hidden","name":"existing_contact_phone_number"},{"type":"hidden","name":"e_tt1"},{"type":"hidden","name":"e_tt2"},{"type":"hidden","name":"e_tt3"},{"type":"hidden","name":"e_tt4"},{"type":"hidden","name":"e_tt5"},{"type":"hidden","name":"provider_id"},{"instance":{"openmrs_entity_id":"location_id","openmrs_entity":"encounter"},"type":"hidden","name":"provider_location_id"},{"type":"hidden","name":"provider_location_name"},{"type":"note","name":"provider_location_note","label":{"Urdu":"شہر: ${provider_city} ; ٹائون: ${provider_town} ; یوسی: ${provider_uc} ; سینٹرکا نام: ${provider_location_name}","English":"City: ${provider_city} ; Town: ${provider_town} ; UC: ${provider_uc} ; Center Name: ${provider_location_name}"}},{"instance":{"openmrs_entity_id":"163137AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"start","name":"start"},{"instance":{"openmrs_entity_id":"163138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"end","name":"end"},{"instance":{"openmrs_entity_id":"163286AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"today","name":"today"},{"instance":{"openmrs_entity_id":"163149AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"deviceid","name":"deviceid"},{"instance":{"openmrs_entity_id":"163150AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"subscriberid","name":"subscriberid"},{"instance":{"openmrs_entity_id":"163151AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"simserial","name":"simserial"},{"instance":{"openmrs_entity_id":"163152AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"phonenumber","name":"phonenumber"},{"bind":{"required":"yes"},"type":"note","name":"client_reg_date_note","label":{"Urdu":"پروگرام میں اندراج کی تاریخ: ${existing_client_reg_date}","Roman Urdu":"Program mai andraj ki tareekh: ${existing_client_reg_date}","English":"Program Registration date: ${existing_client_reg_date}"}},{"bind":{"required":"yes"},"type":"note","name":"program_client_id_note","label":{"Urdu":"پروگرام آئی ڈی: ${existing_program_client_id}","Roman Urdu":"Program ID: ${existing_program_client_id}","English":"Program ID: ${existing_program_client_id}"}},{"bind":{"required":"yes"},"type":"note","name":"epi_card_number_note","label":{"Urdu":"${existing_epi_card_number} :ای پی آئی کارڈ نمبر","Roman Urdu":"EPI Card Number: ${existing_epi_card_number}","English":"EPI Card Number: ${existing_epi_card_number}"}},{"bind":{"required":"yes"},"type":"note","name":"first_name_note","label":{"Urdu":"${existing_first_name} :نام","Roman Urdu":"Naam: ${existing_first_name}","English":"First Name: ${existing_first_name}"}},{"bind":{"required":"yes"},"type":"note","name":"last_name_note","label":{"Urdu":"والد کا نام: ${existing_last_name}","Roman Urdu":"Waalid ka naam: ${existing_last_name}","English":"Last name: ${existing_last_name}"}},{"bind":{"calculate":"date( today() - (${existing_birth_date} div 365.25))"},"type":"calculate","name":"client_age","instance":{"openmrs_entity_id":"154384AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"type":"note","name":"member_birth_date_note","label":{"Urdu":"کلائنٹ کی تاریخِ پیدائش: ${existing_birth_date} (${client_age}) سال","English":"Client birth date: ${existing_birth_date} (${client_age}) years","Roman Urdu":"Client ki tareekh-e-pedaaish: ${existing_birth_date} (${client_age}) years"}},{"bind":{"required":"yes"},"type":"note","name":"gender_note","label":{"Urdu":"${existing_gender} :جنس","Roman Urdu":"Jins:${existing_gender}","English":"Gender: ${existing_gender}"}},{"type":"note","name":"father_name_note","label":{"Urdu":"والد کا نام: ${existing_father_name}","English":"Father's Name: ${existing_father_name}","Roman Urdu":"Waalid ka naam: ${existing_father_name}"}},{"type":"note","name":"marriage_note","label":{"Urdu":"کیا آپ شادی شدہ ہیں: ${existing_marriage}","English":"Are you married: ${existing_marriage}","Roman Urdu":"Kya aap shaadi shuda hain: ${existing_marriage}"}},{"type":"note","name":"husband_name_note","label":{"Urdu":"شوہر کا نام: ${existing_husband_name}","English":"Husband's name: ${existing_husband_name}","Roman Urdu":"Shohar ka naam: ${existing_husband_name}"}},{"bind":{"required":"yes"},"type":"note","name":"ethnicity_note","label":{"Urdu":"قومیت: ${existing_ethnicity}","Roman Urdu":"Qomiat: ${existing_ethnicity}","English":"Ethnicity: ${existing_ethnicity}"}},{"type":"note","name":"address","label":{"Urdu":"موجودہ پتہ: ${existing_address1}, ${existing_landmark}, ${existing_union_councilname}, ${existing_townname}, ${existing_city_villagename}, ${existing_provincename}","English":"Current Address: ${existing_address1}, ${existing_landmark}, ${existing_union_councilname}, ${existing_townname}, ${existing_city_villagename}, ${existing_provincename}","Roman Urdu":"Mojooda Address: ${existing_address1}, ${existing_landmark}, ${existing_union_councilname}, ${existing_townname}, ${existing_city_villagename}, ${existing_provincename}"}},{"label":{"Urdu":"کیا آپ کا گھر کا پتہ بدلا ہے؟","English":"Has your home address changed?","Roman Urdu":"Kya aap ka ghar ka pata badla hai?"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}],"name":"address_change"},{"control":{"appearance":"minimal"},"name":"province","default":"${provider_province}","bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"label":{"Urdu":"صوبہ","Roman Urdu":"Suba","English":"Province"},"instance":{"openmrs_entity":"person_address","openmrs_entity_id":"stateProvince","openmrs_entity_parent":"usual_residence"},"type":"select one","children":[{"name":"kpk","label":{"Urdu":"خیبر پختون خواہ","English":"Khyber Pakhtunkhwa","Roman Urdu":"Khyber Pakhtunkhwa"}},{"name":"sindh","label":{"Urdu":"سندھ","English":"Sindh","Roman Urdu":"Sindh"}},{"name":"balochistan","label":{"Urdu":"بلوچستان","English":"Balochistan","Roman Urdu":"Balochistan"}},{"name":"punjab","label":{"Urdu":"پنجاب","English":"Punjab","Roman Urdu":"Punjab"}},{"name":"gilgit_baltistan","label":{"Urdu":"گلگت بلتستان","English":"Gilgit Baltistan","Roman Urdu":"Gilgit Baltistan"}},{"name":"kashmir","label":{"Urdu":"کشمیر","English":"Kashmir","Roman Urdu":"Kashmir"}},{"name":"fata","label":{"Urdu":"فاٹا","English":"FATA","Roman Urdu":"FATA"}},{"name":"out_of_country","label":{"Urdu":"ملک سے باہر","English":"Out of Country","Roman Urdu":"Mulk se baahir"}}]},{"control":{"appearance":"minimal"},"name":"city_village","choice_filter":"province=${province} or province='na'","default":"${provider_city}","bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"label":{"Urdu":"شہر","Roman Urdu":"Shehr","English":"City"},"itemset":"cities","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"cityVillage","openmrs_entity_parent":"usual_residence"},"type":"select one"},{"control":{"appearance":"minimal"},"name":"town","choice_filter":"(province=${province} and city=${city_village} ) or city='na'","bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"label":{"Urdu":"ٹاٰئون/ قصبہ/ بستی","Roman Urdu":"Town / Qasbah / Basti","English":"Town"},"itemset":"towns","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"town","openmrs_entity_parent":"usual_residence"},"type":"select one"},{"control":{"appearance":"minimal"},"name":"union_council","choice_filter":"(province=${province} and city=${city_village} and town=${town}) or town='na'","bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"label":{"Urdu":"یونین کونسل","Roman Urdu":"Union Council","English":"Union Council"},"itemset":"ucs","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"subTown","openmrs_entity_parent":"usual_residence"},"type":"select one"},{"bind":{"relevant":"selected(${address_change}, 'yes')","required":"yes"},"type":"text","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"address1","openmrs_entity_parent":"usual_residence"},"name":"address1","label":{"Urdu":"گھر کا پتہ","Roman Urdu":"Ghar ka pata","English":"Home Address"}},{"bind":{"relevant":"selected(${address_change}, 'yes')"},"type":"text","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"landmark","openmrs_entity_parent":"usual_residence"},"name":"landmark","label":{"Urdu":"گھر کے قریب کوئی مشہور جگہ","Roman Urdu":"Ghar ke qareeb koi mashoor jagah","English":"Land Mark"}},{"instance":{"openmrs_entity_id":"163277AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"geopoint","name":"center_gps","label":{"Urdu":"حاصل کردہ معلومات کی جگہ کے GPS کارڈینیٹس درج کریں","English":"Collect GPS coordinates of data entry location:","Roman Urdu":"Hasil karda malomaat ki jaga ke GPS coordinates darj karain"}},{"name":"reminders_approval","bind":{"required":"yes"},"label":{"Urdu":"کیا آپ اپنے اگلے دورے کی یاددہانی کے لیے SMS موصول کرنا چاہتی ہیں؟ ${existing_reminders_approval}","English":"Are you willing to receive SMS reminders for your next visit? ${existing_reminders_approval}","Roman Urdu":"Kya aap apnay aglay doray ki yaad-dihani ke liye SMS mausool karna chahti hain? ${existing_reminders_approval}"},"instance":{"openmrs_entity_id":"163089AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}]},{"bind":{"jr:constraintMsg":{"Urdu":"فون نمبر گیارہ ہندسوں پر مشتمل اور مندرجہ ذیل شکل میں ہونا چاہئے: *********03","English":"Phone number should be 11 digits in the following format: 03*********","Roman Urdu":"Phone number 11 hindason par mushtamil aur mundarja zail shakal main hona chahiey: 03*********"},"relevant":"${reminders_approval}='yes'","constraint":"regex(., '^03[0-9]{9}$')"},"type":"text","instance":{"openmrs_entity_id":"159635AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"contact_phone_number","label":{"Urdu":"موبائل نمبر: ${existing_contact_phone_number}","English":"Mobile Number: ${existing_contact_phone_number}","Roman Urdu":"Mobile Number: ${existing_contact_phone_number}"}},{"instance":{"openmrs_entity_id":"5272AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"label":{"Urdu":"کیا آپ حاملہ ہیں؟","English":"Are you pregnant?","Roman Urdu":"Kia aap haamla hain?"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Urdu":"ہاں","Roman Urdu":"Yes","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Urdu":"نہیں","Roman Urdu":"No","English":"No"}}],"name":"pregnant"},{"name":"edd_lmp","bind":{"relevant":"selected (${pregnant}, 'yes')"},"label":{"Urdu":"کیا آپ کو اپنی پچھلی ماہواری کی تاریخ، زچگی کی متوقع تاریخ، یا الٹرا سائونڈ کا علم ہے؟","English":"Do you know your LMP, EDD or last Ultrasound information?","Roman Urdu":"Kya aap ko apni pichli mahwaari ki tareekh, zachgi ki mutawaqqa tareekh ya ultrasound ka ilm hai?"},"instance":{"openmrs_entity_id":"160697AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"5596AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"edd","label":{"Urdu":"زچگی کی متوقع تاریخ","Roman Urdu":"EDD","English":"EDD"}},{"instance":{"openmrs_code":"1427AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"lmp","label":{"Urdu":"پچھلی مہواری کی تاریخ","Roman Urdu":"LMP","English":"LMP"}},{"instance":{"openmrs_code":"159617AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ultrasound","label":{"Urdu":"الٹرا سائونڈ","Roman Urdu":"Ultrasound","English":"Ultrasound"}},{"instance":{"openmrs_code":"1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"none","label":{"Urdu":"کوئی بھی نہیں","Roman Urdu":"Koi bhi nahi","English":"None of the above"}}]},{"bind":{"jr:constraintMsg":{"Urdu":"زچگی کی متوقع تاریخ ماضی کی نہیں ہو سکتی","Roman Urdu":"Zachgi ki mutawaqqa tareekh maazi ki nahi hosakti","English":"EDD cannot be in the past"},"relevant":"selected (${edd_lmp}, 'edd')","constraint":".>=${today}"},"type":"date","name":"edd","label":{"Urdu":"زچگی کی متوقع تاریخ","Roman Urdu":"Zachgi ki mutawaqqa tareekh","English":"EDD"}},{"bind":{"jr:constraintMsg":{"Urdu":"پچھلی ماہواری کی تاریخ مستقبل کی نہیں ہوسکتی","Roman Urdu":"Pichli mahwaari ki tareekh mustaqbil ki nahi hosakti","English":"LMP cannot be in the future"},"relevant":"selected (${edd_lmp}, 'lmp')","constraint":".<=${today}"},"type":"date","name":"lmp","label":{"Urdu":"پچھلی ماہواری کی تاریخ","Roman Urdu":"Pichli mahwaari ki tareekh","English":"LMP"}},{"bind":{"relevant":"selected (${edd_lmp}, 'ultrasound')"},"type":"date","instance":{"openmrs_entity_id":"163165AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"ultrasound_date","label":{"Urdu":"الٹرا سائونڈ کی تاریخ","English":"Ultrasound Date","Roman Urdu":"Ultrasound ki tareekh"}},{"bind":{"relevant":"selected (${edd_lmp}, 'ultrasound')"},"type":"integer","name":"ultrasound_weeks","label":{"Urdu":"الٹرا سائونڈ کی مدد سے حمل کی مدت [ہفتوں میں]","Roman Urdu":"Ultrasound ki madad se hamal ki muddat (hafton me)","English":"Gestational age determined by ultrasound"}},{"bind":{"calculate":"date(${lmp}+280)"},"type":"calculate","name":"edd_calc_lmp"},{"bind":{"calculate":"date((280-(${ultrasound_weeks}*7)+${ultrasound_date} ))"},"type":"calculate","name":"edd_calc_ultrasound"},{"bind":{"calculate":"format-date(${edd_calc_lmp}, '%Y-%n-%e')"},"type":"calculate","name":"edd_calc_lmp_formatted"},{"bind":{"calculate":"format-date(${edd_calc_ultrasound}, '%Y-%n-%e')"},"type":"calculate","name":"edd_calc_ultrasound_formatted"},{"bind":{"calculate":"date(${edd}-280)"},"type":"calculate","name":"lmp_calc_edd"},{"bind":{"calculate":"date(${ultrasound_date}-(${ultrasound_weeks}*7))"},"type":"calculate","name":"lmp_calc_ultrasound"},{"bind":{"calculate":"format-date(${lmp_calc_edd}, '%Y-%n-%e')"},"type":"calculate","name":"lmp_calc_edd_formatted"},{"bind":{"calculate":"format-date(${lmp_calc_ultrasound}, '%Y-%n-%e')"},"type":"calculate","name":"lmp_calc_ultrasound_formatted"},{"bind":{"calculate":"if(${edd_lmp}='lmp',${edd_calc_lmp_formatted},if(${edd_lmp}='edd',${edd} ,if(${edd_lmp}='ultrasound',${edd_calc_ultrasound_formatted},'')))"},"type":"calculate","name":"final_edd","instance":{"openmrs_entity_id":"5596AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"bind":{"calculate":"if(${edd_lmp}='lmp',${lmp},if(${edd_lmp}='edd',${lmp_calc_edd_formatted} ,if(${edd_lmp}='ultrasound',${lmp_calc_ultrasound_formatted},'')))"},"type":"calculate","name":"final_lmp","instance":{"openmrs_entity_id":"1427AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"bind":{"calculate":"int((${vaccination_date} - (${edd}-280))div7)"},"type":"calculate","name":"ga_edd"},{"bind":{"calculate":"int((${vaccination_date} - ${lmp})div7)"},"type":"calculate","name":"ga_lmp"},{"bind":{"calculate":"int((${vaccination_date} -(${ultrasound_date}-(${ultrasound_weeks}*7)))div7)"},"type":"calculate","name":"ga_ult"},{"bind":{"relevant":"selected (${pregnant}, 'yes')"},"type":"note","name":"final_edd_note","label":{"Urdu":"${final_edd} :زچگی کی متوقع تاریخ","Roman Urdu":"Zachgi ki mutawaqqa tareekh: ${final_edd}","English":"EDD: ${final_edd}"}},{"bind":{"relevant":"selected (${pregnant}, 'yes')"},"type":"note","name":"final_lmp_note","label":{"Urdu":"پچھلی ماہواری کی تاریخ: ${final_edd}","Roman Urdu":"Pichli mahwaari ki tareekh: ${final_lmp}","English":"LMP: ${final_lmp}"}},{"bind":{"calculate":"if(${edd_lmp}='lmp',${ga_lmp},if(${edd_lmp}='edd',${ga_edd} ,if(${edd_lmp}='ultrasound',${ga_ult},'')))"},"type":"calculate","name":"final_ga","instance":{"openmrs_entity_id":"163166AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"bind":{"relevant":"selected (${pregnant}, 'yes')"},"type":"note","name":"final_ga_note","label":{"Urdu":"حمل کی مُدّت: {final_ga}$ ہفتے","Roman Urdu":"Hamal ki muddat: ${final_ga} weeks","English":"GA: ${final_ga} weeks"}},{"bind":{"relevant":"${e_tt1} != ''"},"type":"note","name":"tt1_note","label":{"Urdu":"${e_tt1}","Roman Urdu":"${e_tt1}","English":"${e_tt1}"}},{"bind":{"relevant":"${e_tt2} != ''"},"type":"note","name":"tt2_note","label":{"Urdu":"${e_tt2}","Roman Urdu":"${e_tt2}","English":"${e_tt2}"}},{"bind":{"relevant":"${e_tt3} != ''"},"type":"note","name":"tt3_note","label":{"Urdu":"${e_tt3}","Roman Urdu":"${e_tt3}","English":"${e_tt3}"}},{"bind":{"relevant":"${e_tt4} != ''"},"type":"note","name":"tt4_note","label":{"Urdu":"${e_tt4}","Roman Urdu":"${e_tt4}","English":"${e_tt4}"}},{"name":"vaccines","choice_filter":"name != if( ${e_tt1} != '', 'TT1' , '') and \nname != if( ${e_tt2} != '', 'TT2' , '') and \nname != if( ${e_tt3} != '', 'TT3' , '') and \nname != if( ${e_tt4} != '', 'TT4' , '') and \nname != if( ${e_tt5} != '', 'TT5' , '')","default":"minimal","label":{"Urdu":"پچھلی تاریخ جب کسی اور سینٹر پر ٹیکہ لگوایا گیا یا قطرے پلائے گئے","Roman Urdu":"Pichli tareekh jab kissi aur center par teeka lagwaya gaya ya katray pilaey gaye","English":"Retro vaccines"},"itemset":"vaccines","instance":{"openmrs_entity":"concept","openmrs_entity_id":"984AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1421AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"select all that apply"},{"bind":{"jr:constraintMsg":{"Urdu":"درج کردہ معلومات درست نہیں","English":"Invalid data entered","Roman Urdu":"Darj karda maaloomaat durust nahi"},"relevant":"selected(${vaccines},'TT1')","constraint":"(.<=${today} and .>=${existing_birth_date})"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tt1_retro","label":{"Urdu":"ٹی ٹی 1","Roman Urdu":"TT1","English":"TT1"}},{"bind":{"relevant":"selected(${vaccines},'TT1')","calculate":"1"},"type":"calculate","name":"tt_1_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"درج کردہ معلومات درست نہیں","English":"Invalid data entered","Roman Urdu":"Darj karda maaloomaat durust nahi"},"relevant":"selected(${vaccines},'TT2')","constraint":"(.<=${today} and .>=${tt1_retro} and .>=${existing_birth_date} and ((selected(${vaccines}, 'TT1'))))"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tt2_retro","label":{"Urdu":"ٹی ٹی 2","Roman Urdu":"TT2","English":"TT2"}},{"bind":{"relevant":"selected(${vaccines},'TT2')","calculate":"2"},"type":"calculate","name":"tt_2_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"درج کردہ معلومات درست نہیں","English":"Invalid data entered","Roman Urdu":"Darj karda maaloomaat durust nahi"},"relevant":"selected(${vaccines},'TT3')","constraint":"(.<=${today} and .>=${tt2_retro} and .>=${existing_birth_date} and ((selected(${vaccines}, 'TT2'))))"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tt3_retro","label":{"Urdu":"ٹی ٹی 3","Roman Urdu":"TT3","English":"TT3"}},{"bind":{"relevant":"selected(${vaccines},'TT3')","calculate":"3"},"type":"calculate","name":"tt_3_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"jr:constraintMsg":{"Urdu":"درج کردہ معلومات درست نہیں","English":"Invalid data entered","Roman Urdu":"Darj karda maaloomaat durust nahi"},"relevant":"selected(${vaccines},'TT4')","constraint":"(.<=${today} and .>=${tt3_retro} and .>=${existing_birth_date} and ((selected(${vaccines}, 'TT3'))))"},"type":"date","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tt4_retro","label":{"Urdu":"ٹی ٹی 4","Roman Urdu":"TT4","English":"TT4"}},{"bind":{"relevant":"selected(${vaccines},'TT4')","calculate":"4"},"type":"calculate","name":"tt_4_dose","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"name":"vaccines_2","choice_filter":"name != if( ${e_tt1} != '', 'TT1' , '') and \nname != if( ${e_tt2} != '', 'TT2' , '') and \nname != if( ${e_tt3} != '', 'TT3' , '') and \nname != if( ${e_tt4} != '', 'TT4' , '') and \nname != if( ${e_tt5} != '', 'TT5' , '') and \nname != if( selected(${vaccines}, 'TT1') , 'TT1', '') and \nname != if( selected(${vaccines}, 'TT2') , 'TT2', '') and \nname != if( selected(${vaccines}, 'TT3') , 'TT3', '') and \nname != if( selected(${vaccines}, 'TT4') , 'TT4', '') and \nname != if( selected(${vaccines}, 'TT5') , 'TT5', '')","bind":{"required":"yes"},"label":{"Urdu":"آج کون کون سی ویکسین دی گئی ہیں؟","Roman Urdu":"Aaj kon kon si vaccine di gai hain?","English":"Vaccine administered today"},"itemset":"vaccines","instance":{"openmrs_entity":"concept","openmrs_entity_id":"984AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"1441AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"select all that apply"},{"bind":{"jr:constraintMsg":{"Urdu":"یہ تاریخ مستقبل کی نہیں ہوسکتی","English":"This date cannot be in the future","Roman Urdu":"Ye tareekh mustaqbil ki nahi hosakti"},"required":"yes","constraint":".<=${today}"},"type":"date","instance":{"openmrs_entity_id":"encounter_date","openmrs_entity":"encounter"},"name":"vaccination_date","label":{"Urdu":"تاریخ","English":"Vaccination date","Roman Urdu":"Tareekh"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'TT1'),${vaccination_date},'')"},"type":"calculate","name":"tt1","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2},'TT1')","calculate":"1"},"type":"calculate","name":"tt_1_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'TT2'),${vaccination_date},'')"},"type":"calculate","name":"tt2","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2},'TT2')","calculate":"2"},"type":"calculate","name":"tt_2_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'TT3'),${vaccination_date},'')"},"type":"calculate","name":"tt3","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2},'TT3')","calculate":"3"},"type":"calculate","name":"tt_3_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'TT4'),${vaccination_date},'')"},"type":"calculate","name":"tt4","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2},'TT4')","calculate":"4"},"type":"calculate","name":"tt_4_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"calculate":"if(selected(${vaccines_2}, 'TT5'),${vaccination_date},'')"},"type":"calculate","name":"tt5","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"bind":{"relevant":"selected(${vaccines_2},'TT5')","calculate":"5"},"type":"calculate","name":"tt_5_dose_today","instance":{"openmrs_entity":"concept","openmrs_entity_id":"1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"104528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},{"control":{"bodyless":true},"type":"group","children":[{"bind":{"readonly":"true()","calculate":"concat('uuid:', uuid())"},"type":"calculate","name":"instanceID"}],"name":"meta"}]} \ No newline at end of file diff --git a/opensrp-web/src/test/resources/form/woman_followup/form.xml b/opensrp-web/src/test/resources/form/woman_followup/form.xml deleted file mode 100644 index 65b3302e06..0000000000 --- a/opensrp-web/src/test/resources/form/woman_followup/form.xml +++ /dev/null @@ -1,1495 +0,0 @@ -
- - -

خواتین فالواپ رجسٹر برائے ٹیکاجات - Woman TT Follow Up Form

-
-
- - کیا آپ کا گھر کا پتہ بدلا ہے؟ - Kya aap ka ghar ka pata badla hai? - - Has your home address changed? -
- - -
-
-
-
- - کیا آپ اپنے اگلے دورے کی یاددہانی کے لیے SMS موصول کرنا چاہتی ہیں؟ - - Kya aap apnay aglay doray ki yaad-dihani ke liye SMS mausool karna chahti hain? - - - Are you willing to receive SMS reminders for your next visit? - - * -
- - -
-
-
-
- - کیا آپ حاملہ ہیں؟ - Kia aap haamla hain? - - Are you pregnant? -
- - -
-
-
-
- - کیا آپ کو اپنی پچھلی ماہواری کی تاریخ، زچگی کی متوقع تاریخ، یا الٹرا سائونڈ کا علم ہے؟ - Kya aap ko apni pichli mahwaari ki tareekh, zachgi ki mutawaqqa tareekh ya ultrasound ka ilm hai? - - Do you know your LMP, EDD or last Ultrasound information? -
- - - - -
-
-
-
- - پچھلی تاریخ جب کسی اور سینٹر پر ٹیکہ لگوایا گیا یا قطرے پلائے گئے - Pichli tareekh jab kissi aur center par teeka lagwaya gaya ya katray pilaey gaye - - Retro vaccines -
- - - ٹی ٹی 1 - TT1 - 84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - TT1 - ٹی ٹی 2 - TT2 - 84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - TT2 - ٹی ٹی 3 - TT3 - 84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - TT3 - ٹی ٹی 4 - TT4 - 84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - TT4 - ٹی ٹی 5 - TT5 - 84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - TT5 -
-
-
-
- - آج کون کون سی ویکسین دی گئی ہیں؟ - Aaj kon kon si vaccine di gai hain? - - Vaccine administered today - * -
- - - ٹی ٹی 1 - TT1 - 84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - TT1 - ٹی ٹی 2 - TT2 - 84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - TT2 - ٹی ٹی 3 - TT3 - 84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - TT3 - ٹی ٹی 4 - TT4 - 84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - TT4 - ٹی ٹی 5 - TT5 - 84880AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - TT5 -
-
-
- -
diff --git a/opensrp-web/src/test/resources/form/woman_followup/form_definition.json b/opensrp-web/src/test/resources/form/woman_followup/form_definition.json deleted file mode 100644 index 1cf573ab06..0000000000 --- a/opensrp-web/src/test/resources/form/woman_followup/form_definition.json +++ /dev/null @@ -1,377 +0,0 @@ -{ - "form_data_definition_version" : "1", - "form" : { - "bind_type" : "pkwoman", - "default_bind_path" : "/model/instance/Woman_TT_Followup_Form/", - "fields" : [ { - "name" : "id", - "shouldLoadValue" : true - }, { - "name" : "provider_uc", - "bind" : "/model/instance/Woman_TT_Followup_Form/provider_uc", - "shouldLoadValue" : true - }, { - "name" : "provider_town", - "bind" : "/model/instance/Woman_TT_Followup_Form/provider_town", - "shouldLoadValue" : true - }, { - "name" : "provider_city", - "bind" : "/model/instance/Woman_TT_Followup_Form/provider_city", - "shouldLoadValue" : true - }, { - "name" : "provider_province", - "bind" : "/model/instance/Woman_TT_Followup_Form/provider_province", - "shouldLoadValue" : true - }, { - "name" : "existing_landmark", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_landmark", - "shouldLoadValue" : true - }, { - "name": "existing_address1", - "bind": "/model/instance/Woman_TT_Followup_Form/existing_address1", - "shouldLoadValue" : true - }, { - "name" : "existing_union_council", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_union_council", - "shouldLoadValue" : true - }, { - "name" : "existing_town", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_town", - "shouldLoadValue" : true - }, { - "name" : "existing_city_village", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_city_village", - "shouldLoadValue" : true - }, { - "name" : "existing_province", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_province", - "shouldLoadValue" : true - }, { - "name" : "existing_union_councilname", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_union_councilname", - "shouldLoadValue" : true - }, { - "name" : "existing_townname", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_townname", - "shouldLoadValue" : true - }, { - "name" : "existing_city_villagename", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_city_villagename", - "shouldLoadValue" : true - }, { - "name" : "existing_provincename", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_provincename", - "shouldLoadValue" : true - }, { - "name" : "existing_first_name", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_first_name", - "shouldLoadValue" : true - }, { - "name" : "existing_last_name", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_last_name", - "shouldLoadValue" : true - }, { - "name" : "existing_father_name", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_father_name", - "shouldLoadValue" : true - }, { - "name" : "existing_husband_name", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_husband_name", - "shouldLoadValue" : true - }, { - "name" : "existing_marriage", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_marriage", - "shouldLoadValue" : true - }, { - "name" : "existing_birthdate", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_birth_date", - "shouldLoadValue" : true - }, { - "name" : "existing_gender", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_gender", - "shouldLoadValue" : true - }, { - "name" : "existing_ethnicity", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_ethnicity", - "shouldLoadValue" : true - }, { - "name" : "existing_client_reg_date", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_client_reg_date", - "shouldLoadValue" : true - }, { - "name" : "existing_program_client_id", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_program_client_id", - "shouldLoadValue" : true - }, { - "name" : "existing_epi_card_number", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_epi_card_number", - "shouldLoadValue" : true - }, { - "name" : "existing_reminders_approval", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_reminders_approval" - }, { - "name" : "existing_contact_phone_number", - "bind" : "/model/instance/Woman_TT_Followup_Form/existing_contact_phone_number" - }, { - "name" : "e_tt1", - "bind" : "/model/instance/Woman_TT_Followup_Form/e_tt1", - "shouldLoadValue" : true - }, { - "name" : "e_tt2", - "bind" : "/model/instance/Woman_TT_Followup_Form/e_tt2", - "shouldLoadValue" : true - }, { - "name" : "e_tt3", - "bind" : "/model/instance/Woman_TT_Followup_Form/e_tt3", - "shouldLoadValue" : true - }, { - "name" : "e_tt4", - "bind" : "/model/instance/Woman_TT_Followup_Form/e_tt4", - "shouldLoadValue" : true - }, { - "name" : "e_tt5", - "bind" : "/model/instance/Woman_TT_Followup_Form/e_tt5", - "shouldLoadValue" : true - }, { - "name" : "provider_id", - "bind" : "/model/instance/Woman_TT_Followup_Form/provider_id", - "shouldLoadValue" : true - }, { - "name" : "provider_location_id", - "bind" : "/model/instance/Woman_TT_Followup_Form/provider_location_id", - "shouldLoadValue" : true - }, { - "name" : "provider_location_name", - "bind" : "/model/instance/Woman_TT_Followup_Form/provider_location_name", - "shouldLoadValue" : true - }, { - "name" : "provider_location_note", - "bind" : "/model/instance/Woman_TT_Followup_Form/provider_location_note" - }, { - "name" : "start", - "bind" : "/model/instance/Woman_TT_Followup_Form/start" - }, { - "name" : "end", - "bind" : "/model/instance/Woman_TT_Followup_Form/end" - }, { - "name" : "today", - "bind" : "/model/instance/Woman_TT_Followup_Form/today" - }, { - "name" : "deviceid", - "bind" : "/model/instance/Woman_TT_Followup_Form/deviceid" - }, { - "name" : "subscriberid", - "bind" : "/model/instance/Woman_TT_Followup_Form/subscriberid" - }, { - "name" : "simserial", - "bind" : "/model/instance/Woman_TT_Followup_Form/simserial" - }, { - "name" : "phonenumber", - "bind" : "/model/instance/Woman_TT_Followup_Form/phonenumber" - }, { - "name" : "client_reg_date_note", - "bind" : "/model/instance/Woman_TT_Followup_Form/client_reg_date_note" - }, { - "name" : "program_client_id_note", - "bind" : "/model/instance/Woman_TT_Followup_Form/program_client_id_note" - }, { - "name" : "epi_card_number_note", - "bind" : "/model/instance/Woman_TT_Followup_Form/epi_card_number_note" - }, { - "name" : "first_name_note", - "bind" : "/model/instance/Woman_TT_Followup_Form/first_name_note" - }, { - "name" : "last_name_note", - "bind" : "/model/instance/Woman_TT_Followup_Form/last_name_note" - }, { - "name" : "client_age", - "bind" : "/model/instance/Woman_TT_Followup_Form/client_age" - }, { - "name" : "member_birth_date_note", - "bind" : "/model/instance/Woman_TT_Followup_Form/member_birth_date_note" - }, { - "name" : "gender_note", - "bind" : "/model/instance/Woman_TT_Followup_Form/gender_note" - }, { - "name" : "father_name_note", - "bind" : "/model/instance/Woman_TT_Followup_Form/father_name_note" - }, { - "name" : "marriage_note", - "bind" : "/model/instance/Woman_TT_Followup_Form/marriage_note" - }, { - "name" : "husband_name_note", - "bind" : "/model/instance/Woman_TT_Followup_Form/husband_name_note" - }, { - "name" : "ethnicity_note", - "bind" : "/model/instance/Woman_TT_Followup_Form/ethnicity_note" - }, { - "name" : "address", - "bind" : "/model/instance/Woman_TT_Followup_Form/address" - }, { - "name" : "address_change", - "bind" : "/model/instance/Woman_TT_Followup_Form/address_change" - }, { - "name" : "province", - "bind" : "/model/instance/Woman_TT_Followup_Form/province" - }, { - "name" : "city_village", - "bind" : "/model/instance/Woman_TT_Followup_Form/city_village" - }, { - "name" : "town", - "bind" : "/model/instance/Woman_TT_Followup_Form/town" - }, { - "name" : "union_council", - "bind" : "/model/instance/Woman_TT_Followup_Form/union_council" - }, { - "name" : "address1", - "bind" : "/model/instance/Woman_TT_Followup_Form/address1" - }, { - "name" : "landmark", - "bind" : "/model/instance/Woman_TT_Followup_Form/landmark" - }, { - "name" : "center_gps", - "bind" : "/model/instance/Woman_TT_Followup_Form/center_gps" - }, { - "name" : "reminders_approval", - "bind" : "/model/instance/Woman_TT_Followup_Form/reminders_approval" - }, { - "name" : "contact_phone_number", - "bind" : "/model/instance/Woman_TT_Followup_Form/contact_phone_number" - }, { - "name" : "pregnant", - "bind" : "/model/instance/Woman_TT_Followup_Form/pregnant" - }, { - "name" : "edd_lmp", - "bind" : "/model/instance/Woman_TT_Followup_Form/edd_lmp" - }, { - "name" : "edd", - "bind" : "/model/instance/Woman_TT_Followup_Form/edd" - }, { - "name" : "lmp", - "bind" : "/model/instance/Woman_TT_Followup_Form/lmp" - }, { - "name" : "ultrasound_date", - "bind" : "/model/instance/Woman_TT_Followup_Form/ultrasound_date" - }, { - "name" : "ultrasound_weeks", - "bind" : "/model/instance/Woman_TT_Followup_Form/ultrasound_weeks" - }, { - "name" : "edd_calc_lmp", - "bind" : "/model/instance/Woman_TT_Followup_Form/edd_calc_lmp" - }, { - "name" : "edd_calc_ultrasound", - "bind" : "/model/instance/Woman_TT_Followup_Form/edd_calc_ultrasound" - }, { - "name" : "edd_calc_lmp_formatted", - "bind" : "/model/instance/Woman_TT_Followup_Form/edd_calc_lmp_formatted" - }, { - "name" : "edd_calc_ultrasound_formatted", - "bind" : "/model/instance/Woman_TT_Followup_Form/edd_calc_ultrasound_formatted" - }, { - "name" : "lmp_calc_edd", - "bind" : "/model/instance/Woman_TT_Followup_Form/lmp_calc_edd" - }, { - "name" : "lmp_calc_ultrasound", - "bind" : "/model/instance/Woman_TT_Followup_Form/lmp_calc_ultrasound" - }, { - "name" : "lmp_calc_edd_formatted", - "bind" : "/model/instance/Woman_TT_Followup_Form/lmp_calc_edd_formatted" - }, { - "name" : "lmp_calc_ultrasound_formatted", - "bind" : "/model/instance/Woman_TT_Followup_Form/lmp_calc_ultrasound_formatted" - }, { - "name" : "final_edd", - "bind" : "/model/instance/Woman_TT_Followup_Form/final_edd" - }, { - "name" : "final_lmp", - "bind" : "/model/instance/Woman_TT_Followup_Form/final_lmp" - }, { - "name" : "ga_edd", - "bind" : "/model/instance/Woman_TT_Followup_Form/ga_edd" - }, { - "name" : "ga_lmp", - "bind" : "/model/instance/Woman_TT_Followup_Form/ga_lmp" - }, { - "name" : "ga_ult", - "bind" : "/model/instance/Woman_TT_Followup_Form/ga_ult" - }, { - "name" : "final_edd_note", - "bind" : "/model/instance/Woman_TT_Followup_Form/final_edd_note" - }, { - "name" : "final_lmp_note", - "bind" : "/model/instance/Woman_TT_Followup_Form/final_lmp_note" - }, { - "name" : "final_ga", - "bind" : "/model/instance/Woman_TT_Followup_Form/final_ga" - }, { - "name" : "final_ga_note", - "bind" : "/model/instance/Woman_TT_Followup_Form/final_ga_note" - }, { - "name" : "vaccines", - "bind" : "/model/instance/Woman_TT_Followup_Form/vaccines" - }, { - "name" : "tt1_retro", - "bind" : "/model/instance/Woman_TT_Followup_Form/tt1_retro" - }, { - "name" : "tt_1_dose", - "bind" : "/model/instance/Woman_TT_Followup_Form/tt_1_dose" - }, { - "name" : "tt2_retro", - "bind" : "/model/instance/Woman_TT_Followup_Form/tt2_retro" - }, { - "name" : "tt_2_dose", - "bind" : "/model/instance/Woman_TT_Followup_Form/tt_2_dose" - }, { - "name" : "tt3_retro", - "bind" : "/model/instance/Woman_TT_Followup_Form/tt3_retro" - }, { - "name" : "tt_3_dose", - "bind" : "/model/instance/Woman_TT_Followup_Form/tt_3_dose" - }, { - "name" : "tt4_retro", - "bind" : "/model/instance/Woman_TT_Followup_Form/tt4_retro" - }, { - "name" : "tt_4_dose", - "bind" : "/model/instance/Woman_TT_Followup_Form/tt_4_dose" - }, { - "name" : "vaccines_2", - "bind" : "/model/instance/Woman_TT_Followup_Form/vaccines_2" - }, { - "name" : "vaccination_date", - "bind" : "/model/instance/Woman_TT_Followup_Form/vaccination_date" - }, { - "name" : "tt1", - "bind" : "/model/instance/Woman_TT_Followup_Form/tt1" - }, { - "name" : "tt_1_dose_today", - "bind" : "/model/instance/Woman_TT_Followup_Form/tt_1_dose_today" - }, { - "name" : "tt2", - "bind" : "/model/instance/Woman_TT_Followup_Form/tt2" - }, { - "name" : "tt_2_dose_today", - "bind" : "/model/instance/Woman_TT_Followup_Form/tt_2_dose_today" - }, { - "name" : "tt3", - "bind" : "/model/instance/Woman_TT_Followup_Form/tt3" - }, { - "name" : "tt_3_dose_today", - "bind" : "/model/instance/Woman_TT_Followup_Form/tt_3_dose_today" - }, { - "name" : "tt4", - "bind" : "/model/instance/Woman_TT_Followup_Form/tt4" - }, { - "name" : "tt_4_dose_today", - "bind" : "/model/instance/Woman_TT_Followup_Form/tt_4_dose_today" - }, { - "name" : "tt5", - "bind" : "/model/instance/Woman_TT_Followup_Form/tt5" - }, { - "name" : "tt_5_dose_today", - "bind" : "/model/instance/Woman_TT_Followup_Form/tt_5_dose_today" - }, { - "name" : "instanceID", - "bind" : "/model/instance/Woman_TT_Followup_Form/meta/instanceID" - } ] - } -} \ No newline at end of file diff --git a/opensrp-web/src/test/resources/form/woman_followup/model.xml b/opensrp-web/src/test/resources/form/woman_followup/model.xml deleted file mode 100644 index 67f43ce94b..0000000000 --- a/opensrp-web/src/test/resources/form/woman_followup/model.xml +++ /dev/null @@ -1,1645 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - ${provider_province} - ${provider_city} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - minimal - - - - - - - - - - - - - - - - - - - - - - - - - - - - - static_instance-provinces-0 - kpk - - - static_instance-provinces-1 - sindh - - - static_instance-provinces-2 - balochistan - - - static_instance-provinces-3 - punjab - - - static_instance-provinces-4 - gilgit_baltistan - - - static_instance-provinces-5 - kashmir - - - static_instance-provinces-6 - fata - - - static_instance-provinces-7 - out_of_country - - - - - - - static_instance-ucs-0 - sindh - karachi - korangi - bilal_colony - - - static_instance-ucs-1 - sindh - karachi - korangi - nasir_colony - - - static_instance-ucs-2 - sindh - karachi - korangi - chakra_goth - - - static_instance-ucs-3 - sindh - karachi - korangi - mustafa_taj_colony - - - static_instance-ucs-4 - sindh - karachi - korangi - hundred_quarters - - - static_instance-ucs-5 - sindh - karachi - korangi - gulzar_colony - - - static_instance-ucs-6 - sindh - karachi - korangi - korangi_sector_33 - - - static_instance-ucs-7 - sindh - karachi - korangi - zaman_town - - - static_instance-ucs-8 - sindh - karachi - korangi - hasrat_mohani_colony - - - static_instance-ucs-9 - sindh - karachi - baldia - gulshan_e_ghazi - - - static_instance-ucs-10 - sindh - karachi - baldia - ittehad_town - - - static_instance-ucs-11 - sindh - karachi - baldia - islam_nagar - - - static_instance-ucs-12 - sindh - karachi - baldia - nai_abadi - - - static_instance-ucs-13 - sindh - karachi - baldia - saeedabad - - - static_instance-ucs-14 - sindh - karachi - baldia - muslim_mujahid_colony - - - static_instance-ucs-15 - sindh - karachi - baldia - muhajir_camp - - - static_instance-ucs-16 - sindh - karachi - baldia - rasheedabad - - - static_instance-ucs-17 - sindh - karachi - bin_qasim - ibrahim_hyderi - - - static_instance-ucs-18 - sindh - karachi - bin_qasim - rehri - - - static_instance-ucs-19 - sindh - karachi - bin_qasim - cattle_colony - - - static_instance-ucs-20 - sindh - karachi - bin_qasim - qaidabad - - - static_instance-ucs-21 - sindh - karachi - bin_qasim - landhi_colony - - - static_instance-ucs-22 - sindh - karachi - bin_qasim - gulshan_e_hadeed - - - static_instance-ucs-23 - sindh - karachi - bin_qasim - gaghar - - - static_instance-ucs-24 - sindh - karachi - gadap - murad_memon_goth - - - static_instance-ucs-25 - sindh - karachi - gadap - darsano_chana - - - static_instance-ucs-26 - sindh - karachi - gadap - gujro - - - static_instance-ucs-27 - sindh - karachi - gadap - songal - - - static_instance-ucs-28 - sindh - karachi - gadap - maymarabad - - - static_instance-ucs-29 - sindh - karachi - gadap - yousuf_goth - - - static_instance-ucs-30 - sindh - karachi - gadap - manghopir - - - static_instance-ucs-31 - sindh - karachi - gulberg - azizabad - - - static_instance-ucs-32 - sindh - karachi - gulberg - karimabad - - - static_instance-ucs-33 - sindh - karachi - gulberg - aisha_manzil - - - static_instance-ucs-34 - sindh - karachi - gulberg - ancholi - - - static_instance-ucs-35 - sindh - karachi - gulberg - naseerabad - - - static_instance-ucs-36 - sindh - karachi - gulberg - yaseenabad - - - static_instance-ucs-37 - sindh - karachi - gulberg - water_pump - - - static_instance-ucs-38 - sindh - karachi - gulberg - shafiq_mill_colony - - - static_instance-ucs-39 - sindh - karachi - gulshan - delhi_mercantile_society - - - static_instance-ucs-40 - sindh - karachi - gulshan - civic_centre - - - static_instance-ucs-41 - sindh - karachi - gulshan - pir_ilahi_buksh_colony - - - static_instance-ucs-42 - sindh - karachi - gulshan - essa_nagri - - - static_instance-ucs-43 - sindh - karachi - gulshan - gulshan_e_iqbal - - - static_instance-ucs-44 - sindh - karachi - gulshan - gillani_railway_station - - - static_instance-ucs-45 - sindh - karachi - gulshan - shanti_nagar - - - static_instance-ucs-46 - sindh - karachi - gulshan - jamali_colony - - - static_instance-ucs-47 - sindh - karachi - gulshan - gulshan_e_iqbal_ii - - - static_instance-ucs-48 - sindh - karachi - gulshan - pehlwan_goth - - - static_instance-ucs-49 - sindh - karachi - gulshan - matrovil_colony - - - static_instance-ucs-50 - sindh - karachi - gulshan - gulzar_e_hijri - - - static_instance-ucs-51 - sindh - karachi - gulshan - safooran_goth - - - static_instance-ucs-52 - sindh - karachi - jamshed - akhtar_colony - - - static_instance-ucs-53 - sindh - karachi - jamshed - manzoor_colony - - - static_instance-ucs-54 - sindh - karachi - jamshed - azam_basti - - - static_instance-ucs-55 - sindh - karachi - jamshed - chanesar_goth - - - static_instance-ucs-56 - sindh - karachi - jamshed - mahmudabad - - - static_instance-ucs-57 - sindh - karachi - jamshed - pechs - - - static_instance-ucs-58 - sindh - karachi - jamshed - pechs_ii - - - static_instance-ucs-59 - sindh - karachi - jamshed - jut_line - - - static_instance-ucs-60 - sindh - karachi - jamshed - central_jacob_lines - - - static_instance-ucs-61 - sindh - karachi - jamshed - jamshed_quarters - - - static_instance-ucs-62 - sindh - karachi - jamshed - garden_east - - - static_instance-ucs-63 - sindh - karachi - jamshed - soldier_bazar - - - static_instance-ucs-64 - sindh - karachi - jamshed - pakistan_quarters - - - static_instance-ucs-65 - sindh - karachi - kiamari - bhutta_village - - - static_instance-ucs-66 - sindh - karachi - kiamari - sultanabad - - - static_instance-ucs-67 - sindh - karachi - kiamari - kiamari_uc - - - static_instance-ucs-68 - sindh - karachi - kiamari - baba_bhit - - - static_instance-ucs-69 - sindh - karachi - kiamari - machar_colony - - - static_instance-ucs-70 - sindh - karachi - kiamari - maripur - - - static_instance-ucs-71 - sindh - karachi - kiamari - shershah - - - static_instance-ucs-72 - sindh - karachi - kiamari - gabo_pat - - - static_instance-ucs-73 - sindh - karachi - landhi - muzafarabad - - - static_instance-ucs-74 - sindh - karachi - landhi - muslimabad - - - static_instance-ucs-75 - sindh - karachi - landhi - dawood_chowrangi - - - static_instance-ucs-76 - sindh - karachi - landhi - moinabad - - - static_instance-ucs-77 - sindh - karachi - landhi - sharafi_goth - - - static_instance-ucs-78 - sindh - karachi - landhi - bhutto_nagar - - - static_instance-ucs-79 - sindh - karachi - landhi - khawaja_ajmeer_colony - - - static_instance-ucs-80 - sindh - karachi - landhi - landhi_uc - - - static_instance-ucs-81 - sindh - karachi - landhi - awami_colony - - - static_instance-ucs-82 - sindh - karachi - landhi - burmee_colony - - - static_instance-ucs-83 - sindh - karachi - landhi - korangi_uc - - - static_instance-ucs-84 - sindh - karachi - landhi - sherabad - - - static_instance-ucs-85 - sindh - karachi - liaquatabad - rizvia_society - - - static_instance-ucs-86 - sindh - karachi - liaquatabad - firdous_colony - - - static_instance-ucs-87 - sindh - karachi - liaquatabad - super_market - - - static_instance-ucs-88 - sindh - karachi - liaquatabad - dak_khana - - - static_instance-ucs-89 - sindh - karachi - liaquatabad - qasimabad - - - static_instance-ucs-90 - sindh - karachi - liaquatabad - bandhani_colony - - - static_instance-ucs-91 - sindh - karachi - liaquatabad - sharifabad - - - static_instance-ucs-92 - sindh - karachi - liaquatabad - commercial_area - - - static_instance-ucs-93 - sindh - karachi - liaquatabad - mujahid_colony - - - static_instance-ucs-94 - sindh - karachi - liaquatabad - nazimabad - - - static_instance-ucs-95 - sindh - karachi - liaquatabad - abbasi_shaheed - - - static_instance-ucs-96 - sindh - karachi - lyari - agra_taj_colony - - - static_instance-ucs-97 - sindh - karachi - lyari - daryaabad - - - static_instance-ucs-98 - sindh - karachi - lyari - nawabad - - - static_instance-ucs-99 - sindh - karachi - lyari - khada_memon_society - - - static_instance-ucs-100 - sindh - karachi - lyari - baghdadi - - - static_instance-ucs-101 - sindh - karachi - lyari - shah_baig_line - - - static_instance-ucs-102 - sindh - karachi - lyari - bihar_colony - - - static_instance-ucs-103 - sindh - karachi - lyari - ragiwara - - - static_instance-ucs-104 - sindh - karachi - lyari - singo_line - - - static_instance-ucs-105 - sindh - karachi - lyari - chakiwara - - - static_instance-ucs-106 - sindh - karachi - lyari - allama_iqbal_colony - - - static_instance-ucs-107 - sindh - karachi - malir - model_colony - - - static_instance-ucs-108 - sindh - karachi - malir - kala_board - - - static_instance-ucs-109 - sindh - karachi - malir - saudabad - - - static_instance-ucs-110 - sindh - karachi - malir - khokhra_par - - - static_instance-ucs-111 - sindh - karachi - malir - jafar_e_tayyar - - - static_instance-ucs-112 - sindh - karachi - malir - gharibabad - - - static_instance-ucs-113 - sindh - karachi - malir - ghazi_brohi_goth - - - static_instance-ucs-114 - sindh - karachi - new_karachi - kalyana - - - static_instance-ucs-115 - sindh - karachi - new_karachi - sir_syed_colony - - - static_instance-ucs-116 - sindh - karachi - new_karachi - fatima_jinnah_colony - - - static_instance-ucs-117 - sindh - karachi - new_karachi - godhra - - - static_instance-ucs-118 - sindh - karachi - new_karachi - abu_zar_ghaffari - - - static_instance-ucs-119 - sindh - karachi - new_karachi - hakim_ahsan - - - static_instance-ucs-120 - sindh - karachi - new_karachi - madina_colony - - - static_instance-ucs-121 - sindh - karachi - new_karachi - faisal_colony - - - static_instance-ucs-122 - sindh - karachi - new_karachi - khamiso_goth - - - static_instance-ucs-123 - sindh - karachi - new_karachi - mustufa_colony - - - static_instance-ucs-124 - sindh - karachi - new_karachi - khawaja_ajmeer_nagri - - - static_instance-ucs-125 - sindh - karachi - new_karachi - gulshan_e_saeed - - - static_instance-ucs-126 - sindh - karachi - new_karachi - shah_nawaz_bhutto_colony - - - static_instance-ucs-127 - sindh - karachi - north_nazimabad - paposh_nagar - - - static_instance-ucs-128 - sindh - karachi - north_nazimabad - pahar_ganj - - - static_instance-ucs-129 - sindh - karachi - north_nazimabad - khandu_goth - - - static_instance-ucs-130 - sindh - karachi - north_nazimabad - hyderi - - - static_instance-ucs-131 - sindh - karachi - north_nazimabad - sakhi_hassan - - - static_instance-ucs-132 - sindh - karachi - north_nazimabad - farooq_e_azam - - - static_instance-ucs-133 - sindh - karachi - north_nazimabad - nusrat_bhutto_colony - - - static_instance-ucs-134 - sindh - karachi - north_nazimabad - shadman_town - - - static_instance-ucs-135 - sindh - karachi - north_nazimabad - buffer_zone - - - static_instance-ucs-136 - sindh - karachi - north_nazimabad - buffer_zone_ii - - - static_instance-ucs-137 - sindh - karachi - orangi - mominabad - - - static_instance-ucs-138 - sindh - karachi - orangi - haryana_colony - - - static_instance-ucs-139 - sindh - karachi - orangi - hanifabad - - - static_instance-ucs-140 - sindh - karachi - orangi - mohammad_nagar - - - static_instance-ucs-141 - sindh - karachi - orangi - madina_colony_orangi - - - static_instance-ucs-142 - sindh - karachi - orangi - ghaziabad - - - static_instance-ucs-143 - sindh - karachi - orangi - chisti_nagar - - - static_instance-ucs-144 - sindh - karachi - orangi - bilal_colony_orangi - - - static_instance-ucs-145 - sindh - karachi - orangi - iqbal_baloch_colony - - - static_instance-ucs-146 - sindh - karachi - orangi - ghabool_town - - - static_instance-ucs-147 - sindh - karachi - orangi - data_nagar - - - static_instance-ucs-148 - sindh - karachi - orangi - mujahidabad - - - static_instance-ucs-149 - sindh - karachi - orangi - baloch_goth - - - static_instance-ucs-150 - sindh - karachi - saddar - old_haji_camp - - - static_instance-ucs-151 - sindh - karachi - saddar - garden - - - static_instance-ucs-152 - sindh - karachi - saddar - kharadar - - - static_instance-ucs-153 - sindh - karachi - saddar - city_railway_colony - - - static_instance-ucs-154 - sindh - karachi - saddar - nanak_wara - - - static_instance-ucs-155 - sindh - karachi - saddar - gazdarabad - - - static_instance-ucs-156 - sindh - karachi - saddar - millat_nagar_islam_pura - - - static_instance-ucs-157 - sindh - karachi - saddar - saddar_uc - - - static_instance-ucs-158 - sindh - karachi - saddar - civil_line - - - static_instance-ucs-159 - sindh - karachi - saddar - clifton - - - static_instance-ucs-160 - sindh - karachi - saddar - kehkashan - - - static_instance-ucs-161 - sindh - karachi - shah_faisal - natha_khan_goth - - - static_instance-ucs-162 - sindh - karachi - shah_faisal - pak_sadat_colony - - - static_instance-ucs-163 - sindh - karachi - shah_faisal - drigh_colony - - - static_instance-ucs-164 - sindh - karachi - shah_faisal - raita_plot - - - static_instance-ucs-165 - sindh - karachi - shah_faisal - moria_khan_goth - - - static_instance-ucs-166 - sindh - karachi - shah_faisal - rafa_e_aam_society - - - static_instance-ucs-167 - sindh - karachi - shah_faisal - al_falah_society - - - static_instance-ucs-168 - sindh - karachi - site - pak_colony - - - static_instance-ucs-169 - sindh - karachi - site - old_golimar - - - static_instance-ucs-170 - sindh - karachi - site - jahanabad - - - static_instance-ucs-171 - sindh - karachi - site - metrovil - - - static_instance-ucs-172 - sindh - karachi - site - bhawani_chali - - - static_instance-ucs-173 - sindh - karachi - site - frontier_colony - - - static_instance-ucs-174 - sindh - karachi - site - banaras_colony - - - static_instance-ucs-175 - sindh - karachi - site - qasba_colony - - - static_instance-ucs-176 - sindh - karachi - site - islamia_colony - - - static_instance-ucs-177 - na - na - na - other - - - static_instance-ucs-178 - na - na - na - not_applicable - - - - - - - static_instance-gender-0 - male - - - static_instance-gender-1 - female - - - static_instance-gender-2 - transgender - - - - - - - static_instance-vaccines-0 - TT1 - - - static_instance-vaccines-1 - TT2 - - - static_instance-vaccines-2 - TT3 - - - static_instance-vaccines-3 - TT4 - - - static_instance-vaccines-4 - TT5 - - - - - - - static_instance-towns-0 - sindh - karachi - korangi - - - static_instance-towns-1 - sindh - karachi - landhi - - - static_instance-towns-2 - sindh - karachi - baldia - - - static_instance-towns-3 - sindh - karachi - bin_qasim - - - static_instance-towns-4 - sindh - karachi - gadap - - - static_instance-towns-5 - sindh - karachi - gulberg - - - static_instance-towns-6 - sindh - karachi - gulshan - - - static_instance-towns-7 - sindh - karachi - jamshed - - - static_instance-towns-8 - sindh - karachi - kiamari - - - static_instance-towns-9 - sindh - karachi - liaquatabad - - - static_instance-towns-10 - sindh - karachi - lyari - - - static_instance-towns-11 - sindh - karachi - malir - - - static_instance-towns-12 - sindh - karachi - new_karachi - - - static_instance-towns-13 - sindh - karachi - north_nazimabad - - - static_instance-towns-14 - sindh - karachi - orangi - - - static_instance-towns-15 - sindh - karachi - saddar - - - static_instance-towns-16 - sindh - karachi - shah_faisal - - - static_instance-towns-17 - sindh - karachi - site - - - static_instance-towns-18 - na - na - other - - - static_instance-towns-19 - na - na - not_applicable - - - - - - - static_instance-cities-0 - sindh - karachi - - - static_instance-cities-1 - punjab - hafizabad - - - static_instance-cities-2 - punjab - muzaffargarh - - - static_instance-cities-3 - na - other - - - static_instance-cities-4 - na - not_applicable - - - - - - - static_instance-edd_lmp-0 - edd - - - static_instance-edd_lmp-1 - lmp - - - static_instance-edd_lmp-2 - ultrasound - - - static_instance-edd_lmp-3 - none - - - - - - - static_instance-yes_no-0 - yes - - - static_instance-yes_no-1 - no - - - - diff --git a/opensrp-web/src/test/resources/schedules/child-bcg.json b/opensrp-web/src/test/resources/schedules/child-bcg.json deleted file mode 100644 index 2e585a9917..0000000000 --- a/opensrp-web/src/test/resources/schedules/child-bcg.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "BCG", - "absolute": true, - "milestones": [ - { - "name": "bcg", - "scheduleWindows": { - "earliest": ["0 Days"], - "due": ["28 Days"], - "late": ["1 Year"], - "max": ["1 Year", "1 Day"] - }, - "alerts": [ - { - "window": "due", - "offset": ["0 Days"], - "interval": ["1 Day"], - "count": "30" - }, - { - "window": "late", - "offset": ["28 Days"], - "interval": ["1 Day"], - "count": "366" - }, - { - "window": "max", - "offset": ["1 Year", "1 Day"], - "interval": ["1 Day"], - "count": "2" - } - ] - } - ] -} diff --git a/opensrp-web/src/test/resources/schedules/child-dpt-booster1.json b/opensrp-web/src/test/resources/schedules/child-dpt-booster1.json deleted file mode 100644 index ac3930beb1..0000000000 --- a/opensrp-web/src/test/resources/schedules/child-dpt-booster1.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "DPT Booster 1", - "absolute": true, - "milestones": [ - { - "name": "dptbooster_1", - "scheduleWindows": { - "earliest": ["16 Months"], - "due": ["24 Months"], - "late": ["5 Years"], - "max": [""] - }, - "alerts": [ - { - "window": "earliest", - "offset": ["0 Days"], - "interval": ["1 Day"], - "count": "486" - }, - { - "window": "due", - "offset": ["16 Months"], - "interval": ["1 Day"], - "count": "243" - }, - { - "window": "late", - "offset": ["24 Months"], - "interval": ["1 Day"], - "count": "1095" - } - ] - } - ] -} diff --git a/opensrp-web/src/test/resources/schedules/child-dpt-booster2.json b/opensrp-web/src/test/resources/schedules/child-dpt-booster2.json deleted file mode 100644 index 74f1a83bae..0000000000 --- a/opensrp-web/src/test/resources/schedules/child-dpt-booster2.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "name": "DPT Booster 2", - "absolute": true, - "milestones": [ - { - "name": "dptbooster_2", - "scheduleWindows": { - "earliest": ["5 Years"], - "due": ["7 Years"], - "max": ["7 Years"] - }, - "alerts": [ - { - "window": "due", - "offset": ["5 Years"], - "interval": ["1 Day"], - "count": "730" - } - ] - } - ] -} diff --git a/opensrp-web/src/test/resources/schedules/child-ipv.json b/opensrp-web/src/test/resources/schedules/child-ipv.json deleted file mode 100644 index 2f235563c6..0000000000 --- a/opensrp-web/src/test/resources/schedules/child-ipv.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "IPV", - "absolute": true, - "milestones": [ - { - "name": "ipv", - "scheduleWindows": { - "earliest": ["4 Weeks"], - "due": ["6 Weeks"], - "late": ["5 Years"], - "max": ["5 Years", "1 Day"] - }, - "alerts": [ - { - "window": "earliest", - "offset": ["0 Weeks"], - "interval": ["1 Day"], - "count": "30" - }, - { - "window": "due", - "offset": ["4 Weeks"], - "interval": ["1 Day"], - "count": "30" - }, - { - "window": "late", - "offset": ["6 Weeks"], - "interval": ["1 Day"], - "count": "1900" - }, - { - "window": "max", - "offset": ["5 Years"], - "interval": ["1 Day"], - "count": "2" - } - ] - } - ] -} diff --git a/opensrp-web/src/test/resources/schedules/child-measles1.json b/opensrp-web/src/test/resources/schedules/child-measles1.json deleted file mode 100644 index c7437bbdfb..0000000000 --- a/opensrp-web/src/test/resources/schedules/child-measles1.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "Measles 1", - "absolute": true, - "milestones": [ - { - "name": "measles1", - "scheduleWindows": { - "earliest": ["39 Weeks"], - "due": ["52 Weeks"], - "late": ["5 Years"], - "max": ["5 Years", "1 Day"] - }, - "alerts": [ - { - "window": "earliest", - "offset": ["0 Months"], - "interval": ["1 Day"], - "count": "300" - }, - { - "window": "due", - "offset": ["39 Weeks"], - "interval": ["1 Day"], - "count": "100" - }, - { - "window": "late", - "offset": ["52 Weeks"], - "interval": ["1 Day"], - "count": "1900" - }, - { - "window": "max", - "offset": ["5 Years"], - "interval": ["1 Day"], - "count": "2" - } - ] - } - ] -} diff --git a/opensrp-web/src/test/resources/schedules/child-measles2.json b/opensrp-web/src/test/resources/schedules/child-measles2.json deleted file mode 100644 index 20b9a4a3b1..0000000000 --- a/opensrp-web/src/test/resources/schedules/child-measles2.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "Measles 2", - "absolute": true, - "milestones": [ - { - "name": "measles2", - "scheduleWindows": { - "earliest": ["26 Weeks"], - "due": ["61 Weeks"], - "late": ["5 Year"], - "max": ["5 Years", "1 Day"] - }, - "alerts": [ - { - "window": "earliest", - "offset": ["0 Weeks"], - "interval": ["1 Day"], - "count": "200" - }, - { - "window": "due", - "offset": ["26 Weeks"], - "interval": ["1 Day"], - "count": "300" - }, - { - "window": "late", - "offset": ["61 Weeks"], - "interval": ["1 Day"], - "count": "1900" - }, - { - "window": "max", - "offset": ["5 Years"], - "interval": ["1 Day"], - "count": "2" - } - ] - } - ] -} diff --git a/opensrp-web/src/test/resources/schedules/child-opv-booster.json b/opensrp-web/src/test/resources/schedules/child-opv-booster.json deleted file mode 100644 index 1c4e122505..0000000000 --- a/opensrp-web/src/test/resources/schedules/child-opv-booster.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "name": "OPV BOOSTER", - "absolute": true, - "milestones": [ - { - "name": "opvbooster", - "scheduleWindows": { - "earliest": ["16 Months"], - "due": ["24 Months"], - "late": ["5 Years"], - "max": ["5 Years"] - }, - "alerts": [ - { - "window": "due", - "offset": ["16 Months"], - "interval": ["1 Day"], - "count": "243" - }, - { - "window": "late", - "offset": ["24 Months"], - "interval": ["1 Day"], - "count": "1095" - } - ] - } - ] -} diff --git a/opensrp-web/src/test/resources/schedules/child-opv0.json b/opensrp-web/src/test/resources/schedules/child-opv0.json deleted file mode 100644 index 66045d110c..0000000000 --- a/opensrp-web/src/test/resources/schedules/child-opv0.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "OPV 0", - "absolute": true, - "milestones": [ - { - "name": "opv0", - "scheduleWindows": { - "earliest": ["0 Days"], - "due": ["14 Days"], - "late": ["5 Years"], - "max": ["5 Years", "1 Day"] - }, - "alerts": [ - { - "window": "due", - "offset": ["0 Days"], - "interval": ["1 Day"], - "count": "15" - }, - { - "window": "late", - "offset": ["14 Days"], - "interval": ["1 Day"], - "count": "1900" - }, - { - "window": "max", - "offset": ["5 Years"], - "interval": ["1 Day"], - "count": "2" - } - ] - } - ] -} diff --git a/opensrp-web/src/test/resources/schedules/child-opv1.json b/opensrp-web/src/test/resources/schedules/child-opv1.json deleted file mode 100644 index f1c637b3e4..0000000000 --- a/opensrp-web/src/test/resources/schedules/child-opv1.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "OPV 1", - "absolute": true, - "milestones": [ - { - "name": "opv1", - "scheduleWindows": { - "earliest": ["6 Weeks"], - "due": ["8 Weeks"], - "late": ["5 Years"], - "max": ["5 Years", "1 Day"] - }, - "alerts": [ - { - "window": "earliest", - "offset": ["0 Weeks"], - "interval": ["1 Day"], - "count": "50" - }, - { - "window": "due", - "offset": ["6 Weeks"], - "interval": ["1 Day"], - "count": "30" - }, - { - "window": "late", - "offset": ["8 Weeks"], - "interval": ["1 Day"], - "count": "1900" - }, - { - "window": "max", - "offset": ["5 Years"], - "interval": ["1 Day"], - "count": "2" - } - ] - } - ] -} diff --git a/opensrp-web/src/test/resources/schedules/child-opv2.json b/opensrp-web/src/test/resources/schedules/child-opv2.json deleted file mode 100644 index 06c7a75aac..0000000000 --- a/opensrp-web/src/test/resources/schedules/child-opv2.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "OPV 2", - "absolute": true, - "milestones": [ - { - "name": "opv2", - "scheduleWindows": { - "earliest": ["4 Weeks"], - "due": ["6 Weeks"], - "late": ["5 Years"], - "max": ["5 Years", "1 Day"] - }, - "alerts": [ - { - "window": "earliest", - "offset": ["0 Weeks"], - "interval": ["1 Day"], - "count": "30" - }, - { - "window": "due", - "offset": ["4 Weeks"], - "interval": ["1 Day"], - "count": "30" - }, - { - "window": "late", - "offset": ["6 Weeks"], - "interval": ["1 Day"], - "count": "1900" - }, - { - "window": "max", - "offset": ["5 Years"], - "interval": ["1 Day"], - "count": "2" - } - ] - } - ] -} diff --git a/opensrp-web/src/test/resources/schedules/child-opv3.json b/opensrp-web/src/test/resources/schedules/child-opv3.json deleted file mode 100644 index ab41fab67d..0000000000 --- a/opensrp-web/src/test/resources/schedules/child-opv3.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "OPV 3", - "absolute": true, - "milestones": [ - { - "name": "opv3", - "scheduleWindows": { - "earliest": ["4 Weeks"], - "due": ["6 Weeks"], - "late": ["5 Years"], - "max": ["5 Years", "1 Day"] - }, - "alerts": [ - { - "window": "earliest", - "offset": ["0 Weeks"], - "interval": ["1 Day"], - "count": "30" - }, - { - "window": "due", - "offset": ["4 Weeks"], - "interval": ["1 Day"], - "count": "30" - }, - { - "window": "late", - "offset": ["6 Weeks"], - "interval": ["1 Day"], - "count": "1900" - }, - { - "window": "max", - "offset": ["5 Years"], - "interval": ["1 Day"], - "count": "2" - } - ] - } - ] -} diff --git a/opensrp-web/src/test/resources/schedules/child-pcv1.json b/opensrp-web/src/test/resources/schedules/child-pcv1.json deleted file mode 100644 index 317b454c85..0000000000 --- a/opensrp-web/src/test/resources/schedules/child-pcv1.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "PCV 1", - "absolute": true, - "milestones": [ - { - "name": "pcv1", - "scheduleWindows": { - "earliest": ["6 Weeks"], - "due": ["8 Weeks"], - "late": ["5 Years"], - "max": ["5 Years", "1 Day"] - }, - "alerts": [ - { - "window": "earliest", - "offset": ["0 Weeks"], - "interval": ["1 Day"], - "count": "50" - }, - { - "window": "due", - "offset": ["6 Weeks"], - "interval": ["1 Day"], - "count": "30" - }, - { - "window": "late", - "offset": ["8 Weeks"], - "interval": ["1 Day"], - "count": "1900" - }, - { - "window": "max", - "offset": ["5 Years"], - "interval": ["1 Day"], - "count": "2" - } - ] - } - ] -} diff --git a/opensrp-web/src/test/resources/schedules/child-pcv2.json b/opensrp-web/src/test/resources/schedules/child-pcv2.json deleted file mode 100644 index a2cf000439..0000000000 --- a/opensrp-web/src/test/resources/schedules/child-pcv2.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "PCV 2", - "absolute": true, - "milestones": [ - { - "name": "pcv2", - "scheduleWindows": { - "earliest": ["4 Weeks"], - "due": ["6 Weeks"], - "late": ["5 Years"], - "max": ["5 Years", "1 Day"] - }, - "alerts": [ - { - "window": "earliest", - "offset": ["0 Weeks"], - "interval": ["1 Day"], - "count": "30" - }, - { - "window": "due", - "offset": ["4 Weeks"], - "interval": ["1 Day"], - "count": "30" - }, - { - "window": "late", - "offset": ["6 Weeks"], - "interval": ["1 Day"], - "count": "1900" - }, - { - "window": "max", - "offset": ["5 Years"], - "interval": ["1 Day"], - "count": "2" - } - ] - } - ] -} diff --git a/opensrp-web/src/test/resources/schedules/child-pcv3.json b/opensrp-web/src/test/resources/schedules/child-pcv3.json deleted file mode 100644 index 45efda86d8..0000000000 --- a/opensrp-web/src/test/resources/schedules/child-pcv3.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "PCV 3", - "absolute": true, - "milestones": [ - { - "name": "pcv3", - "scheduleWindows": { - "earliest": ["4 Weeks"], - "due": ["6 Weeks"], - "late": ["5 Years"], - "max": ["5 Years", "1 Day"] - }, - "alerts": [ - { - "window": "earliest", - "offset": ["0 Weeks"], - "interval": ["1 Day"], - "count": "30" - }, - { - "window": "due", - "offset": ["4 Weeks"], - "interval": ["1 Day"], - "count": "30" - }, - { - "window": "late", - "offset": ["6 Weeks"], - "interval": ["1 Day"], - "count": "1900" - }, - { - "window": "max", - "offset": ["5 Years"], - "interval": ["1 Day"], - "count": "2" - } - ] - } - ] -} diff --git a/opensrp-web/src/test/resources/schedules/child-pentavalent1.json b/opensrp-web/src/test/resources/schedules/child-pentavalent1.json deleted file mode 100644 index a98e1b9fe0..0000000000 --- a/opensrp-web/src/test/resources/schedules/child-pentavalent1.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "Penta 1", - "absolute": true, - "milestones": [ - { - "name": "penta1", - "scheduleWindows": { - "earliest": ["6 Weeks"], - "due": ["8 Weeks"], - "late": ["52 Weeks"], - "max": ["1 Year", "1 Day"] - }, - "alerts": [ - { - "window": "earliest", - "offset": ["0 Weeks"], - "interval": ["1 Day"], - "count": "50" - }, - { - "window": "due", - "offset": ["6 Weeks"], - "interval": ["1 Day"], - "count": "30" - }, - { - "window": "late", - "offset": ["8 Weeks"], - "interval": ["1 Day"], - "count": "366" - }, - { - "window": "max", - "offset": ["1 Year"], - "interval": ["1 Day"], - "count": "2" - } - ] - } - ] -} diff --git a/opensrp-web/src/test/resources/schedules/child-pentavalent2.json b/opensrp-web/src/test/resources/schedules/child-pentavalent2.json deleted file mode 100644 index 76c4cee91c..0000000000 --- a/opensrp-web/src/test/resources/schedules/child-pentavalent2.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "Penta 2", - "absolute": true, - "milestones": [ - { - "name": "penta2", - "scheduleWindows": { - "earliest": ["4 Weeks"], - "due": ["6 Weeks"], - "late": ["52 Weeks"], - "max": ["1 Year", "1 Day"] - }, - "alerts": [ - { - "window": "earliest", - "offset": ["0 Weeks"], - "interval": ["1 Day"], - "count": "30" - }, - { - "window": "due", - "offset": ["4 Weeks"], - "interval": ["1 Day"], - "count": "30" - }, - { - "window": "late", - "offset": ["6 Weeks"], - "interval": ["1 Day"], - "count": "366" - }, - { - "window": "max", - "offset": ["1 Year"], - "interval": ["1 Day"], - "count": "2" - } - ] - } - ] -} \ No newline at end of file diff --git a/opensrp-web/src/test/resources/schedules/child-pentavalent3.json b/opensrp-web/src/test/resources/schedules/child-pentavalent3.json deleted file mode 100644 index 32a5e79fcb..0000000000 --- a/opensrp-web/src/test/resources/schedules/child-pentavalent3.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "Penta 3", - "absolute": true, - "milestones": [ - { - "name": "penta3", - "scheduleWindows": { - "earliest": ["4 Weeks"], - "due": ["6 Weeks"], - "late": ["52 Weeks"], - "max": ["1 Year", "1 Day"] - }, - "alerts": [ - { - "window": "earliest", - "offset": ["0 Weeks"], - "interval": ["1 Day"], - "count": "30" - }, - { - "window": "due", - "offset": ["4 Weeks"], - "interval": ["1 Day"], - "count": "30" - }, - { - "window": "late", - "offset": ["6 Weeks"], - "interval": ["1 Day"], - "count": "366" - }, - { - "window": "max", - "offset": ["1 Year"], - "interval": ["1 Day"], - "count": "2" - } - ] - } - ] -} \ No newline at end of file diff --git a/opensrp-web/src/test/resources/schedules/delivery-plan.json b/opensrp-web/src/test/resources/schedules/delivery-plan.json deleted file mode 100644 index a265d65154..0000000000 --- a/opensrp-web/src/test/resources/schedules/delivery-plan.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "Delivery Plan", - "absolute": true, - "milestones": [ - { - "name": "Delivery Plan", - "scheduleWindows": { - "earliest": ["34 Weeks"], - "due": ["36 Weeks"], - "late": ["300 Days"], - "max": ["5 Years"] - }, - "alerts": [ - { - "window": "earliest", - "offset": ["0 Days"], - "interval": ["1 Day"], - "count": "238" - }, - { - "window": "due", - "offset": ["34 Weeks"], - "interval": ["1 Day"], - "count": "14" - }, - { - "window": "late", - "offset": ["36 Weeks"], - "interval": ["1 Day"], - "count": "48" - } - ] - } - ] -} diff --git a/opensrp-web/src/test/resources/schedules/ec-condom-refill.json b/opensrp-web/src/test/resources/schedules/ec-condom-refill.json deleted file mode 100644 index cce9f98933..0000000000 --- a/opensrp-web/src/test/resources/schedules/ec-condom-refill.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "name": "Condom Refill", - "absolute": true, - "milestones": [ - { - "name": "Condom Refill", - "scheduleWindows": { - "earliest": ["0 Weeks"], - "due": ["1 Weeks"], - "late": ["1 Year"], - "max": ["1 Year", "1 Day"] - }, - "alerts": [ - { - "window": "due", - "offset": ["0 Weeks"], - "interval": ["1 Day"], - "count": "7" - }, - { - "window": "late", - "offset": ["1 Weeks"], - "interval": ["1 Day"], - "count": "358" - } - ] - } - ] -} diff --git a/opensrp-web/src/test/resources/schedules/ec-dmpa-injectable-refill.json b/opensrp-web/src/test/resources/schedules/ec-dmpa-injectable-refill.json deleted file mode 100644 index d83b18ce80..0000000000 --- a/opensrp-web/src/test/resources/schedules/ec-dmpa-injectable-refill.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "DMPA Injectable Refill", - "absolute": true, - "milestones": [ - { - "name": "DMPA Injectable Refill", - "scheduleWindows": { - "earliest": ["12 Weeks"], - "due": ["13 Weeks"], - "late": ["1 Year"], - "max": ["1 Year", "1 Day"] - }, - "alerts": [ - { - "window": "earliest", - "offset": ["0 Weeks"], - "interval": ["1 Day"], - "count": "84" - }, - { - "window": "due", - "offset": ["12 Weeks"], - "interval": ["1 Day"], - "count": "7" - }, - { - "window": "late", - "offset": ["13 Weeks"], - "interval": ["1 Day"], - "count": "274" - } - ] - } - ] -} diff --git a/opensrp-web/src/test/resources/schedules/ec-female-sterilization-followup.json b/opensrp-web/src/test/resources/schedules/ec-female-sterilization-followup.json deleted file mode 100644 index 2fe8f4c6db..0000000000 --- a/opensrp-web/src/test/resources/schedules/ec-female-sterilization-followup.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "name": "Female sterilization Followup", - "absolute": true, - "milestones": [ - { - "name": "Female sterilization Followup 1", - "scheduleWindows": { - "earliest": ["0 Weeks"], - "due": ["2 Days"], - "late": ["7 Days"], - "max": ["7 Days"] - }, - "alerts": [ - { - "window": "due", - "offset": ["0 Days"], - "interval": ["1 Day"], - "count": "2" - }, - { - "window": "late", - "offset": ["2 Days"], - "interval": ["1 Day"], - "count": "5" - } - ] - }, - { - "name": "Female sterilization Followup 2", - "scheduleWindows": { - "earliest": ["0 Weeks"], - "due": ["9 Days"], - "late": ["1 Month"], - "max": ["1 Month"] - }, - "alerts": [ - { - "window": "due", - "offset": ["7 Days"], - "interval": ["1 Day"], - "count": "2" - }, - { - "window": "late", - "offset": ["9 Days"], - "interval": ["1 Day"], - "count": "22" - } - ] - }, - { - "name": "Female sterilization Followup 3", - "scheduleWindows": { - "earliest": ["0 Weeks"], - "due": ["1 Month", "1 Week"], - "late": ["100 Weeks"], - "max": ["100 Weeks", "1 Day"] - }, - "alerts": [ - { - "window": "due", - "offset": ["1 Month"], - "interval": ["1 Day"], - "count": "7" - }, - { - "window": "late", - "offset": ["1 Month", "1 Week"], - "interval": ["1 Day"], - "count": "665" - } - ] - } - ] -} diff --git a/opensrp-web/src/test/resources/schedules/ec-fp-followup.json b/opensrp-web/src/test/resources/schedules/ec-fp-followup.json deleted file mode 100644 index 092db43076..0000000000 --- a/opensrp-web/src/test/resources/schedules/ec-fp-followup.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "FP Followup", - "absolute": true, - "milestones": [ - { - "name": "FP Followup", - "scheduleWindows": { - "earliest": ["3 Days"], - "due": ["7 Days"], - "late": ["100 Weeks"], - "max": ["100 Weeks", "1 Day"] - }, - "alerts": [ - { - "window": "earliest", - "offset": ["0 Days"], - "interval": ["1 Day"], - "count": "3" - }, - { - "window": "due", - "offset": ["3 Days"], - "interval": ["1 Day"], - "count": "4" - }, - { - "window": "late", - "offset": ["7 Days"], - "interval": ["1 Day"], - "count": "693" - } - ] - } - ] -} diff --git a/opensrp-web/src/test/resources/schedules/ec-fp-referral-followup.json b/opensrp-web/src/test/resources/schedules/ec-fp-referral-followup.json deleted file mode 100644 index 3c36c7dc9c..0000000000 --- a/opensrp-web/src/test/resources/schedules/ec-fp-referral-followup.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "FP Referral Followup", - "absolute": true, - "milestones": [ - { - "name": "FP Referral Followup", - "scheduleWindows": { - "earliest": ["1 Day"], - "due": ["2 Days"], - "late": ["100 Weeks"], - "max": ["100 Weeks", "1 Day"] - }, - "alerts": [ - { - "window": "earliest", - "offset": ["0 Days"], - "interval": ["1 Day"], - "count": "1" - }, - { - "window": "due", - "offset": ["1 Day"], - "interval": ["1 Day"], - "count": "1" - }, - { - "window": "late", - "offset": ["2 Days"], - "interval": ["1 Day"], - "count": "698" - } - ] - } - ] -} diff --git a/opensrp-web/src/test/resources/schedules/ec-iud-followup.json b/opensrp-web/src/test/resources/schedules/ec-iud-followup.json deleted file mode 100644 index 5e39cdaf8c..0000000000 --- a/opensrp-web/src/test/resources/schedules/ec-iud-followup.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "name": "IUD Followup", - "absolute": true, - "milestones": [ - { - "name": "IUD Followup 1", - "scheduleWindows": { - "earliest": ["1 Month"], - "due": ["1 Month", "1 Week"], - "late": ["4 Months"], - "max": ["4 Months"] - }, - "alerts": [ - { - "window": "earliest", - "offset": ["0 Days"], - "interval": ["1 Day"], - "count": "30" - }, - { - "window": "due", - "offset": ["1 Month"], - "interval": ["1 Day"], - "count": "7" - }, - { - "window": "late", - "offset": ["1 Month", "1 Week"], - "interval": ["1 Day"], - "count": "84" - } - ] - }, - { - "name": "IUD Followup 2", - "scheduleWindows": { - "earliest": ["0 Weeks"], - "due": ["4 Months", "1 Week"], - "late": ["100 Weeks"], - "max": ["100 Weeks", "1 Day"] - }, - "alerts": [ - { - "window": "due", - "offset": ["4 Months"], - "interval": ["1 Day"], - "count": "7" - }, - { - "window": "late", - "offset": ["4 Months", "1 Week"], - "interval": ["1 Day"], - "count": "572" - } - ] - } - ] -} diff --git a/opensrp-web/src/test/resources/schedules/ec-male-sterilization-followup.json b/opensrp-web/src/test/resources/schedules/ec-male-sterilization-followup.json deleted file mode 100644 index 72d095e489..0000000000 --- a/opensrp-web/src/test/resources/schedules/ec-male-sterilization-followup.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "name": "Male sterilization Followup", - "absolute": true, - "milestones": [ - { - "name": "Male sterilization Followup 1", - "scheduleWindows": { - "earliest": ["0 Weeks"], - "due": ["2 Days"], - "late": ["3 Months"], - "max": ["3 Months"] - }, - "alerts": [ - { - "window": "due", - "offset": ["0 Days"], - "interval": ["1 Day"], - "count": "2" - }, - { - "window": "late", - "offset": ["2 Days"], - "interval": ["1 Day"], - "count": "89" - } - ] - }, - { - "name": "Male sterilization Followup 2", - "scheduleWindows": { - "earliest": ["0 Weeks"], - "due": ["3 Months", "1 Week"], - "late": ["100 Weeks"], - "max": ["100 Weeks", "1 Day"] - }, - "alerts": [ - { - "window": "due", - "offset": ["3 Months"], - "interval": ["1 Day"], - "count": "7" - }, - { - "window": "late", - "offset": ["3 Months", "1 Week"], - "interval": ["1 Day"], - "count": "602" - } - ] - } - ] -} diff --git a/opensrp-web/src/test/resources/schedules/ec-ocp-refill.json b/opensrp-web/src/test/resources/schedules/ec-ocp-refill.json deleted file mode 100644 index e5b0c4556b..0000000000 --- a/opensrp-web/src/test/resources/schedules/ec-ocp-refill.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "name": "OCP Refill", - "absolute": true, - "milestones": [ - { - "name": "OCP Refill", - "scheduleWindows": { - "earliest": ["0 Weeks"], - "due": ["1 Week"], - "late": ["1 Year"], - "max": ["1 Year", "1 Day"] - }, - "alerts": [ - { - "window": "due", - "offset": ["0 Week"], - "interval": ["1 Day"], - "count": "7" - }, - { - "window": "late", - "offset": ["1 Weeks"], - "interval": ["1 Day"], - "count": "358" - } - ] - } - ] -} diff --git a/opensrp-web/src/test/resources/schedules/fw-census.json b/opensrp-web/src/test/resources/schedules/fw-census.json deleted file mode 100644 index 2e1c935ae9..0000000000 --- a/opensrp-web/src/test/resources/schedules/fw-census.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "FW CENSUS", - "absolute": true, - "milestones": [ - { - "name": "FW CENSUS", - "scheduleWindows": { - "earliest": ["1 Day"], - "due": ["2 Days"], - "late": ["4 Days"], - "max": ["8 Days"] - }, - "alerts": [ - { - "window": "earliest", - "offset": ["0 Days"], - "interval": ["1 Day"], - "count": "1" - }, - { - "window": "due", - "offset": ["1 Day"], - "interval": ["1 Day"], - "count": "1" - }, - { - "window": "late", - "offset": ["2 Days"], - "interval": ["1 Day"], - "count": "2" - } - ] - } - ] -} diff --git a/opensrp-web/src/test/resources/schedules/mother-anc-normal.json b/opensrp-web/src/test/resources/schedules/mother-anc-normal.json deleted file mode 100644 index 7032989b45..0000000000 --- a/opensrp-web/src/test/resources/schedules/mother-anc-normal.json +++ /dev/null @@ -1,104 +0,0 @@ -{ - "name": "Ante Natal Care - Normal", - "absolute": true, - "milestones": [ - { - "name": "ANC 1", - "scheduleWindows": { - "earliest": ["0 Weeks"], - "due": ["12 Weeks"], - "late": ["14 Weeks"], - "max": ["14 weeks"] - }, - "alerts": [ - { - "window": "due", - "offset": ["0 Weeks"], - "interval": ["1 Day"], - "count": "84" - }, - { - "window": "late", - "offset": ["12 Weeks"], - "interval": ["1 Day"], - "count": "14" - }, - { - "window": "max", - "offset": ["14 Weeks"], - "interval": ["1 Day"], - "count": "2" - } - ] - }, - { - "name": "ANC 2", - "scheduleWindows": { - "earliest": ["14 Weeks"], - "due": ["26 Weeks"], - "late": ["28 Weeks"], - "max": ["28 Weeks"] - }, - "alerts": [ - { - "window": "due", - "offset": ["14 Weeks"], - "interval": ["1 Day"], - "count": "84" - }, - { - "window": "late", - "offset": ["26 Weeks"], - "interval": ["1 Day"], - "count": "14" - } - ] - }, - { - "name": "ANC 3", - "scheduleWindows": { - "earliest": ["28 Weeks"], - "due": ["34 Weeks"], - "late": ["36 Weeks"], - "max": ["36 Weeks"] - }, - "alerts": [ - { - "window": "due", - "offset": ["28 Weeks"], - "interval": ["1 Day"], - "count": "42" - }, - { - "window": "late", - "offset": ["34 Weeks"], - "interval": ["1 Day"], - "count": "14" - } - ] - }, - { - "name": "ANC 4", - "scheduleWindows": { - "earliest": ["36 Weeks"], - "due": ["39 Weeks"], - "late": ["100 Weeks"], - "max": ["100 Weeks", "1 Day"] - }, - "alerts": [ - { - "window": "due", - "offset": ["36 Weeks"], - "interval": ["1 Day"], - "count": "21" - }, - { - "window": "late", - "offset": ["39 Weeks"], - "interval": ["1 Day"], - "count": "427" - } - ] - } - ] -} diff --git a/opensrp-web/src/test/resources/schedules/mother-auto-close-pnc.json b/opensrp-web/src/test/resources/schedules/mother-auto-close-pnc.json deleted file mode 100644 index e73b24f8ba..0000000000 --- a/opensrp-web/src/test/resources/schedules/mother-auto-close-pnc.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "name": "Auto Close PNC", - "absolute": false, - "milestones": [ - { - "name": "Auto Close PNC", - "scheduleWindows": { - "due": ["8 Weeks", "4 Day"] - }, - "alerts": [ - { - "window": "due", - "offset": ["8 Weeks"], - "interval": ["1 Day"], - "count": "4" - } - ] - } - ] -} \ No newline at end of file diff --git a/opensrp-web/src/test/resources/schedules/mother-expected-date-of-delivery.json b/opensrp-web/src/test/resources/schedules/mother-expected-date-of-delivery.json deleted file mode 100644 index adf0921335..0000000000 --- a/opensrp-web/src/test/resources/schedules/mother-expected-date-of-delivery.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "Expected Date Of Delivery", - "absolute": false, - "milestones": [ - { - "name": "EDD", - "scheduleWindows": { - "earliest": ["38 Weeks"], - "due": ["40 Weeks", "1 Day"], - "late": ["100 Weeks"], - "max": ["100 Weeks", "1 Day"] - }, - "alerts": [ - { - "window": "due", - "offset": ["0 Days"], - "interval": ["1 Weeks"], - "count": "3" - }, - { - "window": "late", - "offset": ["2 Days"], - "interval": ["1 Weeks"], - "count": "100" - }, - { - "window": "late", - "offset": ["6 Days"], - "interval": ["1 Weeks"], - "count": "100" - } - ] - } - ] -} diff --git a/opensrp-web/src/test/resources/schedules/mother-hb-followup-test.json b/opensrp-web/src/test/resources/schedules/mother-hb-followup-test.json deleted file mode 100644 index cceeeeb496..0000000000 --- a/opensrp-web/src/test/resources/schedules/mother-hb-followup-test.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "Hb Followup Test", - "absolute": true, - "milestones": [ - { - "name": "Hb Followup Test", - "scheduleWindows": { - "earliest": ["1 Month"], - "due": ["1 Month", "2 Weeks"], - "late": ["100 Weeks"], - "max": ["100 Weeks", "1 Day"] - }, - "alerts": [ - { - "window": "earliest", - "offset": ["0 Weeks"], - "interval": ["1 Day"], - "count": "30" - }, - { - "window": "due", - "offset": ["1 Month"], - "interval": ["1 Day"], - "count": "14" - }, - { - "window": "late", - "offset": ["1 Month", "2 Weeks"], - "interval": ["1 Day"], - "count": "655" - } - ] - } - ] -} diff --git a/opensrp-web/src/test/resources/schedules/mother-hb-test-1.json b/opensrp-web/src/test/resources/schedules/mother-hb-test-1.json deleted file mode 100644 index 97f7b54267..0000000000 --- a/opensrp-web/src/test/resources/schedules/mother-hb-test-1.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "name": "Hb Test 1", - "absolute": true, - "milestones": [ - { - "name": "Hb Test 1", - "scheduleWindows": { - "earliest": ["0 Weeks"], - "due": ["12 Weeks"], - "late": ["100 Weeks"], - "max": ["100 Weeks", "1 Day"] - }, - "alerts": [ - { - "window": "due", - "offset": ["0 Weeks"], - "interval": ["1 Day"], - "count": "84" - }, - { - "window": "late", - "offset": ["12 Weeks"], - "interval": ["1 Day"], - "count": "616" - } - ] - } - ] -} diff --git a/opensrp-web/src/test/resources/schedules/mother-hb-test-2.json b/opensrp-web/src/test/resources/schedules/mother-hb-test-2.json deleted file mode 100644 index 70d2f18b48..0000000000 --- a/opensrp-web/src/test/resources/schedules/mother-hb-test-2.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "name": "Hb Test 2", - "absolute": true, - "milestones": [ - { - "name": "Hb Test 2", - "scheduleWindows": { - "earliest": ["0 Weeks"], - "due": ["30 Weeks"], - "late": ["100 Weeks"], - "max": ["100 Weeks", "1 Day"] - }, - "alerts": [ - { - "window": "due", - "offset": ["28 Weeks"], - "interval": ["1 Day"], - "count": "14" - }, - { - "window": "late", - "offset": ["30 Weeks"], - "interval": ["1 Day"], - "count": "490" - } - ] - } - ] -} diff --git a/opensrp-web/src/test/resources/schedules/mother-ifa-1.json b/opensrp-web/src/test/resources/schedules/mother-ifa-1.json deleted file mode 100644 index 027939ac58..0000000000 --- a/opensrp-web/src/test/resources/schedules/mother-ifa-1.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "IFA 1", - "absolute": true, - "milestones": [ - { - "name": "IFA 1", - "scheduleWindows": { - "earliest": ["14 Weeks"], - "due": ["16 Weeks"], - "late": ["100 Weeks"], - "max": ["100 Weeks", "1 Day"] - }, - "alerts": [ - { - "window": "earliest", - "offset": ["0 Weeks"], - "interval": ["1 Day"], - "count": "90" - }, - { - "window": "due", - "offset": ["14 Weeks"], - "interval": ["1 Day"], - "count": "14" - }, - { - "window": "late", - "offset": ["16 Weeks"], - "interval": ["1 Day"], - "count": "588" - } - ] - } - ] -} diff --git a/opensrp-web/src/test/resources/schedules/mother-ifa-2.json b/opensrp-web/src/test/resources/schedules/mother-ifa-2.json deleted file mode 100644 index e45e067ee8..0000000000 --- a/opensrp-web/src/test/resources/schedules/mother-ifa-2.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "IFA 2", - "absolute": true, - "milestones": [ - { - "name": "IFA 2", - "scheduleWindows": { - "earliest": ["1 Months"], - "due": ["1 Month", "2 Weeks"], - "late": ["100 Weeks"], - "max": ["100 Weeks", "1 Day"] - }, - "alerts": [ - { - "window": "earliest", - "offset": ["0 Weeks"], - "interval": ["1 Day"], - "count": "30" - }, - { - "window": "due", - "offset": ["1 Months"], - "interval": ["1 Day"], - "count": "14" - }, - { - "window": "late", - "offset": ["1 Month", "2 Weeks"], - "interval": ["1 Day"], - "count": "658" - } - ] - } - ] -} diff --git a/opensrp-web/src/test/resources/schedules/mother-ifa-3.json b/opensrp-web/src/test/resources/schedules/mother-ifa-3.json deleted file mode 100644 index 206ede5e19..0000000000 --- a/opensrp-web/src/test/resources/schedules/mother-ifa-3.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "IFA 3", - "absolute": true, - "milestones": [ - { - "name": "IFA 3", - "scheduleWindows": { - "earliest": ["1 Months"], - "due": ["1 Month", "2 Weeks"], - "late": ["100 Weeks"], - "max": ["100 Weeks", "1 Day"] - }, - "alerts": [ - { - "window": "earliest", - "offset": ["0 Weeks"], - "interval": ["1 Day"], - "count": "30" - }, - { - "window": "due", - "offset": ["1 Months"], - "interval": ["1 Day"], - "count": "14" - }, - { - "window": "late", - "offset": ["1 Month", "2 Weeks"], - "interval": ["1 Day"], - "count": "658" - } - ] - } - ] -} diff --git a/opensrp-web/src/test/resources/schedules/mother-lab-reminder.json b/opensrp-web/src/test/resources/schedules/mother-lab-reminder.json deleted file mode 100644 index 6738572b56..0000000000 --- a/opensrp-web/src/test/resources/schedules/mother-lab-reminder.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "name": "Lab Reminders", - "absolute": false, - "milestones": [ - { - "name": "REMINDER", - "scheduleWindows": { - "earliest": ["10 Weeks"], - "due": ["30 Weeks"], - "late": ["40 Weeks", "1 Day"], - "max": ["41 Weeks"] - }, - "alerts": [ - { - "window": "late", - "offset": ["0 Days"], - "interval": ["1 Weeks"], - "count": "11" - }, - { - "window": "max", - "offset": ["1 Day"], - "interval": ["1 Day"], - "count": "3" - } - ] - } - ] -} diff --git a/opensrp-web/src/test/resources/schedules/schedule-config.xls b/opensrp-web/src/test/resources/schedules/schedule-config.xls deleted file mode 100644 index 68cc1e3724c875324596df7b48830b053de08923..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 24064 zcmeHPeQ=z`dEYyoq_bswl5K1-{&+2aNwzFYC&`%DM*iT-;13m?Koh4%mhNoTvQCxG z#Gb^1Xp@;vp&76POu#hIl$o@ofdEOMC1CPL($0vsw4sy)GNc0;nq=DAO{Yx;xc+{- z@4oNu-g~c41Jgjp@6F!5`|Li?^V{8LpZ$3Ey?^-orq>_(`uraY=ek_fh<8iVM4drT z;GRKVjY6!#4dd^YN+m@U0=MU{4^a)g1FUUmyc&cQLM;N@ydEKqFb!ckLIc7KgbNU6 zB4iL?0-_0F7Q$?VIS3ab%te@oa1p}A2=fsxL0EvW5MdF*VgwIi2|_c%QiNp)%Mn%} ztVC!*XhooXF|0A}KSWjhfrfg$DBx2>TU;qd@H-}sp_Z$^=E7oh0h3_!()N>L2qek4X{3-r?mvi}f6OjaxDU;J3DxB?mmB!--9 zfvMqH5B<9A)#_(`z2)nlmPRkGs}+wdexd$v;mzxi_+yb2kENc+w-En|uvd)I7wqgG zI$S7>^n3pw*H($4KS2zqQNf#Vmk_5wZG=xD6)lhN+4B2QneQ3-y$LD*2_JKE*R_k+ zBL~N*o06MlzCV`V&GLIDz7yhGlII7K(h06tkv}c&WRoVv*80RYSivx?U_Y#5NPN(8 zOgksiIp@fc5Z&S#R%FG}CNKuX=SafapR2~2Vso^i53P^Yk~(LOSJ9gBGT644$Kqg) z?sMkYc#a$i(HmQqgArvp>|0pBZ(|8qVSKG~T#m2x1aef8u_(0wo*Scd^RnipZA+JS z>}%byw?#+xwk}F7!8`yXwk9F{6W8YkKWS%b#zX-_y3W+zVaq|BqE@0X&2BD7nxFMj z%qp`&>?4#_o<`n6E6^XUK>un5`U4f{w^yK7!c$59 z6H*S>0kZysdiawHbcLrpzrs^a|Fa5mzFvX;WCi-O73hCdf&O#_`c(0JL&~Wys~=@2 zTsO&j`$ALGy$$y^h}1nYKi5)nrM54TvVDLh>J8Fa8KI@g0f-NP-Gh7R4)%eAA-AJmVs zf37EeIXB}L%SI)KYfMQGa6aPKn@>O0)HJtYF6#L{N#}Z0%UAWR>c18<8A*5QnQK=` zcW}c7@P2RUw3CSXl`DRTV;Lnw5pniB%zl=2}?@Jzf<;Xu_3+ z(A`xbgl1h?2z}!@g-q^6$zMIrI6!@cAxgv7TFH>0Z%65l#rbwc7>XGwKJ;#&tx z?Q<7LZTDC1fZUKjXPv0$1(k&?t4>IK>nyKMNPO$8s7^?H>#VF!NPO$G1VT7pIwk5# z);x@ThY6+c{aq=n*t?v;s}(uw<>1AQ%TT7mQr6Xw53>sw1 zYkCCjc-jTU=Ya|oCw9CdOZM=?50`=J?d>fCWzsY#(v)a!f2o=>Y2~xn)yN(@FL39{ zd>S?-20oUW5<~k`8P*02Y;886Rk7vMk`823otF$)z1R%e#=iR>rj5CC8*FPC9)L}1 zX{GIu81Lk7R1fR2Y(1%MtW=r|glHG^ z_~Vb4^>&k{dpl{6Eic{MO4NHPyuN^hcfHU?Uh(mDe(?ceksW-B%9>bPBCVpF zp*LWtQp4t{GHeMLs)V#Pp5bJ279K)kMVswd?yd2*3=HH(ik&CYJH-i3AN;E}wWxFf z9%XdkNP{QVAZ)>7-T|Q=@+#k&z>$jjR4)I+H_w!6c~9Fw9WUpG4AnHbYO>{Onq$-` z?<>{R=JID>do^0kELTlextbL*YLtJLYU*XeM5~!g zHQn)+wis%tcC^r? zp-@yJ0YAM@t)fyz9(tKVGlgG*w#NhaAdf@I8+!pk-p6q zn4DW`5b6XMPuLAZbaEk-pWzHLo-sxDH}6IDoT{9`18MH;iJ3sJKlcCxvDw)u_1Os0&c3 zm`0^y8kLHjOs2%@iJH=hv}Zv{)Yd@BHXK1zMJk0BfPhceY zBv~ZSnu!#6RyaJVQW`u*aC~k|&V2{`1E$o{K2Z;jc88@@&H+aChZ0|2Pj2+{=5VHR&cuEfz4>w!!;!js9FSY#N&;rm?SO%cMC|EnOp)ccjw zKSDt$yvr00ALt676(L;t!3x6F)F3H^cbmfD3mu10Gdn^!{h?~Hdb3(iCZ~%Y9-Z1g zGI|82aKvu1R~|F3hvTm-+g zLpJmwH2R?B0crwk41AIHKHSx*L&ePymjb`ol{-=#>xX-B9CKm;9P=&+W=Y3jQ*HN!3i$mfTX+dEQ_Mih8MT>Bi>%`6SB=_fV zru7UbA~=RLK5#HMcw{)YW}q;VA3AVf`XX_kpC^ z@aoFX65?%9SAPa+*CW8%^M$d);L?gPCKbnq4jjmhUD036T{V;&9>hcdyF)|8V|$K` z=HR9e4-MzWi-nOK47Y!PvliUsM#c)m!|2iZBg6Tj;bF)bI5;#sxKAYDsVp1tC-yB^*ZJwFI5*JxBGPmERp*k%t>x=U^Dx!Ir;d!a74rG1zyZyT+bC|3U2fkjI#dI8X!vNAjwlJFyCTqC-Jzz< z?$ALuw8H1D@Sj8hC*F zH~9S`e(%O?K96E-fm@n|fngHA58!toJr@Cj{A;fNn-uq8q`t>U+4^Qe+z;CQ28|>8 z9iZJ|&?tZhBh?FUjn)fq4M`sIQWxhAOYl7H-m8STZ6{xNzLsN>C`4Q0Hl#eCf^(Ly%Km}O{aN|F0=e_@ z`bjU}n9=twft0s;TaEjjVirVRgQ<~+#YDdtmlMrv@y*vc`!FjjpiOe1k7J_5*BCh$ zWD3`oomk)UN~CJ=(pz^;=6*iJO^BaPF90+rgf}G_|8-tBTye!t&hQzo>GO8o+k!A?ld6vW2+o8dxF&+TbGGKhWBCWV4c^a&tmp4OBsK65cGnZI9`@aY z^eaMi$?Knb^)Fte#XjAs&^eWrZ6mjEX=NQ>j}fRuNlJtI3L<4JtBXTo?5_85M+ ziat`v{3)!EPAm!2Yq19X=DILm2T9v!tGK{U6EAvS?#!;-3u#yW8G(WkgH){IMQ zilEJopmF4Jc{#eeG@hMyX*|X3(s(G@rSW*MOXF!@m$ulUy(33xzNE`mQLzMKY;zS$ zBF0u!u^Pm9saOgzT7rtzip^4*iq#>F7Qq;$DXUYl1Y*|(X-UL(1hE>#*zzi83Qs49 zS;cCRh6#cnt3wQnU>PHd3`(nGrUv$!P(u=^dimC>&zC|>YfqwoD4EX!HG5YtJ}H@# zbr6<;`xF^$uqi1isbO~zGt0m}8J2;&LK(~lG@sVT^05WNGH}Z-)PU0|h-nSARvBuc zq1Q+=WwJ&>)ZBs1U?*Q`ua`1uIn-VcnPJV>Td3SaMrQv=&7M4h%Yq%93;3w2te z*4ooS%@YfId5D_!li@4M66bU&lg?7*G*M5tP_sreIHjR;nyBeBLeveGh6YPRgM}Jz zyrHhO_J#m8?PZ3{sqKZ{CM?4RQUlL+5jAJH8QGIm%q+tNRv9jkW#|p~%rek-g=Ls& zY2aTigc@dAWtb_;zdZuWD| zl`^*kF%$J%iF#|0M%3Gan2DO>ONe@&rD2|>VV;G0oZBTpm`BH<{KHox3uM?tPAZ22s zN}^sMW%2+i+h~E5sqK1!l*zNADvhW&1~C&gEi**D(9*Eb(y-7%y-;e<+80`=ISz)X z7fYE}_}UjsnO6oev##;hGx)H$mZ%p?k8*Vo)2LrYuXq>3>FbI8crdUBeu3XQsF+RD zX`DBDkmt@dnj>gSBWUy!E-$@>OQU_bG`6-&TOC1bi=eef&^R`_@@UU4jiZrEiWsC@bI}@?`LIR>w?x zX|}AqS=!6BK~8NiM9tO=Q7^SLEVVQ&wNNjW8npJM7HV2Uh z3sA+(x^9s&X^AS0sMiEB6E!V8MBQp>Xtgx7TBuv42Cco-Ld~8MqFya!a%My<+*QlK z3+Nb8uL@!*oEMuB#E9ApVnof^52dgLLey=RhBiw>n?y}SijO`^Yj2aNwM^Dlh`L?M z%=momQYL2=l+rF`YSithi7h4! zs3l6z2KYItZ>Q40<&{uBl9X(g)C5`)cQpsn^TYu| z9`?I=c((>4JB6LUe$#4zwva@iY4ATbYw-(f#FRkAr}@9Mg7epJUJblkLVG7^0ro|^ zc>Qx&*x(??D6( zE~5ynhocBAGwVawgTgyQ@`GIQcM$|rC*|woM*g`bF#|-(W1SMmjfJs8;|FuO;<)eI zL928n`~$tC*s|L%ez#J#igf-9r`aniW;7C5e`7}cz1~h$|9jQv@_(51C*bvKFtoD_ z?tk}kX%hCk-TC~`Ku&c(FWb@4