diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..febcf50 --- /dev/null +++ b/LICENSE @@ -0,0 +1,17 @@ +Open Smart Register Platform (OpenSRP), formerly Dristhi software + +Copyright 2012-present + +Foundation for Research in Health Systems; Sustainable Engineering Lab; Columbia University; and The Special Programme of Research, +Development and Research Training in Human Reproduction (HRP) of the World Health Organization; Ona; mPower Social Enterprise Bangladesh; +Interactive Health Solutions; Summit Institute of Development; Interactive Research and Development; Johns Hopkins University Global +mHealth Institute; Harvard University School of Public Health + +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may +obtain a copy of the License at: + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions +and limitations under the License. diff --git a/build.gradle b/build.gradle index 0326754..b7b9cbb 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,4 @@ configure(allprojects) { project -> - buildscript { repositories { jcenter() @@ -36,10 +35,10 @@ subprojects { maven { url "http://repo.maven.apache.org/maven2" } maven { url "http://cloudant.github.io/cloudant-sync-eap/repository" } maven { - url "${projectDir}/opensrp-facial-recognition/../libs/" + url "${projectDir}/opensrp-path/../libs/" } maven { - url "${projectDir}/opensrp-facial-recognition-it/../libs/" + url "${projectDir}/opensrp-path-it/../libs/" } mavenLocal() } diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar index 13372ae..085a1cd 100644 Binary files a/gradle/wrapper/gradle-wrapper.jar and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 3c396f0..7b9957a 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,10 @@ -#Fri Nov 03 15:44:22 WITA 2017 +#Tue Jun 30 10:30:31 WITA 2015 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-2.3-all.zip +org.gradle.daemon=true +org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 +org.gradle.parallel=true +org.gradle.configureondemand=true \ No newline at end of file diff --git a/gradlew b/gradlew index 9d82f78..91a7e26 100755 --- a/gradlew +++ b/gradlew @@ -42,6 +42,11 @@ case "`uname`" in ;; esac +# For Cygwin, ensure paths are in UNIX format before anything is touched. +if $cygwin ; then + [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` +fi + # Attempt to set APP_HOME # Resolve links: $0 may be a link PRG="$0" @@ -56,9 +61,9 @@ while [ -h "$PRG" ] ; do fi done SAVED="`pwd`" -cd "`dirname \"$PRG\"`/" >/dev/null +cd "`dirname \"$PRG\"`/" >&- APP_HOME="`pwd -P`" -cd "$SAVED" >/dev/null +cd "$SAVED" >&- CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar @@ -109,7 +114,6 @@ fi if $cygwin ; then APP_HOME=`cygpath --path --mixed "$APP_HOME"` CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` - JAVACMD=`cygpath --unix "$JAVACMD"` # We build the pattern for arguments to be converted via cygpath ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` diff --git a/gradlew.bat b/gradlew.bat deleted file mode 100644 index 8a0b282..0000000 --- a/gradlew.bat +++ /dev/null @@ -1,90 +0,0 @@ -@if "%DEBUG%" == "" @echo off -@rem ########################################################################## -@rem -@rem Gradle startup script for Windows -@rem -@rem ########################################################################## - -@rem Set local scope for the variables with windows NT shell -if "%OS%"=="Windows_NT" setlocal - -@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -set DEFAULT_JVM_OPTS= - -set DIRNAME=%~dp0 -if "%DIRNAME%" == "" set DIRNAME=. -set APP_BASE_NAME=%~n0 -set APP_HOME=%DIRNAME% - -@rem Find java.exe -if defined JAVA_HOME goto findJavaFromJavaHome - -set JAVA_EXE=java.exe -%JAVA_EXE% -version >NUL 2>&1 -if "%ERRORLEVEL%" == "0" goto init - -echo. -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:findJavaFromJavaHome -set JAVA_HOME=%JAVA_HOME:"=% -set JAVA_EXE=%JAVA_HOME%/bin/java.exe - -if exist "%JAVA_EXE%" goto init - -echo. -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:init -@rem Get command-line arguments, handling Windowz variants - -if not "%OS%" == "Windows_NT" goto win9xME_args -if "%@eval[2+2]" == "4" goto 4NT_args - -:win9xME_args -@rem Slurp the command line arguments. -set CMD_LINE_ARGS= -set _SKIP=2 - -:win9xME_args_slurp -if "x%~1" == "x" goto execute - -set CMD_LINE_ARGS=%* -goto execute - -:4NT_args -@rem Get arguments from the 4NT Shell from JP Software -set CMD_LINE_ARGS=%$ - -:execute -@rem Setup the command line - -set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar - -@rem Execute Gradle -"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% - -:end -@rem End local scope for the variables with windows NT shell -if "%ERRORLEVEL%"=="0" goto mainEnd - -:fail -rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of -rem the _cmd.exe /c_ return code! -if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 -exit /b 1 - -:mainEnd -if "%OS%"=="Windows_NT" endlocal - -:omega diff --git a/opensrp-bidan/.gitignore b/opensrp-bidan/.gitignore index 796b96d..1512cc9 100644 --- a/opensrp-bidan/.gitignore +++ b/opensrp-bidan/.gitignore @@ -1 +1,2 @@ /build +/reports diff --git a/opensrp-bidan/build.gradle b/opensrp-bidan/build.gradle index 9de1bf3..aa44713 100644 --- a/opensrp-bidan/build.gradle +++ b/opensrp-bidan/build.gradle @@ -4,7 +4,7 @@ buildscript { maven { url 'https://maven.fabric.io/public' } } dependencies { - classpath "com.android.tools.build:gradle:2.3.2" + classpath "com.android.tools.build:gradle:1.2.3" classpath 'org.apache.commons:commons-lang3:3.3.2' classpath 'org.robolectric:robolectric-gradle-plugin:1.1.0' classpath 'io.fabric.tools:gradle:1.+' @@ -41,9 +41,6 @@ android { versionCode 10 versionName "1.3.1" multiDexEnabled true - ndk{ - abiFilters "armeabi" - } } dexOptions { @@ -70,7 +67,7 @@ android { } debug { - resValue "string", 'opensrp_url', '"http://46.101.51.199:8080/opensrp"' + resValue "string", 'opensrp_url', '"http://192.168.1.253:8080/opensrp"' buildConfigField "int", "OPENMRS_UNIQUE_ID_INITIAL_BATCH_SIZE", '250' buildConfigField "int", "OPENMRS_UNIQUE_ID_BATCH_SIZE", '100' buildConfigField "int", "OPENMRS_UNIQUE_ID_SOURCE", '2' @@ -110,6 +107,12 @@ dependencies { transitive = true exclude group: 'com.github.bmelnychuk', module: 'atv' } + compile('org.smartregister:opensrp-client-immunization:1.1.4-SNAPSHOT@aar') { + transitive = true + } + compile('org.smartregister:opensrp-client-growth-monitoring:1.0.3-SNAPSHOT@aar') { + transitive = true + } compile('com.android.support:design:22.2.1') { exclude group: 'com.android.support', module: 'recyclerview-v7' @@ -128,8 +131,6 @@ dependencies { compile 'com.github.ybq:Android-SpinKit:1.1.0' compile 'junit:junit:4.12' - compile 'com.flurry.android:analytics:7.2.3' - testCompile('org.robolectric:robolectric:3.4.2') { exclude group: 'com.google.guava', module: 'guava' @@ -160,18 +161,6 @@ dependencies { testCompile 'org.apache.maven:maven-ant-tasks:2.1.3' } -// Local dependencies -repositories { - mavenCentral() - flatDir { - dirs 'libs' - } -} - -dependencies { - //compile (name : 'opensrp-facial-recognition-debug', ext:'aar') -} - //Testing and coveralls coveralls { diff --git a/opensrp-bidan/fabric.properties b/opensrp-bidan/fabric.properties deleted file mode 100644 index d394572..0000000 --- a/opensrp-bidan/fabric.properties +++ /dev/null @@ -1,3 +0,0 @@ -#Contains API Secret used to validate your application. Commit to internal source control; avoid making secret public. -#Fri Nov 03 18:07:06 WITA 2017 -apiSecret=a411e97a2937382dd7eb3ff686a12a98b564f6d953cca4f86ab555bfd14790d6 diff --git a/opensrp-bidan/fabric.properties.template b/opensrp-bidan/fabric.properties.template new file mode 100644 index 0000000..a1fc397 --- /dev/null +++ b/opensrp-bidan/fabric.properties.template @@ -0,0 +1,5 @@ +# This is a sample of how the fabric.properties file looks like +# The fabric.properties file should automatically be generated by +# the Fabric plugin on Android Studio. Login to the Fabric console +# online to obtain the apiSecret, if plugin is not available +apiSecret=[Replace with Fabric account API secret] diff --git a/opensrp-bidan/libs/commons-validator-1.6.jar b/opensrp-bidan/libs/commons-validator-1.6.jar new file mode 100644 index 0000000..c5526e9 Binary files /dev/null and b/opensrp-bidan/libs/commons-validator-1.6.jar differ diff --git a/opensrp-bidan/lint.xml b/opensrp-bidan/lint.xml new file mode 100644 index 0000000..76079fe --- /dev/null +++ b/opensrp-bidan/lint.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/opensrp-bidan/pom.xml b/opensrp-bidan/pom.xml new file mode 100644 index 0000000..fd972da --- /dev/null +++ b/opensrp-bidan/pom.xml @@ -0,0 +1,30 @@ + + + 4.0.0 + + org.opensrp + opensrp-path + 1.1.5 + + + UTF-8 + UTF-8 + + + + + + org.eluder.coveralls + coveralls-maven-plugin + 4.3.0 + + + ${project.basedir}/reports/jacoco/merged.xml + + + + + + diff --git a/opensrp-bidan/proguard-rules.pro b/opensrp-bidan/proguard-rules.pro index f1b4245..3d94caa 100644 --- a/opensrp-bidan/proguard-rules.pro +++ b/opensrp-bidan/proguard-rules.pro @@ -1,21 +1,17 @@ # Add project specific ProGuard rules here. -# You can control the set of applied configuration files using the -# proguardFiles setting in build.gradle. +# By default, the flags in this file are appended to flags specified +# in D:\adt-bundle-windows-x86_64-20130514\sdk/tools/proguard/proguard-android.txt +# You can edit the include path and order by changing the proguardFiles +# directive in build.gradle. # # For more details, see # http://developer.android.com/guide/developing/tools/proguard.html +# Add any project specific keep options here: + # If your project uses WebView with JS, uncomment the following # and specify the fully qualified class name to the JavaScript interface # class: #-keepclassmembers class fqcn.of.javascript.interface.for.webview { # public *; #} - -# Uncomment this to preserve the line number information for -# debugging stack traces. -#-keepattributes SourceFile,LineNumberTable - -# If you keep the line number information, uncomment this to -# hide the original source file name. -#-renamesourcefileattribute SourceFile diff --git a/opensrp-bidan/src/androidTest/java/org/smartregister/bidan/ExampleInstrumentedTest.java b/opensrp-bidan/src/androidTest/java/org/smartregister/bidan/ExampleInstrumentedTest.java deleted file mode 100644 index 8856f7a..0000000 --- a/opensrp-bidan/src/androidTest/java/org/smartregister/bidan/ExampleInstrumentedTest.java +++ /dev/null @@ -1,26 +0,0 @@ -package org.smartregister.bidan; - -import android.content.Context; -import android.support.test.InstrumentationRegistry; -import android.support.test.runner.AndroidJUnit4; - -import org.junit.Test; -import org.junit.runner.RunWith; - -import static org.junit.Assert.*; - -/** - * Instrumented test, which will execute on an Android device. - * - * @see Testing documentation - */ -@RunWith(AndroidJUnit4.class) -public class ExampleInstrumentedTest { - @Test - public void useAppContext() throws Exception { - // Context of the app under test. - Context appContext = InstrumentationRegistry.getTargetContext(); - - assertEquals("com.example.opensrpbidan", appContext.getPackageName()); - } -} diff --git a/opensrp-bidan/src/androidTest/java/org/smartregister/path/ApplicationTest.java b/opensrp-bidan/src/androidTest/java/org/smartregister/path/ApplicationTest.java new file mode 100644 index 0000000..8ce0eea --- /dev/null +++ b/opensrp-bidan/src/androidTest/java/org/smartregister/path/ApplicationTest.java @@ -0,0 +1,13 @@ +package org.smartregister.path; + +import android.app.Application; +import android.test.ApplicationTestCase; + +/** + * Testing Fundamentals + */ +public class ApplicationTest extends ApplicationTestCase { + public ApplicationTest() { + super(Application.class); + } +} \ No newline at end of file diff --git a/opensrp-bidan/src/main/AndroidManifest.xml b/opensrp-bidan/src/main/AndroidManifest.xml index fb4e34c..d279024 100644 --- a/opensrp-bidan/src/main/AndroidManifest.xml +++ b/opensrp-bidan/src/main/AndroidManifest.xml @@ -1,43 +1,27 @@ - - - - + + - - - - - - - - + + + + + + - - - - - - + android:icon="@drawable/ic_launcher"> + android:theme="@style/PathAppTheme" + android:windowSoftInputMode="stateAlwaysHidden|adjustResize"> @@ -45,92 +29,97 @@ - - - - - - - - + android:launchMode="singleTask" + android:screenOrientation="portrait" + android:theme="@style/AppThemeNoActionBarAndTitle" /> + android:name=".activity.ChildDetailTabbedActivity" + android:screenOrientation="portrait" + android:theme="@style/AppThemeNoActionBarAndTitleWithEditButton" /> + android:name="com.vijay.jsonwizard.activities.JsonFormActivity" + android:screenOrientation="portrait" + android:theme="@style/AppTheme.NoActionBar" + android:windowSoftInputMode="stateAlwaysHidden|adjustResize" /> + android:name=".activity.PathJsonFormActivity" + android:screenOrientation="portrait" + android:theme="@style/AppTheme.NoActionBar" + android:windowSoftInputMode="stateAlwaysHidden|adjustResize" /> + + + + + + + + + + + + android:name=".activity.SettingsActivity" + android:screenOrientation="portrait" /> - - + android:name=".activity.ChildImmunizationActivity" + android:screenOrientation="portrait" + android:theme="@style/AppThemeNoTitle.NoActionBar" /> + android:theme="@style/AppThemeNoTitle.NoActionBar" /> - + - - - - - - + android:theme="@style/AppThemeNoTitle.NoActionBar" /> + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/Zambia-EIR-DataDictionaryReporting-HIA2.csv b/opensrp-bidan/src/main/assets/Zambia-EIR-DataDictionaryReporting-HIA2.csv new file mode 100644 index 0000000..f5465d3 --- /dev/null +++ b/opensrp-bidan/src/main/assets/Zambia-EIR-DataDictionaryReporting-HIA2.csv @@ -0,0 +1,68 @@ +Under 5 Clinic Attendance,,,,,,,,, +01,CHN1-005,Attendance child health < 12 months (male),n0uHub5ubqH,Number of male children aged < 12 months who attended a clinic this month.,"COUNT of male children aged < 12 months [Sex, Date_Birth] who had >=1 encounter during the reporting month [encounter_date] at this clinic.",Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly, +02,CHN1-010,Attendance child health < 12 months (female),IWwblgpMxiS,Number of female children aged < 12 months who attended a clinic this month.,"COUNT of female children aged < 12 months [Sex, Date_Birth] who had >=1 encounter during the reporting month [encounter_date] at this clinic.",Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly, +03,CHN1-011,Attendance child health < 12 months (total),C8vB7dH9ab4,Number of total children aged < 12 months who attended a clinic this month.,"[CHN1-005] + [CHN1-010][Non-editable in the form]",Integer,NA,Monthly, +04,CHN1-015,Attendance child health 12-59 months (male),fl4bPFJRI5j,Number of male children aged 12 to 59 months who attended a clinic this month,"COUNT of male children aged 12-59 months [Sex, Date_Birth] who had >=1 encounter during the reporting month [encounter_date] at this clinic.",Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly, +05,CHN1-020,Attendance child health 12-59 months (female),ZDSUD6VHnoh,Number of female children aged 12 to 59 months who attended a clinic this month,"COUNT of female children aged 12-59 months [Sex, Date_Birth] who had >=1 encounter during the reporting month [encounter_date] at this clinic.",Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly, +06,CHN1-021,Attendance child health 12-59 months (total),sZQXZ069Vgj,Number of Total children aged 12 to 59 months who attended clinic this month,"[CHN1-015] + [CHN1-020][Non-editable in the form]",Integer,NA,Monthly, +07,CHN1-025,Attendance child health (total),YAY7yKAkSvq,Number of total children < 5 who attended a clinic this month ,"[CHN1-011] + [CHN1-021][Non-editable in the form]",Integer,NA,Monthly, +08,CHN1-030,Attendance from outside catchment area,WFxN7txijYV,Number of total children who attended clinic and are not part of clinic's catchment area,"COUNT Number of total children who attended clinic and are not part of clinic's catchment area (i.e., total number of out of catchment area form submissions that month)",Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly, +Growth Monitoring and Nutrition,,,,,,,,, +09,CHN2-005,Child weighed 0-23 months,adkGrSGNt3L,Number of total children weighed aged 0-23 months who attended clinic this month,COUNT number of children aged 0-23 [Date_Birth] months who had at least 1 weight encounter at this clinic during the month,Integer,"Growth Monitoring, Out of Area Service",Monthly,Some children may be weighed twice if they come for a another visit during the month due for example if they was a stock out on the earlier visit. Only one count should be recorded +10,CHN2-010,Child weighed 24-59 months,sSxqU6qPyXr,Number of total children weighed aged 24-59 months who attended clinic this month,COUNT number of children aged 24-59 months [Date_Birth] who had = 1 weight encounter at this clinic,Integer,"Growth Monitoring, Out of Area Service",Monthly, +11,CHN2-015,Total child weighed,xIGHv5CY2fF,Number of total children weighed aged < 5 years who attended clinic this month,"[CHN2-005] + [CHN2-010][Non-editable in the form]",Integer,NA,Monthly, +12,CHN2-020,Not gaining weight 0-23 months,H5cadfqRh7I,Number of children aged 0-23 months who were weighed this month who did not gain >= 100g of weight from the last weigh-in. ,COUNT number of children 0-23 months [Date_Birth] with [weight current visit - weight previous visit < 100g].,Integer,"Growth Monitoring, Out of Area Service",Monthly, +13,CHN2-025,Not gaining weight 24-59 months,xWDkbLq9kji,Number of children aged 24-59 months who were weighed this month who did not gain >= 100g of weight from the last weigh-in. ,COUNT number of children 24-59 months [Date_Birth] with [weight current visit - weight previous visit < 100g].,Integer,"Growth Monitoring, Out of Area Service",Monthly, +14,CHN2-030,Total not gaining weight age < five years,e10sC5c4pRz,Number of total children aged < five years who were weighed this month and did not gain >= 100g from the last weigh-in.,"[CHN2-020] + [CHN2-025][Non-editable in the form]",Integer,NA,Monthly, +15,CHN2-035,Weight between -2Z & -3Z scores 0-23 months,lcpx7xdVC3z,Number of total children age 0-23 months whose weight is between -2Z and -3Z scores,As per WHO standard,Integer,"Growth Monitoring, Out of Area Service",Monthly, +16,CHN2-040,Weight between -2Z & -3Z scores 24-59 months,hi9sRtkzimM,Number of total children age 24-59 months whose weight is between -2Z and -3Z scores,As per WHO standard,Integer,"Growth Monitoring, Out of Area Service",Monthly, +17,CHN2-041,Weight between -2Z & -3Z scores < five years,WOZUqhR5W37,Number of total children age < 5 years whose weight is between -2Z and -3Z scores,"[CHN2-035] + [CHN2-040][Non-editable in the form]",Integer,NA,Monthly, +18,CHN2-045,Weight below -3Z scores 0-23 months,LpkrzZezPhP,Number of total children age 0-23 months whose weight is below -3Z scores,As per WHO standard,Integer,"Growth Monitoring, Out of Area Service",Monthly, +19,CHN2-050,Weight below -3Z scores 24-59 months,AzLJv6qTtPO,Number of total children age 24-59 months whose weight is below -3Z scores,As per WHO standard,Integer,"Growth Monitoring, Out of Area Service",Monthly, +20,CHN2-051,Total weight below -3Z scores < five years,OM9x7oS2qke,Number of total children age < 5 years whose weight below -3Z scores,"[CHN2-045] + [CHN2-050][Non-editable in the form]",Integer,NA,Monthly, +21,CHN2-055,Weight above 2Z scores 0-23 months,gdrQ69fCF8B,Number of total children age 0-23 months whose weight is above 2Z scores,As per WHO standard,Integer,"Growth Monitoring, Out of Area Service",Monthly, +22,CHN2-060,Weight above 2Z scores 24-59 months,ke26q8KPQPM,Number of total children age 24-59 months whose weight is above 2Z scores,As per WHO standard,Integer,"Growth Monitoring, Out of Area Service",Monthly, +23,CHN2-061,Total weight above 2Z scores < five years,Yi4grVdr9Q5,Number of total children age < 5 years whose weight is above 2Z scores,"[CHN-055] + [CHN-060][Non-editable in the form]",Integer,NA,Monthly, +"Vitamin A, Deworming, and ITNs",,,,,,,,, +24,CHN2-065,Vitamin A supplement to infants and children 6-11 months,DSbbltBORY3,Number of children age 6-11 months who received vitamin A at this facility in this month,COUNT Number of children age 6-11 months [Date_Birth] who received vitamin A [Vit_A_Provided] at this facility in this month [Vit_A_Provided_Date],Integer,Vitamin A,Monthly, +25,CHN2-070,Vitamin A supplement to infants and children 12-59 months,JfY9vBHsyzF,Number of children age 12-59 months who received vitamin A at this facility in this month,COUNT Number of children age 12-59 months [Date_Birth] who received vitamin A [Vit_A_Provided] at this facility in this month [Vit_A_Provided_Date],Integer,Vitamin A,Monthly, +26,CHN2-075,Deworming dose 12-59 months,B8nBT4kGhtB,Number of children age 12-59 months who received a deworming dose at this facility in this month ,COUNT Number of children age 12-59 months [Date_Birth] who received a deworming dose [Deworming_Provided] at this facility in this month [Deworming_Provided_Date],Integer,Deworming,Monthly, +27,CHN2-080,Children who received insecticide treated net,G4vWZAJ0uz7,Number of children who received insecticide treated nets at this facility in this month ,COUNT number of children who received insecticide treated nets [ITN_Provided] at this facility in this month [ITN_Provided_Date],Integer,ITN,Monthly, +Immunisation,,,,,,,,, +28,CHN3-005,BCG dose (< 1 year) at the facility,ZTeQmMrVmNR,Number of children < one year who received BCG dose at this facility in this month ,COUNT Number of children < one year [Date_Birth] who received BCG dose [Name_Vaccine] at this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly, +29,CHN3-005-O,BCG dose (< 1 year) at outreach,,Number of children < one year who received BCG dose at outreach conducted by this facility in this month ,COUNT Number of children < one year [Date_Birth] who received BCG dose [Name_Vaccine] at outreach conducted by this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly, +30,CHN3-010,OPV 0 (< 1 year) at facility ,rwNWKJC4dIO,Number of children < one year who received OPV0 dose at this facility in this month ,COUNT Number of children < one year [Date_Birth] who received OPV0 dose [Name_Vaccine] at this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly, +31,CHN3-010-O,OPV 0 (< 1 year) at outreach,,Number of children < one year who received OPV0 dose at outreach conducted by this facility in this month ,COUNT Number of children < one year [Date_Birth] who received OPV 0 dose [Name_Vaccine] at outreach conducted by this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly, +32,CHN3-015,OPV 1 (< 1 year) at facility ,J3Kd9wHj7mR,Number of children < one year who received OPV1 dose at this facility in this month ,COUNT Number of children < one year [Date_Birth] who received OPV 1 dose [Name_Vaccine] at this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly, +33,CHN3-015-O,OPV 1 (< 1 year) at outreach,,Number of children < one year who received OPV1 dose at outreach conducted by this facility in this month ,COUNT Number of children < one year [Date_Birth] who received OPV 1 [Name_ Vaccine] dose at outreach conducted by this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly, +34,CHN3-020,OPV 2 (< 1 year) at facility ,Jbxssr389B6,Number of children < one year who received OPV2 dose at this facility in this month ,COUNT Number of children < one year [Date_Birth] who received OPV 2 dose [Name_Vaccine] at this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly, +35,CHN3-020-O,OPV 2 (< 1 year) at outreach,,Number of children < one year who received OPV2 dose at outreach conducted by this facility in this month ,COUNT Number of children < one year [Date_Birth] who received OPV 2 dose [Name_Vaccine] at outreach conducted by this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly, +36,CHN3-025,OPV 3 (< 1 year) at facility ,dqsYPg0F8DJ,Number of children < one year who received OPV3 dose at this facility in this month ,COUNT Number of children < one year [Date_Birth] who received OPV 3 dose [Name_Vaccine] at this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly, +37,CHN3-025-O,OPV 3 (< 1 year) at outreach,,Number of children < one year who received OPV3 dose at outreach conducted by this facility in this month ,COUNT Number of children < one year [Date_Birth] who received OPV 3 dose [Name_Vaccine] at outreach conducted by this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly, +38,CHN3-027,IPV (< 1 year) at facility,D2pqQ1bux6B,Number of children < one year who received IPV dose at this facility in this month ,MANUAL ENTRY Number of children < one year who received IPV dose at this facility in this month ,Integer,NA,Monthly, +39,CHN3-027-O,IPV (< 1 year) at outreach,RAbXk70XDMq,Number of children < one year who received IPV dose at outreach conducted by this facility in this month ,MANUAL ENTRY Number of children < one year who received IPV dose at outreach conducted by this facility in this month ,Integer,NA,Monthly, +40,CHN3-030,OPV 4 (< 1 year) at facility ,poPXN7Wn3RL,Number of children < one year who received OPV4 dose at this facility in this month ,COUNT Number of children < one year [Date_Birth] who received OPV 4 [Name_Vaccine] dose at this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly, +41,CHN3-030-O,OPV 4 (< 1 year) at outreach,,Number of children < one year who received OPV4 dose at outreach conducted by this facility in this month ,COUNT Number of children < one year [Date_Birth] who received OPV 4 [Name_Vaccine] dose at outreach conducted by this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly, +42,CHN3-035,DPT-Hib-HepB 1 (< 1 year) at facility,N7VEEjo8AdV,Number of children < one year who received DPT-Hib+HepB 1 dose at this facility in this month ,COUNT Number of children < one year [Date_Birth] who received DPT-Hib+HepB 1 dose [Name_Vaccine] at this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly, +43,CHN3-035-O,DPT-Hib-HepB 1 (< 1 year) at outreach,,Number of children < one year who received DPT-Hib+HepB 1 dose at outreach conducted by this facility in this month ,COUNT Number of children < one year [Date_Birth] who received DPT-Hib+HepB 1 dose [Name_Vaccine] at outreach conducted by this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly, +44,CHN3-040,DPT-Hib-HepB 2 (< 1 year) at facility,R2JLWtup2XR,Number of children < one year who received DPT-Hib+HepB 2 dose at this facility in this month ,COUNT Number of children < one year [Date_Birth] who received DPT-Hib+HepB 2 [Name_Vaccine] dose at this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly, +45,CHN3-040-O,DPT-Hib-HepB 2 (< 1 year) at outreach,,Number of children < one year who received DPT-Hib+HepB 2 dose at outreach conducted by this facility in this month ,COUNT Number of children < one year [Date_Birth] who received DPT-Hib+HepB 2 dose [Name_Vaccine] at outreach conducted by this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly, +46,CHN3-045,DPT-Hib-HepB 3 (< 1 year) at facility,ujEvTSZ0Wvn,Number of children < one year who received DPT-Hib+HepB 3 dose at this facility in this month ,COUNT Number of children < one year [Date_Birth] who received DPT-Hib+HepB 3 dose [Name_Vaccine] at this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly, +47,CHN3-045-O,DPT-Hib-HepB 3 (< 1 year) at outreach,,Number of children < one year who received DPT-Hib+HepB 3 dose at outreach conducted by this facility in this month ,COUNT Number of children < one year [Date_Birth] who received DPT-Hib+HepB 3 dose [Name_Vaccine] at outreach conducted by this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly, +48,CHN3-050,PCV 1 (< 1 year) at facilty,dPpDhpO7GpB,Number of children < one year who received PCV 1 dose at this facility in this month ,COUNT Number of children < one year [Date_Birth] who received PCV 1 [Name_Vaccine] dose at this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly, +49,CHN3-050-O,PCV 1 (< 1 year) at outreach,,Number of children < one year who received PCV 1 dose at outreach conducted by this facility in this month ,COUNT Number of children < one year [Date_Birth] who received PCV 1 [Name_Vaccine] dose at outreach conducted by this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly, +50,CHN3-055,PCV 2 (< 1 year) at facilty,AU3Zp03Atnf,Number of children < one year who received PCV 2 dose at this facility in this month ,COUNT Number of children < one year [Date_Birth] who received PCV 2 [Name_Vaccine] dose at this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly, +51,CHN3-055-O,PCV 2 (< 1 year) at outreach,,Number of children < one year who received PCV 2 dose at outreach conducted by this facility in this month ,COUNT Number of children < one year [Date_Birth] who received PCV 2 dose [Name_Vaccine] at outreach conducted by this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly, +52,CHN3-060,PCV 3 (< 1 year) at facility,K5XarM6QLxq,Number of children < one year who received PCV 3 dose at this facility in this month ,COUNT Number of children < one year [Date_Birth] who received PCV 3 [Name_Vaccine] dose at this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly, +53,CHN3-060-O,PCV 3 (< 1 year) at outreach,,Number of children < one year who received PCV 3 dose at outreach conducted by this facility in this month ,COUNT Number of children < one year [Date_Birth] who received PCV 3 [Name_Vaccine] dose at outreach conducted by this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly, +54,CHN3-065,RV 1 (< 1 year) at facility,ziezVvnYWj0,Number of children < one year who received RV 1 dose at this facility in this month ,COUNT Number of children < one year [Date_Birth] who received RV 1 dose [Name_Vaccine] at this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly, +55,CHN3-065-O,RV 1 (< 1 year) at outreach,,Number of children < one year who received RV 1 dose at outreach conducted by this facility in this month ,COUNT Number of children < one year [Date_Birth] who received RV 1 [Name_Vaccine] dose at outreach conducted by this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly, +56,CHN3-070,RV 2 (< 1 year) at facility,dpKLNY9JjRR,Number of children < one year who received RV 2 dose at this facility in this month ,COUNT Number of children < one year [Date_Birth] who received RV 2 dose [Name_Vaccine] at this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly, +57,CHN3-070-O,RV 2 (< 1 year) at outreach,,Number of children < one year who received RV 2 dose at outreach conducted by this facility in this month ,COUNT Number of children < one year [Date_Birth] who received RV 2 [Name_Vaccine] dose at outreach conducted by this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly, +58,CHN3-075,Measles/MR 1 (< 1 year) at facility,zIM9ehVMkNW,Number of children < one year who received Measles/ MR 1 dose at this facility in this month ,COUNT Number of children < one year [Date_Birth] who received Measles / MR 1 dose [Name_Vaccine] at this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly, +59,CHN3-075-O,Measles/MR 1 (< 1 year) at outreach,,Number of children < one year who received Measles/ MR dose at outreach conducted by this facility in this month ,COUNT Number of children < one year [Date_Birth] who received Measles/ MR 1 dose [Name_Vaccine] at outreach conducted by this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly, +60,CHN3-080,Fully immunised (< 1 year) at facility,dzllAar6RrI,"Number of children < one year who have received the complete BCG, OPV series, DPT-Hib+Hep1 series, PCV series , RV series and measles/MR 1 within 10 days of each antigen being due at this facility ",COUNT Number of children who are aged < 1 year [Date_Birth] who received all their vaccines up to and including Measles 1 / MR 1 at this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly, +61,CHN3-080-O,Fully immunised (< 1 year) at outreach,,"Number of children < one year who have received the complete BCG, OPV series, DPT-Hib+Hep1 series, PCV series , RV series and measles/MR 1 within 10 days of each antigen being due at outreach conducted by this facility",COUNT Number of children who are aged < 1 year [Date_Birth] who received all their vaccines up to and including Measles 1 / MR 1 at outreach conducted by this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly, +62,CHN3-085,Measles/MR 2 (at 18 months) at facility,sqfX5MniMIH,Number of children at 18 months who received Measles/ MR 2 dose at this facility in this month ,COUNT Number of children aged between 18 and 19 months only [Date_Birth] who received Measles 2 / MR 2 dose [Name_Vaccine] at this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly, +63,CHN3-085-O,Measles/MR 2 (at 18 months) at outreach,,Number of children at 18 months who received Measles/ MR 2 dose at outreach conducted by this facility in this month ,COUNT Number of children aged between 18 and 19 months only [Date_Birth] who received Measles 2 / MR 2 dose [Name_Vaccine] at outreach conducted by this facility in this month ,Integer,"Birth Registration, Vaccination, Growth Monitoring, Out of Area Service",Monthly, +64,CHN3-090,Number of days fridge non-functional,FGJcw1TCM9D,Number of days during the month that vaccine storage fridge was not functioning ,MANUAL ENTRY Number of days during the month that vaccine storage fridge was not functioning ,Integer,NA,Monthly, diff --git a/opensrp-bidan/src/main/assets/app.properties b/opensrp-bidan/src/main/assets/app.properties index 40326c9..f34a526 100644 --- a/opensrp-bidan/src/main/assets/app.properties +++ b/opensrp-bidan/src/main/assets/app.properties @@ -1,4 +1,4 @@ -DRISHTI_BASE_URL=http://27.147.138.60:9979 +DRISHTI_BASE_URL= PORT=-1 SHOULD_VERIFY_CERTIFICATE=false SYNC_DOWNLOAD_BATCH_SIZE=100 \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/bindtypes.json b/opensrp-bidan/src/main/assets/bindtypes.json deleted file mode 100644 index 6cae093..0000000 --- a/opensrp-bidan/src/main/assets/bindtypes.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "bindobjects": [ - { - "name": "bidan", - "columns": [ - {"name":"bidanId"} - ] - }, - { - "name": "kartu_ibu", - "columns": [ - {"name":"namalengkap"},{"name":"isOutOfArea"},{"name":"umur"},{"name":"namaSuami"},{"name":"noIbu"},{"name":"htp"} - ] - }, - { - "name": "ibu", - "columns": [ - {"name":"kartuIbuId"},{"name":"type"},{"name":"ancDate"},{"name":"ancKe"},{"name":"hariKeKF"} - ] - }, - { - "name": "anak", - "columns": [ - {"name":"ibuCaseId"},{"name":"namaBayi"},{"name":"tanggalLahirAnak"} - ] - } - ] -} \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/bpm.json b/opensrp-bidan/src/main/assets/bpm.json deleted file mode 100644 index f20e52c..0000000 --- a/opensrp-bidan/src/main/assets/bpm.json +++ /dev/null @@ -1,65 +0,0 @@ -[{ - "_id": "e6c823f4d2bc4c9caca1193fe0084cf2", - "_rev": "2-1400d8faaf26794bc69e8415d8b7e795", - "type": "Event", - "dateCreated": "2017-05-10T11:20:35.690Z", - "serverVersion": 1494415292031, - "identifiers": { - }, - "baseEntityId": "fc9d5c18-253f-440b-8507-1c34f9ac4168", - "locationId": "null", - "eventDate": "2017-05-07T16:00:00.000Z", - "eventType": "Blood Test", - "formSubmissionId": "26a7a266-e6b3-4b2b-b26d-5813f42e764c", - "providerId": "user28", - "duration": 0, - "obs": [ - { - "fieldType": "concept", - "fieldDataType": "integer", - "fieldCode": "5085AAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "values": [ - "97" - ], - "formSubmissionField": "tandaVitalTDSistolik", - "humanReadableValues": [ - ] - }, - { - "fieldType": "concept", - "fieldDataType": "integer", - "fieldCode": "5086AAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "values": [ - "79" - ], - "formSubmissionField": "tandaVitalTDDiastolik", - "humanReadableValues": [ - ] - }, - { - "fieldType": "concept", - "fieldDataType": "integer", - "fieldCode": "5087AAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "values": [ - "74" - ], - "formSubmissionField": "pulse", - "humanReadableValues": [ - ] - }, - { - "fieldType": "concept", - "fieldDataType": "integer", - "fieldCode": "160632AAAAAAAAAAAAAAAAAAAAAAAAAA", - "parentCode": "5087AAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "values": [ - "false" - ], - "formSubmissionField": "ahr", - "humanReadableValues": [ - ] - } - ], - "entityType": "ibu", - "version": 1494415235690 -}] \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/ec_client_classification.json b/opensrp-bidan/src/main/assets/ec_client_classification.json index 8ce347f..747e503 100644 --- a/opensrp-bidan/src/main/assets/ec_client_classification.json +++ b/opensrp-bidan/src/main/assets/ec_client_classification.json @@ -1,145 +1,30 @@ { "case_classification_rules": [ { - "comment": "KARTU IBU: This rule checks whether a given case belongs to Kartu Ibu and KB register", + "comment": "Child: This rule checks whether a given case belongs to Child register", "rule": { "type": "event", "fields": [ { - "field":"eventType", - "field_value": "Registrasi Vaksinator", - "creates_case":["ec_kartu_ibu"] + "field": "eventType", + "field_value": "New Woman Registration", + "creates_case": [ + "ec_mother" + ] }, { - "field":"eventType", - "field_value": "Registrasi Gizi", - "creates_case":["ec_kartu_ibu"] + "field": "eventType", + "field_value": "Birth Registration", + "creates_case": [ + "ec_child" + ] }, { - "field":"eventType", - "field_value": "Identitas Ibu", - "creates_case":["ec_kartu_ibu"] - }, - { - "field":"eventType", - "field_value": "Tambah KB", - "creates_case":["ec_kartu_ibu"] - }, - { - "field":"eventType", - "field_value": "Kohort Pelayanan KB", - "creates_case":["ec_kartu_ibu"] - }, - { - "field":"eventType", - "field_value": "Penutupan KB", - "creates_case":["ec_kartu_ibu"] - }, - { - "field":"eventType", - "field_value": "Registrasi Vaksinator", - "closes_case":["ec_kartu_ibu"] - }, - { - "field":"eventType", - "field_value": "Registrasi Gizi", - "closes_case":["ec_kartu_ibu"] - }, - { - "field":"eventType", - "field_value": "Penutupan Ibu", - "closes_case":["ec_kartu_ibu","ec_ibu","ec_pnc"] - }, - - { - "field":"obs.fieldCode", - "concept": "160417AAAAAAAAAAAAAAAAAAAAAAAAAA", - "values": ["134612AAAAAAAAAAAAAAAAAAAAAAAAAA"], - "closes_case":["ec_kartu_ibu","ec_ibu","ec_pnc"] - } - ] - } - }, - { - "comment": "ANC: This rule checks whether a given case belongs to ANC register", - "rule": { - "type": "event", - "fields": [ - { - "field":"eventType", - "field_value": "Tambah ANC", - "creates_case":["ec_ibu"] - }, - { - "field":"obs.fieldCode", - "concept": "45AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "values": ["703AAAAAAAAAAAAAAAAAAAAAAAAAAAAA"], - "creates_case":["ec_ibu"] - }, - { - "field":"eventType", - "field_value": "Kunjungan ANC", - "creates_case":["ec_ibu"] - }, - - { - "field":"eventType", - "field_value": "Penutupan ANC", - "closes_case":["ec_ibu"] - } - ] - } - }, - { - "comment": "PNC: This rule checks whether a given case belongs to PNC register", - "rule": { - "type": "event", - "fields": [ - { - "field":"obs.fieldCode", - "concept": "160085AAAAAAAAAAAAAAAAAAAAAAAAAA", - "values": ["160429AAAAAAAAAAAAAAAAAAAAAAAAAA"], - "closes_case":["ec_ibu"], - "creates_case":["ec_pnc"] - }, - { - "field":"eventType", - "field_value": "Kunjungan PNC", - "creates_case":["ec_pnc"] - }, - { - "field":"eventType", - "field_value": "Penutupan PNC", - "closes_case":["ec_pnc"] - } - ] - } - }, - { - "comment": "Anak: This rule checks whether a given case belongs to Child register", - "rule": { - "type": "event", - "fields": [ - { - "field":"obs.fieldCode", - "concept": "159917AAAAAAAAAAAAAAAAAAAAAAAAAA", - "values": ["151849AAAAAAAAAAAAAAAAAAAAAAAAAA"], - "creates_case":["ec_anak"] - }, - { - "field":"eventType", - "field_value": "Tambah Bayi", - "creates_case":["ec_anak"] - }, - { - "field":"eventType", - "field_value": "Child Registration", - "creates_case":["ec_anak"] - }, - { - "field":"eventType", - "field_value": "Penutupan Anak", - "closes_case":["ec_anak"] + "field": "eventType", + "field_value": "Update Birth Registration", + "creates_case": [ + "ec_child" + ] } ] } diff --git a/opensrp-bidan/src/main/assets/ec_client_fields.json b/opensrp-bidan/src/main/assets/ec_client_fields.json index 35e264a..b5cc320 100644 --- a/opensrp-bidan/src/main/assets/ec_client_fields.json +++ b/opensrp-bidan/src/main/assets/ec_client_fields.json @@ -1,7 +1,7 @@ { "bindobjects": [ { - "name": "ec_kartu_ibu", + "name": "ec_mother", "columns": [ { "column_name": "base_entity_id", @@ -11,76 +11,166 @@ } }, { - "column_name": "namalengkap", + "column_name": "zeir_id", + "type": "Client", + "json_mapping": { + "field": "identifiers.M_ZEIR_ID" + } + }, + { + "column_name": "first_name", "type": "Client", "json_mapping": { "field": "firstName" } }, { - "column_name": "noIbu", + "column_name": "husband_name", + "type": "Event", + "json_mapping": { + "field": "obs.fieldCode", + "concept": "161135AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + } + }, + { + "column_name": "father_name", + "type": "Event", + "json_mapping": { + "field": "obs.fieldCode", + "concept": "1594AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + } + }, + { + "column_name": "dob", "type": "Client", "json_mapping": { - "field": "attributes.NoIbu" + "field": "birthdate" } }, { - "column_name": "unique_id", + "column_name": "epi_card_number", "type": "Client", "json_mapping": { - "field": "attributes.UniqueId" + "field": "attributes.EPI Card Number" } }, { - "column_name": "namaSuami", + "column_name": "contact_phone_number", + "type": "Event", + "json_mapping": { + "field": "obs.fieldCode", + "concept": "159635AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + } + }, + { + "column_name": "nrc_number", "type": "Client", "json_mapping": { - "field": "lastName" + "field": "attributes.NRC_Number" } }, { - "column_name": "tanggalLahir", + "column_name": "provider_uc", "type": "Client", "json_mapping": { - "field": "birthdate" + "field": "provider_uc" } }, { - "column_name": "isOutOfArea", + "column_name": "provider_town", "type": "Client", "json_mapping": { - "field": "isOutOfArea", - "comment": "doesn't have concept mapping" + "field": "provider_town" } }, { - "column_name": "htp", + "column_name": "provider_id", + "type": "Client", + "json_mapping": { + "field": "provider_id" + } + }, + { + "column_name": "provider_location_id", + "type": "Client", + "json_mapping": { + "field": "provider_location_id" + } + }, + { + "column_name": "client_reg_date", "type": "Event", "json_mapping": { - "field": "obs.fieldCode", - "concept": "5596AAAAAAAAAAAAAAAAAAAAAAAAAAAA" + "field": "eventDate" } }, { - "column_name": "jenisKontrasepsi", + "column_name": "last_name", + "type": "Client", + "json_mapping": { + "field": "lastName" + } + }, + { + "column_name": "gender", + "type": "Client", + "json_mapping": { + "field": "gender" + } + }, + { + "column_name": "marriage", + "type": "Client", + "json_mapping": { + "field": "marriage" + } + }, + { + "column_name": "town", + "type": "Client", + "json_mapping": { + "field": "addresses.town" + } + }, + { + "column_name": "union_council", + "type": "Client", + "json_mapping": { + "field": "addresses.subTown" + } + }, + { + "column_name": "address1", + "type": "Client", + "json_mapping": { + "field": "addresses.addressFields.address1" + } + }, + { + "column_name": "address", + "type": "Client", + "json_mapping": { + "field": "addresses.addressType" + } + }, + { + "column_name": "date", "type": "Event", "json_mapping": { - "field": "obs.fieldCode", - "concept": "374AAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + "field": "eventDate" } }, { - "column_name": "umur", + "column_name": "last_interacted_with", "type": "Event", "json_mapping": { - "field": "obs.fieldCode", - "concept": "1532AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + "field": "version" } } ] }, { - "name": "ec_ibu", + "name": "ec_child", "columns": [ { "column_name": "base_entity_id", @@ -90,172 +180,190 @@ } }, { - "column_name": "kartuIbuId", + "column_name": "zeir_id", "type": "Client", "json_mapping": { - "field": "kartuIbuId", - "comment": "doesn't have concept mapping" + "field": "identifiers.ZEIR_ID" } }, { - "column_name": "tanggalHPHT", - "type": "Event", + "column_name": "inactive", + "type": "Client", "json_mapping": { - "field": "obs.fieldCode", - "concept": "1427AAAAAAAAAAAAAAAAAAAAAAAAAAAA" + "field": "attributes.inactive" } }, - { - "column_name": "referenceDate", - "type": "Event", + "column_name": "lost_to_follow_up", + "type": "Client", "json_mapping": { - "field": "obs.fieldCode", - "concept": "160753AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + "field": "attributes.lost_to_follow_up" + } + }, + { + "column_name": "relational_id", + "type": "Client", + "json_mapping": { + "field": "relationships.mother" + } + }, + { + "column_name": "first_name", + "type": "Client", + "json_mapping": { + "field": "firstName" + } + }, + { + "column_name": "last_name", + "type": "Client", + "json_mapping": { + "field": "lastName" + } + }, + { + "column_name": "gender", + "type": "Client", + "json_mapping": { + "field": "gender" } }, { - "column_name": "pptest", + "column_name": "mother_first_name", "type": "Event", "json_mapping": { "field": "obs.fieldCode", - "concept": "45AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + "formSubmissionField": "Mother_Guardian_First_Name" } }, { - "column_name": "ancDate", + "column_name": "mother_last_name", "type": "Event", "json_mapping": { "field": "obs.fieldCode", - "concept": "160753AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + "formSubmissionField": "Mother_Guardian_Last_Name" } }, { - "column_name": "ancKe", + "column_name": "father_name", "type": "Event", "json_mapping": { "field": "obs.fieldCode", - "concept": "1425AAAAAAAAAAAAAAAAAAAAAAAAAAAA" + "concept": "1594AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" } }, - { - "column_name": "type", - "type": "Event", + "column_name": "dob", + "type": "Client", "json_mapping": { - "field": "type", - "comment": "doesn't have concept mapping" + "field": "birthdate" } - } - ] - }, - { - "name": "ec_pnc", - "columns": [ + }, { - "column_name": "base_entity_id", + "column_name": "dod", "type": "Client", "json_mapping": { - "field": "baseEntityId" + "field": "deathdate" } }, { - "column_name": "keadaanIbu", - "type": "Event", + "column_name": "epi_card_number", + "type": "Client", "json_mapping": { - "field": "obs.fieldCode", - "concept": "160085AAAAAAAAAAAAAAAAAAAAAAAAAA" + "field": "attributes.Child_Register_Card_Number" } }, { - "column_name": "tempatBersalin", + "column_name": "contact_phone_number", "type": "Event", "json_mapping": { "field": "obs.fieldCode", - "concept": "1572AAAAAAAAAAAAAAAAAAAAAAAAAAAA" + "concept": "159635AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" } }, { - "column_name": "caraPersalinanIbu", + "column_name": "pmtct_status", "type": "Event", "json_mapping": { "field": "obs.fieldCode", - "concept": "5630AAAAAAAAAAAAAAAAAAAAAAAAAAAA" + "concept": "1396AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" } }, { - "column_name": "komplikasi", - "type": "Event", + "column_name": "provider_uc", + "type": "Client", "json_mapping": { - "field": "obs.fieldCode", - "concept": "1576AAAAAAAAAAAAAAAAAAAAAAAAAAAA" + "field": "provider_uc" } - } - ] - }, - { - "name": "ec_anak", - "columns": [ + }, { - "column_name": "base_entity_id", + "column_name": "provider_town", "type": "Client", "json_mapping": { - "field": "baseEntityId" + "field": "provider_town" } }, { - "column_name": "relational_id", + "column_name": "provider_id", "type": "Client", "json_mapping": { - "field": "relationships.ibuCaseId" + "field": "provider_id" } }, { - "column_name": "noBayi", + "column_name": "provider_location_id", "type": "Client", "json_mapping": { - "field": "attributes.noBayi" + "field": "provider_location_id" } }, { - "column_name": "beratLahir", + "column_name": "client_reg_date", "type": "Event", "json_mapping": { - "field": "obs.fieldCode", - "concept": "5916AAAAAAAAAAAAAAAAAAAAAAAAAAAA" + "field": "eventDate" } }, { - "column_name": "namaBayi", - "type": "Event", + "column_name": "town", + "type": "Client", "json_mapping": { - "field": "obs.fieldCode", - "concept": "1586AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + "field": "addresses.town" } }, { - "column_name": "tanggalLahirAnak", + "column_name": "union_council", "type": "Client", "json_mapping": { - "field": "birthdate" + "field": "addresses.subTown" } - } - ] - }, - {"name": "ec_multimedia", - "columns" : [ + }, { - "column_name" : "baseEntityID", - "type" : "Multimedia", - "json_mapping" : { - "field" : "caseId" + "column_name": "address1", + "type": "Client", + "json_mapping": { + "field": "addresses.addressFields.address1" } }, { - "column_name" : "faceVector", - "type" : "Multimedia", - "json_mapping" : { - "field" : "attributes.faceVector" + "column_name": "address", + "type": "Client", + "json_mapping": { + "field": "addresses.addressType" + } + }, + { + "column_name": "date", + "type": "Event", + "json_mapping": { + "field": "eventDate" + } + }, + { + "column_name": "last_interacted_with", + "type": "Event", + "json_mapping": { + "field": "version" } } ] diff --git a/opensrp-bidan/src/main/assets/ec_client_relationships.json b/opensrp-bidan/src/main/assets/ec_client_relationships.json index a50c972..da15059 100644 --- a/opensrp-bidan/src/main/assets/ec_client_relationships.json +++ b/opensrp-bidan/src/main/assets/ec_client_relationships.json @@ -1,12 +1,7 @@ [ { - "client_relationship": "kartuIbuId", - "field": "kartuIbuId", - "comment": "this field is the name as it appears in the field_definition.json file" - }, - { - "client_relationship": "ibuCaseId", - "field": "ibu_entity_id", - "comment": "this field is the name as it appears in the field_definition.json file" + "client_relationship": "mother", + "field": "entity_id", + "comment": "this field is the name as it appears in the parent client document" } ] diff --git a/opensrp-bidan/src/main/assets/ec_client_service.json b/opensrp-bidan/src/main/assets/ec_client_service.json new file mode 100644 index 0000000..b0f95d6 --- /dev/null +++ b/opensrp-bidan/src/main/assets/ec_client_service.json @@ -0,0 +1,58 @@ +{ + "name": "vaccines", + "columns": [ + { + "column_name": "base_entity_id", + "json_mapping": { + "field": "baseEntityId" + } + }, + { + "column_name": "name", + "json_mapping": { + "field": "obs.fieldCode", + "concept": "1639AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "value_field": "formSubmissionField" + } + }, + { + "column_name": "calculation", + "json_mapping": { + "field": "obs.fieldCode", + "concept": "1639AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + } + }, + { + "column_name": "date", + "json_mapping": { + "field": "eventDate" + } + }, + { + "column_name": "itn_date", + "json_mapping": { + "field": "obs.fieldCode", + "concept": "159432AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + } + }, + { + "column_name":"itn_has_net", + "json_mapping":{ + "field":"obs.fieldCode", + "formSubmissionField":"Child_Has_Net" + } + }, + { + "column_name": "anmid", + "json_mapping": { + "field": "providerId" + } + }, + { + "column_name": "location_id", + "json_mapping": { + "field": "locationId" + } + } + ] +} \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/ec_client_vaccine.json b/opensrp-bidan/src/main/assets/ec_client_vaccine.json new file mode 100644 index 0000000..810aef0 --- /dev/null +++ b/opensrp-bidan/src/main/assets/ec_client_vaccine.json @@ -0,0 +1,45 @@ +{ + "name": "vaccines", + "columns": [ + { + "column_name": "base_entity_id", + "json_mapping": { + "field": "baseEntityId" + } + }, + { + "column_name": "name", + "json_mapping": { + "field": "obs.fieldCode", + "concept": "1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "value_field": "formSubmissionField" + } + }, + { + "column_name": "calculation", + "json_mapping": { + "field": "obs.fieldCode", + "concept": "1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + } + }, + { + "column_name": "date", + "json_mapping": { + "field": "obs.fieldCode", + "concept": "1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + } + }, + { + "column_name": "anmid", + "json_mapping": { + "field": "providerId" + } + }, + { + "column_name": "location_id", + "json_mapping": { + "field": "locationId" + } + } + ] +} \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/ec_client_weight.json b/opensrp-bidan/src/main/assets/ec_client_weight.json new file mode 100644 index 0000000..5d900bb --- /dev/null +++ b/opensrp-bidan/src/main/assets/ec_client_weight.json @@ -0,0 +1,36 @@ +{ + "name": "vaccines", + "columns": [ + { + "column_name": "base_entity_id", + "json_mapping": { + "field": "baseEntityId" + } + }, + { + "column_name": "kg", + "json_mapping": { + "field": "obs.fieldCode", + "concept": "5089AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + } + }, + { + "column_name": "date", + "json_mapping": { + "field": "eventDate" + } + }, + { + "column_name": "anmid", + "json_mapping": { + "field": "providerId" + } + }, + { + "column_name": "location_id", + "json_mapping": { + "field": "locationId" + } + } + ] +} \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/fonts/material-icon-font.ttf b/opensrp-bidan/src/main/assets/fonts/material-icon-font.ttf new file mode 100644 index 0000000..06300f9 Binary files /dev/null and b/opensrp-bidan/src/main/assets/fonts/material-icon-font.ttf differ diff --git a/opensrp-bidan/src/main/assets/json.form/adverse_event.json b/opensrp-bidan/src/main/assets/json.form/adverse_event.json new file mode 100644 index 0000000..9658b73 --- /dev/null +++ b/opensrp-bidan/src/main/assets/json.form/adverse_event.json @@ -0,0 +1,150 @@ +{ + "count": "1", + "encounter_type": "AEFI", + "entity_id": "", + "metadata": { + "start": { + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_data_type": "start", + "openmrs_entity_id": "163137AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "end": { + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_data_type": "end", + "openmrs_entity_id": "163138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "today": { + "openmrs_entity_parent": "", + "openmrs_entity": "encounter", + "openmrs_entity_id": "encounter_date" + }, + "deviceid": { + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_data_type": "deviceid", + "openmrs_entity_id": "163149AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "subscriberid": { + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_data_type": "subscriberid", + "openmrs_entity_id": "163150AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "simserial": { + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_data_type": "simserial", + "openmrs_entity_id": "163151AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "phonenumber": { + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_data_type": "phonenumber", + "openmrs_entity_id": "163152AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "encounter_location": "" + }, + "step1": { + "title": "Report an adverse event", + "fields": [ + { + "key": "Reaction_Vaccine", + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_entity_id": "6042AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "openmrs_data_type": "select one", + "type": "spinner", + "hint": "Vaccine that caused the reaction *", + "values": [ + "BCG", + "OPV", + "Penta", + "PCV", + "Rota", + "Measles", + "MR" + ], + "openmrs_choice_ids": { + "BCG": "149310AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "OPV": "129578AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "Penta": "162265AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "PCV": "162266AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "Rota": "162272AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "Measles": "149286AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "MR": "149286AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "v_required": { + "value": true, + "err": "Please enter the vaccine that caused the reaction" + } + }, + { + "key": "Date_Reaction", + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_entity_id": "1730AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "type": "date_picker", + "hint": "Date that the child started experiencing the reaction *", + "expanded": false, + "max_date": "today", + "v_required": { + "value": "true", + "err": "Please enter the date child started experiencing reaction" + } + }, + { + "key": "Reaction_Description", + "openmrs_entity_parent": "111172AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "openmrs_entity": "concept", + "openmrs_entity_id": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "openmrs_data_type": "text", + "type": "edit_text", + "hint": "Describe the reaction *", + "v_required": { + "value": "true", + "err": "Please describe the reaction" + } + }, + { + "key": "Reaction_Referred", + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_entity_id": "1648AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "openmrs_data_type": "boolean", + "type": "spinner", + "hint": "Child referred? *", + "values": [ + "Yes", + "No" + ], + "openmrs_choice_ids": { + "Yes": "true", + "No": "false" + }, + "v_required": { + "value": true, + "err": "Please specify if child was referred" + } + }, + { + "key": "AEFI_Form_Completed", + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_entity_id": "163340AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "openmrs_data_type": "select one", + "type": "spinner", + "hint": "AEFI form completed?", + "values": [ + "Yes", + "No" + ], + "openmrs_choice_ids": { + "Yes": "1267AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "No": "163339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + } + } + ] + } +} \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/json.form/child_enrollment.json b/opensrp-bidan/src/main/assets/json.form/child_enrollment.json new file mode 100644 index 0000000..6eab304 --- /dev/null +++ b/opensrp-bidan/src/main/assets/json.form/child_enrollment.json @@ -0,0 +1,498 @@ +{ + "count": "1", + "encounter_type": "Birth Registration", + "mother": { + "encounter_type": "New Woman Registration" + }, + "entity_id": "", + "relational_id": "", + "metadata": { + "start": { + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_data_type": "start", + "openmrs_entity_id": "163137AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "end": { + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_data_type": "end", + "openmrs_entity_id": "163138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "today": { + "openmrs_entity_parent": "", + "openmrs_entity": "encounter", + "openmrs_entity_id": "encounter_date" + }, + "deviceid": { + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_data_type": "deviceid", + "openmrs_entity_id": "163149AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "subscriberid": { + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_data_type": "subscriberid", + "openmrs_entity_id": "163150AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "simserial": { + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_data_type": "simserial", + "openmrs_entity_id": "163151AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "phonenumber": { + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_data_type": "phonenumber", + "openmrs_entity_id": "163152AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "encounter_location": "", + "look_up": { + "entity_id":"", + "value":"" + } + }, + "step1": { + "title": "Birth Registration", + "fields": [ + { + "key": "Child_Photo", + "openmrs_entity_parent": "", + "openmrs_entity": "", + "openmrs_entity_id": "", + "type": "choose_image", + "uploadButtonText": "Take a photo of the child" + }, + { + "key": "Home_Facility", + "openmrs_entity_parent": "", + "openmrs_entity": "", + "openmrs_entity_id": "", + "openmrs_data_type": "text", + "type": "tree", + "hint": "Child's home health facility *", + "tree": [], + "v_required": { + "value": true, + "err": "Please enter the child's home facility" + } + }, + { + "key": "ZEIR_ID", + "openmrs_entity_parent": "", + "openmrs_entity": "person_identifier", + "openmrs_entity_id": "ZEIR_ID", + "type": "barcode", + "barcode_type": "qrcode", + "hint": "Child's ZEIR ID *", + "scanButtonText": "Scan QR Code", + "value": "0", + "v_numeric": { + "value": "true", + "err": "Please enter a valid ID" + }, + "v_required": { + "value": "true", + "err": "Please enter the Child's ZEIR ID" + } + }, + { + "key": "Child_Register_Card_Number", + "openmrs_entity_parent": "", + "openmrs_entity": "person_attribute", + "openmrs_entity_id": "Child_Register_Card_Number", + "type": "edit_text", + "hint": "Child's register card number" + }, + { + "key": "Child_Birth_Certificate", + "openmrs_entity_parent": "", + "openmrs_entity": "person_attribute", + "openmrs_entity_id": "Child_Birth_Certificate", + "type": "edit_text", + "hint": "Child's birth certificate number" + }, + { + "key": "First_Name", + "openmrs_entity_parent": "", + "openmrs_entity": "person", + "openmrs_entity_id": "first_name", + "type": "edit_text", + "hint": "First name", + "edit_type": "name", + "v_regex": { + "value": "[A-Za-z\\s\.\-]*", + "err": "Please enter a valid name" + } + }, + { + "key": "Last_Name", + "openmrs_entity_parent": "", + "openmrs_entity": "person", + "openmrs_entity_id": "last_name", + "type": "edit_text", + "hint": "Last name *", + "edit_type": "name", + "v_required": { + "value": "true", + "err": "Please enter the last name" + }, + "v_regex": { + "value": "[A-Za-z\\s\.\-]*", + "err": "Please enter a valid name" + } + }, + { + "key": "Sex", + "openmrs_entity_parent": "", + "openmrs_entity": "person", + "openmrs_entity_id": "gender", + "type": "spinner", + "hint": "Sex *", + "values": [ + "Male", + "Female" + ], + "v_required": { + "value": "true", + "err": "Please enter the sex" + } + }, + { + "key": "Date_Birth", + "openmrs_entity_parent": "", + "openmrs_entity": "person", + "openmrs_entity_id": "birthdate", + "type": "date_picker", + "hint": "Child's DOB *", + "expanded": false, + "duration": { + "label": "Age" + }, + "min_date": "today-5y", + "max_date": "today", + "v_required": { + "value": "true", + "err": "Please enter the date of birth" + } + }, + { + "key": "First_Health_Facility_Contact", + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_entity_id": "163260AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "openmrs_data_type": "date", + "type": "date_picker", + "hint": "Date first seen *", + "expanded": false, + "min_date": "today-5y", + "max_date": "today", + "v_required": { + "value": "true", + "err": "Enter the date that the child was first seen at a health facility for immunization services" + }, + "constraints": [ + { + "type": "date", + "ex": "greaterThanEqualTo(., step1:Date_Birth)", + "err": "Date first seen can't occur before date of birth" + } + ] + }, + { + "key": "Birth_Weight", + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_entity_id": "5916AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "openmrs_data_type": "text", + "type": "edit_text", + "hint": "Birth weight (kg) *", + "v_min": { + "value": "0.1", + "err": "Weight must be greater than 0" + }, + "v_numeric": { + "value": "true", + "err": "Enter a valid weight" + }, + "v_required": { + "value": "true", + "err": "Enter the child's birth weight" + } + }, + { + "key": "Mother_Guardian_First_Name", + "openmrs_entity_parent": "", + "openmrs_entity": "person", + "openmrs_entity_id": "first_name", + "entity_id": "mother", + "type": "edit_text", + "hint": "Mother/guardian first name *", + "edit_type": "name", + "look_up": "true", + "v_required": { + "value": "true", + "err": "Please enter the mother/guardian's first name" + }, + "v_regex": { + "value": "[A-Za-z\\s\.\-]*", + "err": "Please enter a valid name" + } + }, + { + "key": "Mother_Guardian_Last_Name", + "openmrs_entity_parent": "", + "openmrs_entity": "person", + "openmrs_entity_id": "last_name", + "entity_id": "mother", + "type": "edit_text", + "hint": "Mother/guardian last name *", + "edit_type": "name", + "look_up": "true", + "v_required": { + "value": "true", + "err": "Please enter the mother/guardian's last name" + }, + "v_regex": { + "value": "[A-Za-z\\s\.\-]*", + "err": "Please enter a valid name" + } + }, + { + "key": "Mother_Guardian_Date_Birth", + "openmrs_entity_parent": "", + "openmrs_entity": "person", + "openmrs_entity_id": "birthdate", + "entity_id": "mother", + "type": "date_picker", + "hint": "Mother/guardian DOB", + "look_up": "true", + "expanded": false, + "duration": { + "label": "Age" + }, + "min_date": "01-01-1900", + "max_date": "today-10y" + }, + { + "key": "Mother_Guardian_NRC", + "openmrs_entity_parent": "", + "openmrs_entity": "person_attribute", + "openmrs_entity_id": "NRC_Number", + "entity_id": "mother", + "type": "edit_text", + "hint": "Mother/guardian NRC number", + "v_regex": { + "value": "([0-9]{6}/[0-9]{2}/[0-9])|\s*", + "err": "Number must take the format of ######/##/#" + } + }, + { + "key": "Mother_Guardian_Number", + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_entity_id": "159635AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "type": "edit_text", + "hint": "Mother/guardian phone number", + "v_numeric": { + "value": "true", + "err": "Number must begin with 095, 096, or 097 and must be a total of 10 digits in length" + }, + "v_regex": { + "value": "(09[5-7][0-9]{7})|\s*", + "err": "Number must begin with 095, 096, or 097 and must be a total of 10 digits in length" + } + }, + { + "key": "Father_Guardian_Name", + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_entity_id": "1594AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "openmrs_data_type": "text", + "type": "edit_text", + "hint": "Father/guardian full name", + "edit_type": "name", + "v_regex": { + "value": "[A-Za-z\\s\.\-]*", + "err": "Please enter a valid name" + } + }, + { + "key": "Father_Guardian_NRC", + "openmrs_entity_parent": "", + "openmrs_entity": "person_attribute", + "openmrs_entity_id": "Father_NRC_Number", + "type": "edit_text", + "hint": "Father/guardian NRC number", + "v_regex": { + "value": "([0-9]{6}/[0-9]{2}/[0-9])|\s*", + "err": "Number must take the format of ######/##/#" + } + }, + { + "key": "Place_Birth", + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_entity_id": "1572AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "openmrs_data_type": "select one", + "type": "spinner", + "hint": "Place of birth *", + "values": [ + "Health facility", + "Home" + ], + "openmrs_choice_ids": { + "Health facility": "1588AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "Home": "1536AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "v_required": { + "value": true, + "err": "Please enter the place of birth" + } + }, + { + "key": "Birth_Facility_Name", + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_entity_id": "163531AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "openmrs_data_type": "text", + "type": "tree", + "hint": "Which health facility was the child born in? *", + "tree": [], + "v_required": { + "value": true, + "err": "Please enter the birth facility name" + }, + "relevance": { + "step1:Place_Birth": { + "type": "string", + "ex": "equalTo(., \"Health facility\")" + } + } + }, + { + "key": "Birth_Facility_Name_Other", + "openmrs_entity_parent": "163531AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "openmrs_entity": "concept", + "openmrs_entity_id": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "type": "edit_text", + "hint": "Other health facility *", + "edit_type": "name", + "v_required": { + "value": true, + "err": "Please specify the health facility the child was born in" + }, + "relevance": { + "step1:Birth_Facility_Name": { + "type": "string", + "ex": "equalTo(., \"[\"Other\"]\")" + } + } + }, + { + "key": "Residential_Area", + "openmrs_entity_parent": "usual_residence", + "openmrs_entity": "person_address", + "openmrs_entity_id": "address3", + "openmrs_data_type": "text", + "type": "tree", + "hint": "Child's residential area *", + "tree": [], + "v_required": { + "value": true, + "err": "Please enter the child's residential area" + } + }, + { + "key": "Residential_Area_Other", + "openmrs_entity_parent": "usual_residence", + "openmrs_entity": "person_address", + "openmrs_entity_id": "address5", + "type": "edit_text", + "hint": "Other residential area *", + "edit_type": "name", + "v_required": { + "value": true, + "err": "Please specify the residential area" + }, + "relevance": { + "step1:Residential_Area": { + "type": "string", + "ex": "equalTo(., \"[\"Other\"]\")" + } + } + }, + { + "key": "Residential_Address", + "openmrs_entity_parent": "usual_residence", + "openmrs_entity": "person_address", + "openmrs_entity_id": "address2", + "type": "edit_text", + "hint": "Home address *", + "edit_type": "name", + "v_required": { + "value": true, + "err": "Please enter the home address" + } + }, + { + "key": "Physical_Landmark", + "openmrs_entity_parent": "usual_residence", + "openmrs_entity": "person_address", + "openmrs_entity_id": "address1", + "type": "edit_text", + "hint": "Landmark", + "edit_type": "name" + }, + { + "key": "CHW_Name", + "openmrs_entity_parent": "", + "openmrs_entity": "person_attribute", + "openmrs_entity_id": "CHW_Name", + "type": "edit_text", + "hint": "CHW name", + "edit_type": "name", + "v_regex": { + "value": "[A-Za-z\\s\.\-]*", + "err": "Please enter a valid name" + } + }, + { + "key": "CHW_Phone_Number", + "openmrs_entity_parent": "", + "openmrs_entity": "person_attribute", + "openmrs_entity_id": "CHW_Phone_Number", + "type": "edit_text", + "hint": "CHW phone number", + "v_numeric": { + "value": "true", + "err": "Number must begin with 095, 096, or 097 and must be a total of 10 digits in length" + }, + "v_regex": { + "value": "(09[5-7][0-9]{7})|\s*", + "err": "Number must begin with 095, 096, or 097 and must be a total of 10 digits in length" + } + }, + { + "key": "PMTCT_Status", + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_entity_id": "1396AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "type": "spinner", + "hint": "HIV exposure", + "values": [ + "CE", + "MSU", + "CNE" + ], + "openmrs_choice_ids": { + "CE": "703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "MSU": "1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "CNE": "664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + } + } + ] + } +} \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/json.form/hia2_monthly_report.json b/opensrp-bidan/src/main/assets/json.form/hia2_monthly_report.json new file mode 100644 index 0000000..32f6b56 --- /dev/null +++ b/opensrp-bidan/src/main/assets/json.form/hia2_monthly_report.json @@ -0,0 +1,58 @@ +{ + "count": "1", + "encounter_type": "HIA2 Monthly Report", + "entity_id": "", + "relational_id": "", + "metadata": { + "start": { + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_data_type": "start", + "openmrs_entity_id": "163137AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "end": { + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_data_type": "end", + "openmrs_entity_id": "163138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "today": { + "openmrs_entity_parent": "", + "openmrs_entity": "encounter", + "openmrs_entity_id": "encounter_date" + }, + "deviceid": { + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_data_type": "deviceid", + "openmrs_entity_id": "163149AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "subscriberid": { + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_data_type": "subscriberid", + "openmrs_entity_id": "163150AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "simserial": { + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_data_type": "simserial", + "openmrs_entity_id": "163151AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "phonenumber": { + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_data_type": "phonenumber", + "openmrs_entity_id": "163152AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "encounter_location": "", + "look_up": { + "entity_id": "", + "value": "" + } + }, + "step1": { + "title": "", + "sections": [] + } +} \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/json.form/out_of_catchment_service.json b/opensrp-bidan/src/main/assets/json.form/out_of_catchment_service.json new file mode 100644 index 0000000..528afe5 --- /dev/null +++ b/opensrp-bidan/src/main/assets/json.form/out_of_catchment_service.json @@ -0,0 +1,101 @@ +{ + "count": "1", + "encounter_type": "Out of Catchment Service", + "entity_id": "", + "metadata": { + "start": { + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_data_type": "start", + "openmrs_entity_id": "163137AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "end": { + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_data_type": "end", + "openmrs_entity_id": "163138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "today": { + "openmrs_entity_parent": "", + "openmrs_entity": "encounter", + "openmrs_entity_id": "encounter_date" + }, + "deviceid": { + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_data_type": "deviceid", + "openmrs_entity_id": "163149AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "subscriberid": { + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_data_type": "subscriberid", + "openmrs_entity_id": "163150AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "simserial": { + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_data_type": "simserial", + "openmrs_entity_id": "163151AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "phonenumber": { + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_data_type": "phonenumber", + "openmrs_entity_id": "163152AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "encounter_location":"" + }, + "step1": { + "title": "Record out of catchment area service", + "fields": [ + { + "key": "ZEIR_ID", + "openmrs_entity_parent": "", + "openmrs_entity": "", + "openmrs_entity_id": "", + "type": "barcode", + "barcode_type": "qrcode", + "hint": "ZEIR ID *", + "scanButtonText": "Scan QR Code", + "read_only": true, + "value": "", + "v_required": { + "value": "true", + "err": "Enter the child's ZEIR ID" + } + }, + { + "key": "OA_Service_Date", + "openmrs_entity_parent": "", + "openmrs_entity": "encounter", + "openmrs_entity_id": "encounter_date", + "type": "date_picker", + "hint": "Service date *", + "expanded": false, + "max_date": "today", + "v_required": { + "value": "true", + "err": "Enter the service date" + } + }, + { + "key": "Weight_Kg", + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_entity_id": "5089AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "openmrs_data_type": "text", + "type": "edit_text", + "hint": "Child's weight (kg)", + "v_min": { + "value": "0.1", + "err": "Weight must be greater than 0" + }, + "v_numeric": { + "value": "true", + "err": "Enter a valid weight" + } + } + ] + } +} \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/json.form/report_deceased.json b/opensrp-bidan/src/main/assets/json.form/report_deceased.json new file mode 100644 index 0000000..306af95 --- /dev/null +++ b/opensrp-bidan/src/main/assets/json.form/report_deceased.json @@ -0,0 +1,117 @@ +{ + "count": "1", + "encounter_type": "Death", + "entity_id": "", + "metadata": { + "start": { + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_data_type": "start", + "openmrs_entity_id": "163137AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "end": { + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_data_type": "end", + "openmrs_entity_id": "163138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "today": { + "openmrs_entity_parent": "", + "openmrs_entity": "encounter", + "openmrs_entity_id": "encounter_date" + }, + "deviceid": { + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_data_type": "deviceid", + "openmrs_entity_id": "163149AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "subscriberid": { + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_data_type": "subscriberid", + "openmrs_entity_id": "163150AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "simserial": { + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_data_type": "simserial", + "openmrs_entity_id": "163151AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "phonenumber": { + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_data_type": "phonenumber", + "openmrs_entity_id": "163152AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "encounter_location": "" + }, + "step1": { + "title": "Report Deceased", + "fields": [ + { + "key": "Date_of_Death", + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_entity_id": "1543AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "openmrs_data_type": "date", + "type": "date_picker", + "hint": "Date of death *", + "expanded": false, + "min_date": "01-01-1900", + "max_date": "today", + "v_required": { + "value": "true", + "err": "Date cannot be past today's date" + }, + "constraints": [ + { + "type": "date", + "ex": "greaterThanEqualTo(., step1:Date_Birth)", + "err": "Date of death can't occur before date of birth" + } + ] + }, + { + "key": "Cause_Death", + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_entity_id": "160218AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "type": "edit_text", + "hint": "Suspected cause of death", + "edit_type": "name" + }, + { + "key": "Place_Death", + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_entity_id": "1541AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "openmrs_data_type": "select one", + "type": "spinner", + "hint": "Where did the death occur? *", + "values": [ + "Health facility", + "Home" + ], + "openmrs_choice_ids": { + "Health facility": "1588AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "Home": "1536AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "v_required": { + "value": "true", + "err": "Please select one option" + } + }, + { + "key": "Date_Birth", + "openmrs_entity_parent": "", + "openmrs_entity": "", + "openmrs_entity_id": "", + "type": "date_picker", + "hint": "Child's DOB", + "read_only": true, + "hidden": true + } + ] + } +} \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/json.form/stock_adjustment_form.json b/opensrp-bidan/src/main/assets/json.form/stock_adjustment_form.json new file mode 100644 index 0000000..4afe813 --- /dev/null +++ b/opensrp-bidan/src/main/assets/json.form/stock_adjustment_form.json @@ -0,0 +1,140 @@ +{ + "count": "1", + "encounter_type": "", + "entity_id": "", + "metadata": { + "start": { + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_data_type": "start", + "openmrs_entity_id": "163137AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "end": { + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_data_type": "end", + "openmrs_entity_id": "163138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "today": { + "openmrs_entity_parent": "", + "openmrs_entity": "encounter", + "openmrs_entity_id": "encounter_date" + }, + "deviceid": { + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_data_type": "deviceid", + "openmrs_entity_id": "163149AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "subscriberid": { + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_data_type": "subscriberid", + "openmrs_entity_id": "163150AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "simserial": { + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_data_type": "simserial", + "openmrs_entity_id": "163151AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "phonenumber": { + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_data_type": "phonenumber", + "openmrs_entity_id": "163152AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "encounter_location":"" + }, + "step1": { + "title": "[vaccine] Stock Loss/Adjustment", + "fields": [ + { + "key": "Date_Stock_loss_adjustment", + "openmrs_entity_parent": "", + "openmrs_entity": "", + "openmrs_entity_id": "", + "type": "date_picker", + "hint": "Date of [vaccine] stock loss/adjustment *", + "expanded": false, + "min_date": "today-1m", + "max_date": "today", + "v_required": { + "value": "true", + "err": "Enter the service date" + } + }, + { + "key": "Reason_for_adjustment", + "openmrs_entity_parent": "", + "openmrs_entity": "", + "openmrs_entity_id": "", + "openmrs_data_type": "select one", + "type": "radio", + "label": "Reason for [vaccine] adjustment *", + "options":[ + { + "key":"Physical_recount", + "text":"Physical recount" + }, + { + "key":"Other", + "text":"Other" + } + ], + "value": "Physical_recount", + "v_required": { + "value": true, + "err": "" + } + }, + { + "key": "adjusted_Stock_TO_Other", + "openmrs_entity_parent": "", + "openmrs_entity": "", + "openmrs_entity_id": "", + "type": "edit_text", + "hint": "Please specify: *", + "edit_type": "name", + "v_required": { + "value": true, + "err": "Please specify where else the stock was adjusted from" + }, + "relevance": { + "step1:Reason_for_adjustment": { + "type": "string", + "ex": "equalTo(., \"Other\")" + } + } + }, + { + "key": "Vials_Adjustment", + "openmrs_entity_parent": "", + "openmrs_entity": "", + "openmrs_entity_id": "", + "openmrs_data_type": "text", + "type": "edit_text", + "hint": "Vials [vaccine] adjustment *", + "number_picker":"true", + "value": "0", + "v_required": { + "value": "true", + "err": "Please enter the value for adjustment" + }, + "v_regex": { + "value": "-?[1-9]\\d*|0", + "err": "Please enter a valid value" + } + }, + { + "key":"Balance", + "openmrs_entity_parent": "", + "openmrs_entity": "", + "openmrs_entity_id": "", + "openmrs_data_type": "text", + "type":"label", + "text":"" + } + ] + } +} \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/json.form/stock_issued_form.json b/opensrp-bidan/src/main/assets/json.form/stock_issued_form.json new file mode 100644 index 0000000..3fc34c3 --- /dev/null +++ b/opensrp-bidan/src/main/assets/json.form/stock_issued_form.json @@ -0,0 +1,159 @@ +{ + "count": "1", + "encounter_type": "", + "entity_id": "", + "metadata": { + "start": { + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_data_type": "start", + "openmrs_entity_id": "163137AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "end": { + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_data_type": "end", + "openmrs_entity_id": "163138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "today": { + "openmrs_entity_parent": "", + "openmrs_entity": "encounter", + "openmrs_entity_id": "encounter_date" + }, + "deviceid": { + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_data_type": "deviceid", + "openmrs_entity_id": "163149AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "subscriberid": { + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_data_type": "subscriberid", + "openmrs_entity_id": "163150AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "simserial": { + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_data_type": "simserial", + "openmrs_entity_id": "163151AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "phonenumber": { + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_data_type": "phonenumber", + "openmrs_entity_id": "163152AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "encounter_location":"" + }, + "step1": { + "title": "[vaccine] Stock Issued", + "fields": [ + { + "key": "Date_Stock_Issued", + "openmrs_entity_parent": "", + "openmrs_entity": "", + "openmrs_entity_id": "", + "type": "date_picker", + "hint": "Date [vaccine] stock issued *", + "expanded": false, + "min_date": "today-1m", + "max_date": "today", + "v_required": { + "value": "true", + "err": "Enter the service date" + } + }, + { + "key": "Issued_Stock_To", + "openmrs_entity_parent": "", + "openmrs_entity": "", + "openmrs_entity_id": "", + "openmrs_data_type": "select one", + "type": "radio", + "label": "Issued to *", + "options":[ + { + "key":"C/C", + "text":"Children's Clinic (C/C)" + }, + { + "key":"Other", + "text":"Other" + } + ], + "value": "C/C", + "v_required": { + "value": true, + "err": "Please enter the place where stock was issued" + } + }, + { + "key": "Issued_Stock_TO_Other", + "openmrs_entity_parent": "", + "openmrs_entity": "", + "openmrs_entity_id": "", + "type": "edit_text", + "hint": "Please specify: *", + "edit_type": "name", + "v_required": { + "value": true, + "err": "Please specify where else the stock was received from" + }, + "relevance": { + "step1:Issued_Stock_To": { + "type": "string", + "ex": "equalTo(., \"Other\")" + } + } + }, + { + "key": "Vials_Issued", + "openmrs_entity_parent": "", + "openmrs_entity": "", + "openmrs_entity_id": "", + "openmrs_data_type": "text", + "type": "edit_text", + "hint": "Vials [vaccine] issued *", + "v_min": { + "value": "1", + "err": "issued vials must be greater than 0" + }, + "v_numeric": { + "value": "true", + "err": "Enter a valid vial number" + }, + "v_required": { + "value": "true", + "err": "Enter the Vials Issued" + } + }, + { + "key": "Vials_Wasted", + "openmrs_entity_parent": "", + "openmrs_entity": "", + "openmrs_entity_id": "", + "openmrs_data_type": "text", + "type": "edit_text", + "hint": "Wasted vials", + "v_min": { + "value": "0", + "err": "value cannot be less than zero" + }, + "v_numeric": { + "value": "true", + "err": "Enter a valid vial number" + } + }, + { + "key":"Balance", + "openmrs_entity_parent": "", + "openmrs_entity": "", + "openmrs_entity_id": "", + "openmrs_data_type": "text", + "type":"label", + "text":"" + } + ] + } +} \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/json.form/stock_received_form.json b/opensrp-bidan/src/main/assets/json.form/stock_received_form.json new file mode 100644 index 0000000..9c5c942 --- /dev/null +++ b/opensrp-bidan/src/main/assets/json.form/stock_received_form.json @@ -0,0 +1,142 @@ +{ + "count": "1", + "encounter_type": "", + "entity_id": "", + "metadata": { + "start": { + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_data_type": "start", + "openmrs_entity_id": "163137AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "end": { + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_data_type": "end", + "openmrs_entity_id": "163138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "today": { + "openmrs_entity_parent": "", + "openmrs_entity": "encounter", + "openmrs_entity_id": "encounter_date" + }, + "deviceid": { + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_data_type": "deviceid", + "openmrs_entity_id": "163149AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "subscriberid": { + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_data_type": "subscriberid", + "openmrs_entity_id": "163150AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "simserial": { + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_data_type": "simserial", + "openmrs_entity_id": "163151AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "phonenumber": { + "openmrs_entity_parent": "", + "openmrs_entity": "concept", + "openmrs_data_type": "phonenumber", + "openmrs_entity_id": "163152AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "encounter_location":"" + }, + "step1": { + "title": "[vaccine] Stock Received", + "fields": [ + { + "key": "Date_Stock_Received", + "openmrs_entity_parent": "", + "openmrs_entity": "", + "openmrs_entity_id": "", + "type": "date_picker", + "hint": "Date [vaccine] stock received *", + "expanded": false, + "min_date": "today-1m", + "max_date": "today", + "v_required": { + "value": "true", + "err": "Enter the service date" + } + }, + { + "key": "Received_Stock_From", + "openmrs_entity_parent": "", + "openmrs_entity": "", + "openmrs_entity_id": "", + "openmrs_data_type": "select one", + "type": "radio", + "label": "Received from *", + "options":[ + { + "key":"DHO", + "text":"DHO" + }, + { + "key":"Other", + "text":"Other" + } + ], + "value": "DHO", + "v_required": { + "value": true, + "err": "Please enter the place from where stock was received" + } + }, + { + "key": "Received_Stock_From_Other", + "openmrs_entity_parent": "", + "openmrs_entity": "", + "openmrs_entity_id": "", + "type": "edit_text", + "hint": "Please specify: *", + "edit_type": "name", + "v_required": { + "value": true, + "err": "Please specify where else the stock was received from" + }, + "relevance": { + "step1:Received_Stock_From": { + "type": "string", + "ex": "equalTo(., \"Other\")" + } + } + }, + { + "key": "Vials_Received", + "openmrs_entity_parent": "", + "openmrs_entity": "", + "openmrs_entity_id": "", + "openmrs_data_type": "text", + "type": "edit_text", + "hint": "Vials [vaccine] received *", + "v_min": { + "value": "1", + "err": "issued vials must be greater than 0" + }, + "v_numeric": { + "value": "true", + "err": "Enter a valid vial number" + }, + "v_required": { + "value": "true", + "err": "Enter the vials received" + } + }, + { + "key":"Balance", + "openmrs_entity_parent": "", + "openmrs_entity": "", + "openmrs_entity_id": "", + "openmrs_data_type": "text", + "type":"label", + "text":"" + } + ] + } +} \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/recurring_service_types.json b/opensrp-bidan/src/main/assets/recurring_service_types.json new file mode 100644 index 0000000..f5d4512 --- /dev/null +++ b/opensrp-bidan/src/main/assets/recurring_service_types.json @@ -0,0 +1,456 @@ +[ + { + "type": "Vit A", + "service_logic": "", + "units": "IU", + "openmrs_service_name": { + "parent_entity": "", + "entity": "concept", + "entity_id": "161534AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "openmrs_date": { + "parent_entity": "", + "entity": "encounter", + "entity_id": "encounter_date" + }, + "services": [ + { + "id": "10", + "name": "Vit A IFC 2", + "dose": "50,000", + "schedule": { + "due": { + "reference": "dob", + "offset": "+0d" + }, + "expiry": { + "reference": "dob", + "offset": "+6m" + } + } + }, + { + "id": "11", + "name": "Vit A 1", + "dose": "100,000", + "schedule": { + "due": { + "reference": "multiple", + "multiple": { + "condition": "OR", + "prerequisites": [ + "Vit A IFC 2", + "dob" + ] + }, + "offset": "+6m" + }, + "expiry": { + "reference": "dob", + "offset": "+5y" + } + } + }, + { + "id": "12", + "name": "Vit A 2", + "dose": "200,000", + "schedule": { + "due": { + "reference": "prerequisite", + "prerequisite": "Vit A 1", + "offset": "+6m" + }, + "expiry": { + "reference": "dob", + "offset": "+5y" + } + } + }, + { + "id": "13", + "name": "Vit A 3", + "dose": "200,000", + "schedule": { + "due": { + "reference": "prerequisite", + "prerequisite": "Vit A 2", + "offset": "+6m" + }, + "expiry": { + "reference": "dob", + "offset": "+5y" + } + } + }, + { + "id": "14", + "name": "Vit A 4", + "dose": "200,000", + "schedule": { + "due": { + "reference": "prerequisite", + "prerequisite": "Vit A 3", + "offset": "+6m" + }, + "expiry": { + "reference": "dob", + "offset": "+5y" + } + } + }, + { + "id": "15", + "name": "Vit A 5", + "dose": "200,000", + "schedule": { + "due": { + "reference": "prerequisite", + "prerequisite": "Vit A 4", + "offset": "+6m" + }, + "expiry": { + "reference": "dob", + "offset": "+5y" + } + } + }, + { + "id": "16", + "name": "Vit A 6", + "dose": "200,000", + "schedule": { + "due": { + "reference": "prerequisite", + "prerequisite": "Vit A 5", + "offset": "+6m" + }, + "expiry": { + "reference": "dob", + "offset": "+5y" + } + } + }, + { + "id": "17", + "name": "Vit A 7", + "dose": "200,000", + "schedule": { + "due": { + "reference": "prerequisite", + "prerequisite": "Vit A 6", + "offset": "+6m" + }, + "expiry": { + "reference": "dob", + "offset": "+5y" + } + } + }, + { + "id": "18", + "name": "Vit A 8", + "dose": "200,000", + "schedule": { + "due": { + "reference": "prerequisite", + "prerequisite": "Vit A 7", + "offset": "+6m" + }, + "expiry": { + "reference": "dob", + "offset": "+5y" + } + } + }, + { + "id": "19", + "name": "Vit A 9", + "dose": "200,000", + "schedule": { + "due": { + "reference": "prerequisite", + "prerequisite": "Vit A 8", + "offset": "+6m" + }, + "expiry": { + "reference": "dob", + "offset": "+5y" + } + } + }, + { + "id": "20", + "name": "Vit A 10", + "dose": "200,000", + "schedule": { + "due": { + "reference": "prerequisite", + "prerequisite": "Vit A 9", + "offset": "+6m" + }, + "expiry": { + "reference": "dob", + "offset": "+5y" + } + } + } + ] + }, + { + "type": "Deworming", + "service_logic": "", + "units": "mg", + "openmrs_service_name": { + "parent_entity": "", + "entity": "concept", + "entity_id": "159922AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "openmrs_date": { + "parent_entity": "", + "entity": "encounter", + "entity_id": "encounter_date" + }, + "services": [ + { + "id": "1", + "name": "Deworming 1", + "dose": "500", + "schedule": { + "due": { + "reference": "dob", + "offset": "+12m" + }, + "expiry": { + "reference": "dob", + "offset": "+5y" + } + } + }, + { + "id": "2", + "name": "Deworming 2", + "dose": "500", + "schedule": { + "due": { + "reference": "prerequisite", + "prerequisite": "Deworming 1", + "offset": "+6m" + }, + "expiry": { + "reference": "dob", + "offset": "+5y" + } + } + }, + { + "id": "3", + "name": "Deworming 3", + "dose": "500", + "schedule": { + "due": { + "reference": "prerequisite", + "prerequisite": "Deworming 2", + "offset": "+6m" + }, + "expiry": { + "reference": "dob", + "offset": "+5y" + } + } + }, + { + "id": "4", + "name": "Deworming 4", + "dose": "500", + "schedule": { + "due": { + "reference": "prerequisite", + "prerequisite": "Deworming 3", + "offset": "+6m" + }, + "expiry": { + "reference": "dob", + "offset": "+5y" + } + } + }, + { + "id": "5", + "name": "Deworming 5", + "dose": "500", + "schedule": { + "due": { + "reference": "prerequisite", + "prerequisite": "Deworming 4", + "offset": "+6m" + }, + "expiry": { + "reference": "dob", + "offset": "+5y" + } + } + }, + { + "id": "6", + "name": "Deworming 6", + "dose": "500", + "schedule": { + "due": { + "reference": "prerequisite", + "prerequisite": "Deworming 5", + "offset": "+6m" + }, + "expiry": { + "reference": "dob", + "offset": "+5y" + } + } + }, + { + "id": "7", + "name": "Deworming 7", + "dose": "500", + "schedule": { + "due": { + "reference": "prerequisite", + "prerequisite": "Deworming 6", + "offset": "+6m" + }, + "expiry": { + "reference": "dob", + "offset": "+5y" + } + } + }, + { + "id": "8", + "name": "Deworming 8", + "dose": "500", + "schedule": { + "due": { + "reference": "prerequisite", + "prerequisite": "Deworming 7", + "offset": "+6m" + }, + "expiry": { + "reference": "dob", + "offset": "+5y" + } + } + }, + { + "id": "9", + "name": "Deworming 9", + "dose": "500", + "schedule": { + "due": { + "reference": "prerequisite", + "prerequisite": "Deworming 8", + "offset": "+6m" + }, + "expiry": { + "reference": "dob", + "offset": "+5y" + } + } + } + ] + }, + { + "type": "ITN", + "service_logic": "", + "units": "", + "openmrs_service_name": { + "parent_entity": "", + "entity": "concept", + "entity_id": "159855AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "openmrs_date": { + "parent_entity": "", + "entity": "date", + "entity_id": "159432AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "services": [ + { + "id": "21", + "name": "ITN 1", + "dose": "", + "schedule": { + "due": { + "reference": "dob", + "offset": "+0d" + }, + "expiry": { + "reference": "dob", + "offset": "+5y" + } + } + }, + { + "id": "22", + "name": "ITN 2", + "dose": "", + "schedule": { + "due": { + "reference": "prerequisite", + "prerequisite": "ITN 1", + "offset": "+12m" + }, + "expiry": { + "reference": "dob", + "offset": "+5y" + } + } + }, + { + "id": "23", + "name": "ITN 3", + "dose": "", + "schedule": { + "due": { + "reference": "prerequisite", + "prerequisite": "ITN 2", + "offset": "+12m" + }, + "expiry": { + "reference": "dob", + "offset": "+5y" + } + } + }, + { + "id": "24", + "name": "ITN 4", + "dose": "", + "schedule": { + "due": { + "reference": "prerequisite", + "prerequisite": "ITN 3", + "offset": "+12m" + }, + "expiry": { + "reference": "dob", + "offset": "+5y" + } + } + }, + { + "id": "25", + "name": "ITN 5", + "dose": "", + "schedule": { + "due": { + "reference": "prerequisite", + "prerequisite": "ITN 4", + "offset": "+12m" + }, + "expiry": { + "reference": "dob", + "offset": "+5y" + } + } + } + ] + } +] \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/services.json b/opensrp-bidan/src/main/assets/services.json new file mode 100644 index 0000000..ba75344 --- /dev/null +++ b/opensrp-bidan/src/main/assets/services.json @@ -0,0 +1,17 @@ +[ + { + "name": "Recurring Services", + "id": "Recurring_Services", + "services": [ + { + "type": "Vit A" + }, + { + "type": "Deworming" + }, + { + "type": "ITN" + } + ] + } +] \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/special_vaccines.json b/opensrp-bidan/src/main/assets/special_vaccines.json new file mode 100644 index 0000000..cec30d4 --- /dev/null +++ b/opensrp-bidan/src/main/assets/special_vaccines.json @@ -0,0 +1,32 @@ +[ + { + "name": "BCG 2", + "type": "BCG", + "openmrs_date": { + "parent_entity": "886AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "entity": "concept", + "entity_id": "1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "openmrs_calculate": { + "parent_entity": "886AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "entity": "concept", + "entity_id": "1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "calculation": 2 + }, + "schedule": { + "due": [ + { + "reference": "prerequisite", + "prerequisite": "BCG", + "offset": "+84d" + } + ], + "expiry": [ + { + "reference": "dob", + "offset": "+1y" + } + ] + } + } +] \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/sync_filters.json b/opensrp-bidan/src/main/assets/sync_filters.json index 08a9158..c7dddcd 100644 --- a/opensrp-bidan/src/main/assets/sync_filters.json +++ b/opensrp-bidan/src/main/assets/sync_filters.json @@ -1,8 +1,8 @@ { "_id": "_design/cloudantFilter", "filters": { - "locationId": "function(doc, req){ if(doc.type == \"Client\" || doc.type == \"Multimedia\" ){ return true; } if ( doc.locationId != req.query.locationId ){ return false; } return true; }", - "providerId": "function(doc, req){ if(doc.type == \"Client\" || doc.type == \"Multimedia\" ){ return true; } if ( doc.providerId == req.query.providerId ){ return true; } return false; }", - "team": "function(doc, req){ if(doc.type == \"Client\" || doc.type == \"Multimedia\" ){ return true; } if(req.query.team){ if(req.query.team.split(',').indexOf(doc.providerId) >= 0){ return true; } } return false; }" + "locationId": "function(doc, req){ if(doc.type == \"Client\"){ return true; } if ( doc.locationId != req.query.locationId ){ return false; } return true; }", + "providerId": "function(doc, req){ if(doc.type == \"Client\"){ return true; } if ( doc.providerId == req.query.providerId ){ return true; } return false; }", + "team": "function(doc, req){ if(doc.type == \"Client\"){ return true; } if(req.query.team){ if(req.query.team.split(',').indexOf(doc.providerId) >= 0){ return true; } } return false; }" } } \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/vaccine_type.json b/opensrp-bidan/src/main/assets/vaccine_type.json new file mode 100644 index 0000000..c6e1c62 --- /dev/null +++ b/opensrp-bidan/src/main/assets/vaccine_type.json @@ -0,0 +1,44 @@ +[ + { + "doses": "20", + "name": "BCG", + "openmrs_parent_entity_id": "", + "openmrs_date_concept_id": "", + "openmrs_dose_concept_id": "" + }, + { + "doses": "20", + "name": "OPV", + "openmrs_parent_entity_id": "", + "openmrs_date_concept_id": "", + "openmrs_dose_concept_id": "" + }, + { + "doses": "1", + "name": "Penta", + "openmrs_parent_entity_id": "", + "openmrs_date_concept_id": "", + "openmrs_dose_concept_id": "" + }, + { + "doses": "2", + "name": "PCV", + "openmrs_parent_entity_id": "", + "openmrs_date_concept_id": "", + "openmrs_dose_concept_id": "" + }, + { + "doses": "1", + "name": "Rota", + "openmrs_parent_entity_id": "", + "openmrs_date_concept_id": "", + "openmrs_dose_concept_id": "" + }, + { + "doses": "10", + "name": "M/MR", + "openmrs_parent_entity_id": "", + "openmrs_date_concept_id": "", + "openmrs_dose_concept_id": "" + } +] \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/vaccines.json b/opensrp-bidan/src/main/assets/vaccines.json new file mode 100644 index 0000000..fa526f9 --- /dev/null +++ b/opensrp-bidan/src/main/assets/vaccines.json @@ -0,0 +1,597 @@ +[ + { + "name": "Birth", + "id": "Birth", + "days_after_birth_due": 0, + "vaccines": [ + { + "name": "OPV 0", + "type": "OPV", + "openmrs_date": { + "parent_entity": "783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "entity": "concept", + "entity_id": "1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "openmrs_calculate": { + "parent_entity": "783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "entity": "concept", + "entity_id": "1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "calculation": 0 + }, + "schedule": { + "due": [ + { + "reference": "dob", + "offset": "+0d", + "window": "+10d" + } + ], + "expiry": [ + { + "reference": "dob", + "offset": "+13d" + } + ], + "conditions": [ + { + "type": "not_given", + "vaccine": "OPV 4" + } + ] + } + }, + { + "name": "BCG", + "type": "BCG", + "openmrs_date": { + "parent_entity": "886AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "entity": "concept", + "entity_id": "1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "openmrs_calculate": { + "parent_entity": "886AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "entity": "concept", + "entity_id": "1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "calculation": 1 + }, + "schedule": { + "due": [ + { + "reference": "dob", + "offset": "+0d", + "window": "+10d" + } + ], + "expiry": [ + { + "reference": "dob", + "offset": "+1y" + } + ] + } + } + ] + }, + { + "name": "6 Weeks", + "id": "Six_Wks", + "days_after_birth_due": 42, + "vaccines": [ + { + "name": "OPV 1", + "type": "OPV", + "openmrs_date": { + "parent_entity": "783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "entity": "concept", + "entity_id": "1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "openmrs_calculate": { + "parent_entity": "783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "entity": "concept", + "entity_id": "1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "calculation": 1 + }, + "schedule": { + "due": [ + { + "reference": "dob", + "offset": "+42d", + "window": "+10d" + } + ], + "expiry": [ + { + "reference": "dob", + "offset": "+4y,10m" + } + ] + } + }, + { + "name": "Penta 1", + "type": "Penta", + "openmrs_date": { + "parent_entity": "1685AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "entity": "concept", + "entity_id": "1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "openmrs_calculate": { + "parent_entity": "1685AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "entity": "concept", + "entity_id": "1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "calculation": 1 + }, + "schedule": { + "due": [ + { + "reference": "dob", + "offset": "+42d", + "window": "+10d" + } + ], + "expiry": [ + { + "reference": "dob", + "offset": "+4y,10m" + } + ] + } + }, + { + "name": "PCV 1", + "type": "PCV", + "openmrs_date": { + "parent_entity": "162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "entity": "concept", + "entity_id": "1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "openmrs_calculate": { + "parent_entity": "162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "entity": "concept", + "entity_id": "1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "calculation": 1 + }, + "schedule": { + "due": [ + { + "reference": "dob", + "offset": "+42d", + "window": "+10d" + } + ], + "expiry": [ + { + "reference": "dob", + "offset": "+4y,10m" + } + ] + } + }, + { + "name": "Rota 1", + "type": "Rota", + "openmrs_date": { + "parent_entity": "159698AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "entity": "concept", + "entity_id": "1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "openmrs_calculate": { + "parent_entity": "159698AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "entity": "concept", + "entity_id": "1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "calculation": 1 + }, + "schedule": { + "due": [ + { + "reference": "dob", + "offset": "+42d", + "window": "+10d" + } + ], + "expiry": [ + { + "reference": "dob", + "offset": "+7m" + } + ] + } + } + ] + }, + { + "name": "10 Weeks", + "id": "Ten_Wks", + "days_after_birth_due": 70, + "vaccines": [ + { + "name": "OPV 2", + "type": "OPV", + "openmrs_date": { + "parent_entity": "783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "entity": "concept", + "entity_id": "1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "openmrs_calculate": { + "parent_entity": "783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "entity": "concept", + "entity_id": "1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "calculation": 2 + }, + "schedule": { + "due": [ + { + "reference": "prerequisite", + "prerequisite": "OPV 1", + "offset": "+28d", + "window": "+10d" + } + ], + "expiry": [ + { + "reference": "dob", + "offset": "+4y,11m" + } + ] + } + }, + { + "name": "Penta 2", + "type": "Penta", + "openmrs_date": { + "parent_entity": "1685AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "entity": "concept", + "entity_id": "1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "openmrs_calculate": { + "parent_entity": "1685AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "entity": "concept", + "entity_id": "1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "calculation": 2 + }, + "schedule": { + "due": [ + { + "reference": "prerequisite", + "prerequisite": "Penta 1", + "offset": "+28d", + "window": "+10d" + } + ], + "expiry": [ + { + "reference": "dob", + "offset": "+4y,11m" + } + ] + } + }, + { + "name": "PCV 2", + "type": "PCV", + "openmrs_date": { + "parent_entity": "162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "entity": "concept", + "entity_id": "1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "openmrs_calculate": { + "parent_entity": "162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "entity": "concept", + "entity_id": "1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "calculation": 2 + }, + "schedule": { + "due": [ + { + "reference": "prerequisite", + "prerequisite": "PCV 1", + "offset": "+28d", + "window": "+10d" + } + ], + "expiry": [ + { + "reference": "dob", + "offset": "+4y,11m" + } + ] + } + }, + { + "name": "Rota 2", + "type": "Rota", + "openmrs_date": { + "parent_entity": "159698AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "entity": "concept", + "entity_id": "1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "openmrs_calculate": { + "parent_entity": "159698AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "entity": "concept", + "entity_id": "1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "calculation": 2 + }, + "schedule": { + "due": [ + { + "reference": "prerequisite", + "prerequisite": "Rota 1", + "offset": "+28d", + "window": "+10d" + } + ], + "expiry": [ + { + "reference": "dob", + "offset": "+8m" + } + ] + } + } + ] + }, + { + "name": "14 Weeks", + "id": "Fourteen_Weeks", + "days_after_birth_due": 98, + "vaccines": [ + { + "name": "OPV 3", + "type": "OPV", + "openmrs_date": { + "parent_entity": "783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "entity": "concept", + "entity_id": "1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "openmrs_calculate": { + "parent_entity": "783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "entity": "concept", + "entity_id": "1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "calculation": 3 + }, + "schedule": { + "due": [ + { + "reference": "prerequisite", + "prerequisite": "OPV 2", + "offset": "+28d", + "window": "+10d" + } + ], + "expiry": [ + { + "reference": "dob", + "offset": "+5y" + } + ] + } + }, + { + "name": "Penta 3", + "type": "Penta", + "openmrs_date": { + "parent_entity": "1685AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "entity": "concept", + "entity_id": "1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "openmrs_calculate": { + "parent_entity": "1685AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "entity": "concept", + "entity_id": "1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "calculation": 3 + }, + "schedule": { + "due": [ + { + "reference": "prerequisite", + "prerequisite": "Penta 2", + "offset": "+28d", + "window": "+10d" + } + ], + "expiry": [ + { + "reference": "dob", + "offset": "+5y" + } + ] + } + }, + { + "name": "PCV 3", + "type": "PCV", + "openmrs_date": { + "parent_entity": "162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "entity": "concept", + "entity_id": "1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "openmrs_calculate": { + "parent_entity": "162342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "entity": "concept", + "entity_id": "1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "calculation": 3 + }, + "schedule": { + "due": [ + { + "reference": "prerequisite", + "prerequisite": "PCV 2", + "offset": "+28d", + "window": "+10d" + } + ], + "expiry": [ + { + "reference": "dob", + "offset": "+5y" + } + ] + } + } + ] + }, + { + "name": "9 Months", + "id": "Nine_Months", + "days_after_birth_due": 274, + "vaccines": [ + { + "name": "Measles 1 / MR 1", + "type": "Measles / MR", + "vaccine_separator": " / ", + "openmrs_date": { + "parent_entity": "36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/162586AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "entity": "concept", + "entity_id": "1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "openmrs_calculate": { + "parent_entity": "36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "entity": "concept", + "entity_id": "1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "calculation": 1 + }, + "schedule": { + "Measles 1": { + "due": [ + { + "reference": "dob", + "offset": "+9m", + "window": "+10d" + } + ], + "conditions": [ + { + "type": "not_given", + "vaccine": "MR 1" + } + ] + }, + "MR 1": { + "due": [ + { + "reference": "dob", + "offset": "+9m", + "window": "+10d" + } + ], + "conditions": [ + { + "type": "not_given", + "vaccine": "Measles 1" + } + ] + } + } + }, + { + "name": "OPV 4", + "type": "OPV", + "openmrs_date": { + "parent_entity": "783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "entity": "concept", + "entity_id": "1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "openmrs_calculate": { + "parent_entity": "783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "entity": "concept", + "entity_id": "1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "calculation": 4 + }, + "schedule": { + "due": [ + { + "reference": "dob", + "offset": "+9m", + "window": "+10d" + } + ], + "expiry": [ + { + "reference": "dob", + "offset": "+5y" + } + ], + "conditions": [ + { + "type": "not_given", + "vaccine": "OPV 0" + }, + { + "type": "given", + "vaccine": "OPV 3", + "comparison": "at_least", + "value": "-28d" + } + ] + } + } + ] + }, + { + "name": "18 Months", + "id": "Eighteen_Months", + "days_after_birth_due": 548, + "vaccines": [ + { + "name": "Measles 2 / MR 2", + "type": "Measles / MR", + "vaccine_separator": " / ", + "openmrs_date": { + "parent_entity": "36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/162586AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "entity": "concept", + "entity_id": "1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "openmrs_calculate": { + "parent_entity": "36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "entity": "concept", + "entity_id": "1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "calculation": 2 + }, + "schedule": { + "Measles 2": { + "due": [ + { + "reference": "prerequisite", + "prerequisite": "Measles 1", + "offset": "+9m", + "window": "+10d" + }, + { + "reference": "prerequisite", + "prerequisite": "MR 1", + "offset": "+9m" + } + ], + "conditions": [ + { + "type": "not_given", + "vaccine": "MR 2" + } + ] + }, + "MR 2": { + "due": [ + { + "reference": "prerequisite", + "prerequisite": "MR 1", + "offset": "+9m", + "window": "+10d" + }, + { + "reference": "prerequisite", + "prerequisite": "Measles 1", + "offset": "+9m" + } + ], + "conditions": [ + { + "type": "not_given", + "vaccine": "Measles 2" + } + ] + } + } + } + ] + } +] \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/blood_test/form.json b/opensrp-bidan/src/main/assets/www/form/blood_test/form.json deleted file mode 100644 index 519e9dd..0000000 --- a/opensrp-bidan/src/main/assets/www/form/blood_test/form.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"Blood_Test","title":"Blood Test","sms_keyword":"blood_test","default_language":"Bahasa","instance":{"encounter_type":"Blood Test"},"version":"201705080820","id_string":"blood_test","type":"survey","children":[{"instance":{"openmrs_entity_id":"encounter_start","openmrs_entity":"encounter"},"type":"start","name":"start"},{"instance":{"openmrs_entity_id":"encounter_date","openmrs_entity":"encounter"},"type":"today","name":"today"},{"type":"deviceid","name":"deviceid"},{"type":"simserial","name":"simserial"},{"type":"phonenumber","name":"phonenumber"},{"type":"hidden","name":"Province"},{"type":"hidden","name":"District","hint":{"Bahasa":"Inject from app"}},{"type":"hidden","name":"Sub-district","hint":{"Bahasa":"Inject from app"}},{"type":"hidden","name":"Village","hint":{"Bahasa":"Inject from app"}},{"type":"hidden","name":"Sub-village","hint":{"Bahasa":"Inject from app"}},{"type":"note","name":"generated_note_name_13","label":{"Bahasa":"Desa : ${Village}"}},{"type":"note","name":"generated_note_name_14","label":{"Bahasa":"Dusun : ${Sub-village}"}},{"bind":{"calculate":"${Village}"},"type":"hidden","name":"existing_location","instance":{"openmrs_entity_id":"location_id","openmrs_entity":"encounter"}},{"bind":{"calculate":"${Province}"},"type":"calculate","name":"provinsi","instance":{"openmrs_entity_parent":"usual_residence","openmrs_entity_id":"stateProvince","openmrs_entity":"person_address"}},{"bind":{"calculate":"${District}"},"type":"calculate","name":"kabupaten","instance":{"openmrs_entity_parent":"usual_residence","openmrs_entity_id":"countyDistrict","openmrs_entity":"person_address"}},{"bind":{"calculate":"${Village}"},"type":"calculate","name":"desa","instance":{"openmrs_entity_parent":"usual_residence","openmrs_entity_id":"cityVillage","openmrs_entity":"person_address"}},{"bind":{"calculate":"${Sub-village}"},"type":"calculate","name":"dusun","instance":{"openmrs_entity_parent":"usual_residence","openmrs_entity_id":"address1","openmrs_entity":"person_address"}},{"bind":{"calculate":"${Sub-district}"},"type":"calculate","name":"kecamatan","instance":{"openmrs_entity_parent":"usual_residence","openmrs_entity_id":"address2","openmrs_entity":"person_address"}},{"name":"td_sistolik","hint":{"Bahasa":"Menunjukkan tekanan darah (Sistolik) Ibu pada saat kunjungan ANC (mmHg)","English":"Indicating mother's blood pressure (systolic) on ANC check-up"},"bind":{"jr:constraintMsg":{"Bahasa":"Nilai yang dimasukkan tidak memenuhi syarat, mohon periksa kembali","English":"The entered value doesn't meet the criteria, please check it again"},"constraint":".>0 and .<1000"},"label":{"Bahasa":"TD (Sistolik)","English":"Blood pressure (sistolic)"},"instance":{"openmrs_entity_id":"5085AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"integer"},{"name":"td_diastolik","hint":{"Bahasa":"Menunjukkan tekanan darah (Diastolik) Ibu pada saat kunjungan ANC (mmHg)","English":"Indicating mother's blood pressure (dyastolic) on ANC check-up"},"bind":{"jr:constraintMsg":{"Bahasa":"Nilai yang dimasukkan tidak memenuhi syarat, mohon periksa kembali","English":"The entered value doesn't meet the criteria, please check it again"},"constraint":".>0 and .<1000"},"label":{"Bahasa":"TD (Diastolik)","English":"Blood pressure (Diastolic)"},"instance":{"openmrs_entity_id":"5086AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"integer"},{"instance":{"openmrs_entity_id":"5087AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"integer","name":"pulse","label":{"Bahasa":"Pulse","English":"Pulse"}},{"instance":{"openmrs_entity_parent":"5087AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_id":"160632AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"integer","name":"ahr","label":{"Bahasa":"Average Heart Rate","English":"Average Heart Rate"}},{"instance":{"openmrs_entity_id":"encounter_end","openmrs_entity":"encounter"},"type":"end","name":"end"},{"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-bidan/src/main/assets/www/form/blood_test/form.xml b/opensrp-bidan/src/main/assets/www/form/blood_test/form.xml deleted file mode 100644 index 2f42e46..0000000 --- a/opensrp-bidan/src/main/assets/www/form/blood_test/form.xml +++ /dev/null @@ -1,97 +0,0 @@ -
\n - - -

Blood Test

- - - - - - - \n - - -
\ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/blood_test/form_definition.json b/opensrp-bidan/src/main/assets/www/form/blood_test/form_definition.json deleted file mode 100644 index 083c9d4..0000000 --- a/opensrp-bidan/src/main/assets/www/form/blood_test/form_definition.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "form_data_definition_version": "1", - "form": { - "bind_type": "ibu", - "ec_bind_type": "ec_ibu", - "default_bind_path": "/model/instance/Blood_Test", - "fields": [ - { - "name": "id", - "shouldLoadValue": true - }, - { - "name": "existing_location", - "bind": "/model/instance/Blood_Test/existing_location", - "shouldLoadValue": true - }, - { - "name": "Village", - "bind": "/model/instance/Blood_Test/Village", - "shouldLoadValue": true - }, - { - "name": "Province", - "bind": "/model/instance/Blood_Test/Province", - "shouldLoadValue": true - }, - { - "name": "Sub-district", - "bind": "/model/instance/Blood_Test/Sub-district", - "shouldLoadValue": true - }, - { - "name": "District", - "bind": "/model/instance/Blood_Test/District", - "shouldLoadValue": true - }, - { - "name": "Sub-village", - "bind": "/model/instance/Blood_Test/Sub-village", - "shouldLoadValue": true - }, - { - "name": "tandaVitalTDSistolik", - "bind": "/model/instance/Blood_Test/td_sistolik" - }, - { - "name": "tandaVitalTDDiastolik", - "bind": "/model/instance/Blood_Test/td_diastolik" - }, - { - "name": "pulse", - "bind": "/model/instance/Blood_Test/pulse" - }, - { - "name": "ahr", - "bind": "/model/instance/Blood_Test/ahr" - }, - { - "name": "submissionDate", - "bind": "/model/instance/Blood_Test/today" - } - ] - } -} \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/blood_test/model.xml b/opensrp-bidan/src/main/assets/www/form/blood_test/model.xml deleted file mode 100644 index b559871..0000000 --- a/opensrp-bidan/src/main/assets/www/form/blood_test/model.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/entity_relationship.json b/opensrp-bidan/src/main/assets/www/form/entity_relationship.json deleted file mode 100644 index 402cb1b..0000000 --- a/opensrp-bidan/src/main/assets/www/form/entity_relationship.json +++ /dev/null @@ -1,26 +0,0 @@ -[ - { - "parent":"bidan", - "child":"ibu", - "field":"ibu_ibu", - "kind":"one_to_many", - "from":"bidan.id", - "to":"ibu.relationalid" - }, - { - "parent":"kartu_ibu", - "child": "ibu", - "field":"istri", - "kind":"one_to_one", - "from":"kartu_ibu.id", - "to":"ibu.relationalid" - }, - { - "parent":"ibu", - "child":"anak", - "field":"anak_anak", - "kind":"one_to_many", - "from":"ibu.id", - "to":"anak.relationalid" - } -] \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/feedback_bidan/form.xml b/opensrp-bidan/src/main/assets/www/form/feedback_bidan/form.xml deleted file mode 100644 index c19dadc..0000000 --- a/opensrp-bidan/src/main/assets/www/form/feedback_bidan/form.xml +++ /dev/null @@ -1,750 +0,0 @@ - -
- -