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 - - Bahasa - English - - - Desa : - - - - - - - - Dusun : - - - - - - - - TD (Sistolik) - Blood pressure (sistolic) - Menunjukkan tekanan darah (Sistolik) Ibu pada saat kunjungan ANC (mmHg) - Indicating mother's blood pressure (systolic) on ANC check-up - - Nilai yang dimasukkan tidak memenuhi syarat, mohon periksa kembali - The entered value doesn't meet the criteria, please check it again - - - TD (Diastolik) - Blood pressure (Diastolic) - Menunjukkan tekanan darah (Diastolik) Ibu pada saat kunjungan ANC (mmHg) - Indicating mother's blood pressure (dyastolic) on ANC check-up - - Nilai yang dimasukkan tidak memenuhi syarat, mohon periksa kembali - The entered value doesn't meet the criteria, please check it again - - - Pulse - Pulse - - - - Average Heart Rate - Average Heart Rate - - \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 @@ - - - - - Coaching Feedback Form - - Username responden : - * - - - - Isi dengan nama responden: - * - - - - Masukkan tanggal coaching: - - - - - - - Masalah yang anda hadapi - Centang yang menurut anda sesuai dengan masalah yang dihadapi - - - - - Masalah koneksi internet - - - - Masalah baterai - - - - Masalah penggunaan aplikasi - - - - Masalah penggunaan langsung saat kunjungan - - - - Masalah aplikasi error - - - - Masalah Kartu Ibu - - - - Masalah Kohort KB - - - - Masalah Register ANC - - - - Masalah Register PNC - - - - Masalah Kohort Anak - - - - - - - - - Centang isu-isu seputar koneksi internet yang dihadapi oleh Bidan: - - - - - Koneksi internet di polindes/puskesmas lemah - - - - Koneksi internet di posyandu lemah - - - - Kuota internet telah habis - - - - Tidak dapat log in - - - - Masalah lainnya - - - - - - Tuliskan masalah koneksi internet di polindes/puskesmas: - - - - Tuliskan masalah koneksi internet di posyandu: - - - - Tuliskan masalah kuota internet yang telah habis: - (Misal: hari terakhir bisa online, sejak kapan internet tidak bisa diakses, dsb.) - - - - Tuliskan masalah tidak dapat log in: - (Misal: kapan bidan tidak dapat log in ke aplikasi) - - - - Tuliskan masalah lainnya seputar koneksi internet: - - - - Baterai - - - - - - Centang isu-isu seputar baterai yang dihadapi oleh Bidan: - - - - - Pengisian baterai lama - - - - Baterai cepat habis - - - - Tablet tiba-tiba mati - - - - Pengisi daya rusak/tidak berfungsi - - - - Masalah lainnya - - - - - - Tuliskan masalah pengisian baterai yang lama: - (Misal: butuh berapa jam agar baterai terisi penuh) - - - - Tuliskan masalah baterai yang cepat habis: - (Misal: baterai habis setelah berapa jam pemakaian) - - - - Tuliskan masalah tablet yang tiba-tiba mati: - (Misal: kapan tablet tiba-tiba mati dengan sendirinya, apa pemicunya, dsb.) - - - - Tuliskan masalah pengisi daya yang tidak berfungsi: - (Misal: penjelasan lebih spesifik, apakah pengisi daya bidan diganti) - - - - Tuliskan masalah lainnya seputar baterai: - - - - Pengunaan aplikasi - - - - - - Centang isu-isu seputar penggunaan aplikasi yang dihadapi oleh Bidan: - - - - - Waktu loading form lama - - - - Waktu menyimpan form lama - - - - Respon layar sentuh lama - - - - Masalah lainnya - - - - - - Tuliskan masalah waktu loading form yang lama: - (Misal: nama form, perkiraan waktu yg dibutuhkan untuk loading, dsb.) - - - - Tuliskan masalah waktu menyimpan form yang lama: - (Misal: nama form, perkiraan waktu yg dibutuhkan untuk loading, dsb.) - - - - Tuliskan masalah respon layar sentuh yang lama: - (Misal: bagian aplikasi yang tidak responsif atau butuh waktu lama untuk merespon) - - - - Tuliskan masalah lainnya seputar penggunaan aplikasi: - - - - Penggunaan langsung saat kunjungan - - - - - - Jika ada, centang isu-isu yang dihadapi oleh bidan dalam penggunaan aplikasi langsung saat berinteraksi dengan pasien: - - - - - Rumit/ribet - - - - Makan waktu lama - - - - Pasien komplain - - - - Terlalu banyak pasien - - - - Belum pernah menggunakan langsung saat kunjungan - - - - Masalah lainnya - - - - - - Tuliskan masalah seputar penggunaan langsung saat kunjungan lainnya: - - - - Aplikasi error - - - - - - Centang isu-isu seputar aplikasi error yang dihadapi oleh bidan: - - - - - Aplikasi menutup sendiri - - - - Masalah sinkronisasi data - - - - Masalah lainnya - - - - - - Tuliskan masalah aplikasi yang menutup sendiri: - (Misal: apa yang memicu aplikasi tiba-tiba menutup sendiri) - - - - Tuliskan masalah sinkronisasi data: - - - - Tuliskan masalah lainnya seputar aplikasi error: - - - - - - - Masalah di kartu IBU : - - - - - Pilihan variabel yang ada tidak sesuai - - - - Kalkulasi variabel tidak sesuai - - - - Data variabel yang dimasukkan hilang - - - - Rentang data variabel tidak sesuai - - - - Data yang ditampilkan tidak sesuai dengan yang dimasukkan - - - - Tidak dapat memasukkan data tertentu - - - - Tidak dapat mengedit data - - - - Masalah lainnya - - - - - - Tuliskan masalah pilihan variabel yang tidak sesuai: - (Misal: ada nama dusun yang belum ada, dsb.) - - - - Tuliskan masalah kalkulasi variabel yang tidak sesuai: - (Misal: penghitungan usia klinis, trimester, dsb.) - - - - Tuliskan masalah data variabel yang sering hilang: - (Misal: data sudah diketik tapi hilang saat pindah ke pertanyaan lain, data sudah dimasukkan dan disimpan tapi saat akan diedit data tidak ada, dsb.) - - - - Tuliskan masalah rentang data variabel yang tidak sesuai: - (Misal: angka tertentu tidak bisa dimasukkan, tidak bisa memasukkan angka desimal, dsb.) - - - - Tuliskan masalah tampilan data yang tidak sesuai: - (Misal: data yang sudah dimasukkan tidak terlihat di dashboard, angka yang muncul berbeda dari yang dimasukkan, dsb.) - - - - Tuliskan masalah data variabel tertentu yang tidak bisa dimasukkan: - - - - Tuliskan variabel yang tidak bisa diedit: - - - - Tuliskan masalah lainnya di form ini: - - - - - - - Masalah di kohort KB : - - - - - Pilihan variabel yang ada tidak sesuai - - - - Kalkulasi variabel tidak sesuai - - - - Data variabel yang dimasukkan hilang - - - - Rentang data variabel tidak sesuai - - - - Data yang ditampilkan tidak sesuai dengan yang dimasukkan - - - - Tidak dapat memasukkan data tertentu - - - - Tidak dapat mengedit data - - - - Masalah lainnya - - - - - - Tuliskan masalah pilihan variabel yang tidak sesuai: - (Misal: ada nama dusun yang belum ada, dsb.) - - - - Tuliskan masalah kalkulasi variabel yang tidak sesuai: - (Misal: penghitungan usia klinis, trimester, dsb.) - - - - Tuliskan masalah data variabel yang sering hilang: - (Misal: data sudah diketik tapi hilang saat pindah ke pertanyaan lain, data sudah dimasukkan dan disimpan tapi saat akan diedit data tidak ada, dsb.) - - - - Tuliskan masalah rentang data variabel yang tidak sesuai: - (Misal: angka tertentu tidak bisa dimasukkan, tidak bisa memasukkan angka desimal, dsb.) - - - - Tuliskan masalah tampilan data yang tidak sesuai: - (Misal: data yang sudah dimasukkan tidak terlihat di dashboard, angka yang muncul berbeda dari yang dimasukkan, dsb.) - - - - Tuliskan masalah data variabel tertentu yang tidak bisa dimasukkan: - - - - Tuliskan variabel yang tidak bisa diedit: - - - - Tuliskan masalah lainnya di form ini: - - - - - - - Masalah di register ANC : - - - - - Pilihan variabel yang ada tidak sesuai - - - - Kalkulasi variabel tidak sesuai - - - - Data variabel yang dimasukkan hilang - - - - Rentang data variabel tidak sesuai - - - - Data yang ditampilkan tidak sesuai dengan yang dimasukkan - - - - Tidak dapat memasukkan data tertentu - - - - Tidak dapat mengedit data - - - - Masalah lainnya - - - - - - Tuliskan masalah pilihan variabel yang tidak sesuai: - (Misal: ada nama dusun yang belum ada, dsb.) - - - - Tuliskan masalah kalkulasi variabel yang tidak sesuai: - (Misal: penghitungan usia klinis, trimester, dsb.) - - - - Tuliskan masalah data variabel yang sering hilang: - (Misal: data sudah diketik tapi hilang saat pindah ke pertanyaan lain, data sudah dimasukkan dan disimpan tapi saat akan diedit data tidak ada, dsb.) - - - - Tuliskan masalah rentang data variabel yang tidak sesuai: - (Misal: angka tertentu tidak bisa dimasukkan, tidak bisa memasukkan angka desimal, dsb.) - - - - Tuliskan masalah tampilan data yang tidak sesuai: - (Misal: data yang sudah dimasukkan tidak terlihat di dashboard, angka yang muncul berbeda dari yang dimasukkan, dsb.) - - - - Tuliskan masalah data variabel tertentu yang tidak bisa dimasukkan: - - - - Tuliskan variabel yang tidak bisa diedit: - - - - Tuliskan masalah lainnya di form ini: - - - - - - Masalah di register PNC : - - - - - Pilihan variabel yang ada tidak sesuai - - - - Kalkulasi variabel tidak sesuai - - - - Data variabel yang dimasukkan hilang - - - - Rentang data variabel tidak sesuai - - - - Data yang ditampilkan tidak sesuai dengan yang dimasukkan - - - - Tidak dapat memasukkan data tertentu - - - - Tidak dapat mengedit data - - - - Masalah lainnya - - - - - - Tuliskan masalah pilihan variabel yang tidak sesuai: - (Misal: ada nama dusun yang belum ada, dsb.) - - - - Tuliskan masalah kalkulasi variabel yang tidak sesuai: - (Misal: penghitungan usia klinis, trimester, dsb.) - - - - Tuliskan masalah data variabel yang sering hilang: - (Misal: data sudah diketik tapi hilang saat pindah ke pertanyaan lain, data sudah dimasukkan dan disimpan tapi saat akan diedit data tidak ada, dsb.) - - - - Tuliskan masalah rentang data variabel yang tidak sesuai: - (Misal: angka tertentu tidak bisa dimasukkan, tidak bisa memasukkan angka desimal, dsb.) - - - - Tuliskan masalah tampilan data yang tidak sesuai: - (Misal: data yang sudah dimasukkan tidak terlihat di dashboard, angka yang muncul berbeda dari yang dimasukkan, dsb.) - - - - Tuliskan masalah data variabel tertentu yang tidak bisa dimasukkan: - - - - Tuliskan variabel yang tidak bisa diedit: - - - - Tuliskan masalah lainnya di form ini: - - - - - - Masalah di kohort anak: - - - - - Pilihan variabel yang ada tidak sesuai - - - - Kalkulasi variabel tidak sesuai - - - - Data variabel yang dimasukkan hilang - - - - Rentang data variabel tidak sesuai - - - - Data yang ditampilkan tidak sesuai dengan yang dimasukkan - - - - Tidak dapat memasukkan data tertentu - - - - Tidak dapat mengedit data - - - - Masalah lainnya - - - - - - Pilihan variabel yang ada tidak sesuai - (Misal: ada nama dusun yang belum ada, dsb.) - - - - Kalkulasi variabel tidak sesuai - (Misal: penghitungan usia klinis, trimester, dsb.) - - - - Data variabel yang dimasukkan hilang - (Misal: data sudah diketik tapi hilang saat pindah ke pertanyaan lain, data sudah dimasukkan dan disimpan tapi saat akan diedit data tidak ada, dsb.) - - - - Tuliskan masalah rentang data variabel yang tidak sesuai: - (Misal: angka tertentu tidak bisa dimasukkan, tidak bisa memasukkan angka desimal, dsb.) - - - - Data yang ditampilkan tidak sesuai dengan yang dimasukkan - (Misal: data yang sudah dimasukkan tidak terlihat di dashboard, angka yang muncul berbeda dari yang dimasukkan, dsb.) - - - - Tidak dapat memasukkan data tertentu - - - - Tidak dapat mengedit data - - - - Masalah lainnya - - - - - - Apakah responden memiliki pendapat lainnya untuk meningkatkan Aplikasi Bidan: - - - - - ya - - - - tidak - - - - - - Tuliskan pendapat dari bidan di sini: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/opensrp-bidan/src/main/assets/www/form/feedback_bidan/form_definition.json b/opensrp-bidan/src/main/assets/www/form/feedback_bidan/form_definition.json deleted file mode 100644 index bc801da..0000000 --- a/opensrp-bidan/src/main/assets/www/form/feedback_bidan/form_definition.json +++ /dev/null @@ -1,357 +0,0 @@ -{ - "form_data_definition_version": "1", - "form": { - "bind_type": "bidan", - "default_bind_path": "/model/instance/data_entry_feedback_form", - "fields": [ - { - "name": "id", - "shouldLoadValue": true - }, - { - "name": "bidanId", - "bind": "/model/instance/data_entry_feedback_form/bidanId" - }, - { - "name": "username", - "bind": "/model/instance/data_entry_feedback_form/username" - }, - { - "name": "respondent_name", - "bind": "/model/instance/data_entry_feedback_form/respondent_name" - }, - { - "name": "coaching_date", - "bind": "/model/instance/data_entry_feedback_form/coaching_date" - }, - { - "name": "Koneksi_internet", - "bind": "/model/instance/data_entry_feedback_form/Koneksi_internet" - }, - { - "name": "masalah", - "bind": "/model/instance/data_entry_feedback_form/masalah" - }, - { - "name": "Masalah_koneksi_internet", - "bind": "/model/instance/data_entry_feedback_form/Masalah_koneksi_internet" - }, - { - "name": "Koneksi_internet_di_polindes_puskesmas_lemah", - "bind": "/model/instance/data_entry_feedback_form/Koneksi_internet_di_polindes_puskesmas_lemah" - }, - { - "name": "Koneksi_internet_di_posyandu_lemah", - "bind": "/model/instance/data_entry_feedback_form/Koneksi_internet_di_posyandu_lemah" - }, - { - "name": "Kuota_internet_telah_habis", - "bind": "/model/instance/data_entry_feedback_form/Kuota_internet_telah_habis" - }, - { - "name": "Tidak_dapat_log_in", - "bind": "/model/instance/data_entry_feedback_form/Tidak_dapat_log_in" - }, - { - "name": "Masalah_lainnya_koneksi_internet", - "bind": "/model/instance/data_entry_feedback_form/Masalah_lainnya_koneksi_internet" - }, - { - "name": "Baterai", - "bind": "/model/instance/data_entry_feedback_form/Baterai" - }, - { - "name": "Masalah_baterai", - "bind": "/model/instance/data_entry_feedback_form/Masalah_baterai" - }, - { - "name": "Pengisian_baterai_lama", - "bind": "/model/instance/data_entry_feedback_form/Pengisian_baterai_lama" - }, - { - "name": "Baterai_cepat_habis", - "bind": "/model/instance/data_entry_feedback_form/Baterai_cepat_habis" - }, - { - "name": "Tablet_tiba-tiba_mati", - "bind": "/model/instance/data_entry_feedback_form/Tablet_tiba-tiba_mati" - }, - { - "name": "Pengisi_daya_rusak_tidak_berfungsi", - "bind": "/model/instance/data_entry_feedback_form/Pengisi_daya_rusak_tidak_berfungsi" - }, - { - "name": "Masalah_lainnya_baterai", - "bind": "/model/instance/data_entry_feedback_form/Masalah_lainnya_baterai" - }, - { - "name": "Pengunaan_aplikasi", - "bind": "/model/instance/data_entry_feedback_form/Pengunaan_aplikasi" - }, - { - "name": "Masalah_penggunaan_aplikasi", - "bind": "/model/instance/data_entry_feedback_form/Masalah_penggunaan_aplikasi" - }, - { - "name": "Waktu_loading_form_lama", - "bind": "/model/instance/data_entry_feedback_form/Waktu_loading_form_lama" - }, - { - "name": "Waktu_menyimpan_form_lama", - "bind": "/model/instance/data_entry_feedback_form/Waktu_menyimpan_form_lama" - }, - { - "name": "Respon_layar_sentuh_lama", - "bind": "/model/instance/data_entry_feedback_form/Respon_layar_sentuh_lama" - }, - { - "name": "Masalah_lainnya_penggunaan_aplikasi", - "bind": "/model/instance/data_entry_feedback_form/Masalah_lainnya_penggunaan_aplikasi" - }, - { - "name": "Penggunaan_langsung_saat_kunjungan", - "bind": "/model/instance/data_entry_feedback_form/Penggunaan_langsung_saat_kunjungan" - }, - { - "name": "Masalah_penggunaan_langsung_saat_kunjungan", - "bind": "/model/instance/data_entry_feedback_form/Masalah_penggunaan_langsung_saat_kunjungan" - }, - { - "name": "Masalah_lainnya_penggunaan_langsung", - "bind": "/model/instance/data_entry_feedback_form/Masalah_lainnya_penggunaan_langsung" - }, - { - "name": "Aplikasi_error", - "bind": "/model/instance/data_entry_feedback_form/Aplikasi_error" - }, - { - "name": "Masalah_aplikasi_error", - "bind": "/model/instance/data_entry_feedback_form/Masalah_aplikasi_error" - }, - { - "name": "Aplikasi_menutup_sendiri", - "bind": "/model/instance/data_entry_feedback_form/Aplikasi_menutup_sendiri" - }, - { - "name": "Masalah_sinkronisasi_data", - "bind": "/model/instance/data_entry_feedback_form/Masalah_sinkronisasi_data" - }, - { - "name": "Masalah_lainnya_aplikasi_error", - "bind": "/model/instance/data_entry_feedback_form/Masalah_lainnya_aplikasi_error" - }, - { - "name": "Form_Entri_Kartu_Ibu", - "bind": "/model/instance/data_entry_feedback_form/Form_Entri_Kartu_Ibu" - }, - { - "name": "Masalah_Kartu_Ibu", - "bind": "/model/instance/data_entry_feedback_form/Masalah_Kartu_Ibu" - }, - { - "name": "Pilihan_variabel_yang_ada_tidak_sesuai_kartu_ibu", - "bind": "/model/instance/data_entry_feedback_form/Pilihan_variabel_yang_ada_tidak_sesuai_kartu_ibu" - }, - { - "name": "Kalkulasi_variabel_tidak_sesuai_kartu_ibu", - "bind": "/model/instance/data_entry_feedback_form/Kalkulasi_variabel_tidak_sesuai_kartu_ibu" - }, - { - "name": "Data_variabel_yang_dimasukkan_hilang_kartu_ibu", - "bind": "/model/instance/data_entry_feedback_form/Data_variabel_yang_dimasukkan_hilang_kartu_ibu" - }, - { - "name": "Rentang_data_variabel_tidak_sesuai_kartu_ibu", - "bind": "/model/instance/data_entry_feedback_form/Rentang_data_variabel_tidak_sesuai_kartu_ibu" - }, - { - "name": "Data_yang_ditampilkan_tidak_sesuai_dengan_yang_dimasukkan_kartu_ibu", - "bind": "/model/instance/data_entry_feedback_form/Data_yang_ditampilkan_tidak_sesuai_dengan_yang_dimasukkan_kartu_ibu" - }, - { - "name": "Tidak_dapat_memasukkan_data_tertentu_kartu_ibu", - "bind": "/model/instance/data_entry_feedback_form/Tidak_dapat_memasukkan_data_tertentu_kartu_ibu" - }, - { - "name": "Tidak_dapat_mengedit_data_kartu_ibu", - "bind": "/model/instance/data_entry_feedback_form/Tidak_dapat_mengedit_data_kartu_ibu" - }, - { - "name": "Masalah_lainnya_kartu_ibu", - "bind": "/model/instance/data_entry_feedback_form/Masalah_lainnya_kartu_ibu" - }, - { - "name": "Form_Entri_Kohort_KB", - "bind": "/model/instance/data_entry_feedback_form/Form_Entri_Kohort_KB" - }, - { - "name": "Masalah_Kohort_KB", - "bind": "/model/instance/data_entry_feedback_form/Masalah_Kohort_KB" - }, - { - "name": "Pilihan_variabel_yang_ada_tidak_sesuai_kohort_kb", - "bind": "/model/instance/data_entry_feedback_form/Pilihan_variabel_yang_ada_tidak_sesuai_kohort_kb" - }, - { - "name": "Kalkulasi_variabel_tidak_sesuai_kohort_kb", - "bind": "/model/instance/data_entry_feedback_form/Kalkulasi_variabel_tidak_sesuai_kohort_kb" - }, - { - "name": "Data_variabel_yang_dimasukkan_hilang_kohort_kb", - "bind": "/model/instance/data_entry_feedback_form/Data_variabel_yang_dimasukkan_hilang_kohort_kb" - }, - { - "name": "Rentang_data_variabel_tidak_sesuai_kohort_kb", - "bind": "/model/instance/data_entry_feedback_form/Rentang_data_variabel_tidak_sesuai_kohort_kb" - }, - { - "name": "Data_yang_ditampilkan_tidak_sesuai_dengan_yang_dimasukkan_kohort_kb", - "bind": "/model/instance/data_entry_feedback_form/Data_yang_ditampilkan_tidak_sesuai_dengan_yang_dimasukkan_kohort_kb" - }, - { - "name": "Tidak_dapat_memasukkan_data_tertentu_kohort_kb", - "bind": "/model/instance/data_entry_feedback_form/Tidak_dapat_memasukkan_data_tertentu_kohort_kb" - }, - { - "name": "Tidak_dapat_mengedit_data_kohort_kb", - "bind": "/model/instance/data_entry_feedback_form/Tidak_dapat_mengedit_data_kohort_kb" - }, - { - "name": "Masalah_lainnya_kohort_kb", - "bind": "/model/instance/data_entry_feedback_form/Masalah_lainnya_kohort_kb" - }, - { - "name": "Form_Entri_Register_ANC", - "bind": "/model/instance/data_entry_feedback_form/Form_Entri_Register_ANC" - }, - { - "name": "Masalah_Register_ANC", - "bind": "/model/instance/data_entry_feedback_form/Masalah_Register_ANC" - }, - { - "name": "Pilihan_variabel_yang_ada_tidak_sesuai_Register_ANC", - "bind": "/model/instance/data_entry_feedback_form/Pilihan_variabel_yang_ada_tidak_sesuai_Register_ANC" - }, - { - "name": "Kalkulasi_variabel_tidak_sesuai_Register_ANC", - "bind": "/model/instance/data_entry_feedback_form/Kalkulasi_variabel_tidak_sesuai_Register_ANC" - }, - { - "name": "Data_variabel_yang_dimasukkan_hilang_Register_ANC", - "bind": "/model/instance/data_entry_feedback_form/Data_variabel_yang_dimasukkan_hilang_Register_ANC" - }, - { - "name": "Rentang_data_variabel_tidak_sesuai_Register_ANC", - "bind": "/model/instance/data_entry_feedback_form/Rentang_data_variabel_tidak_sesuai_Register_ANC" - }, - { - "name": "Data_yang_ditampilkan_tidak_sesuai_dengan_yang_dimasukkan_Register_ANC", - "bind": "/model/instance/data_entry_feedback_form/Data_yang_ditampilkan_tidak_sesuai_dengan_yang_dimasukkan_Register_ANC" - }, - { - "name": "Tidak_dapat_memasukkan_data_tertentu_Register_ANC", - "bind": "/model/instance/data_entry_feedback_form/Tidak_dapat_memasukkan_data_tertentu_Register_ANC" - }, - { - "name": "Tidak_dapat_mengedit_data_Register_ANC", - "bind": "/model/instance/data_entry_feedback_form/Tidak_dapat_mengedit_data_Register_ANC" - }, - { - "name": "Masalah_lainnya_register_anc", - "bind": "/model/instance/data_entry_feedback_form/Masalah_lainnya_register_anc" - }, - { - "name": "Form_Entri_Register_PNC", - "bind": "/model/instance/data_entry_feedback_form/Form_Entri_Register_PNC" - }, - { - "name": "Masalah_Register_PNC", - "bind": "/model/instance/data_entry_feedback_form/Masalah_Register_PNC" - }, - { - "name": "Pilihan_variabel_yang_ada_tidak_sesuai_Register_PNC", - "bind": "/model/instance/data_entry_feedback_form/Pilihan_variabel_yang_ada_tidak_sesuai_Register_PNC" - }, - { - "name": "Kalkulasi_variabel_tidak_sesuai_Register_PNC", - "bind": "/model/instance/data_entry_feedback_form/Kalkulasi_variabel_tidak_sesuai_Register_PNC" - }, - { - "name": "Data_variabel_yang_dimasukkan_hilang_Register_PNC", - "bind": "/model/instance/data_entry_feedback_form/Data_variabel_yang_dimasukkan_hilang_Register_PNC" - }, - { - "name": "Rentang_data_variabel_tidak_sesuai_Register_PNC", - "bind": "/model/instance/data_entry_feedback_form/Rentang_data_variabel_tidak_sesuai_Register_PNC" - }, - { - "name": "Data_yang_ditampilkan_tidak_sesuai_dengan_yang_dimasukkan_Register_PNC", - "bind": "/model/instance/data_entry_feedback_form/Data_yang_ditampilkan_tidak_sesuai_dengan_yang_dimasukkan_Register_PNC" - }, - { - "name": "Tidak_dapat_memasukkan_data_tertentu_Register_PNC", - "bind": "/model/instance/data_entry_feedback_form/Tidak_dapat_memasukkan_data_tertentu_Register_PNC" - }, - { - "name": "Tidak_dapat_mengedit_data_Register_PNC", - "bind": "/model/instance/data_entry_feedback_form/Tidak_dapat_mengedit_data_Register_PNC" - }, - { - "name": "Masalah_lainnya_register_pnc", - "bind": "/model/instance/data_entry_feedback_form/Masalah_lainnya_register_pnc" - }, - { - "name": "Form_Entri_Kohort_Anak", - "bind": "/model/instance/data_entry_feedback_form/Form_Entri_Kohort_Anak" - }, - { - "name": "Masalah_Kohort_Anak", - "bind": "/model/instance/data_entry_feedback_form/Masalah_Kohort_Anak" - }, - { - "name": "Pilihan_variabel_yang_ada_tidak_sesuai_Kohort_Anak", - "bind": "/model/instance/data_entry_feedback_form/Pilihan_variabel_yang_ada_tidak_sesuai_Kohort_Anak" - }, - { - "name": "Kalkulasi_variabel_tidak_sesuai_Kohort_Anak", - "bind": "/model/instance/data_entry_feedback_form/Kalkulasi_variabel_tidak_sesuai_Kohort_Anak" - }, - { - "name": "Data_variabel_yang_dimasukkan_hilang_Kohort_Anak", - "bind": "/model/instance/data_entry_feedback_form/Data_variabel_yang_dimasukkan_hilang_Kohort_Anak" - }, - { - "name": "Rentang_data_variabel_tidak_sesuai_Kohort_Anak", - "bind": "/model/instance/data_entry_feedback_form/Rentang_data_variabel_tidak_sesuai_Kohort_Anak" - }, - { - "name": "Data_yang_ditampilkan_tidak_sesuai_dengan_yang_dimasukkan_Kohort_Anak", - "bind": "/model/instance/data_entry_feedback_form/Data_yang_ditampilkan_tidak_sesuai_dengan_yang_dimasukkan_Kohort_Anak" - }, - { - "name": "Tidak_dapat_memasukkan_data_tertentu_Kohort_Anak", - "bind": "/model/instance/data_entry_feedback_form/Tidak_dapat_memasukkan_data_tertentu_Kohort_Anak" - }, - { - "name": "Tidak_dapat_mengedit_data_Kohort_Anak", - "bind": "/model/instance/data_entry_feedback_form/Tidak_dapat_mengedit_data_Kohort_Anak" - }, - { - "name": "Masalah_lainnya_kohort_anak", - "bind": "/model/instance/data_entry_feedback_form/Masalah_lainnya_kohort_anak" - }, - { - "name": "Umpan_balik_lainnya", - "bind": "/model/instance/data_entry_feedback_form/Umpan_balik_lainnya" - }, - { - "name": "Keterangan_umpan_balik_lainnya", - "bind": "/model/instance/data_entry_feedback_form/Keterangan_umpan_balik_lainnya" - }, - { - "name": "submissionDate", - "bind": "/model/instance/data_entry_feedback_form/today" - } - ] - } -} \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/feedback_bidan/model.xml b/opensrp-bidan/src/main/assets/www/form/feedback_bidan/model.xml deleted file mode 100644 index 2302c9e..0000000 --- a/opensrp-bidan/src/main/assets/www/form/feedback_bidan/model.xml +++ /dev/null @@ -1,103 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/opensrp-bidan/src/main/assets/www/form/forms.zip b/opensrp-bidan/src/main/assets/www/form/forms.zip deleted file mode 100644 index c97b32a..0000000 Binary files a/opensrp-bidan/src/main/assets/www/form/forms.zip and /dev/null differ diff --git a/opensrp-bidan/src/main/assets/www/form/kartu_anc_close/form.json b/opensrp-bidan/src/main/assets/www/form/kartu_anc_close/form.json deleted file mode 100644 index 7da3430..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_anc_close/form.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"penutupan_anc_reviewed","title":"Penutupan ANC","sms_keyword":"penutupan_anc","default_language":"Bahasa","instance":{"encounter_type":"Penutupan ANC"},"version":"201610120908","id_string":"penutupan_anc","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":"person_address","openmrs_entity_id":"stateProvince","openmrs_entity_parent":"usual_residence"}},{"bind":{"calculate":"${District}"},"type":"calculate","name":"kabupaten","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"countyDistrict","openmrs_entity_parent":"usual_residence"}},{"bind":{"calculate":"${Village}"},"type":"calculate","name":"desa","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"cityVillage","openmrs_entity_parent":"usual_residence"}},{"bind":{"calculate":"${Sub-village}"},"type":"calculate","name":"dusun","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"address1","openmrs_entity_parent":"usual_residence"}},{"bind":{"calculate":"${Sub-district}"},"type":"calculate","name":"kecamatan","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"address2","openmrs_entity_parent":"usual_residence"}},{"control":{"appearance":"minimal"},"name":"close_reason","hint":{"Bahasa":"Pilihlah salah satu alasan yang tersedia","English":"Select one of reasons available"},"bind":{"required":"yes"},"label":{"Bahasa":"Alasan penutupan ANC?","English":"Reason for ANC closure?"},"instance":{"openmrs_entity_id":"160417AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"select one","children":[{"instance":{"openmrs_code":"163132AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"relocation_temporary","label":{"Bahasa":"Relokasi (sementara)","English":"Relocation (temporary)"}},{"instance":{"openmrs_code":"160415AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"relocation_permanent","label":{"Bahasa":"Relokasi (permanen)","English":"Relocation (permanent)"}},{"instance":{"openmrs_code":"126127AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"spontaneous_abortion","label":{"Bahasa":"Keguguran","English":"Miscarriage"}},{"instance":{"openmrs_code":"126802AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"induced_abortion","label":{"Bahasa":"Aborsi","English":"Abortion"}},{"instance":{"openmrs_code":"163133AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"wrong_entry","label":{"Bahasa":"Kesalahan entry","English":"Wrong entry"}},{"instance":{"openmrs_code":"163154AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Penyebab langsung","label":{"Bahasa":"Kematian Ibu karena Penyebab langsung","English":"Maternal death due to direct cause"}},{"instance":{"openmrs_code":"163136AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Penyebab tidak langsung","label":{"Bahasa":"Kematian Ibu karena Penyebab tidak langsung","English":"Indirect cause"}},{"instance":{"openmrs_code":"1067AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tidak_diketahui","label":{"Bahasa":"Tidak Diketahui (Data PNC ibu tidak tersedia)","English":"Unknown (Mother's PNC data is not available)"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Lainnya","label":{"Bahasa":"Lainnya","English":"Other"}}]},{"bind":{"relevant":"${close_reason} = 'Lainnya'"},"type":"text","instance":{"openmrs_entity":"Concept","openmrs_entity_id":"160632AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"Closing reason - 1541AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"other_close_reason","label":{"Bahasa":"Lainnya","English":"Others"}},{"bind":{"relevant":"${close_reason} = 'Penyebab langsung' or ${close_reason} = 'Penyebab tidak langsung'"},"type":"group","children":[{"name":"date_maternal_death","hint":{"Bahasa":"Masukkan tanggal kematian Ibu!","English":"Enter date of maternal death"},"bind":{"jr:constraintMsg":{"Bahasa":"Tanggal kematian ibu hari ini atau hari-hari sebelumnya","English":"Date of mother's death today or the days before"},"required":"yes","constraint":".<=${today}"},"label":{"Bahasa":"Tanggal kematian ibu?","English":"Date of maternal death?"},"instance":{"openmrs_entity_id":"1543AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"date"},{"control":{"appearance":"minimal"},"name":"maternal_death_cause","hint":{"Bahasa":"Pilihlah salah satu jawaban yang tersedia","English":"Select one of answers available"},"bind":{"relevant":"${close_reason} = 'Penyebab langsung'"},"label":{"Bahasa":"Penyebab kematian ibu?","English":"Cause of maternal death?"},"instance":{"openmrs_entity_id":"159404AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"select one","children":[{"instance":{"openmrs_code":"117617AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"early_pregnancy_bleeding","label":{"Bahasa":"PERDARAHAN HAMIL MUDA ( Abortus,KET,Mola )","English":"Early Pregnancy Bleeding (Abortion/Miscarriage, Ectopic Pregnancy, Mola)"}},{"instance":{"openmrs_code":"147241AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"hemorrhage","label":{"Bahasa":"PENDARAHAN ( APB, HPP )","English":"Hemorrhage (APB, PPH)"}},{"instance":{"openmrs_code":"116136AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"infection","label":{"Bahasa":"INFEKSI ( P.Kasep,KPD, Sepsis,Puerperalis,P. Lama )","English":"Infection (prolonged labor with complication, early membrane rupture, sepsis puerperalis, prolonged labor)"}},{"instance":{"openmrs_code":"47AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"hypertention_in_pregnancy","label":{"Bahasa":"HDK ( HT Kronis,HT dg Protein Urin,Eklampsia,Syndrom HELLP)","English":"Hypertension in Pregnancy (Chronic Hypertension, Hypertension with protein urinea, Syndrom HELLP)"}},{"instance":{"openmrs_code":"141382AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"embolism","label":{"Bahasa":"EMBOLI ( Pulmonal,air ketuban )","English":"Embolism (Pulmonary, Amniotic fluid)"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"other","label":{"Bahasa":"LAIN-LAIN ( diluar penyebab yang diatas )","English":"Other"}}]},{"name":"other_maternal_death_cause","hint":{"Bahasa":"Sebutkan alasan lainnya jika ada","English":"Write other reason, if available"},"bind":{"relevant":"${maternal_death_cause} = 'others'"},"label":{"Bahasa":"Lainnya","English":"Others"},"instance":{"openmrs_entity":"Concept","openmrs_entity_id":"162580AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"Cause of death of mother - 159404AAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"text"},{"control":{"appearance":"minimal"},"name":"place_of_death","hint":{"Bahasa":"Tempat kematian ibu","English":"Place of maternal death"},"bind":{"relevant":"${close_reason} = 'Penyebab langsung'"},"label":{"Bahasa":"Tempat kematian","English":"Place of death"},"instance":{"openmrs_entity_id":"1541AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1536AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Rumah sendiri/keluarga","label":{"Bahasa":"Rumah sendiri/keluarga","English":"Mother/family's house"}},{"instance":{"openmrs_code":"164151"},"name":"Rumah dukun","label":{"Bahasa":"Rumah dukun","English":"Traditional birth attendant's house"}},{"instance":{"openmrs_code":"163512AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Polindes","label":{"Bahasa":"Polindes","English":"Community-based health post"}},{"instance":{"openmrs_code":"1588AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Pustu","label":{"Bahasa":"Pustu","English":"Sub-center"}},{"instance":{"openmrs_code":"164152"},"name":"Rumah bidan","label":{"Bahasa":"Rumah bidan","English":"Midwife's house"}},{"instance":{"openmrs_code":"1588AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Puskesmas","label":{"Bahasa":"Puskesmas","English":"Primary Health Center"}},{"instance":{"openmrs_code":"1601AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Dalam perjalanan ke fasilitas","label":{"Bahasa":"Dalam perjalanan ke fasilitas","English":"On the way to facility"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Lainnya","label":{"Bahasa":"Lainnya","English":"other"}}]},{"bind":{"relevant":"${place_of_death} = 'Lainnya'"},"type":"text","instance":{"openmrs_entity":"Concept","openmrs_entity_id":"160632AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"Location of Death - 1541AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"other_place_of_death","label":{"Bahasa":"Lainnya","English":"Others"}},{"name":"address","hint":{"Bahasa":"Masukkan alamat Ibu (Dusun)","English":"Enter the mother’s address (dusun)"},"bind":{"relevant":"${close_reason} = 'Penyebab langsung'"},"label":{"Bahasa":"Alamat Ibu (Dusun)","English":"Mother’s address (dusun)"},"instance":{"openmrs_entity_id":"1354AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"text"}],"name":"maternal_death_group"},{"name":"note_maternal_death_cause","hint":{"Bahasa":"Masukkan penyebab kematian","English":"Fill in the cause of maternal death"},"bind":{"relevant":"${close_reason} = 'Penyebab tidak langsung'"},"label":{"Bahasa":"Penyebab Kematian","English":"Cause"},"instance":{"openmrs_entity_id":"160218AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"text"},{"name":"birth_attendant","hint":{"Bahasa":"Sebutkan siapa yang menolong ibu hamil saat bersalin","English":"Write the one who assist mother's delivery"},"label":{"Bahasa":"Penolong Persalinan","English":"Birth Attendant"},"instance":{"openmrs_entity_id":"1573AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1560AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"keluarga","label":{"Bahasa":"Keluarga (K)","English":"Family"}},{"instance":{"openmrs_code":"1575AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"dukun","label":{"Bahasa":"Dukun (D)","English":"Traditional Birth Attendant"}},{"instance":{"openmrs_code":"1578AAAAAAAAAAAA\nAAAAAAAAAAAAAAAA"},"name":"bidan","label":{"Bahasa":"Bidan (B)","English":"Midwife"}},{"instance":{"openmrs_code":"1574AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"dr.umum","label":{"Bahasa":"Dr.Umum (DU)","English":"Doctor"}},{"instance":{"openmrs_code":"163489AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"dr.spesialis","label":{"Bahasa":"Dr.Spesialis (DS)","English":"Obstectric and Gynecology Specialist (OGS)"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"lain-lain","label":{"Bahasa":"Lain-Lain (LN)","English":"Others"}},{"instance":{"openmrs_code":"1107AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tidak_ada","label":{"Bahasa":"Tidak Ada (TA)","English":"None"}}]},{"instance":{"openmrs_entity_id":"163104AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"label":{"Bahasa":"Tindakan sebelum dirujuk","English":"Pre-referral management"},"type":"text","name":"prereferral_management","hint":{"Bahasa":"Tuliskan tindakan perawatan yang diberikan kepada ibu sebelum dirujuk","English":"Describe the care management provided for the mother prior to referral"}},{"name":"referred","hint":{"Bahasa":"Untuk mengetahui apakah ibu tersebut dirujuk ke fasilitas lain","English":"Information whether the mother was referred to other facility or not"},"label":{"Bahasa":"Apakah ibu ini dirujuk?","English":"Was this mother referred to other facility?"},"instance":{"openmrs_entity_id":"1648AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Bahasa":"Ya","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Bahasa":"Tidak","English":"No"}}]},{"instance":{"openmrs_entity_id":"161562AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"label":{"Bahasa":"Ibu dirujuk ke","English":"Location of referral"},"type":"text","name":"referral_location","hint":{"Bahasa":"Untuk mengetahui ibu dirujuk ke fasilitas mana","English":"Information related to the location of mother's referral"}},{"name":"confirm_anc_close","bind":{"relevant":"${close_reason} != 'relocation_temporary'","required":"yes"},"label":{"Bahasa":"Konfirmasi penutupan ANC?","English":"Confirmation of ANC closure?"},"instance":{"openmrs_entity":"n/a"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Bahasa":"Ya","English":"Yes"}}]},{"name":"confirm_anc_left","bind":{"relevant":"${close_reason} = 'relocation_temporary'","required":"yes"},"label":{"Bahasa":"Konfirmasi relokasi ANC (sementara)?","English":"Confirmation of relocation (temporary)"},"instance":{"openmrs_entity":"n/a"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Bahasa":"Ya","English":"Yes"}}]},{"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/kartu_anc_close/form.xml b/opensrp-bidan/src/main/assets/www/form/kartu_anc_close/form.xml deleted file mode 100644 index 1af45a0..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_anc_close/form.xml +++ /dev/null @@ -1,28 +0,0 @@ - - Penutupan ANCBahasa English - - - Desa : - - - Dusun : - - - Alasan penutupan ANC?Reason for ANC closure?*Pilihlah salah satu alasan yang tersediaSelect one of reasons available...Relokasi (sementara)Relokasi (permanen)KeguguranAborsiKesalahan entryKematian Ibu karena Penyebab langsungKematian Ibu karena Penyebab tidak langsungTidak Diketahui (Data PNC ibu tidak tersedia)LainnyaRelokasi (sementara)Relocation (temporary)Relokasi (permanen)Relocation (permanent)KeguguranMiscarriageAborsiAbortionKesalahan entryWrong entryKematian Ibu karena Penyebab langsungMaternal death due to direct causeKematian Ibu karena Penyebab tidak langsungIndirect causeTidak Diketahui (Data PNC ibu tidak tersedia)Unknown (Mother's PNC data is not available)LainnyaOther - - LainnyaOthers - Tanggal kematian ibu hari ini atau hari-hari sebelumnyaDate of mother's death today or the days beforeTanggal kematian ibu?Date of maternal death?*Masukkan tanggal kematian Ibu!Enter date of maternal deathPenyebab kematian ibu?Cause of maternal death?Pilihlah salah satu jawaban yang tersediaSelect one of answers available...PERDARAHAN HAMIL MUDA ( Abortus,KET,Mola )PENDARAHAN ( APB, HPP )INFEKSI ( P.Kasep,KPD, Sepsis,Puerperalis,P. Lama )HDK ( HT Kronis,HT dg Protein Urin,Eklampsia,Syndrom HELLP)EMBOLI ( Pulmonal,air ketuban )LAIN-LAIN ( diluar penyebab yang diatas )PERDARAHAN HAMIL MUDA ( Abortus,KET,Mola )Early Pregnancy Bleeding (Abortion/Miscarriage, Ectopic Pregnancy, Mola)PENDARAHAN ( APB, HPP )Hemorrhage (APB, PPH)INFEKSI ( P.Kasep,KPD, Sepsis,Puerperalis,P. Lama )Infection (prolonged labor with complication, early membrane rupture, sepsis puerperalis, prolonged labor)HDK ( HT Kronis,HT dg Protein Urin,Eklampsia,Syndrom HELLP)Hypertension in Pregnancy (Chronic Hypertension, Hypertension with protein urinea, Syndrom HELLP)EMBOLI ( Pulmonal,air ketuban )Embolism (Pulmonary, Amniotic fluid)LAIN-LAIN ( diluar penyebab yang diatas )Other - LainnyaOthersSebutkan alasan lainnya jika adaWrite other reason, if availableTempat kematianPlace of deathTempat kematian ibuPlace of maternal death...Rumah sendiri/keluargaRumah dukunPolindesPustuRumah bidanPuskesmasDalam perjalanan ke fasilitasLainnyaRumah sendiri/keluargaMother/family's houseRumah dukunTraditional birth attendant's housePolindesCommunity-based health postPustuSub-centerRumah bidanMidwife's housePuskesmasPrimary Health CenterDalam perjalanan ke fasilitasOn the way to facilityLainnyaother - LainnyaOthersAlamat Ibu (Dusun)Mother’s address (dusun)Masukkan alamat Ibu (Dusun)Enter the mother’s address (dusun) - - Penyebab KematianCauseMasukkan penyebab kematianFill in the cause of maternal death - Penolong PersalinanBirth AttendantSebutkan siapa yang menolong ibu hamil saat bersalinWrite the one who assist mother's delivery - Keluarga (K)FamilyDukun (D)Traditional Birth AttendantBidan (B)MidwifeDr.Umum (DU)DoctorDr.Spesialis (DS)Obstectric and Gynecology Specialist (OGS)Lain-Lain (LN)OthersTidak Ada (TA)None - Tindakan sebelum dirujukPre-referral managementTuliskan tindakan perawatan yang diberikan kepada ibu sebelum dirujukDescribe the care management provided for the mother prior to referral - Apakah ibu ini dirujuk?Was this mother referred to other facility?Untuk mengetahui apakah ibu tersebut dirujuk ke fasilitas lainInformation whether the mother was referred to other facility or not - YaYesTidakNo - Ibu dirujuk keLocation of referralUntuk mengetahui ibu dirujuk ke fasilitas manaInformation related to the location of mother's referral - Konfirmasi penutupan ANC?Confirmation of ANC closure?* - YaYes - Konfirmasi relokasi ANC (sementara)?Confirmation of relocation (temporary)* - YaYes - - \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kartu_anc_close/form_definition.json b/opensrp-bidan/src/main/assets/www/form/kartu_anc_close/form_definition.json deleted file mode 100644 index a799b7b..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_anc_close/form_definition.json +++ /dev/null @@ -1,112 +0,0 @@ -{ - "form_data_definition_version": "3", - "form": { - "bind_type": "ibu", - "ec_bind_type": "ec_kartu_ibu", - "default_bind_path": "/model/instance/penutupan_anc_reviewed/", - "fields": [ - { - "name": "id", - "shouldLoadValue": true - }, - { - "name": "kiId", - "shouldLoadValue": true, - "source": "ibu.kartu_ibu.id" - }, - { - "name": "cityVillage", - "bind": "/model/instance/penutupan_anc_reviewed/Village", - "shouldLoadValue": true - }, - { - "name": "existing_location", - "bind": "/model/instance/penutupan_anc_reviewed/existing_location", - "shouldLoadValue": true - }, - { - "name": "desa", - "bind": "/model/instance/penutupan_anc_reviewed/desa" - }, - { - "name": "dusun", - "bind": "/model/instance/penutupan_anc_reviewed/dusun" - }, - { - "name": "closeReason", - "bind": "/model/instance/penutupan_anc_reviewed/close_reason" - }, - { - "name": "otherCloseReason", - "bind": "/model/instance/penutupan_anc_reviewed/other_close_reason" - }, - - { - "name": "maternalDeathDate", - "bind": "/model/instance/penutupan_anc_reviewed/maternal_death_group/date_maternal_death" - }, - { - "name": "maternalDeathCause", - "bind": "/model/instance/penutupan_anc_reviewed/maternal_death_group/maternal_death_cause" - }, - { - "name": "otherMaternalDeathCause", - "bind": "/model/instance/penutupan_anc_reviewed/maternal_death_group/other_maternal_death_cause" - }, - { - "name": "placeOfDeath", - "bind": "/model/instance/penutupan_anc_reviewed/maternal_death_group/place_of_death" - }, - { - "name": "otherPlaceOfDeath", - "bind": "/model/instance/penutupan_anc_reviewed/maternal_death_group/other_place_of_death" - }, - { - "name": "address", - "bind": "/model/instance/penutupan_anc_reviewed/maternal_death_group/address" - }, - { - "name": "noteMaternalDeathCause", - "bind": "/model/instance/penutupan_anc_reviewed/note_maternal_death_cause" - }, - { - "name": "birthAttendant", - "bind": "/model/instance/penutupan_anc_reviewed/birth_attendant" - }, - { - "name": "prereferralManagement", - "bind": "/model/instance/penutupan_anc_reviewed/prereferral_management" - }, - { - "name": "referred", - "bind": "/model/instance/penutupan_anc_reviewed/referred" - }, - { - "name": "referralLocation", - "bind": "/model/instance/penutupan_anc_reviewed/referral_location" - }, - { - "name": "isANCCloseConfirmed", - "bind": "/model/instance/penutupan_anc_reviewed/confirm_anc_close" - }, - { - "name": "hasANCLeftPlace", - "bind": "/model/instance/penutupan_anc_reviewed/confirm_anc_left" - }, - { - "name": "submissionDate", - "bind": "/model/instance/penutupan_anc_reviewed/today" - }, - { - "name": "htp", - "source": "ibu.kartu_ibu.htp", - "value": "" - }, - { - "name": "isClosed", - "source": "ibu.isClosed", - "value": "true" - } - ] - } -} diff --git a/opensrp-bidan/src/main/assets/www/form/kartu_anc_close/model.xml b/opensrp-bidan/src/main/assets/www/form/kartu_anc_close/model.xml deleted file mode 100644 index be03d30..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_anc_close/model.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kartu_anc_edit/form.xml b/opensrp-bidan/src/main/assets/www/form/kartu_anc_edit/form.xml deleted file mode 100644 index 7d89ca0..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_anc_edit/form.xml +++ /dev/null @@ -1,909 +0,0 @@ - - - - Edit ANC - - Bahasa - English - - - - - Tanggal Kunjungan - - Date of visit - - * - Tanggal pemeriksaan kehamilan - pertama kali oleh bidan - - Date - of first antenatal checkup by midwife - - - - - - - Jamkesmas - - Insurance - - Apakah Ibu memiliki Jamkesmas - atau tidak - - - Does mother have the card of National Health Insurance for the Poor and Near - Poor? - - - - - - Jika - Ya (√) - - Yes - - - - - - Jika Tidak (x) - - No - - - - - - - Riwayat - Obstetrik - - Obstetric history - - - - - Nilai yang - dimasukkan tidak - memenuhi syarat, mohon periksa kembali - - The entered value doesn't - meet the criteria, please check it again - - Gravida - - - Gravida - - - Menunjukkan jumlah kehamilan Ibu - - Indicating - mother's number of pregnancy - - - - - Nilai yang - dimasukkan tidak - memenuhi syarat, mohon periksa kembali - - The entered value doesn't meet - the criteria, please check it again - - Partus - - - Parity - - - Menunjukkan jumlah kelahiran / persalinan Ibu - - Indicating - mother's number of birth/delivery - - - - - Nilai yang - dimasukkan tidak - memenuhi syarat, mohon periksa kembali - - The entered value doesn't - meet the criteria, please check it again - - Abortus - - - Abortus - - - Menunjukkan jumlah berapa kali Ibu keguguran - - Indicating - mother's number of abortion/miscarriage - - - - - Nilai yang - dimasukkan tidak - memenuhi syarat, mohon periksa kembali - - The entered value doesn't meet - the criteria, please check it again - - Hidup - - - Alive - - - Menunjukkan jumlah anak hidup sampai kehamilan sekarang - - Inidcating - mother's number of alive children until the current pregnancy - - - - - Pemeriksaan - Bidan - - Midwife chek-up - - - - - Tanggal HPHT - - Last - Menstrual Period date - - * - - Tanggal Hari Pertama Haid Terakhir Ibu - - Date of first - day of last menstrual period - - - - - HTP: - - - - Estimated Date of Delivery - - - - - Usia Klinis - : - - - Gestational age (in - weeks) - - - - - Trimester - Ke: - - - Trimester order - - - - - - Tanggal memperoleh - Buku KIA - - Date of - recieving - Maternal and Child Health Booklet - - - - - Berat badan tidak - boleh kurang - dari nol - - Weight can not be less than - zero - - BB (Kg) - - - Weight - - * - - Menunjukkan berat badan Ibu sebelum kehamilan (kg) - - Indicating - mother's weight before being pregnant (kg) - - - - - Tinggi badan - tidak boleh kurang - dari nol - - Height can not be less than - zero - - TB (Cm) - - - Height - - - Menunjukkan tinggi badan Ibu (CM) - - Indicating - mother's height (cm) - - - - - Nilai yang - dimasukkan tidak - memenuhi syarat, mohon periksa kembali - - The entered value doesn't - meet the criteria, please check it again - - LILA (cm) - - - Mid-Upper Arm Circumference of mother - - - Menunjukkan lingkar lengan Ibu pada saat kunjungan ANC (cm) - - Indicating - mother's arm circumference on ANC check-up - - - - - - - - Persalinan - sebelumnya - - Previous - labor - - - Riwayat persalinan - sebelumnya normal atau dengan komplikasi - - History of previous - delivery whether normal or with complication - - - - - - Normal - (N) - - Normal - (N); - - - - - - Tidak Normal (dengan tindakan) (TN) - - - Abnormal ( With Treatment) - - - - - - - - - Riwayat - Komplikasi Kebidanan - - - Obstetric - complication record - - Riwayat - komplikasi yang dimiliki Ibu sebelumnya - - - History of - complication that mother previously had - - - - - - - Abortus Berulang - - - Repeated Abortus (AS) - - - - - KET - - - Ectopic Pregnancy (EP) - - - - - - Mola Hidatidosa - - - Mola Hydatidosa (ML) - - - - - KPD - - - Premature Rupture of Membranes - - - - - - Cacat Kongenital - - - Congenital Abnormality - - - - - - Riwayat SC - - - Sectio Caesaria (SC) - - - - - - Riwayat VE/Forseps - - - Vacuum (VC); Forceps (FS) - - - - - - Lainnya - - - Other - - - - - - - - Komplikasi Lainnya - - Other - complication - - - Menunjukkan - keterangan komplikasi lain yang diderita Ibu hamil - - Indicating - information of other complication that mother had - - - - - - - Penyakit - Kronis - - Chronic - disease - - Penyakit yang pernah atau - sedang dimiliki oleh Ibu (Isi NA jika tidak ada penyakit kronis) - - Disease that mother had - or has (Write NA if mother has no chronical diseases) - - - - - - - Hipertensi - - - Hypertension - - - - - - Diabetes Melitus - - - Diabetes Mellitus - - - - - - Kelainan Jantung - - - Heart Disease - - - - - - Kelainan Ginjal - - - Kidney Disease - - - - - - Kelainan Hati - - Liver - Disease - - - - - Malaria - - - Malaria - - - - - - Asma - - - Asthma - - - - - IMS Sifilis - - - Syphilis - - - - - - HbsAg - - - HBsAg - - - - - HIV/AIDS - - - HIV/AIDS - - - - - - Tubercolusis - - TBC - - - - - Lainnya - - - Other - - - - - - - Penyakit Kronis Lainnya - - Other chronic disease - - Menunjukkan keterangan penyakit - kronis - - - Indicating information of other chronical disease that mother has - - - - - Alergi - - - Alergic - - - Alergi yang dimiliki oleh Ibu (Isi NA jika tidak ada alergi) - - Allergy that - mother has (Write NA if mother has no allergy) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kartu_anc_edit/form_definition.json b/opensrp-bidan/src/main/assets/www/form/kartu_anc_edit/form_definition.json deleted file mode 100644 index 0ca5f41..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_anc_edit/form_definition.json +++ /dev/null @@ -1,140 +0,0 @@ -{ - "form_data_definition_version": "1", - "form": { - "bind_type": "ibu", - "default_bind_path": "/model/instance/anc_registration/", - "fields": [ - { - "name": "id", - "shouldLoadValue": true - }, - { - "name": "kiId", - "source": "ibu.kartu_ibu.id", - "shouldLoadValue": true - }, - { - "name": "referenceDate", - "bind": "/model/instance/anc_registration/tanggal_periksa", - "shouldLoadValue": true - - }, - { - "name": "gravida", - "bind": "/model/instance/anc_registration/gravida", - "source": "ibu.kartu_ibu.gravida", - "shouldLoadValue": true - }, - { - "name": "partus", - "bind": "/model/instance/anc_registration/partus", - "source": "ibu.kartu_ibu.partus", - "shouldLoadValue": true - }, - { - "name": "abortus", - "bind": "/model/instance/anc_registration/abortus", - "source": "ibu.kartu_ibu.abortus", - "shouldLoadValue": true - }, - { - "name": "hidup", - "bind": "/model/instance/anc_registration/hidup", - "source": "ibu.kartu_ibu.hidup", - "shouldLoadValue": true - }, - { - "name": "persalinanSebelumnya", - "bind": "/model/instance/anc_registration/persalinan_sebelumnya", - "shouldLoadValue": true - - }, - { - "name": "riwayatKomplikasiKebidanan", - "bind": "/model/instance/anc_registration/riwayat_komplikasi_kebidanan", - "shouldLoadValue": true - - }, - { - "name": "rkklainnya", - "bind": "/model/instance/anc_registration/riwayat_komplikasi_kebidananL", - "shouldLoadValue": true - }, - { - "name": "penyakitKronis", - "bind": "/model/instance/anc_registration/penyakit_kronis", - "shouldLoadValue": true - }, - { - "name": "rpkLainnya", - "bind": "/model/instance/anc_registration/penyakit_kronisL", - "shouldLoadValue": true - - }, - { - "name": "Alergi", - "bind": "/model/instance/anc_registration/alergi", - "shouldLoadValue": true - - }, - { - "name": "tanggalHPHT", - "bind": "/model/instance/anc_registration/hpht", - "shouldLoadValue": true - - }, - { - "name": "htp", - "bind": "/model/instance/anc_registration/htp", - "shouldLoadValue": true - }, - { - "name": "trimesterKe", - "bind": "/model/instance/anc_registration/trimester_ke" - }, - { - "name": "tanggalMemperolehBukuKia", - "bind": "/model/instance/anc_registration/tanggal_memperoleh_buku_kia", - "source": "ibu.kartu_ibu.tanggalMemperolehBukuKia", - "shouldLoadValue": true - }, - { - "name": "jamkesmas", - "bind": "/model/instance/anc_registration/jamkesmas", - "source": "ibu.kartu_ibu.jamkesmas", - "shouldLoadValue": true - }, - { - "name": "tbCM", - "bind": "/model/instance/anc_registration/tb_cm", - "shouldLoadValue": true - }, - { - "name": "bbKg", - "bind": "/model/instance/anc_registration/bb_kg", - "shouldLoadValue": true - }, - { - "name": "hasilPemeriksaanLILA", - "bind": "/model/instance/anc_registration/lila_cm", - "shouldLoadValue": true - }, - { - "name": "submissionDate", - "bind": "/model/instance/anc_registration/today", - "source": "ibu.kartu_ibu.submissionDate" - }, - { - "name": "registrationDate", - "bind": "/model/instance/anc_registration/reg_date", - "source": "ibu.kartu_ibu.registrationDate" - }, - - { - "name": "type", - "value": "anc", - "source": "ibu.kartu_ibu.type" - } - ] - } -} diff --git a/opensrp-bidan/src/main/assets/www/form/kartu_anc_edit/model.xml b/opensrp-bidan/src/main/assets/www/form/kartu_anc_edit/model.xml deleted file mode 100644 index 436ac52..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_anc_edit/model.xml +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kartu_anc_registration/form.json b/opensrp-bidan/src/main/assets/www/form/kartu_anc_registration/form.json deleted file mode 100644 index 208d040..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_anc_registration/form.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"anc_registration","title":"Tambah ANC","sms_keyword":"tambah_anc","default_language":"Bahasa","instance":{"encounter_type":"Tambah ANC"},"version":"201610070215","id_string":"tambah_anc","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"}},{"instance":{"openmrs_entity_id":"kartuIbuId","openmrs_entity":"person_relationship"},"type":"hidden","name":"kartu_ibu_entity_id"},{"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":"person_address","openmrs_entity_id":"stateProvince","openmrs_entity_parent":"usual_residence"}},{"bind":{"calculate":"${District}"},"type":"calculate","name":"kabupaten","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"countyDistrict","openmrs_entity_parent":"usual_residence"}},{"bind":{"calculate":"${Village}"},"type":"calculate","name":"desa","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"cityVillage","openmrs_entity_parent":"usual_residence"}},{"bind":{"calculate":"${Sub-village}"},"type":"calculate","name":"dusun","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"address1","openmrs_entity_parent":"usual_residence"}},{"bind":{"calculate":"${Sub-district}"},"type":"calculate","name":"kecamatan","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"address2","openmrs_entity_parent":"usual_residence"}},{"control":{"appearance":"yes"},"name":"tanggal_periksa","hint":{"Bahasa":"Tanggal pemeriksaan kehamilan pertama kali oleh bidan"},"bind":{"jr:constraintMsg":{"Bahasa":".<=${today}"}},"label":{"Bahasa":"Tanggal Kunjungan","English":"Date of Visit"},"instance":{"openmrs_entity_id":"160753AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"date"},{"control":{"appearance":"yes"},"name":"Lokasi_periksa","label":{"Bahasa":"Lokasi Periksa","English":"Location of Service"},"instance":{"openmrs_entity_id":"161010AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"163121AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Posyandu","label":{"Bahasa":"Posyandu","English":"Village Outreach Post"}},{"instance":{"openmrs_code":"1588AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Polindes","label":{"Bahasa":"Polindes","English":"Health Clinic Post"}},{"instance":{"openmrs_code":"1537AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Puskesmas","label":{"Bahasa":"Puskesmas","English":"Health Facility"}},{"instance":{"openmrs_code":"1536AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Ibu_rumah","label":{"Bahasa":"Rumah Ibu","English":"Mother House"}},{"instance":{"openmrs_code":"1589AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Rumah_Sakit","label":{"Bahasa":"Rumah Sakit","English":"Hospital"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"lainya","label":{"Bahasa":"Lainnya","English":"Other"}}]},{"instance":{"openmrs_entity_id":"45AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"label":{"Bahasa":"Hasil pptest","English":"Pregnancy Test"},"type":"select one","children":[{"instance":{"openmrs_code":"703AAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Positive","label":{"Bahasa":"Positif","English":"Positive"}},{"instance":{"openmrs_code":"664AAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Negative","label":{"Bahasa":"Negatif","English":"Negative"}}],"name":"pptest"},{"instance":{"openmrs_entity":"concept","openmrs_entity_id":"160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"Location of event - 161010AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"label":{"Bahasa":"Lainnya","English":"Other"},"type":"text","name":"Lokasi_periksa_other","hint":{"Bahasa":"Lainnya","English":"Write other location"}},{"name":"jamkesmas","hint":{"Bahasa":"Apakah Ibu memiliki Jamkesmas atau tidak","English":"Does mother have the card of National Health Insurance for the Poor and Near Poor?"},"label":{"Bahasa":"Jamkesmas","English":"Insurance"},"instance":{"openmrs_entity_id":"1493AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Ya","label":{"Bahasa":"Ya","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Tidak","label":{"Bahasa":"Tidak","English":"No"}}]},{"type":"note","name":"generated_note_name_30","label":{"Bahasa":"Riwayat Obstetrik","English":"Obstetric history"}},{"name":"gravida","hint":{"Bahasa":"Menunjukkan jumlah kehamilan Ibu","English":"Indicating mother's number of pregnancy"},"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":".>-1 and .<100"},"label":{"Bahasa":"Gravida","English":"Gravida"},"instance":{"openmrs_entity_id":"5624AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"integer"},{"name":"partus","hint":{"Bahasa":"Menunjukkan jumlah kelahiran / persalinan Ibu","English":"Indicating mother's number of birth/delivery"},"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":".>-1 and .<100"},"label":{"Bahasa":"Partus","English":"Parity"},"instance":{"openmrs_entity_id":"1053AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"integer"},{"name":"abortus","hint":{"Bahasa":"Menunjukkan jumlah berapa kali Ibu keguguran","English":"Indicating mother's number of abortion/miscarriage"},"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":".>-1 and .<100"},"label":{"Bahasa":"Abortus","English":"Abortus"},"instance":{"openmrs_entity_id":"1823AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"integer"},{"name":"hidup","hint":{"Bahasa":"Menunjukkan jumlah anak hidup sampai kehamilan sekarang","English":"Inidcating mother's number of alive children until the current pregnancy"},"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":".>-1 and .<100"},"label":{"Bahasa":"Hidup","English":"Alive"},"instance":{"openmrs_entity_id":"1825AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"integer"},{"instance":{"openmrs_entity_id":"1596AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"label":{"Bahasa":"Tanggal Lahir Anak Sebelumnya","English":"Birthdate of previous child"},"type":"date","name":"tanggal_lahir_anak_sebelumnya","hint":{"Bahasa":"Tanggal lahir anak sebelumnya","English":"The birthdate of previous child"}},{"type":"note","name":"generated_note_name_36","label":{"Bahasa":"Pemeriksaan Bidan","English":"Midwife chek-up"}},{"name":"hpht","hint":{"Bahasa":"Tanggal Hari Pertama Haid Terakhir Ibu","English":"Date of first day of last menstrual period"},"bind":{"required":"yes"},"label":{"Bahasa":"Tanggal HPHT","English":"Last Menstrual Period date"},"instance":{"openmrs_entity_id":"1427AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"date"},{"bind":{"calculate":"date(${hpht}+280)"},"type":"calculate","name":"edd","label":{"English":"Estimated Date of Delivery"}},{"bind":{"calculate":"format-date(${edd}, '%Y-%n-%e')"},"type":"hidden","name":"htp","instance":{"openmrs_entity_id":"5596AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"type":"note","name":"edd_note","label":{"Bahasa":"HTP: ${htp}","English":"Estimated Date of Delivery"}},{"bind":{"calculate":"int(((${today} - ${hpht}) div 7)+1)"},"type":"calculate","name":"usia_klinis","instance":{"openmrs_entity_id":"1438AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"type":"note","name":"generated_note_name_42","label":{"Bahasa":"Usia Klinis : ${usia_klinis}","English":"Gestational age (in weeks)"}},{"bind":{"calculate":"if((${usia_klinis}<'14'), 1, (if(${usia_klinis}>='14' and ${usia_klinis}<='28', 2, (if(${usia_klinis}>'28', 3, '')))))"},"type":"calculate","instance":{"openmrs_entity_id":"160665AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"trimester_ke","hint":{"Bahasa":"Menunjukkan trimester Ibu saat kunjungan / pelayanan","English":"Indicating pregnancy trimester on the day of mother's visit/service"}},{"type":"note","name":"generated_note_name_45","label":{"Bahasa":"Trimester Ke: ${trimester_ke}","English":"Trimester order"}},{"type":"date","name":"tanggal_memperoleh_buku_kia","label":{"Bahasa":"Tanggal memperoleh Buku KIA","English":"Date of recieving Maternal and Child Health Booklet"}},{"name":"bb_kg","hint":{"Bahasa":"Menunjukkan berat badan Ibu sebelum kehamilan (kg)","English":"Indicating mother's weight before being pregnant (kg)"},"bind":{"jr:constraintMsg":{"Bahasa":"Berat badan tidak boleh kurang dari nol","English":"Weight can not be less than zero"},"required":"yes","constraint":".>0 and .<150"},"label":{"Bahasa":"BB (Kg)","English":"Weight"},"instance":{"openmrs_entity_id":"160696AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"decimal"},{"name":"tb_cm","hint":{"Bahasa":"Menunjukkan tinggi badan Ibu (CM)","English":"Indicating mother's height (cm)"},"bind":{"jr:constraintMsg":{"Bahasa":"Tinggi badan tidak boleh kurang dari nol","English":"Height can not be less than zero"},"constraint":".>0 and .<200"},"label":{"Bahasa":"TB (Cm)","English":"Height"},"instance":{"openmrs_entity_id":"5090AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"decimal"},{"name":"lila_cm","hint":{"Bahasa":"Menunjukkan lingkar lengan Ibu pada saat kunjungan ANC (cm)","English":"Indicating mother's arm circumference 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 .<200"},"label":{"Bahasa":"LILA (cm)","English":"Mid-Upper Arm Circumference of mother"},"instance":{"openmrs_entity_id":"1343AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"decimal"},{"name":"persalinan_sebelumnya","hint":{"Bahasa":"Riwayat persalinan sebelumnya normal atau dengan komplikasi","English":"History of previous delivery whether normal or with complication"},"bind":{"relevant":"${gravida} != '1'"},"label":{"Bahasa":"Persalinan sebelumnya","English":"Previous labor"},"type":"select one","children":[{"instance":{"openmrs_code":"162193AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"normal","label":{"Bahasa":"Normal (N)","English":"Normal (N);"}},{"instance":{"openmrs_code":"116469AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tidak_normal","label":{"Bahasa":"Tidak Normal (dengan tindakan) (TN)","English":"Abnormal ( With Treatment)"}}]},{"name":"riwayat_komplikasi_kebidanan","hint":{"Bahasa":"Riwayat komplikasi yang dimiliki Ibu sebelumnya","English":"History of complication that mother previously had"},"label":{"Bahasa":"Riwayat Komplikasi Kebidanan","English":"Obstetric complication record"},"instance":{"openmrs_entity_id":"1430AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select all that apply","children":[{"instance":{"openmrs_code":"113399AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"abortus_berulang","label":{"Bahasa":"Abortus Berulang","English":"Repeated Abortus"}},{"instance":{"openmrs_code":"46AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ket","label":{"Bahasa":"KET","English":"Ectopic Pregnancy"}},{"instance":{"openmrs_code":"134006AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"mola","label":{"Bahasa":"Mola Hidatidosa","English":"Mola Hydatidosa"}},{"instance":{"openmrs_code":"129211AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"kpd","label":{"Bahasa":"KPD","English":"Premature Rupture of Membranes"}},{"instance":{"openmrs_code":"119975AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"cacat_kongenital","label":{"Bahasa":"Cacat Kongenital","English":"Congenital Abnormality"}},{"instance":{"openmrs_code":"1171AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"riwayat_sc","label":{"Bahasa":"Riwayat SC","English":"Section Caesaria"}},{"instance":{"openmrs_code":"118159AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"riwayat_ve_forseps","label":{"Bahasa":"Riwayat VE/Forseps","English":"Vacuum or Forceps"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"lainnya","label":{"Bahasa":"Lainnya","English":"Other"}}]},{"name":"penyakit_kronis","hint":{"Bahasa":"Penyakit yang pernah atau sedang dimiliki oleh Ibu (Isi NA jika tidak ada penyakit kronis)","English":"Indicating information of other chronical disease that mother has"},"label":{"Bahasa":"Penyakit Kronis","English":"Chronic disease"},"instance":{"openmrs_entity_id":"145439AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select all that apply","children":[{"instance":{"openmrs_code":"145341AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"hipertensi","label":{"Bahasa":"Hipertensi","English":"Hypertension"}},{"instance":{"openmrs_code":"119481AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"diabetes_melitus","label":{"Bahasa":"Diabetes Melitus","English":"Diabetes Mellitus"}},{"instance":{"openmrs_code":"139071AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"kelainan_jantung","label":{"Bahasa":"Kelainan Jantung","English":"Heart Disease"}},{"instance":{"openmrs_code":"6033AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"kelainan_ginjal","label":{"Bahasa":"Kelainan Ginjal","English":"Kidney Disease"}},{"instance":{"openmrs_code":"6032AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"kelainan_hati","label":{"Bahasa":"Kelainan Hati","English":"Liver Disease"}},{"instance":{"openmrs_code":"116128AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"malaria","label":{"Bahasa":"Malaria","English":"Malaria"}},{"instance":{"openmrs_code":"121375AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"asma","label":{"Bahasa":"Asma","English":"Asthma"}},{"instance":{"openmrs_code":"112493AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"sifilis","label":{"Bahasa":"IMS Sifilis","English":"Syphilis"}},{"instance":{"openmrs_code":"111759AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"HBV","label":{"Bahasa":"HBV ((HbsAg)","English":"Hepatitis B Infection (HbsAg)"}},{"instance":{"openmrs_code":"138571AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"hiv_aids","label":{"Bahasa":"HIV/AIDS","English":"HIV/AIDS"}},{"instance":{"openmrs_code":"112141AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tbc","label":{"Bahasa":"Tubercolusis","English":"TBC"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"lainnya","label":{"Bahasa":"Lainnya","English":"Other"}}]},{"instance":{"openmrs_entity_id":"160647AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"label":{"Bahasa":"Alergi","English":"Alergic"},"type":"text","name":"alergi","hint":{"Bahasa":"Alergi yang dimiliki oleh Ibu (Isi NA jika tidak ada alergi)","English":"Allergy that mother has (Write NA if mother has no allergy)"}},{"bind":{"calculate":"if(${tb_cm} <= 145, 'yes', 'no')"},"type":"calculate","instance":{"openmrs_entity_id":"162589AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"High_Risk_Labour_TB_risk","label":{"English":"High risk Labour due to maternal short stature"}},{"bind":{"calculate":"(if(selected(${riwayat_komplikasi_kebidanan},'riwayat_sc'), 'yes','no'))"},"type":"calculate","instance":{"openmrs_entity_id":"163155AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"High_Risk_Labour_Section_Cesarea_record_risk","label":{"English":"High risk Labour due to c-section history"}},{"bind":{"calculate":"(if(selected(${riwayat_komplikasi_kebidanan},'kpd'), 'yes','no'))"},"type":"calculate","instance":{"openmrs_entity_id":"163156AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"High_Risk_Labour_early_waterbreak","label":{"English":"High risk Labour due to history of ruptured membrane"}},{"bind":{"calculate":"(if(selected(${penyakit_kronis},'kelainan_jantung'), 'yes','no'))"},"type":"calculate","instance":{"openmrs_entity_id":"119270AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"High_Risk_cardiovascular_Disease_Record","label":{"English":"High risk case due to Cardiovacular Diseas"}},{"bind":{"calculate":"(if(selected(${penyakit_kronis},'kelainan_ginjal'), 'yes','no'))"},"type":"calculate","instance":{"openmrs_entity_id":"6033AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"High_Risk_kidney_disorder","label":{"English":"High risk case due to Kidney Disorder"}},{"bind":{"calculate":"(if(selected(${penyakit_kronis},'kelainan_hati'), 'yes','no'))"},"type":"calculate","instance":{"openmrs_entity_id":"156637AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"High_Risk_Heart_Disorder","label":{"English":"High risk case due to Heart Disorder"}},{"bind":{"calculate":"(if(selected(${penyakit_kronis},'asma'), 'yes','no'))"},"type":"calculate","instance":{"openmrs_entity_id":"121375AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"High_Risk_Asthma","label":{"English":"High risk case due to Asthma"}},{"bind":{"calculate":"(if(selected(${penyakit_kronis},'tbc'), 'yes','no'))"},"type":"calculate","instance":{"openmrs_entity_id":"1389AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"High_Risk_Tuberculosis","label":{"English":"High risk case due to Tuberculosis"}},{"bind":{"calculate":"(if(selected(${penyakit_kronis},'malaria'), 'yes','no'))"},"type":"calculate","instance":{"openmrs_entity_id":"160152AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"High_Risk_Malaria","label":{"English":"High risk case due to Malaria"}},{"bind":{"calculate":"(if(selected(${penyakit_kronis},'hiv_aids'), 'yes','no'))"},"type":"calculate","instance":{"openmrs_entity_id":"163210AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"High_Risk_HIV_AIDS","label":{"English":"High risk case due to HIV_AIDS"}},{"bind":{"calculate":"(if(selected(${penyakit_kronis},'sifilis'), 'yes','no')) and (if(selected(${penyakit_kronis},'HBV'), 'yes','no'))"},"type":"calculate","instance":{"openmrs_entity_id":"156660AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"High_Risk_STI_BBVs","label":{"English":"High risk case due to STIs_BBVs"}},{"bind":{"calculate":"(if(selected(${riwayat_komplikasi_kebidanan},'ket'), 'yes','no'))"},"type":"calculate","instance":{"openmrs_entity_id":"120237AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"High_Risk_Ectopic_Pregnancy","label":{"English":"High risk case due to Ectopic Pregnancy"}},{"bind":{"calculate":"if(${partus} >3, 'yes', 'no')"},"type":"calculate","instance":{"openmrs_entity_id":"163091AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"High_Risk_Pregnancy_Too_many_children","label":{"English":"High Risk Pregnancy due to Too Many Children"}},{"bind":{"calculate":"if(${lila_cm} < 23.5, 'yes', 'no')"},"type":"calculate","instance":{"openmrs_entity_id":"134725AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"High_Risk_Pregnancy_Protein_energy_Malnutrition","label":{"English":"High Risk Pregnancy due to Malnutrition"}},{"bind":{"calculate":"if(${abortus} > 3, 'yes', 'no')"},"type":"calculate","instance":{"openmrs_entity_id":"112791AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"High_Risk_Pregnancy_abortus","label":{"English":"High Risk Pregnancy due to History of Abortion"}},{"bind":{"calculate":"(if(selected(${riwayat_komplikasi_kebidanan},'mola'), 'yes','no'))"},"type":"calculate","instance":{"openmrs_entity_id":"134006AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"Other_High_Risk_Pregnancy_Mola_Hidatidosa","label":{"English":"High Risk Pregnancy due to Molar Pregnancy"}},{"bind":{"calculate":"(if(selected(${riwayat_komplikasi_kebidanan},'cacat_kongenital'), 'yes','no'))"},"type":"calculate","instance":{"openmrs_entity_id":"119975AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"Other_High_Risk_Pregnancy_congenital_abnormality","label":{"English":"High Risk Pregnancy due to Congenital Abnormality"}},{"bind":{"calculate":"(if(selected(${riwayat_komplikasi_kebidanan},'kpd'), 'yes','no'))"},"type":"calculate","instance":{"openmrs_entity_id":"163156AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"Other_High_Risk_Pregnancy_early_waterbreak","label":{"English":"High Risk Pregnancy due to history of ruptured membrane"}},{"instance":{"openmrs_entity_id":"encounter_end","openmrs_entity":"encounter"},"type":"end","name":"end"},{"type":"hidden","name":"relationalid"},{"type":"hidden","name":"type"},{"type":"hidden","name":"kartuIbuId"},{"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/kartu_anc_registration/form.xml b/opensrp-bidan/src/main/assets/www/form/kartu_anc_registration/form.xml deleted file mode 100644 index fa5fe3c..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_anc_registration/form.xml +++ /dev/null @@ -1,505 +0,0 @@ - - - - Tambah ANC - - Bahasa - English - - - Desa : - - - - - - - - Dusun : - - - - - - - - .<= - - - - - Tanggal Kunjungan - Date of Visit - Tanggal pemeriksaan kehamilan pertama kali oleh bidan - - - - - - - - Lokasi Periksa - Location of Service - - - - - Posyandu - Village Outreach Post - - - - Polindes - Health Clinic Post - - - - Puskesmas - Health Facility - - - - Rumah Ibu - Mother House - - - - Rumah Sakit - Hospital - - - - Lainnya - Other - - - - - - Lainnya - Other - Lainnya - Write other location - - - - - - Hasil pptest - Pregnancy Test - * - - - - - Positif - Positive - - - - Negatif - Negative - - - - - - - - - Jamkesmas - Insurance - Apakah Ibu memiliki Jamkesmas atau tidak - Does mother have the card of National Health Insurance for the Poor and Near Poor? - - - - - Ya - Yes - - - - Tidak - No - - - - - - Riwayat Obstetrik - Obstetric history - - - - Nilai yang dimasukkan tidak memenuhi syarat, mohon periksa kembali - The entered value doesn't meet the criteria, please check it again - Gravida - Gravida - Menunjukkan jumlah kehamilan Ibu - Indicating mother's number of pregnancy - - - - Nilai yang dimasukkan tidak memenuhi syarat, mohon periksa kembali - The entered value doesn't meet the criteria, please check it again - Partus - Parity - Menunjukkan jumlah kelahiran / persalinan Ibu - Indicating mother's number of birth/delivery - - - - Nilai yang dimasukkan tidak memenuhi syarat, mohon periksa kembali - The entered value doesn't meet the criteria, please check it again - Abortus - Abortus - Menunjukkan jumlah berapa kali Ibu keguguran - Indicating mother's number of abortion/miscarriage - - - - Nilai yang dimasukkan tidak memenuhi syarat, mohon periksa kembali - The entered value doesn't meet the criteria, please check it again - Hidup - Alive - Menunjukkan jumlah anak hidup sampai kehamilan sekarang - Inidcating mother's number of alive children until the current pregnancy - - - - Tanggal Lahir Anak Sebelumnya - Birthdate of previous child - Tanggal lahir anak sebelumnya - The birthdate of previous child - - - - Pemeriksaan Bidan - Midwife chek-up - - - - Tanggal HPHT - Last Menstrual Period date - * - Tanggal Hari Pertama Haid Terakhir Ibu - Date of first day of last menstrual period - - - - HTP: - - - Estimated Date of Delivery - - - - Usia Klinis : - - - Gestational age (in weeks) - - - - Trimester Ke: - - - Trimester order - - - - Tanggal memperoleh Buku KIA - Date of recieving Maternal and Child Health Booklet - - - - Berat badan tidak boleh kurang dari nol - Weight can not be less than zero - BB (Kg) - Weight - - Menunjukkan berat badan Ibu sebelum kehamilan (kg) - Indicating mother's weight before being pregnant (kg) - - - - Tinggi badan tidak boleh kurang dari nol - Height can not be less than zero - TB (Cm) - Height - Menunjukkan tinggi badan Ibu (CM) - Indicating mother's height (cm) - - - - Nilai yang dimasukkan tidak memenuhi syarat, mohon periksa kembali - The entered value doesn't meet the criteria, please check it again - LILA (cm) - Mid-Upper Arm Circumference of mother - Menunjukkan lingkar lengan Ibu pada saat kunjungan ANC (cm) - Indicating mother's arm circumference on ANC check-up - - - - - - Persalinan sebelumnya - Previous labor - Riwayat persalinan sebelumnya normal atau dengan komplikasi - History of previous delivery whether normal or with complication - - - - - Normal (N) - Normal (N); - - - - Tidak Normal (dengan tindakan) (TN) - Abnormal ( With Treatment) - - - - - - - - Riwayat Komplikasi Kebidanan - Obstetric complication record - Riwayat komplikasi yang dimiliki Ibu sebelumnya - History of complication that mother previously had - - - - - Abortus Berulang - Repeated Abortus - - - - KET - Ectopic Pregnancy - - - - Mola Hidatidosa - Mola Hydatidosa - - - - KPD - Premature Rupture of Membranes - - - - Cacat Kongenital - Congenital Abnormality - - - - Riwayat SC - Section Caesaria - - - - Riwayat VE/Forseps - Vacuum or Forceps - - - - Lainnya - Other - - - - - - - - Penyakit Kronis - Chronic disease - Penyakit yang pernah atau sedang dimiliki oleh Ibu (Isi NA jika tidak ada penyakit kronis) - Indicating information of other chronical disease that mother has - - - - - Hipertensi - Hypertension - - - - Diabetes Melitus - Diabetes Mellitus - - - - Kelainan Jantung - Heart Disease - - - - Kelainan Ginjal - Kidney Disease - - - - Kelainan Hati - Liver Disease - - - - Malaria - Malaria - - - - Asma - Asthma - - - - IMS Sifilis - Syphilis - - - - HBV ((HbsAg) - Hepatitis B Infection (HbsAg) - - - - HIV/AIDS - HIV/AIDS - - - - Tubercolusis - TBC - - - - Lainnya - Other - - - - - - Alergi - Alergic - Alergi yang dimiliki oleh Ibu (Isi NA jika tidak ada alergi) - Allergy that mother has (Write NA if mother has no allergy) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kartu_anc_registration/form_definition.json b/opensrp-bidan/src/main/assets/www/form/kartu_anc_registration/form_definition.json deleted file mode 100644 index 1599581..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_anc_registration/form_definition.json +++ /dev/null @@ -1,288 +0,0 @@ -{ - "form_data_definition_version": "3", - "form": { - "bind_type": "kartu_ibu", - "ec_bind_type": "ec_kartu_ibu", - "default_bind_path": "/model/instance/anc_registration/", - "fields": [ - { - "name": "id", - "shouldLoadValue": true - }, - { - "name": "start", - "bind": "/model/instance/anc_registration/start" - }, - { - "name": "end", - "bind": "/model/instance/anc_registration/end" - }, - { - "name": "pptest", - "bind": "/model/instance/anc_registration/pptest" - }, - { - "name": "existing_location", - "bind": "/model/instance/anc_registration/existing_location", - "shouldLoadValue": true - }, - { - "name": "lokasiPeriksa", - "bind": "/model/instance/anc_registration/Lokasi_periksa" - }, - { - "name": "cityVillage", - "bind": "/model/instance/anc_registration/Village", - "shouldLoadValue": true - }, - { - "name": "Province", - "bind": "/model/instance/anc_registration/Province", - "shouldLoadValue": true - }, - { - "name": "Sub-district", - "bind": "/model/instance/anc_registration/Sub-district", - "shouldLoadValue": true - }, - { - "name": "District", - "bind": "/model/instance/anc_registration/District", - "shouldLoadValue": true - }, - { - "name": "Sub-village", - "bind": "/model/instance/anc_registration/Sub-village", - "shouldLoadValue": true - }, - { - "name": "dusun", - "bind": "/model/instance/anc_registration/dusun" - }, - { - "name": "provinsi", - "bind": "/model/instance/anc_registration/provinsi" - }, - { - "name": "kabupaten", - "bind": "/model/instance/anc_registration/kabupaten" - }, - { - "name": "kecamatan", - "bind": "/model/instance/anc_registration/kecamatan" - }, - { - "name": "desa", - "bind": "/model/instance/anc_registration/desa" - }, - { - "name": "tanggalLahirAnakSebelumnya", - "bind": "/model/instance/anc_registration/tanggal_lahir_anak_sebelumnya" - }, - { - "name": "id", - "source": "kartu_ibu.ibu.id" - }, - { - "name": "referenceDate", - "bind": "/model/instance/anc_registration/tanggal_periksa", - "source": "kartu_ibu.ibu.referenceDate" - }, - { - "name": "gravida", - "bind": "/model/instance/anc_registration/gravida", - "shouldLoadValue": true - }, - { - "name": "partus", - "bind": "/model/instance/anc_registration/partus", - "shouldLoadValue": true - }, - { - "name": "abortus", - "bind": "/model/instance/anc_registration/abortus", - "shouldLoadValue": true - }, - { - "name": "hidup", - "bind": "/model/instance/anc_registration/hidup", - "shouldLoadValue": true - }, - { - "name": "persalinanSebelumnya", - "bind": "/model/instance/anc_registration/persalinan_sebelumnya", - "source": "kartu_ibu.ibu.persalinanSebelumnya" - }, - { - "name": "riwayatKomplikasiKebidanan", - "bind": "/model/instance/anc_registration/riwayat_komplikasi_kebidanan", - "source": "kartu_ibu.ibu.riwayatKomplikasiKebidanan" - }, - { - "name": "rkklainnya", - "bind": "/model/instance/anc_registration/riwayat_komplikasi_kebidananL", - "source": "kartu_ibu.ibu.rkklainnya" - }, - { - "name": "penyakitKronis", - "bind": "/model/instance/anc_registration/penyakit_kronis", - "source": "kartu_ibu.ibu.penyakitKronis" - }, - { - "name": "rpkLainnya", - "bind": "/model/instance/anc_registration/penyakit_kronisL", - "source": "kartu_ibu.ibu.rpkLainnya" - }, - { - "name": "Alergi", - "bind": "/model/instance/anc_registration/alergi", - "source": "kartu_ibu.ibu.Alergi" - }, - { - "name": "tanggalHPHT", - "bind": "/model/instance/anc_registration/hpht", - "source": "kartu_ibu.ibu.tanggalHPHT" - }, - { - "name": "htp", - "bind": "/model/instance/anc_registration/htp" - }, - { - "name": "usiaKlinis", - "bind": "/model/instance/anc_registration/usia_klinis" - }, - { - "name": "trimesterKe", - "bind": "/model/instance/anc_registration/trimester_ke" - }, - { - "name": "tanggalMemperolehBukuKia", - "bind": "/model/instance/anc_registration/tanggal_memperoleh_buku_kia", - "source": "kartu_ibu.ibu.tanggalMemperolehBukuKia" - }, - { - "name": "jamkesmas", - "bind": "/model/instance/anc_registration/jamkesmas" - }, - { - "name": "tbCM", - "bind": "/model/instance/anc_registration/tb_cm", - "source": "kartu_ibu.ibu.tbCM" - }, - { - "name": "bbKg", - "bind": "/model/instance/anc_registration/bb_kg", - "source": "kartu_ibu.ibu.bbKg" - }, - { - "name": "hasilPemeriksaanLILA", - "bind": "/model/instance/anc_registration/lila_cm", - "source": "kartu_ibu.ibu.hasilPemeriksaanLILA" - }, - { - "name": "highRiskPregnancyProteinEnergyMalnutrition", - "bind": "/model/instance/anc_registration/High_Risk_Pregnancy_Protein_energy_Malnutrition" - }, - { - "name": "malariaRisk", - "bind": "/model/instance/anc_registration/malaria_risk" - }, - { - "name": "highRiskLabourTBRisk", - "bind": "/model/instance/anc_registration/High_Risk_Labour_TB_risk" - }, - { - "name": "HighRiskPregnancyTooManyChildren", - "bind": "/model/instance/anc_registration/High_Risk_Pregnancy_Too_many_children" - }, - { - "name": "HighRiskPregnancyAbortus", - "bind": "/model/instance/anc_registration/High_Risk_Pregnancy_abortus" - }, - { - "name": "HighRiskLabourSectionCesareaRecord", - "bind": "/model/instance/anc_registration/High_Risk_Labour_Section_Cesarea_record_risk" - }, - { - "name": "highRiskSTIBBVs", - "bind": "/model/instance/anc_registration/High_Risk__STI_BBVs" - }, - { - "name": "highRiskEctopicPregnancy", - "bind": "/model/instance/anc_registration/High_Risk_Ectopic_Pregnancy" - }, - { - "name": "otherRiskMolaHidatidosa", - "bind": "/model/instance/anc_registration/Other_Risk_Mola_Hidatidosa" - }, - { - "name": "otherRiskCongenitalAbnormality", - "bind": "/model/instance/anc_registration/Other_Risk_congenital_abnormality" - }, - { - "name": "otherRiskEarlyWaterbreak", - "bind": "/model/instance/anc_registration/Other_Risk_early_waterbreak" - }, - { - "name": "highRiskCardiovascularDiseaseRecord", - "bind": "/model/instance/anc_registration/High_Risk_cardiovascular_Disease_Record" - }, - { - "name": "highRiskDidneyDisorder", - "bind": "/model/instance/anc_registration/High_Risk_kidney_disorder" - }, - { - "name": "highRiskHeartDisorder", - "bind": "/model/instance/anc_registration/High_Risk_Heart_Disorder" - }, - { - "name": "highRiskAsthma", - "bind": "/model/instance/anc_registration/High_Risk_Asthma" - }, - { - "name": "highRiskTuberculosis", - "bind": "/model/instance/anc_registration/High_Risk_Tuberculosis" - }, - { - "name": "highRiskMalaria", - "bind": "/model/instance/anc_registration/High_Risk_Malaria" - }, - { - "name": "highRiskHIVAIDS", - "bind": "/model/instance/anc_registration/High_Risk_HIV_AIDS" - }, - { - "name": "isOutOfArea", - "value": "false" - }, - { - "name": "isClosed", - "value": "false" - }, - { - "name": "isClosed", - "value": "false", - "source": "kartu_ibu.ibu.isClosed" - }, - { - "name": "submissionDate", - "bind": "/model/instance/anc_registration/today", - "source": "kartu_ibu.ibu.submissionDate" - }, - { - "name": "registrationDate", - "bind": "/model/instance/anc_registration/reg_date", - "source": "kartu_ibu.ibu.registrationDate" - }, - { - "name": "jenisKontrasepsi", - "value": "" - }, - { - "name": "type", - "bind": "/model/instance/anc_registration/type", - "source": "kartu_ibu.ibu.type" - } - ] - } -} diff --git a/opensrp-bidan/src/main/assets/www/form/kartu_anc_registration/model.xml b/opensrp-bidan/src/main/assets/www/form/kartu_anc_registration/model.xml deleted file mode 100644 index d52562f..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_anc_registration/model.xml +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - anc - - - - - - - \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kartu_anc_registration_oa/form.xml b/opensrp-bidan/src/main/assets/www/form/kartu_anc_registration_oa/form.xml deleted file mode 100644 index 9a367e4..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_anc_registration_oa/form.xml +++ /dev/null @@ -1,1722 +0,0 @@ - - - - - Register ANC - - Bahasa - - - Tanggal Kunjungan - Tanggal pemeriksaan kehamilan pertama kali oleh Bidan - - - - Identitas Ibu - - - - Puskesmas - * - Nama puskesmas tempat ibu melakukan pemeriksaan - - - - No. Ibu - - - - Nama Ibu - * - Nama lengkap Ibu - - - - Nama suami - * - Nama lengkap Suami - - - - Tanggal lahir - * - Tanggal lahir Ibu - - - - - Umur: - - - - - - Alamat domisili - Alamat tempat tinggal (rumah) Ibu - - - - Propinsi - Propinsi tempat tinggal Ibu - - - - - - kabupaten - Kabupaten tempat tinggal Ibu - - - - - Lombok Barat - - - - Lombok Tengah - - - - Lombok Timur - - - - - - - - kecamatan - Kecamatan tempat tinggal Ibu - - - - - Pujut - - - - Janapria - - - - Lainnya - - - - - - kecamatan - Kecamatan tempat tinggal Ibu - - - - desa Tempat tinggal Ibu - Desa - - ... - - - - Lekor - Jango - Janapria - Saba - Setuta - Pendem - Lainnya - Sengkol - Tanak Awu - Ketara - Kawo - Pengembur - PKM Sengkol - Segala Anyar - Lainnya - - - - desa Tempat tinggal Ibu - Desa - - - - dusun Tempat tinggal Ibu - Dusun - - ... - - - - Kale - Piyang - Soweng - Senundal - Jomang - Penambong - Peresak - Pesarih - Sedo - Lotir - Belong - Sereneng - Sengkol I - Sengkol II - Junge - Gentang - Tajuk - Rebile - Perendik - Tanak Awu I - Tanak Awu II - Selawang - Reak I - Reak II - Singe - Gantang Lauk - Gantang Daye - Tatak - Tanak Awu Bat - Tanpok - Jambek - Sempalan - Sarah - Reban - Plangsang - Bagek Dewe - Ketare - Dese - Dayen Rurung - Selak - Lebak - Sampet - Perigi - Abe - Kampu - Embung Rungkas - Bale Montong I - Bale Montong II - Batu Bangke - Pengadang - Karang Jangkong - Balen Along - Dayen Kubur - Gubuk Direk - Sarang Angin - Karang Daye - Gilik - Gampung - Wareng - Pance - Bumi Gora - Buntereng - Gonjong - Pengembur I - Pengembur II - Pengembur III - Penyampi - Batu Belek - Tawah - Perigi - Sinah - Siwang - Tamping - Sepit - Keramat - Anak Anjan - Kadik I - Kadik II - Penupi - Penaok - Dasan Duah - Lamben - Segale - Karang baru - Tenang Baru - Tenang - Bolok - Lekor Barat - Lekor Timur - Lekor Tengah - Sandat - Bare Putih - Pelapak - Menteger - Ambat - Berenge - Pepao Barat I - Pepao Barat II - Pepao Timur - Presak - Lendang Jawe - Kapet - Lempenge - Montong Bile - Gulung - Walun - Belo - Dongger - Wiyung - Embung Wile - Santong - Selaping - Sondo - Lengkok Bunut - Renge - Taken-Aken - Sesok - Puntik Baru - Prigi - Jango Utara - Jango Selatan - Batu Ngreng - Arba - Rungkang Barat - Rungkang Timur - Gerepek - Kampung Baru - Kenyalu Barat - Kenyalu Timur - Kenyalu Selatan - Kenyalu Utara - Kenyalu Tengah - Perok Timur - Perok Barat - Tempek-Empek - Nunang I - Pengebat - Sadah - Batu Bangus - Batu Kembar I - Batu Kembar II - Penambong - Lemokek - Lambah Olot - Tonjong - Jembe Barat - Jembe Timur - Jembe Utara - Selek - Selek Direk - Masjaya - Melati - Gundu - Janggawana Selatan - Janggawana Utara - Janggawana - Janggawana Tengah - Sengkerek - Keruak - Keruak Utara - Presak Sanggeng - Pengempok - Lingkok Buak Barat - Lingkok Buak Timur - Lingkok Buak Tengah - Terentem - Tentram - Suangke - Siwi - Nunang Selatan - Juna - Setuta Timur - Setuta Barat - Liwung Satu - Liwung Dua - Batu Belek - Biletawah - Pendem - Nyangget - Maliklo - Montong Bile - Gelondong - Penuntut - Kuang - Lekong Bangkon - Jangka - Jelitong - Gelung - Piling - Petorok - Karang Majelo - - - - dusun Tempat tinggal Ibu - Dusun - - - - Pendidikan - Pendidikan terakhir Ibu - - ... - Sekolah Dasar (SD) - Sekolah Menengah Pertama (SMP) - Sekolah Menengah Atas (SMA) - Perguruan Tinggi - Tidak sekolah - - - - - Agama - Agama Ibu - - ... - Islam - Hindu - Kristen - Katolik - Budha - Lainnya - - - - - Pekerjaan - Pekerjaan Ibu - - - - - - Gakin/ Tidak - Apakah ibu termasuk keluarga miskin atau tidak - - - - - Ya (Y) - - - - Tidak (T) - - - - - - Posyandu - * - Nama posyandu tempat Ibu menerima pelayanan kesehatan - - - - Nama kader - Nama kader posyandu yang memberikan Ibu pelayanan kesehatan - - - - Nama dukun - Nama dukun yang menemani Ibu pada saat menerima pelayanan kesehatan - - - - Asuransi Jiwa - Jenis asuransi yang dimiliki Ibu - - ... - Jaminan Kesehatan Masyarakat (Jamkesmas) - Jaminan Sosial dan Ketenagakerjaan (Jamsostek) - Jaminan Kesehatan Daerah (Jamkesda) - Asuransi Kesehatan (Askes) - Jaminan Persalinan (Jampersal) - Tidak memiliki asuransi/pembiayaan - Jika Ya (√) - Jika Tidak (x) - - - - - Golongan Darah - * - Menunjukkan golongan darah Ibu - - ... - A (A) - B (B) - AB (AB) - O (O) - Belum diketahui - - - - - - - Apakah ibu memiliki nomor telpon? - * - Menunjukkan nomor telpon Ibu yang dapat dihubungi - - - - - Ya - - - - Tidak - - - - - - Nomer telpon tidak boleh lebih dari 12 digit - Nomor telpon/Hp - * - Nomor telpon/Hp yang dimiliki oleh Ibu - - - - Riwayat Obstetric - - - - Nilai yang dimasukkan tidak memenuhi syarat, mohon periksa kembali - Gravida - Menunjukkan jumlah kehamilan Ibu - - - - Nilai yang dimasukkan tidak memenuhi syarat, mohon periksa kembali - Partus - Menunjukkan jumlah kelahiran / persalinan Ibu - - - - abortus tidak boleh lebih dari Gravida - Partus - Abortus - Menunjukkan jumlah berapa kali Ibu keguguran - - - - Nilai yang dimasukkan tidak memenuhi syarat, mohon periksa kembali - Hidup - Menunjukkan jumlah anak hidup sampai kehamilan sekarang - - - - - - Persalinan sebelumnya - Riwayat persalinan sebelumnya normal atau dengan komplikasi - - - - - Normal (N) - - - - Tidak Normal (dengan tindakan) (TN) - - - - Tidak pernah bersalin sebelumnya - - - - Normal (N) - - - - Tidak Normal (dengan tindakan) (TN) - - - - - - - - Apakah Ibu memiliki Riwayat Komplikasi Kebidanan? - Diisi 'Ya' jika ibu memiliki faktor seperti : abortus berulang, KET, mola, KPD, riwayat SC, atau riwayat VE. - - - - - Ya - - - - Tidak - - - - - - Riwayat Komplikasi Kebidanan - * - Riwayat komplikasi yang dimiliki Ibu sebelumnya - - ... - Abortus Berulang - KET - Mola Hidatidosa - KPD - Cacat Kongenital - Riwayat SC - Riwayat VE/Forseps - Lainnya - - - - - Komplikasi Lainnya - * - Menunjukkan keterangan komplikasi lain yang diderita Ibu hamil - - - - - - Apakah Ibu memiliki Riwayat Penyakit Kronis - Disi 'Ya' jika ibu memiliki penyakit kronis seperti: Hipertensi, Diabetes Melitus, Jantung, Malaria, asma, dan lainnya - - - - - Ya - - - - Tidak - - - - - - Penyakit Kronis - * - Penyakit yang pernah atau sedang dimiliki oleh Ibu (Isi NA jika tidak ada penyakit kronis) - - ... - Hipertensi - Diabetes Melitus - Kelainan Jantung - Kelainan Ginjal - Kelainan Hati - STI/BBVs - Malaria - Asma - IMS Sifilis - IMS HbsAg - HIV/AIDS - Tubercolusis - Lainnya - Hipertensi - Diabetes Melitus - Kelainan Jantung - Kelainan Ginjal - Kelainan Hati - STI/BBVs - Malaria - Asma - IMS Sifilis - IMS HbsAg - HIV/AIDS - Tubercolusis - Lainnya - - - - - Penyakit Kronis Lainnya - Menunjukkan keterangan penyakit kronis - - - - - - Apakah ibu memiliki alergi - * - Diisi 'ya' jika ibu memiliki alergi - - - - - Ya - - - - Tidak - - - - - - Alergi - * - Alergi yang dimiliki oleh Ibu (Isi NA jika tidak ada alergi) - - - - - - Kelainan Bentuk Panggul - Menunjukkan apakah panggul Ibu mengalami kelainan atau tidak - - - - - Ya - - - - Tidak - - - - - - Pemeriksaan Bidan - - - - Tanggal HPHT - Tanggal Hari Pertama Haid Terakhir Ibu - - - - - HTP: - - - - - - - Usia Klinis : - - - - - - - Trimester Ke: - - - - - - Kunjungan ANC harus sesuai dengan trimester dari ibu - K1 - K4? - Diisi dengan K1 atau K2 sampai dengan K4 - - - - - - Buku KIA - Menunjukkan apakah Ibu memiliki buku KIA atau tidak - - - - - Memiliki (M) - - - - Tidak Memiliki (TM) - - - - Memiliki (M) - - - - Tidak Memiliki (TM) - - - - - - Tanggal memperoleh Buku KIA - - - - - - Jamkesmas - Apakah Ibu membawa Jamkesmas atau tidak - - - - - Jaminan Kesehatan Masyarakat (Jamkesmas) - - - - Jaminan Sosial dan Ketenagakerjaan (Jamsostek) - - - - Jaminan Kesehatan Daerah (Jamkesda) - - - - Asuransi Kesehatan (Askes) - - - - Jaminan Persalinan (Jampersal) - - - - Tidak memiliki asuransi/pembiayaan - - - - Jika Ya (√) - - - - Jika Tidak (x) - - - - - - - - Cara Masuk Tempat Pelayanan - Cara Ibu untuk masuk ke tempat pelayanan - - - - - Atas Permintaan Sendiri (APS) - - - - Rujukan Dokter (Dr) - - - - Rujukan Bidan (Bd) - - - - Rujukan Dukun (RD) - - - - Rujukan Polindes (Pol) - - - - Rujukan Puskesmas Pembantu ( PST) - - - - Rujukan Puskesmas (PKS) - - - - Rujukan Rumah Bersalin (RB) - - - - Rujukan Rumah Sakit Ibu dan Anak (RSIA) - - - - - - Anamnesis Ibu - Diisi dengan keluhan atau hal-hal yang dirasakan ibu selama hamil - - - - Berat badan tidak boleh kurang dari nol - BB (Kg) - * - Menunjukkan berat badan Ibu sebelum kehamilan (kg) - - - - Tinggi badan tidak boleh kurang dari nol - TB (Cm) - Menunjukkan tinggi badan Ibu (CM) - - - - Nilai yang dimasukkan tidak memenuhi syarat, mohon periksa kembali - BB (Kg) - Menunjukkan berat badan Ibu pada saat kunjungan ANC (kg) - - - - Nilai yang dimasukkan tidak memenuhi syarat, mohon periksa kembali - TD (Sistolik) - Menunjukkan tekanan darah (Sistolik) Ibu pada saat kunjungan ANC (mmHg) - - - - Nilai yang dimasukkan tidak memenuhi syarat, mohon periksa kembali - TD (Diastolik) - Menunjukkan tekanan darah (Diastolik) Ibu pada saat kunjungan ANC (mmHg) - - - - Nilai yang dimasukkan tidak memenuhi syarat, mohon periksa kembali - LILA (cm) - Menunjukkan lingkar lengan Ibu pada saat kunjungan ANC (cm) - - - - - - Status Gizi ibu - Menunjukkan status gizi Ibu pada saat kunjungan ANC (Kg) - - - - - Kekurangan Energi Kronis (KEK) - - - - Normal (N) - - - - - - Nilai yang dimasukkan tidak memenuhi syarat, mohon periksa kembali - TFU - Menunjukkan Tinggi Fundus Uteri Ibu pada saat Kunjungan ANC (cm) - - - - - - Refleks Patela Ibu - Menunjukkan hasil pemeriksaan Refleks Patella Ibu pada saat kunjungan ANC - - - - - Ada (+) - - - - Tidak (-) - - - - - - Nilai yang dimasukkan tidak memenuhi syarat, mohon periksa kembali - DJJ - Menunjukkan hasil perhitungan Denyut Jantung Janin per menit pada saat kunjungan ANC - - - - - - Kepala Janin Terhadap PAP - * - Menunjukkan apakah kepala janin sudah masuk Pintu atas Panggul atau tidak - - - - - Masuk (M) - - - - Belum Masuk (BM) - - - - - - - Taksiran Berat Janin: - - - Menunjukkan berapa hasil Perhitungan Taksiran Berat badan janin (gram) - - - - - - Persentasi Janin - Bagian terendah dari janin dalam perut Ibu - - - - - Kepala (KP) - - - - Bokong / Sungsang (BS) - - - - Letak Lintang / Obligue (LLO) - - - - - - - - Jumlah Janin - Berapa jumlah janin yang ada dalam uterus Ibu - - - - - Tunggal (T) - - - - Ganda (G) - - - - - - Status Imunisasi TT - Menunjukkan status Imunisasi TT yang diberikan kepada Ibu - - ... - TT Ke 0 (T0) - TT ke 1 (T1) - TT Ke 2 (T2) - TT ke 3 (T3) TT ke 4 (TT4) - TT ke Ke 5 (TT5) - Ibu telah menerima imunisasi TT yang lengkap - - - - - - - Injeksi TT dilakukan - Menunjukkan apakah ibu mendapatkan suntik TT pada saat kunjungan ANC atau tidak - - - - - Jika dilakukan (√) - - - - Jika tidak dilakukan (x) - - - - - - - - Catat di Buku Kia - Semua Hasil Pemeriksaan dicatat dibuku KIA - - - - - Jika dilakukan (√) - - - - Jika tidak dilakukan (x) - - - - - - - - Pelayanan Fe dilakukan - Menunjukkan pelayanan Fe dilakukan atau tidak - - - - - Ya - - - - Tidak - - - - - - Nilai yang dimasukkan tidak memenuhi syarat, mohon periksa kembali - Jumlah Fe yang diberikan - Menunjukkan jumlah Fe yang diberikan saat kunjungan ANC (tab/botol) - - - - - - Apakah anda melakukan pemeriksaan Laboratorium? - Menunjukan apakah Ibu melakukan pemeriksaan laboratorium terkait Hb, Protein Uria, Gula Darah, Thalasemia dan Sifilis - - - - - Ya - - - - Tidak - - - - - - - - Periksa Hb dilakukan - * - Menunjukkan apakah ibu melakukan sudah pemeriksaan Hb di Laboratorium atau tidak - - - - - Jika dilakukan (√) - - - - Jika tidak dilakukan (x) - - - - - - Nilai yang dimasukkan tidak memenuhi syarat, mohon periksa kembali - Hasil periksa Hb - Hasil pemeriksaan Hb Ibu dari laboratorium - - - - - - Anemia? - Menunjukkan apakah Ibu mengalami anemia atau tidak - - - - - Positif (+) - - - - Negatif (-) - - - - - - - - Protein Uria - Menunjukkan kadar protein pada urine Ibu - - - - - Positif (+) - - - - Negatif (-) - - - - - - - - Gula Darah - Menunjukkan tingkat gula darah Ibu apakah >140 mg/dl atau < 140 mg/dl - - - - - > 140 mg/dl (+) - - - - < 140 mg/dl (-) - - - - - - - - Thalasemia - Menunjukkan apakah Ibu mengidap penyakit Thalasemia atau tidak - - - - - Positif (+) - - - - Negatif (-) - - - - - - - - Sifilis - Menunjukkan apakah Ibu mengidap Sifilis atau tidak - - - - - Positif (+) - - - - Negatif (-) - - - - - - - - HbsAg - Menunjukkan apakah Ibu mengidap Hepatitis B surface Antigen - - - - - Positif (+) - - - - Negatif (-) - - - - - - - - Apakah anda melakukan Integrasi Program terhadap Ibu Hamil? - Menunjukan detail Integrasi Program yang diberikan kepada Ibu hamil - - - - - Ya - - - - Tidak - - - - - - - - VCT - Menunjukkan apakah Ibu melakukan Voluntary Counseling Test atau tidak - - - - - Jika dilakukan (√) - - - - Jika tidak dilakukan (x) - - - - - - - - Periksa darah untuk uji PMTCT - Menunjukkan jika Ibu melakukan pemeriksaan darah untuk Uji PMTCT atau tidak - - - - - Jika dilakukan (√) - - - - Jika tidak dilakukan (x) - - - - - - - - Serologi - Menunjukkan hasil pemeriksaan Serologi pada Ibu hamil - - - - - Positif (+) - - - - Negatif (-) - - - - - - ARV Profilaksis - Menunjukkan jenis obat pada Ibu yang mengalami PMTCT - - - - - - Periksa darah untuk uji Malaria - * - Menunjukkan apakah Ibu melakukan pemeriksaan darah, yang bertujuan memastikan apakah ada parasit penyebab Malaria dalam darah Ibu - - - - - Jika dilakukan (√) - - - - Jika tidak dilakukan (x) - - - - - - - - Malaria - Menunjukkan Apakah ibu Mengidap Malaria atau tidak - - - - - Positif (+) - - - - Negatif (-) - - - - - - - - Obat malaria - Menunjukkan Jenis Obat Malaria yang Diberikan Ke Ibu - - - - - (ZDV) - - - - (NVP) - - - - (TC) - - - - - - - - memasang kelambu Berinsektisida - Menunjukkan Apakah Ibu Memasang Kelambu Berinsektisida atau tidak - - - - - Jika dilakukan (√) - - - - Jika tidak dilakukan (x) - - - - - - - - Periksa dahak - Menunjukkan Apakah Ibu melakukan Pemeriksaan Dahak Untuk tes TB - - - - - JIka dilakukan (√) - - - - Jika Tidak dilakukan (x) - - - - - - - - TBC - Menunjukkan Apakah Ibu Mengidap TBC atau tidak - - - - - Positif (+) - - - - Negatif (-) - - - - - - - - Obat TBC - Nama Obat TBC yang diberikan Kepada Ibu - - - - - Rifampisin (R) - - - - INH (H) - - - - Pyrazinamid (Z) - - - - Etahmbutol - - - - - - Resiko Terdeteksi Pertama Kali Oleh - Pendeteksi pertama komplikasi pada kehamilan Ibu - - ... - Pasien (P) - Keluarga (K) - Masyarakat (M) - Dukun (D) - Kader (K) - Bidan (B) - Dokter (D) - Dokter Spesialis Obsestri dan Gemotologi (DSOG) - Tidak ada resiko terdeteksi - - - - - Komplikasi dalam Kehamilan - Menunjukkan Komplikasi Kehamilan pada Ibu - - ... - Hipertensi dalam Kehamilan (HDK) - Abortus (AS) - Mola (ML) - Kehamilan Ektopit Terganggu (KET) - Hemoragi Post Partum (HPP) - Ante Partum Bleeding (APB) - Injeksi Jalan Lahir (IJL) - Partum Kasep (PK) - Partus Lama (PL) - Demam Berdarah (DB) - Tifus Abdominalis (TA) - Sepsis (S) - Tidak ada komplikasi kehamilan - - - - - - - Apakah Anda merujuk Ibu Hamil ke fasilitas kesehatan lainnya? - Menunjukkan bahwa bidan merujuk ibu hamil ke ke tempat fasilitas kesehatan lainnya - - - - - Ya - - - - Tidak - - - - - - Dirujuk Ke - Lokasi Tujuan Rujukan Ibu Jika Mengalami Komplikasi Kehamilan - - ... - Pusat Kesehatan Masyarakat (Puskesmas ) - Rumah Bersalin (RB) - Rumah Sakit Ibu dan Anak (RSIA) - Rumah Sakit (RS) - Lain-lain (LN) - - - - - lain-lain - Lokasi Tujuan Rujukan selain yang disebutkan Jika ibu Mengalami Komplikasi Kehamilan - - - - - - Keadaan Ibu saat Tiba - Keadaan saat ibu tiba Tempat rujukan - - - - - Hidup (H) - - - - Mati (M) - - - - - - - - Keadaan Ibu saat Pulang - Keadaan saat ibu Pulang dari Tempat Rujukan - - - - - Hidup (H) - - - - Mati (M) - - - - - - Keterangan - diisi dengan keterangan - - - - - - - masuk kategori RT (Resiko Tinggi), karena: - - , - - , - - - - * - - - - - OK - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/opensrp-bidan/src/main/assets/www/form/kartu_anc_registration_oa/form_definition.json b/opensrp-bidan/src/main/assets/www/form/kartu_anc_registration_oa/form_definition.json deleted file mode 100644 index cd0eecb..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_anc_registration_oa/form_definition.json +++ /dev/null @@ -1,601 +0,0 @@ -{ - "form_data_definition_version": "1", - "form": { - "bind_type": "kartu_ibu", - "default_bind_path": "/model/instance/Register_ANC/", - "fields": [ - { - "name": "id", - "shouldLoadValue": true - }, - { - "name": "motherId", - "shouldLoadValue": true, - "source": "kartu_ibu.ibu.id" - }, - { - "name": "referenceDate", - "bind": "/model/instance/Register_ANC/tanggal_periksa", - "source": "kartu_ibu.ibu.referenceDate" - }, - { - "name": "puskesmas", - "bind": "/model/instance/Register_ANC/puskesmas" - }, - { - "name": "noIbu", - "bind": "/model/instance/Register_ANC/no_ibu" - }, - { - "name": "namalengkap", - "bind": "/model/instance/Register_ANC/nama_lengkap" - }, - { - "name": "namaSuami", - "bind": "/model/instance/Register_ANC/nama_suami" - }, - { - "name": "tanggalLahir", - "bind": "/model/instance/Register_ANC/tanggal_lahir_ibu" - }, - { - "name": "umur", - "bind": "/model/instance/Register_ANC/umur" - }, - { - "name": "alamatDomisili", - "bind": "/model/instance/Register_ANC/alamat_domisili" - }, - { - "name": "propinsi", - "bind": "/model/instance/Register_ANC/propinsi" - }, - { - "name": "kabupaten", - "bind": "/model/instance/Register_ANC/kabupaten" - }, - { - "name": "kecamatan", - "bind": "/model/instance/Register_ANC/kecamatan" - }, - { - "name": "kecamatanl", - "bind": "/model/instance/Register_ANC/kecamatanl" - }, - { - "name": "desa", - "bind": "/model/instance/Register_ANC/desa" - }, - - { - "name": "dusun", - "bind": "/model/instance/Register_ANC/dusun" - }, - - { - "name": "pendidikan", - "bind": "/model/instance/Register_ANC/pendidikan" - }, - { - "name": "agama", - "bind": "/model/instance/Register_ANC/agama" - }, - { - "name": "pekerjaan", - "bind": "/model/instance/Register_ANC/pekerjaan" - }, - { - "name": "gakinTidak", - "bind": "/model/instance/Register_ANC/gakin_tidak" - }, - { - "name": "posyandu", - "bind": "/model/instance/Register_ANC/posyandu" - }, - { - "name": "namaKader", - "bind": "/model/instance/Register_ANC/nama_kader" - }, - { - "name": "namaDukun", - "bind": "/model/instance/Register_ANC/nama_dukun" - }, - { - "name": "asuransiJiwa", - "bind": "/model/instance/Register_ANC/asuransi_jiwa" - }, - { - "name": "golonganDarah", - "bind": "/model/instance/Register_ANC/golongan_darah" - }, - { - "name": "telponMemilikiTidak", - "bind": "/model/instance/Register_ANC/nomortelpon" - }, - { - "name": "NomorTelponHp", - "bind": "/model/instance/Register_ANC/nomor_telpon_hp" - }, - { - "name": "gravida", - "bind": "/model/instance/Register_ANC/gravida" - }, - { - "name": "partus", - "bind": "/model/instance/Register_ANC/partus" - }, - { - "name": "abortus", - "bind": "/model/instance/Register_ANC/abortus" - }, - { - "name": "hidup", - "bind": "/model/instance/Register_ANC/hidup" - }, - { - "name": "persalinanSebelumnya", - "bind": "/model/instance/Register_ANC/persalinan_sebelumnya", - "source": "kartu_ibu.ibu.persalinanSebelumnya" - }, - { - "name": "rkk", - "bind": "/model/instance/Register_ANC/rkk", - "source": "kartu_ibu.ibu.rkk" - }, - { - "name": "riwayatKomplikasiKebidanan", - "bind": "/model/instance/Register_ANC/riwayat_komplikasi_kebidanan", - "source": "kartu_ibu.ibu.riwayatKomplikasiKebidanan" - }, - { - "name": "rkklainnya", - "bind": "/model/instance/Register_ANC/rkklainnya", - "source": "kartu_ibu.ibu.rkklainnya" - }, - { - "name": "kronis", - "bind": "/model/instance/Register_ANC/kronis", - "source": "kartu_ibu.ibu.kronis" - }, - { - "name": "penyakitKronis", - "bind": "/model/instance/Register_ANC/penyakit_kronis", - "source": "kartu_ibu.ibu.penyakitKronis" - }, - { - "name": "rpkLainnya", - "bind": "/model/instance/Register_ANC/rpklainnya", - "source": "kartu_ibu.ibu.rpkLainnya" - }, - { - "name": "Alergi", - "bind": "/model/instance/Register_ANC/alergi", - "source": "kartu_ibu.ibu.Alergi" - }, - { - "name": "kelainanBentuk", - "bind": "/model/instance/Register_ANC/kelainanbentuk" - }, - { - "name": "tanggalHPHT", - "bind": "/model/instance/Register_ANC/tanggal_hpht", - "source": "kartu_ibu.ibu.tanggalHPHT" - }, - { - "name": "htp", - "bind": "/model/instance/Register_ANC/htp" - }, - { - "name": "trimesterKe", - "bind": "/model/instance/Register_ANC/trimester_ke" - }, - { - "name": "ancKe", - "bind": "/model/instance/Register_ANC/anc_ke" - }, - { - "name": "bukuKIA", - "bind": "/model/instance/Register_ANC/buku_kia", - "source": "kartu_ibu.ibu.bukuKIA" - }, - { - "name": "tanggalMemperolehBukuKia", - "bind": "/model/instance/Register_ANC/tanggal_memperoleh_buku_kia", - "source": "kartu_ibu.ibu.tanggalMemperolehBukuKia" - }, - { - "name": "jamkesmas", - "bind": "/model/instance/Register_ANC/jamkesmas" - }, - { - "name": "caraMasukTempatPelayanan", - "bind": "/model/instance/Register_ANC/cara_masuk_tempat_pelayanan" - }, - { - "name": "anamnesisIbu", - "bind": "/model/instance/Register_ANC/anamnesis_ibu" - }, - { - "name": "bbSebelumHamil", - "bind": "/model/instance/Register_ANC/bb_kg_1", - "source": "kartu_ibu.ibu.bbSebelumHamil" - }, - { - "name": "tbCM", - "bind": "/model/instance/Register_ANC/tb_cm", - "source": "kartu_ibu.ibu.tbCM" - }, - { - "name": "bbKg", - "bind": "/model/instance/Register_ANC/bb_kg_2", - "source": "kartu_ibu.ibu.bbKg" - }, - { - "name": "tandaVitalTDSistolik", - "bind": "/model/instance/Register_ANC/td_sistolik" - }, - { - "name": "tandaVitalTDDiastolik", - "bind": "/model/instance/Register_ANC/td_diastolik" - }, - { - "name": "hasilPemeriksaanLILA", - "bind": "/model/instance/Register_ANC/lila_cm", - "source": "kartu_ibu.ibu.hasilPemeriksaanLILA" - }, - { - "name": "statusGiziibu", - "bind": "/model/instance/Register_ANC/status_gizi_ibu", - "source": "kartu_ibu.ibu.statusGiziibu" - }, - { - "name": "tfu", - "bind": "/model/instance/Register_ANC_only/tfu", - "source": "kartu_ibu.ibu.tfu" - }, - { - "name": "refleksPatelaIbu", - "bind": "/model/instance/Register_ANC_only/refleks_patela_ibu", - "source": "kartu_ibu.ibu.refleksPatelaIbu" - }, - { - "name": "djj", - "bind": "/model/instance/Register_ANC_only/djj", - "source": "kartu_ibu.ibu.djj" - }, - { - "name": "kepalaJaninTerhadapPAP", - "bind": "/model/instance/Register_ANC_only/kepala_terhadap_janin_pap", - "source": "kartu_ibu.ibu.kepalaJaninTerhadapPAP" - }, - { - "name": "taksiranBeratJanin", - "bind": "/model/instance/Register_ANC_only/taksiran_berat_janin", - "source": "kartu_ibu.ibu.taksiranBeratJanin" - }, - { - "name": "persentasiJanin", - "bind": "/model/instance/Register_ANC_only/persentasi_janin", - "source": "kartu_ibu.ibu.persentasiJanin" - }, - { - "name": "jumlahJanin", - "bind": "/model/instance/Register_ANC_only/jumlah_janin", - "source": "kartu_ibu.ibu.jumlahJanin" - }, - { - "name": "statusImunisasitt", - "bind": "/model/instance/Register_ANC_only/status_imunisasi_tt", - "source": "kartu_ibu.ibu.statusImunisasitt" - }, - { - "name": "pelayananInjeksitt", - "bind": "/model/instance/Register_ANC_only/pelayanan_injeksi_tt", - "source": "kartu_ibu.ibu.pelayananInjeksitt" - }, - { - "name": "pelayananCatatDiBukuKia", - "bind": "/model/instance/Register_ANC_only/pelayanan_catat_buku_kia", - "source": "kartu_ibu.ibu.pelayananCatatDiBukuKia" - }, - { - "name": "pelayananfe", - "bind": "/model/instance/Register_ANC_only/pelayananfe", - "source": "kartu_ibu.ibu.pelayananfe" - }, - { - "name": "pelayananFe", - "bind": "/model/instance/Register_ANC_only/pelayanan_fe", - "source": "kartu_ibu.ibu.pelayananFe" - }, - { - "name": "labCheck", - "bind": "/model/instance/Register_ANC_only/Labcheck", - "source": "kartu_ibu.ibu.labCheck" - }, - { - "name": "laboratoriumPeriksaHbDilakukan", - "bind": "/model/instance/Register_ANC/laboratorium_periksa_hb_dilakukan" - }, - { - "name": "laboratoriumPeriksaHbHasil", - "bind": "/model/instance/Register_ANC/laboratorium_periksa_hb_hasil" - }, - { - "name": "laboratoriumPeriksaHbAnemia", - "bind": "/model/instance/Register_ANC/laboratorium_periksa_hb_anemia" - }, - { - "name": "laboratoriumProteinUria", - "bind": "/model/instance/Register_ANC/laboratorium_protein_uria" - }, - { - "name": "laboratoriumGulaDarah", - "bind": "/model/instance/Register_ANC/laboratorium_gula_darah" - }, - { - "name": "laboratoriumThalasemia", - "bind": "/model/instance/Register_ANC/laboratorium_thalasemia" - }, - { - "name": "laboratoriumSifilis", - "bind": "/model/instance/Register_ANC/laboratorium_sifilis" - }, - { - "name": "laboratoriumHbsAg", - "bind": "/model/instance/Register_ANC/laboratorium_hbsag" - }, - { - "name": "programIntegration", - "bind": "/model/instance/Register_ANC/program_integration" - }, - { - "name": "integrasiProgrampmtctvct", - "bind": "/model/instance/Register_ANC/integrasi_program_pmtct_vct" - }, - { - "name": "integrasiProgrampmtctPeriksaDarah", - "bind": "/model/instance/Register_ANC/integrasi_program_pmtct_periksa_darah" - }, - { - "name": "integrasiProgrampmtctSerologi", - "bind": "/model/instance/Register_ANC/integrasi_program_pmtct_serologi" - }, - { - "name": "integrasiProgrampmtctarvProfilaksis", - "bind": "/model/instance/Register_ANC/integrasi_program_pmtct_arv" - }, - { - "name": "integrasiProgramMalariaPeriksaDarah", - "bind": "/model/instance/Register_ANC/integrasi_program_malaria_periksa_darah" - }, - { - "name": "integrasiProgramMalariaMalaria", - "bind": "/model/instance/Register_ANC/integrasi_program_malaria_malaria" - }, - { - "name": "integrasiProgramMalariaObat", - "bind": "/model/instance/Register_ANC/integrasi_program_malaria_obat" - }, - { - "name": "integrasiProgramMalariaKelambuBerinsektisida", - "bind": "/model/instance/Register_ANC/integrasi_program_malaria_kelambu" - }, - { - "name": "integrasiProgramtbDahak", - "bind": "/model/instance/Register_ANC/integrasi_program_tb_dahak" - }, - { - "name": "integrasiProgramtbtbc", - "bind": "/model/instance/Register_ANC/integrasi_program_tb_tbc" - }, - { - "name": "integrasiProgramtbObat", - "bind": "/model/instance/Register_ANC/integrasi_program_tb_obat" - }, - { - "name": "resikoTerdeteksiPertamaKaliOleh", - "bind": "/model/instance/Register_ANC/resiko_terdeksi_pertama_kali" - }, - { - "name": "komplikasidalamKehamilan", - "bind": "/model/instance/Register_ANC/komplikasi_dalam_kehamilan" - }, - { - "name": "rujukan", - "bind": "/model/instance/Register_ANC/rujukan" - }, - { - "name": "dirujukKe", - "bind": "/model/instance/Register_ANC/dirujuk_ke" - }, - { - "name": "lainLain", - "bind": "/model/instance/Register_ANC/dirujuk_keL" - }, - { - "name": "keadaanIbusaatTiba", - "bind": "/model/instance/Register_ANC_only/keadaan_ibu_saat_tiba", - "source": "kartu_ibu.ibu.keadaanIbusaatTiba" - }, - { - "name": "keadaanIbusaatPulang", - "bind": "/model/instance/Register_ANC_only/keadaan_ibu_saat_pulang", - "source": "kartu_ibu.ibu.keadaanIbusaatPulang" - }, - { - "name": "keterangan", - "bind": "/model/instance/Register_ANC_only/keterangan", - "source": "kartu_ibu.ibu.keterangan" - }, - { - "name": "proteinEnergyMalnutritionRisk", - "bind": "/model/instance/Register_ANC/Protein_energy_Malnutrition_risk" - }, - { - "name": "anemiaRisk", - "bind": "/model/instance/Register_ANC/anemia_risk" - }, - { - "name": "pihRisk", - "bind": "/model/instance/Register_ANC/PIH_risk" - }, - { - "name": "diabetesRisk", - "bind": "/model/instance/Register_ANC/diabetes_risk" - }, - { - "name": "fetusNumberRisk", - "bind": "/model/instance/Register_ANC/fetus_number_risk" - }, - { - "name": "fetusSizeRisk", - "bind": "/model/instance/Register_ANC/fetus_size_risk" - }, - { - "name": "fetusMalpresentationRisk", - "bind": "/model/instance/Register_ANC/fetus_Malpresentation_risk" - }, - { - "name": "tbcRisk", - "bind": "/model/instance/Register_ANC/TBC_risk" - }, - { - "name": "malariaRisk", - "bind": "/model/instance/Register_ANC/malaria_risk" - }, - { - "name": "tooYoungRisk", - "bind": "/model/instance/Register_ANC/Too_young_risk" - }, - { - "name": "tbRisk", - "bind": "/model/instance/Register_ANC/TB_risk" - }, - { - "name": "tooManyChildrenRisk", - "bind": "/model/instance/Register_ANC/Too_many_children_risk" - }, - { - "name": "abortusRisk", - "bind": "/model/instance/Register_ANC/abortus_risk" - }, - { - "name": "zectionCesareaRecordRisk", - "bind": "/model/instance/Register_ANC/Section_Cesarea_record_risk" - }, - { - "name": "stibbvsRisk", - "bind": "/model/instance/Register_ANC/STI_BBVs_risk" - }, - { - "name": "ectopicPregnancyRisk", - "bind": "/model/instance/Register_ANC/Ectopic_Pregnancy_risk" - }, - { - "name": "molaHidatidosaRisk", - "bind": "/model/instance/Register_ANC/Mola_Hidatidosa_risk" - }, - { - "name": "congenitalAbnormalityRisk", - "bind": "/model/instance/Register_ANC/congenital_abnormality_risk" - }, - { - "name": "earlyWaterbreakRisk", - "bind": "/model/instance/Register_ANC/early_waterbreak_risk" - }, - { - "name": "cardiovascularDiseaseRecordRisk", - "bind": "/model/instance/Register_ANC/Cardiovascular_Disease_Record_risk" - }, - { - "name": "kidneyDisorderRisk", - "bind": "/model/instance/Register_ANC/Kidney_Disorder_risk" - }, - { - "name": "heartDisorderRisk", - "bind": "/model/instance/Register_ANC/Heart_Disorder_risk" - }, - { - "name": "asthmaRisk", - "bind": "/model/instance/Register_ANC/Asthma_risk" - }, - { - "name": "tuberculosisRisk", - "bind": "/model/instance/Register_ANC/Tuberculosis_risk" - }, - { - "name": "malariaRisk", - "bind": "/model/instance/Register_ANC/Malaria_risk" - }, - { - "name": "hivaidsRisk", - "bind": "/model/instance/Register_ANC/HIV_AIDS_risk" - }, - { - "name": "isHighRisk", - "bind": "/model/instance/Register_ANC/is_high_risk" - }, - { - "name": "isHighRiskReason", - "bind": "/model/instance/Register_ANC/is_high_risk_reason" - }, - { - "name": "isHighRiskPregnancy", - "bind": "/model/instance/Register_ANC/is_high_risk_pregnancy" - }, - { - "name": "highRiskPregnancyReason", - "bind": "/model/instance/Register_ANC/high_risk_pregnancy_reason" - }, - { - "name": "isHighRiskLabour", - "bind": "/model/instance/Register_ANC/is_high_risk_labour" - }, - { - "name": "highRiskLabourReason", - "bind": "/model/instance/Register_ANC/high_risk_labour_reason" - }, - { - "name": "isOtherRisk", - "bind": "/model/instance/Register_ANC/is_other_risk" - }, - { - "name": "otherRiskReason", - "bind": "/model/instance/Register_ANC/other_risk_reason" - }, - { - "name": "highRiskNote", - "bind": "/model/instance/Register_ANC/high_risk_note" - }, - { - "name": "isOutOfArea", - "value": "false" - }, - { - "name": "isClosed", - "value": "false" - }, - { - "name": "isClosed", - "value": "false", - "source": "kartu_ibu.ibu.isClosed" - }, - { - "name": "type", - "value": "anc", - "source": "kartu_ibu.ibu.type" - }, - { - "name": "submissionDate", - "bind": "/model/instance/Register_ANC/today", - "source": "kartu_ibu.ibu.submissionDate" - }, - { - "name": "registrationDate", - "bind": "/model/instance/Register_ANC/reg_date", - "source": "kartu_ibu.ibu.registrationDate" - } - ] - } -} diff --git a/opensrp-bidan/src/main/assets/www/form/kartu_anc_registration_oa/model.xml b/opensrp-bidan/src/main/assets/www/form/kartu_anc_registration_oa/model.xml deleted file mode 100644 index 1bac2ed..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_anc_registration_oa/model.xml +++ /dev/null @@ -1,2450 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - Nusa Tenggara Barat - Lombok Tengah - - - - - - - - - - - Ibu rumah tangga - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - tidak ada keluhan - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - static_instance-riwayat_komplikasi_kebidanan-0 - abortus_berulang - - - static_instance-riwayat_komplikasi_kebidanan-1 - ket - - - static_instance-riwayat_komplikasi_kebidanan-2 - mola - - - static_instance-riwayat_komplikasi_kebidanan-3 - kpd - - - static_instance-riwayat_komplikasi_kebidanan-4 - cacat_kongenital - - - static_instance-riwayat_komplikasi_kebidanan-5 - riwayat_sc - - - static_instance-riwayat_komplikasi_kebidanan-6 - riwayat_ve_forseps - - - static_instance-riwayat_komplikasi_kebidanan-7 - lainnya - - - - - - - static_instance-integration_program__tb__tbc-0 - positif - - - static_instance-integration_program__tb__tbc-1 - negatif - - - - - - - static_instance-individual_accompanying_during_labor-0 - suami - - - static_instance-individual_accompanying_during_labor-1 - keluaga - - - static_instance-individual_accompanying_during_labor-2 - teman - - - static_instance-individual_accompanying_during_labor-3 - tetangga - - - static_instance-individual_accompanying_during_labor-4 - lain-lain - - - static_instance-individual_accompanying_during_labor-5 - tidak_ada - - - - - - - static_instance-process_to_get_to_health_facility-0 - atas_permintaan_sendiri - - - static_instance-process_to_get_to_health_facility-1 - rujukan_dokter - - - static_instance-process_to_get_to_health_facility-2 - rujukan_bidan - - - static_instance-process_to_get_to_health_facility-3 - rujukan_dukun - - - static_instance-process_to_get_to_health_facility-4 - rujukan_polindes - - - static_instance-process_to_get_to_health_facility-5 - rujukan_puskesmas_pembantu - - - static_instance-process_to_get_to_health_facility-6 - rujukan_puskesmas - - - static_instance-process_to_get_to_health_facility-7 - rujukan_rumah_bersalin - - - static_instance-process_to_get_to_health_facility-8 - RSIA - - - - - - - static_instance-tt_immunization_status-0 - tt_ke_0 - - - static_instance-tt_immunization_status-1 - tt_ke_1 - - - static_instance-tt_immunization_status-2 - tt_ke_2 - - - static_instance-tt_immunization_status-3 - tt_ke_3__tt_ke_4 - - - static_instance-tt_immunization_status-4 - tt_ke_ke_5 - - - static_instance-tt_immunization_status-5 - lengkap - - - - - - - static_instance-laboratory__thalassemia-0 - positif - - - static_instance-laboratory__thalassemia-1 - negatif - - - - - - - static_instance-head_of_fetus_towards_pelvic_inlet-0 - masuk - - - static_instance-head_of_fetus_towards_pelvic_inlet-1 - belum_masuk - - - - - - - static_instance-laboratory___hb_ceck___done-0 - Ya - - - static_instance-laboratory___hb_ceck___done-1 - Tidak - - - - - - - static_instance-laboratory___uria_protein-0 - positif - - - static_instance-laboratory___uria_protein-1 - negatif - - - - - - - static_instance-education-0 - sekolah_dasar - - - static_instance-education-1 - sekolah_menengah_pertama - - - static_instance-education-2 - sekolah_menengah_atas - - - static_instance-education-3 - perguruan_tinggi - - - static_instance-education-4 - tidak_sekolah - - - - - - - static_instance-insurance-0 - jaminan_kesehatan_masyarakat - - - static_instance-insurance-1 - Jamsostek - - - static_instance-insurance-2 - jaminan_kesehatan_daerah - - - static_instance-insurance-3 - asuransi_kesehatan - - - static_instance-insurance-4 - jaminan_persalinan - - - static_instance-insurance-5 - tidak_ada_asuransi - - - static_instance-insurance-6 - jika_ya - - - static_instance-insurance-7 - jika_tidak - - - - - - - static_instance-laboratory__sugar_blood-0 - >_140_mg_dl - - - static_instance-laboratory__sugar_blood-1 - <_140_mg_dl - - - - - - - static_instance-patella_reflex-0 - ada - - - static_instance-patella_reflex-1 - tidak - - - - - - - static_instance-previous_labor-0 - normal - - - static_instance-previous_labor-1 - tidak_normal - - - static_instance-previous_labor-2 - tidak_ada_persalinan_sebelumnya - - - static_instance-previous_labor-3 - normal - - - static_instance-previous_labor-4 - tidak_normal - - - - - - - static_instance-fetal_presentation-0 - kepala - - - static_instance-fetal_presentation-1 - bokong___sungsang - - - static_instance-fetal_presentation-2 - letak_lintang___obligue - - - - - - - static_instance-integration_program__malaria__malaria-0 - positif - - - static_instance-integration_program__malaria__malaria-1 - negatif - - - - - - - static_instance-kabupaten-0 - Lombok Barat - - - static_instance-kabupaten-1 - Lombok Tengah - - - static_instance-kabupaten-2 - Lombok Timur - - - - - - - static_instance-riwayat_penyakit_kronis-0 - hipertensi - - - static_instance-riwayat_penyakit_kronis-1 - diabetes_melitus - - - static_instance-riwayat_penyakit_kronis-2 - kelainan_jantung - - - static_instance-riwayat_penyakit_kronis-3 - kelainan_ginjal - - - static_instance-riwayat_penyakit_kronis-4 - kelainan_hati - - - static_instance-riwayat_penyakit_kronis-5 - STI/BBVs - - - static_instance-riwayat_penyakit_kronis-6 - malaria - - - static_instance-riwayat_penyakit_kronis-7 - asma - - - static_instance-riwayat_penyakit_kronis-8 - sifilis - - - static_instance-riwayat_penyakit_kronis-9 - hbsag - - - static_instance-riwayat_penyakit_kronis-10 - hiv_aids - - - static_instance-riwayat_penyakit_kronis-11 - tbc - - - static_instance-riwayat_penyakit_kronis-12 - lainnya - - - static_instance-riwayat_penyakit_kronis-13 - hipertensi - - - static_instance-riwayat_penyakit_kronis-14 - diabetes_melitus - - - static_instance-riwayat_penyakit_kronis-15 - kelainan_jantung - - - static_instance-riwayat_penyakit_kronis-16 - kelainan_ginjal - - - static_instance-riwayat_penyakit_kronis-17 - kelainan_hati - - - static_instance-riwayat_penyakit_kronis-18 - STI/BBVs - - - static_instance-riwayat_penyakit_kronis-19 - malaria - - - static_instance-riwayat_penyakit_kronis-20 - asma - - - static_instance-riwayat_penyakit_kronis-21 - sifilis - - - static_instance-riwayat_penyakit_kronis-22 - hbsag - - - static_instance-riwayat_penyakit_kronis-23 - hiv_aids - - - static_instance-riwayat_penyakit_kronis-24 - tbc - - - static_instance-riwayat_penyakit_kronis-25 - lainnya - - - - - - - static_instance-service___tt_injection-0 - jika_dilakukan - - - static_instance-service___tt_injection-1 - jika_tidak_dilakukan - - - - - - - static_instance-nutrition_status_of_mother-0 - kekurangan_energi_kronis - - - static_instance-nutrition_status_of_mother-1 - normal - - - - - - - static_instance-condition_of_house-0 - permanen - - - static_instance-condition_of_house-1 - tidak_permanen - - - - - - - static_instance-desa-0 - Janapria - Lekor - - - static_instance-desa-1 - Janapria - Jango - - - static_instance-desa-2 - Janapria - Janapria - - - static_instance-desa-3 - Janapria - Saba - - - static_instance-desa-4 - Janapria - Setuta - - - static_instance-desa-5 - Janapria - Pendem - - - static_instance-desa-6 - Janapria - Lainnya - - - static_instance-desa-7 - Pujut - Sengkol - - - static_instance-desa-8 - Pujut - Tanak Awu - - - static_instance-desa-9 - Pujut - Ketara - - - static_instance-desa-10 - Pujut - Kawo - - - static_instance-desa-11 - Pujut - Pengembur - - - static_instance-desa-12 - Pujut - PKM Sengkol - - - static_instance-desa-13 - Pujut - Segala Anyar - - - static_instance-desa-14 - Pujut - Lainnya - - - - - - - static_instance-religion-0 - islam - - - static_instance-religion-1 - hindu - - - static_instance-religion-2 - kristen - - - static_instance-religion-3 - katolik - - - static_instance-religion-4 - budha - - - static_instance-religion-5 - Lainnya - - - - - - - static_instance-blood_donor-0 - suami - - - static_instance-blood_donor-1 - keluaga - - - static_instance-blood_donor-2 - teman - - - static_instance-blood_donor-3 - lain-lain - - - static_instance-blood_donor-4 - tidak_ada - - - - - - - static_instance-service___write_in_maternal_and_child_health_booklet-0 - jika_dilakukan - - - static_instance-service___write_in_maternal_and_child_health_booklet-1 - jika_tidak_dilakukan - - - - - - - static_instance-maternal_and_child_health_booklet-0 - memiliki - - - static_instance-maternal_and_child_health_booklet-1 - tidak_memiliki - - - static_instance-maternal_and_child_health_booklet-2 - memiliki - - - static_instance-maternal_and_child_health_booklet-3 - tidak_memiliki - - - - - - - static_instance-integration_program__tb__medicine-0 - rifampisin - - - static_instance-integration_program__tb__medicine-1 - inh - - - static_instance-integration_program__tb__medicine-2 - pyrazinamid - - - static_instance-integration_program__tb__medicine-3 - etahmbutol - - - - - - - static_instance-blood_type-0 - a - - - static_instance-blood_type-1 - b - - - static_instance-blood_type-2 - ab - - - static_instance-blood_type-3 - o - - - static_instance-blood_type-4 - NA - - - - - - - static_instance-province-0 - NTB - - - - - - - static_instance-number_of_fetus-0 - tunggal - - - static_instance-number_of_fetus-1 - ganda - - - - - - - static_instance-transportation-0 - sepeda_motor - - - static_instance-transportation-1 - mobil - - - static_instance-transportation-2 - lain-lain - - - - - - - static_instance-intended_place_for_labor-0 - rumah - - - static_instance-intended_place_for_labor-1 - podok_bersalin_desa - - - static_instance-intended_place_for_labor-2 - puskesmas_pembantu - - - static_instance-intended_place_for_labor-3 - pusat_kesehatan_masyarakat - - - static_instance-intended_place_for_labor-4 - rumah_bersalin - - - static_instance-intended_place_for_labor-5 - rumah_sakit_ibu_dan_anak - - - static_instance-intended_place_for_labor-6 - rumah_sakit - - - static_instance-intended_place_for_labor-7 - RS_Odha - - - - - - - static_instance-trisemester_order-0 - trimester_ke_1 - - - static_instance-trisemester_order-1 - trimester_ke_2 - - - static_instance-trisemester_order-2 - trimester_ke_3 - - - - - - - static_instance-first_person_diagnosed_risk_in_pregnancy-0 - pasien - - - static_instance-first_person_diagnosed_risk_in_pregnancy-1 - keluarga - - - static_instance-first_person_diagnosed_risk_in_pregnancy-2 - masyarakat - - - static_instance-first_person_diagnosed_risk_in_pregnancy-3 - dukun - - - static_instance-first_person_diagnosed_risk_in_pregnancy-4 - kader - - - static_instance-first_person_diagnosed_risk_in_pregnancy-5 - bidan - - - static_instance-first_person_diagnosed_risk_in_pregnancy-6 - dokter - - - static_instance-first_person_diagnosed_risk_in_pregnancy-7 - DSOG - - - static_instance-first_person_diagnosed_risk_in_pregnancy-8 - tidak_ada - - - - - - - static_instance-integration_program__malaria__medicine-0 - ZDV - - - static_instance-integration_program__malaria__medicine-1 - NVP - - - static_instance-integration_program__malaria__medicine-2 - TC - - - - - - - static_instance-mother_condition_when_arrives_at_referred_facilty-0 - hidup - - - static_instance-mother_condition_when_arrives_at_referred_facilty-1 - mati - - - - - - - static_instance-integration_program__malaria__check-up-0 - Ya - - - static_instance-integration_program__malaria__check-up-1 - Tidak - - - - - - - static_instance-laboratory___hc_ceck___anemia-0 - positif - - - static_instance-laboratory___hc_ceck___anemia-1 - negatif - - - - - - - static_instance-integration_program__tb__phlegm-0 - Ya - - - static_instance-integration_program__tb__phlegm-1 - Tidak - - - - - - - static_instance-integration_program__pmtct__vct-serology-0 - positif - - - static_instance-integration_program__pmtct__vct-serology-1 - negatif - - - - - - - static_instance-yes_no-0 - Ya - - - static_instance-yes_no-1 - Tidak - - - - - - - static_instance-laboratoy__hbsag-0 - positif - - - static_instance-laboratoy__hbsag-1 - negatif - - - - - - - static_instance-poor_family_not-0 - ya - - - static_instance-poor_family_not-1 - tidak - - - - - - - static_instance-dusun-0 - Pujut - Sengkol - Kale - - - static_instance-dusun-1 - Pujut - Sengkol - Piyang - - - static_instance-dusun-2 - Pujut - Sengkol - Soweng - - - static_instance-dusun-3 - Pujut - Sengkol - Senundal - - - static_instance-dusun-4 - Pujut - Sengkol - Jomang - - - static_instance-dusun-5 - Pujut - Sengkol - Penambong - - - static_instance-dusun-6 - Pujut - Sengkol - Peresak - - - static_instance-dusun-7 - Pujut - Sengkol - Pesarih - - - static_instance-dusun-8 - Pujut - Sengkol - Sedo - - - static_instance-dusun-9 - Pujut - Sengkol - Lotir - - - static_instance-dusun-10 - Pujut - Sengkol - Belong - - - static_instance-dusun-11 - Pujut - Sengkol - Sereneng - - - static_instance-dusun-12 - Pujut - Sengkol - Sengkol I - - - static_instance-dusun-13 - Pujut - Sengkol - Sengkol II - - - static_instance-dusun-14 - Pujut - Sengkol - Junge - - - static_instance-dusun-15 - Pujut - Sengkol - Gentang - - - static_instance-dusun-16 - Pujut - Sengkol - Tajuk - - - static_instance-dusun-17 - Pujut - Tanak Awu - Rebile - - - static_instance-dusun-18 - Pujut - Tanak Awu - Perendik - - - static_instance-dusun-19 - Pujut - Tanak Awu - Tanak Awu I - - - static_instance-dusun-20 - Pujut - Tanak Awu - Tanak Awu II - - - static_instance-dusun-21 - Pujut - Tanak Awu - Selawang - - - static_instance-dusun-22 - Pujut - Tanak Awu - Reak I - - - static_instance-dusun-23 - Pujut - Tanak Awu - Reak II - - - static_instance-dusun-24 - Pujut - Tanak Awu - Singe - - - static_instance-dusun-25 - Pujut - Tanak Awu - Gantang Lauk - - - static_instance-dusun-26 - Pujut - Tanak Awu - Gantang Daye - - - static_instance-dusun-27 - Pujut - Tanak Awu - Tatak - - - static_instance-dusun-28 - Pujut - Tanak Awu - Tanak Awu Bat - - - static_instance-dusun-29 - Pujut - Tanak Awu - Tanpok - - - static_instance-dusun-30 - Pujut - Tanak Awu - Jambek - - - static_instance-dusun-31 - Pujut - Ketara - Sempalan - - - static_instance-dusun-32 - Pujut - Ketara - Sarah - - - static_instance-dusun-33 - Pujut - Ketara - Reban - - - static_instance-dusun-34 - Pujut - Ketara - Plangsang - - - static_instance-dusun-35 - Pujut - Ketara - Bagek Dewe - - - static_instance-dusun-36 - Pujut - Ketara - Ketare - - - static_instance-dusun-37 - Pujut - Ketara - Dese - - - static_instance-dusun-38 - Pujut - Ketara - Dayen Rurung - - - static_instance-dusun-39 - Pujut - Ketara - Selak - - - static_instance-dusun-40 - Pujut - Ketara - Lebak - - - static_instance-dusun-41 - Pujut - Ketara - Sampet - - - static_instance-dusun-42 - Pujut - Ketara - Perigi - - - static_instance-dusun-43 - Pujut - Ketara - Abe - - - static_instance-dusun-44 - Pujut - Ketara - Kampu - - - static_instance-dusun-45 - Pujut - Ketara - Embung Rungkas - - - static_instance-dusun-46 - Pujut - Kawo - Bale Montong I - - - static_instance-dusun-47 - Pujut - Kawo - Bale Montong II - - - static_instance-dusun-48 - Pujut - Kawo - Batu Bangke - - - static_instance-dusun-49 - Pujut - Kawo - Pengadang - - - static_instance-dusun-50 - Pujut - Kawo - Karang Jangkong - - - static_instance-dusun-51 - Pujut - Kawo - Balen Along - - - static_instance-dusun-52 - Pujut - Kawo - Dayen Kubur - - - static_instance-dusun-53 - Pujut - Kawo - Gubuk Direk - - - static_instance-dusun-54 - Pujut - Kawo - Sarang Angin - - - static_instance-dusun-55 - Pujut - Kawo - Karang Daye - - - static_instance-dusun-56 - Pujut - Kawo - Gilik - - - static_instance-dusun-57 - Pujut - Kawo - Gampung - - - static_instance-dusun-58 - Pujut - Kawo - Wareng - - - static_instance-dusun-59 - Pujut - Kawo - Pance - - - static_instance-dusun-60 - Pujut - Kawo - Bumi Gora - - - static_instance-dusun-61 - Pujut - Kawo - Buntereng - - - static_instance-dusun-62 - Pujut - Kawo - Gonjong - - - static_instance-dusun-63 - Pujut - Pengembur - Pengembur I - - - static_instance-dusun-64 - Pujut - Pengembur - Pengembur II - - - static_instance-dusun-65 - Pujut - Pengembur - Pengembur III - - - static_instance-dusun-66 - Pujut - Pengembur - Penyampi - - - static_instance-dusun-67 - Pujut - Pengembur - Batu Belek - - - static_instance-dusun-68 - Pujut - Pengembur - Tawah - - - static_instance-dusun-69 - Pujut - Pengembur - Perigi - - - static_instance-dusun-70 - Pujut - Pengembur - Sinah - - - static_instance-dusun-71 - Pujut - Pengembur - Siwang - - - static_instance-dusun-72 - Pujut - Pengembur - Tamping - - - static_instance-dusun-73 - Pujut - Pengembur - Sepit - - - static_instance-dusun-74 - Pujut - Pengembur - Keramat - - - static_instance-dusun-75 - Pujut - Segala Anyar - Anak Anjan - - - static_instance-dusun-76 - Pujut - Segala Anyar - Kadik I - - - static_instance-dusun-77 - Pujut - Segala Anyar - Kadik II - - - static_instance-dusun-78 - Pujut - Segala Anyar - Penupi - - - static_instance-dusun-79 - Pujut - Segala Anyar - Penaok - - - static_instance-dusun-80 - Pujut - Segala Anyar - Dasan Duah - - - static_instance-dusun-81 - Pujut - Segala Anyar - Lamben - - - static_instance-dusun-82 - Pujut - Segala Anyar - Segale - - - static_instance-dusun-83 - Pujut - Segala Anyar - Karang baru - - - static_instance-dusun-84 - Pujut - Segala Anyar - Tenang Baru - - - static_instance-dusun-85 - Pujut - Segala Anyar - Tenang - - - static_instance-dusun-86 - Pujut - Segala Anyar - Bolok - - - static_instance-dusun-87 - Janapria - Lekor - Lekor Barat - - - static_instance-dusun-88 - Janapria - Lekor - Lekor Timur - - - static_instance-dusun-89 - Janapria - Lekor - Lekor Tengah - - - static_instance-dusun-90 - Janapria - Lekor - Sandat - - - static_instance-dusun-91 - Janapria - Lekor - Bare Putih - - - static_instance-dusun-92 - Janapria - Lekor - Pelapak - - - static_instance-dusun-93 - Janapria - Lekor - Menteger - - - static_instance-dusun-94 - Janapria - Lekor - Ambat - - - static_instance-dusun-95 - Janapria - Lekor - Berenge - - - static_instance-dusun-96 - Janapria - Lekor - Pepao Barat I - - - static_instance-dusun-97 - Janapria - Lekor - Pepao Barat II - - - static_instance-dusun-98 - Janapria - Lekor - Pepao Timur - - - static_instance-dusun-99 - Janapria - Lekor - Presak - - - static_instance-dusun-100 - Janapria - Lekor - Lendang Jawe - - - static_instance-dusun-101 - Janapria - Lekor - Kapet - - - static_instance-dusun-102 - Janapria - Lekor - Lempenge - - - static_instance-dusun-103 - Janapria - Lekor - Montong Bile - - - static_instance-dusun-104 - Janapria - Lekor - Gulung - - - static_instance-dusun-105 - Janapria - Lekor - Walun - - - static_instance-dusun-106 - Janapria - Lekor - Belo - - - static_instance-dusun-107 - Janapria - Lekor - Dongger - - - static_instance-dusun-108 - Janapria - Lekor - Wiyung - - - static_instance-dusun-109 - Janapria - Lekor - Embung Wile - - - static_instance-dusun-110 - Janapria - Lekor - Santong - - - static_instance-dusun-111 - Janapria - Lekor - Selaping - - - static_instance-dusun-112 - Janapria - Lekor - Sondo - - - static_instance-dusun-113 - Janapria - Lekor - Lengkok Bunut - - - static_instance-dusun-114 - Janapria - Lekor - Renge - - - static_instance-dusun-115 - Janapria - Lekor - Taken-Aken - - - static_instance-dusun-116 - Janapria - Jango - Sesok - - - static_instance-dusun-117 - Janapria - Jango - Puntik Baru - - - static_instance-dusun-118 - Janapria - Jango - Prigi - - - static_instance-dusun-119 - Janapria - Jango - Jango Utara - - - static_instance-dusun-120 - Janapria - Jango - Jango Selatan - - - static_instance-dusun-121 - Janapria - Jango - Batu Ngreng - - - static_instance-dusun-122 - Janapria - Jango - Arba - - - static_instance-dusun-123 - Janapria - Jango - Rungkang Barat - - - static_instance-dusun-124 - Janapria - Jango - Rungkang Timur - - - static_instance-dusun-125 - Janapria - Jango - Gerepek - - - static_instance-dusun-126 - Janapria - Jango - Kampung Baru - - - static_instance-dusun-127 - Janapria - Jango - Kenyalu Barat - - - static_instance-dusun-128 - Janapria - Jango - Kenyalu Timur - - - static_instance-dusun-129 - Janapria - Jango - Kenyalu Selatan - - - static_instance-dusun-130 - Janapria - Jango - Kenyalu Utara - - - static_instance-dusun-131 - Janapria - Jango - Kenyalu Tengah - - - static_instance-dusun-132 - Janapria - Janapria - Perok Timur - - - static_instance-dusun-133 - Janapria - Janapria - Perok Barat - - - static_instance-dusun-134 - Janapria - Janapria - Tempek-Empek - - - static_instance-dusun-135 - Janapria - Janapria - Nunang I - - - static_instance-dusun-136 - Janapria - Janapria - Pengebat - - - static_instance-dusun-137 - Janapria - Janapria - Sadah - - - static_instance-dusun-138 - Janapria - Janapria - Batu Bangus - - - static_instance-dusun-139 - Janapria - Janapria - Batu Kembar I - - - static_instance-dusun-140 - Janapria - Janapria - Batu Kembar II - - - static_instance-dusun-141 - Janapria - Janapria - Penambong - - - static_instance-dusun-142 - Janapria - Janapria - Lemokek - - - static_instance-dusun-143 - Janapria - Janapria - Lambah Olot - - - static_instance-dusun-144 - Janapria - Janapria - Tonjong - - - static_instance-dusun-145 - Janapria - Saba - Jembe Barat - - - static_instance-dusun-146 - Janapria - Saba - Jembe Timur - - - static_instance-dusun-147 - Janapria - Saba - Jembe Utara - - - static_instance-dusun-148 - Janapria - Saba - Selek - - - static_instance-dusun-149 - Janapria - Saba - Selek Direk - - - static_instance-dusun-150 - Janapria - Saba - Masjaya - - - static_instance-dusun-151 - Janapria - Saba - Melati - - - static_instance-dusun-152 - Janapria - Saba - Gundu - - - static_instance-dusun-153 - Janapria - Saba - Janggawana Selatan - - - static_instance-dusun-154 - Janapria - Saba - Janggawana Utara - - - static_instance-dusun-155 - Janapria - Saba - Janggawana - - - static_instance-dusun-156 - Janapria - Saba - Janggawana Tengah - - - static_instance-dusun-157 - Janapria - Saba - Sengkerek - - - static_instance-dusun-158 - Janapria - Saba - Keruak - - - static_instance-dusun-159 - Janapria - Saba - Keruak Utara - - - static_instance-dusun-160 - Janapria - Saba - Presak Sanggeng - - - static_instance-dusun-161 - Janapria - Saba - Pengempok - - - static_instance-dusun-162 - Janapria - Saba - Lingkok Buak Barat - - - static_instance-dusun-163 - Janapria - Saba - Lingkok Buak Timur - - - static_instance-dusun-164 - Janapria - Saba - Lingkok Buak Tengah - - - static_instance-dusun-165 - Janapria - Saba - Terentem - - - static_instance-dusun-166 - Janapria - Saba - Tentram - - - static_instance-dusun-167 - Janapria - Saba - Suangke - - - static_instance-dusun-168 - Janapria - Setuta - Siwi - - - static_instance-dusun-169 - Janapria - Setuta - Nunang Selatan - - - static_instance-dusun-170 - Janapria - Setuta - Juna - - - static_instance-dusun-171 - Janapria - Setuta - Setuta Timur - - - static_instance-dusun-172 - Janapria - Setuta - Setuta Barat - - - static_instance-dusun-173 - Janapria - Setuta - Liwung Satu - - - static_instance-dusun-174 - Janapria - Setuta - Liwung Dua - - - static_instance-dusun-175 - Janapria - Setuta - Batu Belek - - - static_instance-dusun-176 - Janapria - Setuta - Biletawah - - - static_instance-dusun-177 - Janapria - Pendem - Pendem - - - static_instance-dusun-178 - Janapria - Pendem - Nyangget - - - static_instance-dusun-179 - Janapria - Pendem - Maliklo - - - static_instance-dusun-180 - Janapria - Pendem - Montong Bile - - - static_instance-dusun-181 - Janapria - Pendem - Gelondong - - - static_instance-dusun-182 - Janapria - Pendem - Penuntut - - - static_instance-dusun-183 - Janapria - Pendem - Kuang - - - static_instance-dusun-184 - Janapria - Pendem - Lekong Bangkon - - - static_instance-dusun-185 - Janapria - Pendem - Jangka - - - static_instance-dusun-186 - Janapria - Pendem - Jelitong - - - static_instance-dusun-187 - Janapria - Pendem - Gelung - - - static_instance-dusun-188 - Janapria - Pendem - Piling - - - static_instance-dusun-189 - Janapria - Pendem - Petorok - - - static_instance-dusun-190 - Janapria - Pendem - Karang Majelo - - - - - - - static_instance-kecamatan-0 - Pujut - - - static_instance-kecamatan-1 - Janapria - - - static_instance-kecamatan-2 - Lainnya - - - - - - - static_instance-integration_program__malaria__mosquito_net-0 - jika_dilakukan - - - static_instance-integration_program__malaria__mosquito_net-1 - jika_tidak_dilakukan - - - - - - - static_instance-laboratory__syphilis-0 - positif - - - static_instance-laboratory__syphilis-1 - negatif - - - - - - - static_instance-integration_program__pmtct__checkup-0 - jika_dilakukan - - - static_instance-integration_program__pmtct__checkup-1 - jika_tidak_dilakukan - - - - - - - static_instance-mother_condition_when_discharges_from_referred_facility-0 - hidup - - - static_instance-mother_condition_when_discharges_from_referred_facility-1 - mati - - - - - - - static_instance-labor_attendant-0 - keluarga - - - static_instance-labor_attendant-1 - dukun - - - static_instance-labor_attendant-2 - bidan - - - static_instance-labor_attendant-3 - dr.umum__dr.spesialis - - - static_instance-labor_attendant-4 - lain-lain - - - static_instance-labor_attendant-5 - tidak_ada - - - - - - - static_instance-stock_of_labor_tools-0 - kain - - - static_instance-stock_of_labor_tools-1 - handuk - - - static_instance-stock_of_labor_tools-2 - pakaian_bersih_dan_kering - - - - - - - static_instance-complications_during_pregnancy-0 - hipertensi_dalam_kehamilan - - - static_instance-complications_during_pregnancy-1 - abortus - - - static_instance-complications_during_pregnancy-2 - mola - - - static_instance-complications_during_pregnancy-3 - kehamilan_ektopit_terganggu - - - static_instance-complications_during_pregnancy-4 - hemoragi_post_partum - - - static_instance-complications_during_pregnancy-5 - ante_partum_beleding - - - static_instance-complications_during_pregnancy-6 - injeksi_jalan_lahir - - - static_instance-complications_during_pregnancy-7 - partum_kasep - - - static_instance-complications_during_pregnancy-8 - partus_lama - - - static_instance-complications_during_pregnancy-9 - demam_berdarah - - - static_instance-complications_during_pregnancy-10 - tifus_abdominalis - - - static_instance-complications_during_pregnancy-11 - sepsis - - - static_instance-complications_during_pregnancy-12 - tidak_ada_komplikasi - - - - - - - static_instance-integration_program__pmtct__vct-0 - jika_dilakukan - - - static_instance-integration_program__pmtct__vct-1 - jika_tidak_dilakukan - - - - - - - static_instance-referred_to-0 - pusat_kesehatan_masyarakat - - - static_instance-referred_to-1 - rumah_bersalin - - - static_instance-referred_to-2 - rumah_sakit_ibu_dan_anak - - - static_instance-referred_to-3 - rumah_sakit - - - static_instance-referred_to-4 - lain_lain - - - - diff --git a/opensrp-bidan/src/main/assets/www/form/kartu_anc_rencana_persalinan/form.json b/opensrp-bidan/src/main/assets/www/form/kartu_anc_rencana_persalinan/form.json deleted file mode 100644 index 2b7b150..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_anc_rencana_persalinan/form.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"rencana_persalinan_reviewed","title":"rencana persalinan","sms_keyword":"rencana_persalinan","default_language":"Bahasa","instance":{"encounter_type":"rencana persalinan"},"version":"201610120819","id_string":"rencana_persalinan","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":"person_address","openmrs_entity_id":"stateProvince","openmrs_entity_parent":"usual_residence"}},{"bind":{"calculate":"${District}"},"type":"calculate","name":"kabupaten","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"countyDistrict","openmrs_entity_parent":"usual_residence"}},{"bind":{"calculate":"${Village}"},"type":"calculate","name":"desa","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"cityVillage","openmrs_entity_parent":"usual_residence"}},{"bind":{"calculate":"${Sub-village}"},"type":"calculate","name":"dusun","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"address1","openmrs_entity_parent":"usual_residence"}},{"bind":{"calculate":"${Sub-district}"},"type":"calculate","name":"kecamatan","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"address2","openmrs_entity_parent":"usual_residence"}},{"control":{"appearance":"yes"},"name":"lokasi_periksa","label":{"Bahasa":"Lokasi Periksa","English":"Location of Service"},"instance":{"openmrs_entity_id":"161010AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"163121AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Posyandu","label":{"Bahasa":"Posyandu","English":"Village Outreach Post"}},{"instance":{"openmrs_code":"163512AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Polindes","label":{"Bahasa":"Polindes","English":"Maternal & Child Health Post"}},{"instance":{"openmrs_code":"159372AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Puskesmas","label":{"Bahasa":"Puskesmas","English":"Primary Health Center"}},{"instance":{"openmrs_code":"1536AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Rumah_Ibu","label":{"Bahasa":"Rumah Ibu","English":"Mother House"}},{"instance":{"openmrs_code":"1589AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Rumah_Sakit","label":{"Bahasa":"Rumah Sakit","English":"Hospital"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Lainnya","label":{"Bahasa":"Lainnya","English":"Other"}}]},{"name":"tanggal","hint":{"Bahasa":"Diisi dengan tanggal taksiran persalinan","English":"Fill in the estimated date of delivery"},"bind":{"required":"yes"},"label":{"Bahasa":"Tanggal Taksiran Persalinan","English":"Date of estimated delivery"},"instance":{"openmrs_entity_id":"5596AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"date"},{"control":{"appearance":"minimal"},"name":"rencana_penolong_persalinan","hint":{"Bahasa":"Diisi dengan pihak yang akan menolong persalinan","English":"Fill in the intended birth attendant"},"bind":{"required":"yes"},"label":{"Bahasa":"Rencana Penolong Persalinan","English":"Birth Attendant"},"instance":{"openmrs_entity_id":"162993AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1560AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"keluarga","label":{"Bahasa":"Keluarga (K)","English":"Family"}},{"instance":{"openmrs_code":"1575AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"dukun","label":{"Bahasa":"Dukun (D)","English":"Traditional Birth Attendant"}},{"instance":{"openmrs_code":"1578AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"bidan","label":{"Bahasa":"Bidan (B)","English":"Midwife"}},{"instance":{"openmrs_code":"162591AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"dr_umum","label":{"Bahasa":"Dr.Umum (DU)","English":"Doctor"}},{"instance":{"openmrs_code":"163489AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"dr_spesialis","label":{"Bahasa":"Dr.Spesialis (DS)","English":"Medical Specialist"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"lain-lain","label":{"Bahasa":"Lain-Lain (LN)","English":"Others"}},{"instance":{"openmrs_code":"1107AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tidak_ada","label":{"Bahasa":"Tidak Ada (TA)","English":"None"}}]},{"control":{"appearance":"minimal"},"name":"tempat_rencana_persalinan","hint":{"Bahasa":"Diisi dengan rencana tempat dimana Ibu akan bersalin","English":"Fill in the intended location of delivery"},"label":{"Bahasa":"Tempat Rencana Persalinan","English":"Intended place for labor"},"instance":{"openmrs_entity_id":"159757AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1536AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"rumah","label":{"Bahasa":"Rumah (RMH)","English":"House"}},{"instance":{"openmrs_code":"163512AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pondok_bersalin_desa","label":{"Bahasa":"Pondok Bersalin desa ( Polindes)","English":"Community-based Health Post"}},{"instance":{"openmrs_code":"1588AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"puskesmas_pembantu","label":{"Bahasa":"Puskesmas Pembantu (Pustu)","English":"Sub-center"}},{"instance":{"openmrs_code":"159372AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pusat_kesehatan_masyarakat","label":{"Bahasa":"Pusat Kesehatan Masyarakat (Puskesmas )","English":"Primary Health Center"}},{"instance":{"openmrs_code":"163146AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"rumah_bersalin","label":{"Bahasa":"Rumah Bersalin (RB)","English":"Maternity Hospital"}},{"instance":{"openmrs_code":"163147AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"rumah_sakit_ibu_dan_anak","label":{"Bahasa":"Rumah Sakit Ibu dan Anak (RSIA)","English":"Maternal and Child Hospital"}},{"instance":{"openmrs_code":"1589AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"rumah_sakit","label":{"Bahasa":"Rumah Sakit (RS)","English":"Hospital"}},{"instance":{"openmrs_code":"163504AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"rumah_sakit_orang_dengan_hiv_aids","label":{"Bahasa":"Rumah Sakit Orang dengan HIV / AIDS (RS Odha)","English":"Hospital which also occupied by HIV/AIDS patiets"}}]},{"control":{"appearance":"minimal"},"name":"rencana_pendamping_persalinan","hint":{"Bahasa":"Diisi dengan rencana pihak yang akan mendampingi Ibu saat bersalin","English":"Fill in the persons who will accompany the mother for delivery"},"label":{"Bahasa":"Rencana Pendamping Persalinan","English":"Person(s) accompanying during labor"},"instance":{"openmrs_entity_id":"969AAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"5617AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"suami","label":{"Bahasa":"Suami (S)","English":"Husband"}},{"instance":{"openmrs_code":"1560AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"keluarga","label":{"Bahasa":"Keluarga (K)","English":"Family"}},{"instance":{"openmrs_code":"5618AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"teman","label":{"Bahasa":"Teman (TM)","English":"Friend"}},{"instance":{"openmrs_code":"163502AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tetangga","label":{"Bahasa":"Tetangga (TG)","English":"Neighbor"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"lain-lain","label":{"Bahasa":"Lain-lain (LL)","English":"Etc."}},{"instance":{"openmrs_code":"1107AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tidak_ada","label":{"Bahasa":"Tidak Ada (TA)","English":"None"}}]},{"name":"transportasi","hint":{"Bahasa":"Diisi dengan rencana transportasi yang akan digunakan menuju tempat bersalin","English":"Fill in the transportation that will be used to location of delivery"},"label":{"Bahasa":"Transportasi","English":"Transportation"},"instance":{"openmrs_entity_id":"1617AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1614AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"sepeda_motor","label":{"Bahasa":"Sepeda Motor (SM)","English":"Motorcycle"}},{"instance":{"openmrs_code":"1615AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"mobil","label":{"Bahasa":"Mobil (MB)","English":"Car"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"lain-lain","label":{"Bahasa":"Lain-Lain (LN)","English":"Etc."}}]},{"name":"pendonor","hint":{"Bahasa":"Diisi dengan rencana pihak yang akan menjadi Pendonor Darah jika terjadi pendarahan","English":"Fill in the persons who will donor their blood if bleeding happens"},"label":{"Bahasa":"Pendonor","English":"Blood donor"},"instance":{"openmrs_entity_id":"163503AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select all that apply","children":[{"instance":{"openmrs_code":"5617AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"suami","label":{"Bahasa":"Suami (S)","English":"Husband"}},{"instance":{"openmrs_code":"1560AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"keluarga","label":{"Bahasa":"Keluarga (K)","English":"Family"}},{"instance":{"openmrs_code":"5618AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"teman","label":{"Bahasa":"Teman (TM)","English":"Friend"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"lain-lain","label":{"Bahasa":"Lain-lain (LL)","English":"Others"}},{"instance":{"openmrs_code":"1107AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tidak_ada","label":{"Bahasa":"Tidak Ada (TA)","English":"None"}}]},{"name":"kondisi_rumah","hint":{"Bahasa":"Bagaimana kondisi rumah Ibu","English":"How is condition of mother's house"},"label":{"Bahasa":"Apakah rumah ibu dalam kepemilikan permanen?","English":"Does Mother house ownership is permanent?"},"instance":{"openmrs_entity_id":"159473AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"permanen","label":{"Bahasa":"Permanen (PM)","English":"Permanent (PM)"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tidak_permanen","label":{"Bahasa":"Tidak Permanen (TM)","English":"Impermanent (NP)"}}]},{"name":"persediaan_perlengkapan_persalinan","hint":{"Bahasa":"Persediaan perlengkapan persalinan yang dilakukan Ibu","English":"Stock of labor tools prepared by mother"},"label":{"Bahasa":"Persediaan Perlengkapan Persalinan","English":"Stock of labor tools"},"instance":{"openmrs_entity":"n/a"},"type":"select all that apply","children":[{"instance":{"openmrs_code":"n/a"},"name":"kain","label":{"Bahasa":"Kain (KN)","English":"Cloth"}},{"instance":{"openmrs_code":"n/a"},"name":"handuk","label":{"Bahasa":"Handuk (HD)","English":"Towel"}},{"instance":{"openmrs_code":"n/a"},"name":"pakaian_bersih_dan_kering","label":{"Bahasa":"Pakaian Bersih dan Kering (PBK)","English":"Dry and Clean Clothes"}}]},{"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/kartu_anc_rencana_persalinan/form.xml b/opensrp-bidan/src/main/assets/www/form/kartu_anc_rencana_persalinan/form.xml deleted file mode 100644 index 904432a..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_anc_rencana_persalinan/form.xml +++ /dev/null @@ -1,334 +0,0 @@ - - - - rencana persalinan - - Bahasa - English - - - Desa : - - - - - - - - Dusun : - - - - - - - - Hari Taksiran persalinan : - - - EDD : - - - - - - Lokasi Periksa - Location of Service - - - - - Posyandu - Village Outreach Post - - - - Polindes - Maternal & Child Health Post - - - - Puskesmas - Primary Health Center - - - - Rumah Ibu - Mother House - - - - Rumah Sakit - Hospital - - - - Lainnya - Other - - - - - - Tanggal Kunjungan - Visit Date - * - Diisi dengan tanggal taksiran persalinan - Fill in the estimated date of delivery - - - - Rencana Penolong Persalinan - Birth Attendant - * - Diisi dengan pihak yang akan menolong persalinan - Fill in the intended birth attendant - - ... - Keluarga (K) - Dukun (D) - Bidan (B) - Dr.Umum (DU) - Dr.Spesialis (DS) - Lain-Lain (LN) - Tidak Ada (TA) - - - Keluarga (K) - Family - Dukun (D) - Traditional Birth Attendant - Bidan (B) - Midwife - Dr.Umum (DU) - Doctor - Dr.Spesialis (DS) - Medical Specialist - Lain-Lain (LN) - Others - Tidak Ada (TA) - None - - - - Tempat Rencana Persalinan - Intended place for labor - Diisi dengan rencana tempat dimana Ibu akan bersalin - Fill in the intended location of delivery - - ... - Rumah (RMH) - Pondok Bersalin desa ( Polindes) - Puskesmas Pembantu (Pustu) - Pusat Kesehatan Masyarakat (Puskesmas ) - Rumah Bersalin (RB) - Rumah Sakit Ibu dan Anak (RSIA) - Rumah Sakit (RS) - Rumah Sakit Orang dengan HIV / AIDS (RS Odha) - - - Rumah (RMH) - House - Pondok Bersalin desa ( Polindes) - Community-based Health Post - Puskesmas Pembantu (Pustu) - Sub-center - Pusat Kesehatan Masyarakat (Puskesmas ) - Primary Health Center - Rumah Bersalin (RB) - Maternity Hospital - Rumah Sakit Ibu dan Anak (RSIA) - Maternal and Child Hospital - Rumah Sakit (RS) - Hospital - Rumah Sakit Orang dengan HIV / AIDS (RS Odha) - Hospital which also occupied by HIV/AIDS patiets - - - - Rencana Pendamping Persalinan - Person(s) accompanying during labor - Diisi dengan rencana pihak yang akan mendampingi Ibu saat bersalin - Fill in the persons who will accompany the mother for delivery - - ... - Suami (S) - Keluarga (K) - Teman (TM) - Tetangga (TG) - Lain-lain (LL) - Tidak Ada (TA) - - - Suami (S) - Husband - Keluarga (K) - Family - Teman (TM) - Friend - Tetangga (TG) - Neighbor - Lain-lain (LL) - Etc. - Tidak Ada (TA) - None - - - - - - Transportasi - Transportation - Diisi dengan rencana transportasi yang akan digunakan menuju tempat bersalin - Fill in the transportation that will be used to location of delivery - - - - - Sepeda Motor (SM) - Motorcycle - - - - Mobil (MB) - Car - - - - Lain-Lain (LN) - Etc. - - - - - - - - Pendonor - Blood donor - Diisi dengan rencana pihak yang akan menjadi Pendonor Darah jika terjadi pendarahan - Fill in the persons who will donor their blood if bleeding happens - - - - - Suami (S) - Husband - - - - Keluarga (K) - Family - - - - Teman (TM) - Friend - - - - Lain-lain (LL) - Others - - - - Tidak Ada (TA) - None - - - - - - - - Apakah rumah ibu dalam kepemilikan permanen? - Does Mother house ownership is permanent? - Bagaimana kondisi rumah Ibu - How is condition of mother's house - - - - - Permanen (PM) - Permanent (PM) - - - - Tidak Permanen (TM) - Impermanent (NP) - - - - - - - - Persediaan Perlengkapan Persalinan - Stock of labor tools - Persediaan perlengkapan persalinan yang dilakukan Ibu - Stock of labor tools prepared by mother - - - - - Kain (KN) - Cloth - - - - Handuk (HD) - Towel - - - - Pakaian Bersih dan Kering (PBK) - Dry and Clean Clothes - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kartu_anc_rencana_persalinan/form_definition.json b/opensrp-bidan/src/main/assets/www/form/kartu_anc_rencana_persalinan/form_definition.json deleted file mode 100644 index 60ff5eb..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_anc_rencana_persalinan/form_definition.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "form_data_definition_version": "3", - "form": { - "bind_type": "ibu", - "ec_bind_type": "ec_ibu", - "default_bind_path": "/model/instance/rencana_persalinan_reviewed/", - "fields": [ - { - "name": "id", - "shouldLoadValue": true - }, - { - "name": "start", - "bind": "/model/instance/rencana_persalinan_reviewed/start" - }, - { - "name": "end", - "bind": "/model/instance/rencana_persalinan_reviewed/end" - }, - { - "name": "cityVillage", - "bind": "/model/instance/rencana_persalinan_reviewed/Village", - "shouldLoadValue": true - }, - { - "name": "htp", - "bind": "/model/instance/rencana_persalinan_reviewed/htp", - "shouldLoadValue": true - }, - { - "name": "tanggalKunjunganRencanaPersalinan", - "bind": "/model/instance/rencana_persalinan_reviewed/tanggal" - }, - { - "name": "lokasiPeriksa", - "bind": "/model/instance/rencana_persalinan_reviewed/Lokasi_periksa" - }, - { - "name": "rencanaPenolongPersalinan", - "bind": "/model/instance/rencana_persalinan_reviewed/rencana_penolong_persalinan" - }, - { - "name": "tempatRencanaPersalinan", - "bind": "/model/instance/rencana_persalinan_reviewed/tempat_rencana_persalinan" - }, - { - "name": "rencanaPendampingPersalinan", - "bind": "/model/instance/rencana_persalinan_reviewed/rencana_pendamping_persalinan" - }, - { - "name": "transportasi", - "bind": "/model/instance/rencana_persalinan_reviewed/transportasi" - }, - { - "name": "pendonor", - "bind": "/model/instance/rencana_persalinan_reviewed/pendonor" - }, - { - "name": "kondisiRumah", - "bind": "/model/instance/rencana_persalinan_reviewed/kondisi_rumah" - }, - { - "name": "persediaanPerlengkapanPersalinan", - "bind": "/model/instance/rencana_persalinan_reviewed/persediaan_perlengkapan_persalinan" - }, - { - "name": "submissionDate", - "bind": "/model/instance/rencana_persalinan_reviewed/today" - } - ] - } -} \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kartu_anc_rencana_persalinan/model.xml b/opensrp-bidan/src/main/assets/www/form/kartu_anc_rencana_persalinan/model.xml deleted file mode 100644 index d90f3ce..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_anc_rencana_persalinan/model.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kartu_anc_visit/form.json b/opensrp-bidan/src/main/assets/www/form/kartu_anc_visit/form.json deleted file mode 100644 index 41a1e27..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_anc_visit/form.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"kunjungan_anc_reviewed_anc_visit","title":"Kunjungan ANC","sms_keyword":"kunjungan_anc","default_language":"Bahasa","instance":{"encounter_type":"Kunjungan ANC"},"version":"201703060708","id_string":"kunjungan_anc","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"}},{"control":{"appearance":"yes"},"name":"lokasi_periksa","label":{"Bahasa":"Lokasi Periksa","English":"Location of Service"},"instance":{"openmrs_entity_id":"161010AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"163121AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Posyandu","label":{"Bahasa":"Posyandu","English":"Village Outreach Post"}},{"instance":{"openmrs_code":"163512AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Polindes","label":{"Bahasa":"Polindes","English":"Maternal & Child Health Post"}},{"instance":{"openmrs_code":"159372AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Puskesmas","label":{"Bahasa":"Puskesmas","English":"Primary Health Center"}},{"instance":{"openmrs_code":"1536AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Rumah_Ibu","label":{"Bahasa":"Rumah Ibu","English":"Mother House"}},{"instance":{"openmrs_code":"1589AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Rumah_Sakit","label":{"Bahasa":"Rumah Sakit","English":"Hospital"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Lainnya","label":{"Bahasa":"Lainnya","English":"Other"}}]},{"label":{"Bahasa":"Apakah ibu memiliki nomor telpon?"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Ya","label":{"Bahasa":"Ya","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Tidak","label":{"Bahasa":"Tidak","English":"No"}}],"name":"nomortelpon"},{"bind":{"relevant":"${nomortelpon}='Ya'"},"type":"text","instance":{"openmrs_entity_id":"159635AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"nomor_telpon_hp","label":{"Bahasa":"Nomor Telpon/Hp","English":"Landline/Cell Phone Number"}},{"name":"anc_date","hint":{"Bahasa":"Diisi dengan tanggal periksa Ibu","English":"Fill in the date of check-up"},"bind":{"required":"yes","constraint":".>${hpht}"},"label":{"Bahasa":"Tanggal kunjungan ANC","English":"Date of ANC visit"},"instance":{"openmrs_entity_id":"160753AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"date"},{"instance":{"openmrs_entity_id":"1427AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"person_attribute"},"label":{"Bahasa":"Tanggal HPHT","English":"Last Menstrual Period Date"},"type":"hidden","name":"hpht","hint":{"Bahasa":"Inject HPHT from register ANC","English":"Inject Last Menstrual Period Date from register PNC"}},{"bind":{"calculate":"int(((${anc_date} - ${hpht}) div 7)+1)"},"type":"calculate","name":"usia_klinis","instance":{"openmrs_entity_id":"1438AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"type":"note","name":"generated_note_name_31","label":{"Bahasa":"Usia Klinis : ${usia_klinis}","English":"Gestational Age"}},{"bind":{"calculate":"if((${usia_klinis}<='14'), 1, (if(${usia_klinis}>'14' and ${usia_klinis}<='28', 2, (if(${usia_klinis}>'28', 3, '')))))"},"type":"calculate","instance":{"openmrs_entity_id":"160665AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"trimester_ke","hint":{"Bahasa":"Menunjukkan trimester ibu saat kunjungan / pelayanan","English":"Indicating mother's trimester on the day of visit/care service"}},{"type":"note","name":"generated_note_name_33","label":{"Bahasa":"Trimester Ke: ${trimester_ke}","English":"Trimester order"}},{"bind":{"calculate":"if((${trimester_ke}='1'), 1, (if(${trimester_ke}='2', 2, (if(${trimester_ke}='3', 3, '')))))"},"type":"hidden","name":"hidden_anc_ke"},{"instance":{"openmrs_entity_id":"1590AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"integer","name":"kunjungan_ke","label":{"Bahasa":"Kunjungan Ke : ?","English":"Visit Number"}},{"type":"note","name":"generated_note_name_36","label":{"Bahasa":"K1 standar - kunj. pertama <= 12 minggu. K1 akses - kunj. pertama pada UK 13 s/d 20 minggu. K4 standar - kunj. pertama <=12 minggu, 1 kunj. di trimester 2, dan 2 kunj. di trimester 3. K4 akses - kunj. pertama 13-20 minggu, 1 kunj. lagi di trimester 2 , dan 2 kunjungan di trimester 3."}},{"name":"anc_ke","hint":{"Bahasa":"Diisi dengan K1 atau K2 sampai dengan K4","English":"Fill in K1, K2, K3 or K4"},"bind":{"jr:constraintMsg":{"Bahasa":"Kunjungan ANC harus sesuai dengan trimester dari ibu","English":"ANC Check-up/Visit should match mother's trimester"},"required":"yes"},"label":{"Bahasa":"K1 - K4?","English":"Recommend Antenatal Care Visit 1 to 4"},"instance":{"openmrs_entity_id":"1425AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"integer"},{"type":"note","name":"generated_note_name_38","label":{"Bahasa":"Isi variabel di atas dengan angka 0 jika kunjungan ibu tidak termasuk K1, K2, K3 atau K4"}},{"label":{"Bahasa":"Keterangan K1/K4?"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Standart","label":{"Bahasa":"Standar"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Akses","label":{"Bahasa":"Akses"}}],"name":"Keterangan_k1k4"},{"name":"Keterangan_k1k4_who","hint":{"Bahasa":"Diisi Ya jika definisi K1/K4 mengikuti aturan standar","English":"Fill in Yes if the definition of ANC 1/ANC follows the standard rule"},"label":{"Bahasa":"Apakah K1/K4 mengikuti definisi standar dari WHO (K1/K4 Standar)?","English":"Is ANC 1/ANC 4 definition followed the standard definition from WHO?"},"instance":{"openmrs_entity_id":"163510AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Ya","label":{"Bahasa":"Ya","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Tidak","label":{"Bahasa":"Tidak","English":"No"}}]},{"name":"jamkesmas","hint":{"Bahasa":"Apakah Ibu memiliki Jamkesmas atau tidak","English":"Does mother have the card of National Health Insurance for the Poor and Near Poor?"},"label":{"Bahasa":"Jamkesmas","English":"Insurance"},"instance":{"openmrs_entity_id":"159356AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"jika_ya","label":{"Bahasa":"Jika Ya (√)","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"jika_tidak","label":{"Bahasa":"Jika Tidak (x)","English":"No"}}]},{"control":{"appearance":"minimal"},"name":"cara_masuk_tempat_pelayanan","hint":{"Bahasa":"Diisi dengan cara Ibu untuk masuk ke tempat pelayanan","English":"Mother's reason for seeking care service in the facility"},"label":{"Bahasa":"Cara Masuk Tempat Pelayanan","English":"Process to get to Health Facility"},"instance":{"openmrs_entity_id":"160540AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"160551AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"atas_permintaan_sendiri","label":{"Bahasa":"Atas Permintaan Sendiri (APS)","English":"Mother's own will"}},{"instance":{"openmrs_code":"162591AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"rujukan_dokter","label":{"Bahasa":"Rujukan Dokter (Dr)","English":"Doctor's referral"}},{"instance":{"openmrs_code":"1578AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"rujukan_bidan","label":{"Bahasa":"Rujukan Bidan (Bd)","English":"Midwife referral"}},{"instance":{"openmrs_code":"1575AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"rujukan_dukun","label":{"Bahasa":"Rujukan Dukun (RD)","English":"Traditional birth attendant referral"}},{"instance":{"openmrs_code":"163512AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"rujukan_polindes","label":{"Bahasa":"Rujukan Polindes (Pol)","English":"Community-based health post referral"}},{"instance":{"openmrs_code":"1588AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"rujukan_puskesmas_pembantu","label":{"Bahasa":"Rujukan Puskesmas Pembantu ( PST)","English":"Sub-center referral"}},{"instance":{"openmrs_code":"159372AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"rujukan_puskesmas","label":{"Bahasa":"Rujukan Puskesmas (PKS)","English":"Primary Health Center Referral"}},{"instance":{"openmrs_code":"163146AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"rujukan_rumah_bersalin","label":{"Bahasa":"Rujukan Rumah Bersalin (RB)","English":"Maternity hospital referral"}},{"instance":{"openmrs_code":"163147AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"RSIA","label":{"Bahasa":"Rujukan Rumah Sakit Ibu dan Anak (RSIA)","English":"Maternal and child hospital referral"}}]},{"name":"anamnesis_ibu","hint":{"Bahasa":"Diisi dengan keluhan atau hal-hal yang dirasakan Ibu selama hamil","English":"Write mother's complaints or concerns during pregnancy"},"default":"tidak ada keluhan","label":{"Bahasa":"Anamnesis Ibu","English":"Anamnesis of mother"},"instance":{"openmrs_entity_id":"160531AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"text"},{"name":"bb_kg","hint":{"Bahasa":"Menunjukkan berat badan Ibu pada saat Kunjungan ANC (Kg)","English":"Indicating mother's weight on ANC check-up (kg)"},"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 .<200"},"label":{"Bahasa":"BB (Kg)","English":"Weight of mother"},"instance":{"openmrs_entity_id":"5089AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"decimal"},{"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"},{"name":"lila_cm","hint":{"Bahasa":"Menunjukkan lingkar lengan Ibu pada saat kunjungan ANC (cm)","English":"Indicating mother's arm circumference 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 .<200"},"label":{"Bahasa":"LILA (cm)","English":"Mid-Upper Arm Circumference of mother"},"instance":{"openmrs_entity_id":"1343AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"decimal"},{"name":"status_gizi_ibu","hint":{"Bahasa":"Menunjukkan status gizi Ibu pada saat kunjungan ANC (Kg)","English":"Indicating mother's nutritional status on ANC check-up"},"label":{"Bahasa":"Status Gizi ibu","English":"Nutritional status of mother"},"instance":{"openmrs_entity_id":"115122AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"132645AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"kekurangan_energi_kronis","label":{"Bahasa":"Kekurangan Energi Kronis (KEK)","English":"Chronic Energy Deficiency (CED)"}},{"instance":{"openmrs_code":"1115AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"normal","label":{"Bahasa":"Normal (N)","English":"Normal"}}]},{"name":"tfu","hint":{"Bahasa":"Menunjukkan Tinggi Fundus Uteri Ibu pada saat Kunjungan ANC (cm)","English":"Indicating mother's fundal height 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"},"relevant":"${usia_klinis}>=20","constraint":".>0 and .<50"},"label":{"Bahasa":"TFU","English":"Fundal height"},"instance":{"openmrs_entity_id":"1439AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"integer"},{"name":"refleks_patela_ibu","hint":{"Bahasa":"Menunjukkan hasil Pemeriksaan Refleks Patella Ibu pada saat Kunjungan ANC","English":"Indicating mother's patella reflex on ANC check-up"},"bind":{"relevant":"${usia_klinis}>=20"},"label":{"Bahasa":"Refleks Patela Ibu","English":"Patella reflex"},"instance":{"openmrs_entity_id":"602AAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"703AAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ada","label":{"Bahasa":"Ada (+)","English":"Positive"}},{"instance":{"openmrs_code":"664AAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tidak","label":{"Bahasa":"Tidak (-)","English":"Negative"}}]},{"name":"djj","hint":{"Bahasa":"Menunjukkan hasil perhitungan Denyut Jantung Janin per menit pada saat kunjungan ANC","English":"Indicating the calculation of fetus heart rate per minute 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"},"relevant":"${usia_klinis}>=20","constraint":".>0 and .<1000"},"label":{"Bahasa":"DJJ","English":"Heart rate of fetus"},"instance":{"openmrs_entity_id":"1440AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"integer"},{"name":"kepala_terhadap_janin_pap","hint":{"Bahasa":"Menunjukkan apakah kepala janin sudah masuk Pintu Atas Panggul atau tidak","English":"Indicating whether fetus head has gotten into the pelvic inlet"},"bind":{"relevant":"${usia_klinis}>=20"},"label":{"Bahasa":"Kepala Janin Terhadap PAP","English":"Head of fetus towards Pelvic Inlet"},"instance":{"openmrs_entity_id":"163134AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"masuk","label":{"Bahasa":"Masuk (M)","English":"Fetus head enters pelvic inlet"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"belum_masuk","label":{"Bahasa":"Belum Masuk (BM)","English":"Fetus head doesn't enter pelvic inlet"}}]},{"bind":{"calculate":"if(selected(${kepala_terhadap_janin_pap},'masuk'), ((${tfu}-11)*155), (if(selected(${kepala_terhadap_janin_pap},'belum_masuk'), ((${tfu}-12)*155), 0)))"},"type":"calculate","name":"taksiran_berat_janin","instance":{"openmrs_entity_id":"163135AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"label":{"Bahasa":"Taksiran Berat Janin: ${taksiran_berat_janin}","English":"Estimated weight of fetus"},"type":"note","name":"generated_note_name_54","hint":{"Bahasa":"Menunjukkan berapa hasil perhitungan taksiran berat badan janin (gram)","English":"Indicating the calculation of estimated fetus weight (gram)"}},{"name":"persentasi_janin","hint":{"Bahasa":"Bagian terendah dari janin dalam perut Ibu","English":"Indicating the lowest part of fetus inside mother's womb"},"label":{"Bahasa":"Persentasi Janin","English":"Fetal presentation"},"instance":{"openmrs_entity_id":"160090AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"160091AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"kepala","label":{"Bahasa":"Kepala (KP)","English":"Head"}},{"instance":{"openmrs_code":"139814AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"bokong_sungsang","label":{"Bahasa":"Bokong / Sungsang (BS)","English":"Buttock/ breech presentation"}},{"instance":{"openmrs_code":"112259AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"letak_lintang_obligue","label":{"Bahasa":"Letak Lintang / Obligue (LLO)","English":"Oblique"}}]},{"name":"jumlah_janin","hint":{"Bahasa":"Berapa jumlah janin yang ada dalam uterus Ibu","English":"Indicating number of fetus in mother's womb"},"label":{"Bahasa":"Jumlah Janin","English":"Number of fetus"},"instance":{"openmrs_entity_id":"159949AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"159913AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tunggal","label":{"Bahasa":"Tunggal (T)","English":"Single"}},{"instance":{"openmrs_code":"159914AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ganda","label":{"Bahasa":"Ganda (G)","English":"Double"}}]},{"control":{"appearance":"minimal"},"name":"status_imunisasi_tt","hint":{"Bahasa":"Menunjukkan status imunisasi TT yang diberikan kepada Ibu","English":"Indicating status of TT immunization that mother has received"},"bind":{"required":"yes"},"label":{"Bahasa":"Status Imunisasi TT","English":"TT immunization status"},"instance":{"openmrs_entity_id":"163522AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1107AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tt_ke_0","label":{"Bahasa":"TT Ke 0 (T0)","English":"TT 0 (T0)"}},{"instance":{"openmrs_code":"161537AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tt_ke_1","label":{"Bahasa":"TT ke 1 (T1)","English":"TT 1 (T1)"}},{"instance":{"openmrs_code":"161538AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tt_ke_2","label":{"Bahasa":"TT Ke 2 (T2)","English":"TT 2 (T2)"}},{"instance":{"openmrs_code":"163491AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tt_ke_3","label":{"Bahasa":"TT ke 3 (T3)","English":"TT 3 (T3)"}},{"instance":{"openmrs_code":"163492AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tt_ke_4","label":{"Bahasa":"TT ke 4 (TT4)","English":"TT 4 (T4)"}},{"instance":{"openmrs_code":"163493AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tt_ke_ke_5","label":{"Bahasa":"TT ke Ke 5 (TT5)","English":"TT 5 (TT5)"}},{"instance":{"openmrs_code":"164134"},"name":"lengkap","label":{"Bahasa":"Ibu telah menerima imunisasi TT yang lengkap","English":"Mother has received complete TT immunization"}}]},{"name":"pelayanan_injeksi_tt","hint":{"Bahasa":"Menunjukkan apakah Ibu mendapatkan suntik TT pada saat kunjungan ANC atau tidak","English":"Indicating whether mother gets TT injection on ANC check-up"},"label":{"Bahasa":"Injeksi TT dilakukan","English":"Service / TT Injection"},"instance":{"openmrs_entity_id":"160701AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"jika_dilakukan","label":{"Bahasa":"JIka dilakukan (√)","English":"Yes (√)"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"jika_tidak_dilakukan","label":{"Bahasa":"Jika tidak dilakukan (x)","English":"No (x)"}}]},{"name":"pelayanan_catat_buku_kia","hint":{"Bahasa":"Semua hasil pemeriksaan di catat di buku KIA","English":"Indicating whether all check-up results are recorded in MCH Booklet"},"label":{"Bahasa":"Catat di Buku Kia","English":"Service / Write in Maternal and Child Health Booklet (Pink Book)"},"instance":{"openmrs_entity_id":"163148AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"jika_dilakukan","label":{"Bahasa":"JIka dilakukan (√)","English":"Yes (√)"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"jika_tidak_dilakukan","label":{"Bahasa":"Jika tidak dilakukan (x)","English":"No (x)"}}]},{"name":"pelayananfe","hint":{"Bahasa":"Menunjukkan pelayanan Fe dilakukan atau tidak","English":"Indicating whether midwife provides Fe service"},"label":{"Bahasa":"Pelayanan Fe dilakukan","English":"Service / Fe"},"instance":{"openmrs_entity_id":"104677AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Ya","label":{"Bahasa":"Ya","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Tidak","label":{"Bahasa":"Tidak","English":"No"}}]},{"name":"jumlah_fe","hint":{"Bahasa":"Menunjukkan jumlah Fe yang diberikan saat kunjungan ANC (tab/botol)","English":"Indicating amount of Fe tablets given to mother on ANC check-up (tablet/bottle)"},"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"},"relevant":"${pelayananfe}='Ya'","constraint":".>0 and .<1000"},"label":{"Bahasa":"Jumlah Fe yang diberikan","English":"Number of Fe Tablet given"},"instance":{"openmrs_entity_id":"1443AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"integer"},{"label":{"Bahasa":"Jenis Fe","English":"Type of Fe given"},"hint":{"Bahasa":"Menunjukkan jenis Fe yang diberikan, apakah Fe 1 atau Fe 3","English":"Indicating the type of Fe given whether Fe 1 or Fe 3"},"type":"select one","children":[{"name":"fe1","label":{"Bahasa":"Fe 1","English":"Fe 1"}},{"name":"fe3","label":{"Bahasa":"Fe 3","English":"Fe 3"}}],"name":"fe1_fe3"},{"name":"komplikasi_dalam_kehamilan","hint":{"Bahasa":"Menunjukkan komplikasi kehamilan pada Ibu","English":"Indicating pregnancy complication that mother has"},"label":{"Bahasa":"Komplikasi dalam kehamilan","English":"Complications during pregnancy"},"instance":{"openmrs_entity_id":"1576AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select all that apply","children":[{"instance":{"openmrs_code":"113859AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"hipertensi_dalam_kehamilan","label":{"Bahasa":"Hipertensi dalam Kehamilan (HDK)","English":"Hypertension during Pregnancy (HDP)"}},{"instance":{"openmrs_code":"126127AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"abortus","label":{"Bahasa":"Abortus (AS)","English":"Abortus (AS)"}},{"instance":{"openmrs_code":"138387AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"mola","label":{"Bahasa":"Mola (ML)","English":"Mola (ML)"}},{"instance":{"openmrs_code":"46AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"kehamilan_ektopit_terganggu","label":{"Bahasa":"Kehamilan Ektopit Terganggu (KET)","English":"Ectopic Pregnancy (EP)"}},{"instance":{"openmrs_code":"230AAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"hemoragi_post_partum","label":{"Bahasa":"Hemoragi Post Partum (HPP)","English":"Post Partum Hemorrhage (PPH)"}},{"instance":{"openmrs_code":"228AAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ante_partum_beleding","label":{"Bahasa":"Ante Partum Beleding (APB)","English":"Ante Partum Bleeding (APB)"}},{"instance":{"openmrs_code":"117069AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"injeksi_jalan_lahir","label":{"Bahasa":"Injeksi Jalan Lahir (IJL)","English":"Puerperal Infection (PI)"}},{"instance":{"openmrs_code":"113602AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"partum_kasep","label":{"Bahasa":"Partum Kasep (PK)","English":"Prolonged Labor with complcations (PLC)"}},{"instance":{"openmrs_code":"113602AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"partus_lama","label":{"Bahasa":"Partus Lama (PL)","English":"Prolonged Labor (PL)"}},{"instance":{"openmrs_code":"142591AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"demam_berdarah","label":{"Bahasa":"Demam Berdarah (DB)","English":"Dengue Hemorrhagic Fever"}},{"instance":{"openmrs_code":"141AAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tifus_abdominalis","label":{"Bahasa":"Tifus Abdominalis (TA)","English":"Typhus Abdominalis"}},{"instance":{"openmrs_code":"126721AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"sepsis","label":{"Bahasa":"Sepsis (S)","English":"Sepsis"}},{"instance":{"openmrs_code":"119060AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pulmonal","label":{"Bahasa":"Pulmonal","English":"Pulmonary"}},{"instance":{"openmrs_code":"150883AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"air_ketuban","label":{"Bahasa":"Air Ketuban","English":"Amniotic fluid"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"lain_lain","label":{"Bahasa":"Lain-lain","English":"Others"}},{"instance":{"openmrs_code":"1107AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tidak_ada_komplikasi","label":{"Bahasa":"Tidak ada komplikasi kehamilan","English":"No pregnancy complication"}}]},{"bind":{"relevant":"${komplikasi_dalam_kehamilan}='lain_lain'"},"type":"text","instance":{"openmrs_entity_parent":"1576AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_id":"160632AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"komplikasi_lain","label":{"Bahasa":"Other complication"}},{"control":{"appearance":"minimal"},"name":"resiko_terdeksi_pertama_kali","hint":{"Bahasa":"Pendeteksi pertama komplikasi pada kehamilan Ibu","English":"The person who first detect mother's pregnancy complication"},"label":{"Bahasa":"Resiko terdeteksi pertama kali oleh","English":"First person diagnosed risk in pregnancy"},"instance":{"openmrs_entity_id":"163519AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"162571AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pasien","label":{"Bahasa":"Pasien (P)","English":"Patient (P)"}},{"instance":{"openmrs_code":"1560AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"keluarga","label":{"Bahasa":"Keluarga (K)","English":"Family (F)"}},{"instance":{"openmrs_code":"163488AAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"masyarakat","label":{"Bahasa":"Masyarakat (M)","English":"Community (C)"}},{"instance":{"openmrs_code":"1575AAAAAAAAAAAA\nAAAAAAAAAAAAAAAA"},"name":"dukun","label":{"Bahasa":"Dukun (D)","English":"Traditional Birth Attendant (TBA)"}},{"instance":{"openmrs_code":"1555AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"kader","label":{"Bahasa":"Kader (K)","English":"Cadre (Cr)"}},{"instance":{"openmrs_code":"1578AAAAAAAAAAAA\nAAAAAAAAAAAAAAAA"},"name":"bidan","label":{"Bahasa":"Bidan (B)","English":"Midwife (M)"}},{"instance":{"openmrs_code":"162591AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"dokter","label":{"Bahasa":"Dokter (D)","English":"Doctor (D)"}},{"instance":{"openmrs_code":"163489AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"DSOG","label":{"Bahasa":"Dokter Spesialis Obsestri dan Gemotologi (DSOG)","English":"Obstectric and Gynecology Specialist (OGS)"}},{"instance":{"openmrs_code":"1107AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tidak_ada","label":{"Bahasa":"Tidak ada resiko terdeteksi","English":"No risk detected"}}]},{"name":"treatment","hint":{"Bahasa":"Apakah ada penanganan yang diberikan kepada pasien? Jika iya, sebutkan.","English":"Do you give any treatment to the patient? If yes, please describe."},"label":{"Bahasa":"Penanganan diberikan?","English":"Give treatment?"},"instance":{"openmrs_entity_id":"1774AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Ya","label":{"Bahasa":"Ya","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Tidak","label":{"Bahasa":"Tidak","English":"No"}}]},{"control":{"appearance":"multiline"},"name":"treatment_text","bind":{"relevant":"${treatment} = 'Ya'"},"label":{"Bahasa":"Deskripsikan penanganan yang diberikan","English":"Describe the treatment you give to the patient"},"instance":{"openmrs_entity_parent":"1774AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_id":"160632AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"text"},{"name":"rujukan","hint":{"Bahasa":"Menunjukkan bahwa bidan merujuk Ibu hamil ke ke tempat fasilitas kesehatan lainnya","English":"Indicating whether midwife refers pregnant mother to other health facility"},"label":{"Bahasa":"Apakah Anda merujuk Ibu hamil ke fasilitas kesehatan lainnya?","English":"Do you refer the mother to other health facility?"},"instance":{"openmrs_entity_id":"1788AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Ya","label":{"Bahasa":"Ya","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Tidak","label":{"Bahasa":"Tidak","English":"No"}}]},{"control":{"appearance":"minimal"},"name":"dirujuk_ke","hint":{"Bahasa":"Lokasi tujuan rujukan Ibu jika mengalami komplikasi kehamilan","English":"Location of facility where mother with pregnancy complication is referred to"},"bind":{"relevant":"${rujukan} = 'Ya'"},"label":{"Bahasa":"Dirujuk ke","English":"Referred to"},"instance":{"openmrs_entity_id":"163145AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"159372AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pusat_kesehatan_masyarakat","label":{"Bahasa":"Pusat Kesehatan Masyarakat (Puskesmas )","English":"Primary Health Center (Puskesmas)"}},{"instance":{"openmrs_code":"163146AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"rumah_bersalin","label":{"Bahasa":"Rumah Bersalin (RB)","English":"Maternity Hospital (RB)"}},{"instance":{"openmrs_code":"163147AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"rumah_sakit_ibu_dan_anak","label":{"Bahasa":"Rumah Sakit Ibu dan Anak (RSIA)","English":"Maternal and Child Hospital (RSIA)"}},{"instance":{"openmrs_code":"1589AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"rumah_sakit","label":{"Bahasa":"Rumah Sakit (RS)","English":"Hospital"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"lain_lain","label":{"Bahasa":"Lain-lain (LN)","English":"Others"}}]},{"name":"dirujuk_keL","hint":{"Bahasa":"Diisi dengan lokasi tujuan rujukan selain yang disebutkan jika Ibu mengalami komplikasi kehamilan","English":"Write other location of facility where mother with pregnancy complication is referred to"},"bind":{"relevant":"${dirujuk_ke} = 'lain_lain'"},"label":{"Bahasa":"lain-lain","English":"Other"},"instance":{"openmrs_entity_parent":"1788AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_id":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"text"},{"name":"keadaan_ibu_saat_tiba","hint":{"Bahasa":"Keadaan saat ibu tiba tempat rujukan","English":"Mother's condition when arrives at referred facility"},"bind":{"relevant":"${rujukan} = 'Ya'"},"label":{"Bahasa":"Keadaan Ibu saat tiba","English":"Mother's condition when arrives at referred facilty"},"instance":{"openmrs_entity_id":"163183AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"160429AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"hidup","label":{"Bahasa":"Hidup (H)","English":"Alive (A);"}},{"instance":{"openmrs_code":"160432AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"mati","label":{"Bahasa":"Mati (M)","English":"Dead (M)"}}]},{"name":"keadaan_ibu_saat_pulang","hint":{"Bahasa":"Keadaan saat ibu pulang dari tempat rujukan","English":"Mother's condition when returns home from referred facility"},"bind":{"relevant":"${rujukan} = 'Ya'"},"label":{"Bahasa":"Keadaan Ibu saat pulang","English":"Mother's condition when discharges from referred facility"},"instance":{"openmrs_entity_id":"163184AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"160429AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"hidup","label":{"Bahasa":"Hidup (H)","English":"Alive (A);"}},{"instance":{"openmrs_code":"160432AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"mati","label":{"Bahasa":"Mati (M)","English":"Dead (M)"}}]},{"name":"keterangan","hint":{"Bahasa":"Diisi dengan keterangan terkait rujukan","English":"Write any additional information related to the referred facility"},"bind":{"relevant":"${rujukan} = 'Ya'"},"label":{"Bahasa":"Keterangan","English":"Notes"},"instance":{"openmrs_entity_id":"160632AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"text"},{"bind":{"calculate":"if(${lila_cm} < 23.5, 'yes', 'no')"},"type":"calculate","name":"High_Risk_Pregnancy_Protein_energy_Malnutrition","instance":{"openmrs_entity_id":"157648AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"bind":{"calculate":"if(${td_sistolik} >= 140 and ${td_diastolik} >= 90, 'yes', 'no')"},"type":"calculate","name":"High_Risk_Pregnancy_PIH","instance":{"openmrs_entity_id":"113859AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"bind":{"calculate":"if(${jumlah_janin} ='ganda', 'yes', 'no')"},"type":"calculate","name":"High_Risk_Labour_fetus_number","instance":{"openmrs_entity_id":"111768AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"bind":{"calculate":"if(${tfu} >40, 'yes', 'no')"},"type":"calculate","name":"High_Risk_Labour_fetus_size","instance":{"openmrs_entity_id":"140951AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"bind":{"calculate":"if(${persentasi_janin} ='bokong_sungsang' or ${persentasi_janin} ='letak_lintang_obligue', 'yes', 'no')"},"type":"calculate","name":"High_Risk_Labour_fetus_Malpresentation","instance":{"openmrs_entity_id":"115939AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"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/kartu_anc_visit/form.xml b/opensrp-bidan/src/main/assets/www/form/kartu_anc_visit/form.xml deleted file mode 100644 index 21f8db9..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_anc_visit/form.xml +++ /dev/null @@ -1,877 +0,0 @@ - - - - Kunjungan ANC - - Bahasa - English - - - Desa : - - - - - - - - Dusun : - - - - - - - - - - Lokasi Periksa - Location of Service - - - - - Posyandu - Village Outreach Post - - - - Polindes - Maternal & Child Health Post - - - - Puskesmas - Primary Health Center - - - - Rumah Ibu - Mother House - - - - Rumah Sakit - Hospital - - - - Lainnya - Other - - - - - - - - Apakah ibu memiliki nomor telpon? - - - - - - - Ya - Yes - - - - Tidak - No - - - - - - Nomor Telpon/Hp - Landline/Cell Phone Number - - - - Tanggal kunjungan ANC - Date of ANC visit - * - Diisi dengan tanggal periksa Ibu - Fill in the date of check-up - - Value not allowed - This field is required - - - Usia Klinis : - - - Gestational Age - - - - Trimester Ke: - - - Trimester order - - - - Kunjungan Ke : ? - Visit Number - - - - K1 standar - kunj. pertama <= 12 minggu. K1 akses - kunj. pertama pada UK 13 s/d 20 minggu. K4 standar - kunj. pertama <=12 minggu, 1 kunj. di trimester 2, dan 2 kunj. di trimester 3. K4 akses - kunj. pertama 13-20 minggu, 1 kunj. lagi di trimester 2 , dan 2 kunjungan di trimester 3. - - - - - - K1 - K4? - Recommend Antenatal Care Visit 1 to 4 - * - Diisi dengan K1 atau K2 sampai dengan K4 - Fill in K1, K2, K3 or K4 - - This field is required - - - Isi variabel di atas dengan angka 0 jika kunjungan ibu tidak termasuk K1, K2, K3 atau K4 - - - - - - - - - Apakah K1/K4 mengikuti definisi standar dari WHO (K1/K4 Standar)? - Is ANC 1/ANC 4 definition followed the standard definition from WHO? - Diisi Ya jika definisi K1/K4 mengikuti aturan standar - Fill in Yes if the definition of ANC 1/ANC follows the standard rule - - - - - Ya - Yes - - - - Tidak - No - - - - - - - - Jamkesmas - Insurance - Apakah Ibu memiliki Jamkesmas atau tidak - Does mother have the card of National Health Insurance for the Poor and Near Poor? - - - - - Jika Ya (√) - Yes - - - - Jika Tidak (x) - No - - - - - - Cara Masuk Tempat Pelayanan - Process to get to Health Facility - Diisi dengan cara Ibu untuk masuk ke tempat pelayanan - Mother's reason for seeking care service in the facility - - ... - Atas Permintaan Sendiri (APS) - Rujukan Dokter (Dr) - Rujukan Bidan (Bd) - Rujukan Dukun (RD) - Rujukan Polindes (Pol) - Rujukan Puskesmas Pembantu ( PST) - Rujukan Puskesmas (PKS) - Rujukan Rumah Bersalin (RB) - Rujukan Rumah Sakit Ibu dan Anak (RSIA) - - - Atas Permintaan Sendiri (APS) - Mother's own will - Rujukan Dokter (Dr) - Doctor's referral - Rujukan Bidan (Bd) - Midwife referral - Rujukan Dukun (RD) - Traditional birth attendant referral - Rujukan Polindes (Pol) - Community-based health post referral - Rujukan Puskesmas Pembantu ( PST) - Sub-center referral - Rujukan Puskesmas (PKS) - Primary Health Center Referral - Rujukan Rumah Bersalin (RB) - Maternity hospital referral - Rujukan Rumah Sakit Ibu dan Anak (RSIA) - Maternal and child hospital referral - - - - Anamnesis Ibu - Anamnesis of mother - Diisi dengan keluhan atau hal-hal yang dirasakan Ibu selama hamil - Write mother's complaints or concerns during pregnancy - - - - BB (Kg) - Weight of mother - Menunjukkan berat badan Ibu pada saat Kunjungan ANC (Kg) - Indicating mother's weight on ANC check-up (kg) - - Nilai yang dimasukkan tidak memenuhi syarat, mohon periksa kembali - The entered value doesn't meet the criteria, please check it again - - - TD (Sistolik) - Blood pressure (sistolic) - Menunjukkan tekanan darah (Sistolik) Ibu pada saat kunjungan ANC (mmHg) - Indicating mother's blood pressure (systolic) on ANC check-up - - Nilai yang dimasukkan tidak memenuhi syarat, mohon periksa kembali - The entered value doesn't meet the criteria, please check it again - - - TD (Diastolik) - Blood pressure (Diastolic) - Menunjukkan tekanan darah (Diastolik) Ibu pada saat kunjungan ANC (mmHg) - Indicating mother's blood pressure (dyastolic) on ANC check-up - - Nilai yang dimasukkan tidak memenuhi syarat, mohon periksa kembali - The entered value doesn't meet the criteria, please check it again - - - LILA (cm) - Mid-Upper Arm Circumference of mother - Menunjukkan lingkar lengan Ibu pada saat kunjungan ANC (cm) - Indicating mother's arm circumference on ANC check-up - - Nilai yang dimasukkan tidak memenuhi syarat, mohon periksa kembali - The entered value doesn't meet the criteria, please check it again - - - - - Status Gizi ibu - Nutritional status of mother - Menunjukkan status gizi Ibu pada saat kunjungan ANC (Kg) - Indicating mother's nutritional status on ANC check-up - - - - - Kekurangan Energi Kronis (KEK) - Chronic Energy Deficiency (CED) - - - - Normal (N) - Normal - - - - - - TFU - Fundal height - Menunjukkan Tinggi Fundus Uteri Ibu pada saat Kunjungan ANC (cm) - Indicating mother's fundal height on ANC check-up - - Nilai yang dimasukkan tidak memenuhi syarat, mohon periksa kembali - The entered value doesn't meet the criteria, please check it again - - - - - Refleks Patela Ibu - Patella reflex - Menunjukkan hasil Pemeriksaan Refleks Patella Ibu pada saat Kunjungan ANC - Indicating mother's patella reflex on ANC check-up - - - - - Ada (+) - Positive - - - - Tidak (-) - Negative - - - - - - DJJ - Heart rate of fetus - Menunjukkan hasil perhitungan Denyut Jantung Janin per menit pada saat kunjungan ANC - Indicating the calculation of fetus heart rate per minute on ANC check-up - - Nilai yang dimasukkan tidak memenuhi syarat, mohon periksa kembali - The entered value doesn't meet the criteria, please check it again - - - - - Kepala Janin Terhadap PAP - Head of fetus towards Pelvic Inlet - Menunjukkan apakah kepala janin sudah masuk Pintu Atas Panggul atau tidak - Indicating whether fetus head has gotten into the pelvic inlet - - - - - Masuk (M) - Fetus head enters pelvic inlet - - - - Belum Masuk (BM) - Fetus head doesn't enter pelvic inlet - - - - - - Taksiran Berat Janin: - - - Estimated weight of fetus - Menunjukkan berapa hasil perhitungan taksiran berat badan janin (gram) - Indicating the calculation of estimated fetus weight (gram) - - - - - - Persentasi Janin - Fetal presentation - Bagian terendah dari janin dalam perut Ibu - Indicating the lowest part of fetus inside mother's womb - - - - - Kepala (KP) - Head - - - - Bokong / Sungsang (BS) - Buttock/ breech presentation - - - - Letak Lintang / Obligue (LLO) - Oblique - - - - - - - - Jumlah Janin - Number of fetus - Berapa jumlah janin yang ada dalam uterus Ibu - Indicating number of fetus in mother's womb - - - - - Tunggal (T) - Single - - - - Ganda (G) - Double - - - - - - - - Injeksi TT dilakukan - Service / TT Injection - Menunjukkan apakah Ibu mendapatkan suntik TT pada saat kunjungan ANC atau tidak - Indicating whether mother gets TT injection on ANC check-up - - - - - JIka dilakukan (√) - Yes (√) - - - - Jika tidak dilakukan (x) - No (x) - - - - - - Status Imunisasi TT - TT immunization status - - Menunjukkan status imunisasi TT yang diberikan kepada Ibu - Indicating status of TT immunization that mother has received - - ... - TT Ke 0 (T0) - TT ke 1 (T1) - TT Ke 2 (T2) - TT ke 3 (T3) - TT ke 4 (TT4) - TT ke Ke 5 (TT5) - Ibu telah menerima imunisasi TT yang lengkap - - - TT Ke 0 (T0) - TT 0 (T0) - TT ke 1 (T1) - TT 1 (T1) - TT Ke 2 (T2) - TT 2 (T2) - TT ke 3 (T3) - TT 3 (T3) - TT ke 4 (TT4) - TT 4 (T4) - TT ke Ke 5 (TT5) - TT 5 (TT5) - Ibu telah menerima imunisasi TT yang lengkap - Mother has received complete TT immunization - - This field is required - - - - - - Catat di Buku Kia - Service / Write in Maternal and Child Health Booklet (Pink Book) - Semua hasil pemeriksaan di catat di buku KIA - Indicating whether all check-up results are recorded in MCH Booklet - - - - - JIka dilakukan (√) - Yes (√) - - - - Jika tidak dilakukan (x) - No (x) - - - - - - - - Pelayanan Fe dilakukan - Service / Fe - Menunjukkan pelayanan Fe dilakukan atau tidak - Indicating whether midwife provides Fe service - - - - - Ya - Yes - - - - Tidak - No - - - - - - Jumlah Fe yang diberikan - Number of Fe Tablet given - Menunjukkan jumlah Fe yang diberikan saat kunjungan ANC (tab/botol) - Indicating amount of Fe tablets given to mother on ANC check-up (tablet/bottle) - - Nilai yang dimasukkan tidak memenuhi syarat, mohon periksa kembali - The entered value doesn't meet the criteria, please check it again - - - - - Jenis Fe - Type of Fe given - Menunjukkan jenis Fe yang diberikan, apakah Fe 1 atau Fe 3 - Indicating the type of Fe given whether Fe 1 or Fe 3 - - - - - Fe 1 - Fe 1 - - - - Fe 3 - Fe 3 - - - - - - - - Komplikasi dalam kehamilan - Complications during pregnancy - Menunjukkan komplikasi kehamilan pada Ibu - Indicating pregnancy complication that mother has - - - - - Hipertensi dalam Kehamilan (HDK) - Hypertension during Pregnancy (HDP) - - - - Abortus (AS) - Abortus (AS) - - - - Mola (ML) - Mola (ML) - - - - Kehamilan Ektopit Terganggu (KET) - Ectopic Pregnancy (EP) - - - - Hemoragi Post Partum (HPP) - Post Partum Hemorrhage (PPH) - - - - Ante Partum Beleding (APB) - Ante Partum Bleeding (APB) - - - - Injeksi Jalan Lahir (IJL) - Puerperal Infection (PI) - - - - Partum Kasep (PK) - Prolonged Labor with complcations (PLC) - - - - Partus Lama (PL) - Prolonged Labor (PL) - - - - Demam Berdarah (DB) - Dengue Hemorrhagic Fever - - - - Tifus Abdominalis (TA) - Typhus Abdominalis - - - - Sepsis (S) - Sepsis - - - - Pulmonal - Pulmonary - - - - Air Ketuban - Amniotic fluid - - - - Lain-lain - Others - - - - Tidak ada komplikasi kehamilan - No pregnancy complication - - - - - - Other complication - - - - - - Resiko terdeteksi pertama kali oleh - First person diagnosed risk in pregnancy - Pendeteksi pertama komplikasi pada kehamilan Ibu - The person who first detect mother's pregnancy complication - - ... - Pasien (P) - Keluarga (K) - Masyarakat (M) - Dukun (D) - Kader (K) - Bidan (B) - Dokter (D) - Dokter Spesialis Obsestri dan Gemotologi (DSOG) - Tidak ada resiko terdeteksi - - - Pasien (P) - Patient (P) - Keluarga (K) - Family (F) - Masyarakat (M) - Community (C) - Dukun (D) - Traditional Birth Attendant (TBA) - Kader (K) - Cadre (Cr) - Bidan (B) - Midwife (M) - Dokter (D) - Doctor (D) - Dokter Spesialis Obsestri dan Gemotologi (DSOG) - Obstectric and Gynecology Specialist (OGS) - Tidak ada resiko terdeteksi - No risk detected - - - - - - Penanganan diberikan? - Give treatment? - Apakah ada penanganan yang diberikan kepada pasien? Jika iya, sebutkan. - Do you give any treatment to the patient? If yes, please describe. - - - - - Ya - Yes - - - - Tidak - No - - - - - - Deskripsikan penanganan yang diberikan - Describe the treatment you give to the patient - - - - - - Apakah Anda merujuk Ibu hamil ke fasilitas kesehatan lainnya? - Do you refer the mother to other health facility? - Menunjukkan bahwa bidan merujuk Ibu hamil ke ke tempat fasilitas kesehatan lainnya - Indicating whether midwife refers pregnant mother to other health facility - - - - - Ya - Yes - - - - Tidak - No - - - - - - Dirujuk ke - Referred to - Lokasi tujuan rujukan Ibu jika mengalami komplikasi kehamilan - Location of facility where mother with pregnancy complication is referred to - - ... - Pusat Kesehatan Masyarakat (Puskesmas ) - Rumah Bersalin (RB) - Rumah Sakit Ibu dan Anak (RSIA) - Rumah Sakit (RS) - Lain-lain (LN) - - - Pusat Kesehatan Masyarakat (Puskesmas ) - Primary Health Center (Puskesmas) - Rumah Bersalin (RB) - Maternity Hospital (RB) - Rumah Sakit Ibu dan Anak (RSIA) - Maternal and Child Hospital (RSIA) - Rumah Sakit (RS) - Hospital - Lain-lain (LN) - Others - - - - lain-lain - Other - Diisi dengan lokasi tujuan rujukan selain yang disebutkan jika Ibu mengalami komplikasi kehamilan - Write other location of facility where mother with pregnancy complication is referred to - - - - - - Keadaan Ibu saat tiba - Mother's condition when arrives at referred facilty - Keadaan saat ibu tiba tempat rujukan - Mother's condition when arrives at referred facility - - - - - Hidup (H) - Alive (A); - - - - Mati (M) - Dead (M) - - - - - - - - Keadaan Ibu saat pulang - Mother's condition when discharges from referred facility - Keadaan saat ibu pulang dari tempat rujukan - Mother's condition when returns home from referred facility - - - - - Hidup (H) - Alive (A); - - - - Mati (M) - Dead (M) - - - - - - Keterangan - Notes - Diisi dengan keterangan terkait rujukan - Write any additional information related to the referred facility - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kartu_anc_visit/form_definition.json b/opensrp-bidan/src/main/assets/www/form/kartu_anc_visit/form_definition.json deleted file mode 100644 index d1b5d77..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_anc_visit/form_definition.json +++ /dev/null @@ -1,282 +0,0 @@ -{ - "form_data_definition_version": "3", - "form": { - "bind_type": "ibu", - "ec_bind_type": "ec_ibu", - "default_bind_path": "/model/instance/kunjungan_anc_reviewed_anc_visit/", - "fields": [ - { - "name": "id", - "shouldLoadValue": true - }, - { - "name": "start", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/start" - }, - { - "name": "end", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/end" - }, - { - "name": "kiId", - "shouldLoadValue": true, - "source": "ibu.kartu_ibu.id" - }, - { - "name": "existing_location", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/existing_location", - "shouldLoadValue": true - }, - { - "name": "cityVillage", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/Village", - "shouldLoadValue": true - }, - { - "name": "Province", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/Province", - "shouldLoadValue": true - }, - { - "name": "Sub-district", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/Sub-district", - "shouldLoadValue": true - }, - { - "name": "District", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/District", - "shouldLoadValue": true - }, - { - "name": "Sub-village", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/Sub-village", - "shouldLoadValue": true - }, - { - "name": "dusun", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/dusun", - "shouldLoadValue": true - }, - { - "name": "provinsi", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/provinsi", - "shouldLoadValue": true - }, - { - "name": "kabupaten", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/kabupaten", - "shouldLoadValue": true - }, - { - "name": "kecamatan", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/kecamatan", - "shouldLoadValue": true - }, - { - "name": "desa", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/desa", - "shouldLoadValue": true - }, - { - "name": "lokasiPeriksa", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/Lokasi_periksa" - }, - { - "name": "nomorTelpon", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/nomortelpon" - }, - { - "name": "nomorHp", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/nomor_telpon_hp" - }, - { - "name": "KeteranganK1k4Who", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/Keterangan_k1k4_who" - }, - { - "name": "referenceDate", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/ref_date" - }, - { - "name": "ancDate", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/anc_date" - }, - { - "name": "tanggalHPHT", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/hpht", - "shouldLoadValue": true - }, - { - "name": "usiaKlinis", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/usia_klinis" - }, - { - "name": "trimesterKe", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/trimester_ke" - }, - { - "name": "kunjunganKe", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/kunjungan_ke" - }, - { - "name": "ancKe", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/anc_ke" - }, - { - "name": "Jamkesmas", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/jamkesmas" - }, - { - "name": "caraMasukTempatPelayanan", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/cara_masuk_tempat_pelayanan" - }, - { - "name": "anamnesisIbu", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/anamnesis_ibu" - }, - { - "name": "bbKg", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/bb_kg" - }, - { - "name": "tandaVitalTDSistolik", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/td_sistolik" - }, - { - "name": "tandaVitalTDDiastolik", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/td_diastolik" - }, - { - "name": "hasilPemeriksaanLILA", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/lila_cm" - }, - { - "name": "statusGiziibu", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/status_gizi_ibu" - }, - { - "name": "tfu", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/tfu" - }, - { - "name": "refleksPatelaIbu", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/refleks_patela_ibu" - }, - { - "name": "djj", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/djj" - }, - { - "name": "kepalaJaninTerhadapPAP", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/kepala_terhadap_janin_pap" - }, - { - "name": "taksiranBeratJanin", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/taksiran_berat_janin" - }, - { - "name": "persentasiJanin", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/persentasi_janin" - }, - { - "name": "jumlahJanin", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/jumlah_janin" - }, - { - "name": "statusImunisasitt", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/status_imunisasi_tt" - }, - { - "name": "pelayananInjeksitt", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/pelayanan_injeksi_tt" - }, - { - "name": "pelayananCatatDiBukuKia", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/pelayanan_catat_buku_kia" - }, - { - "name": "pelayananfe", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/pelayananfe" - }, - { - "name": "pelayananFe", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/jumlah_fe" - }, - { - "name": "komplikasidalamKehamilan", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/komplikasi_dalam_kehamilan" - }, - { - "name": "komplikasiLain", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/komplikasi_lain" - }, - { - "name": "treatment", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/treatment" - }, - { - "name": "treatmentText", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/treatment_text" - }, - { - "name": "rujukan", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/dirujuk" - }, - { - "name": "dirujukKe", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/dirujuk_ke" - }, - { - "name": "lainLain", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/dirujuk_keL" - }, - { - "name": "keadaanIbusaatTiba", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/keadaan_ibu_saat_tiba" - }, - { - "name": "keadaanIbusaatPulang", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/keadaan_ibu_saat_pulang" - }, - { - "name": "keterangan", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/keterangan" - }, - { - "name": "highRiskPregnancyProteinEnergyMalnutrition", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/High_Risk_Pregnancy_Protein_energy_Malnutrition" - }, - { - "name": "highRiskPregnancyPIH", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/High_Risk_Pregnancy_PIH" - }, - { - "name": "highRisklabourFetusNumber", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/High_Risk_Labour_fetus_number" - - }, - { - "name": "highRiskLabourFetusSize", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/High_Risk_Labour_fetus_size" - - }, - { - "name": "highRiskLabourFetusMalpresentation", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/High_Risk_Labour_fetus_Malpresentation" - - }, - { - "name": "submissionDate", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/today" - }, - { - "name": "registrationDate", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/reg_date" - }, - { - "name": "hiddenAncKe", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/hidden_anc_ke" - } - ] - } -} diff --git a/opensrp-bidan/src/main/assets/www/form/kartu_anc_visit/model.xml b/opensrp-bidan/src/main/assets/www/form/kartu_anc_visit/model.xml deleted file mode 100644 index dd9e290..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_anc_visit/model.xml +++ /dev/null @@ -1,85 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - tidak ada keluhan - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kartu_anc_visit_edit/form.xml b/opensrp-bidan/src/main/assets/www/form/kartu_anc_visit_edit/form.xml deleted file mode 100644 index 66bbcb0..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_anc_visit_edit/form.xml +++ /dev/null @@ -1,1692 +0,0 @@ - - - - Kunjungan ANC - - Bahasa - English - - - - - - Lokasi Periksa - - * - - Location of Service - - - - - - Posyandu - - Posyandu - - - - - Polindes - - Polindes - - - - - - - - - Apakah ibu - memiliki nomor telpon? - - - - - - - - - Ya - - Yes - - - - - - Tidak - - No - - - - - - - Nomor Telpon/Hp - - Landline/Cell - Phone Number - - - - - Tanggal kunjungan ANC - - Date of ANC visit - - * - Diisi dengan tanggal - periksa Ibu - - Fill in the date of - check-up - - - - - Usia - Klinis : - - - - Gestational Age - - - - - Trimester - Ke: - - - Trimester - order - - - - - - - Kunjungan Ke : - - * - - Number of Visit - - - - - - 1 - - 1 - - - - - 2 - - 2 - - - - - 3 - - 3 - - - - - 4 - - 4 - - - - - 5 - - 5 - - - - - 6 - - 6 - - - - - 7 - - 7 - - - - - 8 - - 8 - - - - - 9 - - 9 - - - - - - - - - K1 - K4? - - * - - Recommend Antenatal Care Visit 1 to 4 - - - - - - K1 - - K1 - - - - - K2 - - K2 - - - - - K3 - - K3 - - - - - K4 - - K4 - - - - - - - - K1 standar - kunjungan pertama kurang atau sama dg 12 minggu. K1 akses - kunjungan pertama pada semua usia kehamilan. - - K1 standar - kunjungan pertama kurang atau sama dg 12 minggu. K1 akses - kunjungan pertama pada semua usia kehamilan. - - - - - - - Keterangan K1/K4? - - - - - - - - - Standar - - Standard - - - - - - Akses - - Accessible - - - - - - - - - Jamkesmas - - Insurance - - Apakah Ibu - memiliki Jamkesmas atau tidak - - Does mother - have the card of National Health Insurance for the Poor and Near Poor? - - - - - - - Jika Ya (√) - - - Yes - - - - - - Jika Tidak (x) - - - No - - - - - - - Cara - Masuk Tempat Pelayanan - - - Process to get to Health Facility - - Diisi - dengan cara Ibu untuk masuk ke tempat pelayanan - - - Mother's reason for seeking care service in the facility - - - ... - Atas Permintaan Sendiri (APS) - Rujukan Dokter (Dr) - Rujukan Bidan (Bd) - Rujukan Dukun (RD) - Rujukan Polindes (Pol) - Rujukan Puskesmas Pembantu ( PST) - Rujukan Puskesmas (PKS) - Rujukan Rumah Bersalin (RB) - Rujukan Rumah Sakit Ibu dan Anak (RSIA) - - - Atas Permintaan Sendiri - (APS) - - Mother's own will - Rujukan Dokter (Dr) - Doctor's referral - Rujukan Bidan (Bd) - Midwife referral - Rujukan Dukun (RD) - Traditional birth attendant referral - - Rujukan Polindes (Pol) - Community-based health post - referral - - Rujukan Puskesmas - Pembantu ( PST) - - Sub-center referral - - Rujukan Puskesmas (PKS) - Primary Health Center Referral - - Rujukan Rumah Bersalin - (RB) - - Maternity hospital referral - - Rujukan Rumah Sakit Ibu dan Anak (RSIA) - - Maternal and child hospital referral - - - - Anamnesis Ibu - - Anamnesis of - mother - - Diisi dengan - keluhan atau hal-hal yang dirasakan Ibu selama hamil - - Write mother's - complaints or concerns during pregnancy - - - - - Nilai yang - dimasukkan tidak memenuhi syarat, mohon periksa kembali - - The entered - value doesn't meet the criteria, please check it again - - BB (Kg) - - Weight of mother - - * - Menunjukkan berat badan Ibu - pada saat Kunjungan ANC (Kg) - - Indicating mother's weight - on ANC check-up (kg) - - - - - Nilai - yang dimasukkan tidak memenuhi syarat, mohon periksa kembali - - The - entered value doesn't meet the criteria, please check it again - - TD (Sistolik) - - Blood pressure - (sistolic) - - Menunjukkan tekanan - darah (Sistolik) Ibu pada saat kunjungan ANC (mmHg) - - Indicating mother's - blood pressure (systolic) on ANC check-up - - - - - Nilai - yang dimasukkan tidak memenuhi syarat, mohon periksa kembali - - The - entered value doesn't meet the criteria, please check it again - - TD (Diastolik) - - Blood pressure - (Diastolic) - - Menunjukkan tekanan - darah (Diastolik) Ibu pada saat kunjungan ANC (mmHg) - - Indicating mother's - blood pressure (dyastolic) on ANC check-up - - - - - Nilai yang - dimasukkan tidak memenuhi syarat, mohon periksa kembali - - The entered - value doesn't meet the criteria, please check it again - - LILA (cm) - - Mid-Upper Arm - Circumference of mother - - Menunjukkan lingkar - lengan Ibu pada saat kunjungan ANC (cm) - - Indicating mother's arm - circumference on ANC check-up - - - - - - - Status - Gizi ibu - - - Nutritional status of mother - - - Menunjukkan status gizi Ibu pada saat kunjungan ANC (Kg) - - - Indicating mother's nutritional status on ANC check-up - - - - - - - Kekurangan Energi Kronis (KEK) - - - Chronic Energy Deficiency (CED) - - - - - - Normal (N) - - - Normal - - - - - - - Nilai yang - dimasukkan tidak memenuhi syarat, mohon periksa kembali - - The entered value - doesn't meet the criteria, please check it again - - TFU - - Fundal height - - Menunjukkan Tinggi Fundus - Uteri Ibu pada saat Kunjungan ANC (cm) - - - Indicating mother's fundal height on ANC check-up - - - - - - - - Refleks Patela Ibu - - - Patella reflex - - - Menunjukkan hasil Pemeriksaan Refleks Patella Ibu pada saat Kunjungan ANC - - - Indicating mother's patella reflex on ANC check-up - - - - - - - Ada (+) - - - Positive - - - - - - Tidak (-) - - - Negative - - - - - - - Nilai yang - dimasukkan tidak memenuhi syarat, mohon periksa kembali - - The entered value - doesn't meet the criteria, please check it again - - DJJ - - Heart rate of fetus - - Menunjukkan hasil perhitungan - Denyut Jantung Janin per menit pada saat kunjungan ANC - - - Indicating the calculation of fetus heart rate per minute on ANC check-up - - - - - - - - Kepala Janin Terhadap PAP - - - Head of fetus towards Pelvic Inlet - - * - - Menunjukkan apakah kepala janin sudah masuk Pintu Atas Panggul atau tidak - - - Indicating whether fetus head has gotten into the pelvic inlet - - - - - - - Masuk (M) - - - Fetus head enters pelvic inlet - - - - - - Belum Masuk (BM) - - - Fetus head doesn't enter pelvic inlet - - - - - - - Taksiran - Berat Janin: - - - Estimated - weight of fetus - - - Menunjukkan berapa hasil perhitungan taksiran berat badan janin (gram) - - Indicating - the calculation of estimated fetus weight (gram) - - - - - - - - Persentasi Janin - - Fetal - presentation - - Bagian - terendah dari janin dalam perut Ibu - - - Indicating the lowest part of fetus inside mother's womb - - - - - - - Kepala (KP) - - - Head - - - - - - Bokong / Sungsang (BS) - - - Buttock/ breech presentation - - - - - - Letak Lintang / Obligue (LLO) - - - Oblique - - - - - - - - - Jumlah - Janin - - Number of - fetus - - Berapa - jumlah janin yang ada dalam uterus Ibu - - Indicating - number of fetus in mother's womb - - - - - - - Tunggal (T) - - - Single - - - - - - Ganda (G) - - - Double - - - - - - - Status - Imunisasi TT - - TT - immunization status - - * - Menunjukkan - status imunisasi TT yang diberikan kepada Ibu - - Indicating - status of TT immunization that mother has received - - - ... - TT Ke 0 (T0) - TT ke 1 (T1) - TT Ke 2 (T2) - TT ke 3 (T3) - TT ke 4 (TT4) - TT ke Ke 5 (TT5) - Ibu telah menerima imunisasi TT yang lengkap - - - TT Ke 0 (T0) - TT 0 (T0) - TT ke 1 (T1) - TT 1 (T1) - TT Ke 2 (T2) - TT 2 (T2) - TT ke 3 (T3) - TT 3 (T3) - TT ke 4 (TT4) - TT 4 (T4) - TT ke Ke 5 (TT5) - TT 5 (TT5) - Ibu telah menerima imunisasi TT yang - lengkap - - Mother has received complete TT - immunization - - - - - - - - Injeksi TT dilakukan - - - Service / TT Injection - - - Menunjukkan apakah Ibu mendapatkan suntik TT pada saat kunjungan ANC atau tidak - - - Indicating whether mother gets TT injection on ANC check-up - - - - - - - JIka dilakukan (√) - - - Yes (√) - - - - - - Jika tidak dilakukan (x) - - - No (x) - - - - - - - - - - Catat di Buku Kia - - - Service / Write in Maternal and Child Health Booklet (Pink Book) - - - Semua hasil pemeriksaan di catat di buku KIA - - - Indicating whether all check-up results are recorded in MCH Booklet - - - - - - - JIka dilakukan (√) - - - Yes (√) - - - - - - Jika tidak dilakukan (x) - - - No (x) - - - - - - - - - Pelayanan Fe - dilakukan - - Service / Fe - - Menunjukkan - pelayanan Fe dilakukan atau tidak - - Indicating - whether midwife provides Fe service - - - - - - Ya - - Yes - - - - - - Tidak - - No - - - - - - - Nilai yang - dimasukkan tidak memenuhi syarat, mohon periksa kembali - - The entered - value doesn't meet the criteria, please check it again - - Jumlah Fe yang - diberikan - - Number of Fe Tablet - given - - Menunjukkan jumlah Fe - yang diberikan saat kunjungan ANC (tab/botol) - - Indicating amount of Fe - tablets given to mother on ANC check-up (tablet/bottle) - - - - - - - - Komplikasi dalam kehamilan - - - Complications during pregnancy - - - Menunjukkan komplikasi kehamilan pada Ibu - - - Indicating pregnancy complication that mother has - - - - - - - Hipertensi dalam Kehamilan (HDK) - - - Hypertension during Pregnancy (HDP) - - - - - - Abortus (AS) - - - Abortus (AS) - - - - - - Mola (ML) - - - Mola (ML) - - - - - - Kehamilan Ektopit Terganggu (KET) - - - Ectopic Pregnancy (EP) - - - - - - Hemoragi Post Partum (HPP) - - - Post Partum Hemorrhage (PPH) - - - - - - Ante Partum Beleding (APB) - - - Ante Partum Bleeding (APB) - - - - - - Injeksi Jalan Lahir (IJL) - - - Puerperal Infection (PI) - - - - - - Partum Kasep (PK) - - - Prolonged Labor with complcations (PLC) - - - - - - Partus Lama (PL) - - - Prolonged Labor (PL) - - - - - - Demam Berdarah (DB) - - - Dengue Hemorrhagic Fever - - - - - - Tifus Abdominalis (TA) - - - Typhus Abdominalis - - - - - - Sepsis (S) - - - Sepsis - - - - - - Tidak ada komplikasi kehamilan - - - No pregnancy complication - - - - - - - - - Apakah Anda - merujuk Ibu hamil ke fasilitas kesehatan lainnya? - - Do you refer the - mother to other health facility? - - Menunjukkan bahwa - bidan merujuk Ibu hamil ke ke tempat fasilitas kesehatan lainnya - - Indicating - whether midwife refers pregnant mother to other health facility - - - - - - Ya - - Yes - - - - - Tidak - - No - - - - - - - Dirujuk ke - - Referred to - - Lokasi tujuan rujukan - Ibu jika mengalami komplikasi kehamilan - - Location of facility - where mother with pregnancy complication is referred to - - - ... - Pusat Kesehatan Masyarakat (Puskesmas ) - - Rumah Bersalin (RB) - Rumah Sakit Ibu dan Anak (RSIA) - Rumah Sakit (RS) - Lain-lain (LN) - - - Pusat Kesehatan - Masyarakat (Puskesmas ) - - Primary Health Center - (Puskesmas) - - Rumah Bersalin (RB) - Maternity Hospital (RB) - Rumah Sakit Ibu dan - Anak (RSIA) - - Maternal and Child Hospital - (RSIA) - - Rumah Sakit (RS) - Hospital - Lain-lain (LN) - Others - - - - lain-lain - - Other - - Diisi dengan lokasi - tujuan rujukan selain yang disebutkan jika Ibu mengalami komplikasi kehamilan - - Write other location - of facility where mother with pregnancy complication is referred to - - - - - - - - Keadaan Ibu saat tiba - - - Mother's condition when arrives at referred facilty - - - Keadaan saat ibu tiba tempat rujukan - - - Mother's condition when arrives at referred facility - - - - - - - Hidup (H) - - - Alive (A); - - - - - - Mati (M) - - - Dead (M) - - - - - - - - - - Keadaan Ibu saat pulang - - - Mother's condition when discharges from referred facility - - - Keadaan saat ibu pulang dari tempat rujukan - - - Mother's condition when returns home from referred facility - - - - - - - Hidup (H) - - - Alive (A); - - - - - - Mati (M) - - - Dead (M) - - - - - - - Keterangan - - Notes - - Diisi dengan - keterangan terkait rujukan - - Write any additional - information related to the referred facility - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kartu_anc_visit_edit/form_definition.json b/opensrp-bidan/src/main/assets/www/form/kartu_anc_visit_edit/form_definition.json deleted file mode 100644 index b74c649..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_anc_visit_edit/form_definition.json +++ /dev/null @@ -1,246 +0,0 @@ -{ - "form_data_definition_version": "1", - "form": { - "bind_type": "ibu", - "default_bind_path": "/model/instance/kunjungan_anc_reviewed_anc_visit/", - "fields": [ - { - "name": "id", - "shouldLoadValue": true - }, - { - "name": "kiId", - "shouldLoadValue": true, - "source": "ibu.kartu_ibu.id" - }, - { - "name": "lokasiPeriksa", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/Lokasi_periksa", - "shouldLoadValue": true - }, - { - "name": "nomorTelpon", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/nomortelpon", - "shouldLoadValue": true - }, - { - "name": "Keterangan_k1k4", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/Keterangan_k1k4", - "shouldLoadValue": true - }, - { - "name": "referenceDate", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/ref_date", - "shouldLoadValue": true - }, - { - "name": "ancDate", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/anc_date", - "shouldLoadValue": true - }, - { - "name": "tanggalHPHT", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/hpht", - "shouldLoadValue": true - }, - { - "name": "usiaKlinis", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/usia_klinis", - "shouldLoadValue": true - }, - { - "name": "trimesterKe", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/trimester_ke", - "shouldLoadValue": true - }, - { - "name": "kunjunganKe", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/Kunjungan_ke", - "shouldLoadValue": true - }, - { - "name": "ancKe", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/anc_ke", - "shouldLoadValue": true - }, - { - "name": "Jamkesmas", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/jamkesmas", - "shouldLoadValue": true - }, - { - "name": "caraMasukTempatPelayanan", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/cara_masuk_tempat_pelayanan", - "shouldLoadValue": true - }, - { - "name": "anamnesisIbu", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/anamnesis_ibu", - "shouldLoadValue": true - }, - { - "name": "bbKg", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/bb_kg", - "shouldLoadValue": true - }, - { - "name": "tandaVitalTDSistolik", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/td_sistolik", - "shouldLoadValue": true - }, - { - "name": "tandaVitalTDDiastolik", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/td_diastolik", - "shouldLoadValue": true - }, - { - "name": "hasilPemeriksaanLILA", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/lila_cm", - "shouldLoadValue": true - }, - { - "name": "statusGiziibu", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/status_gizi_ibu", - "shouldLoadValue": true - }, - { - "name": "tfu", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/tfu", - "shouldLoadValue": true - }, - { - "name": "refleksPatelaIbu", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/refleks_patela_ibu", - "shouldLoadValue": true - }, - { - "name": "djj", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/djj", - "shouldLoadValue": true - }, - { - "name": "kepalaJaninTerhadapPAP", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/kepala_terhadap_janin_pap", - "shouldLoadValue": true - }, - { - "name": "taksiranBeratJanin", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/taksiran_berat_janin", - "shouldLoadValue": true - }, - { - "name": "persentasiJanin", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/persentasi_janin", - "shouldLoadValue": true - }, - { - "name": "jumlahJanin", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/jumlah_janin", - "shouldLoadValue": true - }, - { - "name": "statusImunisasitt", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/status_imunisasi_tt", - "shouldLoadValue": true - }, - { - "name": "pelayananInjeksitt", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/pelayanan_injeksi_tt", - "shouldLoadValue": true - }, - { - "name": "pelayananCatatDiBukuKia", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/pelayanan_catat_buku_kia", - "shouldLoadValue": true - }, - { - "name": "pelayananfe", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/pelayananfe", - "shouldLoadValue": true - }, - { - "name": "pelayananFe", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/jumlah_fe", - "shouldLoadValue": true - }, - { - "name": "komplikasidalamKehamilan", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/komplikasi_dalam_kehamilan", - "shouldLoadValue": true - }, - { - "name": "rujukan", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/dirujuk", - "shouldLoadValue": true - }, - { - "name": "dirujukKe", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/dirujuk_ke", - "shouldLoadValue": true - }, - { - "name": "lainLain", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/dirujuk_keL", - "shouldLoadValue": true - }, - { - "name": "keadaanIbusaatTiba", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/keadaan_ibu_saat_tiba", - "shouldLoadValue": true - }, - { - "name": "keadaanIbusaatPulang", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/keadaan_ibu_saat_pulang", - "shouldLoadValue": true - }, - { - "name": "keterangan", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/keterangan", - "shouldLoadValue": true - }, - { - "name": "highRiskPregnancyProteinEnergyMalnutrition", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/High_Risk_Pregnancy_Protein_energy_Malnutrition", - "shouldLoadValue": true - }, - { - "name": "highRiskPregnancyPIH", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/High_Risk_Pregnancy_PIH", - "shouldLoadValue": true - }, - { - "name": "highRisklabourFetusNumber", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/High_Risk_Labour_fetus_number", - "shouldLoadValue": true - - }, - { - "name": "highRiskLabourFetusSize", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/High_Risk_Labour_fetus_size", - "shouldLoadValue": true - - }, - { - "name": "highRiskLabourFetusMalpresentation", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/High_Risk_Labour_fetus_Malpresentation", - "shouldLoadValue": true - - }, - { - "name": "submissionDate", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/today", - "shouldLoadValue": true - }, - { - "name": "registrationDate", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/reg_date", - "shouldLoadValue": true - }, - { - "name": "hiddenAncKe", - "bind": "/model/instance/kunjungan_anc_reviewed_anc_visit/hidden_anc_ke", - "shouldLoadValue": true - } - ] - } -} diff --git a/opensrp-bidan/src/main/assets/www/form/kartu_anc_visit_edit/model.xml b/opensrp-bidan/src/main/assets/www/form/kartu_anc_visit_edit/model.xml deleted file mode 100644 index 1094479..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_anc_visit_edit/model.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - tidak ada keluhan - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kartu_anc_visit_integrasi/form.json b/opensrp-bidan/src/main/assets/www/form/kartu_anc_visit_integrasi/form.json deleted file mode 100644 index f630978..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_anc_visit_integrasi/form.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"kunjungan_anc_reviewed_integrasi","title":"Kunjungan ANC integrasi","sms_keyword":"kunjungan_anc_integrasi","default_language":"Bahasa","instance":{"encounter_type":"Kunjungan ANC integrasi"},"version":"201610110621","id_string":"kunjungan_anc_integrasi","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":"person_address","openmrs_entity_id":"stateProvince","openmrs_entity_parent":"usual_residence"}},{"bind":{"calculate":"${District}"},"type":"calculate","name":"kabupaten","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"countyDistrict","openmrs_entity_parent":"usual_residence"}},{"bind":{"calculate":"${Village}"},"type":"calculate","name":"desa","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"cityVillage","openmrs_entity_parent":"usual_residence"}},{"bind":{"calculate":"${Sub-village}"},"type":"calculate","name":"dusun","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"address1","openmrs_entity_parent":"usual_residence"}},{"bind":{"calculate":"${Sub-district}"},"type":"calculate","name":"kecamatan","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"address2","openmrs_entity_parent":"usual_residence"}},{"control":{"appearance":"yes"},"name":"lokasi_periksa","label":{"Bahasa":"Lokasi Periksa","English":"Location of Service"},"instance":{"openmrs_entity_id":"161010AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"163121AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Posyandu","label":{"Bahasa":"Posyandu","English":"Village Outreach Post"}},{"instance":{"openmrs_code":"163512AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Polindes","label":{"Bahasa":"Polindes","English":"Maternal & Child Health Post"}},{"instance":{"openmrs_code":"159372AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Puskesmas","label":{"Bahasa":"Puskesmas","English":"Primary Health Center"}},{"instance":{"openmrs_code":"1536AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Rumah_Ibu","label":{"Bahasa":"Rumah Ibu","English":"Mother House"}},{"instance":{"openmrs_code":"1589AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Rumah_Sakit","label":{"Bahasa":"Rumah Sakit","English":"Hospital"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Lainnya","label":{"Bahasa":"Lainnya","English":"Other"}}]},{"name":"reference_date","hint":{"Bahasa":"Diisi dengan tanggal periksa Ibu","English":"Fill in the date of check-up"},"bind":{"required":"yes"},"label":{"Bahasa":"Tanggal kunjungan Program Integrasi","English":"Date of Integration Program visit"},"instance":{"openmrs_entity_id":"160753AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"date"},{"instance":{"openmrs_entity":"n/a"},"label":{"Bahasa":"Apakah anda melakukan Integrasi Program terhadap Ibu Hamil?","English":"Do you provide Program Integration to the mother?"},"type":"note","name":"generated_note_name_27","hint":{"Bahasa":"Menunjukan detail Integrasi Program yang diberikan kepada Ibu Hamil","English":"Indicating details of Program Integration provided for the pregnant mother"}},{"name":"integrasi_program_pmtct_vct","hint":{"Bahasa":"Menunjukkan apakah Ibu melakukan Voluntary Counseling Test atau tidak","English":"Indicating whether mother does a Voluntary Counseling Test"},"label":{"Bahasa":"VCT","English":"VCT"},"instance":{"openmrs_entity_id":"1370AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Ya","label":{"Bahasa":"Ya","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Tidak","label":{"Bahasa":"Tidak","English":"No"}}]},{"name":"integrasi_program_pmtct_periksa_darah","hint":{"Bahasa":"Menunjukkan jika Ibu melakukan pemeriksaan darah untuk Uji PMTCT atau tidak","English":"Indicating whether mother does PMTCT (prevention of mother-to-child transmission) test"},"bind":{"relevant":"${integrasi_program_pmtct_vct}='Ya'"},"label":{"Bahasa":"Periksa Darah untuk uji PMTCT","English":"Blood checkup for PMTCT test"},"instance":{"openmrs_entity_id":"1356AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"jika_dilakukan","label":{"Bahasa":"JIka dilakukan (√)","English":"Yes (√)"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"jika_tidak_dilakukan","label":{"Bahasa":"Jika tidak dilakukan (x)","English":"No (x)"}}]},{"name":"integrasi_program_pmtct_serologi","hint":{"Bahasa":"Menunjukkan hasil pemeriksaan serologi pada Ibu hamil","English":"Indicating mother's serology test result"},"bind":{"relevant":"${integrasi_program_pmtct_vct}='Ya'"},"label":{"Bahasa":"Serologi","English":"Serology"},"instance":{"openmrs_entity_id":"159427AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"703AAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"positif","label":{"Bahasa":"Positif (+)","English":"Positive (+)"}},{"instance":{"openmrs_code":"664AAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"negatif","label":{"Bahasa":"Negatif (-)","English":"Negative (-)"}},{"instance":{"openmrs_code":"1118AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Tidak","label":{"Bahasa":"Tidak dilakukan","English":"No"}}]},{"name":"integrasi_program_pmtct_arv","hint":{"Bahasa":"Menunjukkan jenis obat pada Ibu yang mengalami PMTCT","English":"Indicating type of medicines that mother with PMTCT receives"},"bind":{"relevant":"${integrasi_program_pmtct_vct}='Ya'"},"label":{"Bahasa":"ARV Profilaksis","English":"ARV"},"instance":{"openmrs_entity_id":"1085AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"86663AAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ZDV","label":{"Bahasa":"(ZDV)","English":"(ZDV)"}},{"instance":{"openmrs_code":"80586AAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"NVP","label":{"Bahasa":"(NVP)","English":"(NVP)"}},{"instance":{"openmrs_code":"78643AAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TC","label":{"Bahasa":"(TC)","English":"(TC)"}}]},{"name":"integrasi_program_malaria_periksa_darah","hint":{"Bahasa":"Menunjukkan apakah Ibu melakukan pemeriksaan darah, yang bertujuan memastikan apakah ada parasit penyebab Malaria dalam darah Ibu","English":"Indicating whether mother does a blood test for malaria"},"bind":{"required":"yes"},"label":{"Bahasa":"Periksa Darah untuk uji Malaria","English":"Blood check-up for Malaria"},"instance":{"openmrs_entity_id":"1643AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"703AAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"positif","label":{"Bahasa":"Positif (+)","English":"Positive (+)"}},{"instance":{"openmrs_code":"664AAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"negatif","label":{"Bahasa":"Negatif (-)","English":"Negative (-)"}},{"instance":{"openmrs_code":"1118AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Tidak","label":{"Bahasa":"Tidak dilakukan","English":"No"}}]},{"name":"integrasi_program_malaria_obat","hint":{"Bahasa":"Menunjukkan jenis obat Malaria yang diberikan ke Ibu","English":"Indicating type of medicines that mother with malaria receives"},"bind":{"relevant":"${integrasi_program_malaria_periksa_darah} = 'positif'"},"label":{"Bahasa":"Obat Malaria","English":"Medicine for malaria"},"instance":{"openmrs_entity_id":"5839AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"71561AAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ART","label":{"Bahasa":"(ART)","English":"(ART)"}},{"instance":{"openmrs_code":"71153AAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"AMO","label":{"Bahasa":"(AMO)","English":"(AMO)"}},{"instance":{"openmrs_code":"83023AAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"KIN","label":{"Bahasa":"(KIN)","English":"(KIN)"}}]},{"name":"integrasi_program_malaria_kelambu","hint":{"Bahasa":"Menunjukkan apakah Ibu memasang kelambu berinsektisida atau tidak","English":"Indicating whether mother uses insecticide-treated nets"},"bind":{"relevant":"${integrasi_program_malaria_periksa_darah} = 'positif'"},"label":{"Bahasa":"Memasang kelambu berinsektisida","English":"mosquito net"},"instance":{"openmrs_entity_id":"159855AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Ya","label":{"Bahasa":"Ya","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Tidak","label":{"Bahasa":"Tidak","English":"No"}}]},{"name":"integrasi_program_tb_dahak","hint":{"Bahasa":"Menunjukkan apakah Ibu melakukan pemeriksaan dahak untuk tes TB","English":"Indicating whether mother does sputum examination for TB test"},"label":{"Bahasa":"Periksa dahak (TBC)","English":"Tuberculosis phlegm test"},"instance":{"openmrs_entity_id":"307AAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"703AAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"positif","label":{"Bahasa":"Positif (+)","English":"Positive (+)"}},{"instance":{"openmrs_code":"664AAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"negatif","label":{"Bahasa":"Negatif (-)","English":"Negative (-)"}},{"instance":{"openmrs_code":"1118AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Tidak","label":{"Bahasa":"Tidak dilakukan","English":"No"}}]},{"name":"integrasi_program_tb_obat","hint":{"Bahasa":"Menunjukkan nama obat TBC yang diberikan kepada Ibu","English":"Indicating type of medicines that mother with TB receives"},"bind":{"relevant":"${integrasi_program_tb_dahak} = 'positif'"},"label":{"Bahasa":"Obat TBC","English":"Medicine for TBC"},"instance":{"openmrs_entity_id":"160021AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"767AAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"rifampisin","label":{"Bahasa":"Rifampisin (R)","English":"Rifampicin (R)"}},{"instance":{"openmrs_code":"78280AAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"inh","label":{"Bahasa":"INH (H)","English":"INH (H)"}},{"instance":{"openmrs_code":"82900AAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pyrazinamid","label":{"Bahasa":"Pyrazinamid (Z)","English":"Pyrazinamid (Z);"}},{"instance":{"openmrs_code":"75948AAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"etahmbutol","label":{"Bahasa":"Etahmbutol","English":"Etahmbutol"}}]},{"bind":{"calculate":"if(${integrasi_program_tb_dahak} ='positif', 'yes','no')"},"type":"calculate","name":"High_Risk_TBC","instance":{"openmrs_entity_id":"112141AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"bind":{"calculate":"if(${integrasi_program_malaria_periksa_darah} ='positif', 'yes', 'no')"},"type":"calculate","name":"High_Risk_malaria","instance":{"openmrs_entity_id":"135361AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"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/kartu_anc_visit_integrasi/form.xml b/opensrp-bidan/src/main/assets/www/form/kartu_anc_visit_integrasi/form.xml deleted file mode 100644 index 242a690..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_anc_visit_integrasi/form.xml +++ /dev/null @@ -1,32 +0,0 @@ - - Kunjungan ANC integrasiBahasa English - - - Desa : - - - Dusun : - - - Lokasi PeriksaLocation of Service - PosyanduVillage Outreach PostPolindesMaternal & Child Health PostPuskesmasPrimary Health CenterRumah IbuMother HouseRumah SakitHospitalLainnyaOther - Tanggal kunjungan Program IntegrasiDate of Integration Program visit*Diisi dengan tanggal periksa IbuFill in the date of check-up - Apakah anda melakukan Integrasi Program terhadap Ibu Hamil?Do you provide Program Integration to the mother?Menunjukan detail Integrasi Program yang diberikan kepada Ibu HamilIndicating details of Program Integration provided for the pregnant mother - VCTVCTMenunjukkan apakah Ibu melakukan Voluntary Counseling Test atau tidakIndicating whether mother does a Voluntary Counseling Test - YaYesTidakNo - Periksa Darah untuk uji PMTCTBlood checkup for PMTCT testMenunjukkan jika Ibu melakukan pemeriksaan darah untuk Uji PMTCT atau tidakIndicating whether mother does PMTCT (prevention of mother-to-child transmission) test - JIka dilakukan (√)Yes (√)Jika tidak dilakukan (x)No (x) - SerologiSerologyMenunjukkan hasil pemeriksaan serologi pada Ibu hamilIndicating mother's serology test result - Positif (+)Positive (+)Negatif (-)Negative (-)Tidak dilakukanNo - ARV ProfilaksisARVMenunjukkan jenis obat pada Ibu yang mengalami PMTCTIndicating type of medicines that mother with PMTCT receives - (ZDV)(ZDV)(NVP)(NVP)(TC)(TC) - Periksa Darah untuk uji MalariaBlood check-up for Malaria*Menunjukkan apakah Ibu melakukan pemeriksaan darah, yang bertujuan memastikan apakah ada parasit penyebab Malaria dalam darah IbuIndicating whether mother does a blood test for malaria - Positif (+)Positive (+)Negatif (-)Negative (-)Tidak dilakukanNo - Obat MalariaMedicine for malariaMenunjukkan jenis obat Malaria yang diberikan ke IbuIndicating type of medicines that mother with malaria receives - (ART)(ART)(AMO)(AMO)(KIN)(KIN) - Memasang kelambu berinsektisidamosquito netMenunjukkan apakah Ibu memasang kelambu berinsektisida atau tidakIndicating whether mother uses insecticide-treated nets - YaYesTidakNo - Periksa dahak (TBC)Tuberculosis phlegm testMenunjukkan apakah Ibu melakukan pemeriksaan dahak untuk tes TBIndicating whether mother does sputum examination for TB test - Positif (+)Positive (+)Negatif (-)Negative (-)Tidak dilakukanNo - Obat TBCMedicine for TBCMenunjukkan nama obat TBC yang diberikan kepada IbuIndicating type of medicines that mother with TB receives - Rifampisin (R)Rifampicin (R)INH (H)INH (H)Pyrazinamid (Z)Pyrazinamid (Z);EtahmbutolEtahmbutol - - \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kartu_anc_visit_integrasi/form_definition.json b/opensrp-bidan/src/main/assets/www/form/kartu_anc_visit_integrasi/form_definition.json deleted file mode 100644 index f628a7a..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_anc_visit_integrasi/form_definition.json +++ /dev/null @@ -1,95 +0,0 @@ -{ - "form_data_definition_version": "3", - "form": { - "bind_type": "ibu", - "ec_bind_type": "ec_ibu", - "default_bind_path": "/model/instance/kunjungan_anc_reviewed_integrasi/", - "fields": [ - { - "name": "id", - "shouldLoadValue": true - }, - { - "name": "start", - "bind": "/model/instance/kunjungan_anc_reviewed_integrasi/start" - }, - { - "name": "end", - "bind": "/model/instance/kunjungan_anc_reviewed_integrasi/end" - }, - { - "name": "kiId", - "shouldLoadValue": true, - "source": "ibu.kartu_ibu.id" - }, - { - "name": "cityVillage", - "bind": "/model/instance/kunjungan_anc_reviewed_integrasi/Village", - "shouldLoadValue": true - }, - { - "name": "existing_location", - "bind": "/model/instance/kunjungan_anc_reviewed_integrasi/existing_location", - "shouldLoadValue": true - }, - { - "name": "lokasiPeriksa", - "bind": "/model/instance/kunjungan_anc_reviewed_integrasi/Lokasi_periksa" - }, - { - "name": "referenceDate", - "bind": "/model/instance/kunjungan_anc_reviewed_integrasi/reference_date" - }, - { - "name": "integrasiProgrampmtctvct", - "bind": "/model/instance/kunjungan_anc_reviewed_integrasi/integrasi_program_pmtct_vct" - }, - { - "name": "integrasiProgrampmtctPeriksaDarah", - "bind": "/model/instance/kunjungan_anc_reviewed_integrasi/integrasi_program_pmtct_periksa_darah" - }, - { - "name": "integrasiProgrampmtctSerologi", - "bind": "/model/instance/kunjungan_anc_reviewed_integrasi/integrasi_program_pmtct_serologi" - }, - { - "name": "integrasiProgrampmtctarvProfilaksis", - "bind": "/model/instance/kunjungan_anc_reviewed_integrasi/integrasi_program_pmtct_arv" - }, - { - "name": "integrasiProgramMalariaPeriksaDarah", - "bind": "/model/instance/kunjungan_anc_reviewed_integrasi/integrasi_program_malaria_periksa_darah" - }, - { - "name": "integrasiProgramMalariaObat", - "bind": "/model/instance/kunjungan_anc_reviewed_integrasi/integrasi_program_malaria_obat" - }, - { - "name": "integrasiProgramMalariaKelambuBerinsektisida", - "bind": "/model/instance/kunjungan_anc_reviewed_integrasi/integrasi_program_malaria_kelambu" - }, - { - "name": "integrasiProgramtbDahak", - "bind": "/model/instance/kunjungan_anc_reviewed_integrasi/integrasi_program_tb_dahak" - }, - { - "name": "integrasiProgramtbObat", - "bind": "/model/instance/kunjungan_anc_reviewed_integrasi/integrasi_program_tb_obat" - }, - { - "name": "High_Risk_TBC", - "bind": "/model/instance/kunjungan_anc_reviewed_integrasi/High_Risk_TBC", - "source": "ibu.kartu_ibu.tbcRisk" - }, - { - "name": "High_Risk_malaria", - "bind": "/model/instance/kunjungan_anc_reviewed_integrasi/High_Risk_malaria", - "source": "ibu.kartu_ibu.malariaRisk" - }, - { - "name": "submissionDate", - "bind": "/model/instance/kunjungan_anc_reviewed_integrasi/today" - } - ] - } -} \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kartu_anc_visit_integrasi/model.xml b/opensrp-bidan/src/main/assets/www/form/kartu_anc_visit_integrasi/model.xml deleted file mode 100644 index 437b06c..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_anc_visit_integrasi/model.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kartu_anc_visit_labTest/form.json b/opensrp-bidan/src/main/assets/www/form/kartu_anc_visit_labTest/form.json deleted file mode 100644 index e730346..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_anc_visit_labTest/form.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"kunjungan_anc_reviewed_Lab_test","title":"Kunjungan ANC Lab Test","sms_keyword":"kunjungan_anc_Lab_test","default_language":"Bahasa","instance":{"encounter_type":"Kunjungan ANC Lab Test"},"version":"201703080833","id_string":"kunjungan_anc_Lab_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"}},{"control":{"appearance":"yes"},"name":"lokasi_periksa","label":{"Bahasa":"Lokasi Periksa","English":"Location of Service"},"instance":{"openmrs_entity_id":"161010AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"163121AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Posyandu","label":{"Bahasa":"Posyandu","English":"Village Outreach Post"}},{"instance":{"openmrs_code":"163512AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Polindes","label":{"Bahasa":"Polindes","English":"Maternal & Child Health Post"}},{"instance":{"openmrs_code":"159372AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Puskesmas","label":{"Bahasa":"Puskesmas","English":"Primary Health Center"}},{"instance":{"openmrs_code":"1536AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Rumah_Ibu","label":{"Bahasa":"Rumah Ibu","English":"Mother House"}},{"instance":{"openmrs_code":"1589AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Rumah_Sakit","label":{"Bahasa":"Rumah Sakit","English":"Hospital"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Lainnya","label":{"Bahasa":"Lainnya","English":"Other"}}]},{"name":"reference_date","hint":{"Bahasa":"Diisi dengan tanggal periksa Ibu","English":"Fill in the date of check-up"},"bind":{"required":"yes"},"label":{"Bahasa":"Tanggal kunjungan ANC LAB","English":"Date of ANC LAB visit"},"instance":{"openmrs_entity_id":"160753AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"date"},{"label":{"Bahasa":"Pemeriksaan Laboratorium","English":"Laboratorium check-up"},"type":"note","name":"generated_note_name_26","hint":{"Bahasa":"Menunjukan apakah Ibu melakukan pemeriksaan laboratorium terkait Hb, Protein Uria, Gula Darah, Thalasemia dan Sifilis","English":"Indicating whether mother does lab checks for Hb level, protein urinea, blood glucose, thalasemia and syphillis"}},{"name":"laboratorium_periksa_hb_hasil","hint":{"Bahasa":"Hasil pemeriksaan Hb Ibu dari laboratorium","English":"Result of mother's Hb test from laboratorium"},"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":"Hasil periksa Hb","English":"Result of chek Hb"},"instance":{"openmrs_entity_id":"1828AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"decimal"},{"name":"laboratorium_periksa_hb_anemia","hint":{"Bahasa":"Menunjukkan apakah Ibu mengalami anemia atau tidak","English":"Indicating whether mother is anemic"},"label":{"Bahasa":"Anemia?","English":"Anemia"},"instance":{"openmrs_entity_id":"164083AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"703AAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"positif","label":{"Bahasa":"Positif (+)","English":"Positive (+)"}},{"instance":{"openmrs_code":"664AAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"negatif","label":{"Bahasa":"Negatif (-)","English":"Negative (-)"}}]},{"instance":{"openmrs_entity_parent":"164083AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_id":"160632AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"text","name":"treatment_anemia_txt","label":{"Bahasa":"Deskripsikan penanganan yang diberikan","English":"Describe the treatment you give to the patient"}},{"name":"laboratorium_protein_uria","hint":{"Bahasa":"Menunjukkan kadar protein pada urine Ibu","English":"Indicating mother's protein level"},"label":{"Bahasa":"Protein Uria","English":"Uria Protein"},"instance":{"openmrs_entity_id":"128340AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Ya","label":{"Bahasa":"Ya","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Tidak","label":{"Bahasa":"Tidak","English":"No"}}]},{"instance":{"openmrs_entity_parent":"128340AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_id":"160632AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"text","name":"treatment_proturin_txt","label":{"Bahasa":"Deskripsikan penanganan yang diberikan","English":"Describe the treatment you give to the patient"}},{"name":"laboratorium_gula_darah","hint":{"Bahasa":"Menunjukkan tingkat gula darah Ibu apakah >140 mg/dl atau < 140 mg/dl","English":"Indicating whether mother's blood glucose > 140 mg/dl or < 140 mg/dl"},"label":{"Bahasa":"Gula Darah","English":"Gestational DIabetes"},"instance":{"openmrs_entity_id":"159734AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"703AAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":">_140_mg_dl","label":{"Bahasa":"> 140 mg/dl (+)","English":"> 140 mg/dl (+);"}},{"instance":{"openmrs_code":"664AAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"<_140_mg_dl","label":{"Bahasa":"< 140 mg/dl (-)","English":"< 140 mg/dl (-)"}}]},{"instance":{"openmrs_entity_parent":"159734AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_id":"160632AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"text","name":"treatment_diabetes_txt","label":{"Bahasa":"Deskripsikan penanganan yang diberikan","English":"Describe the treatment you give to the patient"}},{"name":"laboratorium_thalasemia","hint":{"Bahasa":"Menunjukkan apakah Ibu mengidap penyakit Thalasemia atau tidak","English":"Indicating whether mother suffers from thalasemia"},"label":{"Bahasa":"Thalasemia","English":"Thalassemia"},"instance":{"openmrs_entity_id":"164084AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"703AAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"positif","label":{"Bahasa":"Positif (+)","English":"Positive (+)"}},{"instance":{"openmrs_code":"664AAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"negatif","label":{"Bahasa":"Negatif (-)","English":"Negative (-)"}}]},{"instance":{"openmrs_entity_parent":"164084AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_id":"160632AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"text","name":"treatment_thalasemia_txt","label":{"Bahasa":"Deskripsikan penanganan yang diberikan","English":"Describe the treatment you give to the patient"}},{"name":"laboratorium_sifilis","hint":{"Bahasa":"Menunjukkan apakah Ibu mengidap Sifilis atau tidak","English":"Indicating whether mother suffers from syphillis"},"label":{"Bahasa":"Sifilis","English":"Syphilis"},"instance":{"openmrs_entity_id":"1032AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"703AAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"positif","label":{"Bahasa":"Positif (+)","English":"Positive (+)"}},{"instance":{"openmrs_code":"664AAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"negatif","label":{"Bahasa":"Negatif (-)","English":"Negative (-)"}}]},{"instance":{"openmrs_entity_parent":"1032AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_id":"160632AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"text","name":"treatment_sifilis_txt","label":{"Bahasa":"Deskripsikan penanganan yang diberikan","English":"Describe the treatment you give to the patient"}},{"name":"laboratorium_hbsag","hint":{"Bahasa":"Menunjukkan apakah Ibu mengidap Hepatitis B surface Antigen","English":"Indicating whether mother suffers form Hepatitis B surface Antigen"},"label":{"Bahasa":"HbsAg","English":"HBsAg"},"instance":{"openmrs_entity_id":"159430AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"703AAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"positif","label":{"Bahasa":"Positif (+)","English":"Positive (+)"}},{"instance":{"openmrs_code":"664AAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"negatif","label":{"Bahasa":"Negatif (-)","English":"Negative (-)"}}]},{"instance":{"openmrs_entity_parent":"159430AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_id":"160632AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"text","name":"treatment_hbsag_txt","label":{"Bahasa":"Deskripsikan penanganan yang diberikan","English":"Describe the treatment you give to the patient"}},{"bind":{"calculate":"if (${laboratorium_periksa_hb_hasil} < 11, 'yes', 'no')"},"type":"calculate","name":"High_Risk_Pregnancy_anemia","instance":{"openmrs_entity_id":"163397AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"bind":{"calculate":"if(${laboratorium_gula_darah} = '>_140_mg_dl', 'yes', 'no')"},"type":"calculate","name":"High_Risk_Pregnancy_diabetes","instance":{"openmrs_entity_id":"117807AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"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/kartu_anc_visit_labTest/form.xml b/opensrp-bidan/src/main/assets/www/form/kartu_anc_visit_labTest/form.xml deleted file mode 100644 index ceb4d26..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_anc_visit_labTest/form.xml +++ /dev/null @@ -1,302 +0,0 @@ - - - - Kunjungan ANC Lab Test - - Bahasa - English - - - Desa : - - - - - - - - Dusun : - - - - - - - - - - Lokasi Periksa - Location of Service - - - - - Posyandu - Village Outreach Post - - - - Polindes - Maternal & Child Health Post - - - - Puskesmas - Primary Health Center - - - - Rumah Ibu - Mother House - - - - Rumah Sakit - Hospital - - - - Lainnya - Other - - - - - - Tanggal kunjungan ANC LAB - Date of ANC LAB visit - * - Diisi dengan tanggal periksa Ibu - Fill in the date of check-up - - This field is required - - - Pemeriksaan Laboratorium - Laboratorium check-up - Menunjukan apakah Ibu melakukan pemeriksaan laboratorium terkait Hb, Protein Uria, Gula Darah, Thalasemia dan Sifilis - Indicating whether mother does lab checks for Hb level, protein urinea, blood glucose, thalasemia and syphillis - - - - Hasil periksa Hb - Result of chek Hb - Hasil pemeriksaan Hb Ibu dari laboratorium - Result of mother's Hb test from laboratorium - - Nilai yang dimasukkan tidak memenuhi syarat, mohon periksa kembali - The entered value doesn't meet the criteria, please check it again - - - - - Anemia? - Anemia - Menunjukkan apakah Ibu mengalami anemia atau tidak - Indicating whether mother is anemic - - - - - Positif (+) - Positive (+) - - - - Negatif (-) - Negative (-) - - - - - - Deskripsikan penanganan yang diberikan - Describe the treatment you give to the patient - - - - - - Protein Uria - Uria Protein - Menunjukkan kadar protein pada urine Ibu - Indicating mother's protein level - - - - - Ya - Yes - - - - Tidak - No - - - - - - Deskripsikan penanganan yang diberikan - Describe the treatment you give to the patient - - - - - - Gula Darah - Gestational DIabetes - Menunjukkan tingkat gula darah Ibu apakah >140 mg/dl atau < 140 mg/dl - Indicating whether mother's blood glucose > 140 mg/dl or < 140 mg/dl - - - - - > 140 mg/dl (+) - > 140 mg/dl (+); - - - - < 140 mg/dl (-) - < 140 mg/dl (-) - - - - - - Deskripsikan penanganan yang diberikan - Describe the treatment you give to the patient - - - - - - Thalasemia - Thalassemia - Menunjukkan apakah Ibu mengidap penyakit Thalasemia atau tidak - Indicating whether mother suffers from thalasemia - - - - - Positif (+) - Positive (+) - - - - Negatif (-) - Negative (-) - - - - - - Deskripsikan penanganan yang diberikan - Describe the treatment you give to the patient - - - - - - Sifilis - Syphilis - Menunjukkan apakah Ibu mengidap Sifilis atau tidak - Indicating whether mother suffers from syphillis - - - - - Positif (+) - Positive (+) - - - - Negatif (-) - Negative (-) - - - - - - Deskripsikan penanganan yang diberikan - Describe the treatment you give to the patient - - - - - - HbsAg - HBsAg - Menunjukkan apakah Ibu mengidap Hepatitis B surface Antigen - Indicating whether mother suffers form Hepatitis B surface Antigen - - - - - Positif (+) - Positive (+) - - - - Negatif (-) - Negative (-) - - - - - - Deskripsikan penanganan yang diberikan - Describe the treatment you give to the patient - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kartu_anc_visit_labTest/form_definition.json b/opensrp-bidan/src/main/assets/www/form/kartu_anc_visit_labTest/form_definition.json deleted file mode 100644 index ea302e4..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_anc_visit_labTest/form_definition.json +++ /dev/null @@ -1,115 +0,0 @@ -{ - "form_data_definition_version": "3", - "form": { - "bind_type": "ibu", - "ec_bind_type": "ec_ibu", - "default_bind_path": "/model/instance/kunjungan_anc_reviewed_Lab_test/", - "fields": [ - { - "name": "id", - "shouldLoadValue": true - }, - { - "name": "start", - "bind": "/model/instance/kunjungan_anc_reviewed_Lab_test/start" - }, - { - "name": "end", - "bind": "/model/instance/kunjungan_anc_reviewed_Lab_test/end" - }, - { - "name": "kiId", - "shouldLoadValue": true, - "source": "ibu.kartu_ibu.id" - }, - { - "name": "cityVillage", - "bind": "/model/instance/kunjungan_anc_reviewed_Lab_test/Village", - "shouldLoadValue": true - }, - { - "name": "existing_location", - "bind": "/model/instance/kunjungan_anc_reviewed_Lab_test/existing_location", - "shouldLoadValue": true - }, - { - "name": "lokasiPeriksa", - "bind": "/model/instance/kunjungan_anc_reviewed_Lab_test/Lokasi_periksa" - }, - { - "name": "referenceDate", - "bind": "/model/instance/kunjungan_anc_reviewed_Lab_test/reference_date" - }, - { - "name": "laboratoriumPeriksaHbHasil", - "bind": "/model/instance/kunjungan_anc_reviewed_Lab_test/laboratorium_periksa_hb_hasil" - }, - { - "name": "laboratoriumPeriksaHbAnemia", - "bind": "/model/instance/kunjungan_anc_reviewed_Lab_test/laboratorium_periksa_hb_anemia" - }, - { - "name": "treatmentAnemiaTxt", - "bind": "/model/instance/kunjungan_anc_reviewed_Lab_test/treatment_anemia_txt" - }, - { - "name": "laboratoriumProteinUria", - "bind": "/model/instance/kunjungan_anc_reviewed_Lab_test/laboratorium_protein_uria" - }, - { - "name": "treatmentProturinTxt", - "bind": "/model/instance/kunjungan_anc_reviewed_Lab_test/treatment_proturin_txt" - }, - { - "name": "laboratoriumGulaDarah", - "bind": "/model/instance/kunjungan_anc_reviewed_Lab_test/laboratorium_gula_darah" - }, - { - "name": "treatmentDiabetesTxt", - "bind": "/model/instance/kunjungan_anc_reviewed_Lab_test/treatment_diabetes_txt" - }, - { - "name": "laboratoriumThalasemia", - "bind": "/model/instance/kunjungan_anc_reviewed_Lab_test/laboratorium_thalasemia" - }, - { - "name": "treatmentThalasemiaTxt", - "bind": "/model/instance/kunjungan_anc_reviewed_Lab_test/treatment_thalasemia_txt" - }, - { - "name": "laboratoriumSifilis", - "bind": "/model/instance/kunjungan_anc_reviewed_Lab_test/laboratorium_sifilis" - }, - { - "name": "treatmentSifilisTxt", - "bind": "/model/instance/kunjungan_anc_reviewed_Lab_test/treatment_sifilis_txt" - }, - { - "name": "laboratoriumHbsAg", - "bind": "/model/instance/kunjungan_anc_reviewed_Lab_test/laboratorium_hbsag" - }, - { - "name": "treatmentHbsagTxt", - "bind": "/model/instance/kunjungan_anc_reviewed_Lab_test/treatment_hbsag_txt" - }, - { - "name": "highRiskPregnancyAnemia", - "bind": "/model/instance/kunjungan_anc_reviewed_Lab_test/High_Risk_Pregnancy_anemia", - "source": "ibu.kartu_ibu.anemiaRisk" - }, - { - "name": "highRiskPregnancyDiabetes", - "bind": "/model/instance/kunjungan_anc_reviewed_Lab_test/High_Risk_Pregnancy_diabetes", - "source": "ibu.kartu_ibu.diabetesRisk" - }, - { - "name": "submissionDate", - "bind": "/model/instance/kunjungan_anc_reviewed_Lab_test/today" - }, - { - "name": "registrationDate", - "bind": "/model/instance/kunjungan_anc_reviewed_Lab_test/reg_date" - } - ] - } -} diff --git a/opensrp-bidan/src/main/assets/www/form/kartu_anc_visit_labTest/model.xml b/opensrp-bidan/src/main/assets/www/form/kartu_anc_visit_labTest/model.xml deleted file mode 100644 index 2da6ccd..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_anc_visit_labTest/model.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kartu_ibu_close/form.json b/opensrp-bidan/src/main/assets/www/form/kartu_ibu_close/form.json deleted file mode 100644 index e9d9b85..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_ibu_close/form.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"penutupan_ibu_reviewed","title":"Penutupan Ibu","sms_keyword":"penutupan_ibu","default_language":"Bahasa","instance":{"encounter_type":"Penutupan Ibu"},"version":"201610120923","id_string":"penutupan_ibu","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":"person_address","openmrs_entity_id":"stateProvince","openmrs_entity_parent":"usual_residence"}},{"bind":{"calculate":"${District}"},"type":"calculate","name":"kabupaten","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"countyDistrict","openmrs_entity_parent":"usual_residence"}},{"bind":{"calculate":"${Village}"},"type":"calculate","name":"desa","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"cityVillage","openmrs_entity_parent":"usual_residence"}},{"bind":{"calculate":"${Sub-village}"},"type":"calculate","name":"dusun","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"address1","openmrs_entity_parent":"usual_residence"}},{"bind":{"calculate":"${Sub-district}"},"type":"calculate","name":"kecamatan","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"address2","openmrs_entity_parent":"usual_residence"}},{"control":{"appearance":"minimal"},"name":"close_reason","hint":{"Bahasa":"Pilihlah salah satu alasan yang tersedia","English":"Select one of reasons available"},"bind":{"required":"yes"},"label":{"Bahasa":"Alasan penutupan Kartu Ibu?","English":"Reason for Mother Card's closure?"},"instance":{"openmrs_entity_id":"160417AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"163132AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"relocation_temporary","label":{"Bahasa":"Relokasi (sementara)","English":"Relocation (temporary)"}},{"instance":{"openmrs_code":"160415AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"relocation_permanent","label":{"Bahasa":"Relokasi (permanen)","English":"Relocation (permanent)"}},{"instance":{"openmrs_code":"163006AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"age_NO_WUS","label":{"Bahasa":"Umur ibu Tidak WUS","English":"Mother no longer WRA"}},{"instance":{"openmrs_code":"134612AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"kematian_ibu","label":{"Bahasa":"Kematian Ibu","English":"Maternal Death"}},{"instance":{"openmrs_code":"163133AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"wrong_entry","label":{"Bahasa":"Kesalahan entry","English":"Data Entry Error"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"others","label":{"Bahasa":"Lainnya","English":"Other"}}]},{"name":"close_reason_other","hint":{"Bahasa":"Sebutkan alasan lainnya jika ada","English":"Write other reason, if available"},"bind":{"relevant":"${close_reason} = 'others'"},"label":{"Bahasa":"Lainnya","English":"Other"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"Close_Reason - 160417AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"text"},{"name":"maternal_death_date","hint":{"Bahasa":"Masukkan tanggal kematian Ibu","English":"Enter date of maternal death"},"bind":{"jr:constraintMsg":{"Bahasa":"Tanggal kematian ibu hari ini atau hari-hari sebelumnya","English":"Date of mother's death today or the days before"},"relevant":"${close_reason} = 'kematian_ibu'","constraint":".<=${today}"},"label":{"Bahasa":"Tanggal kematian ibu?","English":"Date of maternal death?"},"instance":{"openmrs_entity_id":"1543AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"date"},{"instance":{"openmrs_entity_id":"1544AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"label":{"Bahasa":"Tanggal kematian ibu estimasi?","English":"Was the date of maternal death estimated?"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Bahasa":"Ya","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Bahasa":"Tidak","English":"No"}}],"name":"maternal_death_date_estimated"},{"name":"place_of_death","hint":{"Bahasa":"Tempat kematian Ibu","English":"Place of mother's death"},"bind":{"relevant":"${close_reason} = 'kematian_ibu'"},"label":{"Bahasa":"Tempat kematian","English":"Place of death"},"instance":{"openmrs_entity_id":"1541AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1536AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Rumah_sendiri/keluarga","label":{"Bahasa":"Rumah sendiri/keluarga","English":"Mother/family's house"}},{"instance":{"openmrs_code":"1588AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Polindes","label":{"Bahasa":"Polindes","English":"Community-based health post"}},{"instance":{"openmrs_code":"159372AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Puskesmas","label":{"Bahasa":"Puskesmas","English":"Primary Health Center"}},{"instance":{"openmrs_code":"1601AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Dalam_perjalanan_fasilitas","label":{"Bahasa":"Dalam perjalanan ke fasilitas","English":"On the way to facility"}},{"instance":{"openmrs_code":"1589AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Rumah_Sakit","label":{"Bahasa":"Rumah Sakit","English":"Hospital"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Lainnya","label":{"Bahasa":"Lainnya","English":"Other"}}]},{"name":"other_place_of_death","hint":{"Bahasa":"Sebutkan tempat kematian lainnya jika ada","English":"Mention other mother's place of death, if available"},"bind":{"relevant":"${place_of_death} = 'Lainnya'"},"label":{"Bahasa":"Tempat kematian lainnya","English":"Other"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"Place of Death -1541AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"type":"text"},{"name":"address","hint":{"Bahasa":"Masukkan alamat Ibu (Dusun)","English":"Enter the mother’s address (dusun)"},"bind":{"relevant":"${close_reason} = 'kematian_ibu'"},"label":{"Bahasa":"Alamat Ibu (Dusun)","English":"Mother’s address (dusun)"},"instance":{"openmrs_entity_id":"1354AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"text"},{"name":"birth_attendant","hint":{"Bahasa":"Sebutkan siapa yang menolong ibu hamil saat bersalin","English":"Write the one who assist mother's delivery"},"bind":{"relevant":"${close_reason} = 'kematian_ibu'"},"label":{"Bahasa":"Penolong Persalinan","English":"Birth Attendant"},"instance":{"openmrs_entity_id":"1573AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1560AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"keluarga","label":{"Bahasa":"Keluarga (K)","English":"Family"}},{"instance":{"openmrs_code":"1575AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"dukun","label":{"Bahasa":"Dukun (D)","English":"Traditional Birth Attendant"}},{"instance":{"openmrs_code":"1578AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"bidan","label":{"Bahasa":"Bidan (B)","English":"Midwife"}},{"instance":{"openmrs_code":"1574AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"dr.umum","label":{"Bahasa":"Dr.Umum (DU)","English":"Doctor"}},{"instance":{"openmrs_code":"163489AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"dr.spesialis","label":{"Bahasa":"Dr.Spesialis (DS)","English":"Obstectric and Gynecology Specialist (OGS)"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"lain-lain","label":{"Bahasa":"Lain-Lain (LN)","English":"Others"}},{"instance":{"openmrs_code":"1107AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tidak_ada","label":{"Bahasa":"Tidak Ada (TA)","English":"None"}}]},{"name":"referred","hint":{"Bahasa":"Untuk mengetahui apakah ibu tersebut dirujuk ke fasilitas lain","English":"Information whether the mother was referred to other facility or not"},"bind":{"relevant":"${close_reason} = 'kematian_ibu'"},"label":{"Bahasa":"Apakah ibu ini dirujuk?","English":"Was this mother referred to other facility?"},"instance":{"openmrs_entity_id":"1648AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Bahasa":"Ya","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Bahasa":"Tidak","English":"No"}}]},{"name":"referral_location","hint":{"Bahasa":"Untuk mengetahui ibu dirujuk ke fasilitas mana","English":"Information related to the location of mother's referral"},"bind":{"relevant":"${referred} = 'yes'"},"label":{"Bahasa":"Ibu dirujuk ke","English":"Location of referral"},"instance":{"openmrs_entity_id":"161562AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"text"},{"name":"prereferral_management","hint":{"Bahasa":"Tuliskan tindakan perawatan yang diberikan kepada ibu sebelum dirujuk","English":"Describe the care management provided for the mother prior to referral"},"bind":{"relevant":"${referred} = 'yes'"},"label":{"Bahasa":"Tindakan sebelum dirujuk","English":"Pre-referral management"},"instance":{"openmrs_entity_id":"163104AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"text"},{"control":{"appearance":"minimal"},"name":"maternal_death_cause","hint":{"Bahasa":"Pilihlah salah satu jawaban yang tersedia","English":"Select one of answers available"},"bind":{"relevant":"${close_reason} = 'kematian_ibu'"},"label":{"Bahasa":"Penyebab kematian?","English":"Cause of Maternal Death"},"instance":{"openmrs_entity_id":"1599AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"163154AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Direct_cause","label":{"Bahasa":"Kematian Penyebab Langsung","English":"Direct cause of maternal death"}},{"instance":{"openmrs_code":"163136AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Indirect_cause","label":{"Bahasa":"Kematian Penyebab tidak langsung","English":"Indirect cause of maternal death"}},{"instance":{"openmrs_code":"142917AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Unknown_cause","label":{"Bahasa":"Tidak Tahu","English":"Cause of materal death unknown"}}]},{"control":{"appearance":"minimal"},"name":"maternal_death_probable","hint":{"Bahasa":"Pilihlah salah satu jawaban yang tersedia","English":"Select one of answers available"},"bind":{"relevant":"${maternal_death_cause} = 'Direct_cause'"},"label":{"Bahasa":"Kemungkinan penyebab kematian?","English":"Probable Cause of Direct Maternal Death"},"instance":{"openmrs_entity_id":"1599AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"159895AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Abortion","label":{"Bahasa":"Abortus","English":"Abortion"}},{"instance":{"openmrs_code":"48AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Miscarriage","label":{"Bahasa":"Spontenous Abortion/Miscarriage","English":"Miscarriage"}},{"instance":{"openmrs_code":"46AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Ectopic_Pregnancy","label":{"Bahasa":"KET","English":"Ectopic Pregnancy"}},{"instance":{"openmrs_code":"134006AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Mola","label":{"Bahasa":"Mola","English":"Mola"}},{"instance":{"openmrs_code":"147225AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"hemorrhage","label":{"Bahasa":"PENDARAHAN ( APB, HPP )","English":"Hemorrhage (APB, PPH)"}},{"instance":{"openmrs_code":"139532AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"infection","label":{"Bahasa":"Infeksi","English":"Infection during labour"}},{"instance":{"openmrs_code":"129211AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Early membrane rupture","label":{"Bahasa":"Early membrane rupture","English":"Early membrane rupture"}},{"instance":{"openmrs_code":"126721AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Sepsis","label":{"Bahasa":"Sepsis","English":"sepsis"}},{"instance":{"openmrs_code":"130AAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Puerperali_sepsis","label":{"Bahasa":"Puerperali sepsis","English":"puerperali sepsis"}},{"instance":{"openmrs_code":"113602AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Persalinan_Lama","label":{"Bahasa":"Persalinan Lama","English":"prolonged labor with complication"}},{"instance":{"openmrs_code":"145341AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"hypertension_kronis","label":{"Bahasa":"Hypertension Kronis","English":"Chronic Hypertension"}},{"instance":{"openmrs_code":"128340AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"hypertension_Proteinuria","label":{"Bahasa":"Hypertension Proteinuria","English":"Hypertension with Proteinuria"}},{"instance":{"openmrs_code":"118744AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"hypertention_eklampsia","label":{"Bahasa":"Eklampsia","English":"Hypertension in Pregnancy"}},{"instance":{"openmrs_code":"154355AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"hypertention_HELLP","label":{"Bahasa":"Syndrom HELLP","English":"Syndrom HELLP"}},{"instance":{"openmrs_code":"113504AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"embolism_Pulmonal","label":{"Bahasa":"Embolism Pulmonal","English":"Embolism Pulmonary"}},{"instance":{"openmrs_code":"148970AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"embolism_air_ketuban","label":{"Bahasa":"embolism Air ketuban","English":"Embolism Amniotic fluid"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"other","label":{"Bahasa":"Lainnya","English":"Other"}}]},{"name":"maternal_death_cause_other","hint":{"Bahasa":"Sebutkan alasan lainnya jika ada","English":"Write other reason, if available"},"bind":{"relevant":"${maternal_death_probable} = 'others'"},"label":{"Bahasa":"Lainnya","English":"Other"},"instance":{"openmrs_entity":"concept","openmrs_entity_id":"163154AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"Direct cause of maternal death (other cause)"},"type":"text"},{"bind":{"required":"yes"},"label":{"Bahasa":"Konfirmasi penutupan Kartu Ibu?","English":"Confirmation of Mother Card's closure?"},"type":"select one","children":[{"name":"yes","label":{"Bahasa":"Ya","English":"Yes"}}],"name":"confirm_ec_close"},{"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/kartu_ibu_close/form.xml b/opensrp-bidan/src/main/assets/www/form/kartu_ibu_close/form.xml deleted file mode 100644 index 0653154..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_ibu_close/form.xml +++ /dev/null @@ -1,33 +0,0 @@ - - Penutupan IbuBahasa English - - - Desa : - - - Dusun : - - - Alasan penutupan Kartu Ibu?Reason for Mother Card's closure?*Pilihlah salah satu alasan yang tersediaSelect one of reasons available...Relokasi (sementara)Relokasi (permanen)Umur ibu Tidak WUSKematian IbuKesalahan entryLainnyaRelokasi (sementara)Relocation (temporary)Relokasi (permanen)Relocation (permanent)Umur ibu Tidak WUSMother no longer WRAKematian IbuMaternal DeathKesalahan entryData Entry ErrorLainnyaOther - - LainnyaOtherSebutkan alasan lainnya jika adaWrite other reason, if available - Tanggal kematian ibu hari ini atau hari-hari sebelumnyaDate of mother's death today or the days beforeTanggal kematian ibu?Date of maternal death?Masukkan tanggal kematian IbuEnter date of maternal death - Tanggal kematian ibu estimasi?Was the date of maternal death estimated? - YaYesTidakNo - Tempat kematianPlace of deathTempat kematian IbuPlace of mother's death - Rumah sendiri/keluargaMother/family's housePolindesCommunity-based health postPuskesmasPrimary Health CenterDalam perjalanan ke fasilitasOn the way to facilityRumah SakitHospitalLainnyaOther - Tempat kematian lainnyaOtherSebutkan tempat kematian lainnya jika adaMention other mother's place of death, if available - Alamat Ibu (Dusun)Mother’s address (dusun)Masukkan alamat Ibu (Dusun)Enter the mother’s address (dusun) - Penolong PersalinanBirth AttendantSebutkan siapa yang menolong ibu hamil saat bersalinWrite the one who assist mother's delivery - Keluarga (K)FamilyDukun (D)Traditional Birth AttendantBidan (B)MidwifeDr.Umum (DU)DoctorDr.Spesialis (DS)Obstectric and Gynecology Specialist (OGS)Lain-Lain (LN)OthersTidak Ada (TA)None - Apakah ibu ini dirujuk?Was this mother referred to other facility?Untuk mengetahui apakah ibu tersebut dirujuk ke fasilitas lainInformation whether the mother was referred to other facility or not - YaYesTidakNo - Ibu dirujuk keLocation of referralUntuk mengetahui ibu dirujuk ke fasilitas manaInformation related to the location of mother's referral - Tindakan sebelum dirujukPre-referral managementTuliskan tindakan perawatan yang diberikan kepada ibu sebelum dirujukDescribe the care management provided for the mother prior to referral - Penyebab kematian?Cause of Maternal DeathPilihlah salah satu jawaban yang tersediaSelect one of answers available...Kematian Penyebab LangsungKematian Penyebab tidak langsungTidak TahuKematian Penyebab LangsungDirect cause of maternal deathKematian Penyebab tidak langsungIndirect cause of maternal deathTidak TahuCause of materal death unknown - - Kemungkinan penyebab kematian?Probable Cause of Direct Maternal DeathPilihlah salah satu jawaban yang tersediaSelect one of answers available...AbortusSpontenous Abortion/MiscarriageKETMolaPENDARAHAN ( APB, HPP )InfeksiEarly membrane ruptureSepsisPuerperali sepsisPersalinan LamaHypertension KronisHypertension ProteinuriaEklampsiaSyndrom HELLPEmbolism Pulmonalembolism Air ketubanLainnyaAbortusAbortionSpontenous Abortion/MiscarriageMiscarriageKETEctopic PregnancyMolaMolaPENDARAHAN ( APB, HPP )Hemorrhage (APB, PPH)InfeksiInfection during labourEarly membrane ruptureEarly membrane ruptureSepsissepsisPuerperali sepsispuerperali sepsisPersalinan Lamaprolonged labor with complicationHypertension KronisChronic HypertensionHypertension ProteinuriaHypertension with ProteinuriaEklampsiaHypertension in PregnancySyndrom HELLPSyndrom HELLPEmbolism PulmonalEmbolism Pulmonaryembolism Air ketubanEmbolism Amniotic fluidLainnyaOther - - LainnyaOtherSebutkan alasan lainnya jika adaWrite other reason, if available - Konfirmasi penutupan Kartu Ibu?Confirmation of Mother Card's closure?* - YaYes - - \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kartu_ibu_close/form_definition.json b/opensrp-bidan/src/main/assets/www/form/kartu_ibu_close/form_definition.json deleted file mode 100644 index 6c56f61..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_ibu_close/form_definition.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "form_data_definition_version": "3", - "form": { - "bind_type": "kartu_ibu", - "ec_bind_type": "ec_kartu_ibu", - "default_bind_path": "/model/instance/penutupan_ibu_reviewed/", - "fields": [ - { - "name": "id", - "shouldLoadValue": true - }, - { - "name": "cityVillage", - "bind": "/model/instance/penutupan_ibu_reviewed/Village", - "shouldLoadValue": true - }, - { - "name": "existing_location", - "bind": "/model/instance/penutupan_ibu_reviewed/existing_location", - "shouldLoadValue": true - }, - { - "name": "closeReason", - "bind": "/model/instance/penutupan_ibu_reviewed/close_reason" - }, - { - "name": "otherCloseReason", - "bind": "/model/instance/penutupan_ibu_reviewed/close_reason_other" - }, - { - "name": "maternalDeathDate", - "bind": "/model/instance/penutupan_ibu_reviewed/maternal_death_date" - }, - { - "name": "placeOfDeath", - "bind": "/model/instance/penutupan_ibu_reviewed/place_of_death" - }, - { - "name": "otherPlaceOfDeath", - "bind": "/model/instance/penutupan_ibu_reviewed/other_place_of_death" - }, - { - "name": "notMaternalDeathCause", - "bind": "/model/instance/penutupan_ibu_reviewed/not_maternal_death_cause" - }, - { - "name": "maternalDeathCause", - "bind": "/model/instance/penutupan_ibu_reviewed/maternal_death_cause" - }, - { - "name": "otherMaternalDeathCause", - "bind": "/model/instance/penutupan_ibu_reviewed/other_maternal_death_cause" - }, - { - "name": "birthAttendant", - "bind": "/model/instance/penutupan_ibu_reviewed/birth_attendant" - }, - { - "name": "prereferralManagement", - "bind": "/model/instance/penutupan_ibu_reviewed/prereferral_management" - }, - { - "name": "referred", - "bind": "/model/instance/penutupan_ibu_reviewed/referred" - }, - { - "name": "referralLocation", - "bind": "/model/instance/penutupan_ibu_reviewed/referral_location" - }, - { - "name": "isKICloseConfirmed", - "bind": "/model/instance/penutupan_ibu_reviewed/confirm_ec_close" - }, - { - "name": "submissionDate", - "bind": "/model/instance/penutupan_ibu_reviewed/today" - }, - { - "name": "registrationDate", - "bind": "/model/instance/penutupan_ibu_reviewed/reg_date" - }, - { - "name": "isClosed", - "value": "true" - } - ] - } -} diff --git a/opensrp-bidan/src/main/assets/www/form/kartu_ibu_close/model.xml b/opensrp-bidan/src/main/assets/www/form/kartu_ibu_close/model.xml deleted file mode 100644 index 993ee2c..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_ibu_close/model.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kartu_ibu_edit/form.xml b/opensrp-bidan/src/main/assets/www/form/kartu_ibu_edit/form.xml deleted file mode 100644 index 1bff073..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_ibu_edit/form.xml +++ /dev/null @@ -1,576 +0,0 @@ - - - - Identitas Ibu - - Bahasa - English - - - - - Unique ID: - - - Unique ID: - - - - - - Desa: - - - Village: - - - - - - Dusun: - - - Sub-village: - - - - - - Puskesmas - - Primary - Health Center (PHC) - - * - Nama - puskesmas tempat ibu melakukan pemeriksaan - - Name of primary - health center where mother does a check-up - - - - - - No. Ibu - - Mother's - Number - - - - - Nama lengkap - - Full - name - - * - Nama - lengkap Ibu - - Mother's full - name - - - - - Nama suami - - Name of - husband - - * - Nama - lengkap suami - - Husband's full - name - - - - - Tanggal lahir - - - DOB - - * - Tanggal lahir Ibu - - Mother's - date of birth - - - - - Umur: - - - Age: - - - - - - Alamat domisili - - - Address - - - Alamat tempat tinggal (rumah) Ibu - - Mother's - address - - - - - Pendidikan - - - Education - - - Pendidikan Terakhir Ibu - - Mother's highest - education - - - ... - Sekolah Dasar (SD) - Sekolah Menengah Pertama (SMP) - Sekolah Menengah Atas (SMA) - Perguruan Tinggi - Tidak sekolah - - - Sekolah Dasar (SD) - Primary School - Sekolah Menengah - Pertama (SMP) - - Junior High School - Sekolah Menengah Atas - (SMA) - - Senior High School - Perguruan Tinggi - College - Tidak sekolah - No Formal Education - - - - - Agama - - Religion - - Agama Ibu - - Mother's religion - - - ... - Islam - Hindu - Kristen - Katolik - Budha - Lainnya - - - Islam - Islam (I) - Hindu - Hindu (H); - Kristen - Christian (K) - Katolik - Catholic - Budha - Budha (B) - Lainnya - Other - - - - Pekerjaan - - - Occupation - - - Pekerjaan Ibu - - Mother's - occupation - - - ... - Ibu rumah tangga - Petani - Nelayan - Pedagang - PNS - Swasta - - - Ibu rumah tangga - Housewife - Petani - farmer - Nelayan - fisherman - Pedagang - merchant - PNS - civil servant - Swasta - private empoyees - - - - - - Gakin/ Tidak - - Poor Family/not - - Apakah Ibu termasuk keluarga miskin - atau tidak - - Does - mother belong to poor family or not? - - - - - - Ya - - Yes - - - - - Tidak - - No - - - - - - - - Posyandu - - Health - Post - - * - Nama - Posyandu tempat Ibu menerima pelayanan kesehatan - - Name of Health - Post where mother receives health care - - - - - Nama Kader - - Name of - Cadre - - Nama - kader Posyandu yang memberi Ibu pelayanan kesehatan - - Name of - community health worker that gives health service - - - - - Nama Dukun - - Name of - Traditional Birth Attendant - - Nama - dukun yang menemani Ibu pada saat menerima pelayanan kesehatan - - Name of - traditional birth attendant that accompany mother during health care service - - - - - Asuransi Jiwa - - - Insurance - - - Jenis asuransi yang dimiliki Ibu - - Type - insurance that mother has - - - ... - Jaminan Kesehatan Masyarakat (Jamkesmas) - - Jaminan Sosial dan Ketenagakerjaan (Jamsostek) - Jaminan Kesehatan Daerah (Jamkesda) - Asuransi Kesehatan (Askes) - Jaminan Persalinan (Jampersal) - Tidak memiliki asuransi/pembiayaan - - - Jaminan Kesehatan - Masyarakat (Jamkesmas) - - National Health - Insurance for the Poor and Near Poor; - - Jaminan Sosial dan Ketenagakerjaan - (Jamsostek) - - Social Insurance for Private Sector - Workers; - - Jaminan Kesehatan - Daerah (Jamkesda) - - Regional Health Insurance - for the Poor and Near Poor; - - Asuransi Kesehatan (Askes) - - Health Insurance for Civil - Servants and Retired Armed Forces Personnel - - Jaminan Persalinan - (Jampersal) - - Health Insurance for Pregnant - Women and Newborns - - Tidak memiliki - asuransi/pembiayaan - - No Insurance - - - - Golongan Darah - - - Blood Type - - * - - Menunjukan golongan darah Ibu - - Mother's - blood type - - - ... - A (A) - B (B) - AB (AB) - O (O) - Belum diketahui - - - A (A) - A - B (B) - B - AB (AB) - AB - O (O) - O - Belum diketahui - Unknown - - - - Nomer teelpon - tidak boleh - lebih dari 12 digit - - Contact number should be no - more than 12 digits - - Nomor Telpon/Hp - - - Landline/Cell Phone Number - - - Nomor telpon/Hp yang dimiliki oleh Ibu atau No telpon Keluarga - - Mother's - contact number - - - - - - - Hasil pptest - - - Pregnancy Test - - - - - - Positif - - positive - - - - - Negatif - - negative - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kartu_ibu_edit/form_definition.json b/opensrp-bidan/src/main/assets/www/form/kartu_ibu_edit/form_definition.json deleted file mode 100644 index 5c3e027..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_ibu_edit/form_definition.json +++ /dev/null @@ -1,182 +0,0 @@ -{ - "form_data_definition_version": "1", - "form": { - "bind_type": "kartu_ibu", - "default_bind_path": "/model/instance/Kartu_ibu/", - "fields": [ - { - "name": "id", - "shouldLoadValue": true - }, - { - "name": "unique_id", - "bind": "/model/instance/Kartu_ibu/unique_id", - "shouldLoadValue" : true - }, - { - "name": "Village", - "bind": "/model/instance/Kartu_ibu/Village", - "shouldLoadValue": true - }, - { - "name": "Province", - "bind": "/model/instance/Kartu_ibu/Province", - "shouldLoadValue": true - }, - { - "name": "Sub-district", - "bind": "/model/instance/Kartu_ibu/Sub-district", - "shouldLoadValue": true - }, - { - "name": "District", - "bind": "/model/instance/Kartu_ibu/District", - "shouldLoadValue": true - }, - { - "name": "Sub-village", - "bind": "/model/instance/Kartu_ibu/Sub-village", - "shouldLoadValue": true - }, - { - "name": "dusun", - "bind": "/model/instance/Kartu_ibu/dusun", - "shouldLoadValue" : true - }, - { - "name": "provinsi", - "bind": "/model/instance/Kartu_ibu/provinsi", - "shouldLoadValue" : true - }, - { - "name": "kabupaten", - "bind": "/model/instance/Kartu_ibu/kabupaten", - "shouldLoadValue" : true - }, - { - "name": "kecamatan", - "bind": "/model/instance/Kartu_ibu/kecamatan", - "shouldLoadValue" : true - }, - { - "name": "desa", - "bind": "/model/instance/Kartu_ibu/desa", - "shouldLoadValue" : true - }, - { - "name": "puskesmas", - "bind": "/model/instance/Kartu_ibu/puskesmas", - "shouldLoadValue" : true - }, - { - "name": "noIbu", - "bind": "/model/instance/Kartu_ibu/no_ibu", - "shouldLoadValue" : true - }, - { - "name": "namalengkap", - "bind": "/model/instance/Kartu_ibu/nama_lengkap", - "shouldLoadValue" : true - }, - { - "name": "namaSuami", - "bind": "/model/instance/Kartu_ibu/nama_suami", - "shouldLoadValue" : true - }, - { - "name": "tanggalLahir", - "bind": "/model/instance/Kartu_ibu/tanggal_lahir_ibu", - "shouldLoadValue" : true - }, - { - "name": "umur", - "bind": "/model/instance/Kartu_ibu/umur", - "shouldLoadValue" : true - }, - { - "name": "alamatDomisili", - "bind": "/model/instance/Kartu_ibu/alamat_domisili", - "shouldLoadValue" : true - }, - { - "name": "pendidikan", - "bind": "/model/instance/Kartu_ibu/pendidikan", - "shouldLoadValue" : true - }, - { - "name": "agama", - "bind": "/model/instance/Kartu_ibu/agama", - "shouldLoadValue" : true - }, - { - "name": "pekerjaan", - "bind": "/model/instance/Kartu_ibu/pekerjaan", - "shouldLoadValue" : true - }, - { - "name": "gakinTidak", - "bind": "/model/instance/Kartu_ibu/gakin_tidak", - "shouldLoadValue" : true - }, - { - "name": "posyandu", - "bind": "/model/instance/Kartu_ibu/posyandu", - "shouldLoadValue" : true - }, - { - "name": "namaKader", - "bind": "/model/instance/Kartu_ibu/nama_kader", - "shouldLoadValue" : true - }, - { - "name": "namaDukun", - "bind": "/model/instance/Kartu_ibu/nama_dukun", - "shouldLoadValue" : true - }, - { - "name": "asuransiJiwa", - "bind": "/model/instance/Kartu_ibu/asuransi_jiwa", - "shouldLoadValue" : true - }, - { - "name": "golonganDarah", - "bind": "/model/instance/Kartu_ibu/golongan_darah", - "shouldLoadValue" : true - }, - { - "name": "NomorTelponHp", - "bind": "/model/instance/Kartu_ibu/nomor_telpon_hp", - "shouldLoadValue" : true - }, - { - "name": "pptest", - "bind": "/model/instance/Kartu_ibu/pptest", - "shouldLoadValue" : true - }, - { - "name": "highRiskPregnancyYoungMaternalAge", - "bind": "/model/instance/Kartu_ibu/High_Risk_Pregnancy_Young_maternal_age" - }, - { - "name": "highRiskPregnancyOldMaternalAge", - "bind": "/model/instance/Kartu_ibu/High_Risk_Pregnancy_Old_maternal_age" - }, - { - "name": "isOutOfArea", - "value": "false" - }, - { - "name": "isClosed", - "value": "false" - }, - { - "name": "submissionDate", - "bind": "/model/instance/Kartu_ibu/today" - }, - { - "name": "registrationDate", - "bind": "/model/instance/Kartu_ibu/reg_date" - } - ] - } -} diff --git a/opensrp-bidan/src/main/assets/www/form/kartu_ibu_edit/model.xml b/opensrp-bidan/src/main/assets/www/form/kartu_ibu_edit/model.xml deleted file mode 100644 index 4d8cf94..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_ibu_edit/model.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Ibu rumah tangga - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kartu_ibu_registration/form.json b/opensrp-bidan/src/main/assets/www/form/kartu_ibu_registration/form.json deleted file mode 100644 index b961175..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_ibu_registration/form.json +++ /dev/null @@ -1,1117 +0,0 @@ -{ - "name": "Kartu_ibu", - "title": "Identitas Ibu", - "sms_keyword": "Kartu_ibu", - "default_language": "Bahasa", - "instance": { - "encounter_type": "Identitas Ibu" - }, - "version": "201702121028", - "id_string": "Kartu_ibu", - "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": "pasien_wilayah", - "bind": { - "required": "yes" - }, - "label": { - "Bahasa": "Apakah ibu adalah pasien wilayah Anda?", - "English": "Is the mother living in your catchment area?" - }, - "instance": { - "openmrs_entity_id": "160637AAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "select one", - "children": [ - { - "instance": { - "openmrs_code": "160635AAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "pasien_wilayah_desa", - "label": { - "Bahasa": "Ya", - "English": "Yes" - } - }, - { - "instance": { - "openmrs_code": "160636AAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "pasien_luar_wilayah", - "label": { - "Bahasa": "Tidak", - "English": "No" - } - } - ] - }, - { - "name": "pasien_pindahan", - "bind": { - "required": "yes" - }, - "label": { - "Bahasa": "Apakah ibu adalah warga pindahan dari desa lain?", - "English": "Is the mother moving in to this village?" - }, - "instance": { - "openmrs_entity_id": "160563AAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "select one", - "children": [ - { - "instance": { - "openmrs_code": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "Yes", - "label": { - "Bahasa": "Ya", - "English": "Yes" - } - }, - { - "instance": { - "openmrs_code": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "No", - "label": { - "Bahasa": "Tidak", - "English": "No" - } - } - ] - }, - { - "name": "tgl_pindah", - "hint": { - "Bahasa": "Tuliskan tanggal ibu pindah ke desa ini", - "English": "Write the date when the mother moved into this village" - }, - "bind": { - "relevant": "${pasien_pindahan}='Yes'", - "required": "yes", - "constraint": ".<${today}" - }, - "label": { - "Bahasa": "Sejak kapan ibu pindah ke sini?", - "English": "Since when did she move this village?" - }, - "instance": { - "openmrs_entity_id": "160534AAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "date" - }, - { - "bind": { - "required": "yes", - "constraint": ".<=${today}" - }, - "type": "date", - "instance": { - "openmrs_entity_id": "160753AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "name": "tanggal_periksa", - "label": { - "Bahasa": "Tanggal Registrasi", - "English": "Date of Registration" - } - }, - { - "name": "lokasi_periksa", - "bind": { - "required": "yes" - }, - "label": { - "Bahasa": "Lokasi Periksa", - "English": "Location of Service" - }, - "instance": { - "openmrs_entity_id": "161010AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "select one", - "children": [ - { - "instance": { - "openmrs_code": "163121AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "Posyandu", - "label": { - "Bahasa": "Posyandu", - "English": "Village Outreach Post" - } - }, - { - "instance": { - "openmrs_code": "1588AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "Polindes", - "label": { - "Bahasa": "Polindes", - "English": "Health Clinic Post" - } - }, - { - "instance": { - "openmrs_code": "1537AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "Puskesmas", - "label": { - "Bahasa": "Puskesmas", - "English": "Health Facility" - } - }, - { - "instance": { - "openmrs_code": "1536AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "Rumah_Ibu", - "label": { - "Bahasa": "Rumah Ibu", - "English": "Mother House" - } - }, - { - "instance": { - "openmrs_code": "1589AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "Rumah_Sakit", - "label": { - "Bahasa": "Rumah Sakit", - "English": "Hospital" - } - }, - { - "instance": { - "openmrs_code": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "Lainnya", - "label": { - "Bahasa": "Lainnya", - "English": "Other" - } - } - ] - }, - { - "name": "lokasi_periksa_other", - "hint": { - "Bahasa": "Lainnya", - "English": "Write other location" - }, - "bind": { - "relevant": "${lokasi_periksa}='Lainnya'" - }, - "label": { - "Bahasa": "Lainnya", - "English": "Other" - }, - "instance": { - "openmrs_entity_parent": "161010AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity_id": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "text" - }, - { - "instance": { - "openmrs_entity_id": "UniqueId", - "openmrs_entity": "person_attribute" - }, - "type": "hidden", - "name": "unique_id", - "hint": { - "Bahasa": "Injected from client app", - "English": "Injected from client app" - } - }, - { - "type": "note", - "name": "generated_note_name_32", - "label": { - "Bahasa": "Unique ID: ${unique_id}", - "English": "Unique ID: ${unique_id}" - } - }, - { - "name": "puskesmas", - "hint": { - "Bahasa": "Nama puskesmas tempat ibu melakukan pemeriksaan", - "English": "Name of primary health center where mother does a check-up" - }, - "bind": { - "required": "yes" - }, - "label": { - "Bahasa": "Puskesmas", - "English": "Primary Health Center (PHC)" - }, - "instance": { - "openmrs_entity_id": "162724AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "text" - }, - { - "instance": { - "openmrs_entity_id": "NoIbu", - "openmrs_entity": "person_attribute" - }, - "type": "integer", - "name": "no_ibu", - "label": { - "Bahasa": "No. Ibu", - "English": "Mother's Number" - } - }, - { - "instance": { - "openmrs_entity_id": "nik", - "openmrs_entity": "person_attribute" - }, - "type": "integer", - "name": "nik", - "label": { - "Bahasa": "NIK", - "English": "National Id Number" - } - }, - { - "name": "nama_lengkap", - "hint": { - "Bahasa": "Nama lengkap Ibu", - "English": "Mother's full name" - }, - "bind": { - "required": "yes" - }, - "label": { - "Bahasa": "Nama lengkap", - "English": "Full name" - }, - "instance": { - "openmrs_entity_id": "first_name", - "openmrs_entity": "person" - }, - "type": "text" - }, - { - "name": "nama_suami", - "hint": { - "Bahasa": "Nama lengkap suami", - "English": "Husband's full name" - }, - "bind": { - "required": "yes" - }, - "label": { - "Bahasa": "Nama suami", - "English": "Name of husband" - }, - "instance": { - "openmrs_entity_id": "last_name", - "openmrs_entity": "person" - }, - "type": "text" - }, - { - "name": "tanggal_lahir_ibu", - "hint": { - "Bahasa": "Tanggal lahir Ibu", - "English": "Mother's date of birth" - }, - "bind": { - "required": "yes" - }, - "label": { - "Bahasa": "Tanggal lahir", - "English": "DOB" - }, - "instance": { - "openmrs_entity_id": "birthdate", - "openmrs_entity": "person" - }, - "type": "date" - }, - { - "bind": { - "calculate": "int((${today} - ${tanggal_lahir_ibu}) div 365.25)" - }, - "type": "calculate", - "name": "umur", - "instance": { - "openmrs_entity_id": "1532AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - } - }, - { - "type": "note", - "name": "generated_note_name_40", - "label": { - "Bahasa": "Umur: ${umur}", - "English": "Age" - } - }, - { - "instance": { - "openmrs_entity_parent": "usual_residence", - "openmrs_entity_id": "address3", - "openmrs_entity": "person_address" - }, - "label": { - "Bahasa": "Alamat domisili", - "English": "Address" - }, - "type": "text", - "name": "alamat_domisili", - "hint": { - "Bahasa": "Alamat tempat tinggal (rumah) Ibu", - "English": "Mother's address" - } - }, - { - "control": { - "appearance": "minimal" - }, - "name": "pendidikan", - "hint": { - "Bahasa": "Pendidikan Terakhir Ibu", - "English": "Mother's highest education" - }, - "label": { - "Bahasa": "Pendidikan", - "English": "Education" - }, - "instance": { - "openmrs_entity_id": "1712AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "select one", - "children": [ - { - "instance": { - "openmrs_code": "1713AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "Sekolah_Dasar", - "label": { - "Bahasa": "Sekolah Dasar (SD)", - "English": "Primary School" - } - }, - { - "instance": { - "openmrs_code": "163122AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "Sekolah_Menengah_Pertama", - "label": { - "Bahasa": "Sekolah Menengah Pertama (SMP)", - "English": "Junior High School" - } - }, - { - "instance": { - "openmrs_code": "163123AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "Sekolah_Menengah_Atas", - "label": { - "Bahasa": "Sekolah Menengah Atas (SMA)", - "English": "Senior High School" - } - }, - { - "instance": { - "openmrs_code": "159785AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "Perguruan_Tinggi", - "label": { - "Bahasa": "Perguruan Tinggi", - "English": "College/University" - } - }, - { - "instance": { - "openmrs_code": "160294AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "Tidak_sekolah", - "label": { - "Bahasa": "Tidak sekolah", - "English": "No Formal Education" - } - } - ] - }, - { - "control": { - "appearance": "minimal" - }, - "name": "agama", - "hint": { - "Bahasa": "Agama Ibu", - "English": "Mother's religion" - }, - "label": { - "Bahasa": "Agama", - "English": "Religion" - }, - "instance": { - "openmrs_entity_id": "162929AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "select one", - "children": [ - { - "instance": { - "openmrs_code": "162933AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "Islam", - "label": { - "Bahasa": "Islam", - "English": "Islam (I)" - } - }, - { - "instance": { - "openmrs_code": "163124AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "Hindu", - "label": { - "Bahasa": "Hindu", - "English": "Hinduism (H);" - } - }, - { - "instance": { - "openmrs_code": "163125AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "Kristen", - "label": { - "Bahasa": "Kristen", - "English": "Christianity (K)" - } - }, - { - "instance": { - "openmrs_code": "162931AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "Katolik", - "label": { - "Bahasa": "Katolik", - "English": "Catholic" - } - }, - { - "instance": { - "openmrs_code": "163098AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "Budha", - "label": { - "Bahasa": "Budha", - "English": "Buddhism (B)" - } - }, - { - "instance": { - "openmrs_code": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "Lainnya", - "label": { - "Bahasa": "Lainnya", - "English": "Other" - } - } - ] - }, - { - "control": { - "appearance": "minimal" - }, - "name": "pekerjaan", - "hint": { - "Bahasa": "Pekerjaan Ibu", - "English": "Mother's occupation" - }, - "default": "Ibu rumah tangga", - "label": { - "Bahasa": "Pekerjaan", - "English": "Occupation" - }, - "instance": { - "openmrs_entity_id": "1542AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "select one", - "children": [ - { - "instance": { - "openmrs_code": "159464AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "Ibu_Rumah_Tangga", - "label": { - "Bahasa": "Ibu rumah tangga", - "English": "Housewife" - } - }, - { - "instance": { - "openmrs_code": "1538AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "Petani", - "label": { - "Bahasa": "Petani", - "English": "Farmer" - } - }, - { - "instance": { - "openmrs_code": "159674AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "Nelayan", - "label": { - "Bahasa": "Nelayan", - "English": "Fisherman" - } - }, - { - "instance": { - "openmrs_code": "1539AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "Pedagang", - "label": { - "Bahasa": "Pedagang", - "English": "Merchant" - } - }, - { - "instance": { - "openmrs_code": "162944AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "PNS", - "label": { - "Bahasa": "PNS", - "English": "Civil Servant" - } - }, - { - "instance": { - "openmrs_code": "163127AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "Swasta", - "label": { - "Bahasa": "Swasta", - "English": "Private Employee" - } - }, - { - "instance": { - "openmrs_code": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "Lainnya", - "label": { - "Bahasa": "Lainnya", - "English": "Other" - } - } - ] - }, - { - "name": "pekerjaan_other", - "hint": { - "Bahasa": "Lainya", - "English": "Write other location" - }, - "bind": { - "relevant": "${pekerjaan}='Lainnya'" - }, - "label": { - "Bahasa": "Lainnya", - "English": "Other" - }, - "instance": { - "openmrs_entity_parent": "1542AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity_id": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "text" - }, - { - "name": "gakin_tidak", - "hint": { - "Bahasa": "Apakah Ibu termasuk keluarga miskin atau tidak", - "English": "Does mother belong to poor family or not? (Low-Income Population / Financially poor)" - }, - "label": { - "Bahasa": "Gakin/ Tidak", - "English": "Poor Family/not" - }, - "instance": { - "openmrs_entity_id": "162956AAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "select one", - "children": [ - { - "instance": { - "openmrs_code": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "Yes", - "label": { - "Bahasa": "Ya", - "English": "Yes" - } - }, - { - "instance": { - "openmrs_code": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "No", - "label": { - "Bahasa": "Tidak", - "English": "No" - } - } - ] - }, - { - "name": "posyandu", - "hint": { - "Bahasa": "Nama Posyandu tempat Ibu menerima pelayanan kesehatan", - "English": "Name of Health Post where mother receives health care" - }, - "bind": { - "required": "yes" - }, - "label": { - "Bahasa": "Posyandu", - "English": "Name of Outreach Post" - }, - "instance": { - "openmrs_entity_id": "162724AAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "text" - }, - { - "instance": { - "openmrs_entity_id": "Nama Kader", - "openmrs_entity": "person_identifier" - }, - "label": { - "Bahasa": "Nama Kader", - "English": "Name of Community Volunteer" - }, - "type": "text", - "name": "nama_kader", - "hint": { - "Bahasa": "Nama kader Posyandu yang memberi Ibu pelayanan kesehatan", - "English": "Name of community health worker that gives health service" - } - }, - { - "instance": { - "openmrs_entity_id": "Nama Dukun", - "openmrs_entity": "person_identifier" - }, - "label": { - "Bahasa": "Nama Dukun", - "English": "Name of Traditional Birth Attendant" - }, - "type": "text", - "name": "nama_dukun", - "hint": { - "Bahasa": "Nama dukun yang menemani Ibu pada saat menerima pelayanan kesehatan", - "English": "Name of traditional birth attendant that accompany mother during health care service" - } - }, - { - "control": { - "appearance": "minimal" - }, - "name": "asuransi_jiwa", - "hint": { - "Bahasa": "Jenis asuransi yang dimiliki Ibu", - "English": "Type insurance that mother has" - }, - "label": { - "Bahasa": "Asuransi Jiwa", - "English": "Insurance" - }, - "instance": { - "openmrs_entity_id": "159356AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "select one", - "children": [ - { - "instance": { - "openmrs_code": "1917AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "Jaminan_Kesehatan_Masyarakat", - "label": { - "Bahasa": "Jaminan Kesehatan Masyarakat (Jamkesmas)", - "English": "National Health Insurance for the Poor" - } - }, - { - "instance": { - "openmrs_code": "163128AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "Jamsostek", - "label": { - "Bahasa": "Jaminan Sosial dan Ketenagakerjaan (Jamsostek)", - "English": "Social Insurance for Private Sector Workers" - } - }, - { - "instance": { - "openmrs_code": "163129AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "Jaminan_Kesehatan_Daerah", - "label": { - "Bahasa": "Jaminan Kesehatan Daerah (Jamkesda)", - "English": "Regional Health Insurance for the Poor" - } - }, - { - "instance": { - "openmrs_code": "163130AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "Asuransi_Kesehatan", - "label": { - "Bahasa": "Asuransi Kesehatan (Askes)", - "English": "Health Insurance for Civil Servants and Retired Armed Forces Personnel" - } - }, - { - "instance": { - "openmrs_code": "163131AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "Jaminan_Persalinan", - "label": { - "Bahasa": "Jaminan Persalinan (Jampersal)", - "English": "Health Insurance for Pregnant Women and Newborns" - } - }, - { - "instance": { - "openmrs_code": "1107AAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "Tidak_Ada_Asuransi", - "label": { - "Bahasa": "Tidak memiliki asuransi/pembiayaan", - "English": "No Insurance" - } - } - ] - }, - { - "control": { - "appearance": "minimal" - }, - "name": "golongan_darah", - "hint": { - "Bahasa": "Menunjukan golongan darah Ibu", - "English": "Mother's blood type" - }, - "bind": { - "required": "yes" - }, - "label": { - "Bahasa": "Golongan Darah", - "English": "Blood Type" - }, - "instance": { - "openmrs_entity_id": "300AAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "select one", - "children": [ - { - "instance": { - "openmrs_code": "163115AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "A", - "label": { - "Bahasa": "A", - "English": "A" - } - }, - { - "instance": { - "openmrs_code": "163116AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "B", - "label": { - "Bahasa": "B", - "English": "B" - } - }, - { - "instance": { - "openmrs_code": "163117AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "AB", - "label": { - "Bahasa": "AB", - "English": "AB" - } - }, - { - "instance": { - "openmrs_code": "163118AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "O", - "label": { - "Bahasa": "O", - "English": "O" - } - }, - { - "instance": { - "openmrs_code": "1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "NA", - "label": { - "Bahasa": "Belum diketahui", - "English": "Unknown" - } - } - ] - }, - { - "name": "nomor_telpon_hp", - "hint": { - "Bahasa": "Nomor telpon/Hp yang dimiliki oleh Ibu atau No telpon Keluarga", - "English": "Mother's contact number" - }, - "bind": { - "jr:constraintMsg": { - "Bahasa": "Nomer teelpon tidak boleh lebih dari 12 digit", - "English": "Contact number should be no more than 12 digits" - }, - "constraint": ".>0 and .<100000000000" - }, - "label": { - "Bahasa": "Nomor Telpon/Hp", - "English": "Landline/Cell Phone Number" - }, - "instance": { - "openmrs_entity_id": "159635AAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "text" - }, - { - "default": "0", - "instance": { - "openmrs_entity_id": "374AAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "hidden", - "name": "jenis_kontrasepsi" - }, - { - "bind": { - "calculate": "if(${umur} <20, 'yes','no')" - }, - "type": "calculate", - "name": "high_risk_pregnancy_young_maternal_age", - "instance": { - "openmrs_entity_id": "163119AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - } - }, - { - "bind": { - "calculate": "if(${umur} >35, 'yes','no')" - }, - "type": "calculate", - "name": "high_risk_pregnancy_old_maternal_age", - "instance": { - "openmrs_entity_id": "163120AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - } - }, - { - "bind": { - "calculate": "${today}" - }, - "type": "calculate", - "name": "reg_date" - }, - { - "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/kartu_ibu_registration/form.xml b/opensrp-bidan/src/main/assets/www/form/kartu_ibu_registration/form.xml deleted file mode 100644 index a8f7f42..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_ibu_registration/form.xml +++ /dev/null @@ -1,467 +0,0 @@ - - - - Identitas Ibu - - Bahasa - English - - - Desa : - - - - - - - - Dusun : - - - - - - - - - - Apakah ibu adalah pasien wilayah Anda? - Is the mother living in your catchment area? - * - - - - - Ya - Yes - - - - Tidak - No - - - - This field is required - - - - - Apakah ibu adalah warga pindahan dari desa lain? - Is the mother moving in to this village? - * - - - - - Ya - Yes - - - - Tidak - No - - - - This field is required - - - Sejak kapan ibu pindah ke sini? - Since when did she move this village? - * - Tuliskan tanggal ibu pindah ke desa ini - Write the date when the mother moved into this village - - Value not allowed - This field is required - - - Tanggal Registrasi - Date of Registration - * - - Value not allowed - This field is required - - - - - Lokasi Periksa - Location of Service - - - - - - Posyandu - Village Outreach Post - - - - Polindes - Health Clinic Post - - - - Puskesmas - Health Facility - - - - Rumah Ibu - Mother House - - - - Rumah Sakit - Hospital - - - - Lainnya - Other - - - - This field is required - - - Lainnya - Other - Lainnya - Write other location - - - - Unique ID: - - - Unique ID: - - - - - - Puskesmas - Primary Health Center (PHC) - * - Nama puskesmas tempat ibu melakukan pemeriksaan - Name of primary health center where mother does a check-up - - This field is required - - - * - No. Ibu - Mother's Number - - - - NIK - National Id Number - - - - Nama lengkap - Full name - * - Nama lengkap Ibu - Mother's full name - - This field is required - - - Nama suami - Name of husband - * - Nama lengkap suami - Husband's full name - - This field is required - - - Tanggal lahir - DOB - * - Tanggal lahir Ibu - Mother's date of birth - - This field is required - - - Umur: - - - Age - - - - Alamat domisili - Address - Alamat tempat tinggal (rumah) Ibu - Mother's address - - - - Pendidikan - Education - Pendidikan Terakhir Ibu - Mother's highest education - - ... - Sekolah Dasar (SD) - Sekolah Menengah Pertama (SMP) - Sekolah Menengah Atas (SMA) - Perguruan Tinggi - Tidak sekolah - - - Sekolah Dasar (SD) - Primary School - Sekolah Menengah Pertama (SMP) - Junior High School - Sekolah Menengah Atas (SMA) - Senior High School - Perguruan Tinggi - College/University - Tidak sekolah - No Formal Education - - - - Agama - Religion - Agama Ibu - Mother's religion - - ... - Islam - Hindu - Kristen - Katolik - Budha - Lainnya - - - Islam - Islam (I) - Hindu - Hinduism (H); - Kristen - Christianity (K) - Katolik - Catholic - Budha - Buddhism (B) - Lainnya - Other - - - - Pekerjaan - Occupation - Pekerjaan Ibu - Mother's occupation - - ... - Ibu rumah tangga - Petani - Nelayan - Pedagang - PNS - Swasta - Lainnya - - - Ibu rumah tangga - Housewife - Petani - Farmer - Nelayan - Fisherman - Pedagang - Merchant - PNS - Civil Servant - Swasta - Private Employee - Lainnya - Other - - - - Lainnya - Other - Lainya - Write other location - - - - - - Gakin/ Tidak - Poor Family/not - Apakah Ibu termasuk keluarga miskin atau tidak - Does mother belong to poor family or not? (Low-Income Population / Financially poor) - - - - - Ya - Yes - - - - Tidak - No - - - - - - Posyandu - Name of Outreach Post - * - Nama Posyandu tempat Ibu menerima pelayanan kesehatan - Name of Health Post where mother receives health care - - This field is required - - - Nama Kader - Name of Community Volunteer - Nama kader Posyandu yang memberi Ibu pelayanan kesehatan - Name of community health worker that gives health service - - - - Nama Dukun - Name of Traditional Birth Attendant - Nama dukun yang menemani Ibu pada saat menerima pelayanan kesehatan - Name of traditional birth attendant that accompany mother during health care service - - - - Asuransi Jiwa - Insurance - Jenis asuransi yang dimiliki Ibu - Type insurance that mother has - - ... - Jaminan Kesehatan Masyarakat (Jamkesmas) - Jaminan Sosial dan Ketenagakerjaan (Jamsostek) - Jaminan Kesehatan Daerah (Jamkesda) - Asuransi Kesehatan (Askes) - Jaminan Persalinan (Jampersal) - Tidak memiliki asuransi/pembiayaan - - - Jaminan Kesehatan Masyarakat (Jamkesmas) - National Health Insurance for the Poor - Jaminan Sosial dan Ketenagakerjaan (Jamsostek) - Social Insurance for Private Sector Workers - Jaminan Kesehatan Daerah (Jamkesda) - Regional Health Insurance for the Poor - Asuransi Kesehatan (Askes) - Health Insurance for Civil Servants and Retired Armed Forces Personnel - Jaminan Persalinan (Jampersal) - Health Insurance for Pregnant Women and Newborns - Tidak memiliki asuransi/pembiayaan - No Insurance - - - - Golongan Darah - Blood Type - * - Menunjukan golongan darah Ibu - Mother's blood type - - ... - A - B - AB - O - Belum diketahui - - - A - A - B - B - AB - AB - O - O - Belum diketahui - Unknown - - This field is required - - - Nomor Telpon/Hp - Landline/Cell Phone Number - Nomor telpon/Hp yang dimiliki oleh Ibu atau No telpon Keluarga - Mother's contact number - - Nomer teelpon tidak boleh lebih dari 12 digit - Contact number should be no more than 12 digits - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kartu_ibu_registration/form_definition.json b/opensrp-bidan/src/main/assets/www/form/kartu_ibu_registration/form_definition.json deleted file mode 100644 index b640a52..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_ibu_registration/form_definition.json +++ /dev/null @@ -1,193 +0,0 @@ -{ - "form_data_definition_version": "3", - "form": { - "bind_type": "kartu_ibu", - "ec_bind_type": "ec_kartu_ibu", - "default_bind_path": "/model/instance/Kartu_ibu/", - "fields": [ - { - "name": "id", - "shouldLoadValue": true - }, - { - "name": "start", - "bind": "/model/instance/Kartu_ibu/start" - }, - { - "name": "end", - "bind": "/model/instance/Kartu_ibu/end" - }, - { - "name": "existing_location", - "bind": "/model/instance/Kartu_ibu/existing_location", - "shouldLoadValue": true - }, - { - "name": "lokasiPeriksa", - "bind": "/model/instance/Kartu_ibu/Lokasi_periksa" - }, - { - "name": "pasienWilayah", - "bind": "/model/instance/Kartu_ibu/pasien_wilayah" - }, - { - "name": "pasienPindahan", - "bind": "/model/instance/Kartu_ibu/pasien_pindahan" - }, - { - "name": "tglPindah", - "bind": "/model/instance/Kartu_ibu/tgl_pindah" - }, - { - "name": "unique_id", - "bind": "/model/instance/Kartu_ibu/unique_id", - "shouldLoadValue" : true - }, - { - "name": "Village", - "bind": "/model/instance/Kartu_ibu/Village", - "shouldLoadValue" : true - }, - { - "name": "Province", - "bind": "/model/instance/Kartu_ibu/Province", - "shouldLoadValue" : true - }, - { - "name": "nik", - "bind": "/model/instance/Kartu_ibu/nik" - }, - { - "name": "Sub-district", - "bind": "/model/instance/Kartu_ibu/Sub-district", - "shouldLoadValue" : true - }, - { - "name": "District", - "bind": "/model/instance/Kartu_ibu/District", - "shouldLoadValue" : true - }, - { - "name": "Sub-village", - "bind": "/model/instance/Kartu_ibu/Sub-village", - "shouldLoadValue" : true - }, - { - "name": "dusun", - "bind": "/model/instance/Kartu_ibu/dusun" - }, - { - "name": "provinsi", - "bind": "/model/instance/Kartu_ibu/provinsi" - }, - { - "name": "kabupaten", - "bind": "/model/instance/Kartu_ibu/kabupaten" - }, - { - "name": "kecamatan", - "bind": "/model/instance/Kartu_ibu/kecamatan" - }, - { - "name": "desa", - "bind": "/model/instance/Kartu_ibu/desa" - }, - { - "name": "puskesmas", - "bind": "/model/instance/Kartu_ibu/puskesmas" - }, - { - "name": "noIbu", - "bind": "/model/instance/Kartu_ibu/no_ibu" - }, - { - "name": "namalengkap", - "bind": "/model/instance/Kartu_ibu/nama_lengkap" - }, - { - "name": "namaSuami", - "bind": "/model/instance/Kartu_ibu/nama_suami" - }, - { - "name": "tanggalLahir", - "bind": "/model/instance/Kartu_ibu/tanggal_lahir_ibu" - }, - { - "name": "umur", - "bind": "/model/instance/Kartu_ibu/umur" - }, - { - "name": "alamatDomisili", - "bind": "/model/instance/Kartu_ibu/alamat_domisili" - }, - { - "name": "pendidikan", - "bind": "/model/instance/Kartu_ibu/pendidikan" - }, - { - "name": "agama", - "bind": "/model/instance/Kartu_ibu/agama" - }, - { - "name": "pekerjaan", - "bind": "/model/instance/Kartu_ibu/pekerjaan" - }, - { - "name": "gakinTidak", - "bind": "/model/instance/Kartu_ibu/gakin_tidak" - }, - { - "name": "posyandu", - "bind": "/model/instance/Kartu_ibu/posyandu" - }, - { - "name": "namaKader", - "bind": "/model/instance/Kartu_ibu/nama_kader" - }, - { - "name": "namaDukun", - "bind": "/model/instance/Kartu_ibu/nama_dukun" - }, - { - "name": "asuransiJiwa", - "bind": "/model/instance/Kartu_ibu/asuransi_jiwa" - }, - { - "name": "golonganDarah", - "bind": "/model/instance/Kartu_ibu/golongan_darah" - }, - { - "name": "NomorTelponHp", - "bind": "/model/instance/Kartu_ibu/nomor_telpon_hp" - }, - { - "name": "highRiskPregnancyYoungMaternalAge", - "bind": "/model/instance/Kartu_ibu/High_Risk_Pregnancy_Young_maternal_age" - }, - { - "name": "highRiskPregnancyOldMaternalAge", - "bind": "/model/instance/Kartu_ibu/High_Risk_Pregnancy_Old_maternal_age" - }, - { - "name": "jenisKontrasepsi", - "bind": "/model/instance/Kartu_ibu/jenis_kontrasepsi" - }, - { - "name": "isOutOfArea", - "value": "false" - }, - { - "name": "isClosed", - "value": "false" - }, - { - "name": "submissionDate", - "bind": "/model/instance/Kartu_ibu/today" - }, - { - "name": "registrationDate", - "bind": "/model/instance/Kartu_ibu/reg_date" - } - ] - } -} diff --git a/opensrp-bidan/src/main/assets/www/form/kartu_ibu_registration/model.xml b/opensrp-bidan/src/main/assets/www/form/kartu_ibu_registration/model.xml deleted file mode 100644 index 81a65a8..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_ibu_registration/model.xml +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Ibu rumah tangga - - - - - - - - - 0 - - - - - - - - - - \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kartu_pnc_close/form.json b/opensrp-bidan/src/main/assets/www/form/kartu_pnc_close/form.json deleted file mode 100644 index 0a90c73..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_pnc_close/form.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"penutupan_pnc_reviewed","title":"Penutupan PNC","sms_keyword":"penutupan_pnc","default_language":"Bahasa","instance":{"encounter_type":"Penutupan PNC"},"version":"201610130910","id_string":"penutupan_pnc","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":"person_address","openmrs_entity_id":"stateProvince","openmrs_entity_parent":"usual_residence"}},{"bind":{"calculate":"${District}"},"type":"calculate","name":"kabupaten","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"countyDistrict","openmrs_entity_parent":"usual_residence"}},{"bind":{"calculate":"${Village}"},"type":"calculate","name":"desa","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"cityVillage","openmrs_entity_parent":"usual_residence"}},{"bind":{"calculate":"${Sub-village}"},"type":"calculate","name":"dusun","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"address1","openmrs_entity_parent":"usual_residence"}},{"bind":{"calculate":"${Sub-district}"},"type":"calculate","name":"kecamatan","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"address2","openmrs_entity_parent":"usual_residence"}},{"control":{"appearance":"minimal"},"name":"pnc_close_reason","hint":{"Bahasa":"Pilihlah salah satu alasan yang tersedia","English":"Select one of reason available"},"bind":{"required":"yes"},"label":{"Bahasa":"Alasan menutup PNC","English":"Reason for PNC's closure"},"instance":{"openmrs_entity_id":"160417AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"select one","children":[{"instance":{"openmrs_code":"163132AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"relocation_temporary","label":{"Bahasa":"Relokasi (sementara)","English":"Relocation (temporary)"}},{"instance":{"openmrs_code":"160415AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"relocation_permanent","label":{"Bahasa":"Relokasi (permanen)","English":"Relocation (permanent)"}},{"instance":{"openmrs_code":"164146"},"name":"end_of_pp_period","label":{"Bahasa":"Akhir periode postpartum","English":"End of post-partum period"}},{"instance":{"openmrs_code":"163133AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"wrong_entry","label":{"Bahasa":"Kesalahan entry","English":"Wrong entry"}},{"instance":{"openmrs_code":"163154AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Penyebab langsung","label":{"Bahasa":"Kematian Ibu karena Penyebab langsung","English":"Direct cause"}},{"instance":{"openmrs_code":"163136AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Penyebab tidak langsung","label":{"Bahasa":"Kematian Ibu karena Penyebab tidak langsung","English":"Indirect cause"}},{"instance":{"openmrs_code":"1067AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tidak_diketahui","label":{"Bahasa":"Tidak Diketahui","English":"Unknown"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Lainnya","label":{"Bahasa":"Lainnya","English":"Other"}}]},{"bind":{"relevant":"${pnc_close_reason} = 'Lainnya'"},"type":"text","instance":{"openmrs_entity":"Concept","openmrs_entity_id":"160632AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"Closing reason - 1541AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"other_close_reason","label":{"Bahasa":"Lainnya","English":"Others"}},{"name":"death_date","hint":{"Bahasa":"masukkan tanggal kematian","English":"Enter the date of mother's death"},"bind":{"jr:constraintMsg":{"Bahasa":"Tanggal kematian ibu hari ini atau hari-hari sebelumnya","English":"Date of mother's death today or the days before"},"relevant":"${pnc_close_reason} = 'Penyebab langsung' or ${pnc_close_reason} = 'Penyebab tidak langsung'","constraint":".<=${today}"},"label":{"Bahasa":"Tanggal kematian","English":"Date of death"},"instance":{"openmrs_entity_id":"1543AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"date"},{"control":{"appearance":"minimal"},"name":"maternal_death_cause","hint":{"Bahasa":"Pilihlah salah satu jawaban yang tersedia","English":"Select one of answers available"},"bind":{"relevant":"${pnc_close_reason} = 'Penyebab langsung'"},"label":{"Bahasa":"Penyebab Kematian ibu?","English":"Cause of maternal death"},"instance":{"openmrs_entity_id":"159404AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"select one","children":[{"instance":{"openmrs_code":"117617AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"early_pregnancy_bleeding","label":{"Bahasa":"PERDARAHAN HAMIL MUDA ( Abortus,KET,Mola )","English":"Early Pregnancy Bleeding (Abortion/Miscarriage, Ectopic Pregnancy, Mola)"}},{"instance":{"openmrs_code":"147241AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"hemorrhage","label":{"Bahasa":"PENDARAHAN ( APB, HPP )","English":"Hemorrhage (APB, PPH)"}},{"instance":{"openmrs_code":"116136AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"infection","label":{"Bahasa":"INFEKSI ( P.Kasep,KPD, Sepsis,Puerperalis,P. Lama )","English":"Infection (prolonged labor with complication, early membrane rupture, sepsis puerperalis, prolonged labor)"}},{"instance":{"openmrs_code":"47AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"hypertention_in_pregnancy","label":{"Bahasa":"HDK ( HT Kronis,HT dg Protein Urin,Eklampsia,Syndrom HELLP)","English":"Hypertention in Pregnancy (Chronic Hypertention, Hypertention with protein urinea, Syndrom HELLP)"}},{"instance":{"openmrs_code":"141382AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"embolism","label":{"Bahasa":"EMBOLI ( Pulmonal,air ketuban )","English":"Embolism (Pulmonary, Amniotic fluid)"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"other","label":{"Bahasa":"LAIN-LAIN ( diluar penyebab yang diatas )","English":"Other"}}]},{"name":"other_maternal_death_cause","hint":{"Bahasa":"Sebutkan alasan lainnya Jika ada","English":"Write other reason, if available"},"bind":{"relevant":"${maternal_death_cause} = 'others'"},"label":{"Bahasa":"Lainnya","English":"Other"},"instance":{"openmrs_entity_id":"162580AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"text"},{"control":{"appearance":"minimal"},"name":"place_of_death","hint":{"Bahasa":"Tempat Kematian ibu","English":"Place of mother's death"},"bind":{"relevant":"${pnc_close_reason} = 'Penyebab langsung'"},"label":{"Bahasa":"Tempat Kematian","English":"Place of maternal death"},"instance":{"openmrs_entity_id":"1541AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1536AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Rumah sendiri/keluarga","label":{"Bahasa":"Rumah sendiri/keluarga","English":"Mother/family's house"}},{"instance":{"openmrs_code":"164151"},"name":"Rumah dukun","label":{"Bahasa":"Rumah dukun","English":"Traditional birth attendant's house"}},{"instance":{"openmrs_code":"163512AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Polindes","label":{"Bahasa":"Polindes","English":"Community-based health post"}},{"instance":{"openmrs_code":"1588AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Pustu","label":{"Bahasa":"Pustu","English":"Sub-center"}},{"instance":{"openmrs_code":"164152"},"name":"Rumah bidan","label":{"Bahasa":"Rumah bidan","English":"Midwife's house"}},{"instance":{"openmrs_code":"1588AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Puskesmas","label":{"Bahasa":"Puskesmas","English":"Primary Health Center"}},{"instance":{"openmrs_code":"1601AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Dalam perjalanan ke fasilitas","label":{"Bahasa":"Dalam perjalanan ke fasilitas","English":"On the way to facility"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Lainnya","label":{"Bahasa":"Lainnya","English":"other"}}]},{"bind":{"relevant":"${place_of_death} = 'Lainnya'"},"type":"text","instance":{"openmrs_entity_id":"160632AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"name":"other_place_of_death","label":{"Bahasa":"Lainnya","English":"Other"}},{"name":"not_maternal_death_cause","hint":{"Bahasa":"masukkan penyebab kematian","English":"Write the cause of death"},"bind":{"relevant":"${pnc_close_reason} = 'Penyebab tidak langsung'"},"label":{"Bahasa":"Penyebab","English":"Cause"},"instance":{"openmrs_entity_id":"160218AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"text"},{"name":"birth_attendant","hint":{"Bahasa":"Sebutkan siapa yang menolong ibu hamil saat bersalin","English":"Write the one who assist mother's delivery"},"label":{"Bahasa":"Penolong Persalinan","English":"Birth Attendant"},"instance":{"openmrs_entity_id":"1573AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1560AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"keluarga","label":{"Bahasa":"Keluarga (K)","English":"Family"}},{"instance":{"openmrs_code":"1575AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"dukun","label":{"Bahasa":"Dukun (D)","English":"Traditional Birth Attendant"}},{"instance":{"openmrs_code":"1578AAAAAAAAAAAA\nAAAAAAAAAAAAAAAA"},"name":"bidan","label":{"Bahasa":"Bidan (B)","English":"Midwife"}},{"instance":{"openmrs_code":"1574AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"dr.umum","label":{"Bahasa":"Dr.Umum (DU)","English":"Doctor"}},{"instance":{"openmrs_code":"163489AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"dr.spesialis","label":{"Bahasa":"Dr.Spesialis (DS)","English":"Obstectric and Gynecology Specialist (OGS)"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"lain-lain","label":{"Bahasa":"Lain-Lain (LN)","English":"Others"}},{"instance":{"openmrs_code":"1107AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tidak_ada","label":{"Bahasa":"Tidak Ada (TA)","English":"None"}}]},{"instance":{"openmrs_entity_id":"163104AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"label":{"Bahasa":"Tindakan sebelum dirujuk","English":"Pre-referral management"},"type":"text","name":"prereferral_management","hint":{"Bahasa":"Tuliskan tindakan perawatan yang diberikan kepada ibu sebelum dirujuk","English":"Describe the care management provided for the mother prior to referral"}},{"name":"referred","hint":{"Bahasa":"Untuk mengetahui apakah ibu tersebut dirujuk ke fasilitas lain","English":"Information whether the mother was referred to other facility or not"},"label":{"Bahasa":"Apakah ibu ini dirujuk?","English":"Was this mother referred to other facility?"},"instance":{"openmrs_entity_id":"1648AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Bahasa":"Ya","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Bahasa":"Tidak","English":"No"}}]},{"instance":{"openmrs_entity_id":"161562AAAAAAAAAA\nAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"label":{"Bahasa":"Ibu dirujuk ke","English":"Location of referral"},"type":"text","name":"referral_location","hint":{"Bahasa":"Untuk mengetahui ibu dirujuk ke fasilitas mana","English":"Information related to the location of mother's referral"}},{"instance":{"openmrs_entity":"n/a"},"label":{"Bahasa":"konfirmasi penutupan PNC?","English":"Confirmation of PNC Closure?"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Bahasa":"Ya","English":"Yes"}}],"name":"confirm_pnc_close"},{"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/kartu_pnc_close/form.xml b/opensrp-bidan/src/main/assets/www/form/kartu_pnc_close/form.xml deleted file mode 100644 index c0a0720..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_pnc_close/form.xml +++ /dev/null @@ -1,29 +0,0 @@ - - Penutupan PNCBahasa English - - - Desa : - - - Dusun : - - - Alasan menutup PNCReason for PNC's closure*Pilihlah salah satu alasan yang tersediaSelect one of reason available...Relokasi (sementara)Relokasi (permanen)Akhir periode postpartumKesalahan entryKematian Ibu karena Penyebab langsungKematian Ibu karena Penyebab tidak langsungTidak DiketahuiLainnyaRelokasi (sementara)Relocation (temporary)Relokasi (permanen)Relocation (permanent)Akhir periode postpartumEnd of post-partum periodKesalahan entryWrong entryKematian Ibu karena Penyebab langsungDirect causeKematian Ibu karena Penyebab tidak langsungIndirect causeTidak DiketahuiUnknownLainnyaOther - - LainnyaOthers - Tanggal kematian ibu hari ini atau hari-hari sebelumnyaDate of mother's death today or the days beforeTanggal kematianDate of deathmasukkan tanggal kematianEnter the date of mother's death - Penyebab Kematian ibu?Cause of maternal deathPilihlah salah satu jawaban yang tersediaSelect one of answers available...PERDARAHAN HAMIL MUDA ( Abortus,KET,Mola )PENDARAHAN ( APB, HPP )INFEKSI ( P.Kasep,KPD, Sepsis,Puerperalis,P. Lama )HDK ( HT Kronis,HT dg Protein Urin,Eklampsia,Syndrom HELLP)EMBOLI ( Pulmonal,air ketuban )LAIN-LAIN ( diluar penyebab yang diatas )PERDARAHAN HAMIL MUDA ( Abortus,KET,Mola )Early Pregnancy Bleeding (Abortion/Miscarriage, Ectopic Pregnancy, Mola)PENDARAHAN ( APB, HPP )Hemorrhage (APB, PPH)INFEKSI ( P.Kasep,KPD, Sepsis,Puerperalis,P. Lama )Infection (prolonged labor with complication, early membrane rupture, sepsis puerperalis, prolonged labor)HDK ( HT Kronis,HT dg Protein Urin,Eklampsia,Syndrom HELLP)Hypertention in Pregnancy (Chronic Hypertention, Hypertention with protein urinea, Syndrom HELLP)EMBOLI ( Pulmonal,air ketuban )Embolism (Pulmonary, Amniotic fluid)LAIN-LAIN ( diluar penyebab yang diatas )Other - - LainnyaOtherSebutkan alasan lainnya Jika adaWrite other reason, if available - Tempat KematianPlace of maternal deathTempat Kematian ibuPlace of mother's death...Rumah sendiri/keluargaRumah dukunPolindesPustuRumah bidanPuskesmasDalam perjalanan ke fasilitasLainnyaRumah sendiri/keluargaMother/family's houseRumah dukunTraditional birth attendant's housePolindesCommunity-based health postPustuSub-centerRumah bidanMidwife's housePuskesmasPrimary Health CenterDalam perjalanan ke fasilitasOn the way to facilityLainnyaother - - LainnyaOther - PenyebabCausemasukkan penyebab kematianWrite the cause of death - Penolong PersalinanBirth AttendantSebutkan siapa yang menolong ibu hamil saat bersalinWrite the one who assist mother's delivery - Keluarga (K)FamilyDukun (D)Traditional Birth AttendantBidan (B)MidwifeDr.Umum (DU)DoctorDr.Spesialis (DS)Obstectric and Gynecology Specialist (OGS)Lain-Lain (LN)OthersTidak Ada (TA)None - Tindakan sebelum dirujukPre-referral managementTuliskan tindakan perawatan yang diberikan kepada ibu sebelum dirujukDescribe the care management provided for the mother prior to referral - Apakah ibu ini dirujuk?Was this mother referred to other facility?Untuk mengetahui apakah ibu tersebut dirujuk ke fasilitas lainInformation whether the mother was referred to other facility or not - YaYesTidakNo - Ibu dirujuk keLocation of referralUntuk mengetahui ibu dirujuk ke fasilitas manaInformation related to the location of mother's referral - konfirmasi penutupan PNC?Confirmation of PNC Closure? - YaYes - - \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kartu_pnc_close/form_definition.json b/opensrp-bidan/src/main/assets/www/form/kartu_pnc_close/form_definition.json deleted file mode 100644 index a73540e..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_pnc_close/form_definition.json +++ /dev/null @@ -1,78 +0,0 @@ -{ - "form_data_definition_version":"3", - "form":{ - "bind_type":"ibu", - "ec_bind_type": "ec_ibu", - "default_bind_path":"/model/instance/penutupan_pnc_reviewed/", - "fields":[ - { - "name": "id", - "shouldLoadValue": true - }, - { - "name": "kiId", - "shouldLoadValue": true, - "source": "ibu.kartu_ibu.id" - }, - { - "name": "cityVillage", - "bind": "/model/instance/penutupan_pnc_reviewed/Village", - "shouldLoadValue": true - }, - { - "name": "existing_location", - "bind": "/model/instance/penutupan_pnc_reviewed/existing_location", - "shouldLoadValue": true - }, - { - "name":"pncCloseReason", - "bind":"/model/instance/penutupan_pnc_reviewed/pnc_close_reason" - }, - { - "name":"deathDate", - "bind":"/model/instance/penutupan_pnc_reviewed/death_date" - }, - { - "name":"maternalDeathCause", - "bind":"/model/instance/penutupan_pnc_reviewed/maternal_death_cause" - }, - { - "name":"otherMaternalDeathCause", - "bind":"/model/instance/penutupan_pnc_reviewed/other_maternal_death_cause" - }, - { - "name":"placeOfDeath", - "bind":"/model/instance/penutupan_pnc_reviewed/place_of_death" - }, - { - "name":"otherPlaceOfDeath", - "bind":"/model/instance/penutupan_pnc_reviewed/other_place_of_death" - }, - { - "name": "notMaternalDeathCause", - "bind": "/model/instance/penutupan_pnc_reviewed/maternal_death_group/not_maternal_death_cause" - }, - { - "name": "isPNCCloseConfirmed", - "bind": "/model/instance/penutupan_pnc_reviewed/confirm_pnc_close" - }, - { - "name":"submissionDate", - "bind":"/model/instance/penutupan_pnc_reviewed/today" - }, - { - "name":"registrationDate", - "bind":"/model/instance/penutupan_pnc_reviewed/reg_date" - }, - { - "name":"type", - "value":"anc" - }, - { - "name": "isClosed", - "source": "ibu.isClosed", - "value": "true" - } - ] - } -} diff --git a/opensrp-bidan/src/main/assets/www/form/kartu_pnc_close/model.xml b/opensrp-bidan/src/main/assets/www/form/kartu_pnc_close/model.xml deleted file mode 100644 index 914219b..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_pnc_close/model.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kartu_pnc_dokumentasi_persalinan/form.json b/opensrp-bidan/src/main/assets/www/form/kartu_pnc_dokumentasi_persalinan/form.json deleted file mode 100644 index 41fb6f1..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_pnc_dokumentasi_persalinan/form.json +++ /dev/null @@ -1,1566 +0,0 @@ -{ - "name": "dok_persalinan_reviewed", - "title": "Dokumentasi Persalinan", - "sms_keyword": "dokumentasi_persalinan", - "default_language": "Bahasa", - "instance": { - "encounter_type": "Dokumentasi Persalinan" - }, - "version": "201702121222", - "id_string": "dokumentasi_persalinan", - "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" - } - }, - { - "type": "note", - "name": "generated_note_name_24", - "label": { - "Bahasa": "DOKUMENTASI PERSALINAN", - "English": "DOCUMENTATION OF DELIVERY" - } - }, - { - "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" - }, - "type": "hidden", - "instance": { - "openmrs_entity_id": "1427AAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "Concept" - }, - "name": "hpht", - "label": { - "Bahasa": "inject HPHT from register ANC" - } - }, - { - "bind": { - "calculate": "int(((${today} - ${hpht}) div 7)+1)" - }, - "type": "calculate", - "name": "usiakehamilan", - "instance": { - "openmrs_entity_id": "1438AAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "Concept" - } - }, - { - "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" - }, - "type": "note", - "instance": { - "openmrs_entity": "n/a" - }, - "name": "usia_kehamilan_hpht", - "label": { - "Bahasa": "Usia kehamilan berdasarkan HPHT: ${usiakehamilan} minggu", - "English": "Age of pregnancy based on HPHT" - } - }, - { - "name": "keadaan_ibu", - "hint": { - "Bahasa": "Kondisi Ibu setelah proses persalinan", - "English": "Mother's condition post-delivery" - }, - "bind": { - "required": "yes" - }, - "label": { - "Bahasa": "Keadaan Ibu", - "English": "Condition of mother" - }, - "instance": { - "openmrs_entity_id": "160085AAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "Concept" - }, - "type": "select one", - "children": [ - { - "instance": { - "openmrs_code": "160429AAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "hidup", - "label": { - "Bahasa": "Hidup (H)", - "English": "Alive (A)" - } - }, - { - "instance": { - "openmrs_code": "134612AAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "mati", - "label": { - "Bahasa": "Mati (M)", - "English": "Dead (D)" - } - } - ] - }, - { - "name": "persalinan", - "hint": { - "Bahasa": "Isi Kala Persalinan dimulai dari kedatangan Ibu hamil", - "English": "Fill in information of Labor Stage started from mother's arrival in health facility" - }, - "label": { - "Bahasa": "PERSALINAN", - "English": "DELIVERY" - }, - "instance": { - "openmrs_entity_id": "163511AAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "Concept" - }, - "type": "select all that apply", - "children": [ - { - "instance": { - "openmrs_code": "163505AAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "kalasatu", - "label": { - "Bahasa": "Kala I Aktif", - "English": "Active Stage I" - } - }, - { - "instance": { - "openmrs_code": "163506AAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "kaladua", - "label": { - "Bahasa": "Kala II", - "English": "Stage II" - } - }, - { - "instance": { - "openmrs_code": "163507AAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "kalatiga", - "label": { - "Bahasa": "Kala III (Plasenta Lahir)", - "English": "Stage III placenta expulsion" - } - }, - { - "instance": { - "openmrs_code": "163508AAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "kalaempat", - "label": { - "Bahasa": "Kala IV (2 Jam Postpartum)", - "English": "Stage IV (2 hours Postpartum)" - } - } - ] - }, - { - "name": "tanggal__kala_i_aktif", - "hint": { - "Bahasa": "Menunjukan Tanggal Kala I Aktif", - "English": "Indicating date of active stage 1" - }, - "bind": { - "relevant": "selected(${persalinan},'kalasatu')" - }, - "label": { - "Bahasa": "Tanggal / Kala I Aktif", - "English": "Date/ Active Stage I" - }, - "instance": { - "openmrs_entity_id": "160753AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "Concept" - }, - "type": "date" - }, - { - "name": "jam__kala_i_aktif", - "hint": { - "Bahasa": "Menunjukkan Jam Kala I Aktfi", - "English": "Indicating time of active stage 1" - }, - "bind": { - "relevant": "selected(${persalinan},'kalasatu')" - }, - "label": { - "Bahasa": "Jam / Kala I Aktif", - "English": "Time/ Active Stage I" - }, - "instance": { - "openmrs_entity_id": "163509AAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "Concept" - }, - "type": "time" - }, - { - "name": "tanggal__kala_ii", - "hint": { - "Bahasa": "Menunjukkan Tanggal Terjadinya Kala II Pada Ibu", - "English": "Indicating date of stage 2" - }, - "bind": { - "relevant": "selected(${persalinan},'kaladua')" - }, - "label": { - "Bahasa": "Tanggal / Kala II", - "English": "Date/ Stage II" - }, - "instance": { - "openmrs_entity_id": "160753AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "Concept" - }, - "type": "date" - }, - { - "name": "jam__kala_ii", - "hint": { - "Bahasa": "Menunjukkan Jam Terjadinya Kala II Pada Ibu", - "English": "Indicating time of stage 2" - }, - "bind": { - "relevant": "selected(${persalinan},'kaladua')" - }, - "label": { - "Bahasa": "Jam / Kala II", - "English": "Time/ Stage II" - }, - "instance": { - "openmrs_entity_id": "163509AAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "Concept" - }, - "type": "time" - }, - { - "control": { - "appearance": "minimal" - }, - "name": "persentasi", - "hint": { - "Bahasa": "Menunjukkan Bagian Terendah Janin, yang Sudah Masuk Ke dalam PAP", - "English": "Indicating the lowest part of fetus that has gotten into mother's pelvic inlet" - }, - "bind": { - "relevant": "selected(${persalinan},'kaladua')" - }, - "label": { - "Bahasa": "Persentasi", - "English": "Presentation" - }, - "instance": { - "openmrs_entity_id": "160090AAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "Concept" - }, - "type": "select one", - "children": [ - { - "instance": { - "openmrs_code": "164148" - }, - "name": "puncak_kepala", - "label": { - "Bahasa": "Puncak Kepala (PK)", - "English": "Occiput Anterior Position" - } - }, - { - "instance": { - "openmrs_code": "130348AAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "belakang_kepala", - "label": { - "Bahasa": "Belakang Kepala (BK)", - "English": "Occiput Posterior Position" - } - }, - { - "instance": { - "openmrs_code": "112259AAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "lintang_oblique", - "label": { - "Bahasa": "Lintang/Oblique (LG/OB)", - "English": "Transverse/Oblique presentation" - } - }, - { - "instance": { - "openmrs_code": "129192AAAAAAAAAA AAAAAAAAAAAAAAAA" - }, - "name": "menumbung", - "label": { - "Bahasa": "Menumbung (MG)", - "English": "Funiculi Prolapsus" - } - }, - { - "instance": { - "openmrs_code": "139814AAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "bokong", - "label": { - "Bahasa": "Bokong (BK)", - "English": "Frank Breech Presentation" - } - }, - { - "instance": { - "openmrs_code": "164149" - }, - "name": "dahi", - "label": { - "Bahasa": "Dahi (Dahi)", - "English": "Brow Presentation" - } - }, - { - "instance": { - "openmrs_code": "164150" - }, - "name": "muka", - "label": { - "Bahasa": "Muka (MK)", - "English": "Face Presentation" - } - }, - { - "instance": { - "openmrs_code": "156352AAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "kaki", - "label": { - "Bahasa": "Kaki (KK)", - "English": "Footling breech presentation" - } - }, - { - "instance": { - "openmrs_code": "144433AAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "rangkap", - "label": { - "Bahasa": "Rangkap (RK)", - "English": "Complete breech" - } - } - ] - }, - { - "name": "tanggal__plasenta_lahir", - "hint": { - "Bahasa": "Menunjukkan Tanggal Plasenta Lahir", - "English": "Indicating date when placenta is born" - }, - "bind": { - "relevant": "selected(${persalinan},'kalatiga')" - }, - "label": { - "Bahasa": "Tanggal / Plasenta Lahir", - "English": "Date/ Placenta Expulsion" - }, - "instance": { - "openmrs_entity_id": "160753AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "Concept" - }, - "type": "date" - }, - { - "name": "jam__plasenta_lahir", - "hint": { - "Bahasa": "Menunjukkan Jam Plasenta Lahir", - "English": "Indicating time when placenta is born" - }, - "bind": { - "relevant": "selected(${persalinan},'kalatiga')" - }, - "label": { - "Bahasa": "Jam / Plasenta Lahir", - "English": "Time/ Placenta Expulsion" - }, - "instance": { - "openmrs_entity_id": "163509AAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "Concept" - }, - "type": "time" - }, - { - "name": "perdarahan_kala_iv_2_jam_postpartum", - "hint": { - "Bahasa": "Menunjukkan Volume / Jumlah Darah Setelah 2 Jam Persalinan (cc)", - "English": "Indicating volume/amount of bleeding 2 hours post-partum (cc)" - }, - "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" - }, - "relevant": "selected(${persalinan},'kalaempat')", - "constraint": ".>0" - }, - "label": { - "Bahasa": "Perdarahan Kala IV 2 jam Postpartum", - "English": "Stage IV hemorrhage 2 hours Postpartum" - }, - "instance": { - "openmrs_entity_id": "161928AAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "Concept" - }, - "type": "decimal" - }, - { - "control": { - "appearance": "minimal" - }, - "name": "tempat", - "hint": { - "Bahasa": "Menunjukkan tempat persalinan Ibu", - "English": "Indicating mother's place of delivery" - }, - "label": { - "Bahasa": "Tempat bersalin", - "English": "Place of delivery" - }, - "instance": { - "openmrs_entity_id": "1572AAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "Concept" - }, - "type": "select one", - "children": [ - { - "instance": { - "openmrs_code": "1536AAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "rumah", - "label": { - "Bahasa": "Rumah (RMH)", - "English": "House" - } - }, - { - "instance": { - "openmrs_code": "163512AAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "podok_bersalin_desa", - "label": { - "Bahasa": "Podok Bersalin desa ( Polindes)", - "English": "Community-based Health Post" - } - }, - { - "instance": { - "openmrs_code": "1588AAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "pusat_kesehatan_masyarakat_pembantu", - "label": { - "Bahasa": "Pusat Kesehatan Masyarakat Pembantu (Pustu)", - "English": "Sub-Center" - } - }, - { - "instance": { - "openmrs_code": "159372AAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "pusat_kesehatan_masyarakat", - "label": { - "Bahasa": "Pusat Kesehatan Masyarakat (Puseksmas )", - "English": "Primary Health Center" - } - }, - { - "instance": { - "openmrs_code": "163146AAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "rumah_bersalin", - "label": { - "Bahasa": "Rumah Bersalin (RB)", - "English": "Maternity Hospital" - } - }, - { - "instance": { - "openmrs_code": "163147AAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "rumah_sakit_ibu_dan_anak", - "label": { - "Bahasa": "Rumah Sakit Ibu dan Anak (RSIA)", - "English": "Maternal and Child Hospital" - } - }, - { - "instance": { - "openmrs_code": "1589AAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "rumah_sakit", - "label": { - "Bahasa": "Rumah Sakit (RS)", - "English": "Hospital" - } - }, - { - "instance": { - "openmrs_code": "163504AAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "rumah_sakit_orang_dengan_hiv_aids", - "label": { - "Bahasa": "Rumah Sakit Orang dengan HIV / AIDS (RS Odha)", - "English": "Hospital for HIV Patient" - } - } - ] - }, - { - "control": { - "appearance": "minimal" - }, - "name": "penolong", - "hint": { - "Bahasa": "Menunjukkan penolong persalinan Ibu", - "English": "Indicating mother's birth attendant" - }, - "label": { - "Bahasa": "Penolong", - "English": "Birth Attendant" - }, - "instance": { - "openmrs_entity_id": "1573AAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "Concept" - }, - "type": "select one", - "children": [ - { - "instance": { - "openmrs_code": "1560AAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "keluarga", - "label": { - "Bahasa": "Keluarga (K)", - "English": "Family" - } - }, - { - "instance": { - "openmrs_code": "1575AAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "dukun", - "label": { - "Bahasa": "Dukun (D)", - "English": "Traditional Birth Attendant" - } - }, - { - "instance": { - "openmrs_code": "1578AAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "bidan", - "label": { - "Bahasa": "Bidan (B)", - "English": "Midwife" - } - }, - { - "instance": { - "openmrs_code": "1574AAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "dr.umum", - "label": { - "Bahasa": "Dr.Umum (DU)", - "English": "Doctor" - } - }, - { - "instance": { - "openmrs_code": "163489AAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "dr.spesialis", - "label": { - "Bahasa": "Dr.Spesialis (DS)", - "English": "Obstectric and Gynecology Specialist (OGS)" - } - }, - { - "instance": { - "openmrs_code": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "lain-lain", - "label": { - "Bahasa": "Lain-Lain (LN)", - "English": "Others" - } - }, - { - "instance": { - "openmrs_code": "1107AAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "tidak_ada", - "label": { - "Bahasa": "Tidak Ada (TA)", - "English": "None" - } - } - ] - }, - { - "name": "penolong_lain_lain", - "hint": { - "Bahasa": "Menunjukkan penolong persalinan Ibu selain yang disebutkan", - "English": "Indicating other birth attendant" - }, - "bind": { - "relevant": "${penolong} = 'lain-lain'" - }, - "label": { - "Bahasa": "Lain-lain", - "English": "Other" - }, - "instance": { - "openmrs_entity_id": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "Concept" - }, - "type": "text" - }, - { - "name": "cara_persalinan_ibu", - "hint": { - "Bahasa": "Menunjukkan cara persalinan Ibu (prosesnya normal atau tidak)", - "English": "Indicating mother's mode of delivery (whether normal or abnormal)" - }, - "label": { - "Bahasa": "Cara persalinan Ibu", - "English": "Ways of mother delivery" - }, - "instance": { - "openmrs_entity_id": "5630AAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "Concept" - }, - "type": "select one", - "children": [ - { - "instance": { - "openmrs_code": "1170AAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "normal", - "label": { - "Bahasa": "Normal (N)", - "English": "Normal (N);" - } - }, - { - "instance": { - "openmrs_code": "159260AAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "vacum", - "label": { - "Bahasa": "Vacum (VC)", - "English": "Vacuum (VC)" - } - }, - { - "instance": { - "openmrs_code": "159901AAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "forceps", - "label": { - "Bahasa": "Forceps (FS)", - "English": "Forceps (FS)" - } - }, - { - "instance": { - "openmrs_code": "1171AAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "sectio_caesaria", - "label": { - "Bahasa": "Sectio Caesaria (SC)", - "English": "Sectio Caesaria (SC)" - } - } - ] - }, - { - "name": "manajemen_aktif_kala_iii", - "hint": { - "Bahasa": "Menunjukkan tindakan yang dilakukan pada saat Kala III untuk mengeluarkan plasenta", - "English": "Indicating actions taken during management of stage 3 to remove placenta" - }, - "label": { - "Bahasa": "Manajemen Aktif Kala III", - "English": "Active Management of Stage III" - }, - "instance": { - "openmrs_entity_id": "163452", - "openmrs_entity": "Concept" - }, - "type": "select all that apply", - "children": [ - { - "instance": { - "openmrs_code": "81369AAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "injeksi_oksittosin", - "label": { - "Bahasa": "Injeksi Oksittosin (IO)", - "English": "Oxytocin injection" - } - }, - { - "instance": { - "openmrs_code": "164138" - }, - "name": "peregangan_tali_pusat", - "label": { - "Bahasa": "Peregangan Tali Pusat (PP)", - "English": "Controlled cord traction" - } - }, - { - "instance": { - "openmrs_code": "164139" - }, - "name": "masase_fundus_uteri", - "label": { - "Bahasa": "Masase Fundus Uteri (MU)", - "English": "Fundal Massage" - } - } - ] - }, - { - "name": "pelayanan", - "hint": { - "Bahasa": "Jenis pelayanan yang diberikan ke Ibu dari proses persalinan sampai 2 jam setelah persalinan", - "English": "Type of services provided to mother since labor untuil 2 hours-post partum" - }, - "label": { - "Bahasa": "Pelayanan", - "English": "Service" - }, - "instance": { - "openmrs_entity": "n/a" - }, - "type": "select all that apply", - "children": [ - { - "instance": { - "openmrs_code": "n/a" - }, - "name": "imd_k_1_jam_l_1_jam", - "label": { - "Bahasa": "IMD < 1 Jam / > 1 Jam (IMD)", - "English": "Early initiation of breastfeeding" - } - }, - { - "instance": { - "openmrs_code": "n/a" - }, - "name": "menggunakan_partograf", - "label": { - "Bahasa": "Menggunakan Partograf (MP)", - "English": "Using partograph" - } - }, - { - "instance": { - "openmrs_code": "n/a" - }, - "name": "catat_di_buku_kia", - "label": { - "Bahasa": "Catat di Buku KIA (CK)", - "English": "Updated in Maternal and Child Health Booklet (pink book)" - } - } - ] - }, - { - "instance": { - "openmrs_entity_id": "160632AAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "Concept" - }, - "label": { - "Bahasa": "Integrasi Program", - "English": "Program Integration" - }, - "type": "text", - "name": "integrasi_program", - "hint": { - "Bahasa": "Diisi dengan nama obat ( ARV Profilaksis / Anti Malaria / Anti TB) yang diberikan bidan ke Ibu", - "English": "Fill in type of medicines (ARV prophylaxis / Anti Malaria / Anti-TB) that midwife gives to mother" - } - }, - { - "name": "komplikasi", - "hint": { - "Bahasa": "Jenis komplikasi yang terjadi pada Ibu setelah persalinan", - "English": "Type of labor complication that occured" - }, - "label": { - "Bahasa": "Komplikasi", - "English": "Complications" - }, - "instance": { - "openmrs_entity_id": "1576AAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "Concept" - }, - "type": "select all that apply", - "children": [ - { - "instance": { - "openmrs_code": "1107AAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "tidak_ada_komplikasi", - "label": { - "Bahasa": "Tidak ada komplikasi persalinan", - "English": "No labor complication" - } - }, - { - "instance": { - "openmrs_code": "141596AAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "distosia", - "label": { - "Bahasa": "Distosia (DS)", - "English": "Dystocia" - } - }, - { - "instance": { - "openmrs_code": "47AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "hipertensi_dalam_kehamilan", - "label": { - "Bahasa": "Hipertensi dalam Kehamilan (HDK)", - "English": "Hypertension in Pregnancy" - } - }, - { - "instance": { - "openmrs_code": "230AAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "perdarahan_post-partum", - "label": { - "Bahasa": "Perdarahan Post-Partum (PPP)", - "English": "Postpartum Haemorrhage" - } - }, - { - "instance": { - "openmrs_code": "117069AAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "Infeksi", - "label": { - "Bahasa": "Infeksi", - "English": "Infection" - } - }, - { - "instance": { - "openmrs_code": "130AAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "sepsis_maternal", - "label": { - "Bahasa": "Sepsis maternal", - "English": "Maternal Sepsis" - } - }, - { - "instance": { - "openmrs_code": "129251AAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "preeklampsi", - "label": { - "Bahasa": "Pre-eklampsi", - "English": "Pre-eclampsia" - } - }, - { - "instance": { - "openmrs_code": "118744AAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "eklampsi", - "label": { - "Bahasa": "Eklampsi", - "English": "Eclampsia" - } - }, - { - "instance": { - "openmrs_code": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "lain_lain", - "label": { - "Bahasa": "Lain - Lain (LN)", - "English": "Others" - } - } - ] - }, - { - "name": "komplikasilain-lain", - "hint": { - "Bahasa": "Jenis komplikasi yang terjadi pada Ibu setelah persalinan selain yang disebutkan", - "English": "Other type of labor complication that occured" - }, - "bind": { - "relevant": "selected(${komplikasi}, 'lain_lain')" - }, - "label": { - "Bahasa": "Lain-lain", - "English": "Other" - }, - "instance": { - "openmrs_entity_id": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "Concept" - }, - "type": "text" - }, - { - "name": "treatment", - "hint": { - "Bahasa": "Apakah ada penanganan yang diberikan kepada pasien? Jika iya, sebutkan.", - "English": "Do you give any treatment to the patient? If yes, please describe." - }, - "label": { - "Bahasa": "Penanganan diberikan?", - "English": "Give treatment?" - }, - "instance": { - "openmrs_entity_id": "1774AAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "select one", - "children": [ - { - "instance": { - "openmrs_code": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "Ya", - "label": { - "Bahasa": "Ya", - "English": "Yes" - } - }, - { - "instance": { - "openmrs_code": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "Tidak", - "label": { - "Bahasa": "Tidak", - "English": "No" - } - } - ] - }, - { - "control": { - "appearance": "multiline" - }, - "name": "treatment_text", - "bind": { - "relevant": "${treatment} = 'Ya'" - }, - "label": { - "Bahasa": "Deskripsikan penanganan yang diberikan", - "English": "Describe the treatment you give to the patient" - }, - "instance": { - "openmrs_entity_parent": "1774AAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity_id": "160632AAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "text" - }, - { - "control": { - "appearance": "minimal" - }, - "name": "dirujuk_ke", - "hint": { - "Bahasa": "Tempat Ibu dirujuk, jika Ibu mengalami komplikasi persalinan", - "English": "Facility where mother is referred to, if mother has labor complication" - }, - "label": { - "Bahasa": "Dirujuk Ke", - "English": "Referred to" - }, - "instance": { - "openmrs_entity_id": "163145AAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "Concept" - }, - "type": "select one", - "children": [ - { - "instance": { - "openmrs_code": "159372AAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "pusat_kesehatan_masyarakat", - "label": { - "Bahasa": "Pusat Kesehatan Masyarakat (Puskesmas )", - "English": "Primary Health Center" - } - }, - { - "instance": { - "openmrs_code": "163146AAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "rumah_bersalin", - "label": { - "Bahasa": "Rumah Bersalin (RB)", - "English": "Maternity Hospital" - } - }, - { - "instance": { - "openmrs_code": "163147AAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "rumah_sakit_ibu_dan_anak", - "label": { - "Bahasa": "Rumah Sakit Ibu dan Anak (RSIA)", - "English": "Maternal and Child Hospital;" - } - }, - { - "instance": { - "openmrs_code": "1589AAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "rumah_sakit", - "label": { - "Bahasa": "Rumah Sakit (RS)", - "English": "Hospital" - } - }, - { - "instance": { - "openmrs_code": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "lain-lain", - "label": { - "Bahasa": "Lain-lain (LN)", - "English": "Others" - } - }, - { - "instance": { - "openmrs_code": "1107AAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "tidak_diujuk", - "label": { - "Bahasa": "Tidak Diujuk (TD)", - "English": "None" - } - } - ] - }, - { - "name": "dirujuk_ke_lain_lain", - "hint": { - "Bahasa": "Tempat Ibu dirujuk, jika Ibu mengalami komplikasi persalinan", - "English": "Other facility where mother is referred to, if mother has labor complication" - }, - "bind": { - "relevant": "${dirujuk_ke} = 'lain-lain'" - }, - "label": { - "Bahasa": "Lain-lain", - "English": "Other" - }, - "instance": { - "openmrs_entity_id": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "Concept" - }, - "type": "text" - }, - { - "instance": { - "openmrs_entity_id": "162724AAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "Concept" - }, - "label": { - "Bahasa": "Alamat Bersalin", - "English": "Address of delivery place" - }, - "type": "text", - "name": "alamat_bersalin", - "hint": { - "Bahasa": "Alamat Ibu bersalin", - "English": "Address of place of delivery" - } - }, - { - "name": "keadaan_bayi", - "hint": { - "Bahasa": "Kondisi bayi setelah proses persalinan", - "English": "Baby's condition post-delivery" - }, - "bind": { - "required": "yes" - }, - "label": { - "Bahasa": "Keadaan bayi", - "English": "Condition of baby" - }, - "instance": { - "openmrs_entity_id": "159917AAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "Concept" - }, - "type": "select one", - "children": [ - { - "instance": { - "openmrs_code": "151849AAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "hidup", - "label": { - "Bahasa": "Hidup (H)", - "English": "Alive (A)" - } - }, - { - "instance": { - "openmrs_code": "125872AAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "mati", - "label": { - "Bahasa": "Mati (M)", - "English": "Dead (D)" - } - } - ] - }, - { - "bind": { - "relevant": "${keadaan_bayi} = 'hidup'" - }, - "type": "repeat", - "instance": { - "openmrs_entity_id": "Child Registration", - "openmrs_entity": "person" - }, - "children": [ - { - "bind": { - "calculate": "${Village}" - }, - "type": "calculate", - "name": "desa_anak", - "instance": { - "openmrs_entity_parent": "cityVillage", - "openmrs_entity_id": "160632AAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "Concept" - } - }, - { - "type": "note", - "name": "generated_note_name_61", - "label": { - "Bahasa": "Desa : ${desa_anak}" - } - }, - { - "bind": { - "calculate": "${Village}" - }, - "type": "hidden", - "name": "child_existing_location", - "instance": { - "openmrs_entity_id": "location_id", - "openmrs_entity": "encounter" - } - }, - { - "name": "nama_bayi", - "hint": { - "Bahasa": "Nama Bayi yang diberikan Imunisasi", - "English": "Name of Baby Receiving Immunization" - }, - "bind": { - "required": "yes" - }, - "label": { - "Bahasa": "Nama Bayi", - "English": "Baby's Name" - }, - "instance": { - "openmrs_entity_id": "1586AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "Concept" - }, - "type": "text" - }, - { - "name": "jenis_kelamin", - "hint": { - "Bahasa": "Jenis Kelamin Bayi/Balita Yang diberikan Imunisasi", - "English": "Gender of Baby Receiving Immunization" - }, - "bind": { - "required": "yes" - }, - "label": { - "Bahasa": "Jenis Kelamin", - "English": "Gender" - }, - "instance": { - "openmrs_entity_id": "gender", - "openmrs_entity": "person" - }, - "type": "select one", - "children": [ - { - "instance": { - "openmrs_code": "1534AAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "male", - "label": { - "Bahasa": "Laki-Laki (L)", - "English": "Male (M)" - } - }, - { - "instance": { - "openmrs_code": "1535AAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "female", - "label": { - "Bahasa": "Perempuan ( P)", - "English": "Female (F)" - } - } - ] - }, - { - "name": "tanggal_lahir", - "hint": { - "Bahasa": "Tanggal lahir Bayi", - "English": "Baby's date of birth" - }, - "bind": { - "required": "yes" - }, - "label": { - "Bahasa": "Tanggal lahir", - "English": "DOB" - }, - "instance": { - "openmrs_entity_id": "birthdate", - "openmrs_entity": "person" - }, - "type": "date" - }, - { - "instance": { - "openmrs_entity_id": "5916AAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "label": { - "Bahasa": "Berat badan saat Lahir", - "English": "Baby's birth weight" - }, - "type": "integer", - "name": "berat_badan_saat_lahir", - "hint": { - "Bahasa": "Berat badan lahir bayi", - "English": "Baby's birth weight" - } - }, - { - "instance": { - "openmrs_entity_id": "ibuCaseId", - "openmrs_entity": "person_relationship" - }, - "type": "hidden", - "name": "ibu_entity_id" - } - ], - "name": "child_registration" - }, - { - "bind": { - "calculate": "(if(selected(${komplikasi},'distosia'), 'yes','no'))" - }, - "type": "calculate", - "name": "high_risk_post-partum_distosia", - "instance": { - "openmrs_entity_id": "141596AAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "Concept" - } - }, - { - "bind": { - "calculate": "(if(selected(${komplikasi},'hipertensi_dalam_kehamilan'), 'yes','no'))" - }, - "type": "calculate", - "name": "high_risk_post-partum_PIH", - "instance": { - "openmrs_entity_id": "47AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "Concept" - } - }, - { - "bind": { - "calculate": "(if(selected(${komplikasi},'perdarahan_post-partum'), 'yes','no'))" - }, - "type": "calculate", - "name": "high_risk_post-partum_Hemorrhage", - "instance": { - "openmrs_entity_id": "230AAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "Concept" - } - }, - { - "bind": { - "calculate": "(if(selected(${komplikasi},'Infeksi'), 'yes','no'))" - }, - "type": "calculate", - "name": "high_risk_post-partum_infection", - "instance": { - "openmrs_entity_id": "117069AAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "Concept" - } - }, - { - "bind": { - "calculate": "(if(selected(${komplikasi},'sepsis_maternal'), 'yes','no'))" - }, - "type": "calculate", - "name": "high_risk_post-partum_maternal_sepsis", - "instance": { - "openmrs_entity_id": "130AAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "Concept" - } - }, - { - "bind": { - "calculate": "(if(selected(${komplikasi},'preeklampsi'), 'yes','no'))" - }, - "type": "calculate", - "name": "high_risk_post-partum_Pre-eclampsia", - "instance": { - "openmrs_entity_id": "129251AAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "Concept" - } - }, - { - "bind": { - "calculate": "(if(selected(${komplikasi},'eklampsi'), 'yes','no'))" - }, - "type": "calculate", - "name": "high_risk_post-partum_Eclampsia", - "instance": { - "openmrs_entity_id": "118744AAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "Concept" - } - }, - { - "bind": { - "calculate": "(if(selected(${cara_persalinan_ibu},'vacum'), 'yes','no'))" - }, - "type": "calculate", - "name": "high_risk_post-partum_vacum", - "instance": { - "openmrs_entity_id": "159260AAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "Concept" - } - }, - { - "bind": { - "calculate": "(if(selected(${cara_persalinan_ibu},'forceps'), 'yes','no'))" - }, - "type": "calculate", - "name": "high_risk_post-partum_forceps", - "instance": { - "openmrs_entity": "Concept" - } - }, - { - "bind": { - "calculate": "(if(selected(${cara_persalinan_ibu},'sectio_caesaria'), 'yes','no'))" - }, - "type": "calculate", - "name": "high_risk_post-partum_Sectio_Caesaria", - "instance": { - "openmrs_entity_id": "159901AAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "Concept" - } - }, - { - "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/kartu_pnc_dokumentasi_persalinan/form.xml b/opensrp-bidan/src/main/assets/www/form/kartu_pnc_dokumentasi_persalinan/form.xml deleted file mode 100644 index dc0f969..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_pnc_dokumentasi_persalinan/form.xml +++ /dev/null @@ -1 +0,0 @@ - Dokumentasi PersalinanBahasa English Desa : - Dusun : - DOKUMENTASI PERSALINANDOCUMENTATION OF DELIVERY Usia kehamilan berdasarkan HPHT: mingguAge of pregnancy based on HPHT Keadaan IbuCondition of mother*Kondisi Ibu setelah proses persalinanMother's condition post-delivery Hidup (H)Alive (A)Mati (M)Dead (D)This field is required PERSALINANDELIVERYIsi Kala Persalinan dimulai dari kedatangan Ibu hamilFill in information of Labor Stage started from mother's arrival in health facility Kala I AktifActive Stage IKala IIStage IIKala III (Plasenta Lahir)Stage III placenta expulsionKala IV (2 Jam Postpartum)Stage IV (2 hours Postpartum) Tanggal / Kala I AktifDate/ Active Stage IMenunjukan Tanggal Kala I AktifIndicating date of active stage 1 Jam / Kala I AktifTime/ Active Stage IMenunjukkan Jam Kala I AktfiIndicating time of active stage 1 Tanggal / Kala IIDate/ Stage IIMenunjukkan Tanggal Terjadinya Kala II Pada IbuIndicating date of stage 2 Jam / Kala IITime/ Stage IIMenunjukkan Jam Terjadinya Kala II Pada IbuIndicating time of stage 2 PersentasiPresentationMenunjukkan Bagian Terendah Janin, yang Sudah Masuk Ke dalam PAPIndicating the lowest part of fetus that has gotten into mother's pelvic inlet...Puncak Kepala (PK)Belakang Kepala (BK)Lintang/Oblique (LG/OB)Menumbung (MG)Bokong (BK)Dahi (Dahi)Muka (MK)Kaki (KK)Rangkap (RK)Puncak Kepala (PK)Occiput Anterior PositionBelakang Kepala (BK)Occiput Posterior PositionLintang/Oblique (LG/OB)Transverse/Oblique presentationMenumbung (MG)Funiculi ProlapsusBokong (BK)Frank Breech PresentationDahi (Dahi)Brow PresentationMuka (MK)Face PresentationKaki (KK)Footling breech presentationRangkap (RK)Complete breech Tanggal / Plasenta LahirDate/ Placenta ExpulsionMenunjukkan Tanggal Plasenta LahirIndicating date when placenta is born Jam / Plasenta LahirTime/ Placenta ExpulsionMenunjukkan Jam Plasenta LahirIndicating time when placenta is born Perdarahan Kala IV 2 jam PostpartumStage IV hemorrhage 2 hours PostpartumMenunjukkan Volume / Jumlah Darah Setelah 2 Jam Persalinan (cc)Indicating volume/amount of bleeding 2 hours post-partum (cc)Nilai yang dimasukkan tidak memenuhi syarat, mohon periksa kembaliThe entered value doesn't meet the criteria, please check it again Tempat bersalinPlace of deliveryMenunjukkan tempat persalinan IbuIndicating mother's place of delivery...Rumah (RMH)Podok Bersalin desa ( Polindes)Pusat Kesehatan Masyarakat Pembantu (Pustu)Pusat Kesehatan Masyarakat (Puseksmas )Rumah Bersalin (RB)Rumah Sakit Ibu dan Anak (RSIA)Rumah Sakit (RS)Rumah Sakit Orang dengan HIV / AIDS (RS Odha)Rumah (RMH)HousePodok Bersalin desa ( Polindes)Community-based Health PostPusat Kesehatan Masyarakat Pembantu (Pustu)Sub-CenterPusat Kesehatan Masyarakat (Puseksmas )Primary Health CenterRumah Bersalin (RB)Maternity HospitalRumah Sakit Ibu dan Anak (RSIA)Maternal and Child HospitalRumah Sakit (RS)HospitalRumah Sakit Orang dengan HIV / AIDS (RS Odha)Hospital for HIV Patient PenolongBirth AttendantMenunjukkan penolong persalinan IbuIndicating mother's birth attendant...Keluarga (K)Dukun (D)Bidan (B)Dr.Umum (DU)Dr.Spesialis (DS)Lain-Lain (LN)Tidak Ada (TA)Keluarga (K)FamilyDukun (D)Traditional Birth AttendantBidan (B)MidwifeDr.Umum (DU)DoctorDr.Spesialis (DS)Obstectric and Gynecology Specialist (OGS)Lain-Lain (LN)OthersTidak Ada (TA)None Lain-lainOtherMenunjukkan penolong persalinan Ibu selain yang disebutkanIndicating other birth attendant Cara persalinan IbuWays of mother deliveryMenunjukkan cara persalinan Ibu (prosesnya normal atau tidak)Indicating mother's mode of delivery (whether normal or abnormal) Normal (N)Normal (N);Vacum (VC)Vacuum (VC)Forceps (FS)Forceps (FS)Sectio Caesaria (SC)Sectio Caesaria (SC) Manajemen Aktif Kala IIIActive Management of Stage IIIMenunjukkan tindakan yang dilakukan pada saat Kala III untuk mengeluarkan plasentaIndicating actions taken during management of stage 3 to remove placenta Injeksi Oksittosin (IO)Oxytocin injectionPeregangan Tali Pusat (PP)Controlled cord tractionMasase Fundus Uteri (MU)Fundal Massage PelayananServiceJenis pelayanan yang diberikan ke Ibu dari proses persalinan sampai 2 jam setelah persalinanType of services provided to mother since labor untuil 2 hours-post partum IMD < 1 Jam / > 1 Jam (IMD)Early initiation of breastfeedingMenggunakan Partograf (MP)Using partographCatat di Buku KIA (CK)Updated in Maternal and Child Health Booklet (pink book) Integrasi ProgramProgram IntegrationDiisi dengan nama obat ( ARV Profilaksis / Anti Malaria / Anti TB) yang diberikan bidan ke IbuFill in type of medicines (ARV prophylaxis / Anti Malaria / Anti-TB) that midwife gives to mother KomplikasiComplicationsJenis komplikasi yang terjadi pada Ibu setelah persalinanType of labor complication that occured Tidak ada komplikasi persalinanNo labor complicationDistosia (DS)DystociaHipertensi dalam Kehamilan (HDK)Hypertension in PregnancyPerdarahan Post-Partum (PPP)Postpartum HaemorrhageInfeksiInfectionSepsis maternalMaternal SepsisPre-eklampsiPre-eclampsiaEklampsiEclampsiaLain - Lain (LN)Others Lain-lainOtherJenis komplikasi yang terjadi pada Ibu setelah persalinan selain yang disebutkanOther type of labor complication that occured Penanganan diberikan?Give treatment?Apakah ada penanganan yang diberikan kepada pasien? Jika iya, sebutkan.Do you give any treatment to the patient? If yes, please describe. YaYesTidakNo Deskripsikan penanganan yang diberikanDescribe the treatment you give to the patient Dirujuk KeReferred toTempat Ibu dirujuk, jika Ibu mengalami komplikasi persalinanFacility where mother is referred to, if mother has labor complication...Pusat Kesehatan Masyarakat (Puskesmas )Rumah Bersalin (RB)Rumah Sakit Ibu dan Anak (RSIA)Rumah Sakit (RS)Lain-lain (LN)Tidak Diujuk (TD)Pusat Kesehatan Masyarakat (Puskesmas )Primary Health CenterRumah Bersalin (RB)Maternity HospitalRumah Sakit Ibu dan Anak (RSIA)Maternal and Child Hospital;Rumah Sakit (RS)HospitalLain-lain (LN)OthersTidak Diujuk (TD)None Lain-lainOtherTempat Ibu dirujuk, jika Ibu mengalami komplikasi persalinanOther facility where mother is referred to, if mother has labor complication Alamat BersalinAddress of delivery placeAlamat Ibu bersalinAddress of place of delivery Keadaan bayiCondition of baby*Kondisi bayi setelah proses persalinanBaby's condition post-delivery Hidup (H)Alive (A)Mati (M)Dead (D)This field is required Desa : -Nama BayiBaby's Name*Nama Bayi yang diberikan ImunisasiName of Baby Receiving ImmunizationThis field is requiredJenis KelaminGender*Jenis Kelamin Bayi/Balita Yang diberikan ImunisasiGender of Baby Receiving Immunization Laki-Laki (L)Male (M)Perempuan ( P)Female (F)This field is requiredTanggal lahirDOB*Tanggal lahir BayiBaby's date of birthThis field is requiredBerat badan saat LahirBaby's birth weightBerat badan lahir bayiBaby's birth weight \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kartu_pnc_dokumentasi_persalinan/form_definition.json b/opensrp-bidan/src/main/assets/www/form/kartu_pnc_dokumentasi_persalinan/form_definition.json deleted file mode 100644 index 43e0cde..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_pnc_dokumentasi_persalinan/form_definition.json +++ /dev/null @@ -1,287 +0,0 @@ -{ - "form_data_definition_version": "3", - "form": { - "bind_type": "ibu", - "ec_bind_type": "ec_ibu", - "default_bind_path": "/model/instance/dok_persalinan_reviewed/", - "fields": [ - { - "name": "id", - "shouldLoadValue": true - }, - { - "name": "start", - "bind": "/model/instance/dok_persalinan_reviewed/start" - }, - { - "name": "end", - "bind": "/model/instance/dok_persalinan_reviewed/end" - }, - { - "name": "cityVillage", - "bind": "/model/instance/dok_persalinan_reviewed/Village", - "shouldLoadValue": true - }, - { - "name": "existing_location", - "bind": "/model/instance/dok_persalinan_reviewed/existing_location", - "shouldLoadValue": true - }, - { - "name": "lokasiPeriksa", - "bind": "/model/instance/dok_persalinan_reviewed/Lokasi_periksa" - }, - { - "name": "tanggalHPHT", - "bind": "/model/instance/dok_persalinan_reviewed/hpht", - "source": "ibu.tanggalHPHT", - "shouldLoadValue": true - }, - { - "name": "usiaKehamilan", - "bind": "/model/instance/dok_persalinan_reviewed/usia_kehamilan" - }, - { - "name": "keadaanIbu", - "bind": "/model/instance/dok_persalinan_reviewed/keadaan_ibu" - }, - { - "name": "keadaanBayi", - "bind": "/model/instance/dok_persalinan_reviewed/keadaan_bayi", - "source": "ibu.anak.keadaanBayi" - }, - - { - "name": "persalinan", - "bind": "/model/instance/dok_persalinan_reviewed/persalinan" - }, - { - "name": "tanggalKalaIAktif", - "bind": "/model/instance/dok_persalinan_reviewed/tanggal__kala_i_aktif" - }, - { - "name": "jamKalaIAktif", - "bind": "/model/instance/dok_persalinan_reviewed/jam__kala_i_aktif" - }, - { - "name": "tanggalKalaII", - "bind": "/model/instance/dok_persalinan_reviewed/tanggal__kala_ii" - }, - { - "name": "jamKalaII", - "bind": "/model/instance/dok_persalinan_reviewed/jam__kala_ii" - }, - { - "name": "tanggalPlasentaLahir", - "bind": "/model/instance/dok_persalinan_reviewed/tanggal__plasenta_lahir" - }, - { - "name": "jamPlasentaLahir", - "bind": "/model/instance/dok_persalinan_reviewed/jam__plasenta_lahir" - }, - { - "name": "perdarahanKalaIV2JamPostpartum", - "bind": "/model/instance/dok_persalinan_reviewed/perdarahan_kala_iv_2_jam_postpartum" - }, - { - "name": "persentasi", - "bind": "/model/instance/dok_persalinan_reviewed/persentasi" - }, - { - "name": "tempatBersalin", - "bind": "/model/instance/dok_persalinan_reviewed/tempat" - }, - { - "name": "penolong", - "bind": "/model/instance/dok_persalinan_reviewed/penolong" - }, - { - "name": "penolongLainLain", - "bind": "/model/instance/dok_persalinan_reviewed/penolong_lain_lain" - }, - { - "name": "caraPersalinanIbu", - "bind": "/model/instance/dok_persalinan_reviewed/cara_persalinan_ibu" - }, - { - "name": "manajemenAktifKalaIII", - "bind": "/model/instance/dok_persalinan_reviewed/manajemen_aktif_kala_iii" - }, - { - "name": "pelayanan", - "bind": "/model/instance/dok_persalinan_reviewed/pelayanan" - }, - { - "name": "integrasiProgram", - "bind": "/model/instance/dok_persalinan_reviewed/integrasi_program" - }, - { - "name": "komplikasi", - "bind": "/model/instance/dok_persalinan_reviewed/komplikasi" - }, - { - "name": "komplikasiLainLain", - "bind": "/model/instance/dok_persalinan_reviewed/komplikasi_lain_lain" - }, - { - "name": "dirujukKe", - "bind": "/model/instance/dok_persalinan_reviewed/dirujuk_ke" - }, - { - "name": "dirujukKeLainLain", - "bind": "/model/instance/dok_persalinan_reviewed/dirujuk_kelain-lain" - }, - { - "name": "alamatBersalin", - "bind": "/model/instance/dok_persalinan_reviewed/alamat_bersalin" - }, - { - "name": "highRiskPostPartumDistosia", - "bind": "/model/instance/dok_persalinan_reviewed/high_risk_post-partum_distosia" - }, - { - "name": "highRiskPostPartumPIH", - "bind": "/model/instance/dok_persalinan_reviewed/high_risk_post-partum_PIH" - }, - { - "name": "highRiskPostPartumHemorrhage", - "bind": "/model/instance/dok_persalinan_reviewed/high_risk_post-partum_Hemorrhage" - }, - { - "name": "highRiskPostPartumInfection", - "bind": "/model/instance/dok_persalinan_reviewed/high_risk_post-partum_infection" - }, - { - "name": "highRiskPostPartumMaternalSepsis", - "bind": "/model/instance/dok_persalinan_reviewed/high_risk_post-partum_maternal_sepsis" - }, - { - "name": "highRiskPostPartumPreEclampsiaEclampsia", - "bind": "/model/instance/dok_persalinan_reviewed/high_risk_post-partum_Pre-eclampsia" - }, - { - "name": "highRiskPostPartumVacum", - "bind": "/model/instance/dok_persalinan_reviewed/high_risk_post-partum_Eclampsia" - }, - { - "name": "highRiskPostPartumForceps", - "bind": "/model/instance/dok_persalinan_reviewed/high_risk_post-partum_vacum" - }, - { - "name": "highRiskPostPartumSectioCaesaria", - "bind": "/model/instance/dok_persalinan_reviewed/high_risk_post-partum_forceps" - }, - { - "name": "highRiskPostPartumSectioCaesaria", - "bind": "/model/instance/dok_persalinan_reviewed/high_risk_post-partum_Sectio_Caesaria" - }, - { - "name": "treatment", - "bind": "/model/instance/dok_persalinan_reviewed/treatment" - }, - { - "name": "treatmentText", - "bind": "/model/instance/dok_persalinan_reviewed/treatment_text" - }, - { - "name": "kepemilikanBukuKia", - "bind": "/model/instance/dok_persalinan_reviewed/kepemilikan_buku_kia", - "source": "ibu.anak.kepemilikan_buku_kia" - }, - { - "name": "type", - "value": "pnc", - "source": "ibu.type" - }, - { - "name": "isOutOfArea", - "value": "false" - }, - { - "name": "isClosed", - "value": "false" - }, - { - "name": "isClosed", - "value": "false", - "source": "ibu.anak.isClosed" - }, - { - "name": "submissionDate", - "bind": "/model/instance/dok_persalinan_reviewed/today" - }, - { - "name": "referenceDate", - "bind": "/model/instance/dok_persalinan_reviewed/reference_date", - "source": "ibu.referenceDate" - } - ], - "sub_forms": [ - { - "name": "child_registration", - "bind_type": "anak", - "ec_bind_type": "ec_anak", - "default_bind_path": "/model/instance/dok_persalinan_reviewed/child_registration", - "fields": [ - { - "name": "id", - "shouldLoadValue": true - }, - { - "name": "relationalid", - "shouldLoadValue": true - }, - { - "name": "injectedBaseEntityId", - "shouldLoadValue": true - }, - { - "name": "ibu_entity_id", - "source": "kartu_ibu.id", - "shouldLoadValue": true - }, - { - "name": "noBayi", - "bind": "/model/instance/dok_persalinan_reviewed/child_registration/no_bayi" - }, - { - "name": "namaBayi", - "bind": "/model/instance/dok_persalinan_reviewed/child_registration/nama_bayi" - }, - { - "name": "tanggalLahirAnak", - "bind": "/model/instance/dok_persalinan_reviewed/child_registration/tanggal_lahir" - }, - { - "name": "jenisKelamin", - "bind": "/model/instance/dok_persalinan_reviewed/child_registration/jenis_kelamin" - }, - { - "name": "kepemilikanBukuKia", - "bind": "/model/instance/dok_persalinan_reviewed/child_registration/kepemilikan_buku_kia" - }, - { - "name": "desa_anak", - "bind": "/model/instance/dok_persalinan_reviewed/child_registration/desa_anak" - }, - { - "name": "child_existing_location", - "bind": "/model/instance/dok_persalinan_reviewed/child_registration/child_existing_location" - }, - { - "name": "beratLahir", - "bind": "/model/instance/dok_persalinan_reviewed/child_registration/berat_badan_saat_lahir" - }, - { - "name": "HighRiskChildLowBirthweght", - "bind": "/model/instance/dok_persalinan_reviewed/child_registration/high_risk_child_Low_Birthweght" - }, - { - "name": "HighRiskChildPreterm", - "bind": "/model/instance/dok_persalinan_reviewed/child_registration/High_Risk_Child_preterm" - } - ] - } - ] - } -} \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kartu_pnc_dokumentasi_persalinan/model.xml b/opensrp-bidan/src/main/assets/www/form/kartu_pnc_dokumentasi_persalinan/model.xml deleted file mode 100644 index 18358e2..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_pnc_dokumentasi_persalinan/model.xml +++ /dev/null @@ -1,81 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/opensrp-bidan/src/main/assets/www/form/kartu_pnc_edit/form.xml b/opensrp-bidan/src/main/assets/www/form/kartu_pnc_edit/form.xml deleted file mode 100644 index 1904177..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_pnc_edit/form.xml +++ /dev/null @@ -1,993 +0,0 @@ - - - - PNC Edit - - Bahasa - English - - - - - DOKUMENTASI PERSALINAN - - DOCUMENTATION OF DELIVERY - - - - - Nilai yang dimasukkan - tidak memenuhi syarat, mohon periksa kembali - - The entered value doesn't - meet the criteria, please check it again - - Usia kehamilan berdasarkan HPHT: - - minggu - - - Age of pregnancy based on HPHT - - - - - - - Keadaan Ibu - - - Condition of mother - - * - Kondisi Ibu setelah proses persalinan - - Mother's - condition post-delivery - - - - - - Hidup (H) - - Alive (A) - - - - - Mati (M) - - Dead (D) - - - - - - - - - Keadaan bayi - - Condition of baby - - * - Kondisi bayi setelah proses - persalinan - - Baby's - condition post-delivery - - - - - - Hidup (H) - - Alive (A) - - - - - Mati (M) - - Dead (D) - - - - - - - - - PERSALINAN - - - DELIVERY - - Isi Kala Persalinan dimulai dari - kedatangan Ibu hamil - - Fill in - information of Labor Stage started from mother's arrival in health facility - - - - - - Kala I Aktif - - Active Stage I - - - - - Kala II - - Stage II - - - - - Kala III (Bayi - Lahir/Plasenta Lahir) - - Stage III placenta - expulsion - - - - - Kala IV (2 Jam - Postpartum) - - Stage IV (2 hours - Postpartum) - - - - - - - Tanggal / Kala I Aktif - - Date/ Active Stage I - - Menunjukan Tanggal Kala I Aktif - - - Indicating date of active stage 1 - - - - - Jam / Kala I Aktif - - - Time/ Active Stage I - - - Menunjukkan Jam Kala I Aktfi - - Indicating - time of active stage 1 - - - - - Tanggal / Kala II - - - Date/ Stage II - - - Menunjukkan Tanggal Terjadinya Kala II Pada Ibu - - Indicating - date of stage 2 - - - - - Jam / Kala II - - Time/ - Stage II - - - Menunjukkan Jam Terjadinya Kala II Pada Ibu - - Indicating time - of stage 2 - - - - - Tanggal / Plasenta Lahir - - Date/ Placenta Expulsion - - Menunjukkan Tanggal Plasenta - Lahir - - - Indicating date when placenta is born - - - - - Jam / Plasenta Lahir - - - Time/ Placenta Expulsion - - Menunjukkan Jam Plasenta Lahir - - - Indicating time when placenta is born - - - - - Nilai - yang dimasukkan tidak memenuhi syarat, mohon periksa kembali - - The - entered value doesn't meet the criteria, please check it again - - Perdarahan Kala IV 2 - jam Postpartum - - Stage IV hemorrhage - 2 hours Postpartum - - Menunjukkan Volume / - Jumlah Darah Setelah 2 Jam Persalinan (cc) - - Indicating - volume/amount of bleeding 2 hours post-partum (cc) - - - - - Persentasi - - - Presentation - - - Menunjukkan Bagian Terendah Janin, yang Sudah Masuk Ke dalam PAP - - Indicating the - lowest part of fetus that has gotten into mother's pelvic inlet - - - ... - Puncak Kepala (PK) - Belakang Kepala (BK) - Lintang/Oblique (LG/OB) - Menumbung (MG) - Bokong (BK) - Dahi (Dahi) - Muka (MK) - Kaki (KK) - Rangkap (RK) - Belum teraba - - - Puncak Kepala (PK) - Head crown - Belakang Kepala (BK) - Oociput - Lintang/Oblique (LG/OB) - Oblique - Menumbung (MG) - Funiculi Prolapsus - Bokong (BK) - Buttock - Dahi (Dahi) - Forehead - Muka (MK) - Face - Kaki (KK) - Feet - Rangkap (RK) - Complete breech - Belum teraba - Not palpable - - - - - Tempat bersalin - - Place of - delivery - - Menunjukkan - tempat persalinan Ibu - - Indicating mother's - place of delivery - - - ... - Rumah (RMH) - Podok Bersalin desa ( Polindes) - Pusat Kesehatan Masyarakat Pembantu - (Pustu) - - Pusat Kesehatan Masyarakat (Puseksmas ) - - Rumah Bersalin (RB) - Rumah Sakit Ibu dan Anak (RSIA) - Rumah Sakit (RS) - Rumah Sakit Orang dengan HIV / AIDS - (RS Odha) - - - - Rumah (RMH) - House - Podok Bersalin desa ( - Polindes) - - Community-based Health Post - - Pusat - Kesehatan Masyarakat Pembantu (Pustu) - - Sub-Center - - Pusat Kesehatan - Masyarakat (Puseksmas ) - - Primary Health Center - - Rumah Bersalin (RB) - Maternity Hospital - Rumah Sakit Ibu dan - Anak (RSIA) - - Maternal and Child - Hospital - - Rumah Sakit (RS) - Hospital - Rumah Sakit - Orang dengan HIV / AIDS (RS Odha) - - Hospital which - also occupied by HIV/AIDS patiets - - - - - - Penolong - - Birth - Attendant - - - Menunjukkan penolong persalinan Ibu - - Indicating mother's - birth attendant - - - ... - Keluarga (K) - Dukun (D) - Bidan (B) - Dr.Umum (DU) - Dr.Spesialis (DS) - Lain-Lain (LN) - Tidak Ada (TA) - - - Keluarga (K) - Family - Dukun (D) - Traditional Birth Attendant - Bidan (B) - Midwife - Dr.Umum (DU) - Doctor - Dr.Spesialis (DS) - Medical Specialist - Lain-Lain (LN) - Others - Tidak Ada (TA) - None - - - - Lain-lain - - - Other - - Menunjukkan penolong persalinan Ibu - selain yang disebutkan - - - Indicating other birth attendant - - - - - - - Cara persalinan Ibu - - Ways of mother delivery - - Menunjukkan cara persalinan - Ibu (prosesnya normal atau tidak) - - - Indicating mother's mode of delivery (whether normal or abnormal) - - - - - - Normal (N) - - Normal (N); - - - - - Vacum (VC) - - Vacuum (VC) - - - - - Forceps (FS) - - Forceps (FS) - - - - - Sectio - Caesaria (SC) - - Sectio - Caesaria (SC) - - - - - - - - - Manajemen Aktif Kala - III - - Active Management of - Stage III - - Menunjukkan tindakan - yang dilakukan pada saat Kala III untuk mengeluarkan plasenta - - Indicating actions taken - during management of stage 3 to remove placenta - - - - - - - Injeksi Oksittosin (IO) - - - Oxytocin injection - - - - - - Peregangan Tali Pusat (PP) - - - Umbilicus dilatation - - - - - - Masase Fundus Uteri (MU) - - - Uterine fundus effleurage - - - - - - - - - Pelayanan - - - Service - - - Jenis pelayanan yang diberikan ke Ibu dari proses persalinan sampai 2 jam - setelah persalinan - - Type of - services provided to mother since labor untuil 2 hours-post partum - - - - - - IMD < 1 Jam - / > 1 Jam (IMD) - - Early - initiation of breastfeeding - - - - - Menggunakan - Partograf (MP) - - Using - partograph - - - - - Catat di Buku - KIA (CK) - - Updated in - Maternal and Child Health Booklet (pink book) - - - - - - - Integrasi Program - - - Program Integration - - - Diisi dengan nama obat ( ARV Profilaksis / Anti Malaria / Anti TB) yang diberikan bidan - ke Ibu - - Fill in - type of medicines (ARV prophylaxis / Anti Malaria / Anti-TB) that midwife gives to - mother - - - - - - - Komplikasi - - - Complications - - Jenis komplikasi yang terjadi pada Ibu - setelah persalinan - - Type of - labor complication that occured - - - - - - Tidak ada - komplikasi persalinan - - No labor - complication - - - - - Distosia (DS) - - Dystocia - - - - - - Hipertensi dalam Kehamilan (HDK) - - - Hypertension in Pregnancy - - - - - Perdarahan - Post-Partum (PPP) - - Postpartum - Haemorrhage - - - - - Infeksi - - Infection - - - - - Sepsis maternal - - Maternal Sepsis - - - - - - Pre-eklampsi/eklampsi - - - Pre-eclampsia/eclampsia - - - - - Lain - Lain (LN) - - Others - - - - - - - Lain-lain - - - Other - - Jenis komplikasi yang terjadi pada - Ibu setelah persalinan selain yang disebutkan - - Other - type of labor complication that occured - - - - - Dirujuk Ke - - Referred - to - - Tempat - Ibu dirujuk, jika Ibu mengalami komplikasi persalinan - - Facility where - mother is referred to, if mother has labor complication - - - ... - Pusat Kesehatan Masyarakat (Puskesmas ) - - Rumah Bersalin (RB) - Rumah Sakit Ibu dan Anak (RSIA) - Rumah Sakit (RS) - Lain-lain (LN) - Tidak Diujuk (TD) - - - Pusat Kesehatan - Masyarakat (Puskesmas ) - - Primary Health Center - - Rumah Bersalin (RB) - Maternity Hospital - Rumah Sakit Ibu dan - Anak (RSIA) - - Maternal and Child - Hospital; - - Rumah Sakit (RS) - Hospital - Lain-lain (LN) - Others - Tidak Diujuk (TD) - None - - - - Lain-lain - - Other - - Tempat Ibu dirujuk, jika Ibu - mengalami komplikasi persalinan - - Other - facility where mother is referred to, if mother has labor complication - - - - - Alamat Bersalin - - - Address of delivery place - - - Alamat Ibu bersalin - - Address of - place of delivery - - - - - Register Bayi - - Baby's Registration - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kartu_pnc_edit/form_definition.json b/opensrp-bidan/src/main/assets/www/form/kartu_pnc_edit/form_definition.json deleted file mode 100644 index d71b5cb..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_pnc_edit/form_definition.json +++ /dev/null @@ -1,157 +0,0 @@ -{ - "form_data_definition_version": "1", - "form": { - "bind_type": "ibu", - "default_bind_path": "/model/instance/PNC_edit/", - "fields": [ - { - "name": "id", - "shouldLoadValue": true - }, - { - "name": "childId", - "shouldLoadValue": true, - "source": "ibu.anak.id" - }, - { - "name": "hpht", - "bind": "/model/instance/PNC_edit/hpht", - "source": "ibu.tanggalHPHT", - "shouldLoadValue": true - }, - { - "name": "usiaKehamilan", - "bind": "/model/instance/PNC_edit/usia_kehamilan", - "shouldLoadValue": true - }, - { - "name": "keadaanIbu", - "bind": "/model/instance/PNC_edit/keadaan_ibu", - "shouldLoadValue": true - }, - { - "name": "keadaanBayi", - "bind": "/model/instance/PNC_edit/keadaan_bayi", - "shouldLoadValue": true - }, - { - "name": "persalinan", - "bind": "/model/instance/PNC_edit/persalinan", - "shouldLoadValue": true - }, - { - "name": "tanggalKalaIAktif", - "bind": "/model/instance/PNC_edit/tanggal__kala_i_aktif", - "shouldLoadValue": true - }, - { - "name": "jamKalaIAktif", - "bind": "/model/instance/PNC_edit/jam__kala_i_aktif", - "shouldLoadValue": true - }, - { - "name": "tanggalKalaII", - "bind": "/model/instance/PNC_edit/tanggal__kala_ii", - "shouldLoadValue": true - }, - { - "name": "jamKalaII", - "bind": "/model/instance/PNC_edit/jam__kala_ii", - "shouldLoadValue": true - }, - { - "name": "tanggalPlasentaLahir", - "bind": "/model/instance/PNC_edit/tanggal__plasenta_lahir", - "shouldLoadValue": true - }, - { - "name": "jamPlasentaLahir", - "bind": "/model/instance/PNC_edit/jam__plasenta_lahir", - "shouldLoadValue": true - }, - { - "name": "perdarahanKalaIV2JamPostpartum", - "bind": "/model/instance/PNC_edit/perdarahan_kala_iv_2_jam_postpartum", - "shouldLoadValue": true - }, - { - "name": "persentasi", - "bind": "/model/instance/PNC_edit/persentasi", - "shouldLoadValue": true - }, - { - "name": "tempatBersalin", - "bind": "/model/instance/PNC_edit/tempat_bersalin", - "shouldLoadValue": true - }, - { - "name": "penolong", - "bind": "/model/instance/PNC_edit/penolong", - "shouldLoadValue": true - }, - { - "name": "penolongLainLain", - "bind": "/model/instance/PNC_edit/penolonglain-lain_ln", - "shouldLoadValue": true - }, - { - "name": "caraPersalinanIbu", - "bind": "/model/instance/PNC_edit/cara_persalinan_ibu", - "shouldLoadValue": true - }, - { - "name": "manajemenAktifKalaIII", - "bind": "/model/instance/PNC_edit/manajemen_aktif_kala_iii", - "shouldLoadValue": true - }, - { - "name": "pelayanan", - "bind": "/model/instance/PNC_edit/pelayanan", - "shouldLoadValue": true - }, - { - "name": "integrasiProgram", - "bind": "/model/instance/PNC_edit/integrasi_program", - "shouldLoadValue": true - }, - { - "name": "komplikasi", - "bind": "/model/instance/PNC_edit/komplikasi", - "shouldLoadValue": true - }, - { - "name": "komplikasiLainLain", - "bind": "/model/instance/PNC_edit/komplikasi_lain_lain", - "shouldLoadValue": true - }, - { - "name": "dirujukKe", - "bind": "/model/instance/PNC_edit/dirujuk_ke", - "shouldLoadValue": true - }, - { - "name": "dirujukKeLainLain", - "bind": "/model/instance/PNC_edit/dirujuk_kelain-lain", - "shouldLoadValue": true - }, - { - "name": "alamatBersalin", - "bind": "/model/instance/PNC_edit/alamat_bersalin", - "shouldLoadValue": true - }, - { - "name": "kepemilikanBukuKia", - "bind": "/model/instance/PNC_edit/kepemilikan_buku_kia", - "shouldLoadValue": true - }, - { - "name": "submissionDate", - "bind": "/model/instance/PNC_edit/today" - }, - { - "name": "registrationDate", - "bind": "/model/instance/PNC_edit/reg_date" - } - ] - } -} \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kartu_pnc_edit/model.xml b/opensrp-bidan/src/main/assets/www/form/kartu_pnc_edit/model.xml deleted file mode 100644 index 9340d80..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_pnc_edit/model.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kartu_pnc_pospartum_kb/form.json b/opensrp-bidan/src/main/assets/www/form/kartu_pnc_pospartum_kb/form.json deleted file mode 100644 index 165fbf2..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_pnc_pospartum_kb/form.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"postpartum_kb_reviewed","title":"Post-partum KB","sms_keyword":"post-partum_kb","default_language":"Bahasa","instance":{"encounter_type":"Post-partum KB"},"version":"201610120905","id_string":"post-partum_kb","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":"person_address","openmrs_entity_id":"stateProvince","openmrs_entity_parent":"usual_residence"}},{"bind":{"calculate":"${District}"},"type":"calculate","name":"kabupaten","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"countyDistrict","openmrs_entity_parent":"usual_residence"}},{"bind":{"calculate":"${Village}"},"type":"calculate","name":"desa","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"cityVillage","openmrs_entity_parent":"usual_residence"}},{"bind":{"calculate":"${Sub-village}"},"type":"calculate","name":"dusun","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"address1","openmrs_entity_parent":"usual_residence"}},{"bind":{"calculate":"${Sub-district}"},"type":"calculate","name":"kecamatan","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"address2","openmrs_entity_parent":"usual_residence"}},{"control":{"appearance":"minimal"},"name":"metode_kontrasepsi","hint":{"Bahasa":"Jenis metode kontrasepsi yang ada","English":"Type of contraceptive method used"},"label":{"Bahasa":"Metode Kontrasepsi","English":"Contraception Method"},"instance":{"openmrs_entity_id":"374AAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"select one","children":[{"instance":{"openmrs_code":"136163AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"mal","label":{"Bahasa":"MAL","English":"Lactational Amenorrhea Method"}},{"instance":{"openmrs_code":"190AAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"kondom","label":{"Bahasa":"Kondom","English":"Condom"}},{"instance":{"openmrs_code":"780AAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pil","label":{"Bahasa":"PIL","English":"Pil"}},{"instance":{"openmrs_code":"5279AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"suntik","label":{"Bahasa":"Suntik","English":"Injection"}},{"instance":{"openmrs_code":"5275AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"akdr","label":{"Bahasa":"AKDR (IUD)","English":"IUD"}},{"instance":{"openmrs_code":"159589AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"implant","label":{"Bahasa":"Implant","English":"Implant"}},{"instance":{"openmrs_code":"5276AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"mow","label":{"Bahasa":"MOW","English":"Tubectomy"}},{"instance":{"openmrs_code":"1489AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"mop","label":{"Bahasa":"MOP","English":"Vasectomy"}}]},{"instance":{"openmrs_entity_id":"163042AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"label":{"Bahasa":"Rencana","English":"Plan"},"type":"text","name":"rencana","hint":{"Bahasa":"Rencana pemakaian alat kontrasepsi yang akan digunakan","English":"Length period planned of contraceptive use"}},{"name":"pelaksanaan_kb","hint":{"Bahasa":"Pilih saat pelaksanaan KB ( < 42 hari atau > 42 hari)","English":"Select the time of contraception use (< 42 days or > 42 days)"},"label":{"Bahasa":"Pelaksanaan KB","English":"Contraception Use"},"instance":{"openmrs_entity_id":"5271AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"kurang_dari_42_hari","label":{"Bahasa":"< 42 hari","English":"< 42 days"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"lebih_dari_42_hari","label":{"Bahasa":"> 42 hari","English":"> 42 days"}}]},{"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/kartu_pnc_pospartum_kb/form.xml b/opensrp-bidan/src/main/assets/www/form/kartu_pnc_pospartum_kb/form.xml deleted file mode 100644 index bce92ed..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_pnc_pospartum_kb/form.xml +++ /dev/null @@ -1,15 +0,0 @@ - - Post-partum KBBahasa English - - - Desa : - - - Dusun : - - - Metode KontrasepsiContraception MethodJenis metode kontrasepsi yang adaType of contraceptive method used...MALKondomPILSuntikAKDR (IUD)ImplantMOWMOPMALLactational Amenorrhea MethodKondomCondomPILPilSuntikInjectionAKDR (IUD)IUDImplantImplantMOWTubectomyMOPVasectomy - - RencanaPlanRencana pemakaian alat kontrasepsi yang akan digunakanLength period planned of contraceptive use - Pelaksanaan KBContraception UsePilih saat pelaksanaan KB ( < 42 hari atau > 42 hari)Select the time of contraception use (< 42 days or > 42 days) - < 42 hari< 42 days> 42 hari> 42 days - - \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kartu_pnc_pospartum_kb/form_definition.json b/opensrp-bidan/src/main/assets/www/form/kartu_pnc_pospartum_kb/form_definition.json deleted file mode 100644 index 32bdd13..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_pnc_pospartum_kb/form_definition.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "form_data_definition_version": "3", - "form": { - "bind_type": "ibu", - "ec_bind_type": "ec_ibu", - "default_bind_path": "/model/instance/postpartum_kb_reviewed/", - "fields": [ - { - "name": "id", - "shouldLoadValue": true - }, - { - "name": "existing_location", - "bind": "/model/instance/postpartum_kb_reviewed/existing_location", - "shouldLoadValue": true - }, - { - "name": "metodeKontrasepsi", - "bind": "/model/instance/postpartum_kb_reviewed/metode_kontrasepsi" - }, - { - "name": "rencana", - "bind": "/model/instance/postpartum_kb_reviewed/rencana" - }, - { - "name": "pelaksanaank42hari", - "bind": "/model/instance/postpartum_kb_reviewed/pelaksanaan_bawah_42_hari" - }, - { - "name": "pelaksanaanl42hari", - "bind": "/model/instance/postpartum_kb_reviewed/pelaksanaan_atas_42_hari" - }, - { - "name": "submissionDate", - "bind": "/model/instance/postpartum_kb_reviewed/today" - }, - { - "name": "registrationDate", - "bind": "/model/instance/postpartum_kb_reviewed/reg_date" - } - ] - } -} diff --git a/opensrp-bidan/src/main/assets/www/form/kartu_pnc_pospartum_kb/model.xml b/opensrp-bidan/src/main/assets/www/form/kartu_pnc_pospartum_kb/model.xml deleted file mode 100644 index fdb582b..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_pnc_pospartum_kb/model.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kartu_pnc_regitration_oa/form.xml b/opensrp-bidan/src/main/assets/www/form/kartu_pnc_regitration_oa/form.xml deleted file mode 100644 index cdd8769..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_pnc_regitration_oa/form.xml +++ /dev/null @@ -1,1761 +0,0 @@ - - - - REGISTER PNC OA - - Bahasa - English - - - - - - Lokasi Entry - - * - - Location of Service - - - - - - Posyandu - - Posyandu - - - - - Polindes - - Polindes - - - - - - - Unique ID: - - - Unique ID: - - - - - - - NIK - - Mother's - National ID - - - - - - - Puskesmas - - - Primary Health Center (PHC) - - - - - - Sengkol - - Sengkol - - - - - Janapria - - Janapria - - - - - - - No. Ibu - - - Mother's Number - - - - - Nama lengkap - - Full name - - * - Nama lengkap Ibu - - - Mother's full name - - - - - Nama suami - - Name of husband - - * - Nama lengkap suami - - - Husband's full name - - - - - Tanggal lahir - - DOB - - * - Tanggal lahir Ibu - - Mother's date of birth - - - - - Umur: - - - Age - - - - - Alamat domisili - - Address - - Alamat tempat tinggal - (rumah) Ibu - - Mother's address - - - - - Pendidikan - - Education - - Pendidikan Terakhir Ibu - - - Mother's highest education - - - ... - Sekolah Dasar (SD) - Sekolah Menengah Pertama (SMP) - Sekolah Menengah Atas (SMA) - Perguruan Tinggi - Tidak sekolah - - - Sekolah Dasar (SD) - Primary School - Sekolah Menengah - Pertama (SMP) - - Junior High School - Sekolah Menengah Atas - (SMA) - - Senior High School - Perguruan Tinggi - College - Tidak sekolah - No Formal Education - - - - Agama - - - Religion - - Agama Ibu - - Mother's - religion - - - ... - Islam - Hindu - Kristen - Katolik - Budha - Lainnya - - - Islam - Islam (I) - Hindu - Hindu (H); - Kristen - Christian (K) - Katolik - Catholic - Budha - Budha (B) - Lainnya - Other - - - - Pekerjaan - - Occupation - - Pekerjaan Ibu - - - Mother's occupation - - - ... - Ibu rumah tangga - Petani - Nelayan - Pedagang - PNS - Swasta - - - Ibu rumah tangga - Housewife - Petani - farmer - Nelayan - fisherman - Pedagang - merchant - PNS - civil servant - Swasta - private empoyees - - - - - - Gakin/ Tidak - - Poor Family/not - - Apakah Ibu termasuk - keluarga miskin atau tidak - - Does mother belong to - poor family or not? - - - - - - Ya - - Yes - - - - - Tidak - - No - - - - - - - Posyandu - - Health Post - - * - Nama Posyandu tempat Ibu menerima - pelayanan kesehatan - - Name - of Health Post where mother receives health care - - - - - Nama Kader - - Name of Cadre - - Nama kader Posyandu yang memberi - Ibu pelayanan kesehatan - - Name - of community health worker that gives health service - - - - - Nama Dukun - - Name of Traditional Birth - Attendant - - Nama dukun yang menemani Ibu pada - saat menerima pelayanan kesehatan - - Name - of traditional birth attendant that accompany mother during health care service - - - - - Asuransi Jiwa - - Insurance - - Jenis asuransi yang dimiliki - Ibu - - - Type insurance that mother has - - - ... - Jaminan Kesehatan Masyarakat (Jamkesmas) - - Jaminan Sosial dan Ketenagakerjaan (Jamsostek) - Jaminan Kesehatan Daerah (Jamkesda) - Asuransi Kesehatan (Askes) - Jaminan Persalinan (Jampersal) - Tidak memiliki asuransi/pembiayaan - - - Jaminan Kesehatan - Masyarakat (Jamkesmas) - - National Health - Insurance for the Poor and Near Poor; - - Jaminan Sosial dan Ketenagakerjaan - (Jamsostek) - - Social Insurance for Private Sector - Workers; - - Jaminan Kesehatan - Daerah (Jamkesda) - - Regional Health Insurance - for the Poor and Near Poor; - - Asuransi Kesehatan (Askes) - - Health Insurance for Civil - Servants and Retired Armed Forces Personnel - - Jaminan Persalinan - (Jampersal) - - Health Insurance for Pregnant - Women and Newborns - - Tidak memiliki - asuransi/pembiayaan - - No Insurance - - - - Golongan Darah - - Blood Type - - * - Menunjukan golongan darah Ibu - - - Mother's blood type - - - ... - A (A) - B (B) - AB (AB) - O (O) - Belum diketahui - - - A (A) - A - B (B) - B - AB (AB) - AB - O (O) - O - Belum diketahui - Unknown - - - - Nomer teelpon - tidak boleh lebih dari 12 digit - - Contact number - should be no more than 12 digits - - Nomor Telpon/Hp - - Landline/Cell Phone Number - - Nomor telpon/Hp yang - dimiliki oleh Ibu atau No telpon Keluarga - - Mother's contact number - - - - - - - Hasil pptest - - Pregnancy Test - - - - - - Positif - - positive - - - - - Negatif - - negative - - - - - - - DOKUMENTASI - PERSALINAN - - - - - - - - Nilai yang dimasukkan tidak - memenuhi syarat, mohon periksa kembali - - The entered value doesn't - meet the criteria, please check it again - - HPHT - - - - - - - - - Nilai yang - dimasukkan tidak memenuhi syarat, mohon periksa kembali - - The entered - value doesn't meet the criteria, please check it again - - Usia kehamilan - berdasarkan HPHT: - - minggu - - Age of pregnancy based - on HPHT - - - - - - - Keadaan Ibu - - Condition of mother - - * - Kondisi Ibu setelah - proses persalinan - - Mother's condition - post-delivery - - - - - - Hidup (H) - - Alive (A) - - - - - Mati (M) - - Dead (D) - - - - - - - - - Keadaan bayi - - Condition of baby - - * - Kondisi bayi setelah - proses persalinan - - Baby's condition - post-delivery - - - - - - Hidup (H) - - Alive (A) - - - - - Mati (M) - - Dead (D) - - - - - - - - - PERSALINAN - - DELIVERY - - Isi Kala Persalinan - dimulai dari kedatangan Ibu hamil - - Fill in information of - Labor Stage started from mother's arrival in health facility - - - - - - Kala I - Aktif - - Active - Stage I - - - - - Kala II - - Stage II - - - - - Kala III - (Bayi Lahir/Plasenta Lahir) - - Stage III - placenta expulsion - - - - - Kala IV (2 - Jam Postpartum) - - Stage IV - (2 hours Postpartum) - - - - - - - Tanggal / Kala I - Aktif - - Date/ Active Stage I - - Menunjukan Tanggal - Kala I Aktif - - Indicating date of - active stage 1 - - - - - Jam / Kala I Aktif - - Time/ Active Stage I - - Menunjukkan Jam Kala I - Aktfi - - Indicating time of active - stage 1 - - - - - Tanggal / Kala II - - Date/ Stage II - - Menunjukkan Tanggal - Terjadinya Kala II Pada Ibu - - Indicating date of stage 2 - - - - - Jam / Kala II - - Time/ Stage II - - Menunjukkan Jam Terjadinya Kala - II Pada Ibu - - - Indicating time of stage 2 - - - - - Tanggal / Plasenta - Lahir - - Date/ Placenta - Expulsion - - Menunjukkan Tanggal - Plasenta Lahir - - Indicating date when - placenta is born - - - - - Jam / Plasenta Lahir - - Time/ Placenta - Expulsion - - Menunjukkan Jam Plasenta - Lahir - - Indicating time when - placenta is born - - - - - - Nilai yang dimasukkan tidak memenuhi syarat, mohon periksa kembali - - - The entered value doesn't meet the criteria, please check it again - - - Perdarahan Kala IV 2 jam Postpartum - - Stage - IV hemorrhage 2 hours Postpartum - - - Menunjukkan Volume / Jumlah Darah Setelah 2 Jam Persalinan (cc) - - - Indicating volume/amount of bleeding 2 hours post-partum (cc) - - - - - Persentasi - - Presentation - - Menunjukkan Bagian Terendah - Janin, yang Sudah Masuk Ke dalam PAP - - - Indicating the lowest part of fetus that has gotten into mother's pelvic inlet - - - ... - Puncak Kepala (PK) - Belakang Kepala (BK) - Lintang/Oblique (LG/OB) - Menumbung (MG) - Bokong (BK) - Dahi (Dahi) - Muka (MK) - Kaki (KK) - Rangkap (RK) - Belum teraba - - - Puncak Kepala (PK) - Head crown - Belakang Kepala (BK) - Oociput - Lintang/Oblique (LG/OB) - Oblique - Menumbung (MG) - Funiculi Prolapsus - Bokong (BK) - Buttock - Dahi (Dahi) - Forehead - Muka (MK) - Face - Kaki (KK) - Feet - Rangkap (RK) - Complete breech - Belum teraba - Not palpable - - - - Tempat bersalin - - - Place of delivery - - Menunjukkan B01105 persalinan Ibu - - - Indicating mother's place of delivery - - - ... - Rumah (RMH) - Podok Bersalin desa ( Polindes) - Pusat Kesehatan Masyarakat Pembantu - (Pustu) - - Pusat Kesehatan Masyarakat (Puseksmas ) - - Rumah Bersalin (RB) - Rumah Sakit Ibu dan Anak (RSIA) - Rumah Sakit (RS) - Rumah Sakit Orang dengan HIV / AIDS - (RS Odha) - - - - Rumah (RMH) - House - Podok Bersalin desa ( - Polindes) - - Community-based Health Post - - Pusat - Kesehatan Masyarakat Pembantu (Pustu) - - Sub-Center - - Pusat Kesehatan - Masyarakat (Puseksmas ) - - Primary Health Center - - Rumah Bersalin (RB) - Maternity Hospital - Rumah Sakit Ibu dan - Anak (RSIA) - - Maternal and Child - Hospital - - Rumah Sakit (RS) - Hospital - Rumah Sakit - Orang dengan HIV / AIDS (RS Odha) - - Hospital which - also occupied by HIV/AIDS patiets - - - - - Penolong - - Birth Attendant - - Menunjukkan penolong persalinan Ibu - - - Indicating mother's birth attendant - - - ... - Keluarga (K) - Dukun (D) - Bidan (B) - Dr.Umum (DU) - Dr.Spesialis (DS) - Lain-Lain (LN) - Tidak Ada (TA) - - - Keluarga (K) - Family - Dukun (D) - Traditional Birth Attendant - Bidan (B) - Midwife - Dr.Umum (DU) - Doctor - Dr.Spesialis (DS) - Medical Specialist - Lain-Lain (LN) - Others - Tidak Ada (TA) - None - - - - Lain-lain - - Other - - Menunjukkan penolong - persalinan Ibu selain yang disebutkan - - Indicating other birth - attendant - - - - - - - Cara persalinan - Ibu - - Ways of mother - delivery - - Menunjukkan cara - persalinan Ibu (prosesnya normal atau tidak) - - Indicating - mother's mode of delivery (whether normal or abnormal) - - - - - - - Normal (N) - - - Normal (N); - - - - - Vacum - (VC) - - - Vacuum (VC) - - - - - - Forceps (FS) - - - Forceps (FS) - - - - - - Sectio Caesaria (SC) - - - Sectio Caesaria (SC) - - - - - - - - - Manajemen - Aktif Kala III - - Active - Management of Stage III - - Menunjukkan - tindakan yang dilakukan pada saat Kala III untuk mengeluarkan plasenta - - Indicating - actions taken during management of stage 3 to remove placenta - - - - - - - Injeksi Oksittosin (IO) - - - Oxytocin injection - - - - - - Peregangan Tali Pusat (PP) - - - Umbilicus dilatation - - - - - - Masase Fundus Uteri (MU) - - - Uterine fundus effleurage - - - - - - - - - Pelayanan - - Service - - Jenis pelayanan yang - diberikan ke Ibu dari proses persalinan sampai 2 jam setelah persalinan - - Type of services provided - to mother since labor untuil 2 hours-post partum - - - - - - - IMD < 1 Jam / > 1 Jam (IMD) - - - Early initiation of breastfeeding - - - - - - Menggunakan Partograf (MP) - - - Using partograph - - - - - - Catat di Buku KIA (CK) - - - Updated in Maternal and Child Health Booklet (pink book) - - - - - - - Integrasi Program - - Program Integration - - Diisi dengan nama obat ( - ARV Profilaksis / Anti Malaria / Anti TB) yang diberikan bidan ke Ibu - - Fill in type of medicines - (ARV prophylaxis / Anti Malaria / Anti-TB) that midwife gives to mother - - - - - - - Komplikasi - - Complications - - Jenis komplikasi yang - terjadi pada Ibu setelah persalinan - - Type of labor - complication that occured - - - - - - - Tidak ada komplikasi persalinan - - - No labor complication - - - - - Distosia - (DS) - - Dystocia - - - - - - Hipertensi dalam Kehamilan (HDK) - - - Hypertension in Pregnancy - - - - - - Perdarahan Post-Partum (PPP) - - - Postpartum Haemorrhage - - - - - Infeksi - - Infection - - - - - - Sepsis maternal - - - Maternal Sepsis - - - - - - Pre-eklampsi/eklampsi - - - Pre-eclampsia/eclampsia - - - - - Lain - - Lain (LN) - - Others - - - - - - - Lain-lain - - Other - - Jenis komplikasi yang - terjadi pada Ibu setelah persalinan selain yang disebutkan - - Other type of labor - complication that occured - - - - - Dirujuk Ke - - Referred to - - Tempat Ibu dirujuk, jika Ibu - mengalami komplikasi persalinan - - - Facility where mother is referred to, if mother has labor complication - - - ... - Pusat Kesehatan Masyarakat (Puskesmas ) - - Rumah Bersalin (RB) - Rumah Sakit Ibu dan Anak (RSIA) - Rumah Sakit (RS) - Lain-lain (LN) - Tidak Diujuk (TD) - - - Pusat Kesehatan - Masyarakat (Puskesmas ) - - Primary Health Center - - Rumah Bersalin (RB) - Maternity Hospital - Rumah Sakit Ibu dan - Anak (RSIA) - - Maternal and Child - Hospital; - - Rumah Sakit (RS) - Hospital - Lain-lain (LN) - Others - Tidak Diujuk (TD) - None - - - - Lain-lain - - Other - - Tempat Ibu dirujuk, - jika Ibu mengalami komplikasi persalinan - - Other facility where - mother is referred to, if mother has labor complication - - - - - Alamat Bersalin - - Address of delivery place - - Alamat B01105 Ibu bersalin - - Address of place of delivery - - - - - Register Bayi - - Baby's Registration - - - - - No. bayi - - Baby's ID Number - - Nomor identitas bayi - - Baby's - ID number - - - - - Nama Bayi - - Name of baby - - * - Jika bayi belum di beri nama - gunakan Bayi 'nama ibu'. misalnya nama ibu: Ratna maka isi dengan Bayi Ratna - - If - baby doesn't have a name yet, fill in: Baby "mother's name". For example, the mother's - name is Ratna, then fill in Baby Ratna - - - - - Tanggal Lahir Bayi - - DOB - - * - Tanggal lahir bayi - - Baby's date of birth - - - - - - - Jenis Kelamin - - Gender - - * - Jenis kelamin bayi - - Baby's gender - - - - - - Laki-Laki - (L) - - Male (M) - - - - - - Perempuan ( P) - - Female - (F) - - - - - - - Nilai yang dimasukkan - tidak memenuhi syarat, mohon periksa kembali - - The entered value - doesn't meet the criteria, please check it again - - Berat Bayi (Gram) - - Weight of baby - - Berat Badan saat bayi baru lahir - (Gram) - - - Baby's birthweight (gram) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kartu_pnc_regitration_oa/form_definition.json b/opensrp-bidan/src/main/assets/www/form/kartu_pnc_regitration_oa/form_definition.json deleted file mode 100644 index dba0ec5..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_pnc_regitration_oa/form_definition.json +++ /dev/null @@ -1,391 +0,0 @@ -{ - "form_data_definition_version": "1", - "form": { - "bind_type": "kartu_ibu", - "default_bind_path": "/model/instance/register_pnc_reviewed/", - "fields": [ - { - "name": "id", - "shouldLoadValue": true - }, - { - "name": "motherId", - "source": "kartu_ibu.ibu.id", - "shouldLoadValue": true - }, - { - "name": "lokasiPeriksa", - "bind": "/model/instance/register_pnc_reviewed/Lokasi_periksa" - }, - { - "name": "childId", - "shouldLoadValue": true, - "source": "kartu_ibu.ibu.anak.id" - }, - { - "name": "unique_id", - "bind": "/model/instance/register_pnc_reviewed/unique_id", - "shouldLoadValue" : true - }, - { - "name": "nik", - "bind": "/model/instance/register_pnc_reviewed/nik" - }, - { - "name": "Village", - "bind": "/model/instance/register_pnc_reviewed/Village", - "shouldLoadValue": true - }, - { - "name": "Province", - "bind": "/model/instance/register_pnc_reviewed/Province", - "shouldLoadValue": true - }, - { - "name": "Sub-district", - "bind": "/model/instance/register_pnc_reviewed/Sub-district", - "shouldLoadValue": true - }, - { - "name": "District", - "bind": "/model/instance/register_pnc_reviewed/District", - "shouldLoadValue": true - }, - { - "name": "Sub-village", - "bind": "/model/instance/register_pnc_reviewed/Sub-village", - "shouldLoadValue": true - }, - { - "name": "provinsi", - "bind": "/model/instance/register_pnc_reviewed/provinsi" - }, - { - "name": "kabupaten", - "bind": "/model/instance/register_pnc_reviewed/kabupaten" - }, - { - "name": "kecamatan", - "bind": "/model/instance/register_pnc_reviewed/kecamatan" - }, - { - "name": "desa", - "bind": "/model/instance/register_pnc_reviewed/desa" - }, - { - "name": "dusun", - "bind": "/model/instance/register_pnc_reviewed/dusun" - }, - { - "name": "puskesmas", - "bind": "/model/instance/register_pnc_reviewed/puskesmas" - }, - { - "name": "noIbu", - "bind": "/model/instance/register_pnc_reviewed/no_ibu" - }, - { - "name": "namalengkap", - "bind": "/model/instance/register_pnc_reviewed/nama_lengkap" - }, - { - "name": "namaSuami", - "bind": "/model/instance/register_pnc_reviewed/nama_suami" - }, - { - "name": "tanggalLahir", - "bind": "/model/instance/register_pnc_reviewed/tanggal_lahir_ibu" - }, - { - "name": "umur", - "bind": "/model/instance/register_pnc_reviewed/umur" - }, - { - "name": "alamatDomisili", - "bind": "/model/instance/register_pnc_reviewed/alamat_domisili" - }, - { - "name": "pendidikan", - "bind": "/model/instance/register_pnc_reviewed/pendidikan" - }, - { - "name": "agama", - "bind": "/model/instance/register_pnc_reviewed/agama" - }, - { - "name": "pekerjaan", - "bind": "/model/instance/register_pnc_reviewed/pekerjaan" - }, - { - "name": "gakinTidak", - "bind": "/model/instance/register_pnc_reviewed/gakin_tidak" - }, - { - "name": "posyandu", - "bind": "/model/instance/register_pnc_reviewed/posyandu" - }, - { - "name": "namaKader", - "bind": "/model/instance/register_pnc_reviewed/nama_kader" - }, - { - "name": "namaDukun", - "bind": "/model/instance/register_pnc_reviewed/nama_dukun" - }, - { - "name": "asuransiJiwa", - "bind": "/model/instance/register_pnc_reviewed/asuransi_jiwa" - }, - { - "name": "golonganDarah", - "bind": "/model/instance/register_pnc_reviewed/golongan_darah" - }, - { - "name": "NomorTelponHp", - "bind": "/model/instance/register_pnc_reviewed/nomor_telpon_hp" - }, - { - "name": "pptest", - "bind": "/model/instance/register_pnc_reviewed/pptest" - }, - { - "name": "hpht", - "bind": "/model/instance/register_pnc_reviewed/hpht", - "source": "ibu.tanggalHPHT", - "shouldLoadValue": true - }, - { - "name": "usiaKehamilan", - "bind": "/model/instance/register_pnc_reviewed/usia_kehamilan", - "source":"kartu_ibu.ibu.usiaKehamilan" - }, - { - "name": "keadaanIbu", - "bind": "/model/instance/register_pnc_reviewed/keadaan_ibu", - "source":"kartu_ibu.ibu.keadaanIbu" - }, - { - "name": "keadaanBayi", - "bind": "/model/instance/register_pnc_reviewed/keadaan_bayi", - "source":"kartu_ibu.ibu.anak.keadaanBayi" - }, - { - "name": "beratLahir", - "bind": "/model/instance/register_pnc_reviewed/berat_bayi", - "source":"kartu_ibu.ibu.anak.beratLahir" - }, - { - "name": "persalinan", - "bind": "/model/instance/register_pnc_reviewed/persalinan", - "source":"kartu_ibu.ibu.persalinan" - }, - { - "name": "tanggalKalaIAktif", - "bind": "/model/instance/register_pnc_reviewed/tanggal__kala_i_aktif", - "source":"kartu_ibu.ibu.tanggalKalaIAktif" - }, - { - "name": "jamKalaIAktif", - "bind": "/model/instance/register_pnc_reviewed/jam__kala_i_aktif", - "source":"kartu_ibu.ibu.jamKalaIAktif" - }, - { - "name": "tanggalKalaII", - "bind": "/model/instance/register_pnc_reviewed/tanggal__kala_ii", - "source":"kartu_ibu.ibu.tanggalKalaII" - }, - { - "name": "jamKalaII", - "bind": "/model/instance/register_pnc_reviewed/jam__kala_ii", - "source":"kartu_ibu.ibu.jamKalaII" - }, - { - "name": "tanggalPlasentaLahir", - "bind": "/model/instance/register_pnc_reviewed/tanggal__plasenta_lahir", - "source":"kartu_ibu.ibu.tanggalPlasentaLahir" - }, - { - "name": "jamPlasentaLahir", - "bind": "/model/instance/register_pnc_reviewed/jam__plasenta_lahir", - "source":"kartu_ibu.ibu.jamPlasentaLahir" - }, - { - "name": "perdarahanKalaIV2JamPostpartum", - "bind": "/model/instance/register_pnc_reviewed/perdarahan_kala_iv_2_jam_postpartum", - "source":"kartu_ibu.ibu.perdarahanKalaIV2JamPostpartum" - }, - { - "name": "persentasi", - "bind": "/model/instance/register_pnc_reviewed/persentasi", - "source":"kartu_ibu.ibu.persentasi" - }, - { - "name": "tempatBersalin", - "bind": "/model/instance/register_pnc_reviewed/tempat", - "source":"kartu_ibu.ibu.tempatBersalin" - }, - { - "name": "penolong", - "bind": "/model/instance/register_pnc_reviewed/penolong", - "source":"kartu_ibu.ibu.penolong" - }, - { - "name": "penolongLainLain", - "bind": "/model/instance/register_pnc_reviewed/penolong_lain_lain", - "source":"kartu_ibu.ibu.penolongLainLain" - }, - { - "name": "caraPersalinanIbu", - "bind": "/model/instance/register_pnc_reviewed/cara_persalinan_ibu", - "source":"kartu_ibu.ibu.caraPersalinanIbu" - }, - { - "name": "manajemenAktifKalaIII", - "bind": "/model/instance/register_pnc_reviewed/manajemen_aktif_kala_iii", - "source":"kartu_ibu.ibu.manajemenAktifKalaIII" - }, - { - "name": "pelayanan", - "bind": "/model/instance/register_pnc_reviewed/pelayanan", - "source":"kartu_ibu.ibu.pelayanan" - }, - { - "name": "integrasiProgram", - "bind": "/model/instance/register_pnc_reviewed/integrasi_program", - "source":"kartu_ibu.ibu.integrasiProgram" - }, - { - "name": "komplikasi", - "bind": "/model/instance/register_pnc_reviewed/komplikasi", - "source":"kartu_ibu.ibu.komplikasi" - }, - { - "name": "komplikasiLainLain", - "bind": "/model/instance/register_pnc_reviewed/komplikasi_lain_lain" - }, - { - "name": "dirujukKe", - "bind": "/model/instance/register_pnc_reviewed/dirujuk_ke", - "source":"kartu_ibu.ibu.dirujukKe" - }, - { - "name": "dirujukKeLainLain", - "bind": "/model/instance/register_pnc_reviewed/dirujuk_kelain-lain", - "source":"kartu_ibu.ibu.dirujukKeLainLain" - }, - { - "name": "alamatBersalin", - "bind": "/model/instance/register_pnc_reviewed/alamat_bersalin", - "source":"kartu_ibu.ibu.alamatBersalin" - }, - { - "name": "noBayi", - "bind": "/model/instance/register_pnc_reviewed/no_bayi", - "source": "kartu_ibu.ibu.anak.no_bayi" - }, - { - "name": "namaBayi", - "bind": "/model/instance/register_pnc_reviewed/nama_bayi", - "source": "kartu_ibu.ibu.anak.namaBayi" - }, - { - "name": "tanggalLahirAnak", - "bind": "/model/instance/register_pnc_reviewed/tanggal_lahir_anak", - "source": "kartu_ibu.ibu.anak.tanggalLahirAnak" - }, - { - "name": "jenisKelamin", - "bind": "/model/instance/register_pnc_reviewed/jenis_kelamin", - "source": "kartu_ibu.ibu.anak.jenisKelamin" - }, - { - "name": "highRiskPregnancyYoungMaternalAge", - "bind": "/model/instance/register_pnc_reviewed/High_Risk_Pregnancy_Young_maternal_age" - }, - { - "name": "highRiskPregnancyOldMaternalAge", - "bind": "/model/instance/register_pnc_reviewed/High_Risk_Pregnancy_Old_maternal_age" - }, - { - "name": "highRiskChildPreterm", - "bind": "/model/instance/register_pnc_reviewed/High_Risk_Child_preterm" - }, - { - "name": "HighRiskChildLowBirthweght", - "bind": "/model/instance/register_pnc_reviewed/High_Risk_Child_Low_Birthweght" - }, - { - "name": "highRiskPostPartumDistosia", - "bind": "/model/instance/register_pnc_reviewed/high_risk_post-partum_distosia" - }, - { - "name": "highRiskPostPartumPIH", - "bind": "/model/instance/register_pnc_reviewed/high_risk_post-partum_PIH" - }, - { - "name": "highRiskPostPartumHemorrhage", - "bind": "/model/instance/register_pnc_reviewed/high_risk_post-partum_Hemorrhage" - }, - { - "name": "highRiskPostPartumInfection", - "bind": "/model/instance/register_pnc_reviewed/high_risk_post-partum_infection" - }, - { - "name": "highRiskPostPartumMaternalSepsis", - "bind": "/model/instance/register_pnc_reviewed/high_risk_post-partum_maternal_sepsis" - }, - { - "name": "highRiskPostPartumPreEclampsiaEclampsia", - "bind": "/model/instance/register_pnc_reviewed/high_risk_post-partum_Pre-eclampsia_eclampsia" - }, - { - "name": "highRiskPostPartumVacum", - "bind": "/model/instance/register_pnc_reviewed/high_risk_post-partum_vacum" - }, - { - "name": "highRiskPostPartumForceps", - "bind": "/model/instance/register_pnc_reviewed/high_risk_post-partum_forceps" - }, - { - "name": "highRiskPostPartumSectioCaesaria", - "bind": "/model/instance/register_pnc_reviewed/high_risk_post-partum_Sectio_Caesaria" - }, - { - "name":"type", - "value":"pnc", - "source":"kartu_ibu.ibu.type" - }, - { - "name":"isOutOfArea", - "value":"false" - }, - { - "name":"isClosed", - "value":"false" - }, - { - "name":"isClosed", - "value":"false", - "source":"kartu_ibu.ibu.isClosed" - }, - { - "name":"isClosed", - "value":"false", - "source":"kartu_ibu.ibu.anak.isClosed" - }, - { - "name": "submissionDate", - "bind": "/model/instance/register_pnc_reviewed/today" - }, - { - "name":"kartu_ibu.ibu.anak.id", - "source":"kartu_ibu.ibu.anak.id", - "shouldLoadValue": true - }, - { - "name": "registrationDate", - "bind": "/model/instance/register_pnc_reviewed/reg_date" - } - ] - } -} diff --git a/opensrp-bidan/src/main/assets/www/form/kartu_pnc_regitration_oa/model.xml b/opensrp-bidan/src/main/assets/www/form/kartu_pnc_regitration_oa/model.xml deleted file mode 100644 index 34146f8..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_pnc_regitration_oa/model.xml +++ /dev/null @@ -1,91 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Ibu rumah tangga - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kartu_pnc_visit/form.json b/opensrp-bidan/src/main/assets/www/form/kartu_pnc_visit/form.json deleted file mode 100644 index 28dd62c..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_pnc_visit/form.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"PNC_visit_reviewed","title":"Kunjungan PNC","sms_keyword":"kunjungan_pnc","default_language":"Bahasa","instance":{"encounter_type":"Kunjungan PNC"},"version":"201702121250","id_string":"kunjungan_pnc","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":"Lokasi_periksa","bind":{"relevant":"yes"},"label":{"Bahasa":"Lokasi Periksa","English":"Location of Service"},"instance":{"openmrs_entity_id":"161010AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"163121AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Posyandu","label":{"Bahasa":"Posyandu","English":"Village Outreach Post"}},{"instance":{"openmrs_code":"1588AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Polindes","label":{"Bahasa":"Polindes","English":"Health Clinic Post"}},{"instance":{"openmrs_code":"1537AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Puskesmas","label":{"Bahasa":"Puskesmas","English":"Health Facility"}},{"instance":{"openmrs_code":"1536AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Ibu_rumah","label":{"Bahasa":"Rumah Ibu","English":"Mother House"}},{"instance":{"openmrs_code":"1589AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Rumah_Sakit","label":{"Bahasa":"Rumah Sakit","English":"Hospital"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"lainya","label":{"Bahasa":"Lainnya","English":"Other"}}]},{"name":"tanggal_kunjungan","hint":{"Bahasa":"Tanggal dilakukannya kunjungan nifas","English":"Date of post-partum check-up"},"bind":{"required":"yes","calculate":"${today}"},"label":{"Bahasa":"Tanggal kunjungan","English":"Check-up date"},"instance":{"openmrs_entity_id":"160753AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"date"},{"instance":{"openmrs_entity_id":"birthdate","openmrs_entity":"person"},"type":"hidden","name":"tanggal_lahir_anak","hint":{"Bahasa":"inject tanggal lahir anak form Register_PNC or Dokumentasi_persalinan","English":"inject date of child's birth from Register_PNC or Dokumentasi_persalinan"}},{"instance":{"openmrs_entity":"n/a"},"type":"note","name":"generated_note_name_27","label":{"Bahasa":"Tanggal lahir anak : ${tanggal_lahir_anak}"}},{"name":"hari_ke__kf","hint":{"Bahasa":"Menunjukkan hari ke berapa setelah persalinan","English":"Indicating the day of post-partum"},"bind":{"required":"yes"},"label":{"Bahasa":"Hari Ke / KF","English":"Day/ Postpartum care"},"instance":{"openmrs_entity_id":"159893AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"integer"},{"instance":{"openmrs_entity_id":"159395AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"label":{"Bahasa":"Keadaan umum ibu nifas","English":"General state of puerperal mother"},"type":"text","name":"keadaan_umum","hint":{"Bahasa":"Kondisi ibu secara umum","English":"Mother's condition in general"}},{"name":"tanda_vital_td_sistolik","hint":{"Bahasa":"Menununjukkan hasil pengukuran tekanan darah (Sistolik) pada saat kunjungan Nifas","English":"Indicating blood pressure (systolic) on post-partum 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":"Tanda Vital / TD (Sistolik)","English":"Vital Sign/ Blood pressure (Systolic)"},"instance":{"openmrs_entity_id":"5085AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"integer"},{"name":"tanda_vital_td_diastolik","hint":{"Bahasa":"Menununjukkan hasil pengukuran tekanan darah (Diastolik) pada saat kunjungan Nifas","English":"Indicating blood pressure (dyastolic) on post-partum 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":"Tanda Vital / TD (Diastolik)","English":"Vital Sign/ Blood pressure (Diastolic)"},"instance":{"openmrs_entity_id":"5086AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"integer"},{"name":"tanda_vital_suhu","hint":{"Bahasa":"Menunjukkan hasil pengukuran suhu tubuh","English":"Indicating mother's temperature"},"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":"Tanda Vital / Suhu","English":"Vital sign/ body temperature"},"instance":{"openmrs_entity_id":"5088AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"decimal"},{"name":"tanda_vital_nadi","hint":{"Bahasa":"Menunjukkan hasil pengukuran nadi","English":"Indicating mother's pulse"},"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":"Tanda Vital / Nadi","English":"Vital sign/ Pulse"},"instance":{"openmrs_entity_id":"5087AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"integer"},{"name":"tanda_vital_pernafasan","hint":{"Bahasa":"Menunjukkan hasil pengukuran respirasi","English":"Indicating mother's respiration"},"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":"Tanda Vital / Pernafasan","English":"Vital sign/ Respiration"},"instance":{"openmrs_entity_id":"5242AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"integer"},{"instance":{"openmrs_entity":"n/a"},"label":{"Bahasa":"Pembengkakan payudara?","English":"Breast examination"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Ya","label":{"Bahasa":"Ya","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Tidak","label":{"Bahasa":"Tidak","English":"No"}}],"name":"pembengkakan_payudara"},{"instance":{"openmrs_entity":"n/a"},"label":{"Bahasa":"Produksi ASI","English":"Production of breast milk"},"type":"select one","children":[{"instance":{"openmrs_code":"159405AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"baik","label":{"Bahasa":"Baik","English":"Good"}},{"instance":{"openmrs_code":"159407AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tidak_baik","label":{"Bahasa":"Tidak Baik","English":"Poor"}}],"name":"produksi_asi"},{"instance":{"openmrs_entity":"n/a"},"type":"text","name":"fundus_uteri","label":{"Bahasa":"Hasil pemeriksaan fundus uteri","English":"Fundal examination"}},{"instance":{"openmrs_entity":"n/a"},"label":{"Bahasa":"Hasil pemeriksaan kontraksi uterus","English":"Contraction of the uterus"},"type":"select one","children":[{"instance":{"openmrs_code":"159405AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"baik","label":{"Bahasa":"Baik","English":"Good"}},{"instance":{"openmrs_code":"159407AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tidak_baik","label":{"Bahasa":"Tidak Baik","English":"Poor"}}],"name":"kontraksi_uterus"},{"instance":{"openmrs_entity":"n/a"},"label":{"Bahasa":"Hasil pemeriksaan kandung kencing","English":"Bladder examination"},"type":"select one","children":[{"instance":{"openmrs_code":"n/a"},"name":"kosong","label":{"Bahasa":"Kosong","English":"Empty"}},{"instance":{"openmrs_code":"n/a"},"name":"penuh","label":{"Bahasa":"Penuh","English":"Full"}}],"name":"kandung_kencing"},{"instance":{"openmrs_entity":"n/a"},"label":{"Bahasa":"Buang air kecil","English":"Urination"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Ya","label":{"Bahasa":"Ya","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Tidak","label":{"Bahasa":"Tidak","English":"No"}}],"name":"buang_air_kecil"},{"instance":{"openmrs_entity":"n/a"},"label":{"Bahasa":"Buang air besar","English":"Defecation"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Ya","label":{"Bahasa":"Ya","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Tidak","label":{"Bahasa":"Tidak","English":"No"}}],"name":"buang_air_besar"},{"instance":{"openmrs_entity":"n/a"},"label":{"Bahasa":"Hasil pemeriksaan luka operasi (bila ada)","English":"Examination of caesarean wound"},"type":"select one","children":[{"instance":{"openmrs_code":"n/a"},"name":"basah","label":{"Bahasa":"Basah"}},{"instance":{"openmrs_code":"n/a"},"name":"kering","label":{"Bahasa":"Kering"}},{"instance":{"openmrs_code":"n/a"},"name":"infeksi","label":{"Bahasa":"Tanda infeksi"}}],"name":"luka_operasi"},{"instance":{"openmrs_entity_id":"159721AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"label":{"Bahasa":"Hasil pemeriksaan lochea (warna/bau)","English":"Lochea examination"},"type":"select one","children":[{"instance":{"openmrs_code":"159722AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"lochia_rubra","label":{"Bahasa":"Rubra","English":"Rubra"}},{"instance":{"openmrs_code":"164145"},"name":"lochia_sanguilenta","label":{"Bahasa":"Sanguilenta","English":"Sanguilenta"}},{"instance":{"openmrs_code":"159724AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"lochia_serosa","label":{"Bahasa":"Serosa","English":"Serosa"}},{"instance":{"openmrs_code":"159723AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"lochia_alba","label":{"Bahasa":"Alba","English":"Alba"}}],"name":"lochia"},{"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"},"type":"integer","instance":{"openmrs_entity_id":"161928AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"name":"bleeding","label":{"Bahasa":"Perdarahan","English":"Amount of bleeding"}},{"instance":{"openmrs_entity":"n/a"},"label":{"Bahasa":"Hasil pemeriksaan luka perineum","English":"Perineal wound examination"},"type":"select one","children":[{"instance":{"openmrs_code":"n/a"},"name":"basah","label":{"Bahasa":"Basah"}},{"instance":{"openmrs_code":"n/a"},"name":"kering","label":{"Bahasa":"Kering"}},{"instance":{"openmrs_code":"n/a"},"name":"infeksi","label":{"Bahasa":"Tanda infeksi"}}],"name":"luka_perineum"},{"name":"pelayanan_catat_di_buku_kia","hint":{"Bahasa":"Semua Hasil Pemeriksaan PNC Di catat dibuku KIA","English":"Indicating whether all check-up results are recorded in MCH Booklet"},"label":{"Bahasa":"Pelayanan / Catat di Buku Kia","English":"Service/ record on Maternal and child health booklest (pink book)"},"instance":{"openmrs_entity_id":"163148AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"jika_dilakukan","label":{"Bahasa":"JIka dilakukan (√)","English":"yes (√);"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"jika_tidak_dilakukan","label":{"Bahasa":"Jika Tidak dilakukan (x)","English":"no (x)"}}]},{"name":"pelayananfe","hint":{"Bahasa":"Menunjukkan pelayanan Fe dilakukan atau tidak","English":"Indicating whether midwife provides Fe service"},"label":{"Bahasa":"Pelayanan Fe","English":"service/ Fe"},"instance":{"openmrs_entity_id":"104677AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Ya","label":{"Bahasa":"Ya","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Tidak","label":{"Bahasa":"Tidak","English":"No"}}]},{"name":"jumlah_fe","hint":{"Bahasa":"Menunjukkan Jumlah Fe yang diberikan saat kunjungan PNC (tab/botol)","English":"Indicating amount of Fe tablets given to mother on post-partum check-up (tablet/bottle)"},"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"},"relevant":"${pelayananfe}='Ya'","constraint":".>-1 and .<100"},"label":{"Bahasa":"Jumlah Fe (Tablet/botol)"},"instance":{"openmrs_entity_id":"1443AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"integer"},{"name":"vitaminA2jamPP","hint":{"Bahasa":"Tulis tanggal minumnya","English":"Enter date of receiving vitamin A"},"label":{"Bahasa":"2 Jam PP","English":"2 hour post partum"},"instance":{"openmrs_entity_id":"164132AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Ya","label":{"Bahasa":"Ya","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Tidak","label":{"Bahasa":"Tidak","English":"No"}}]},{"name":"vitaminA24jamPP","hint":{"Bahasa":"Tulis tanggal minumnya","English":"Enter date of receiving vitamin A"},"label":{"Bahasa":"24 Jam PP","English":"24 hour post partum"},"instance":{"openmrs_entity_id":"164155AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Ya","label":{"Bahasa":"Ya","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Tidak","label":{"Bahasa":"Tidak","English":"No"}}]},{"name":"ProgramIntegration","hint":{"Bahasa":"Menunjukan detail Integrasi Program yang diberikan kepada ibu nifas","English":"Indicating details of Program Integration provided to post-partum mother"},"label":{"English":"Do you provide Program Integration for post-partum mother?"},"instance":{"openmrs_entity":"n/a"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Ya","label":{"Bahasa":"Ya","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Tidak","label":{"Bahasa":"Tidak","English":"No"}}]},{"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"},"relevant":"${ProgramIntegration}='Ya'","constraint":".>0 and .<1000"},"type":"integer","instance":{"openmrs_entity":"n/a"},"name":"integrasi_program_cd4","label":{"Bahasa":"Integrasi Program / CD4 (kopi/m)","English":"Program Integration/CD4"}},{"name":"integrasi_program_anti_malaria","hint":{"Bahasa":"Obat yang diberikan untuk malaria","English":"Type of medicines given for malaria"},"bind":{"relevant":"${ProgramIntegration}='Ya'"},"label":{"Bahasa":"Integrasi Program / Anti Malaria","English":"Program Integration/Anti Malaria"},"instance":{"openmrs_entity":"n/a"},"type":"text"},{"name":"integrasi_program_anti_tb","hint":{"Bahasa":"Obat yang diberikan untuk TB","English":"Type of medicines given for TB"},"bind":{"relevant":"${ProgramIntegration}='Ya'"},"label":{"Bahasa":"Integrasi Program / Anti TB","English":"Program Integration/Anti TB"},"instance":{"openmrs_entity":"n/a"},"type":"text"},{"name":"integrasi_program_foto_thorax","hint":{"Bahasa":"Foto hasil rontgen","English":"Photos of the X-rays"},"bind":{"relevant":"${ProgramIntegration}='Ya'"},"label":{"Bahasa":"Integrasi Program / Foto thorax","English":"Program Integration/Thorax photo"},"instance":{"openmrs_entity":"n/a"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Ya","label":{"Bahasa":"dilakukan(+)","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Tidak","label":{"Bahasa":"tidak dilakukan (-)","English":"No"}}]},{"name":"komplikasi","hint":{"Bahasa":"Jenis komplikasi yang terjadi pada Ibu setelah persalinan","English":"Type of post-partum complication occured"},"label":{"Bahasa":"Komplikasi","English":"Complication"},"instance":{"openmrs_entity_id":"120194AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"select all that apply","children":[{"instance":{"openmrs_code":"116135AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"infeksi_nifas","label":{"Bahasa":"Infeksi nifas","English":"Post-partum infection"}},{"instance":{"openmrs_code":"159240AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"hipertensi_post-partum","label":{"Bahasa":"hipertensi post-partum","English":"Post-partum hypertention"}},{"instance":{"openmrs_code":"130AAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"post-partum_sepsis","label":{"Bahasa":"post-partum sepsis","English":"Post-partum Sepsis"}},{"instance":{"openmrs_code":"230AAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"perdarahan_post-partum","label":{"Bahasa":"Perdarahan Post-Partum (PPP)","English":"Post-partum Hemorrhage"}},{"instance":{"openmrs_code":"115914AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"mastitis","label":{"Bahasa":"mastitis","English":"Mastitis"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"lain-lain","label":{"Bahasa":"Lain - Lain (LN)","English":"Other"}}]},{"name":"komplikasi_lainnya","hint":{"Bahasa":"Jenis komplikasi yang terjadi pada ibu setelah persalinan selain komplikasi yang disebutkan","English":"Type of other post-partum complication occured"},"bind":{"relevant":"selected(${komplikasi}, 'lain-lain')"},"label":{"Bahasa":"Lainnya","English":"Other"},"instance":{"openmrs_entity_id":"160632AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"text"},{"name":"treatment","hint":{"Bahasa":"Apakah ada penanganan yang diberikan kepada pasien? Jika iya, sebutkan.","English":"Do you give any treatment to the patient? If yes, please describe."},"label":{"Bahasa":"Penanganan diberikan?","English":"Give treatment?"},"instance":{"openmrs_entity_id":"1774AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Ya","label":{"Bahasa":"Ya","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Tidak","label":{"Bahasa":"Tidak","English":"No"}}]},{"control":{"appearance":"multiline"},"name":"treatment_text","bind":{"relevant":"${treatment} = 'Ya'"},"label":{"Bahasa":"Deskripsikan penanganan yang diberikan","English":"Describe the treatment you give to the patient"},"instance":{"openmrs_entity_parent":"1774AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_id":"160632AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"text"},{"name":"rujukan","hint":{"Bahasa":"Menunjukkan bahwa bidan merujuk Ibu hamil ke ke tempat fasilitas kesehatan","English":"Indicating whether midwife refers mother to the health facility"},"label":{"Bahasa":"Apakah Anda merujuk Ibu hamil ke fasilitas kesehatan?","English":"Do you refer the mother to the health facility?"},"instance":{"openmrs_entity_id":"1648AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Ya","label":{"Bahasa":"Ya","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Tidak","label":{"Bahasa":"Tidak","English":"No"}}]},{"control":{"appearance":"minimal"},"name":"dirujuk_ke","hint":{"Bahasa":"Menunjukkan tempat rujukan","English":"Indicating location of referred facility"},"bind":{"relevant":"${rujukan} = 'Ya'"},"label":{"Bahasa":"Dirujuk Ke","English":"Place of referral"},"instance":{"openmrs_entity_id":"163145AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"select one","children":[{"instance":{"openmrs_code":"159372AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pusat_kesehatan_masyarakat","label":{"Bahasa":"Pusat Kesehatan Masyarakat (Puskesmas )","English":"Primary Health Center"}},{"instance":{"openmrs_code":"163146AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"rumah_bersalin","label":{"Bahasa":"Rumah Bersalin (RB)","English":"Maternity Hospital"}},{"instance":{"openmrs_code":"163147AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"rumah_sakit_ibu_dan_anak","label":{"Bahasa":"Rumah Sakit Ibu dan Anak (RSIA)","English":"Maternal and Child Hospital;"}},{"instance":{"openmrs_code":"1589AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"rumah_sakit","label":{"Bahasa":"Rumah Sakit (RS)","English":"Hospital"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"lain-lain","label":{"Bahasa":"Lain-lain (LN)","English":"Others"}},{"instance":{"openmrs_code":"1107AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tidak_dirujuk","label":{"Bahasa":"Tidak Diujuk (TD)","English":"None"}}]},{"name":"dirujuk_ke_lain_lain","hint":{"Bahasa":"Tempat Ibu dirujuk, jika Ibu mengalami komplikasi persalinan","English":"Other facility where mother is referred to, if mother has labor complication"},"bind":{"relevant":"${dirujuk_ke} = 'lain-lain'"},"label":{"Bahasa":"Lain-lain","English":"Other"},"instance":{"openmrs_entity_id":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"text"},{"name":"keadaan_ibu_saat_tiba","hint":{"Bahasa":"Keadaan saat ibu tiba tempat rujukan","English":"Mother's condition when arrives at referred facility"},"bind":{"relevant":"${rujukan} = 'Ya'"},"label":{"Bahasa":"Keadaan Ibu saat tiba","English":"Mother's condition when arrives at referred facilty"},"instance":{"openmrs_entity_id":"163183AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"160429AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"hidup","label":{"Bahasa":"Hidup (H)","English":"Alive (A);"}},{"instance":{"openmrs_code":"160432AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"mati","label":{"Bahasa":"Mati (M)","English":"Dead (M)"}}]},{"name":"keadaan_ibu_saat_pulang","hint":{"Bahasa":"Keadaan saat ibu pulang dari tempat rujukan","English":"Mother's condition when returns home from referred facility"},"bind":{"relevant":"${rujukan} = 'Ya'"},"label":{"Bahasa":"Keadaan Ibu saat pulang","English":"Mother's condition when discharges from referred facility"},"instance":{"openmrs_entity_id":"163184AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"160429AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"hidup","label":{"Bahasa":"Hidup (H)","English":"Alive (A);"}},{"instance":{"openmrs_code":"160432AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"mati","label":{"Bahasa":"Mati (M)","English":"Dead (M)"}}]},{"name":"keterangan","hint":{"Bahasa":"Diisi dengan keterangan terkait rujukan","English":"Write any additional information related to the referred facility"},"bind":{"relevant":"${rujukan} = 'Ya'"},"label":{"Bahasa":"Keterangan","English":"Notes"},"instance":{"openmrs_entity_id":"160632AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"text"},{"bind":{"calculate":"(if(selected(${komplikasi},'infeksi_nifas'), 'yes','no'))"},"type":"calculate","name":"high_risk_post-partum_infection","instance":{"openmrs_entity_id":"116135AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"}},{"bind":{"calculate":"(if(${tanda_vital_td_sistolik} >= 140 or ${tanda_vital_td_diastolik} >= 90 or selected(${komplikasi},'hipertensi_post-partum'), 'yes','no'))"},"type":"calculate","name":"high_risk_post-partum_PIH","instance":{"openmrs_entity_id":"159240AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"}},{"bind":{"calculate":"(if(selected(${komplikasi},'post-partum_sepsis'), 'yes','no'))"},"type":"calculate","name":"high_risk_post-partum_maternal_sepsis","instance":{"openmrs_entity_id":"130AAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"}},{"bind":{"calculate":"(if(selected(${komplikasi},'perdarahan_post-partum'), 'yes','no'))"},"type":"calculate","name":"high_risk_post-partum_Hemorrhage","instance":{"openmrs_entity_id":"230AAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"}},{"bind":{"calculate":"(if(selected(${komplikasi},'mastitis'), 'yes','no'))"},"type":"calculate","name":"high_risk_post-partum_Mastitis","instance":{"openmrs_entity_id":"115914AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"}},{"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/kartu_pnc_visit/form.xml b/opensrp-bidan/src/main/assets/www/form/kartu_pnc_visit/form.xml deleted file mode 100644 index fa90699..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_pnc_visit/form.xml +++ /dev/null @@ -1,760 +0,0 @@ - - - - Kunjungan PNC - - Bahasa - English - - - Desa : - - - - - - - - Dusun : - - - - - - - - - - Lokasi Periksa - Location of Service - - - - - Posyandu - Village Outreach Post - - - - Polindes - Health Clinic Post - - - - Puskesmas - Health Facility - - - - Rumah Ibu - Mother House - - - - Rumah Sakit - Hospital - - - - Lainnya - Other - - - - - - Tanggal kunjungan - Check-up date - * - Tanggal dilakukannya kunjungan nifas - Date of post-partum check-up - - This field is required - - - Tanggal lahir anak : - - - - - - - - Hari Ke / KF - Day/ Postpartum care - * - Menunjukkan hari ke berapa setelah persalinan - Indicating the day of post-partum - - This field is required - - - Keadaan umum ibu nifas - General state of puerperal mother - Kondisi ibu secara umum - Mother's condition in general - - - - Tanda Vital / TD (Sistolik) - Vital Sign/ Blood pressure (Systolic) - Menununjukkan hasil pengukuran tekanan darah (Sistolik) pada saat kunjungan Nifas - Indicating blood pressure (systolic) on post-partum check-up - - Nilai yang dimasukkan tidak memenuhi syarat, mohon periksa kembali - The entered value doesn't meet the criteria, please check it again - - - Tanda Vital / TD (Diastolik) - Vital Sign/ Blood pressure (Diastolic) - Menununjukkan hasil pengukuran tekanan darah (Diastolik) pada saat kunjungan Nifas - Indicating blood pressure (dyastolic) on post-partum check-up - - Nilai yang dimasukkan tidak memenuhi syarat, mohon periksa kembali - The entered value doesn't meet the criteria, please check it again - - - Tanda Vital / Suhu - Vital sign/ body temperature - Menunjukkan hasil pengukuran suhu tubuh - Indicating mother's temperature - - Nilai yang dimasukkan tidak memenuhi syarat, mohon periksa kembali - The entered value doesn't meet the criteria, please check it again - - - Tanda Vital / Nadi - Vital sign/ Pulse - Menunjukkan hasil pengukuran nadi - Indicating mother's pulse - - Nilai yang dimasukkan tidak memenuhi syarat, mohon periksa kembali - The entered value doesn't meet the criteria, please check it again - - - Tanda Vital / Pernafasan - Vital sign/ Respiration - Menunjukkan hasil pengukuran respirasi - Indicating mother's respiration - - Nilai yang dimasukkan tidak memenuhi syarat, mohon periksa kembali - The entered value doesn't meet the criteria, please check it again - - - - - Pembengkakan payudara? - Breast examination - - - - - Ya - Yes - - - - Tidak - No - - - - - - - - Produksi ASI - Production of breast milk - - - - - Baik - Good - - - - Tidak Baik - Poor - - - - - - Hasil pemeriksaan fundus uteri - Fundal examination - - - - - - Hasil pemeriksaan kontraksi uterus - Contraction of the uterus - - - - - Baik - Good - - - - Tidak Baik - Poor - - - - - - - - Hasil pemeriksaan kandung kencing - Bladder examination - - - - - Kosong - Empty - - - - Penuh - Full - - - - - - - - Buang air kecil - Urination - - - - - Ya - Yes - - - - Tidak - No - - - - - - - - Buang air besar - Defecation - - - - - Ya - Yes - - - - Tidak - No - - - - - - - - Hasil pemeriksaan luka operasi (bila ada) - Examination of caesarean wound - - - - - Basah - - - - - - Kering - - - - - - Tanda infeksi - - - - - - - - - - Hasil pemeriksaan lochea (warna/bau) - Lochea examination - - - - - Rubra - Rubra - - - - Sanguilenta - Sanguilenta - - - - Serosa - Serosa - - - - Alba - Alba - - - - - - Perdarahan - Amount of bleeding - - Nilai yang dimasukkan tidak memenuhi syarat, mohon periksa kembali - The entered value doesn't meet the criteria, please check it again - - - - - Hasil pemeriksaan luka perineum - Perineal wound examination - - - - - Basah - - - - - - Kering - - - - - - Tanda infeksi - - - - - - - - - - Pelayanan / Catat di Buku Kia - Service/ record on Maternal and child health booklest (pink book) - Semua Hasil Pemeriksaan PNC Di catat dibuku KIA - Indicating whether all check-up results are recorded in MCH Booklet - - - - - JIka dilakukan (√) - yes (√); - - - - Jika Tidak dilakukan (x) - no (x) - - - - - - - - Pelayanan Fe - service/ Fe - Menunjukkan pelayanan Fe dilakukan atau tidak - Indicating whether midwife provides Fe service - - - - - Ya - Yes - - - - Tidak - No - - - - - - Jumlah Fe (Tablet/botol) - - - Menunjukkan Jumlah Fe yang diberikan saat kunjungan PNC (tab/botol) - Indicating amount of Fe tablets given to mother on post-partum check-up (tablet/bottle) - - Nilai yang dimasukkan tidak memenuhi syarat, mohon periksa kembali - The entered value doesn't meet the criteria, please check it again - - - - - Vitamin A 2 Jam PP - >Vitamin A 2 hour post partum - Tulis tanggal minumnya - Enter date of receiving vitamin A - - - - - Ya - Yes - - - - Tidak - No - - - - - - - - Vitamin A 24 Jam PP - >Vitamin A 24 hour post partum - Tulis tanggal minumnya - Enter date of receiving vitamin A - - - - - Ya - Yes - - - - Tidak - No - - - - - - - - Integrasi Program - Do you provide Program Integration for post-partum mother? - Menunjukan detail Integrasi Program yang diberikan kepada ibu nifas - Indicating details of Program Integration provided to post-partum mother - - - - - Ya - Yes - - - - Tidak - No - - - - - - Integrasi Program / CD4 (kopi/m) - Program Integration/CD4 - - Nilai yang dimasukkan tidak memenuhi syarat, mohon periksa kembali - The entered value doesn't meet the criteria, please check it again - - - Integrasi Program / Anti Malaria - Program Integration/Anti Malaria - Obat yang diberikan untuk malaria - Type of medicines given for malaria - - - - Integrasi Program / Anti TB - Program Integration/Anti TB - Obat yang diberikan untuk TB - Type of medicines given for TB - - - - - - Integrasi Program / Foto thorax - Program Integration/Thorax photo - Foto hasil rontgen - Photos of the X-rays - - - - - dilakukan(+) - Yes - - - - tidak dilakukan (-) - No - - - - - - - - Komplikasi - Complication - Jenis komplikasi yang terjadi pada Ibu setelah persalinan - Type of post-partum complication occured - - - - - Infeksi nifas - Post-partum infection - - - - hipertensi post-partum - Post-partum hypertention - - - - post-partum sepsis - Post-partum Sepsis - - - - Perdarahan Post-Partum (PPP) - Post-partum Hemorrhage - - - - mastitis - Mastitis - - - - Lain - Lain (LN) - Other - - - - - - Lainnya - Other - Jenis komplikasi yang terjadi pada ibu setelah persalinan selain komplikasi yang disebutkan - Type of other post-partum complication occured - - - - - - Penanganan diberikan? - Give treatment? - Apakah ada penanganan yang diberikan kepada pasien? Jika iya, sebutkan. - Do you give any treatment to the patient? If yes, please describe. - - - - - Ya - Yes - - - - Tidak - No - - - - - - Deskripsikan penanganan yang diberikan - Describe the treatment you give to the patient - - - - - - Apakah Anda merujuk Ibu hamil ke fasilitas kesehatan? - Do you refer the mother to the health facility? - Menunjukkan bahwa bidan merujuk Ibu hamil ke ke tempat fasilitas kesehatan - Indicating whether midwife refers mother to the health facility - - - - - Ya - Yes - - - - Tidak - No - - - - - - Dirujuk Ke - Place of referral - Menunjukkan tempat rujukan - Indicating location of referred facility - - ... - Pusat Kesehatan Masyarakat (Puskesmas ) - Rumah Bersalin (RB) - Rumah Sakit Ibu dan Anak (RSIA) - Rumah Sakit (RS) - Lain-lain (LN) - Tidak Diujuk (TD) - - - Pusat Kesehatan Masyarakat (Puskesmas ) - Primary Health Center - Rumah Bersalin (RB) - Maternity Hospital - Rumah Sakit Ibu dan Anak (RSIA) - Maternal and Child Hospital; - Rumah Sakit (RS) - Hospital - Lain-lain (LN) - Others - Tidak Diujuk (TD) - None - - - - Lain-lain - Other - Tempat Ibu dirujuk, jika Ibu mengalami komplikasi persalinan - Other facility where mother is referred to, if mother has labor complication - - - - - - Keadaan Ibu saat tiba - Mother's condition when arrives at referred facilty - Keadaan saat ibu tiba tempat rujukan - Mother's condition when arrives at referred facility - - - - - Hidup (H) - Alive (A); - - - - Mati (M) - Dead (M) - - - - - - - - Keadaan Ibu saat pulang - Mother's condition when discharges from referred facility - Keadaan saat ibu pulang dari tempat rujukan - Mother's condition when returns home from referred facility - - - - - Hidup (H) - Alive (A); - - - - Mati (M) - Dead (M) - - - - - - Keterangan - Notes - Diisi dengan keterangan terkait rujukan - Write any additional information related to the referred facility - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kartu_pnc_visit/form_definition.json b/opensrp-bidan/src/main/assets/www/form/kartu_pnc_visit/form_definition.json deleted file mode 100644 index bfe2565..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_pnc_visit/form_definition.json +++ /dev/null @@ -1,190 +0,0 @@ -{ - "form_data_definition_version": "3", - "form": { - "bind_type": "ibu", - "ec_bind_type": "ec_ibu", - "default_bind_path": "/model/instance/PNC_visit_reviewed/", - "fields": [ - { - "name": "id", - "shouldLoadValue": true - }, - { - "name": "start", - "bind": "/model/instance/PNC_visit_reviewed/start" - }, - { - "name": "end", - "bind": "/model/instance/PNC_visit_reviewed/end" - }, - { - "name": "kiId", - "source": "ibu.kartu_ibu.id", - "shouldLoadValue": true - }, - { - "name": "childId", - "shouldLoadValue": true, - "source": "ibu.anak.id" - }, - { - "name": "cityVillage", - "bind": "/model/instance/PNC_visit_reviewed/Village", - "shouldLoadValue": true - }, - { - "name": "existing_location", - "bind": "/model/instance/PNC_visit_reviewed/existing_location", - "shouldLoadValue": true - }, - { - "name": "lokasiPeriksa", - "bind": "/model/instance/PNC_visit_reviewed/Lokasi_periksa" - }, - { - "name": "Nik", - "bind": "/model/instance/PNC_visit_reviewed/nik" - }, - { - "name": "PNCDate", - "bind": "/model/instance/PNC_visit_reviewed/tanggal_kunjungan" - }, - { - "name": "tanggalLahirAnak", - "source": "ibu.anak.tanggalLahirAnak", - "bind": "/model/instance/PNC_visit_reviewed/tanggal_lahir_anak", - "shouldLoadValue": true - }, - { - "name": "hariKeKF", - "bind": "/model/instance/PNC_visit_reviewed/hari_ke__kf" - }, - { - "name": "tandaVitalTDSistolik", - "bind": "/model/instance/PNC_visit_reviewed/tanda_vital_td_sistolik", - "source": "ibu.kartu_ibu.tandaVitalTDSistolik" - }, - { - "name": "tandaVitalTDDiastolik", - "bind": "/model/instance/PNC_visit_reviewed/tanda_vital_td_diastolik", - "source": "ibu.kartu_ibu.tandaVitalTDDiastolik" - }, - { - "name": "tandaVitalSuhu", - "bind": "/model/instance/PNC_visit_reviewed/tanda_vital_suhu" - }, - { - "name": "pelayananfe", - "bind": "/model/instance/PNC_visit_reviewed/pelayananfe" - }, - { - "name": "vitaminA2jamPP", - "bind": "/model/instance/PNC_visit_reviewed/vitaminA2jamPP" - }, - { - "name": "vitaminA24jamPP", - "bind": "/model/instance/PNC_visit_reviewed/vitaminA24jamPP" - }, - { - "name": "integrasiProgramAntiMalaria", - "bind": "/model/instance/PNC_visit_reviewed/integrasi_program_anti_malaria" - }, - { - "name": "integrasiProgramantitb", - "bind": "/model/instance/PNC_visit_reviewed/integrasi_program_anti_tb" - }, - { - "name": "integrasiProgramFotoThorax", - "bind": "/model/instance/PNC_visit_reviewed/integrasi_program_foto_thorax" - }, - { - "name": "komplikasi", - "bind": "/model/instance/PNC_visit_reviewed/komplikasi" - }, - { - "name": "komplikasiLainnya", - "bind": "/model/instance/PNC_visit_reviewed/komplikasi_lainnya" - }, - { - "name": "daruratNifas", - "bind": "/model/instance/PNC_visit_reviewed/daruratnifas" - }, - { - "name": "penangananNifas", - "bind": "/model/instance/PNC_visit_reviewed/penanganannifas" - }, - { - "name": "kondisiPascaTindakan", - "bind": "/model/instance/PNC_visit_reviewed/kondisipascatindakan" - }, - { - "name": "treatment", - "bind": "/model/instance/PNC_visit_reviewed/treatment" - }, - { - "name": "treatmentText", - "bind": "/model/instance/PNC_visit_reviewed/treatment_text" - }, - { - "name": "rujukan", - "bind": "/model/instance/PNC_visit_reviewed/rujukan" - }, - { - "name": "dirujukKe", - "bind": "/model/instance/PNC_visit_reviewed/dirujuk_ke" - }, - { - "name": "dirujukKeLainnya", - "bind": "/model/instance/PNC_visit_reviewed/dirujuk_ke_lainnya" - }, - { - "name": "keadaanTiba", - "bind": "/model/instance/PNC_visit_reviewed/keadaan_tiba" - }, - { - "name": "keterangan", - "bind": "/model/instance/PNC_visit_reviewed/keterangan" - }, - { - "name": "keadaanTiba", - "bind": "/model/instance/PNC_visit_reviewed/keadaan_tiba" - }, - { - "name": "keadaanPulang", - "bind": "/model/instance/PNC_visit_reviewed/Keadaan_pulang" - }, - { - "name": "highRiskPostPartumDistosia", - "bind": "/model/instance/PNC_visit_reviewed/high_risk_postPartum_distosia" - }, - { - "name": "highRiskPostPartumInfection", - "bind": "/model/instance/PNC_visit_reviewed/high_risk_post-partum_infection" - }, - { - "name": "highRiskPostPartumPIH", - "bind": "/model/instance/PNC_visit_reviewed/high_risk_post-partum_PIH" - }, - { - "name": "highRiskPostPartumMaternalSepsis", - "bind": "/model/instance/PNC_visit_reviewed/high_risk_post-partum_maternal_sepsis" - }, - { - "name": "highRiskPostPartumHemorrhage", - "bind": "/model/instance/PNC_visit_reviewed/high_risk_post-partum_Hemorrhage" - }, - { - "name": "highRiskPostPartumMastitis", - "bind": "/model/instance/PNC_visit_reviewed/high_risk_post-partum_Mastitis" - }, - { - "name": "submissionDate", - "bind": "/model/instance/PNC_visit_reviewed/today" - }, - { - "name": "registrationDate", - "bind": "/model/instance/PNC_visit_reviewed/reg_date" - } - ] - } -} diff --git a/opensrp-bidan/src/main/assets/www/form/kartu_pnc_visit/model.xml b/opensrp-bidan/src/main/assets/www/form/kartu_pnc_visit/model.xml deleted file mode 100644 index a013647..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kartu_pnc_visit/model.xml +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kohort_anak_tutup/form.json b/opensrp-bidan/src/main/assets/www/form/kohort_anak_tutup/form.json deleted file mode 100644 index 68dc831..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kohort_anak_tutup/form.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"penutupan_anak_mapped","title":"Penutupan Anak","sms_keyword":"penutupan_anak","default_language":"Bahasa","instance":{"encounter_type":"Penutupan Anak"},"version":"201610260356","id_string":"penutupan_anak","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":"person_address","openmrs_entity_id":"stateProvince","openmrs_entity_parent":"usual_residence"}},{"bind":{"calculate":"${District}"},"type":"calculate","name":"kabupaten","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"countyDistrict","openmrs_entity_parent":"usual_residence"}},{"bind":{"calculate":"${Village}"},"type":"calculate","name":"desa","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"cityVillage","openmrs_entity_parent":"usual_residence"}},{"bind":{"calculate":"${Sub-village}"},"type":"calculate","name":"dusun","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"address1","openmrs_entity_parent":"usual_residence"}},{"bind":{"calculate":"${Sub-district}"},"type":"calculate","name":"kecamatan","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"address2","openmrs_entity_parent":"usual_residence"}},{"name":"close_reason","hint":{"Bahasa":"Pilihlah salah satu alasan yang tersedia","English":"Select one of reasons available"},"bind":{"required":"yes"},"label":{"Bahasa":"Alasan penutupan","English":"Reason for closure?"},"instance":{"openmrs_entity_id":"160417AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"select one","children":[{"instance":{"openmrs_code":"163496AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"child_over5","label":{"Bahasa":"Umur anak >5 tahun","English":"Child's age > 5 years"}},{"instance":{"openmrs_code":"160415AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"permanent_relocation","label":{"Bahasa":"Relokasi (permanen)","English":"Relocation (permanent)"}},{"instance":{"openmrs_code":"162076AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"death_of_child","label":{"Bahasa":"Anak meninggal","English":"Child's death"}}]},{"control":{"appearance":"minimal"},"name":"child_death_cause","bind":{"relevant":"${close_reason} = 'death_of_child'"},"label":{"Bahasa":"Penyebab kematian anak","English":"Cause of child's death"},"instance":{"openmrs_entity_id":"159482AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"select one","children":[{"instance":{"openmrs_code":"226AAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"sepsis","label":{"Bahasa":"Sepsis","English":"Sepsis"}},{"instance":{"openmrs_code":"121397AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"asphyxia","label":{"Bahasa":"Asfiksia","English":"Asphyxia"}},{"instance":{"openmrs_code":"116222AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"lbw","label":{"Bahasa":"berat lahir kurang (< 2.5 kg)","English":"Low birthweight (< 2.5 kg)"}},{"instance":{"openmrs_code":"114100AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pneumonia","label":{"Bahasa":"Pneumonia","English":"Pneumonia"}},{"instance":{"openmrs_code":"142412AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"diarrhea","label":{"Bahasa":"Diare","English":"Diarrhea"}},{"instance":{"openmrs_code":"134561AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"measles","label":{"Bahasa":"Campak","English":"Measles"}},{"instance":{"openmrs_code":"115122AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"malnutrition","label":{"Bahasa":"Malnutrisi","English":"Malnutrition"}},{"instance":{"openmrs_code":"154983AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Infeksi_pernafasan_akut","label":{"Bahasa":"Infeksi pernafasan akut","English":"Acute respiratory infection"}},{"instance":{"openmrs_code":"123565AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"infeksi_pernapasan_atas","label":{"Bahasa":"Infeksi Saluran Pernapasan Atas","English":"Upper Respiratory Infection"}},{"instance":{"openmrs_code":"116128AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"malaria","label":{"Bahasa":"Malaria","English":"Malaria"}},{"instance":{"openmrs_code":"124954AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tetanus_neonatorum","label":{"Bahasa":"Tetanus Neonatorum","English":"Neonatal Tetanus"}},{"instance":{"openmrs_code":"115368AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ikterus","label":{"Bahasa":"Ikterus","English":"Jaundice"}},{"instance":{"openmrs_code":"142591AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"demam_berdarah","label":{"Bahasa":"Demam Berdarah","English":"Dengue Fever"}},{"instance":{"openmrs_code":"119975AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"congenital_abnormality","label":{"Bahasa":"Kelainan Kongenital","English":"Congenital Abnormality"}},{"instance":{"openmrs_code":"119242AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"kelainan_saluran_cerna","label":{"Bahasa":"Kelainan Saluran Cerna","English":"Gastrointestinal Abnormality"}},{"instance":{"openmrs_code":"160176AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Kelainan_syaraf","label":{"Bahasa":"Kelainan Syaraf","English":"Neurological Abnormality"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"others","label":{"Bahasa":"Lainnya","English":"Other"}},{"instance":{"openmrs_code":"1067AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"cause_not_identified","label":{"Bahasa":"Penyebab tidak teridentifikasi","English":"Unidentified cause"}}]},{"name":"child_death_cause_other","hint":{"Bahasa":"Sebutkan alasan lainnya Jika ada","English":"Write other reason, if available"},"bind":{"relevant":"${child_death_cause} = 'others'"},"label":{"Bahasa":"Lainnya","English":"Other"},"instance":{"openmrs_entity_id":"160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"text"},{"bind":{"required":"yes","jr:constraintMsg":{"Bahasa":"Tanggal kematian anak hari ini atau hari-hari sebelumnya","English":"Date of child's death today or the days before"},"relevant":"${close_reason} = 'death_of_child'","constraint":".<=${today}"},"type":"date","instance":{"openmrs_entity_id":"1543AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"name":"child_death_date","label":{"Bahasa":"Tanggal kematian anak","English":"Date of child death"}},{"instance":{"openmrs_entity_id":"160632AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"label":{"Bahasa":"Tempat Meninggal","English":"Location Died"},"type":"text","name":"place_of_death","hint":{"Bahasa":"Tempat anak dikatakan meninggal","English":"The Place where children died"}},{"instance":{"openmrs_entity_id":"163104AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"label":{"Bahasa":"Tindakan sebelum dirujuk","English":"Pre-referral management"},"type":"text","name":"prereferral_management","hint":{"Bahasa":"Tuliskan tindakan perawatan yang diberikan kepada ibu sebelum dirujuk","English":"Describe the care management provided for the mother prior to referral"}},{"name":"referred","hint":{"Bahasa":"Untuk mengetahui apakah bayi/anak tersebut dirujuk ke fasilitas lain","English":"Information whether the baby/child was referred to other facility or not"},"label":{"Bahasa":"Apakah bayi/anak ini dirujuk?","English":"Was this baby/child referred to other facility?"},"instance":{"openmrs_entity_id":"1648AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Bahasa":"Ya","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Bahasa":"Tidak","English":"No"}}]},{"instance":{"openmrs_entity_id":"161562AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"label":{"Bahasa":"Bayi/anak dirujuk ke","English":"Location of referral"},"type":"text","name":"referral_location","hint":{"Bahasa":"Untuk mengetahui bayi/anak dirujuk ke fasilitas mana","English":"Information related to the location of baby/child's referral"}},{"name":"confirm_child_close","bind":{"required":"yes"},"label":{"Bahasa":"Konfirmasi penutupan anak","English":"Confirmation of child's closure"},"instance":{"openmrs_entity":"n/a"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Bahasa":"Ya","English":"Yes"}}]},{"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/kohort_anak_tutup/form.xml b/opensrp-bidan/src/main/assets/www/form/kohort_anak_tutup/form.xml deleted file mode 100644 index bedec96..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kohort_anak_tutup/form.xml +++ /dev/null @@ -1,21 +0,0 @@ - - EC Penutupan AnakBahasa English - - - Desa : Village : - Dusun : Sub Village : - Alasan penutupanReason for closure?*Pilihlah salah satu alasan yang tersediaSelect one of reasons available - Umur anak >5 tahunChild's age > 5 yearsRelokasi (permanen)Relocation (permanent)Anak meninggalChild's deathKesalahan entryData Entry ErrorLainnyaOtherThis field is required - LainnyaOtherSebutkan alasan lainnya jika adaWrite other reason, if available - Penyebab kematian anakCause of child's death...SepsisAsfiksiaberat lahir kurang (< 2.5 kg)PneumoniaDiareCampakMalnutrisiInfeksi pernafasan akutInfeksi Saluran Pernapasan AtasMalariaTetanus NeonatorumIkterusDemam BerdarahKelainan KongenitalKelainan Saluran CernaKelainan SyarafLainnyaPenyebab tidak teridentifikasiSepsisSepsisAsfiksiaAsphyxiaberat lahir kurang (< 2.5 kg)Low birthweight (< 2.5 kg)PneumoniaPneumoniaDiareDiarrheaCampakMeaslesMalnutrisiMalnutritionInfeksi pernafasan akutAcute respiratory infectionInfeksi Saluran Pernapasan AtasUpper Respiratory InfectionMalariaMalariaTetanus NeonatorumNeonatal TetanusIkterusJaundiceDemam BerdarahDengue FeverKelainan KongenitalCongenital AbnormalityKelainan Saluran CernaGastrointestinal AbnormalityKelainan SyarafNeurological AbnormalityLainnyaOtherPenyebab tidak teridentifikasiUnidentified cause - - LainnyaOtherSebutkan alasan lainnya Jika adaWrite other reason, if available - Tanggal kematian anakDate of child death*Tanggal kematian anak hari ini atau hari-hari sebelumnyaDate of child's death today or the days beforeThis field is required - Tempat MeninggalLocation DiedTempat anak dikatakan meninggalThe Place where children died - Apakah bayi/anak ini dirujuk?Was this baby/child referred to other facility?Untuk mengetahui apakah bayi/anak tersebut dirujuk ke fasilitas lainInformation whether the baby/child was referred to other facility or not - YaYesTidakNo - Tindakan sebelum dirujukPre-referral managementTuliskan tindakan perawatan yang diberikan kepada ibu sebelum dirujukDescribe the care management provided for the mother prior to referral - Bayi/anak dirujuk keLocation of referralUntuk mengetahui bayi/anak dirujuk ke fasilitas manaInformation related to the location of baby/child's referral - Konfirmasi penutupan anakConfirmation of child's closure* - YaYesThis field is required - \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kohort_anak_tutup/form_definition.json b/opensrp-bidan/src/main/assets/www/form/kohort_anak_tutup/form_definition.json deleted file mode 100644 index 9e9e3b8..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kohort_anak_tutup/form_definition.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "form_data_definition_version": "3", - "form": { - "bind_type":"anak", - "ec_bind_type":"ec_anak", - "default_bind_path": "/model/instance/penutupan_anak_mapped/", - "fields": [ - { - "name": "id", - "shouldLoadValue": true - }, - { - "name": "existing_location", - "bind": "/model/instance/penutupan_anak_mapped/existing_location", - "shouldLoadValue": true - }, - { - "name": "id", - "shouldLoadValue": true - }, - { - "name": "desa_anak", - "bind": "/model/instance/penutupan_anak_mapped/Village", - "shouldLoadValue": true - }, - { - "name": "existing_Sub-village", - "bind": "/model/instance/penutupan_anak_mapped/Sub-village", - "shouldLoadValue": true - }, - { - "name": "closeReason", - "bind": "/model/instance/penutupan_anak_mapped/close_reason" - }, - { - "name": "childDeathCause", - "bind": "/model/instance/penutupan_anak_mapped/child_death_cause" - }, - { - "name": "childDeathCauseOther", - "bind": "/model/instance/penutupan_anak_mapped/child_death_cause_other" - }, - { - "name": "placeOfDeath", - "bind": "/model/instance/penutupan_anak_mapped/place_of_death" - }, - { - "name": "prereferralManagement", - "bind": "/model/instance/penutupan_anak_mapped/prereferral_management" - }, - { - "name": "referred", - "bind": "/model/instance/penutupan_anak_mapped/referred" - }, - { - "name": "referralLocation", - "bind": "/model/instance/penutupan_anak_mapped/referral_location" - }, - { - "name": "submissionDate", - "bind": "/model/instance/penutupan_anak_mapped/today" - }, - { - "name": "confirmChildClose", - "bind": "/model/instance/penutupan_anak_mapped/confirm_child_close" - }, - { - "name": "isClosed", - "value": "true" - } - ] - } -} diff --git a/opensrp-bidan/src/main/assets/www/form/kohort_anak_tutup/model.xml b/opensrp-bidan/src/main/assets/www/form/kohort_anak_tutup/model.xml deleted file mode 100644 index 717c595..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kohort_anak_tutup/model.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kohort_balita_kunjungan/form.json b/opensrp-bidan/src/main/assets/www/form/kohort_balita_kunjungan/form.json deleted file mode 100644 index 4be3397..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kohort_balita_kunjungan/form.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"kunjungan_balita_reviewed","title":"Kunjungan Balita","sms_keyword":"kunjungan_balita","default_language":"Bahasa","instance":{"encounter_type":"Kunjungan Balita"},"version":"201610200647","id_string":"kunjungan_balita","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":"person_address","openmrs_entity_id":"stateProvince","openmrs_entity_parent":"usual_residence"}},{"bind":{"calculate":"${District}"},"type":"calculate","name":"kabupaten","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"countyDistrict","openmrs_entity_parent":"usual_residence"}},{"bind":{"calculate":"${Village}"},"type":"calculate","name":"desa","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"cityVillage","openmrs_entity_parent":"usual_residence"}},{"bind":{"calculate":"${Sub-village}"},"type":"calculate","name":"dusun","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"address1","openmrs_entity_parent":"usual_residence"}},{"bind":{"calculate":"${Sub-district}"},"type":"calculate","name":"kecamatan","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"address2","openmrs_entity_parent":"usual_residence"}},{"name":"Lokasi_periksa","bind":{"required":"yes"},"label":{"Bahasa":"Lokasi Periksa","English":"Location of Service"},"instance":{"openmrs_entity_id":"161010AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"163121AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Posyandu","label":{"Bahasa":"Posyandu","English":"Village Outreach Post"}},{"instance":{"openmrs_code":"1588AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Polindes","label":{"Bahasa":"Polindes","English":"Health Clinic Post"}},{"instance":{"openmrs_code":"1537AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Puskesmas","label":{"Bahasa":"Puskesmas","English":"Health Facility"}},{"instance":{"openmrs_code":"1536AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Ibu_rumah","label":{"Bahasa":"Rumah Ibu","English":"Mother House"}},{"instance":{"openmrs_code":"1589AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Rumah_Sakit","label":{"Bahasa":"Rumah Sakit","English":"Hospital"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"lainya","label":{"Bahasa":"Lainnya","English":"Other"}}]},{"instance":{"openmrs_entity":"person/birthdate"},"type":"hidden","name":"tanggal_lahir","hint":{"Bahasa":"Tanggal lahir bayi injected from app","English":"Tanggal lahir bayi injected from app"}},{"bind":{"calculate":"int((${today} - ${tanggal_lahir}) div 30)"},"type":"hidden","instance":{"openmrs_entity_id":"1532AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"baby_age","hint":{"English":"month"}},{"name":"tanggal_pemeriksaan_anak_balita","hint":{"Bahasa":"Diisi tanggal kunjungan","English":"Fill in the date of check-up"},"bind":{"jr:constraintMsg":{"Bahasa":"diisi dengan tanggal hari ini atau sebelumnya","English":"Fill in the date of today or the days before"},"required":"yes","calculate":"${today}","constraint":".<=${today}"},"label":{"Bahasa":"Tanggal diperiksa","English":"Date of child check-up"},"instance":{"openmrs_entity_id":"160753AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"date"},{"name":"hasil_penimbangan_anak_balita","hint":{"Bahasa":"Diisi dengan hasil penimbangan berat badan saat pemeriksaan","English":"Fill in the child's weight on the check-up"},"bind":{"jr:constraintMsg":{"Bahasa":"nilai tidak boleh minus","English":"Minus value is not allowed"},"constraint":".>0"},"label":{"Bahasa":"Berat badan (BB) anak Balita","English":"Result of baby weighing"},"instance":{"openmrs_entity_id":"5089AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"decimal"},{"name":"hasil_pengukuran_tinggi_anak_balita","hint":{"Bahasa":"Diisi dengan hasil pengukuran tinggi badan saat pemeriksaan","English":"Fill in the child's height on the check-up"},"bind":{"jr:constraintMsg":{"Bahasa":"nilai tidak boleh minus","English":"Minus value is not allowed"},"constraint":".>0"},"label":{"Bahasa":"Tinggi badan (TB) anak Balita","English":"Length/Height (cm)"},"instance":{"openmrs_entity_id":"5090AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"decimal"},{"name":"indikator_berat_badan_bayi","hint":{"Bahasa":"Diisi dengan indikator berat badan naik, turun, tidak ditimbang atau baru ditimbang","English":"Fill in the indicator whether the child's weight is increased, decreased/constant, not weighed or it's child first weight measurement"},"bind":{"required":"yes"},"label":{"Bahasa":"Indikator pertumbuhan balita (monitor berat badan)","English":"Indicator of baby's growth (weight monitoring)"},"instance":{"openmrs_entity_id":"1854AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"122887AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"N","label":{"Bahasa":"N (jika berat bedan naik sesuai garis pertumbuhan)","English":"N (in line with healthy growth)"}},{"instance":{"openmrs_code":"140707AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"T","label":{"Bahasa":"T (tidak naik berat badannya, berat badan tetap)","English":"T (weight not increasing in line with growth chart)"}},{"instance":{"openmrs_code":"1067AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"O","label":{"Bahasa":"O (tidak ditimbang pada bulan lalu)","English":"O (child wasn't weighed last month)"}},{"instance":{"openmrs_code":"1597AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"B","label":{"Bahasa":"B (baru pertama kali ditimbang)","English":"B (it is the first time the child is weighed)"}}]},{"name":"hasil_dilakukannya_kpsp","hint":{"Bahasa":"Hasil yang didapatkan setelah dilakukan Kuesioner Pra Skrining Perkembangan (KPSP) per Bulan selama 5 tahun","English":"The result of Pre-Screening Questionnaire of Development per month for 5 years"},"label":{"Bahasa":"Hasil dilakukannya KPSP","English":"Result of Pra Screening Development Questionnaire"},"instance":{"openmrs_entity_id":"1200AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1115AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"DS","label":{"Bahasa":"KPSP dilakukan dan hasilnya sesuai (DS)","English":"Result of Pra Screening Development Questionnaire is matched"}},{"instance":{"openmrs_code":"1116AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Dm","label":{"Bahasa":"KPSP dilakukan dan hasilnya meragukan (Dm)","English":"Result of Pra Screening Development Questionnaire is inconclusive"}},{"instance":{"openmrs_code":"6022AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Dp","label":{"Bahasa":"KPSP dilakukan dan hasilnya penyimpangan (Dp)","English":"Result of Pra Screening Development Questionnaire shows deviation"}},{"instance":{"openmrs_code":"160737AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"NA","label":{"Bahasa":"KPSP tidak dilakukan","English":"Midwide doesn't provide Pra Screening Development Questionnaire"}}]},{"name":"pelayanan_vita","hint":{"Bahasa":"Menunjukkan apakah pelayanan Vitamin A diberikan saat kunjungan balita","English":"Indicating that Vitamin A service is given during child's visit"},"label":{"Bahasa":"Apakah Vitamin A diberikan saat pelayanan","English":"Is Vitamin A given during visit?"},"instance":{"openmrs_entity_id":"161534AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"jika_dilakukan","label":{"Bahasa":"Jika dilakukan (√)","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"jika_tidak_dilakukan","label":{"Bahasa":"Jika tidak dilakukan (x)","English":"No"}}]},{"instance":{"openmrs_entity_id":"159640AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"label":{"Bahasa":"Status kesehatan bayi","English":"Baby's health status"},"type":"select one","children":[{"instance":{"openmrs_code":"159405AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Sehat","label":{"Bahasa":"Sehat","English":"Healthy"}},{"instance":{"openmrs_code":"159407AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Sakit","label":{"Bahasa":"Sakit","English":"Sick"}}],"name":"status_kesehatan_bayi"},{"instance":{"openmrs_entity_id":"159947AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"label":{"Bahasa":"Penyakit","English":"Diseases"},"type":"select one","children":[{"instance":{"openmrs_code":"114100AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pneumonia","label":{"Bahasa":"Pneumonia","English":"Pneumonia"}},{"instance":{"openmrs_code":"142412AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"diarrhea","label":{"Bahasa":"Diare","English":"Diarrhea"}},{"instance":{"openmrs_code":"134561AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"measles","label":{"Bahasa":"Campak","English":"Measles"}},{"instance":{"openmrs_code":"123565AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"infeksi_pernapasan_atas","label":{"Bahasa":"Infeksi Saluran Pernapasan Atas","English":"Upper Respiratory Infection"}},{"instance":{"openmrs_code":"116128AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"malaria","label":{"Bahasa":"Malaria","English":"Malaria"}},{"instance":{"openmrs_code":"124957AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tetanus","label":{"Bahasa":"Tetanus","English":"Tetanus"}},{"instance":{"openmrs_code":"142591AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"demam_berdarah","label":{"Bahasa":"Demam Berdarah","English":"Dengue Fever"}},{"instance":{"openmrs_code":"115122AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"gizi_buruk","label":{"Bahasa":"Malnutrisi","English":"Malnutrition"}},{"instance":{"openmrs_code":"119242AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"kelainan_saluran_cerna","label":{"Bahasa":"Kelainan Saluran Cerna","English":"Gastrointestinal Abnormality"}},{"instance":{"openmrs_code":"160176AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Kelainan_syaraf","label":{"Bahasa":"Kelainan Syaraf","English":"Neurological Abnormality"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"others","label":{"Bahasa":"Lainnya","English":"Other"}}],"name":"penyakit"},{"instance":{"openmrs_entity_id":"1651AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"label":{"Bahasa":"MTBS dilakukan?","English":"Does health worker perform Treatment Management for Sick Child?"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Ya","label":{"Bahasa":"Ya","English":"Yes (+)"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Tidak","label":{"Bahasa":"Tidak","English":"No (-)"}}],"name":"mtbs"},{"name":"rujukan_bayi","hint":{"Bahasa":"Menunjukkan bahwa bidan merujuk bayi ke ke tempat fasilitas kesehatan lainnya","English":"Indicating whether midwife refers bayi to other health facility"},"label":{"Bahasa":"Apakah Anda merujuk bayi ke fasilitas kesehatan lainnya?","English":"Do you refer the baby to other facility?"},"instance":{"openmrs_entity_id":"1788AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Ya","label":{"Bahasa":"Ya","English":"Yes (+)"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Tidak","label":{"Bahasa":"Tidak","English":"No (-)"}}]},{"control":{"appearance":"minimal"},"name":"dirujuk_ke_bayi","hint":{"Bahasa":"Menunjukkan tempat rujukan","English":"Indicating location of referred facility"},"bind":{"relevant":"${rujukan_bayi} = 'Ya'"},"label":{"Bahasa":"Dirujuk Ke","English":"Place of referral"},"instance":{"openmrs_entity_id":"163145AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"select one","children":[{"instance":{"openmrs_code":"159372AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pusat_kesehatan_masyarakat","label":{"Bahasa":"Pusat Kesehatan Masyarakat (PKM)","English":"Primary Health center"}},{"instance":{"openmrs_code":"163146AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"rumah_bersalin","label":{"Bahasa":"Rumah Bersalin (RB)","English":"Maternity Hospital"}},{"instance":{"openmrs_code":"163147AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"RSIA_RSB","label":{"Bahasa":"Rumah Sakit Ibu dan Anak / Rumah Sakit Bersalin (RSIA / RSB)","English":"maternal and child hospital"}},{"instance":{"openmrs_code":"1589AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"RS","label":{"Bahasa":"Rumah Sakit","English":"Hospital"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"lainnya","label":{"Bahasa":"Lain-Lain","English":"others"}},{"instance":{"openmrs_code":"1107AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tidak_diujuk","label":{"Bahasa":"Tidak Diujuk (TD)","English":"None"}}]},{"name":"dirujukkelainnya_bayi","hint":{"Bahasa":"Menunjukkan tempat rujukan selain yang disebutkan","English":"Indicating other location of referred facility"},"bind":{"relevant":"${rujukan_bayi} = 'lainnya'"},"label":{"Bahasa":"Lainnya","English":"Other"},"instance":{"openmrs_entity_id":"160632AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"text"},{"instance":{"openmrs_entity":"n/a"},"label":{"Bahasa":"Keterangan","English":"notes"},"type":"text","name":"keterangan","hint":{"Bahasa":"Diisi keterangan, pindah domisili atau informasi lainnya","English":"Fill in the information whether the baby moves to other area, or other information"}},{"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/kohort_balita_kunjungan/form.xml b/opensrp-bidan/src/main/assets/www/form/kohort_balita_kunjungan/form.xml deleted file mode 100644 index 29d7254..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kohort_balita_kunjungan/form.xml +++ /dev/null @@ -1,398 +0,0 @@ - - - - Kunjungan Balita - - Bahasa - English - - - Desa : - - - - - - - - Dusun : - - - - - - - - - - Lokasi Periksa - Location of Service - - - - - - Posyandu - Village Outreach Post - - - - Polindes - Health Clinic Post - - - - Puskesmas - Health Facility - - - - Rumah Ibu - Mother House - - - - Rumah Sakit - Hospital - - - - Lainnya - Other - - - - - - diisi dengan tanggal hari ini atau sebelumnya - Fill in the date of today or the days before - Tanggal diperiksa - Date of child check-up - * - Diisi tanggal kunjungan - Fill in the date of check-up - - - - nilai tidak boleh minus - Minus value is not allowed - Berat badan (BB) anak Balita - Result of baby weighing - Diisi dengan hasil penimbangan berat badan saat pemeriksaan - Fill in the child's weight on the check-up - - - - nilai tidak boleh minus - Minus value is not allowed - Tinggi badan (TB) anak Balita - Length/Height (cm) - Diisi dengan hasil pengukuran tinggi badan saat pemeriksaan - Fill in the child's height on the check-up - - - - - - Indikator pertumbuhan balita (monitor berat badan) - Indicator of baby's growth (weight monitoring) - - Diisi dengan indikator berat badan naik, turun, tidak ditimbang atau baru ditimbang - Fill in the indicator whether the child's weight is increased, decreased/constant, not weighed or it's child first weight measurement - - - - - N (jika berat bedan naik sesuai garis pertumbuhan) - N (in line with healthy growth) - - - - T (tidak naik berat badannya, berat badan tetap) - T (weight not increasing in line with growth chart) - - - - O (tidak ditimbang pada bulan lalu) - O (child wasn't weighed last month) - - - - B (baru pertama kali ditimbang) - B (it is the first time the child is weighed) - - - - - - - - Hasil dilakukannya KPSP - Result of Pra Screening Development Questionnaire - Hasil yang didapatkan setelah dilakukan Kuesioner Pra Skrining Perkembangan (KPSP) per Bulan selama 5 tahun - The result of Pre-Screening Questionnaire of Development per month for 5 years - - - - - KPSP dilakukan dan hasilnya sesuai (DS) - Result of Pra Screening Development Questionnaire is matched - - - - KPSP dilakukan dan hasilnya meragukan (Dm) - Result of Pra Screening Development Questionnaire is inconclusive - - - - KPSP dilakukan dan hasilnya penyimpangan (Dp) - Result of Pra Screening Development Questionnaire shows deviation - - - - KPSP tidak dilakukan - Midwide doesn't provide Pra Screening Development Questionnaire - - - - - - - - Apakah Vitamin A diberikan saat pelayanan - Is Vitamin A given during visit? - Menunjukkan apakah pelayanan Vitamin A diberikan saat kunjungan balita - Indicating that Vitamin A service is given during child's visit - - - - - Jika dilakukan (√) - Yes - - - - Jika tidak dilakukan (x) - No - - - - - - - - Status kesehatan bayi - Baby's health status - - - - - Sehat - Healthy - - - - Sakit - Sick - - - - - - - - Penyakit - Diseases - - - - - Pneumonia - Pneumonia - - - - Diare - Diarrhea - - - - Campak - Measles - - - - Infeksi Saluran Pernapasan Atas - Upper Respiratory Infection - - - - Malaria - Malaria - - - - Tetanus - Tetanus - - - - Demam Berdarah - Dengue Fever - - - - Malnutrisi - Malnutrition - - - - Kelainan Saluran Cerna - Gastrointestinal Abnormality - - - - Kelainan Syaraf - Neurological Abnormality - - - - Lainnya - Other - - - - - - - - MTBS dilakukan? - Does health worker perform Treatment Management for Sick Child? - - - - - Ya - Yes (+) - - - - Tidak - No (-) - - - - - - - - Apakah Anda merujuk bayi ke fasilitas kesehatan lainnya? - Do you refer the baby to other facility? - Menunjukkan bahwa bidan merujuk bayi ke ke tempat fasilitas kesehatan lainnya - Indicating whether midwife refers bayi to other health facility - - - - - Ya - Yes (+) - - - - Tidak - No (-) - - - - - - Dirujuk Ke - Place of referral - Menunjukkan tempat rujukan - Indicating location of referred facility - - ... - Pusat Kesehatan Masyarakat (PKM) - Rumah Bersalin (RB) - Rumah Sakit Ibu dan Anak / Rumah Sakit Bersalin (RSIA / RSB) - Rumah Sakit - Lain-Lain - Tidak Diujuk (TD) - - - Pusat Kesehatan Masyarakat (PKM) - Primary Health center - Rumah Bersalin (RB) - Maternity Hospital - Rumah Sakit Ibu dan Anak / Rumah Sakit Bersalin (RSIA / RSB) - maternal and child hospital - Rumah Sakit - Hospital - Lain-Lain - others - Tidak Diujuk (TD) - None - - - - Lainnya - Other - Menunjukkan tempat rujukan selain yang disebutkan - Indicating other location of referred facility - - - - Keterangan - notes - Diisi keterangan, pindah domisili atau informasi lainnya - Fill in the information whether the baby moves to other area, or other information - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kohort_balita_kunjungan/form_definition.json b/opensrp-bidan/src/main/assets/www/form/kohort_balita_kunjungan/form_definition.json deleted file mode 100644 index 7ff0ff6..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kohort_balita_kunjungan/form_definition.json +++ /dev/null @@ -1,108 +0,0 @@ -{ - "form_data_definition_version": "3", - "form": { - "bind_type":"anak", - "ec_bind_type":"ec_anak", - "default_bind_path": "/model/instance/kunjungan_balita_reviewed/", - "fields": [ - { - "name": "id", - "shouldLoadValue": true - }, - { - "name": "start", - "bind": "/model/instance/kunjungan_balita_reviewed/start" - }, - { - "name": "end", - "bind": "/model/instance/kunjungan_balita_reviewed/end" - }, - { - "name": "desa_anak", - "bind": "/model/instance/kunjungan_balita_reviewed/Village", - "shouldLoadValue": true - }, - { - "name": "existing_location", - "bind": "/model/instance/kunjungan_balita_reviewed/existing_location", - "shouldLoadValue": true - }, - { - "name": "tanggalKunjunganBayiPerbulan", - "bind": "/model/instance/kunjungan_balita_reviewed/tanggal_pemeriksaan_anak_balita" - }, - { - "name": "lokasiPeriksa", - "bind": "/model/instance/kunjungan_balita_reviewed/Lokasi_periksa" - }, - { - "name": "babyAge", - "bind": "/model/instance/kunjungan_balita_reviewed/baby_age" - }, - { - "name": "kunjunganBayiKe", - "bind": "/model/instance/kunjungan_balita_reviewed/kunjungan_bayi_ke" - }, - { - "name": "panjangBayi", - "bind": "/model/instance/kunjungan_balita_reviewed/hasil_pengukuran_tinggi_anak_balita" - }, - { - "name": "beratBayi", - "bind": "/model/instance/kunjungan_balita_reviewed/hasil_penimbangan_anak_balita" - }, - { - "name": "indikatorBeratBadanBayi", - "bind": "/model/instance/kunjungan_balita_reviewed/indikator_berat_badan_bayi" - }, - { - "name": "AsiAksklusif", - "bind": "/model/instance/kunjungan_balita_reviewed/pemberian_asi_eksklusif" - }, - { - "name": "statusGizi", - "bind": "/model/instance/kunjungan_balita_reviewed/status_gizi" - }, - { - "name": "hasilDilakukannyaKPSP", - "bind": "/model/instance/kunjungan_balita_reviewed/hasil_dilakukannya_kpsp" - }, - { - "name": "kpspPenyimpangan", - "bind": "/model/instance/kunjungan_balita_reviewed/kpsp_penyimpangan" - }, - { - "name": "pelayananVita", - "bind": "/model/instance/kunjungan_balita_reviewed/pelayanan_vita" - }, - { - "name": "statusSesehatanBayi", - "bind": "/model/instance/kunjungan_balita_reviewed/status_kesehatan_bayi" - }, - { - "name": "penyakit", - "bind": "/model/instance/kunjungan_balita_reviewed/penyakit" - }, - { - "name": "mtbs", - "bind": "/model/instance/kunjungan_balita_reviewed/mtbs" - }, - { - "name": "rujukanBayi", - "bind": "/model/instance/kunjungan_balita_reviewed/rujukan_bayi" - }, - { - "name": "dirujukKeBayi", - "bind": "/model/instance/kunjungan_balita_reviewed/dirujuk_ke_bayi" - }, - { - "name": "dirujukkelainnyaBayi", - "bind": "/model/instance/kunjungan_balita_reviewed/dirujukkelainnya_bayi" - }, - { - "name": "today", - "bind": "/model/instance/kunjungan_balita_reviewed/today" - } - ] - } -} diff --git a/opensrp-bidan/src/main/assets/www/form/kohort_balita_kunjungan/model.xml b/opensrp-bidan/src/main/assets/www/form/kohort_balita_kunjungan/model.xml deleted file mode 100644 index 62e50a8..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kohort_balita_kunjungan/model.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kohort_bayi_balita_kunjungan/form.xml b/opensrp-bidan/src/main/assets/www/form/kohort_bayi_balita_kunjungan/form.xml deleted file mode 100644 index 80159ea..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kohort_bayi_balita_kunjungan/form.xml +++ /dev/null @@ -1,90 +0,0 @@ - - - - - Balita kunjungan - - - - Lokasi Periksa - - * - - Location of Service - - - - - - Posyandu - - Posyandu - - - - - Polindes - - Polindes - - - - - - - Tanggal pemeriksaan anak balita - - - - Hasil penimbangan anak Balita - - - - - - Hasil dilakukannya KPSP - - - - - Jika dilakukan KPSP hasilnya sesuai (DS) - - - - Jika dilakukan KPSP dan hasilnya meragukan (Dm) - - - - Jika dilakukan KPSP dan hasilnya penyimpangan (Dp) - - - - - - Pemberian Vit. A dan kondisi Balita saat sakit - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kohort_bayi_balita_kunjungan/form_definition.json b/opensrp-bidan/src/main/assets/www/form/kohort_bayi_balita_kunjungan/form_definition.json deleted file mode 100644 index 07cca75..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kohort_bayi_balita_kunjungan/form_definition.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "form_data_definition_version": "1", - "form": { - "bind_type": "anak", - "default_bind_path": "/model/instance/balita_kunjungan/", - "fields": [ - { - "name": "id", - "shouldLoadValue": true - }, - { - "name": "lokasiPeriksa", - "bind": "/model/instance/balita_kunjungan/Lokasi_periksa" - }, - { - "name": "tanggalKunjunganBayiPerbulan", - "bind": "/model/instance/balita_kunjungan/B05010" - }, - { - "name": "beratBadanBayiSetiapKunjunganBayiPerbulan", - "bind": "/model/instance/balita_kunjungan/B05011" - }, - { - "name": "HasilDilakukannyaKPSP", - "bind": "/model/instance/balita_kunjungan/B05012" - }, - { - "name": "PemberianVitAdankondisiBalitasaatsakit", - "bind": "/model/instance/balita_kunjungan/B01004" - }, - { - "name": "submissionDate", - "bind": "/model/instance/balita_kunjungan/today" - }, - { - "name": "registrationDate", - "bind": "/model/instance/balita_kunjungan/reg_date" - }, - { - "name": "isClosed", - "value": "false" - } - ] - } -} diff --git a/opensrp-bidan/src/main/assets/www/form/kohort_bayi_balita_kunjungan/model.xml b/opensrp-bidan/src/main/assets/www/form/kohort_bayi_balita_kunjungan/model.xml deleted file mode 100644 index 5b1bbbf..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kohort_bayi_balita_kunjungan/model.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/opensrp-bidan/src/main/assets/www/form/kohort_bayi_edit/form.xml b/opensrp-bidan/src/main/assets/www/form/kohort_bayi_edit/form.xml deleted file mode 100644 index 742cfea..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kohort_bayi_edit/form.xml +++ /dev/null @@ -1,228 +0,0 @@ - - - - Tambah Bayi - - Bahasa - English - - - - No. bayi - - - Baby's ID Number - - Diisi dengan nomor bayi - - Fill in - baby's number ID - - - - - Nama bayi - - Name of baby - - * - Apabila nama bayi belum ada, isi - dengan: Bayi 'nama_ibu'. misal nama ibu Ratna, maka isi dengan Bayi Ratna - - If - baby doesn't have a name yet, fill in: Baby "mother's name". For example, the mother's - name is Ratna, then fill in Baby Ratna - - - - - Tanggal lahir - bayi harus diisi dengan sebelum tanggal pendaftaran - - Date of baby's - birth should be filled in with the date before registration date - - Tanggal lahir - - DOB - - * - Diisi dengan tanggal lahir - bayi - - Fill in baby's birth of - date - - - - - - - Jenis kelamin - - Gender - - * - Diisi dengan jenis - kelamin bayi - - Fill in baby's gender - - - - - - Laki-Laki (L) - - Male (L); - - - - - - Perempuan ( P) - - Female - (P) - - - - - - - - - Kepemilikan - buku KIA - - Maternal and - Child Health booklet ownership (pink book) - - Diisi dengan - status kepemilikan buku KIA - - Fill in - information whether mother has MCH Book - - - - - - Ya (+) - - Yes (+); - - - - - Tidak - (-) - - No - (-) - - - - - - - Berat badan harus - lebih dari 0 - - Birthweight should be - more than 0 - - Berat lahir - - Baby's weight (gram) - - Diisi dengan berat badan bayi - saat lahir (gram) - - Fill - in baby's birthweight (gram) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kohort_bayi_edit/form_definition.json b/opensrp-bidan/src/main/assets/www/form/kohort_bayi_edit/form_definition.json deleted file mode 100644 index fa88e88..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kohort_bayi_edit/form_definition.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "form_data_definition_version": "1", - "form": { - "bind_type": "anak", - "default_bind_path": "/model/instance/tambah_bayi_reviewed/", - "fields": [ - { - "name": "id", - "shouldLoadValue": true - }, - { - "name": "motherId", - "source": "anak.ibu.id", - "shouldLoadValue": true - }, - { - "name": "tanggalPendaftaran", - "bind": "/model/instance/tambah_bayi_reviewed/tanggal_pendaftaran", - "shouldLoadValue": true - }, - { - "name": "noBayi", - "bind": "/model/instance/tambah_bayi_reviewed/no_bayi", - "shouldLoadValue": true - }, - { - "name": "namaBayi", - "bind": "/model/instance/tambah_bayi_reviewed/nama_bayi", - "shouldLoadValue": true - }, - { - "name": "tanggalLahirAnak", - "bind": "/model/instance/tambah_bayi_reviewed/tanggal_lahir_anak", - "shouldLoadValue": true - }, - { - "name": "jenisKelamin", - "bind": "/model/instance/tambah_bayi_reviewed/jenis_kelamin", - "shouldLoadValue": true - }, - { - "name": "beratLahir", - "bind": "/model/instance/tambah_bayi_reviewed/berat_lahir", - "shouldLoadValue": true - }, - { - "name": "isHighRiskChild", - "bind": "/model/instance/tambah_bayi_reviewed/is_high_risk_child", - "shouldLoadValue": true - }, - { - "name": "registrationDate", - "bind": "/model/instance/tambah_bayi_reviewed/reg_date" - }, - { - "name": "submissionDate", - "bind": "/model/instance/tambah_bayi_reviewed/today" - } - ] - } -} diff --git a/opensrp-bidan/src/main/assets/www/form/kohort_bayi_edit/model.xml b/opensrp-bidan/src/main/assets/www/form/kohort_bayi_edit/model.xml deleted file mode 100644 index 401b1a8..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kohort_bayi_edit/model.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kohort_bayi_immunization/form.json b/opensrp-bidan/src/main/assets/www/form/kohort_bayi_immunization/form.json deleted file mode 100644 index 9296679..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kohort_bayi_immunization/form.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"Baby_Immunization.xls","title":"Imunisasi Bayi","sms_keyword":"Baby_Immunization","default_language":"Bahasa","instance":{"encounter_type":"Imunisasi Bayi"},"version":"201611180158","id_string":"Baby_Immunization","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"},{"type":"hidden","name":"Sub-district"},{"type":"hidden","name":"Village"},{"type":"hidden","name":"Sub-village"},{"bind":{"calculate":"${Village}"},"type":"hidden","name":"child_existing_location","instance":{"openmrs_entity_id":"location_id","openmrs_entity":"encounter"}},{"type":"note","name":"generated_note_name_14","label":{"Bahasa":"Desa : ${child_existing_location}"}},{"instance":{"openmrs_entity_parent":"782AAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"label":{"Bahasa":"Tanggal Vaksinasi Hb 0","English":"Vaccination Date Hb 0"},"type":"date","name":"hb0","hint":{"Bahasa":"Tanggal vaksinasi Hb 0 diberikan","English":"The date when the Hb 0 vaccination is given"}},{"instance":{"openmrs_entity_parent":"886AAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"label":{"Bahasa":"Tanggal Vaksinasi BCG","English":"Vaccination date of BCG"},"type":"date","name":"bcg","hint":{"Bahasa":"Tanggal vaksinasi BCG diberikan","English":"The date when the BCG vaccination is given"}},{"instance":{"openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"label":{"Bahasa":"Tanggal Vaksinasi Polio 1","English":"Vaccination date of Polio 1"},"type":"date","name":"polio1","hint":{"Bahasa":"Tanggal vaksinasi Polio 1 diberikan","English":"The date when the Polio 1 vaccination is given"}},{"instance":{"openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"label":{"Bahasa":"Tanggal Vaksinasi DPT/HB 1","English":"Vaccination Date DPT/HB 1"},"type":"date","name":"dpt_hb1","hint":{"Bahasa":"Tanggal vaksinasi DPT/HB 1 diberikan","English":"The date when the DPT/HB 1 vaccination is given"}},{"instance":{"openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"label":{"Bahasa":"Tanggal Vaksinasi Polio 2","English":"Vaccination Date of Polio2"},"type":"date","name":"polio2","hint":{"Bahasa":"Tanggal vaksinasi Polio 2 diberikan","English":"The date when the Polio 2 vaccination is given"}},{"instance":{"openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"label":{"Bahasa":"Tanggal Vaksinasi DPT/HB 2","English":"Vaccination Date DPT/HB 2"},"type":"date","name":"dpt_hb2","hint":{"Bahasa":"Tanggal vaksinasi DPT/HB 2 diberikan","English":"The date when the DPT/HB 2 vaccination is given"}},{"instance":{"openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"label":{"Bahasa":"Tanggal Vaksinasi Polio 3","English":"Vaccination Date of Polio 3"},"type":"date","name":"polio3","hint":{"Bahasa":"Tanggal vaksinasi Polio 3 diberikan","English":"The date when the Polio 3 vaccination is given"}},{"instance":{"openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"label":{"Bahasa":"Tanggal Vaksinasi DPT/HB 3","English":"Vaccination Date DPT/HB 3"},"type":"date","name":"dpt_hb3","hint":{"Bahasa":"Tanggal vaksinasi DPT/HB 3 diberikan","English":"The date when the DPT/HB 3 vaccination is given"}},{"instance":{"openmrs_entity_parent":"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"label":{"Bahasa":"Tanggal Vaksinasi Polio 4","English":"Vaccination Date of Polio 4"},"type":"date","name":"polio4","hint":{"Bahasa":"Tanggal vaksinasi Polio 4 diberikan","English":"The date when the Polio 4 vaccination is given"}},{"instance":{"openmrs_entity_parent":"1422AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"label":{"Bahasa":"Tanggal Vaksinasi IPV","English":"Vaccination Date of IPV"},"type":"date","name":"ipv","hint":{"Bahasa":"Tanggal vaksinasi IPV diberikan","English":"The date when the IPV vaccination is given"}},{"instance":{"openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"label":{"Bahasa":"Tanggal Vaksinasi Campak","English":"Vaccination Date of Measless"},"type":"date","name":"campak","hint":{"Bahasa":"Tanggal vaksinasi Campak diberikan","English":"The date when the measles vaccination is given"}},{"instance":{"openmrs_entity_parent":"162339AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"label":{"Bahasa":"Tanggal Vaksinasi DPT/HB Lanjutan","English":"Vaccination Date for additional DPT/HB"},"type":"date","name":"dpt_hb_lanjutan","hint":{"Bahasa":"Tanggal vaksinasi DPT/HB lanjutan diberikan","English":"The date when the additional DPT/HB vaccination is given"}},{"instance":{"openmrs_entity_parent":"36AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"label":{"Bahasa":"Tanggal Vaksinasi Campak Lanjutan","English":"Vaccination Date for additional Measles"},"type":"date","name":"campak_lanjutan","hint":{"Bahasa":"Tanggal vaksinasi Campak lanjutan diberikan","English":"The date when the additional measles vaccination is given"}},{"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/kohort_bayi_immunization/form.xml b/opensrp-bidan/src/main/assets/www/form/kohort_bayi_immunization/form.xml deleted file mode 100644 index a3983bb..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kohort_bayi_immunization/form.xml +++ /dev/null @@ -1,130 +0,0 @@ - - - - Imunisasi Bayi - - Bahasa English - Desa : - - - - - - Dusun : - - - - - - - - - - - - Tanggal Vaksinasi Hb 0 - Vaccination Date Hb 0 - Tanggal vaksinasi Hb 0 diberikan - The date when the Hb 0 vaccination is given - - - Tanggal Vaksinasi BCG - Vaccination date of BCG - Tanggal vaksinasi BCG diberikan - The date when the BCG vaccination is given - - - Tanggal Vaksinasi Polio 1 - Vaccination date of Polio 1 - Tanggal vaksinasi Polio 1 diberikan - The date when the Polio 1 vaccination is given - - - Tanggal Vaksinasi DPT/HB 1 - Vaccination Date DPT/HB 1 - Tanggal vaksinasi DPT/HB 1 diberikan - The date when the DPT/HB 1 vaccination is given - - - Tanggal Vaksinasi Polio 2 - Vaccination Date of Polio2 - Tanggal vaksinasi Polio 2 diberikan - The date when the Polio 2 vaccination is given - - - Tanggal Vaksinasi DPT/HB 2 - Vaccination Date DPT/HB 2 - Tanggal vaksinasi DPT/HB 2 diberikan - The date when the DPT/HB 2 vaccination is given - - - Tanggal Vaksinasi Polio 3 - Vaccination Date of Polio 3 - Tanggal vaksinasi Polio 3 diberikan - The date when the Polio 3 vaccination is given - - - Tanggal Vaksinasi DPT/HB 3 - Vaccination Date DPT/HB 3 - Tanggal vaksinasi DPT/HB 3 diberikan - The date when the DPT/HB 3 vaccination is given - - - Tanggal Vaksinasi Polio 4 - Vaccination Date of Polio 4 - Tanggal vaksinasi Polio 4 diberikan - The date when the Polio 4 vaccination is given - - - Tanggal Vaksinasi IPV - Vaccination Date of IPV - Tanggal vaksinasi IPV diberikan - The date when the IPV vaccination is given - - - Tanggal Vaksinasi Campak - Vaccination Date of Measless - Tanggal vaksinasi Campak diberikan - The date when the measles vaccination is given - - - Tanggal Vaksinasi DPT/HB Lanjutan - Vaccination Date for additional DPT/HB - Tanggal vaksinasi DPT/HB lanjutan diberikan - The date when the additional DPT/HB vaccination is given - - - Tanggal Vaksinasi Campak Lanjutan - Vaccination Date for additional Measles - Tanggal vaksinasi Campak lanjutan diberikan - The date when the additional measles vaccination is given - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/opensrp-bidan/src/main/assets/www/form/kohort_bayi_immunization/form_definition.json b/opensrp-bidan/src/main/assets/www/form/kohort_bayi_immunization/form_definition.json deleted file mode 100644 index f3fa99e..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kohort_bayi_immunization/form_definition.json +++ /dev/null @@ -1,105 +0,0 @@ -{ - "form_data_definition_version": "3", - "form": { - "bind_type":"anak", - "ec_bind_type":"ec_anak", - "default_bind_path": "/model/instance/Baby_Immunization.xls/", - "fields": [ - { - "name": "id", - "shouldLoadValue": true - }, - { - "name": "start", - "bind": "/model/instance/Baby_Immunization.xls/start" - }, - { - "name": "end", - "bind": "/model/instance/Baby_Immunization.xls/end" - }, - { - "name": "desa_anak", - "bind": "/model/instance/Baby_Immunization.xls/Village", - "shouldLoadValue": true - }, - { - "name": "child_existing_location", - "bind": "/model/instance/Baby_Immunization.xls/child_existing_location", - "shouldLoadValue": true - }, - { - "name": "lokasiPeriksa", - "bind": "/model/instance/Baby_Immunization.xls/Lokasi_periksa" - }, - { - "name": "hb0", - "bind": "/model/instance/Baby_Immunization.xls/hb0", - "shouldLoadValue": true - }, - { - "name": "bcg", - "bind": "/model/instance/Baby_Immunization.xls/bcg", - "shouldLoadValue": true - }, - { - "name": "polio1", - "bind": "/model/instance/Baby_Immunization.xls/polio1", - "shouldLoadValue": true - }, - { - "name": "dptHb1", - "bind": "/model/instance/Baby_Immunization.xls/dpt_hb1", - "shouldLoadValue": true - }, - { - "name": "polio2", - "bind": "/model/instance/Baby_Immunization.xls/polio2", - "shouldLoadValue": true - }, - { - "name": "dptHb2", - "bind": "/model/instance/Baby_Immunization.xls/dpt_hb2", - "shouldLoadValue": true - }, - { - "name": "polio3", - "bind": "/model/instance/Baby_Immunization.xls/polio3", - "shouldLoadValue": true - }, - { - "name": "dptHb3", - "bind": "/model/instance/Baby_Immunization.xls/dpt_hb3", - "shouldLoadValue": true - }, - { - "name": "polio4", - "bind": "/model/instance/Baby_Immunization.xls/polio4", - "shouldLoadValue": true - }, - { - "name": "ipv", - "bind": "/model/instance/Baby_Immunization.xls/ipv", - "shouldLoadValue": true - }, - { - "name": "campak", - "bind": "/model/instance/Baby_Immunization.xls/campak", - "shouldLoadValue": true - }, - { - "name": "dpt_hb_lanjutan", - "bind": "/model/instance/Baby_Immunization.xls/dpt_hb_lanjutan", - "shouldLoadValue": true - }, - { - "name": "campak_lanjutan", - "bind": "/model/instance/Baby_Immunization.xls/campak_lanjutan", - "shouldLoadValue": true - }, - { - "name": "today", - "bind": "/model/instance/Baby_Immunization.xls/today" - } - ] - } -} diff --git a/opensrp-bidan/src/main/assets/www/form/kohort_bayi_immunization/model.xml b/opensrp-bidan/src/main/assets/www/form/kohort_bayi_immunization/model.xml deleted file mode 100644 index 15906bb..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kohort_bayi_immunization/model.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/opensrp-bidan/src/main/assets/www/form/kohort_bayi_kunjungan/form.json b/opensrp-bidan/src/main/assets/www/form/kohort_bayi_kunjungan/form.json deleted file mode 100644 index 0c063a1..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kohort_bayi_kunjungan/form.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"kohort_kunjungan_bayi_reviewed","title":"Kohort Kunjungan Bayi Perbulan","sms_keyword":"kohort_kunjungan_bayi_perbulan","default_language":"Bahasa","instance":{"encounter_type":"Kohort Kunjungan Bayi Perbulan"},"version":"201610191004","id_string":"kohort_kunjungan_bayi_perbulan","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":"person_address","openmrs_entity_id":"stateProvince","openmrs_entity_parent":"usual_residence"}},{"bind":{"calculate":"${District}"},"type":"calculate","name":"kabupaten","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"countyDistrict","openmrs_entity_parent":"usual_residence"}},{"bind":{"calculate":"${Village}"},"type":"calculate","name":"desa","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"cityVillage","openmrs_entity_parent":"usual_residence"}},{"bind":{"calculate":"${Sub-village}"},"type":"calculate","name":"dusun","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"address1","openmrs_entity_parent":"usual_residence"}},{"bind":{"calculate":"${Sub-district}"},"type":"calculate","name":"kecamatan","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"address2","openmrs_entity_parent":"usual_residence"}},{"name":"Lokasi_periksa","bind":{"required":"yes"},"label":{"Bahasa":"Lokasi Periksa","English":"Location of Service"},"instance":{"openmrs_entity_id":"161010AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"163121AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Posyandu","label":{"Bahasa":"Posyandu","English":"Village Outreach Post"}},{"instance":{"openmrs_code":"1588AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Polindes","label":{"Bahasa":"Polindes","English":"Health Clinic Post"}},{"instance":{"openmrs_code":"1537AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Puskesmas","label":{"Bahasa":"Puskesmas","English":"Health Facility"}},{"instance":{"openmrs_code":"1536AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Ibu_rumah","label":{"Bahasa":"Rumah Ibu","English":"Mother House"}},{"instance":{"openmrs_code":"1589AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Rumah_Sakit","label":{"Bahasa":"Rumah Sakit","English":"Hospital"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"lainya","label":{"Bahasa":"Lainnya","English":"Other"}}]},{"instance":{"openmrs_entity":"person/birthdate"},"type":"hidden","name":"tanggal_lahir","hint":{"Bahasa":"Tanggal lahir bayi injected from app","English":"Tanggal lahir bayi injected from app"}},{"name":"tanggal_kunjungan_bayi_perbulan","hint":{"Bahasa":"Diisi dengan tanggal pemeriksaan","English":"Fill in the date of check-up"},"bind":{"jr:constraintMsg":{"Bahasa":"diisi dengan tanggal hari ini atau sebelumnya","English":"Fill in the date of today or the days before"},"required":"yes","calculate":"${today}","constraint":".<=${today}"},"label":{"Bahasa":"Tanggal diperiksa","English":"Date of baby check-up per month"},"instance":{"openmrs_entity_id":"160753AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"date"},{"bind":{"calculate":"int((${today} - ${tanggal_lahir}))"},"type":"hidden","instance":{"openmrs_entity_id":"1532AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"name":"baby_age","hint":{"English":"days"}},{"bind":{"calculate":"if((${baby_age}<='60'), 1, (if(${baby_age}>='90' and ${baby_age}<='150', 2, (if(${baby_age}>='180' and ${baby_age}<='240', 3, '4')))))"},"type":"hidden","name":"kunjungan_bayi_ke","instance":{"openmrs_entity_id":"1886AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"instance":{"openmrs_entity_id":"5090AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"integer","name":"panjang_bayi","label":{"Bahasa":"Tinggi/Panjang Bayi (cm)","English":"Baby's Length (cm)"}},{"name":"berat_badan_bayi_setiap_kunjungan_bayi_perbulan","hint":{"Bahasa":"Berat badan bayi saat pemeriksaan bulan ini","English":"Baby's weight on this month's 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"},"label":{"Bahasa":"Berat badan bayi bulan ini","English":"Baby weight per check-up"},"instance":{"openmrs_entity_id":"5089AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"decimal"},{"name":"indikator_berat_bedan_bayi","hint":{"Bahasa":"Diisi N (jika berat badan naik sesuai garis pertumbuhan), T ( tidak naik berat badannya), O (tidak ditimbang pada bulan lalu), B (jika baru pertama kali ditimbang)","English":"Fill N (if the weight gain is appropriate with the growth line), T (no weight gain in this month), O (baby wasn't weighed last month), B (it's the first baby weighing)"},"bind":{"required":"yes"},"label":{"Bahasa":"Indikator pertumbuhan bayi (monitor berat badan)","English":"Indicator of baby's growth (weight monitoring)"},"instance":{"openmrs_entity_id":"1854AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"122887AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"N","label":{"Bahasa":"N (jika berat bedan naik sesuai garis pertumbuhan)","English":"N (in line with healthy growth)"}},{"instance":{"openmrs_code":"140707AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"T","label":{"Bahasa":"T (tidak naik berat badannya, berat badan tetap)","English":"T (weight not increasing in line with growth chart)"}},{"instance":{"openmrs_code":"1067AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"O","label":{"Bahasa":"O (tidak ditimbang pada bulan lalu)","English":"O (child wasn't weighed last month)"}},{"instance":{"openmrs_code":"1597AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"B","label":{"Bahasa":"B (baru pertama kali ditimbang)","English":"B (it is the first time the child is weighed)"}}]},{"control":{"appearance":"minimal"},"name":"pemberian_asi_eksklusif","hint":{"Bahasa":"Diisi E1/E2/E3/E4/E5/E6 jika bayi diberi ASI eksklusif","English":"Fill in E1/E2/E3/E4/E5/E6 if the baby receives exclusive breastfeeding"},"label":{"Bahasa":"Pemberian Asi Eksklusif","English":"Exclusive Breasfeeding delivery"},"instance":{"openmrs_entity_id":"1398AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"integer"},{"name":"status_gizi","hint":{"Bahasa":"Diisi status gizi menurut BB/TB (GB, GK, GR)","English":"Fill in baby's nutritional status according to weight/height (well-nourished, undernourished, severely undernourished)"},"label":{"Bahasa":"Status Gizi","English":"Nutritional Status"},"instance":{"openmrs_entity_id":"1854AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1115AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"GB","label":{"Bahasa":"GB","English":"Nourished"}},{"instance":{"openmrs_code":"123814AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"GK","label":{"Bahasa":"GK","English":"undernourished"}},{"instance":{"openmrs_code":"126598AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"GR","label":{"Bahasa":"GR","English":"Severely undernourished"}}]},{"name":"hasil_dilakukannya_kpsp","hint":{"Bahasa":"Hasil yang didapatkan setelah dilakukan Kuesioner Pra Skrining Perkembangan (KPSP) per Bulan","English":"The result of Pre-Screening Questionnaire of Development per month"},"label":{"Bahasa":"Hasil dilakukannya KPSP","English":"Result of Pra Screening Development Questionnaire"},"instance":{"openmrs_entity_id":"1200AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1115AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"DS","label":{"Bahasa":"KPSP dilakukan dan hasilnya sesuai (DS)","English":"Result of Pra Screening Development Questionnaire is matched"}},{"instance":{"openmrs_code":"1116AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Dm","label":{"Bahasa":"KPSP dilakukan dan hasilnya meragukan (Dm)","English":"Result of Pra Screening Development Questionnaire is inconclusive"}},{"instance":{"openmrs_code":"6022AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Dp","label":{"Bahasa":"KPSP dilakukan dan hasilnya penyimpangan (Dp)","English":"Result of Pra Screening Development Questionnaire shows deviation"}},{"instance":{"openmrs_code":"160737AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"NA","label":{"Bahasa":"KPSP tidak dilakukan","English":"Midwide doesn't provide Pra Screening Development Questionnaire"}}]},{"name":"pelayanan_vita","hint":{"Bahasa":"Menunjukkan apakah pelayanan Vitamin A diberikan saat kunjungan bayi","English":"Indicating that Vitamin A service is given during baby's visit"},"label":{"Bahasa":"Pelayanan Vit A","English":"Distribution of Vitamin A"},"instance":{"openmrs_entity_id":"161534AAAAAAAAAA\nAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"jika_dilakukan","label":{"Bahasa":"Jika dilakukan (√)","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"jika_tidak_dilakukan","label":{"Bahasa":"Jika tidak dilakukan (x)","English":"No"}}]},{"instance":{"openmrs_entity_id":"159640AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"label":{"Bahasa":"Status kesehatan bayi","English":"Baby's health status"},"type":"select one","children":[{"instance":{"openmrs_code":"159405AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Sehat","label":{"Bahasa":"Sehat","English":"Healthy"}},{"instance":{"openmrs_code":"159407AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Sakit","label":{"Bahasa":"Sakit","English":"Sick"}}],"name":"status_kesehatan_bayi"},{"instance":{"openmrs_entity_id":"159947AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"label":{"Bahasa":"Penyakit","English":"Diseases"},"type":"select one","children":[{"instance":{"openmrs_code":"114100AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pneumonia","label":{"Bahasa":"Pneumonia","English":"Pneumonia"}},{"instance":{"openmrs_code":"142412AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"diarrhea","label":{"Bahasa":"Diare","English":"Diarrhea"}},{"instance":{"openmrs_code":"134561AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"measles","label":{"Bahasa":"Campak","English":"Measles"}},{"instance":{"openmrs_code":"123565AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"infeksi_pernapasan_atas","label":{"Bahasa":"Infeksi Saluran Pernapasan Atas","English":"Upper Respiratory Infection"}},{"instance":{"openmrs_code":"116128AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"malaria","label":{"Bahasa":"Malaria","English":"Malaria"}},{"instance":{"openmrs_code":"124957AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tetanus","label":{"Bahasa":"Tetanus","English":"Tetanus"}},{"instance":{"openmrs_code":"142591AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"demam_berdarah","label":{"Bahasa":"Demam Berdarah","English":"Dengue Fever"}},{"instance":{"openmrs_code":"115122AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"gizi_buruk","label":{"Bahasa":"Malnutrisi","English":"Malnutrition"}},{"instance":{"openmrs_code":"119242AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"kelainan_saluran_cerna","label":{"Bahasa":"Kelainan Saluran Cerna","English":"Gastrointestinal Abnormality"}},{"instance":{"openmrs_code":"160176AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Kelainan_syaraf","label":{"Bahasa":"Kelainan Syaraf","English":"Neurological Abnormality"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"others","label":{"Bahasa":"Lainnya","English":"Other"}}],"name":"penyakit"},{"instance":{"openmrs_entity_id":"1651AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"label":{"Bahasa":"MTBS dilakukan?","English":"Does health worker perform Treatment Management for Sick Child?"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Ya","label":{"Bahasa":"Ya","English":"Yes (+)"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Tidak","label":{"Bahasa":"Tidak","English":"No (-)"}}],"name":"mtbs"},{"name":"rujukan_bayi","hint":{"Bahasa":"Menunjukkan bahwa bidan merujuk bayi ke ke tempat fasilitas kesehatan lainnya","English":"Indicating whether midwife refers bayi to other health facility"},"label":{"Bahasa":"Apakah Anda merujuk bayi ke fasilitas kesehatan lainnya?","English":"Do you refer the baby to other facility?"},"instance":{"openmrs_entity_id":"1788AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Ya","label":{"Bahasa":"Ya","English":"Yes (+)"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Tidak","label":{"Bahasa":"Tidak","English":"No (-)"}}]},{"control":{"appearance":"minimal"},"name":"dirujuk_ke_bayi","hint":{"Bahasa":"Menunjukkan tempat rujukan","English":"Indicating location of referred facility"},"bind":{"relevant":"${rujukan_bayi} = 'Ya'"},"label":{"Bahasa":"Dirujuk Ke","English":"Place of referral"},"instance":{"openmrs_entity_id":"163145AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"select one","children":[{"instance":{"openmrs_code":"159372AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pusat_kesehatan_masyarakat","label":{"Bahasa":"Pusat Kesehatan Masyarakat (PKM)","English":"Primary Health center"}},{"instance":{"openmrs_code":"163146AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"rumah_bersalin","label":{"Bahasa":"Rumah Bersalin (RB)","English":"Maternity Hospital"}},{"instance":{"openmrs_code":"163147AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"RSIA_RSB","label":{"Bahasa":"Rumah Sakit Ibu dan Anak / Rumah Sakit Bersalin (RSIA / RSB)","English":"maternal and child hospital"}},{"instance":{"openmrs_code":"1589AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"RS","label":{"Bahasa":"Rumah Sakit","English":"Hospital"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"lainnya","label":{"Bahasa":"Lain-Lain","English":"others"}},{"instance":{"openmrs_code":"1107AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tidak_diujuk","label":{"Bahasa":"Tidak Diujuk (TD)","English":"None"}}]},{"name":"dirujukkelainnya_bayi","hint":{"Bahasa":"Menunjukkan tempat rujukan selain yang disebutkan","English":"Indicating other location of referred facility"},"bind":{"relevant":"${rujukan_bayi} = 'lainnya'"},"label":{"Bahasa":"Lainnya","English":"Other"},"instance":{"openmrs_entity_id":"160632AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"text"},{"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/kohort_bayi_kunjungan/form.xml b/opensrp-bidan/src/main/assets/www/form/kohort_bayi_kunjungan/form.xml deleted file mode 100644 index 834b006..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kohort_bayi_kunjungan/form.xml +++ /dev/null @@ -1,423 +0,0 @@ - - - - Kohort Kunjungan Bayi Perbulan - - Bahasa - English - - - Desa : - - - - - - - - Dusun : - - - - - - - - - - Lokasi Periksa - Location of Service - - - - - Posyandu - Village Outreach Post - - - - Polindes - Health Clinic Post - - - - Puskesmas - Health Facility - - - - Rumah Ibu - Mother House - - - - Rumah Sakit - Hospital - - - - Lainnya - Other - - - - - - diisi dengan tanggal hari ini atau sebelumnya - Fill in the date of today or the days before - Tanggal diperiksa - Date of baby check-up per month - * - Diisi dengan tanggal pemeriksaan - Fill in the date of check-up - - - - Tinggi/Panjang Bayi (cm) - Baby's Length (cm) - - - - Nilai yang dimasukkan tidak memenuhi syarat, mohon periksa kembali - The entered value doesn't meet the criteria, please check it again - Berat badan bayi bulan ini - Baby weight per check-up - Berat badan bayi saat pemeriksaan bulan ini - Baby's weight on this month's check-up - - - - - - Indikator pertumbuhan bayi (monitor berat badan) - Indicator of baby's growth (weight monitoring) - * - Diisi N (jika berat badan naik sesuai garis pertumbuhan), T ( tidak naik berat badannya), O (tidak ditimbang pada bulan lalu), B (jika baru pertama kali ditimbang) - Fill N (if the weight gain is appropriate with the growth line), T (no weight gain in this month), O (baby wasn't weighed last month), B (it's the first baby weighing) - - - - - N (jika berat bedan naik sesuai garis pertumbuhan) - N (in line with healthy growth) - - - - T (tidak naik berat badannya, berat badan tetap) - T (weight not increasing in line with growth chart) - - - - O (tidak ditimbang pada bulan lalu) - O (child wasn't weighed last month) - - - - B (baru pertama kali ditimbang) - B (it is the first time the child is weighed) - - - - - - Pemberian Asi Eksklusif - Exclusive Breasfeeding delivery - Diisi E1/E2/E3/E4/E5/E6 jika bayi diberi ASI eksklusif - Fill in E1/E2/E3/E4/E5/E6 if the baby receives exclusive breastfeeding - - - - - - Status Gizi - Nutritional Status - Diisi status gizi menurut BB/TB (GB, GK, GR) - Fill in baby's nutritional status according to weight/height (well-nourished, undernourished, severely undernourished) - - - - - GB - Nourished - - - - GK - undernourished - - - - GR - Severely undernourished - - - - - - - - Hasil dilakukannya KPSP - Result of Pra Screening Development Questionnaire - Hasil yang didapatkan setelah dilakukan Kuesioner Pra Skrining Perkembangan (KPSP) per Bulan - The result of Pre-Screening Questionnaire of Development per month - - - - - KPSP dilakukan dan hasilnya sesuai (DS) - Result of Pra Screening Development Questionnaire is matched - - - - KPSP dilakukan dan hasilnya meragukan (Dm) - Result of Pra Screening Development Questionnaire is inconclusive - - - - KPSP dilakukan dan hasilnya penyimpangan (Dp) - Result of Pra Screening Development Questionnaire shows deviation - - - - KPSP tidak dilakukan - Midwide doesn't provide Pra Screening Development Questionnaire - - - - - - - - Pelayanan Vit A - Distribution of Vitamin A - Menunjukkan apakah pelayanan Vitamin A diberikan saat kunjungan bayi - Indicating that Vitamin A service is given during baby's visit - - - - - Jika dilakukan (√) - Yes - - - - Jika tidak dilakukan (x) - No - - - - - - - - Status kesehatan bayi - Baby's health status - - - - - Sehat - Healthy - - - - Sakit - Sick - - - - - - - - Penyakit - Diseases - - - - - Pneumonia - Pneumonia - - - - Diare - Diarrhea - - - - Campak - Measles - - - - Infeksi Saluran Pernapasan Atas - Upper Respiratory Infection - - - - Malaria - Malaria - - - - Tetanus - Tetanus - - - - Demam Berdarah - Dengue Fever - - - - Malnutrisi - Malnutrition - - - - Kelainan Saluran Cerna - Gastrointestinal Abnormality - - - - Kelainan Syaraf - Neurological Abnormality - - - - Lainnya - Other - - - - - - - - MTBS dilakukan? - Does health worker perform Treatment Management for Sick Child? - - - - - Ya - Yes (+) - - - - Tidak - No (-) - - - - - - - - Apakah Anda merujuk bayi ke fasilitas kesehatan lainnya? - Do you refer the baby to other facility? - Menunjukkan bahwa bidan merujuk bayi ke ke tempat fasilitas kesehatan lainnya - Indicating whether midwife refers bayi to other health facility - - - - - Ya - Yes (+) - - - - Tidak - No (-) - - - - - - Dirujuk Ke - Place of referral - Menunjukkan tempat rujukan - Indicating location of referred facility - - ... - Pusat Kesehatan Masyarakat (PKM) - Rumah Bersalin (RB) - Rumah Sakit Ibu dan Anak / Rumah Sakit Bersalin (RSIA / RSB) - Rumah Sakit - Lain-Lain - Tidak Diujuk (TD) - - - Pusat Kesehatan Masyarakat (PKM) - Primary Health center - Rumah Bersalin (RB) - Maternity Hospital - Rumah Sakit Ibu dan Anak / Rumah Sakit Bersalin (RSIA / RSB) - maternal and child hospital - Rumah Sakit - Hospital - Lain-Lain - others - Tidak Diujuk (TD) - None - - - - Lainnya - Other - Menunjukkan tempat rujukan selain yang disebutkan - Indicating other location of referred facility - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kohort_bayi_kunjungan/form_definition.json b/opensrp-bidan/src/main/assets/www/form/kohort_bayi_kunjungan/form_definition.json deleted file mode 100644 index 395d9f1..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kohort_bayi_kunjungan/form_definition.json +++ /dev/null @@ -1,109 +0,0 @@ -{ - "form_data_definition_version": "3", - "form": { - "bind_type":"anak", - "ec_bind_type":"ec_anak", - "default_bind_path": "/model/instance/kohort_kunjungan_bayi_reviewed/", - "fields": [ - { - "name": "id", - "shouldLoadValue": true - }, - { - "name": "start", - "bind": "/model/instance/kohort_kunjungan_bayi_reviewed/start" - }, - { - "name": "end", - "bind": "/model/instance/kohort_kunjungan_bayi_reviewed/end" - }, - { - "name": "desa_anak", - "bind": "/model/instance/kohort_kunjungan_bayi_reviewed/Village", - "shouldLoadValue": true - }, - { - "name": "existing_location", - "bind": "/model/instance/kohort_kunjungan_bayi_reviewed/existing_location", - "shouldLoadValue": true - }, - { - "name": "tanggalKunjunganBayiPerbulan", - "bind": "/model/instance/kohort_kunjungan_bayi_reviewed/tanggal_kunjungan_bayi_perbulan" - }, - { - "name": "lokasiPeriksa", - "bind": "/model/instance/kohort_kunjungan_bayi_reviewed/Lokasi_periksa" - }, - { - "name": "babyAge", - "bind": "/model/instance/kohort_kunjungan_bayi_reviewed/baby_age" - }, - { - "name": "kunjunganBayiKe", - "bind": "/model/instance/kohort_kunjungan_bayi_reviewed/kunjungan_bayi_ke" - }, - { - "name": "panjang_bayi", - "bind": "/model/instance/kohort_kunjungan_bayi_reviewed/panjang_bayi" - }, - { - "name": "beratBayi", - "bind": "/model/instance/kohort_kunjungan_bayi_reviewed/berat_badan_bayi_setiap_kunjungan_bayi_perbulan" - }, - { - "name": "indikatorBeratBadanBayi", - "bind": "/model/instance/kohort_kunjungan_bayi_reviewed/indikator_berat_bedan_bayi" - }, - { - "name": "AsiAksklusif", - "bind": "/model/instance/kohort_kunjungan_bayi_reviewed/pemberian_asi_eksklusif" - }, - { - "name": "statusGizi", - "bind": "/model/instance/kohort_kunjungan_bayi_reviewed/status_gizi" - }, - { - "name": "hasilDilakukannyaKPSP", - "bind": "/model/instance/kohort_kunjungan_bayi_reviewed/hasil_dilakukannya_kpsp" - }, - { - "name": "kpspPenyimpangan", - "bind": "/model/instance/kohort_kunjungan_bayi_reviewed/kpsp_penyimpangan" - }, - { - "name": "pelayananVita", - "bind": "/model/instance/kohort_kunjungan_bayi_reviewed/pelayanan_vita" - }, - { - "name": "statusSesehatanBayi", - "bind": "/model/instance/kohort_kunjungan_bayi_reviewed/status_kesehatan_bayi" - }, - - { - "name": "penyakit", - "bind": "/model/instance/kohort_kunjungan_bayi_reviewed/penyakit" - }, - { - "name": "mtbs", - "bind": "/model/instance/kohort_kunjungan_bayi_reviewed/mtbs" - }, - { - "name": "rujukanBayi", - "bind": "/model/instance/kohort_kunjungan_bayi_reviewed/rujukan_bayi" - }, - { - "name": "dirujukKeBayi", - "bind": "/model/instance/kohort_kunjungan_bayi_reviewed/dirujuk_ke_bayi" - }, - { - "name": "dirujukkelainnyaBayi", - "bind": "/model/instance/kohort_kunjungan_bayi_reviewed/dirujukkelainnya_bayi" - }, - { - "name": "submissionDate", - "bind": "/model/instance/kohort_kunjungan_bayi_reviewed/today" - } - ] - } -} diff --git a/opensrp-bidan/src/main/assets/www/form/kohort_bayi_kunjungan/model.xml b/opensrp-bidan/src/main/assets/www/form/kohort_bayi_kunjungan/model.xml deleted file mode 100644 index a13a55b..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kohort_bayi_kunjungan/model.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kohort_bayi_neonatal_period/form.json b/opensrp-bidan/src/main/assets/www/form/kohort_bayi_neonatal_period/form.json deleted file mode 100644 index 6d0444c..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kohort_bayi_neonatal_period/form.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"kunjungan_neonatal_reviewed","title":"Kunjungan neonatal","sms_keyword":"kunjungan_neonatal","default_language":"Bahasa","instance":{"encounter_type":"Kunjungan neonatal"},"version":"201703060814","id_string":"kunjungan_neonatal","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"}},{"instance":{"openmrs_entity_id":"161010AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"label":{"Bahasa":"Lokasi Periksa","English":"Location of Service"},"type":"select one","children":[{"instance":{"openmrs_code":"163121AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Posyandu","label":{"Bahasa":"Posyandu","English":"Village Outreach Post"}},{"instance":{"openmrs_code":"163512AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Polindes","label":{"Bahasa":"Polindes","English":"Maternal & Child Health Post"}},{"instance":{"openmrs_code":"159372AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Puskesmas","label":{"Bahasa":"Puskesmas","English":"Primary Health Center"}},{"instance":{"openmrs_code":"1536AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Rumah_Ibu","label":{"Bahasa":"Rumah Ibu","English":"Mother House"}},{"instance":{"openmrs_code":"1589AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Rumah_Sakit","label":{"Bahasa":"Rumah Sakit","English":"Hospital"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Lainnya","label":{"Bahasa":"Lainnya","English":"Other"}}],"name":"lokasi_periksa"},{"name":"neonatal","hint":{"Bahasa":"Menunjukkan jenis kunjungan bayi Neonatal yang sedang dilakukan","English":"Indicating types of Neonatal check-up provided"},"label":{"Bahasa":"Kunjungan Neonatal","English":"Neonatal Period"},"instance":{"openmrs_entity_id":"163497AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"select one","children":[{"instance":{"openmrs_code":"163498"},"name":"5_jam_pertama","label":{"Bahasa":"Saat Lahir < 5 jam","English":"After delivery < 5 hours"}},{"instance":{"openmrs_code":"163499"},"name":"Pertama","label":{"Bahasa":"Pertama (6 - 48 jam)","English":"first neonatal check-up 6-48 hous"}},{"instance":{"openmrs_code":"163500"},"name":"Kedua","label":{"Bahasa":"Kedua (3 - 7 hari)","English":"second neonatal check-up day 3-7 (date of check-up)"}},{"instance":{"openmrs_code":"163501"},"name":"Ketiga","label":{"Bahasa":"Ketiga (8 - 28 hari)","English":"third neonatal check-up day 8 - 28 (date of check-up )"}}]},{"name":"tanggal_kunjungan_neonatal","hint":{"Bahasa":"Menunjukkan tanggal kunjungan Neonatal","English":"Indicating the date of the Neonatal check-up"},"bind":{"jr:constraintMsg":{"Bahasa":"diisi dengan tanggal hari ini atau sebelumnya","English":"Fill in the date of today or the days before"},"constraint":".<=${today}"},"label":{"Bahasa":"Tanggal kunjungan","English":"Visit date"},"instance":{"openmrs_entity_id":"160753AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"date"},{"name":"jenis_pelayanan","hint":{"Bahasa":"Menunjukkan jenis pelayanan yang diberikan kepada bayi","English":"Indicating types of services provided to the baby"},"label":{"Bahasa":"Jenis pelayanan yang diberikan","English":"Treatment given to baby"},"instance":{"openmrs_entity_id":"1651AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"select all that apply","children":[{"instance":{"openmrs_code":"161543AAAAAAAAAA\nAAAAAAAAAAAAAAAA"},"name":"first_breast_feeding","label":{"Bahasa":"First Breast feeding (IMD)","English":"first_breast_feeding"}},{"instance":{"openmrs_code":"86353AAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"vit-k_injection","label":{"Bahasa":"Vit-K Injection (Vit-k)","English":"vit-k_injection"}},{"instance":{"openmrs_code":"1520AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"salep_mata","label":{"Bahasa":"Salep Mata","English":"Eye ointment"}}]},{"instance":{"openmrs_entity_parent":"1651AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_id":"160632AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"label":{"Bahasa":"Ceklis pemeriksaan neonatal","English":"Checklist of neonatal check-up"},"type":"select one","children":[{"instance":{"openmrs_code":"n/a"},"name":"pemeriksaan_infeksi","label":{"Bahasa":"Memeriksa kemungkinan penyakit sangat berat atau infeksi bakteri","English":"Examination of infection"}},{"instance":{"openmrs_code":"n/a"},"name":"pemeriksaan_diare","label":{"Bahasa":"Memeriksa adanya diare","English":"Examination of diarrhea"}},{"instance":{"openmrs_code":"n/a"},"name":"pemeriksaan_ikterus","label":{"Bahasa":"Memeriksa ikterus","English":"Examination of icterus"}},{"instance":{"openmrs_code":"n/a"},"name":"pemeriksaan_asi","label":{"Bahasa":"Memeriksa kemungkinan berat badan rendah dan/atau masalah pemberian ASI","English":"Examination of breasfteeding"}},{"instance":{"openmrs_code":"n/a"},"name":"pemeriksaan_vitk","label":{"Bahasa":"Memeriksa status pemberian Vitamin K","English":"Examination of vitamin K"}},{"instance":{"openmrs_code":"n/a"},"name":"pemeriksaan_hb0","label":{"Bahasa":"Memeriksa status imunisasi Hb0","English":"Examination of Hb 0 vaccination"}},{"instance":{"openmrs_code":"n/a"},"name":"pemeriksaan_keluhan_lain","label":{"Bahasa":"Memeriksa keluhan lain","English":"Other examination of neonatal"}},{"instance":{"openmrs_code":"n/a"},"name":"pemeriksaan_keluhan_ibu","label":{"Bahasa":"Memeriksa masalah/keluhan ibu","English":"Other examination of mother"}}],"name":"pemeriksaan_neonatal"},{"instance":{"openmrs_entity_id":"5089AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"integer","name":"berat_bayi","label":{"Bahasa":"Berat badan (kg)","English":"Weight (kg)"}},{"instance":{"openmrs_entity_id":"5090AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"integer","name":"panjang_bayi","label":{"Bahasa":"Panjang badan (cm)","English":"Length (cm)"}},{"instance":{"openmrs_entity_id":"5088AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"decimal","name":"suhu_bayi","label":{"Bahasa":"Suhu (Celcius)","English":"Temperature (celcius)"}},{"instance":{"openmrs_entity_id":"5242AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"integer","name":"frekuensi_napas","label":{"Bahasa":"Frekuensi napas (kali/menit)","English":"Respiration rate (time/minute)"}},{"instance":{"openmrs_entity_id":"5087AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"integer","name":"frekuensi_denyut_jantung","label":{"Bahasa":"Frekuensi denyut jantung (kali/menit)","English":"Pulse (time/minute)"}},{"name":"kondisi_bayi","hint":{"Bahasa":"Menunjukkan kondisi bayi","English":"Indicating baby's condition"},"label":{"Bahasa":"Kondisi bayi","English":"Baby's condition"},"instance":{"openmrs_entity_id":"159926AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1855AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"sehat","label":{"Bahasa":"Sehat","English":"Healthy"}},{"instance":{"openmrs_code":"137793AAAAAAAAAA\nAAAAAAAAAAAAAAAA"},"name":"sakit","label":{"Bahasa":"Sakit","English":"Sick"}},{"instance":{"openmrs_code":"159AAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"meninggal","label":{"Bahasa":"Meninggal","English":"Dead"}}]},{"instance":{"openmrs_entity_id":"1410AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"label":{"Bahasa":"Pemberian Imunisasi HB0","English":"Administration of HB0 Immunization"},"type":"date","name":"pemberian_imunisasi_hb","hint":{"Bahasa":"Menunjukkan apakah bayi diberikan imunisasi Hb","English":"Indicating whether baby receives Hb immunization"}},{"name":"komplikasi_neonatal","hint":{"Bahasa":"Diisi dengan klasifikasi/diagnosis komplikasi/penyakit yang diderita bayi","English":"Fill in the classification/diagnose of complication/disease the baby has"},"bind":{"relevant":"${kondisi_bayi} = 'sakit'"},"label":{"Bahasa":"Klasifikasi/Diagnosis komplikasi/penyakit yang diderita bayi","English":"Classification/Diagnose of complication/disease the baby has"},"instance":{"openmrs_entity_id":"164122AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"select all that apply","children":[{"instance":{"openmrs_code":"121397AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"asfiksia","label":{"Bahasa":"Asfiksia","English":"Asphyxia"}},{"instance":{"openmrs_code":"147277AAAAAAAAAA\nAAAAAAAAAAAAAAAA"},"name":"trauma_lahir","label":{"Bahasa":"Trauma Lahir","English":"Birth Trauma"}},{"instance":{"openmrs_code":"133393AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"infeksi","label":{"Bahasa":"Infeksi","English":"Infection"}},{"instance":{"openmrs_code":"119975AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"kelainan_kongenital","label":{"Bahasa":"Kelainan Kongenital","English":"Congenital Abnormality"}},{"instance":{"openmrs_code":"162317AAAAAAAAAA\nAAAAAAAAAAAAAAAA"},"name":"hipotermi","label":{"Bahasa":"Hipotermi","English":"Hypothermia"}},{"instance":{"openmrs_code":"124954AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tetanus_neonatorum","label":{"Bahasa":"Tetanus Neonatorum","English":"Neonatal Tetanus"}},{"instance":{"openmrs_code":"226AAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"sepsis","label":{"Bahasa":"Sepsis","English":"Sepsis"}},{"instance":{"openmrs_code":"115368AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ikterus","label":{"Bahasa":"Ikterus","English":"Jaundice"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"lain_lain","label":{"Bahasa":"Lain-lain","English":"Others"}}]},{"bind":{"relevant":"selected(${komplikasi_neonatal}, 'lain_lain')"},"type":"text","instance":{"openmrs_entity_id":"160632AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"name":"komplikasi_neonatal_lain","label":{"Bahasa":"Komplikasi lainnya","English":"Other complication"}},{"name":"komplikasi_neonatal_tertangani","bind":{"relevant":"${kondisi_bayi} = 'sakit'"},"label":{"Bahasa":"Komplikasi Tertangani","English":"Complication is treated"},"instance":{"openmrs_entity_id":"160749AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ya","label":{"Bahasa":"ya","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tidak","label":{"Bahasa":"tidak","English":"No"}}]},{"name":"rujukan_neonatal","hint":{"Bahasa":"Menunjukkan bahwa bidan merujuk bayi ke ke tempat fasilitas kesehatan","English":"Indicating whether midwife refers baby to the health facility"},"bind":{"relevant":"${kondisi_bayi} = 'sakit'"},"label":{"Bahasa":"Apakah Anda merujuk bayi ke fasilitas kesehatan?","English":"Do you refer the baby to the health facility?"},"instance":{"openmrs_entity_id":"1788AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ya","label":{"Bahasa":"ya","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tidak","label":{"Bahasa":"tidak","English":"No"}}]},{"control":{"appearance":"minimal"},"name":"dirujuk_ke_neonatal","hint":{"Bahasa":"Menunjukkan tempat rujukan","English":"Indicating location of referred facility"},"bind":{"relevant":"${rujukan_neonatal} = 'Ya'"},"label":{"Bahasa":"Dirujuk Ke","English":"Place of referral"},"instance":{"openmrs_entity_id":"163145AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"select one","children":[{"instance":{"openmrs_code":"159372AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pusat_kesehatan_masyarakat","label":{"Bahasa":"Pusat Kesehatan Masyarakat (PKM)","English":"Primary Health center"}},{"instance":{"openmrs_code":"163146AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"rumah_bersalin","label":{"Bahasa":"Rumah Bersalin (RB)","English":"Maternity Hospital"}},{"instance":{"openmrs_code":"163147AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"RSIA_RSB","label":{"Bahasa":"Rumah Sakit Ibu dan Anak / Rumah Sakit Bersalin (RSIA / RSB)","English":"maternal and child hospital"}},{"instance":{"openmrs_code":"1589AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"RS","label":{"Bahasa":"Rumah Sakit","English":"Hospital"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"lainnya","label":{"Bahasa":"Lain-Lain","English":"others"}},{"instance":{"openmrs_code":"1107AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tidak_dirujuk","label":{"Bahasa":"Tidak Diujuk (TD)","English":"None"}}]},{"name":"dirujukkelainnya_neonatal","hint":{"Bahasa":"Menunjukkan tempat rujukan selain yang disebutkan","English":"Indicating other location of referred facility"},"bind":{"relevant":"${dirujuk_ke_neonatal} = 'lainnya'"},"label":{"Bahasa":"Lainnya","English":"Other"},"instance":{"openmrs_entity_id":"160632AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"text"},{"name":"confirm_of_death","bind":{"relevant":"${kondisi_bayi} = 'meninggal'","required":"yes"},"label":{"Bahasa":"Konfirmasi Kematian anak dan lanjutkan ke Close anak form","English":"Confirmation of infant's death and continue to Child Regsiter's Closure"},"instance":{"openmrs_entity":"n/a"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ya","label":{"Bahasa":"ya","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tidak","label":{"Bahasa":"tidak","English":"No"}}]},{"instance":{"openmrs_entity_id":"encounter_end","openmrs_entity":"encounter"},"type":"end","name":"end"},{"bind":{"calculate":"if(${komplikasi_neonatal} = 'ikterus', 'yes', 'no')"},"type":"calculate","name":"high_risk_child_iterus","instance":{"openmrs_entity_id":"115368AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"bind":{"calculate":"if(${komplikasi_neonatal} = 'asfiksia', 'yes', 'no')"},"type":"calculate","name":"high_risk_child_asphyxia","instance":{"openmrs_entity_id":"121397AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"bind":{"calculate":"if(${komplikasi_neonatal} = 'kelainan_kongenital', 'yes', 'no')"},"type":"calculate","name":"high_risk_child_congenital_abnormality","instance":{"openmrs_entity_id":"119975AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"bind":{"calculate":"if(${komplikasi_neonatal} = 'trauma_lahir', 'yes', 'no')"},"type":"calculate","name":"high_risk_child_birth_trauma","instance":{"openmrs_entity_id":"147277AAAAAAAAAA\nAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"bind":{"calculate":"if(${komplikasi_neonatal} = 'infeksi', 'yes', 'no')"},"type":"calculate","name":"high_risk_child_infection","instance":{"openmrs_entity_id":"133393AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"bind":{"calculate":"if(${komplikasi_neonatal} = 'hipotermi', 'yes', 'no')"},"type":"calculate","name":"high_risk_child_hypothermia","instance":{"openmrs_entity_id":"162317AAAAAAAAAA\nAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"bind":{"calculate":"if(${komplikasi_neonatal} = 'tetanus_neonatorumi', 'yes', 'no')"},"type":"calculate","name":"high_risk_child_tetanus_neonatorum","instance":{"openmrs_entity_id":"124954AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"bind":{"calculate":"if(${komplikasi_neonatal} = 'sepsis', 'yes', 'no')"},"type":"calculate","name":"high_risk_child_neonatal_sepsis","instance":{"openmrs_entity_id":"226AAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"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/kohort_bayi_neonatal_period/form.xml b/opensrp-bidan/src/main/assets/www/form/kohort_bayi_neonatal_period/form.xml deleted file mode 100644 index 5bddc1e..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kohort_bayi_neonatal_period/form.xml +++ /dev/null @@ -1,472 +0,0 @@ - - - - Kunjungan neonatal - - Bahasa - English - - - Desa : - - - - - - - - Dusun : - - - - - - - - - - Lokasi Periksa - Location of Service - - - - - Posyandu - Village Outreach Post - - - - Polindes - Maternal & Child Health Post - - - - Puskesmas - Primary Health Center - - - - Rumah Ibu - Mother House - - - - Rumah Sakit - Hospital - - - - Lainnya - Other - - - - - - - - Kunjungan Neonatal - Neonatal Period - Menunjukkan jenis kunjungan bayi Neonatal yang sedang dilakukan - Indicating types of Neonatal check-up provided - - - - - Saat Lahir < 5 jam - After delivery < 5 hours - - - - Pertama (6 - 48 jam) - first neonatal check-up 6-48 hous - - - - Kedua (3 - 7 hari) - second neonatal check-up day 3-7 (date of check-up) - - - - Ketiga (8 - 28 hari) - third neonatal check-up day 8 - 28 (date of check-up ) - - - - - - Tanggal kunjungan - Visit date - Menunjukkan tanggal kunjungan Neonatal - Indicating the date of the Neonatal check-up - - diisi dengan tanggal setelah tanggal lahir - Fill in the date of today or the days after - - - - - Jenis pelayanan yang diberikan - Treatment given to baby - Menunjukkan jenis pelayanan yang diberikan kepada bayi - Indicating types of services provided to the baby - - - - - First Breast feeding (IMD) - first_breast_feeding - - - - Vit-K Injection (Vit-k) - vit-k_injection - - - - Salep Mata - Eye ointment - - - - - - - - Ceklis pemeriksaan neonatal - Checklist of neonatal check-up - - - - - Memeriksa kemungkinan penyakit sangat berat atau infeksi bakteri - Examination of infection - - - - Memeriksa adanya diare - Examination of diarrhea - - - - Memeriksa ikterus - Examination of icterus - - - - Memeriksa kemungkinan berat badan rendah dan/atau masalah pemberian ASI - Examination of breasfteeding - - - - Memeriksa status pemberian Vitamin K - Examination of vitamin K - - - - Memeriksa status imunisasi Hb0 - Examination of Hb 0 vaccination - - - - Memeriksa keluhan lain - Other examination of neonatal - - - - Memeriksa masalah/keluhan ibu - Other examination of mother - - - - - - Berat badan (kg) - Weight (kg) - - - - Panjang badan (cm) - Length (cm) - - - - Suhu (Celcius) - Temperature (celcius) - - - - Frekuensi napas (kali/menit) - Respiration rate (time/minute) - - - - Frekuensi denyut jantung (kali/menit) - Pulse (time/minute) - - - - - - Kondisi bayi - Baby's condition - Menunjukkan kondisi bayi - Indicating baby's condition - - - - - Sehat - Healthy - - - - Sakit - Sick - - - - Meninggal - Dead - - - - - - Pemberian Imunisasi HB0 - Administration of HB0 Immunization - Menunjukkan apakah bayi diberikan imunisasi Hb - Indicating whether baby receives Hb immunization - - - - - - Klasifikasi/Diagnosis komplikasi/penyakit yang diderita bayi - Classification/Diagnose of complication/disease the baby has - Diisi dengan klasifikasi/diagnosis komplikasi/penyakit yang diderita bayi - Fill in the classification/diagnose of complication/disease the baby has - - - - - Asfiksia - Asphyxia - - - - Trauma Lahir - Birth Trauma - - - - Infeksi - Infection - - - - Kelainan Kongenital - Congenital Abnormality - - - - Hipotermi - Hypothermia - - - - Tetanus Neonatorum - Neonatal Tetanus - - - - Sepsis - Sepsis - - - - Ikterus - Jaundice - - - - Lain-lain - Others - - - - - - Komplikasi lainnya - Other complication - - - - - - Komplikasi Tertangani - Complication is treated - - - - - ya - Yes - - - - tidak - No - - - - - - - - Apakah Anda merujuk bayi ke fasilitas kesehatan? - Do you refer the baby to the health facility? - Menunjukkan bahwa bidan merujuk bayi ke ke tempat fasilitas kesehatan - Indicating whether midwife refers baby to the health facility - - - - - ya - Yes - - - - tidak - No - - - - - - Dirujuk Ke - Place of referral - Menunjukkan tempat rujukan - Indicating location of referred facility - - ... - Pusat Kesehatan Masyarakat (PKM) - Rumah Bersalin (RB) - Rumah Sakit Ibu dan Anak / Rumah Sakit Bersalin (RSIA / RSB) - Rumah Sakit - Lain-Lain - Tidak Diujuk (TD) - - - Pusat Kesehatan Masyarakat (PKM) - Primary Health center - Rumah Bersalin (RB) - Maternity Hospital - Rumah Sakit Ibu dan Anak / Rumah Sakit Bersalin (RSIA / RSB) - maternal and child hospital - Rumah Sakit - Hospital - Lain-Lain - others - Tidak Diujuk (TD) - None - - - - Lainnya - Other - Menunjukkan tempat rujukan selain yang disebutkan - Indicating other location of referred facility - - - - - - Konfirmasi Kematian anak dan lanjutkan ke Close anak form - Confirmation of infant's death and continue to Child Regsiter's Closure - * - - - - - ya - Yes - - - - tidak - No - - - - This field is required - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kohort_bayi_neonatal_period/form_definition.json b/opensrp-bidan/src/main/assets/www/form/kohort_bayi_neonatal_period/form_definition.json deleted file mode 100644 index ba318f5..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kohort_bayi_neonatal_period/form_definition.json +++ /dev/null @@ -1,149 +0,0 @@ -{ - "form_data_definition_version":"2", - "form":{ - "bind_type":"anak", - "ec_bind_type":"ec_anak", - "default_bind_path":"/model/instance/kunjungan_neonatal_reviewed/", - "fields":[ - { - "name":"id", - "shouldLoadValue":true - }, - { - "name":"relationalid", - "shouldLoadValue":true - }, - { - "name": "start", - "bind": "/model/instance/kunjungan_neonatal_reviewed/start" - }, - { - "name": "end", - "bind": "/model/instance/kunjungan_neonatal_reviewed/end" - }, - { - "name": "desa_anak", - "bind": "/model/instance/kunjungan_neonatal_reviewed/Village", - "shouldLoadValue": true - }, - { - "name": "existing_location", - "bind": "/model/instance/kunjungan_neonatal_reviewed/existing_location", - "shouldLoadValue": true - }, - { - "name": "tanggalLahirAnak", - "bind": "/model/instance/kunjungan_neonatal_reviewed/tanggal_lahir", - "shouldLoadValue": true - }, - { - "name":"kunjunganNeonatal", - "bind":"/model/instance/kunjungan_neonatal_reviewed/neonatal" - }, - { - "name":"tanggalKunjunganBayiPerbulan", - "bind":"/model/instance/kunjungan_neonatal_reviewed/tanggal_kunjungan_neonatal" - }, - { - "name":"jenisPelayanan", - "bind":"/model/instance/kunjungan_neonatal_reviewed/jenis_pelayanan" - }, - { - "name":"beratBayi", - "bind":"/model/instance/kunjungan_neonatal_reviewed/berat_bayi" - }, - { - "name":"panjangBayi", - "bind":"/model/instance/kunjungan_neonatal_reviewed/panjang_bayi" - }, - { - "name":"suhuBayi", - "bind":"/model/instance/kunjungan_neonatal_reviewed/suhu_bayi" - }, - { - "name":"frekuensiNapas", - "bind":"/model/instance/kunjungan_neonatal_reviewed/frekuensi_napas" - }, - { - "name":"frekuensiDenyutJantung", - "bind":"/model/instance/kunjungan_neonatal_reviewed/frekuensi_denyut_jantung" - }, - { - "name":"kondisiBayi", - "bind":"/model/instance/kunjungan_neonatal_reviewed/kondisi_bayi" - }, - { - "name":"hb0", - "bind":"/model/instance/kunjungan_neonatal_reviewed/pemberian_imunisasi_hb" - }, - { - "name":"komplikasiNeonatal", - "bind":"/model/instance/kunjungan_neonatal_reviewed/komplikasi_neonatal" - }, - { - "name":"komplikasiNeonatalLain", - "bind":"/model/instance/kunjungan_neonatal_reviewed/komplikasi_neonatal_lain" - }, - { - "name":"komplikasiNeonatalTertangani", - "bind":"/model/instance/kunjungan_neonatal_reviewed/komplikasi_neonatal_tertangani" - }, - { - "name":"rujukanNeonatal", - "bind":"/model/instance/kunjungan_neonatal_reviewed/rujukan_neonatal" - }, - { - "name":"dirujuk_ke_neonatal", - "bind":"/model/instance/kunjungan_neonatal_reviewed/dirujuk_ke_neonatal" - }, - { - "name":"dirujukkelainnyaNeonatal", - "bind":"/model/instance/kunjungan_neonatal_reviewed/dirujukkelainnya_neonatal" - }, - { - "name":"confirmOfDeath", - "bind":"/model/instance/kunjungan_neonatal_reviewed/confirm_of_death" - }, - { - "name":"highRiskChildIterus", - "bind":"/model/instance/kunjungan_neonatal_reviewed/high_risk_child_iterus" - }, - { - "name":"highRiskChildHypothermia", - "bind":"/model/instance/kunjungan_neonatal_reviewed/high_risk_child_hypothermia" - }, - { - "name":"highRiskChildAsphyxia", - "bind":"/model/instance/kunjungan_neonatal_reviewed/high_risk_child_asphyxia" - }, - { - "name":"highRiskChildCongenitalAbnormality", - "bind":"/model/instance/kunjungan_neonatal_reviewed/high_risk_child_congenital_abnormality" - }, - { - "name":"highRiskChildBirthTrauma", - "bind":"/model/instance/kunjungan_neonatal_reviewed/high_risk_child_birth_trauma" - }, - { - "name":"highRiskChildInfection", - "bind":"/model/instance/kunjungan_neonatal_reviewed/high_risk_child_infection" - }, - { - "name":"highRiskChildTetanusNeonatorum", - "bind":"/model/instance/kunjungan_neonatal_reviewed/high_risk_child_tetanus_neonatorum" - }, - { - "name":"highRiskChildNeonatalSepsis", - "bind":"/model/instance/kunjungan_neonatal_reviewed/high_risk_child_neonatal_sepsis" - }, - { - "name":"submissionDate", - "bind":"/model/instance/kunjungan_neonatal_reviewed/today" - }, - { - "name":"registrationDate", - "bind":"/model/instance/kunjungan_neonatal_reviewed/reg_date" - } - ] - } -} \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kohort_bayi_neonatal_period/model.xml b/opensrp-bidan/src/main/assets/www/form/kohort_bayi_neonatal_period/model.xml deleted file mode 100644 index 811c98d..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kohort_bayi_neonatal_period/model.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kohort_bayi_registration/form.json b/opensrp-bidan/src/main/assets/www/form/kohort_bayi_registration/form.json deleted file mode 100644 index 1b6e3c9..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kohort_bayi_registration/form.json +++ /dev/null @@ -1,536 +0,0 @@ -{ - "name": "tambah_bayi_reviewed", - "title": "Tambah Bayi", - "sms_keyword": "tambah_bayi", - "default_language": "Bahasa", - "instance": { - "encounter_type": "Tambah Bayi" - }, - "version": "201611210507", - "id_string": "tambah_bayi", - "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" - } - }, - { - "control": { - "appearance": "yes" - }, - "name": "tanggal_periksa", - "bind": { - "jr:constraintMsg": { - "Bahasa": ".<=${today}" - } - }, - "label": { - "Bahasa": "Tanggal Registrasi", - "English": "Date of Registration" - }, - "instance": { - "openmrs_entity_id": "160753AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "date" - }, - { - "control": { - "appearance": "yes" - }, - "name": "Lokasi_periksa", - "label": { - "Bahasa": "Lokasi Periksa", - "English": "Location of Service" - }, - "instance": { - "openmrs_entity_id": "161010AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "select one", - "children": [ - { - "instance": { - "openmrs_code": "163121AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "Posyandu", - "label": { - "Bahasa": "Posyandu", - "English": "Village Outreach Post" - } - }, - { - "instance": { - "openmrs_code": "1588AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "Polindes", - "label": { - "Bahasa": "Polindes", - "English": "Health Clinic Post" - } - }, - { - "instance": { - "openmrs_code": "1537AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "Puskesmas", - "label": { - "Bahasa": "Puskesmas", - "English": "Health Facility" - } - }, - { - "instance": { - "openmrs_code": "1536AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "Rumah_Ibu", - "label": { - "Bahasa": "Rumah Ibu", - "English": "Mother House" - } - }, - { - "instance": { - "openmrs_code": "1589AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "Rumah_Sakit", - "label": { - "Bahasa": "Rumah Sakit", - "English": "Hospital" - } - }, - { - "instance": { - "openmrs_code": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "Lainnya", - "label": { - "Bahasa": "Lainnya", - "English": "Other" - } - } - ] - }, - { - "instance": { - "openmrs_entity_parent": "161010AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity_id": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "label": { - "Bahasa": "Lainnya", - "English": "Other" - }, - "type": "text", - "name": "Lokasi_periksa_other", - "hint": { - "Bahasa": "Lainnya", - "English": "Write other location" - } - }, - { - "name": "tanggal_pendaftaran", - "hint": { - "Bahasa": "Tanggal melakukan pendaftaran bayi", - "English": "Date of baby's registration" - }, - "bind": { - "required": "yes" - }, - "label": { - "Bahasa": "Tanggal pendaftaran", - "English": "Registration date" - }, - "instance": { - "openmrs_entity_id": "160753AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "date" - }, - { - "instance": { - "openmrs_entity_id": "Child Registration", - "openmrs_entity": "person" - }, - "type": "repeat", - "children": [ - { - "bind": { - "calculate": "${Village}" - }, - "type": "calculate", - "name": "desa_anak", - "instance": { - "openmrs_entity_parent": "cityVillage", - "openmrs_entity_id": "160632AAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "Concept" - } - }, - { - "type": "note", - "name": "generated_note_name_31", - "label": { - "Bahasa": "Desa : ${desa_anak}" - } - }, - { - "bind": { - "calculate": "${Village}" - }, - "type": "hidden", - "name": "child_existing_location", - "instance": { - "openmrs_entity_id": "location_id", - "openmrs_entity": "encounter" - } - }, - { - "instance": { - "openmrs_entity_id": "noBayi", - "openmrs_entity": "person_attribute" - }, - "label": { - "Bahasa": "No. bayi", - "English": "Baby's ID Number" - }, - "type": "integer", - "name": "no_bayi", - "hint": { - "Bahasa": "Diisi dengan nomor bayi", - "English": "Fill in baby's number ID" - } - }, - { - "name": "nama_bayi", - "hint": { - "Bahasa": "Apabila nama bayi belum ada, isi dengan: Bayi 'nama_ibu'. misal nama ibu Ratna, maka isi dengan Bayi Ratna", - "English": "If baby doesn't have a name yet, fill in: Baby \"mother's name\". For example, the mother's name is Ratna, then fill in Baby Ratna" - }, - "bind": { - "required": "yes" - }, - "label": { - "Bahasa": "Nama bayi", - "English": "Name of baby" - }, - "instance": { - "openmrs_entity_id": "1586AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "Concept" - }, - "type": "text" - }, - { - "name": "tanggal_lahir_anak", - "hint": { - "Bahasa": "Diisi dengan tanggal lahir bayi", - "English": "Fill in baby's birth of date" - }, - "bind": { - "jr:constraintMsg": { - "Bahasa": "Tanggal lahir bayi harus diisi dengan sebelum tanggal pendaftaran", - "English": "Date of baby's birth should be filled in with the date before registration date" - }, - "required": "yes", - "constraint": ".<= ${tanggal_pendaftaran}" - }, - "label": { - "Bahasa": "Tanggal lahir", - "English": "DOB" - }, - "instance": { - "openmrs_entity_id": "birthdate", - "openmrs_entity": "person" - }, - "type": "date" - }, - { - "name": "jenis_kelamin", - "hint": { - "Bahasa": "Diisi dengan jenis kelamin bayi", - "English": "Fill in baby's gender" - }, - "bind": { - "required": "yes" - }, - "label": { - "Bahasa": "Jenis kelamin", - "English": "Gender" - }, - "instance": { - "openmrs_entity_id": "birthdate", - "openmrs_entity": "person" - }, - "type": "select one", - "children": [ - { - "instance": { - "openmrs_code": "1534AAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "male", - "label": { - "Bahasa": "Laki-Laki (L)", - "English": "Male (L);" - } - }, - { - "instance": { - "openmrs_code": "1535AAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "female", - "label": { - "Bahasa": "Perempuan ( P)", - "English": "Female (P)" - } - } - ] - }, - { - "name": "kepemilikan_buku_kia", - "hint": { - "Bahasa": "Diisi dengan status kepemilikan buku KIA", - "English": "Fill in information whether mother has MCH Book" - }, - "label": { - "Bahasa": "Kepemilikan buku KIA", - "English": "Maternal and Child Health booklet ownership (pink book)" - }, - "instance": { - "openmrs_entity": "n/a" - }, - "type": "select one", - "children": [ - { - "instance": { - "openmrs_code": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "Ya", - "label": { - "Bahasa": "Ya", - "English": "Yes" - } - }, - { - "instance": { - "openmrs_code": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "name": "Tidak", - "label": { - "Bahasa": "Tidak", - "English": "No" - } - } - ] - }, - { - "name": "berat_lahir", - "hint": { - "Bahasa": "Diisi dengan berat badan bayi saat lahir (gram)", - "English": "Fill in baby's birthweight (gram)" - }, - "bind": { - "jr:constraintMsg": { - "Bahasa": "Berat badan harus lebih dari 0", - "English": "Birthweight should be more than 0" - }, - "constraint": ".>0 and .<5000" - }, - "label": { - "Bahasa": "Berat lahir", - "English": "Baby's weight (gram)" - }, - "instance": { - "openmrs_entity_id": "5916AAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - }, - "type": "integer" - }, - { - "bind": { - "calculate": "if(${berat_lahir} < 2500, 'yes', 'no')" - }, - "type": "calculate", - "name": "high_risk_child_Low_Birthweght", - "instance": { - "openmrs_entity_id": "1431AAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "openmrs_entity": "concept" - } - }, - { - "instance": { - "openmrs_entity_id": "ibuCaseId", - "openmrs_entity": "person_relationship" - }, - "type": "hidden", - "name": "ibu_entity_id" - } - ], - "name": "child_registration" - }, - { - "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/kohort_bayi_registration/form.xml b/opensrp-bidan/src/main/assets/www/form/kohort_bayi_registration/form.xml deleted file mode 100644 index 0e69be8..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kohort_bayi_registration/form.xml +++ /dev/null @@ -1,215 +0,0 @@ - - - - Tambah Bayi - - Bahasa English - Desa : - - - - - - Dusun : - - - - - - .<= - - - - Tanggal Registrasi - Date of Registration - - - - - Lokasi Periksa - Location of Service - - - - Posyandu - Village Outreach Post - - - - Polindes - Health Clinic Post - - - - Puskesmas - Health Facility - - - - Rumah Ibu - Mother House - - - - Rumah Sakit - Hospital - - - - Lainnya - Other - - - - - Lainnya - Other - Lainnya - Write other location - - - Tanggal pendaftaran - Registration date - * - Tanggal melakukan pendaftaran bayi - Date of baby's registration - - - - - Desa : - - - - - - - No. bayi - Baby's ID Number - Diisi dengan nomor bayi - Fill in baby's number ID - - - - Nama bayi - Name of baby - * - Apabila nama bayi belum ada, isi dengan: Bayi 'nama_ibu'. misal nama ibu Ratna, maka isi dengan Bayi Ratna - If baby doesn't have a name yet, fill in: Baby "mother's name". For example, the mother's name is Ratna, then fill in Baby Ratna - - - - Tanggal lahir bayi harus diisi dengan sebelum tanggal pendaftaran - Date of baby's birth should be filled in with the date before registration date - Tanggal lahir - DOB - * - Diisi dengan tanggal lahir bayi - Fill in baby's birth of date - - - - - - Jenis kelamin - Gender - * - Diisi dengan jenis kelamin bayi - Fill in baby's gender - - - - Laki-Laki (L) - Male (L); - - - - Perempuan ( P) - Female (P) - - - - - - - - Kepemilikan buku KIA - Maternal and Child Health booklet ownership (pink book) - Diisi dengan status kepemilikan buku KIA - Fill in information whether mother has MCH Book - - - - Ya - Yes - - - - Tidak - No - - - - - - Berat badan harus lebih dari 0 - Birthweight should be more than 0 - Berat lahir - Baby's weight (gram) - Diisi dengan berat badan bayi saat lahir (gram) - Fill in baby's birthweight (gram) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/opensrp-bidan/src/main/assets/www/form/kohort_bayi_registration/form_definition.json b/opensrp-bidan/src/main/assets/www/form/kohort_bayi_registration/form_definition.json deleted file mode 100644 index 4d426bd..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kohort_bayi_registration/form_definition.json +++ /dev/null @@ -1,174 +0,0 @@ -{ - "form_data_definition_version": "3", - "form": { - "bind_type": "kartu_ibu", - "ec_bind_type": "ec_kartu_ibu", - "default_bind_path": "/model/instance/tambah_bayi_reviewed/", - "fields": [ - { - "name": "id", - "shouldLoadValue": true - }, - { - "name": "start", - "bind": "/model/instance/tambah_bayi_reviewed/start" - }, - { - "name": "today", - "bind": "/model/instance/tambah_bayi_reviewed/today" - }, - { - "name": "deviceid", - "bind": "/model/instance/tambah_bayi_reviewed/deviceid" - }, - { - "name": "simserial", - "bind": "/model/instance/tambah_bayi_reviewed/simserial" - }, - { - "name": "phonenumber", - "bind": "/model/instance/tambah_bayi_reviewed/phonenumber" - }, - { - "name": "Province", - "bind": "/model/instance/tambah_bayi_reviewed/Province" - }, - { - "name": "District", - "bind": "/model/instance/tambah_bayi_reviewed/District" - }, - { - "name": "Sub-district", - "bind": "/model/instance/tambah_bayi_reviewed/Sub-district" - }, - { - "name": "cityVillage", - "bind": "/model/instance/tambah_bayi_reviewed/Village", - "shouldLoadValue": true - }, - { - "name": "Sub-village", - "bind": "/model/instance/tambah_bayi_reviewed/Sub-village" - }, - { - "name": "generated_note_name_13", - "bind": "/model/instance/tambah_bayi_reviewed/generated_note_name_13" - }, - { - "name": "generated_note_name_14", - "bind": "/model/instance/tambah_bayi_reviewed/generated_note_name_14" - }, - { - "name": "existing_location", - "bind": "/model/instance/tambah_bayi_reviewed/existing_location" - }, - { - "name": "provinsi", - "bind": "/model/instance/tambah_bayi_reviewed/provinsi" - }, - { - "name": "kabupaten", - "bind": "/model/instance/tambah_bayi_reviewed/kabupaten" - }, - { - "name": "desa", - "bind": "/model/instance/tambah_bayi_reviewed/desa" - }, - { - "name": "dusun", - "bind": "/model/instance/tambah_bayi_reviewed/dusun" - }, - { - "name": "kecamatan", - "bind": "/model/instance/tambah_bayi_reviewed/kecamatan" - }, - { - "name": "tanggalPeriksa", - "bind": "/model/instance/tambah_bayi_reviewed/tanggal_periksa" - }, - { - "name": "lokasiPeriksa", - "bind": "/model/instance/tambah_bayi_reviewed/Lokasi_periksa" - }, - { - "name": "LokasiPeriksaOther", - "bind": "/model/instance/tambah_bayi_reviewed/Lokasi_periksa_other" - }, - { - "name": "tanggalPendaftaran", - "bind": "/model/instance/tambah_bayi_reviewed/tanggal_pendaftaran" - }, - { - "name": "end", - "bind": "/model/instance/tambah_bayi_reviewed/end" - }, - { - "name": "instanceID", - "bind": "/model/instance/tambah_bayi_reviewed/meta/instanceID" - } - ], - "sub_forms": [ - { - "name": "child_registration", - "bind_type": "anak", - "ec_bind_type": "ec_anak", - "default_bind_path": "/model/instance/tambah_bayi_reviewed/child_registration/", - "fields": [ - { - "name": "id", - "shouldLoadValue": true - }, - { - "name": "relationalid", - "shouldLoadValue": true - }, - { - "name": "injectedBaseEntityId", - "shouldLoadValue": true - }, - { - "name": "ibu_entity_id", - "source": "kartu_ibu.id", - "shouldLoadValue": true - }, - { - "name": "noBayi", - "bind": "/model/instance/tambah_bayi_reviewed/child_registration/no_bayi" - }, - { - "name": "namaBayi", - "bind": "/model/instance/tambah_bayi_reviewed/child_registration/nama_bayi" - }, - { - "name": "tanggalLahirAnak", - "bind": "/model/instance/tambah_bayi_reviewed/child_registration/tanggal_lahir_anak" - }, - { - "name": "jenisKelamin", - "bind": "/model/instance/tambah_bayi_reviewed/child_registration/jenis_kelamin" - }, - { - "name": "kepemilikanBukuKia", - "bind": "/model/instance/tambah_bayi_reviewed/child_registration/kepemilikan_buku_kia" - }, - { - "name": "desa_anak", - "bind": "/model/instance/tambah_bayi_reviewed/child_registration/desa_anak" - }, - { - "name": "child_existing_location", - "bind": "/model/instance/tambah_bayi_reviewed/child_registration/child_existing_location" - }, - { - "name": "beratLahir", - "bind": "/model/instance/tambah_bayi_reviewed/child_registration/berat_lahir" - }, - { - "name": "HighRiskChildLowBirthweght", - "bind": "/model/instance/tambah_bayi_reviewed/child_registration/high_risk_child_Low_Birthweght" - } - ] - } - ] - } -} \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kohort_bayi_registration/model.xml b/opensrp-bidan/src/main/assets/www/form/kohort_bayi_registration/model.xml deleted file mode 100644 index 78999a2..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kohort_bayi_registration/model.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/opensrp-bidan/src/main/assets/www/form/kohort_bayi_registration_oa/form.xml b/opensrp-bidan/src/main/assets/www/form/kohort_bayi_registration_oa/form.xml deleted file mode 100644 index 0a7e04b..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kohort_bayi_registration_oa/form.xml +++ /dev/null @@ -1,314 +0,0 @@ - - - - - Register Bayi OA - - Bahasa - English - - - - Unique ID: - - - - Unique ID: - - - - - - Nama lengkap - - - Full name - - * - - Nama lengkap Ibu - - Mother's - full name - - - - - Nama suami - - Name - of husband - - * - - Nama lengkap suami - - Husband's - full name - - - - - Alamat domisili - - Address - - Alamat tempat tinggal (rumah) Ibu - - - Mother's address - - - - - REGISTER BAYI - - BABY'S REGISTRATION - - - - - Tanggal Pendaftaran - - Registration Date - - * - Tanggal melakukan pendaftaran - bayi - - - Date of child registration - - - - - No. bayi - - Baby's - ID Number - - * - Diisi - dengan nomor bayi - - Fill in the - child's ID number - - - - - Nama Bayi - - Name - of baby - - * - - Apabila nama bayi belum ada, isi dengan: Bayi 'nama_ibu'. misal nama ibu Ratna, maka isi - dengan Bayi Ratna - - If baby - doesn't have a name yet, fill in: Baby "mother's name". For example, the mother's name - is Ratna, then fill in Baby Ratna - - - - - Tanggal lahir bayi - harus diisi dengan sebelum tanggal pendaftaran - - Date of baby's birth - should be filled in with the date before registration date - - Tanggal Lahir - - DOB - - Tanggal lahir Bayi - - - Baby's birth of date - - - - - - - Jenis Kelamin - - Gender - - * - Jenis kelamin Bayi - - - Baby's gender - - - - - - Laki (L) - - Male (L); - - - - - Perempuan ( P) - - Female (P) - - - - - - - - - Kepemilikan buku KIA - - Maternal and Child - Health booklet ownership (pink book) - - Diisi jika ibu memiliki - buku KIA - - Fill in whether mother - has MCH Booklet - - - - - - Ya (+) - - Yes (+); - - - - - Tidak (-) - - No (-) - - - - - - - Berat badan harus lebih dari - 0 - - Birthweight should be more - than 0 - - Berat Lahir - - - Baby's weight (gram) - - - Berat badan bayi saat lahir (gram) - - Baby's - birthweight (gram) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/opensrp-bidan/src/main/assets/www/form/kohort_bayi_registration_oa/form_definition.json b/opensrp-bidan/src/main/assets/www/form/kohort_bayi_registration_oa/form_definition.json deleted file mode 100644 index 02a42f8..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kohort_bayi_registration_oa/form_definition.json +++ /dev/null @@ -1,150 +0,0 @@ -{ - "form_data_definition_version": "1", - "form": { - "bind_type": "kartu_ibu", - "default_bind_path": "/model/instance/register_baby/", - "fields": [ - { - "name": "id", - "shouldLoadValue": true - }, - { - "name": "motherId", - "source": "kartu_ibu.ibu.id" - }, - { - "name": "childId", - "source": "kartu_ibu.ibu.anak.id" - }, - { - "name": "unique_id", - "bind": "/model/instance/register_baby/unique_id", - "shouldLoadValue": true - }, - { - "name": "Village", - "bind": "/model/instance/register_baby/Village", - "shouldLoadValue": true - }, - { - "name": "Province", - "bind": "/model/instance/register_baby/Province", - "shouldLoadValue": true - }, - { - "name": "Sub-district", - "bind": "/model/instance/register_baby/Sub-district", - "shouldLoadValue": true - }, - { - "name": "District", - "bind": "/model/instance/register_baby/District", - "shouldLoadValue": true - }, - { - "name": "Sub-village", - "bind": "/model/instance/register_baby/Sub-village", - "shouldLoadValue": true - }, - { - "name": "provinsi", - "bind": "/model/instance/register_baby/provinsi" - }, - { - "name": "kabupaten", - "bind": "/model/instance/register_baby/kabupaten" - }, - { - "name": "kecamatan", - "bind": "/model/instance/register_baby/kecamatan" - }, - { - "name": "desa", - "bind": "/model/instance/register_baby/desa" - }, - { - "name": "dusun", - "bind": "/model/instance/register_baby/dusun" - }, - { - "name": "noIbu", - "bind": "/model/instance/register_baby/no_ibu" - }, - { - "name": "namalengkap", - "bind": "/model/instance/register_baby/nama_lengkap" - }, - { - "name": "namaSuami", - "bind": "/model/instance/register_baby/nama_suami" - }, - { - "name": "alamatDomisili", - "bind": "/model/instance/register_baby/alamat_domisili" - }, - { - "name": "noBayi", - "bind": "/model/instance/register_baby/no_bayi", - "source": "kartu_ibu.ibu.anak.no_bayi" - }, - { - "name": "namaBayi", - "bind": "/model/instance/register_baby/nama_bayi", - "source": "kartu_ibu.ibu.anak.namaBayi" - }, - { - "name": "tanggalLahirAnak", - "bind": "/model/instance/register_baby/tanggal_lahir_anak", - "source": "kartu_ibu.ibu.anak.tanggalLahirAnak" - }, - { - "name": "jenisKelamin", - "bind": "/model/instance/register_baby/jenis_kelamin", - "source": "kartu_ibu.ibu.anak.jenisKelamin" - }, - { - "name": "beratLahir", - "bind": "/model/instance/register_baby/berat_lahir", - "source": "kartu_ibu.ibu.anak.beratLahir" - }, - { - "name": "highRiskPregnancyYoungMaternalAge", - "bind": "/model/instance/register_baby/High_Risk_Pregnancy_Young_maternal_age" - }, - { - "name": "highRiskPregnancyOldMaternalAge", - "bind": "/model/instance/register_baby/High_Risk_Pregnancy_Old_maternal_age" - }, - { - "name": "highRiskLowBirthWeight", - "bind": "/model/instance/register_baby/high_risk_child_Low_Birthweght" - }, - { - "name": "isClosed", - "source": "kartu_ibu.ibu.isClosed", - "value": false - }, - { - "name": "isClosed", - "source": "kartu_ibu.ibu.anak.isClosed", - "value": false - }, - { - "name": "isClosed", - "value": false - }, - { - "name": "isOutOfArea", - "value": true - }, - { - "name": "submissionDate", - "bind": "/model/instance/register_baby/today" - }, - { - "name": "registrationDate", - "bind": "/model/instance/register_baby/today" - } - ] - } -} \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kohort_bayi_registration_oa/model.xml b/opensrp-bidan/src/main/assets/www/form/kohort_bayi_registration_oa/model.xml deleted file mode 100644 index bf48d56..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kohort_bayi_registration_oa/model.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kohort_kb_close/form.json b/opensrp-bidan/src/main/assets/www/form/kohort_kb_close/form.json deleted file mode 100644 index e6d4260..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kohort_kb_close/form.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"penutupan_kb_reviewed","title":"Penutupan KB","sms_keyword":"Penutupan_KB","default_language":"Bahasa","instance":{"encounter_type":"Penutupan KB"},"version":"201610260223","id_string":"Penutupan_KB","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":"person_address","openmrs_entity_id":"stateProvince","openmrs_entity_parent":"usual_residence"}},{"bind":{"calculate":"${District}"},"type":"calculate","name":"kabupaten","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"countyDistrict","openmrs_entity_parent":"usual_residence"}},{"bind":{"calculate":"${Village}"},"type":"calculate","name":"desa","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"cityVillage","openmrs_entity_parent":"usual_residence"}},{"bind":{"calculate":"${Sub-village}"},"type":"calculate","name":"dusun","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"address1","openmrs_entity_parent":"usual_residence"}},{"bind":{"calculate":"${Sub-district}"},"type":"calculate","name":"kecamatan","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"address2","openmrs_entity_parent":"usual_residence"}},{"name":"kb_close_reason","hint":{"Bahasa":"Pilihlah salah satu alasan yang tersedia","English":"Select one of reasons available"},"bind":{"required":"yes"},"label":{"Bahasa":"Alasan menutup KB","English":"Reason for Family Planning's Closure"},"instance":{"openmrs_entity_id":"160417AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"select one","children":[{"instance":{"openmrs_code":"134612AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"death_of_mother","label":{"Bahasa":"Ibu meninggal","English":"Maternal death"}},{"instance":{"openmrs_code":"160415AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"permanent_relocation","label":{"Bahasa":"Relokasi","English":"Relocation"}},{"instance":{"openmrs_code":"163495AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"dropout","label":{"Bahasa":"Drop Out (DO)","English":"Drop Out (DO)/Service Withdrawal"}},{"instance":{"openmrs_code":"160693AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"gagal","label":{"Bahasa":"Gagal (G)","English":"Failure (F)"}},{"instance":{"openmrs_code":"120240AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"komplikasi","label":{"Bahasa":"Komplikasi","English":"Complication"}}]},{"name":"keterangan_do","hint":{"Bahasa":"Berikan alasan dan penjelasan penyebab peserta KB Drop Out","English":"Write the reason for Drop Out"},"bind":{"relevant":"${kb_close_reason} = 'dropout'"},"label":{"Bahasa":"Keterangan DO","English":"Note of Drop Out"},"instance":{"openmrs_entity_id":"163513AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"text"},{"name":"keterangan_gagal","hint":{"Bahasa":"Berikan alasan dan penjelasan tambahan berkaitan peserta gagal KB","English":"Write the reason for contraceptive failure"},"bind":{"relevant":"${kb_close_reason} = 'gagal'"},"label":{"Bahasa":"Keterangan Gagal","English":"Note of Failure"},"instance":{"openmrs_entity_id":"160693AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1434AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ibu_hamil","label":{"Bahasa":"Ibu hamil","English":"Mother becomes pregnant"}},{"instance":{"openmrs_code":"1067AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tidak_ada_keterangan","label":{"Bahasa":"Tidak ada keterangan","English":"None"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"lainnya","label":{"Bahasa":"Lainnya","English":"Other"}}]},{"bind":{"relevant":"${keterangan_gagal} = 'lainnya'"},"type":"text","instance":{"openmrs_entity_id":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"name":"keterangan_gagal_lainnya","label":{"Bahasa":"Keterangan gagal lainnya","English":"Other note of failure"}},{"name":"death_date","hint":{"Bahasa":"Masukkan tanggal kematian","English":"Enter the date of death"},"bind":{"jr:constraintMsg":{"Bahasa":"Tanggal kematian ibu hari ini atau hari-hari sebelumnya","English":"Date of mother's death today or the days before"},"relevant":"${kb_close_reason} = 'death_of_mother'","constraint":".<=${today}"},"label":{"Bahasa":"Tanggal kematian","English":"Date of death"},"instance":{"openmrs_entity_id":"1543AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"date"},{"name":"place_of_death","hint":{"Bahasa":"Tempat kematian ibu","English":"Place of maternal death"},"bind":{"relevant":"${kb_close_reason} = 'death_of_mother'"},"label":{"Bahasa":"Tempat kematian","English":"Place of death"},"instance":{"openmrs_entity_id":"1541AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1536AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Rumah sendiri/keluarga","label":{"Bahasa":"Rumah sendiri/keluarga","English":"Mother/family's house"}},{"instance":{"openmrs_code":"163512AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Polindes","label":{"Bahasa":"Polindes","English":"Community-based health post"}},{"instance":{"openmrs_code":"1588AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Pustu","label":{"Bahasa":"Pustu","English":"Sub-center"}},{"name":"Rumah bidan","label":{"Bahasa":"Rumah bidan","English":"Midwife's house"}},{"instance":{"openmrs_code":"159372AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Puskesmas","label":{"Bahasa":"Puskesmas","English":"Primary Health Center"}},{"instance":{"openmrs_code":"1601AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Dalam perjalanan ke fasilitas","label":{"Bahasa":"Dalam perjalanan ke fasilitas","English":"On the way to facility"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Lainnya","label":{"Bahasa":"Lainnya","English":"Other"}}]},{"name":"address","hint":{"Bahasa":"Masukkan alamat Ibu (Dusun)","English":"Enter the mother’s address (dusun)"},"bind":{"relevant":"${kb_close_reason} = 'death_of_mother'"},"label":{"Bahasa":"Alamat Ibu (Dusun)","English":"Mother’s address (dusun)"},"instance":{"openmrs_entity_id":"1354AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"text"},{"name":"note_maternal_death_cause","hint":{"Bahasa":"Masukkan penyebab kematian","English":"Fill in the cause of maternal death"},"bind":{"relevant":"${kb_close_reason} = 'death_of_mother'"},"label":{"Bahasa":"Penyebab Kematian","English":"Cause"},"instance":{"openmrs_entity_id":"160218AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"text"},{"name":"birth_attendant","hint":{"Bahasa":"Sebutkan siapa yang menolong ibu hamil saat bersalin","English":"Write the one who assist mother's delivery"},"bind":{"relevant":"${kb_close_reason} = 'death_of_mother'"},"label":{"Bahasa":"Penolong Persalinan","English":"Birth Attendant"},"instance":{"openmrs_entity_id":"1573AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1560AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"keluarga","label":{"Bahasa":"Keluarga (K)","English":"Family"}},{"instance":{"openmrs_code":"1575AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"dukun","label":{"Bahasa":"Dukun (D)","English":"Traditional Birth Attendant"}},{"instance":{"openmrs_code":"1578AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"bidan","label":{"Bahasa":"Bidan (B)","English":"Midwife"}},{"instance":{"openmrs_code":"1574AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"dr.umum","label":{"Bahasa":"Dr.Umum (DU)","English":"Doctor"}},{"instance":{"openmrs_code":"163489AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"dr.spesialis","label":{"Bahasa":"Dr.Spesialis (DS)","English":"Obstectric and Gynecology Specialist (OGS)"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"lain-lain","label":{"Bahasa":"Lain-Lain (LN)","English":"Others"}},{"instance":{"openmrs_code":"1107AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"tidak_ada","label":{"Bahasa":"Tidak Ada (TA)","English":"None"}}]},{"name":"referred","hint":{"Bahasa":"Untuk mengetahui apakah ibu tersebut dirujuk ke fasilitas lain","English":"Information whether the mother was referred to other facility or not"},"bind":{"relevant":"${kb_close_reason} = 'death_of_mother'"},"label":{"Bahasa":"Apakah ibu ini dirujuk?","English":"Was this mother referred to other facility?"},"instance":{"openmrs_entity_id":"1648AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"select one","children":[{"instance":{"openmrs_code":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"yes","label":{"Bahasa":"Ya","English":"Yes"}},{"instance":{"openmrs_code":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"no","label":{"Bahasa":"Tidak","English":"No"}}]},{"name":"referral_location","hint":{"Bahasa":"Untuk mengetahui ibu dirujuk ke fasilitas mana","English":"Information related to the location of mother's referral"},"bind":{"relevant":"${referred} = 'yes'"},"label":{"Bahasa":"Ibu dirujuk ke","English":"Location of referral"},"instance":{"openmrs_entity_id":"161562AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"text"},{"name":"prereferral_management","hint":{"Bahasa":"Tuliskan tindakan perawatan yang diberikan kepada ibu sebelum dirujuk","English":"Describe the care management provided for the mother prior to referral"},"bind":{"relevant":"${referred} = 'yes'"},"label":{"Bahasa":"Tindakan sebelum dirujuk","English":"Pre-referral management"},"instance":{"openmrs_entity_id":"163104AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"text"},{"instance":{"openmrs_entity_id":"n/a"},"label":{"Bahasa":"konfirmasi penutupan KB?","English":"Confirmation of Family Planning Closure?"},"type":"select one","children":[{"instance":{"openmrs_code":"n/a"},"name":"yes","label":{"Bahasa":"Ya","English":"Yes"}}],"name":"confirm_kb_close"},{"default":"0","instance":{"openmrs_entity_id":"374AAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"hidden","name":"jenis_kontrasepsi"},{"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/kohort_kb_close/form.xml b/opensrp-bidan/src/main/assets/www/form/kohort_kb_close/form.xml deleted file mode 100644 index 62088a1..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kohort_kb_close/form.xml +++ /dev/null @@ -1,29 +0,0 @@ - - Penutupan KBBahasa English - - - Desa : - - - Dusun : - - - Alasan menutup KBReason for Family Planning's Closure*Pilihlah salah satu alasan yang tersediaSelect one of reasons available - Ibu meninggalMaternal deathRelokasiRelocationDrop Out (DO)Drop Out (DO)/Service WithdrawalGagal (G)Failure (F)KomplikasiComplication - Keterangan DONote of Drop OutBerikan alasan dan penjelasan penyebab peserta KB Drop OutWrite the reason for Drop Out - Keterangan GagalNote of FailureBerikan alasan dan penjelasan tambahan berkaitan peserta gagal KBWrite the reason for contraceptive failure - Ibu hamilMother becomes pregnantTidak ada keteranganNoneLainnyaOther - Keterangan gagal lainnyaOther note of failure - Tanggal kematian ibu hari ini atau hari-hari sebelumnyaDate of mother's death today or the days beforeTanggal kematianDate of deathMasukkan tanggal kematianEnter the date of death - Tempat kematianPlace of deathTempat kematian ibuPlace of maternal death - Rumah sendiri/keluargaMother/family's housePolindesCommunity-based health postPustuSub-centerRumah bidanMidwife's housePuskesmasPrimary Health CenterDalam perjalanan ke fasilitasOn the way to facilityLainnyaOther - Alamat Ibu (Dusun)Mother’s address (dusun)Masukkan alamat Ibu (Dusun)Enter the mother’s address (dusun) - Penyebab KematianCauseMasukkan penyebab kematianFill in the cause of maternal death - Penolong PersalinanBirth AttendantSebutkan siapa yang menolong ibu hamil saat bersalinWrite the one who assist mother's delivery - Keluarga (K)FamilyDukun (D)Traditional Birth AttendantBidan (B)MidwifeDr.Umum (DU)DoctorDr.Spesialis (DS)Obstectric and Gynecology Specialist (OGS)Lain-Lain (LN)OthersTidak Ada (TA)None - Apakah ibu ini dirujuk?Was this mother referred to other facility?Untuk mengetahui apakah ibu tersebut dirujuk ke fasilitas lainInformation whether the mother was referred to other facility or not - YaYesTidakNo - Ibu dirujuk keLocation of referralUntuk mengetahui ibu dirujuk ke fasilitas manaInformation related to the location of mother's referral - Tindakan sebelum dirujukPre-referral managementTuliskan tindakan perawatan yang diberikan kepada ibu sebelum dirujukDescribe the care management provided for the mother prior to referral - konfirmasi penutupan KB?Confirmation of Family Planning Closure? - YaYes - - \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kohort_kb_close/form_definition.json b/opensrp-bidan/src/main/assets/www/form/kohort_kb_close/form_definition.json deleted file mode 100644 index 46b7ca8..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kohort_kb_close/form_definition.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "form_data_definition_version": "1", - "form": { - "bind_type": "kartu_ibu", - "ec_bind_type": "ec_kartu_ibu", - "default_bind_path": "/model/instance/penutupan_kb_reviewed/", - "fields": [ - { - "name": "id", - "shouldLoadValue": true - }, - { - "name": "cityVillage", - "bind": "/model/instance/penutupan_kb_reviewed/Village", - "shouldLoadValue": true - }, - { - "name": "kbCloseReason", - "bind": "/model/instance/penutupan_kb_reviewed/kb_close_reason" - }, - { - "name": "keteranganGagal", - "bind": "/model/instance/penutupan_kb_reviewed/keterangan_gagal" - }, - { - "name": "kbCloseReason", - "bind": "/model/instance/penutupan_kb_reviewed/kb_close_reason" - }, - { - "name": "keterangan_do", - "bind": "/model/instance/penutupan_kb_reviewed/keterangan_do" - }, - { - "name": "deathDate", - "bind": "/model/instance/penutupan_kb_reviewed/death_date" - }, - { - "name": "isKBCloseConfirmed", - "bind": "/model/instance/penutupan_kb_reviewed/confirm_kb_close" - }, - { - "name": "submissionDate", - "bind": "/model/instance/penutupan_kb_reviewed/today" - }, - { - "name": "registrationDate", - "bind": "/model/instance/penutupan_kb_reviewed/reg_date" - }, - { - "name": "jenisKontrasepsi", - "bind": "/model/instance/penutupan_kb_reviewed/jenis_kontrasepsi" - } - ] - } -} diff --git a/opensrp-bidan/src/main/assets/www/form/kohort_kb_close/model.xml b/opensrp-bidan/src/main/assets/www/form/kohort_kb_close/model.xml deleted file mode 100644 index 775c388..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kohort_kb_close/model.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 0 - - - - - - - \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kohort_kb_pelayanan/form.json b/opensrp-bidan/src/main/assets/www/form/kohort_kb_pelayanan/form.json deleted file mode 100644 index d5ae491..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kohort_kb_pelayanan/form.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"tambah_kb_reviewed","title":"Tambah KB","sms_keyword":"tambah_kb","default_language":"Bahasa","instance":{"encounter_type":"Tambah KB"},"version":"201609300225","id_string":"tambah_kb","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":"person_address","openmrs_entity_id":"stateProvince","openmrs_entity_parent":"usual_residence"}},{"bind":{"calculate":"${District}"},"type":"calculate","name":"kabupaten","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"countyDistrict","openmrs_entity_parent":"usual_residence"}},{"bind":{"calculate":"${Village}"},"type":"calculate","name":"desa","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"cityVillage","openmrs_entity_parent":"usual_residence"}},{"bind":{"calculate":"${Sub-village}"},"type":"calculate","name":"dusun","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"address1","openmrs_entity_parent":"usual_residence"}},{"bind":{"calculate":"${Sub-district}"},"type":"calculate","name":"kecamatan","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"address2","openmrs_entity_parent":"usual_residence"}},{"control":{"appearance":"yes"},"name":"tanggal_periksa","bind":{"jr:constraintMsg":{"Bahasa":".<=${today}"}},"label":{"Bahasa":"Tanggal Registrasi","English":"Date of Registration"},"instance":{"openmrs_entity_id":"160753AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"date"},{"control":{"appearance":"yes"},"name":"lokasi_periksa","label":{"Bahasa":"Lokasi Periksa","English":"Location of Service"},"instance":{"openmrs_entity_id":"161010AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"163121AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Posyandu","label":{"Bahasa":"Posyandu","English":"Village Outreach Post"}},{"instance":{"openmrs_code":"1588AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Polindes","label":{"Bahasa":"Polindes","English":"Health Clinic Post"}},{"instance":{"openmrs_code":"1537AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Puskesmas","label":{"Bahasa":"Puskesmas","English":"Health Facility"}},{"instance":{"openmrs_code":"1536AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Rumah_Ibu","label":{"Bahasa":"Rumah Ibu","English":"Mother House"}},{"instance":{"openmrs_code":"1589AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Rumah_Sakit","label":{"Bahasa":"Rumah Sakit","English":"Hospital"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Lainnya","label":{"Bahasa":"Lainnya","English":"Other"}}]},{"instance":{"openmrs_entity":"concept","openmrs_entity_id":"160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity_parent":"161010AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"label":{"Bahasa":"Lainnya","English":"Other"},"type":"text","name":"lokasi_periksa_other","hint":{"Bahasa":"Lainnya","English":"Write other location"}},{"name":"tanggal_kunjungan","hint":{"Bahasa":"Diisi dengan tanggal kunjungan/ pelayanan","English":"Fill in date of visit/care service"},"bind":{"required":"yes"},"label":{"Bahasa":"Tanggal kunjungan","English":"Visit date"},"instance":{"openmrs_entity_id":"160753AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"date"},{"type":"hidden","name":"tanggal_lahir_ibu","hint":{"Bahasa":"Inject tanggal lahir ibu from identitas_ibu","English":"Inject mother's date of birth from from identitas_ibu"}},{"bind":{"calculate":"int((${today} - ${tanggal_lahir_ibu}) div 365)"},"type":"calculate","name":"umur","instance":{"openmrs_entity_id":"1532AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"}},{"name":"paritas","hint":{"Bahasa":"Diisi dengan paritas ibu","English":"Fill in mother's parity"},"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":".>-1 and .<100"},"label":{"Bahasa":"Paritas","English":"Parity"},"instance":{"openmrs_entity_id":"1053AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"integer"},{"name":"td_sistolik","hint":{"Bahasa":"Menunjukkan tekanan darah (Sistolik) Ibu pada saat kunjungan (mmHg)","English":"Indicating blood pressure (systolic) on mother's visit for care service (mmHg)"},"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) of mother"},"instance":{"openmrs_entity_id":"5085AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"integer"},{"name":"td_diastolik","hint":{"Bahasa":"Menunjukkan tekanan darah (Diastolik) Ibu pada saat kunjungan (mmHg)","English":"Indicating blood pressure (dyastolic) on mother's visit for care service (mmHg)"},"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) of mother"},"instance":{"openmrs_entity_id":"5086AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"decimal"},{"name":"alki_hb","hint":{"Bahasa":"Diisi dengan hasil pemeriksaan HB","English":"Fill in Hb test result"},"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"},"label":{"Bahasa":"ALKI/HB","English":"ALKIHB"},"instance":{"openmrs_entity_id":"21AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"decimal"},{"name":"alki_lila","hint":{"Bahasa":"Diisi dengan hasil pemeriksaan LILA","English":"FIll in mother's MUAC"},"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":".>-1 and .<100"},"label":{"Bahasa":"ALKI/LILA","English":"ALKI/Mid-Upper Arm Circumference"},"instance":{"openmrs_entity_id":"1343AAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"decimal"},{"control":{"appearance":"minimal"},"name":"alki_penyakit_kronis","hint":{"Bahasa":"Diisi dengan keterangan tentang penyakit kronis yang dimiliki peserta KB","English":"Fill in chronical diseases that mother has"},"label":{"Bahasa":"ALKI/Penyakit Kronis","English":"ALKI/Chronic diseases"},"instance":{"openmrs_entity_id":"145439AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"112141AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"TBC","label":{"Bahasa":"TBC","English":"TBC"}},{"instance":{"openmrs_code":"119481AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"DM","label":{"Bahasa":"DM","English":"DM"}},{"instance":{"openmrs_code":"139071AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Jantung","label":{"Bahasa":"Jantung","English":"Heart Disease"}},{"instance":{"openmrs_code":"113017AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Asma Berat","label":{"Bahasa":"Asma Berat","English":"Severe Asthma"}},{"instance":{"openmrs_code":"116128AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Malaria","label":{"Bahasa":"Malaria","English":"Malaria"}},{"instance":{"openmrs_code":"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Lainnya","label":{"Bahasa":"Lainnya","English":"Other"}}]},{"name":"alki_penyakit_ims","hint":{"Bahasa":"Diisi dengan keterangan tentang Infeksi Menular Seksual yang dimiliki peserta KB","English":"Fill in Sexually Transmitted Infection that mother has"},"label":{"Bahasa":"ALKI/IMS","English":"ALKI/Sexually Transmitted Infections"},"instance":{"openmrs_entity_id":"112992AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"117767AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Gonore","label":{"Bahasa":"Gonore","English":"Gonorrhea"}},{"instance":{"openmrs_code":"112493AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Sifilis","label":{"Bahasa":"Sifilis","English":"Syphilis"}},{"instance":{"openmrs_code":"120147AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Condyloma","label":{"Bahasa":"Condyloma","English":"Condyloma"}},{"instance":{"openmrs_code":"117829AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Herpes Genitalis","label":{"Bahasa":"Herpes Genitalis","English":"Genital Herpes"}}]},{"name":"keterangan_tentang_peserta_kb","hint":{"Bahasa":"Diisi dengan keterangan tentang kunjungan peserta KB baru atau lama","English":"Fill in information on whether mother is new or old FP contraceptor"},"label":{"Bahasa":"Keterangan tentang peserta KB","English":"Notes about FP user"},"instance":{"openmrs_entity_id":"160653AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"163157AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"KB_Baru","label":{"Bahasa":"KB baru (B)","English":"New FP Acceptor (NA)"}},{"instance":{"openmrs_code":"163158AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Lama","label":{"Bahasa":"Lama (L)","English":"Old FP Acceptor (OA)"}},{"instance":{"openmrs_code":"163159AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"KB_Baru_Pasca_Salin","label":{"Bahasa":"KB Baru Pasca Salin (BO)","English":"Post-partum FP Acceptor (PPA)"}}]},{"control":{"appearance":"minimal"},"name":"jenis_kontrasepsi","hint":{"Bahasa":"Diisi dengan jenis metode kontrasepsi yang digunakan","English":"Fill in type of contraceptive method that mother uses"},"bind":{"required":"yes"},"label":{"Bahasa":"Jenis kontrasepsi yang digunakan","English":"Kind of contraceptions used"},"instance":{"openmrs_entity_id":"374AAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"concept"},"type":"select one","children":[{"instance":{"openmrs_code":"780AAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Pil","label":{"Bahasa":"Pil (P)","English":"Pill (P)"}},{"instance":{"openmrs_code":"5279AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Suntik","label":{"Bahasa":"Suntik (S)","English":"Injection (I)"}},{"instance":{"openmrs_code":"5275AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"IUD","label":{"Bahasa":"IUD (I)","English":"IUD (I)"}},{"instance":{"openmrs_code":"5276AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"MOW","label":{"Bahasa":"MOW (OW)","English":"Tubectomy (TUB)"}},{"instance":{"openmrs_code":"1489AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"MOP","label":{"Bahasa":"MOP (OP)","English":"Vasectomy (VAS)"}},{"instance":{"openmrs_code":"190AAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Kondom","label":{"Bahasa":"Kondom (K)","English":"Condom (C)"}},{"instance":{"openmrs_code":"159589AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Implant","label":{"Bahasa":"Implant (IP)","English":"Implant (Ip)"}}]},{"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/kohort_kb_pelayanan/form.xml b/opensrp-bidan/src/main/assets/www/form/kohort_kb_pelayanan/form.xml deleted file mode 100644 index 312ff3a..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kohort_kb_pelayanan/form.xml +++ /dev/null @@ -1,28 +0,0 @@ - - Tambah KBBahasa English - - Desa : - - - Dusun : - - - .<= - -Tanggal RegistrasiDate of Registration - Lokasi PeriksaLocation of Service - PosyanduVillage Outreach PostPolindesHealth Clinic PostPuskesmasHealth FacilityRumah IbuMother HouseRumah SakitHospitalLainnyaOther - LainnyaOtherLainnyaWrite other location - Tanggal kunjunganVisit date*Diisi dengan tanggal kunjungan/ pelayananFill in date of visit/care service - Nilai yang dimasukkan tidak memenuhi syarat, mohon periksa kembaliThe entered value doesn't meet the criteria, please check it againParitasParityDiisi dengan paritas ibuFill in mother's parity - Nilai yang dimasukkan tidak memenuhi syarat, mohon periksa kembaliThe entered value doesn't meet the criteria, please check it againTD (Sistolik)Blood pressure (sistolic) of motherMenunjukkan tekanan darah (Sistolik) Ibu pada saat kunjungan (mmHg)Indicating blood pressure (systolic) on mother's visit for care service (mmHg) - Nilai yang dimasukkan tidak memenuhi syarat, mohon periksa kembaliThe entered value doesn't meet the criteria, please check it againTD (Diastolik)Blood pressure (Diastolic) of motherMenunjukkan tekanan darah (Diastolik) Ibu pada saat kunjungan (mmHg)Indicating blood pressure (dyastolic) on mother's visit for care service (mmHg) - Nilai yang dimasukkan tidak memenuhi syarat, mohon periksa kembaliThe entered value doesn't meet the criteria, please check it againALKI/HBALKIHBDiisi dengan hasil pemeriksaan HBFill in Hb test result - Nilai yang dimasukkan tidak memenuhi syarat, mohon periksa kembaliThe entered value doesn't meet the criteria, please check it againALKI/LILAALKI/Mid-Upper Arm CircumferenceDiisi dengan hasil pemeriksaan LILAFIll in mother's MUAC - ALKI/Penyakit KronisALKI/Chronic diseasesDiisi dengan keterangan tentang penyakit kronis yang dimiliki peserta KBFill in chronical diseases that mother has...TBCDMJantungAsma BeratMalariaLainnyaTBCTBCDMDMJantungHeart DiseaseAsma BeratSevere AsthmaMalariaMalariaLainnyaOther - - ALKI/IMSALKI/Sexually Transmitted InfectionsDiisi dengan keterangan tentang Infeksi Menular Seksual yang dimiliki peserta KBFill in Sexually Transmitted Infection that mother has - GonoreGonorrheaSifilisSyphilisCondylomaCondylomaHerpes GenitalisGenital Herpes - Keterangan tentang peserta KBNotes about FP userDiisi dengan keterangan tentang kunjungan peserta KB baru atau lamaFill in information on whether mother is new or old FP contraceptor - KB baru (B)New FP Acceptor (NA)Lama (L)Old FP Acceptor (OA)KB Baru Pasca Salin (BO)Post-partum FP Acceptor (PPA) - Jenis kontrasepsi yang digunakanKind of contraceptions used*Diisi dengan jenis metode kontrasepsi yang digunakanFill in type of contraceptive method that mother uses...Pil (P)Suntik (S)IUD (I)MOW (OW)MOP (OP)Kondom (K)Implant (IP)Pil (P)Pill (P)Suntik (S)Injection (I)IUD (I)IUD (I)MOW (OW)Tubectomy (TUB)MOP (OP)Vasectomy (VAS)Kondom (K)Condom (C)Implant (IP)Implant (Ip) - - - \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kohort_kb_pelayanan/form_definition.json b/opensrp-bidan/src/main/assets/www/form/kohort_kb_pelayanan/form_definition.json deleted file mode 100644 index a894320..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kohort_kb_pelayanan/form_definition.json +++ /dev/null @@ -1,146 +0,0 @@ -{ - "form_data_definition_version": "2", - "form": { - "bind_type": "kartu_ibu", - "ec_bind_type": "ec_kartu_ibu", - "default_bind_path": "/model/instance/tambah_kb_reviewed/", - "fields": [ - { - "name": "id", - "shouldLoadValue": true - }, - { - "name": "start", - "bind": "/model/instance/tambah_kb_reviewed/start" - }, - { - "name": "end", - "bind": "/model/instance/tambah_kb_reviewed/end" - }, - { - "name": "existing_location", - "bind": "/model/instance/tambah_kb_reviewed/existing_location", - "shouldLoadValue": true - }, - { - "name": "cityVillage", - "bind": "/model/instance/tambah_kb_reviewed/Village", - "shouldLoadValue": true - }, - { - "name": "Province", - "bind": "/model/instance/tambah_kb_reviewed/Province", - "shouldLoadValue": true - }, - { - "name": "Sub-district", - "bind": "/model/instance/tambah_kb_reviewed/Sub-district", - "shouldLoadValue": true - }, - { - "name": "District", - "bind": "/model/instance/tambah_kb_reviewed/District", - "shouldLoadValue": true - }, - { - "name": "Sub-village", - "bind": "/model/instance/tambah_kb_reviewed/Sub-village", - "shouldLoadValue": true - }, - { - "name": "dusun", - "bind": "/model/instance/tambah_kb_reviewed/dusun", - "shouldLoadValue": true - }, - { - "name": "provinsi", - "bind": "/model/instance/tambah_kb_reviewed/provinsi", - "shouldLoadValue": true - }, - { - "name": "kabupaten", - "bind": "/model/instance/tambah_kb_reviewed/kabupaten", - "shouldLoadValue": true - }, - { - "name": "kecamatan", - "bind": "/model/instance/tambah_kb_reviewed/kecamatan", - "shouldLoadValue": true - }, - { - "name": "desa", - "bind": "/model/instance/tambah_kb_reviewed/desa", - "shouldLoadValue": true - }, - { - "name": "tanggalkunjungan", - "bind": "/model/instance/tambah_kb_reviewed/tanggal_kunjungan" - }, - { - "name": "tanggalPeriksa", - "bind": "/model/instance/tambah_kb_reviewed/tanggal_periksa" - }, - { - "name": "lokasiPeriksa", - "bind": "/model/instance/tambah_kb_reviewed/Lokasi_periksa" - }, - { - "name": "lokasiPeriksaOther", - "bind": "/model/instance/tambah_kb_reviewed/lokasi_periksa_other" - }, - { - "name": "tanggalLahir", - "bind": "/model/instance/tambah_kb_reviewed/tanggal_lahir_ibu", - "shouldLoadValue": true - }, - { - "name": "umur", - "bind": "/model/instance/tambah_kb_reviewed/umur" - }, - { - "name": "tdSistolik", - "bind": "/model/instance/tambah_kb_reviewed/td_sistolik" - }, - { - "name": "tdDiastolik", - "bind": "/model/instance/tambah_kb_reviewed/td_diastolik" - }, - { - "name": "paritas", - "bind": "/model/instance/tambah_kb_reviewed/paritas" - }, - { - "name": "alkihb", - "bind": "/model/instance/tambah_kb_reviewed/alki_hb" - }, - { - "name": "alkilila", - "bind": "/model/instance/tambah_kb_reviewed/alki_lila" - }, - { - "name": "alkiPenyakitKronis", - "bind": "/model/instance/tambah_kb_reviewed/alki_penyakit_kronis" - }, - { - "name": "alkiPenyakitIms", - "bind": "/model/instance/tambah_kb_reviewed/alki_penyakit_ims" - }, - { - "name": "keteranganTentangPesertaKB", - "bind": "/model/instance/tambah_kb_reviewed/keterangan_tentang_peserta_kb" - }, - { - "name": "jenisKontrasepsi", - "bind": "/model/instance/tambah_kb_reviewed/jenis_kontrasepsi" - }, - { - "name": "submissionDate", - "bind": "/model/instance/tambah_kb_reviewed/today" - }, - { - "name": "registrationDate", - "bind": "/model/instance/tambah_kb_reviewed/reg_date" - } - ] - } -} diff --git a/opensrp-bidan/src/main/assets/www/form/kohort_kb_pelayanan/model.xml b/opensrp-bidan/src/main/assets/www/form/kohort_kb_pelayanan/model.xml deleted file mode 100644 index 0450102..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kohort_kb_pelayanan/model.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kohort_kb_registration/form.xml b/opensrp-bidan/src/main/assets/www/form/kohort_kb_registration/form.xml deleted file mode 100644 index bfa5aba..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kohort_kb_registration/form.xml +++ /dev/null @@ -1,936 +0,0 @@ - - - - Tambah KB OA - - Bahasa - English - - - - - - Lokasi Periksa - - * - - Location of Service - - - - - - Posyandu - - Posyandu - - - - - Polindes - - Polindes - - - - - - - Unique ID: - - - Unique ID: - - - - - - - NIK - - Mother's - National ID - - - - - - - Puskesmas - - - Primary Health Center (PHC) - - - - - - Sengkol - - Sengkol - - - - - Janapria - - Janapria - - - - - - - No. Ibu - - - Mother's Number - - - - - Nama lengkap - - Full name - - * - Nama lengkap Ibu - - - Mother's full name - - - - - Nama suami - - Name of husband - - * - Nama lengkap suami - - - Husband's full name - - - - - Tanggal lahir - - DOB - - * - Tanggal lahir Ibu - - Mother's date of birth - - - - - Umur: - - - Age - - - - - Alamat domisili - - Address - - Alamat tempat tinggal - (rumah) Ibu - - Mother's address - - - - - Pendidikan - - Education - - Pendidikan Terakhir Ibu - - - Mother's highest education - - - ... - Sekolah Dasar (SD) - Sekolah Menengah Pertama (SMP) - Sekolah Menengah Atas (SMA) - Perguruan Tinggi - Tidak sekolah - - - Sekolah Dasar (SD) - Primary School - Sekolah Menengah - Pertama (SMP) - - Junior High School - Sekolah Menengah Atas - (SMA) - - Senior High School - Perguruan Tinggi - College - Tidak sekolah - No Formal Education - - - - Agama - - - Religion - - Agama Ibu - - Mother's - religion - - - ... - Islam - Hindu - Kristen - Katolik - Budha - Lainnya - - - Islam - Islam (I) - Hindu - Hindu (H); - Kristen - Christian (K) - Katolik - Catholic - Budha - Budha (B) - Lainnya - Other - - - - Pekerjaan - - Occupation - - Pekerjaan Ibu - - - Mother's occupation - - - ... - Ibu rumah tangga - Petani - Nelayan - Pedagang - PNS - Swasta - - - Ibu rumah tangga - Housewife - Petani - farmer - Nelayan - fisherman - Pedagang - merchant - PNS - civil servant - Swasta - private empoyees - - - - - - Gakin/ Tidak - - Poor Family/not - - Apakah Ibu termasuk - keluarga miskin atau tidak - - Does mother belong to - poor family or not? - - - - - - Ya - - Yes (Y) - - - - - Tidak - - No (N) - - - - - - - Posyandu - - Health Post - - * - Nama Posyandu tempat Ibu menerima - pelayanan kesehatan - - Name - of Health Post where mother receives health care - - - - - Nama Kader - - Name of Cadre - - Nama kader Posyandu yang memberi - Ibu pelayanan kesehatan - - Name - of community health worker that gives health service - - - - - Nama Dukun - - Name of Traditional Birth - Attendant - - Nama dukun yang menemani Ibu pada - saat menerima pelayanan kesehatan - - Name - of traditional birth attendant that accompany mother during health care service - - - - - Asuransi Jiwa - - Insurance - - Jenis asuransi yang dimiliki - Ibu - - - Type insurance that mother has - - - ... - Jaminan Kesehatan Masyarakat (Jamkesmas) - - Jaminan Sosial dan Ketenagakerjaan (Jamsostek) - Jaminan Kesehatan Daerah (Jamkesda) - Asuransi Kesehatan (Askes) - Jaminan Persalinan (Jampersal) - Tidak memiliki asuransi/pembiayaan - - - Jaminan Kesehatan - Masyarakat (Jamkesmas) - - National Health - Insurance for the Poor and Near Poor; - - Jaminan Sosial dan Ketenagakerjaan - (Jamsostek) - - Social Insurance for Private Sector - Workers; - - Jaminan Kesehatan - Daerah (Jamkesda) - - Regional Health Insurance - for the Poor and Near Poor; - - Asuransi Kesehatan (Askes) - - Health Insurance for Civil - Servants and Retired Armed Forces Personnel - - Jaminan Persalinan - (Jampersal) - - Health Insurance for Pregnant - Women and Newborns - - Tidak memiliki - asuransi/pembiayaan - - No Insurance - - - - Golongan Darah - - Blood Type - - * - Menunjukan golongan darah Ibu - - - Mother's blood type - - - ... - A (A) - B (B) - AB (AB) - O (O) - Belum diketahui - - - A (A) - A - B (B) - B - AB (AB) - AB - O (O) - O - Belum diketahui - Unknown - - - - Nomer teelpon - tidak boleh lebih dari 12 digit - - Contact number - should be no more than 12 digits - - Nomor Telpon/Hp - - Landline/Cell Phone Number - - Nomor telpon/Hp yang - dimiliki oleh Ibu atau No telpon Keluarga - - Mother's contact number - - - - - - - Hasil pptest - - Pregnancy Test - - - - - - Positif - - positive - - - - - Negatif - - negative - - - - - - - Nilai yang - dimasukkan tidak memenuhi syarat, mohon periksa kembali - - The entered value - doesn't meet the criteria, please check it again - - TD (Sistolik) - - Blood pressure (sistolic) of - mother - - Menunjukkan tekanan darah - (Sistolik) Ibu pada saat kunjungan (mmHg) - - - Indicating blood pressure (systolic) on mother's visit for care service (mmHg) - - - - - Nilai yang - dimasukkan tidak memenuhi syarat, mohon periksa kembali - - The entered value - doesn't meet the criteria, please check it again - - TD (Diastolik) - - Blood pressure (Diastolic) of - mother - - Menunjukkan tekanan darah - (Diastolik) Ibu pada saat kunjungan (mmHg) - - - Indicating blood pressure (dyastolic) on mother's visit for care service (mmHg) - - - - - Nilai yang dimasukkan - tidak memenuhi syarat, mohon periksa kembali - - The entered value - doesn't meet the criteria, please check it again - - ALKI/ HB - - ALKI / HB - - Diisi dengan hasil pemeriksaan HB - - Fill in - Hb test result - - - - - Nilai yang dimasukkan - tidak memenuhi syarat, mohon periksa kembali - - The entered value - doesn't meet the criteria, please check it again - - ALKI/ LILA - - ALKI / Mid-Upper Arm - Circumference - - Diisi dengan hasil pemeriksaan - LILA - - FIll - in mother's MUAC - - - - - ALKI/ Penyakit Kronis - - ALKI / Chronical - diseases - - Diisi dengan keterangan - tentang penyakit kronis yang dimiliki peserta KB - - Fill in chronical - diseases that mother has - - - ... - TBC - DM - Jantung - Asma Berat - Malaria - Lainnya - - - TBC - TBC - DM - DM - Jantung - Heart Disease - Asma Berat - Severe Asthma - Malaria - Malaria - Lainnya - Other - - - - - - ALKI/ IMS - - ALKI / Sexually - Transmitted Infection - - Diisi dengan - keterangan tentang Infeksi Menular Seksual yang dimiliki peserta KB - - Fill in Sexually - Transmitted Infection that mother has - - - - - - Gonore - - - Gonorrhea - - - - - - Sifilis - - - Syphilis - - - - - - Condyloma - - - Condyloma - - - - - - Herpes Genitalis - - - Genital Herpes - - - - - - - - - - Keterangan tentang peserta KB - - Notes - about FP user - - Diisi - dengan keterangan tentang kunjungan peserta KB baru atau lama - - Fill - in information on whether mother is new or old FP contraceptor - - - - - - - KB baru (B) - - - New FP Acceptor (NA) - - - - - - Lama (L) - - - Old FP Acceptor (OA) - - - - - - KB Baru Pasca Salin (BO) - - - Post-partum FP Acceptor (PPA) - - - - - - - Jenis - kontrasepsi yang digunakan - - Kind of - contraceptions used - - * - Diisi - dengan jenis metode kontrasepsi yang digunakan - - Fill in - type of contraceptive method that mother uses - - - ... - Pil (P) - Suntik (S) - IUD (I) - MOW (OW) - MOP (OP) - Kondom (K) - Implant (IP) - - - Pil (P) - Pill (P) - Suntik (S) - Injection (I) - IUD (I) - IUD (I) - MOW (OW) - Tubectomy (TUB) - MOP (OP) - Vasectomy (VAS) - Kondom (K) - Condom (C) - Implant (IP) - Implant (Ip) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kohort_kb_registration/form_definition.json b/opensrp-bidan/src/main/assets/www/form/kohort_kb_registration/form_definition.json deleted file mode 100644 index edf958a..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kohort_kb_registration/form_definition.json +++ /dev/null @@ -1,215 +0,0 @@ -{ - "form_data_definition_version": "1", - "form": { - "bind_type": "kartu_ibu", - "default_bind_path": "/model/instance/tambah_kb_oa_reviewed/", - "fields": [ - { - "name": "id", - "shouldLoadValue": true - }, - { - "name": "tanggalkunjungan", - "bind": "/model/instance/tambah_kb_oa_reviewed/tanggal_kunjungan" - }, - { - "name": "Village", - "bind": "/model/instance/tambah_kb_oa_reviewed/Village", - "shouldLoadValue": true - }, - { - "name": "Province", - "bind": "/model/instance/tambah_kb_oa_reviewed/Province", - "shouldLoadValue": true - }, - { - "name": "Sub-district", - "bind": "/model/instance/tambah_kb_oa_reviewed/Sub-district", - "shouldLoadValue": true - }, - { - "name": "District", - "bind": "/model/instance/tambah_kb_oa_reviewed/District", - "shouldLoadValue": true - }, - { - "name": "Sub-village", - "bind": "/model/instance/tambah_kb_oa_reviewed/Sub-village", - "shouldLoadValue": true - }, - { - "name": "unique_id", - "bind": "/model/instance/tambah_kb_oa_reviewed/unique_id", - "shouldLoadValue": true - }, - { - "name": "lokasiPeriksa", - "bind": "/model/instance/tambah_kb_oa_reviewed/Lokasi_periksa" - }, - { - "name": "nik", - "bind": "/model/instance/tambah_kb_oa_reviewed/nik" - }, - { - "name": "provinsi", - "bind": "/model/instance/tambah_kb_oa_reviewed/provinsi" - }, - { - "name": "kabupaten", - "bind": "/model/instance/tambah_kb_oa_reviewed/kabupaten" - }, - { - "name": "kecamatan", - "bind": "/model/instance/tambah_kb_oa_reviewed/kecamatan" - }, - { - "name": "desa", - "bind": "/model/instance/tambah_kb_oa_reviewed/desa" - }, - { - "name": "dusun", - "bind": "/model/instance/tambah_kb_oa_reviewed/dusun" - }, - { - "name": "puskesmas", - "bind": "/model/instance/tambah_kb_oa_reviewed/puskesmas" - }, - { - "name": "noIbu", - "bind": "/model/instance/tambah_kb_oa_reviewed/no_ibu" - }, - { - "name": "namalengkap", - "bind": "/model/instance/tambah_kb_oa_reviewed/nama_lengkap" - }, - { - "name": "namaSuami", - "bind": "/model/instance/tambah_kb_oa_reviewed/nama_suami" - }, - { - "name": "tanggalLahir", - "bind": "/model/instance/tambah_kb_oa_reviewed/tanggal_lahir_ibu" - }, - { - "name": "umur", - "bind": "/model/instance/tambah_kb_oa_reviewed/umur" - }, - { - "name": "alamatDomisili", - "bind": "/model/instance/tambah_kb_oa_reviewed/alamat_domisili" - }, - { - "name": "pendidikan", - "bind": "/model/instance/tambah_kb_oa_reviewed/pendidikan" - }, - { - "name": "agama", - "bind": "/model/instance/tambah_kb_oa_reviewed/agama" - }, - { - "name": "pekerjaan", - "bind": "/model/instance/tambah_kb_oa_reviewed/pekerjaan" - }, - { - "name": "gakinTidak", - "bind": "/model/instance/tambah_kb_oa_reviewed/gakin_tidak" - }, - { - "name": "posyandu", - "bind": "/model/instance/tambah_kb_oa_reviewed/posyandu" - }, - { - "name": "namaKader", - "bind": "/model/instance/tambah_kb_oa_reviewed/nama_kader" - }, - { - "name": "namaDukun", - "bind": "/model/instance/tambah_kb_oa_reviewed/nama_dukun" - }, - { - "name": "asuransiJiwa", - "bind": "/model/instance/tambah_kb_oa_reviewed/asuransi_jiwa" - }, - { - "name": "golonganDarah", - "bind": "/model/instance/tambah_kb_oa_reviewed/golongan_darah" - }, - { - "name": "NomorTelponHp", - "bind": "/model/instance/tambah_kb_oa_reviewed/nomor_telpon_hp" - }, - { - "name": "pptest", - "bind": "/model/instance/tambah_kb_oa_reviewed/pptest" - }, - { - "name": "tdSistolik", - "bind": "/model/instance/tambah_kb_oa_reviewed/td_sistolik" - }, - { - "name": "tdDiastolik", - "bind": "/model/instance/tambah_kb_oa_reviewed/td_diastolik" - }, - { - "name": "paritas", - "bind": "/model/instance/tambah_kb_oa_reviewed/paritas" - }, - { - "name": "alkihb", - "bind": "/model/instance/tambah_kb_oa_reviewed/alki_hb" - }, - { - "name": "alkilila", - "bind": "/model/instance/tambah_kb_oa_reviewed/alki_lila" - }, - { - "name": "alkiPenyakitKronis", - "bind": "/model/instance/tambah_kb_oa_reviewed/alki_penyakit_kronis" - }, - { - "name": "alkiPenyakitIms", - "bind": "/model/instance/tambah_kb_oa_reviewed/alki_penyakit_ims" - }, - { - "name": "keteranganTentangPesertaKB", - "bind": "/model/instance/tambah_kb_oa_reviewed/keterangan_tentang_peserta_kb" - }, - { - "name": "jenisKontrasepsi", - "bind": "/model/instance/tambah_kb_oa_reviewed/jenis_kontrasepsi_yang_digunakan" - }, - { - "name": "tooYoungRisk", - "bind": "/model/instance/tambah_kb_oa_reviewed/Too_young_risk" - }, - { - "name": "tooOldMother", - "bind": "/model/instance/tambah_kb_oa_reviewed/Too_old_mother" - }, - { - "name": "highRiskNote", - "bind": "/model/instance/tambah_kb_oa_reviewed/high_risk_note" - }, - { - "name": "isHighRisk", - "bind": "/model/instance/tambah_kb_oa_reviewed/is_high_risk" - }, - { - "name": "isOutOfArea", - "value": "false" - }, - { - "name": "isClosed", - "value": "false" - }, - { - "name": "submissionDate", - "bind": "/model/instance/tambah_kb_oa_reviewed/today" - }, - { - "name": "registrationDate", - "bind": "/model/instance/tambah_kb_oa_reviewed/reg_date" - } - ] - } -} diff --git a/opensrp-bidan/src/main/assets/www/form/kohort_kb_registration/model.xml b/opensrp-bidan/src/main/assets/www/form/kohort_kb_registration/model.xml deleted file mode 100644 index 2042faf..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kohort_kb_registration/model.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Ibu rumah tangga - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kohort_kb_update/form.json b/opensrp-bidan/src/main/assets/www/form/kohort_kb_update/form.json deleted file mode 100644 index 79ab496..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kohort_kb_update/form.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"kohort_pelayanan_kb_reviewed","title":"Kohort Pelayanan KB","sms_keyword":"kohort_pelayanan_kb","default_language":"Bahasa","instance":{"encounter_type":"Kohort Pelayanan KB"},"version":"201610251002","id_string":"kohort_pelayanan_kb","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":"person_address","openmrs_entity_id":"stateProvince","openmrs_entity_parent":"usual_residence"}},{"bind":{"calculate":"${District}"},"type":"calculate","name":"kabupaten","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"countyDistrict","openmrs_entity_parent":"usual_residence"}},{"bind":{"calculate":"${Village}"},"type":"calculate","name":"desa","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"cityVillage","openmrs_entity_parent":"usual_residence"}},{"bind":{"calculate":"${Sub-village}"},"type":"calculate","name":"dusun","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"address1","openmrs_entity_parent":"usual_residence"}},{"bind":{"calculate":"${Sub-district}"},"type":"calculate","name":"kecamatan","instance":{"openmrs_entity":"person_address","openmrs_entity_id":"address2","openmrs_entity_parent":"usual_residence"}},{"name":"tanggal_kunjungan","hint":{"Bahasa":"Diisi dengan tanggal kunjungan/ pelayanan","English":"Fill in the date of check-up/care service"},"default":"${today}","bind":{"required":"yes"},"label":{"Bahasa":"Tanggal kunjungan","English":"date of check-up"},"instance":{"openmrs_entity_id":"160753AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"date"},{"name":"keterangan_tentang_peserta_kb","hint":{"Bahasa":"Diisi B untuk peserta KB baru, L untuk peserta KB Lama, BO untuk peserta KB baru pasca salin","English":"Fill in B if it's a new FP contraceptor, L for old contraceptor, BO for post-partum contraceptor"},"label":{"Bahasa":"Keterangan tentang Peserta KB","English":"notes about contraception tools user"},"instance":{"openmrs_entity_id":"160653AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"select one","children":[{"instance":{"openmrs_code":"163158AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"lama","label":{"Bahasa":"Lama (L)","English":"Old FP Acceptor (OA)"}},{"instance":{"openmrs_code":"163159AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"kb_baru_pasca_salin","label":{"Bahasa":"KB Baru Pasca Salin (BO)","English":"Post-partum FP Acceptor"}}]},{"control":{"appearance":"minimal"},"name":"jenis_kontrasepsi_yang_digunakan","hint":{"Bahasa":"Diisi dengan jenis metode kontrasepsi yang dilayani","English":"Fill in the type of contraceptive method used"},"bind":{"required":"yes"},"label":{"Bahasa":"Jenis Kontrasepsi yang digunakan","English":"kind of contraceptions used"},"instance":{"openmrs_entity_id":"374AAAAAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"select one","children":[{"instance":{"openmrs_code":"780AAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"pil","label":{"Bahasa":"Pil (P)","English":"Pill (P)"}},{"instance":{"openmrs_code":"5279AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"suntik","label":{"Bahasa":"Suntik (S)","English":"Injection (I)"}},{"instance":{"openmrs_code":"5275AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"iud","label":{"Bahasa":"IUD (I)","English":"IUD (I)"}},{"instance":{"openmrs_code":"5276AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"mow","label":{"Bahasa":"MOW (OW)","English":"Tubectomy (TUB)"}},{"instance":{"openmrs_code":"1489AAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"mop","label":{"Bahasa":"MOP (OP)","English":"Vasectomy (VAS)"}},{"instance":{"openmrs_code":"190AAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"kondom","label":{"Bahasa":"Kondom (K)","English":"Condom (C)"}},{"instance":{"openmrs_code":"159589AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"Implant","label":{"Bahasa":"Implant (IP)","English":"Implant (Ip)"}}]},{"name":"keterangan_tentang_peserta_kb_2","hint":{"Bahasa":"Diisi dengan ganti cara, efek samping, komplikasi","English":"Fill in GC for method change, ES for side effect, or K for complication"},"label":{"Bahasa":"Keterangan tentang Peserta KB2","English":"Information of FP Acceptor related to Contraception Use"},"instance":{"openmrs_entity_id":"159395AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"select one","children":[{"instance":{"openmrs_code":"163494AAAAAAAAAAAAAAAAAAAAAAAAAA"},"name":"ganti_cara","label":{"Bahasa":"Ganti Cara (GC)","English":"Methode Change (MC)"}},{"name":"efek_samping","label":{"Bahasa":"Efek Samping (ES)","English":"Side Effects (SE)"}},{"name":"komplikasi","label":{"Bahasa":"Komplikasi (K)","English":"Complication (C)"}}]},{"name":"keterangan_ganti_cara","hint":{"Bahasa":"Berikan alasan dan penjelasan penyebab peserta KB Ganti Cara","English":"Write the reason for Method Change"},"bind":{"relevant":"${keterangan_tentang_peserta_kb_2} = 'ganti_cara'"},"label":{"Bahasa":"Keterangan Ganti Cara","English":"Change Type (CT)"},"instance":{"openmrs_entity_id":"163494AAAAAAAAAAAAAAAAAAAAAAAAAA","openmrs_entity":"Concept"},"type":"text"},{"name":"keterangan_efek_samping","hint":{"Bahasa":"Keterangan efek samping penggunaan metode kontrasepsi","English":"Write description of side effect when using a contraceptive"},"bind":{"relevant":"${keterangan_tentang_peserta_kb_2} = 'efek_samping'"},"label":{"Bahasa":"Keterangan Efek Samping","English":"Side Effects (SE)"},"instance":{"openmrs_entity_id":"164153","openmrs_entity":"Concept"},"type":"text"},{"name":"keterangan_komplikasi","hint":{"Bahasa":"Keterangan tentang komplikasi penggunaan metode kontrasepsi","English":"Write description of complication when using a contraceptive"},"bind":{"relevant":"${keterangan_tentang_peserta_kb_2} = 'komplikasi'"},"label":{"Bahasa":"Keterangan Komplikasi","English":"Complication"},"instance":{"openmrs_entity_id":"164154","openmrs_entity":"Concept"},"type":"text"},{"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/kohort_kb_update/form.xml b/opensrp-bidan/src/main/assets/www/form/kohort_kb_update/form.xml deleted file mode 100644 index dd88785..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kohort_kb_update/form.xml +++ /dev/null @@ -1,20 +0,0 @@ - - Kohort Pelayanan KBBahasa English - - - Desa : - - - Dusun : - - - Tanggal kunjungandate of check-up*Diisi dengan tanggal kunjungan/ pelayananFill in the date of check-up/care service - Keterangan tentang Peserta KBnotes about contraception tools userDiisi B untuk peserta KB baru, L untuk peserta KB Lama, BO untuk peserta KB baru pasca salinFill in B if it's a new FP contraceptor, L for old contraceptor, BO for post-partum contraceptor - Lama (L)Old FP Acceptor (OA)KB Baru Pasca Salin (BO)Post-partum FP Acceptor - Jenis Kontrasepsi yang digunakankind of contraceptions used*Diisi dengan jenis metode kontrasepsi yang dilayaniFill in the type of contraceptive method used...Pil (P)Suntik (S)IUD (I)MOW (OW)MOP (OP)Kondom (K)Implant (IP)Pil (P)Pill (P)Suntik (S)Injection (I)IUD (I)IUD (I)MOW (OW)Tubectomy (TUB)MOP (OP)Vasectomy (VAS)Kondom (K)Condom (C)Implant (IP)Implant (Ip) - - Keterangan tentang Peserta KB2Information of FP Acceptor related to Contraception UseDiisi dengan ganti cara, efek samping, komplikasiFill in GC for method change, ES for side effect, or K for complication - Ganti Cara (GC)Methode Change (MC)Efek Samping (ES)Side Effects (SE)Komplikasi (K)Complication (C) - Keterangan Ganti CaraChange Type (CT)Berikan alasan dan penjelasan penyebab peserta KB Ganti CaraWrite the reason for Method Change - Keterangan Efek SampingSide Effects (SE)Keterangan efek samping penggunaan metode kontrasepsiWrite description of side effect when using a contraceptive - Keterangan KomplikasiComplicationKeterangan tentang komplikasi penggunaan metode kontrasepsiWrite description of complication when using a contraceptive - - \ No newline at end of file diff --git a/opensrp-bidan/src/main/assets/www/form/kohort_kb_update/form_definition.json b/opensrp-bidan/src/main/assets/www/form/kohort_kb_update/form_definition.json deleted file mode 100644 index f2e92fe..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kohort_kb_update/form_definition.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "form_data_definition_version": "1", - "form": { - "bind_type": "kartu_ibu", - "ec_bind_type": "ec_kartu_ibu", - "default_bind_path": "/model/instance/kohort_pelayanan_kb_reviewed/", - "fields": [ - { - "name": "id", - "shouldLoadValue": true - }, - { - "name": "start", - "bind": "/model/instance/kohort_pelayanan_kb_reviewed/start" - }, - { - "name": "end", - "bind": "/model/instance/kohort_pelayanan_kb_reviewed/end" - }, - { - "name": "cityVillage", - "bind": "/model/instance/kohort_pelayanan_kb_reviewed/Village", - "shouldLoadValue": true - }, - { - "name": "existing_location", - "bind": "/model/instance/kohort_pelayanan_kb_reviewed/existing_location", - "shouldLoadValue": true - }, - { - "name": "lokasiPeriksa", - "bind": "/model/instance/kohort_pelayanan_kb_reviewed/Lokasi_periksa" - }, - { - "name": "tanggalkunjungan", - "bind": "/model/instance/kohort_pelayanan_kb_reviewed/tanggal_kunjungan" - }, - { - "name": "keteranganTentangPesertaKB", - "bind": "/model/instance/kohort_pelayanan_kb_reviewed/keterangan_tentang_peserta_kb" - }, - { - "name": "jenisKontrasepsi", - "bind": "/model/instance/kohort_pelayanan_kb_reviewed/jenis_kontrasepsi_yang_digunakan" - }, - { - "name": "keterangantentangPesertaKB2", - "bind": "/model/instance/kohort_pelayanan_kb_reviewed/keterangan_tentang_peserta_kb_2" - }, - { - "name": "keteranganGantiCara", - "bind": "/model/instance/kohort_pelayanan_kb_reviewed/keterangan_ganti_cara" - }, - { - "name": "keteranganEfekSamping", - "bind": "/model/instance/kohort_pelayanan_kb_reviewed/keterangan_efek_samping" - }, - { - "name": "keteranganKomplikasi", - "bind": "/model/instance/kohort_pelayanan_kb_reviewed/keterangan_komplikasi" - }, - { - "name": "submissionDate", - "bind": "/model/instance/kohort_pelayanan_kb_reviewed/today" - }, - { - "name": "registrationDate", - "bind": "/model/instance/kohort_pelayanan_kb_reviewed/reg_date" - } - ] - } -} diff --git a/opensrp-bidan/src/main/assets/www/form/kohort_kb_update/model.xml b/opensrp-bidan/src/main/assets/www/form/kohort_kb_update/model.xml deleted file mode 100644 index bb04532..0000000 --- a/opensrp-bidan/src/main/assets/www/form/kohort_kb_update/model.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - ${today} - - - - - - - - - - - - - \ No newline at end of file diff --git a/opensrp-bidan/src/main/java/org/smartregister/bidan/AllConstantsINA.java b/opensrp-bidan/src/main/java/org/smartregister/bidan/AllConstantsINA.java deleted file mode 100644 index 339f8bc..0000000 --- a/opensrp-bidan/src/main/java/org/smartregister/bidan/AllConstantsINA.java +++ /dev/null @@ -1,221 +0,0 @@ -package org.smartregister.bidan; - -/** - * Created by Dimas Ciputra on 9/12/15. - */ -public class AllConstantsINA { - - public static final String BOOLEAN_TRUE = "yes"; - public static final String BOOLEAN_FALSE = "no"; - public static final String SPACE = " "; - public static final String COMMA_WITH_SPACE = ", "; - public static final int DIALOG_DOUBLE_SELECTION_NUM = 3; - public static final String FEMALE_GENDER_INA = "perempuan"; - public static final String ENGLISH_LOCALE = "en"; - public static final String BAHASA_LOCALE = "in"; - public static final String DEFAULT_LOCALE = ENGLISH_LOCALE; - public static final String ENGLISH_LANGUAGE = "English"; - public static final String BAHASA_LANGUAGE = "Bahasa Indonesia"; - public static final String OUT_OF_AREA = "out_of_area"; - public static final String IN_AREA = "in_area"; - - public static final String HIGH_RISK = "high_risk"; - public static final String HIGH_RISK_PREGNANCY = "high_risk_pregnancy"; - public static final String HIGH_RISK_LABOUR = "high_risk_labour"; - public static final String HIGH_RISK_POST_PARTUM = "high_risk_post_partum"; - - - - // Flurry Bidan Testing 2 -// public static final String FLURRY_KEY = "9RDM5TWW4HJ5QH8TNJ3P"; - - // COLOR - public static final String RED_ORANGE = "#FE642E"; - public static final String ORANGE_YELLOW = "#D7DF01"; - public static final String YELLOW_GREEN = "#86B404"; - public static final String GREEN = "#5FB404"; - - - // Flurry Key Bidan EC Prototype 1 - public static final String FLURRY_KEY = "7N8KZP67BP6QRJPB2RXX"; - // @NULL - public static boolean IDLE = true; - public static int SLEEP_TIME = 5000; - - public class KeluargaBerencanaFields { - public static final String CONTRACEPTION_METHOD = "jenisKontrasepsi"; - public static final String KELUARGA_BERENCANA = "KB"; - public static final String KB_INFORMATION_1 = "keteranganTentangPesertaKB"; - public static final String KB_INFORMATION_2 = "keteranganTentangPesertaKB2"; - public static final String IMS = "alkiPenyakitIms"; - public static final String HB = "alkihb"; - public static final String LILA = "alkilila"; - public static final String ALKI_CHRONIC_DISEASE = "alkiPenyakitKronis"; - } - - public class CommonFormFields { - public static final String SUBMISSION_DATE = "submissionDate"; - public static final String UNIQUE_ID = "unique_id"; - } - - - public class FormNames { - public static final String EC_REGISTRATION = "ec_registration"; - public static final String FP_COMPLICATIONS = "fp_complications"; - public static final String FP_CHANGE = "fp_change"; - public static final String RENEW_FP_PRODUCT = "renew_fp_product"; - public static final String EC_CLOSE = "ec_close"; - public static final String ANC_REGISTRATION = "anc_registration"; - public static final String ANC_REGISTRATION_OA = "anc_registration_oa"; - public static final String ANC_VISIT = "anc_visit"; - public static final String ANC_CLOSE = "anc_close"; - public static final String TT = "tt"; - public static final String TT_BOOSTER = "tt_booster"; - public static final String TT_1 = "tt_1"; - public static final String TT_2 = "tt_2"; - public static final String IFA = "ifa"; - public static final String HB_TEST = "hb_test"; - public static final String DELIVERY_OUTCOME = "delivery_outcome"; - public static final String PNC_REGISTRATION_OA = "pnc_registration_oa"; - public static final String PNC_CLOSE = "pnc_close"; - public static final String PNC_VISIT = "pnc_visit"; - public static final String PNC_POSTPARTUM_FAMILY_PLANNING = "postpartum_family_planning"; - public static final String CHILD_IMMUNIZATIONS = "child_immunizations"; - public static final String CHILD_REGISTRATION_EC = "child_registration_ec"; - public static final String CHILD_REGISTRATION_OA = "child_registration_oa"; - public static final String CHILD_CLOSE = "child_close"; - public static final String CHILD_ILLNESS = "child_illness"; - public static final String VITAMIN_A = "vitamin_a"; - public static final String DELIVERY_PLAN = "delivery_plan"; - public static final String EC_EDIT = "ec_edit"; - public static final String ANC_INVESTIGATIONS = "anc_investigations"; - public static final String RECORD_ECPS = "record_ecps"; - public static final String FP_REFERRAL_FOLLOWUP = "fp_referral_followup"; - public static final String FP_FOLLOWUP = "fp_followup"; - - // KOHORT IBU - public static final String KARTU_IBU_REGISTRATION = "kartu_ibu_registration"; - public static final String KARTU_IBU_EDIT = "kartu_ibu_edit"; - public static final String KARTU_IBU_CLOSE = "kartu_ibu_close"; - - // ANC - public static final String KARTU_IBU_ANC_REGISTRATION = "kartu_anc_registration"; - public static final String KARTU_IBU_ANC_OA="kartu_anc_registration_oa"; - public static final String KARTU_IBU_ANC_RENCANA_PERSALINAN = "kartu_anc_rencana_persalinan"; - public static final String KARTU_IBU_ANC_EDIT="kartu_anc_visit_edit"; - public static final String KARTU_IBU_ANC_CLOSE="kartu_anc_close"; - public static final String KARTU_IBU_ANC_VISIT="kartu_anc_visit"; - public static final String KARTU_IBU_ANC_VISIT_INTEGRASI = "kartu_anc_visit_integrasi"; - public static final String KARTU_IBU_ANC_VISIT_LABTEST = "kartu_anc_visit_labTest"; - - // PNC - public static final String KARTU_IBU_PNC_EDIT="kartu_pnc_edit"; - public static final String KARTU_IBU_PNC_REGISTRATION = "kartu_pnc_dokumentasi_persalinan"; - public static final String KARTU_IBU_PNC_CLOSE="kartu_pnc_close"; - public static final String KARTU_IBU_PNC_OA="kartu_pnc_regitration_oa"; - public static final String KARTU_IBU_PNC_VISIT="kartu_pnc_visit"; - public static final String KARTU_IBU_PNC_POSPARTUM_KB="kartu_pnc_pospartum_kb"; - - // ANAK - public static final String KOHORT_BAYI_KUNJUNGAN="kohort_bayi_kunjungan"; - public static final String KARTU_IBU_ANAK_CLOSE="kohort_anak_tutup"; - public static final String BALITA_KUNJUNGAN="kohort_balita_kunjungan"; - public static final String BAYI_IMUNISASI="kohort_bayi_immunization"; - public static final String BAYI_NEONATAL_PERIOD="kohort_bayi_neonatal_period"; - public static final String KOHORT_BAYI_EDIT="kohort_bayi_edit"; - public static final String ANAK_BAYI_REGISTRATION = "kohort_bayi_registration"; - public static final String ANAK_NEW_REGISTRATION="kohort_bayi_registration_oa"; - - // KB - public static final String KOHORT_KB_REGISTER="kohort_kb_registration"; - public static final String KOHORT_KB_PELAYANAN="kohort_kb_pelayanan"; - public static final String KOHORT_KB_CLOSE="kohort_kb_close"; - public static final String KOHORT_KB_UPDATE="kohort_kb_update"; - // public static final String KOHORT_KB_EDIT="kohort_kb_edit"; - - public static final String FEEDBACK_BIDAN = "feedback_bidan"; - } - - public class KartuIbuFields { - public static final String PUSKESMAS_NAME = "puskesmas"; - public static final String POSYANDU_NAME = "posyandu"; - public static final String PROPINSI = "propinsi"; - public static final String KABUPATEN = "kabupaten"; - public static final String MOTHER_ADDRESS = "alamatDomisili"; - public static final String MOTHER_NUMBER = "noIbu"; - public static final String MOTHER_NAME = "namalengkap"; - public static final String MOTHER_AGE = "umur"; - public static final String MOTHER_BLOOD_TYPE = "golonganDarah"; - public static final String MOTHER_DOB = "tanggalLahir"; - public static final String HUSBAND_NAME = "namaSuami"; - public static final String VILLAGE = "dusun"; - public static final String NUMBER_PARTUS = "partus"; - public static final String NUMBER_ABORTIONS = "abortus"; - public static final String NUMBER_OF_PREGNANCIES = "gravida"; - public static final String NUMBER_OF_LIVING_CHILDREN = "hidup"; - public static final String IS_HIGH_PRIORITY = "isHighPriority"; - public static final String IS_HIGH_RISK = "isHighRisk"; - public static final String IS_HIGH_RISK_ANC = "isHighRiskANC"; - public static final String IS_HIGH_RISK_PREGNANCY = "isHighRiskPregnancy"; - public static final String IS_HIGH_RISK_LABOUR = "isHighRiskLabour"; - public static final String UNIQUE_ID = "unique_id"; - public static final String EDD = "htp"; - public static final String VISITS_DATE = "tanggalkunjungan"; - public static final String CHRONIC_DISEASE = "penyakitKronis"; - } - - public class KartuANCFields { - public static final String MOTHER_NUTRITION_STATUS = "StatusGiziibu"; - public static final String COMPLICATION_HISTORY = "riwayatKomplikasiKebidanan"; - public static final String TRIMESTER = "trimesterKe"; - public static final String IMMUNIZATION_TT_STATUS = "StatusImunisasiTT"; - public static final String CLINICAL_AGE = "UsiaKlinis"; - public static final String WEIGHT_BEFORE = "bbSebelumHamil"; - public static final String WEIGHT_CHECK_RESULT = "bbKg"; - public static final String LILA_CHECK_RESULT = "hasilPemeriksaanLILA"; - public static final String HEIGHT = "tbCM"; - public static final String ALLERGY = "Alergi"; - public static final String HPHT_DATE = "tanggalHPHT"; - public static final String HIGH_RISK_PREGNANCY_REASON = "highRiskPregnancyReason"; - public static final String HB_RESULT = "laboratoriumPeriksaHbHasil"; - public static final String SUGAR_BLOOD_LEVEL = "laboratoriumGulaDarah"; - public static final String PELVIC_DEFORMITY = "kelainanBentuk"; - public static final String FETUS_SIZE = "taksiranBeratJanin"; - public static final String FETUS_NUMBER = "jumlahJanin"; - public static final String FETUS_POSITION = "persentasi_janin"; - public static final String ANC_VISIT_NUMBER = "ancKe"; - } - - public class KartuPNCFields { - public static final String PLANNING = "Rencana"; - public static final String COMPLICATION = "komplikasi"; - public static final String OTHER_COMPLICATION = "komplikasi_lainnya"; - public static final String VITAL_SIGNS_TD_DIASTOLIC = "tandaVitalTDDiastolik"; - public static final String VITAL_SIGNS_TD_SISTOLIC = "tandaVitalTDSistolik"; - public static final String VITAL_SIGNS_TEMP = "tandaVitalSuhu"; - public static final String MOTHER_CONDITION = "keadaanIbu"; - public static final String PREGNANCY_AGE = "usiaKehamilan"; - public static final String DELIVERY_METHOD = "caraPersalinanIbu"; - } - - public class KartuAnakFields { - public static final String BABY_NO = "noBayi"; - public static final String BIRTH_WEIGHT = "beratLahir"; - public static final String CHILD_NAME = "namaBayi"; - public static final String BIRTH_CONDITION = "saatLahirsd5JamKondisibayi"; - public static final String SERVICE_AT_BIRTH = "jenisPelayananYangDiberikanSaatLahir"; - public static final String DATE_OF_BIRTH = "tanggalLahirAnak"; - public static final String GENDER = "jenisKelamin"; - public static final String IS_HIGH_RISK_CHILD = "isHighRiskChild"; - public static final String IMMUNIZATION_HB_0_7_DATES = "tanggalpemberianimunisasiHb07"; - public static final String IMMUNIZATION_BCG_AND_POLIO1 = "tanggalpemberianimunisasiBCGdanPolio1"; - public static final String IMMUNIZATION_DPT_HB1_POLIO2 = "tanggalpemberianimunisasiDPTHB1Polio2"; - public static final String IMMUNIZATION_DPT_HB2_POLIO3 = "tanggalpemberianimunisasiDPTHB2Polio3"; - public static final String IMMUNIZATION_DPT_HB3_POLIO4 = "tanggalpemberianimunisasiDPTHB3Polio4"; - public static final String IMMUNIZATION_MEASLES = "tanggalpemberianimunisasiCampak"; - public static final String HB_GIVEN = "saatLahirsd5JamPemberianImunisasihbJikaDilakukan"; - public static final String BIRTH_PLACE = "tempatBersalin"; - public static final String CHILD_VISIT_DATE = "tanggalKunjunganBayiPerbulan"; - public static final String CHILD_CURRENT_WEIGTH = "beratBadanBayiSetiapKunjunganBayiPerbulan"; - } -} diff --git a/opensrp-bidan/src/main/java/org/smartregister/bidan/BidanHomeActivity.java b/opensrp-bidan/src/main/java/org/smartregister/bidan/BidanHomeActivity.java deleted file mode 100644 index 4bf2c7c..0000000 --- a/opensrp-bidan/src/main/java/org/smartregister/bidan/BidanHomeActivity.java +++ /dev/null @@ -1,393 +0,0 @@ -package org.smartregister.bidan; - -import android.database.Cursor; -import android.os.StrictMode; -import android.view.Menu; -import android.view.MenuInflater; -import android.view.MenuItem; -import android.view.View; -import android.widget.TextView; -import android.widget.Toast; - -import com.flurry.android.FlurryAgent; - -import org.json.JSONObject; -import org.opensrp.api.util.EntityUtils; -import org.opensrp.api.util.LocationTree; -import org.smartregister.Context; -import org.smartregister.bidan.lib.FlurryFacade; -import org.smartregister.cursoradapter.SmartRegisterQueryBuilder; -import org.smartregister.event.Listener; -import org.smartregister.service.PendingFormSubmissionService; -import org.smartregister.sync.SyncAfterFetchListener; -import org.smartregister.sync.SyncProgressIndicator; -import org.smartregister.sync.UpdateActionsTask; -import org.smartregister.view.activity.SecuredActivity; -import org.smartregister.view.contract.HomeContext; -import org.smartregister.view.controller.NativeAfterANMDetailsFetchListener; -import org.smartregister.view.controller.NativeUpdateANMDetailsTask; - -import java.text.SimpleDateFormat; -import java.util.Date; -import java.util.HashMap; -import java.util.Map; - -import butterknife.Bind; -import butterknife.BindDrawable; -import util.formula.Support; - -import static android.widget.Toast.LENGTH_SHORT; -import static java.lang.String.valueOf; -import static org.smartregister.event.Event.ACTION_HANDLED; -import static org.smartregister.event.Event.FORM_SUBMITTED; -import static org.smartregister.event.Event.SYNC_COMPLETED; -import static org.smartregister.event.Event.SYNC_STARTED; - -public class BidanHomeActivity extends SecuredActivity { - private MenuItem updateMenuItem; - private MenuItem remainingFormsToSyncMenuItem; - private PendingFormSubmissionService pendingFormSubmissionService; - - private Listener onSyncStartListener = new Listener() { - @Override - public void onEvent(Boolean data) { - Support.ONSYNC = true; - AllConstantsINA.IDLE = false; - AllConstantsINA.SLEEP_TIME = 15000; - if (updateMenuItem != null) { - updateMenuItem.setActionView(R.layout.progress); - } - } - }; - - private Listener onSyncCompleteListener = new Listener() { - @Override - public void onEvent(Boolean data) { - //#TODO: RemainingFormsToSyncCount cannot be updated from a back ground thread!! - updateRemainingFormsToSyncCount(); - if (updateMenuItem != null) { - updateMenuItem.setActionView(null); - } - updateRegisterCounts(); - - //FR -// new Tools(context()); -// Tools.setVectorfromAPI(getApplicationContext()); - - flagActivator(); - - } - }; - - private void flagActivator(){ - new Thread(){ - public void run(){ - try{ - while(AllConstantsINA.SLEEP_TIME>0){ - sleep(1000); - if(AllConstantsINA.IDLE) - AllConstantsINA.SLEEP_TIME-=1000; - } - Support.ONSYNC=false; - }catch (InterruptedException ie){ - - } - } - }.start(); - } - - private Listener onFormSubmittedListener = new Listener() { - @Override - public void onEvent(String instanceId) { - updateRegisterCounts(); - } - }; - - private Listener updateANMDetailsListener = new Listener() { - @Override - public void onEvent(String data) { - updateRegisterCounts(); - } - }; - - SimpleDateFormat timer = new SimpleDateFormat("hh:mm:ss"); - private TextView ecRegisterClientCountView; - private TextView kartuIbuANCRegisterClientCountView; - private TextView kartuIbuPNCRegisterClientCountView; - private TextView anakRegisterClientCountView; - private TextView kohortKbCountView; -// public static CommonPersonObjectController kicontroller; -// public static CommonPersonObjectController anccontroller; -// public static CommonPersonObjectController kbcontroller; -// public static CommonPersonObjectController childcontroller; -// public static CommonPersonObjectController pnccontroller; - public static int kicount; - - @Override - protected void onCreation() { - //home dashboard - /*FlurryFacade.logEvent("home_dashboard");*/ - String HomeStart = timer.format(new Date()); - Map Home = new HashMap(); - Home.put("start", HomeStart); - FlurryAgent.logEvent("home_dashboard", Home, true); - - setContentView(R.layout.smart_registers_home_bidan); - navigationController = new NavigationControllerINA(this, anmController, context()); - setupViews(); - initialize(); - - // Require by Enketo form -// DisplayFormFragment.formInputErrorMessage = getResources().getString(R.string.forminputerror); -// DisplayFormFragment.okMessage = getResources().getString(R.string.okforminputerror); - - int SDK_INT = android.os.Build.VERSION.SDK_INT; - if (SDK_INT > 8) - { - StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder() - .permitAll().build(); - StrictMode.setThreadPolicy(policy); - - } - } - - private void setupViews() { - - findViewById(R.id.btn_kartu_ibu_register).setOnClickListener(onRegisterStartListener); - findViewById(R.id.btn_kartu_ibu_anc_register).setOnClickListener(onRegisterStartListener); - findViewById(R.id.btn_kartu_ibu_pnc_register).setOnClickListener(onRegisterStartListener); - findViewById(R.id.btn_anak_register).setOnClickListener(onRegisterStartListener); - findViewById(R.id.btn_kohort_kb_register).setOnClickListener(onRegisterStartListener); - - findViewById(R.id.btn_reporting).setOnClickListener(onButtonsClickListener); -// findViewById(R.id.btn_videos).setOnClickListener(onButtonsClickListener); - - ecRegisterClientCountView = (TextView) findViewById(R.id.txt_kartu_ibu_register_client_count); - kartuIbuANCRegisterClientCountView = (TextView) findViewById(R.id.txt_kartu_ibu_anc_register_client_count); - kartuIbuPNCRegisterClientCountView = (TextView) findViewById(R.id.txt_kartu_ibu_pnc_register_client_count); - anakRegisterClientCountView = (TextView) findViewById(R.id.txt_anak_client_count); - kohortKbCountView = (TextView) findViewById(R.id.txt_kohort_kb_register_count); - } - - private void initialize() { - pendingFormSubmissionService = context().pendingFormSubmissionService(); - SYNC_STARTED.addListener(onSyncStartListener); - SYNC_COMPLETED.addListener(onSyncCompleteListener); - FORM_SUBMITTED.addListener(onFormSubmittedListener); - ACTION_HANDLED.addListener(updateANMDetailsListener); - getSupportActionBar().setTitle(""); - getSupportActionBar().setIcon(getResources().getDrawable(org.smartregister.bidan.R.mipmap.logo)); - getSupportActionBar().setLogo(org.smartregister.bidan.R.mipmap.logo); - getSupportActionBar().setDisplayUseLogoEnabled(true); - getSupportActionBar().setDisplayShowHomeEnabled(true); - LoginActivity.setLanguage(); -// getActionBar().setBackgroundDrawable(getResources().getDrawable(R.color.action_bar_background)); - } - - @Override - protected void onResumption() { - LoginActivity.setLanguage(); - updateRegisterCounts(); - updateSyncIndicator(); - updateRemainingFormsToSyncCount(); -// initFR(); - } - -// private void initFR() { -// new Tools(context()); -// } - - - private void updateRegisterCounts() { - NativeUpdateANMDetailsTask task = new NativeUpdateANMDetailsTask(Context.getInstance().anmController()); - task.fetch(new NativeAfterANMDetailsFetchListener() { - @Override - public void afterFetch(HomeContext anmDetails) { - updateRegisterCounts(anmDetails); - } - }); - } - - private void updateRegisterCounts(HomeContext homeContext) { - SmartRegisterQueryBuilder sqb = new SmartRegisterQueryBuilder(); - Cursor kicountcursor = context().commonrepository("ec_kartu_ibu").rawCustomQueryForAdapter(sqb.queryForCountOnRegisters("ec_kartu_ibu_search", "ec_kartu_ibu_search.is_closed=0")); - kicountcursor.moveToFirst(); - kicount= kicountcursor.getInt(0); - kicountcursor.close(); - - Cursor kbcountcursor = context().commonrepository("ec_kartu_ibu").rawCustomQueryForAdapter(sqb.queryForCountOnRegisters("ec_kartu_ibu_search", "ec_kartu_ibu_search.is_closed=0 and jenisKontrasepsi !='0'" )); - kbcountcursor.moveToFirst(); - int kbcount = kbcountcursor.getInt(0); - kbcountcursor.close(); - - Cursor anccountcursor = context().commonrepository("ec_ibu").rawCustomQueryForAdapter(sqb.queryForCountOnRegisters("ec_ibu_search", "ec_ibu_search.is_closed=0 ")); - anccountcursor.moveToFirst(); - int anccount = anccountcursor.getInt(0); - anccountcursor.close(); - - Cursor pnccountcursor = context().commonrepository("ec_pnc").rawCustomQueryForAdapter(sqb.queryForCountOnRegisters("ec_pnc_search", "ec_pnc_search.is_closed=0 AND (ec_pnc_search.keadaanIbu ='hidup' OR ec_pnc_search.keadaanIbu IS NULL) ")); // and ec_pnc_search.keadaanIbu LIKE '%hidup%' - pnccountcursor.moveToFirst(); - int pnccount = pnccountcursor.getInt(0); - pnccountcursor.close(); - - Cursor childcountcursor = context().commonrepository("anak").rawCustomQueryForAdapter(sqb.queryForCountOnRegisters("ec_anak_search", "ec_anak_search.is_closed=0")); - childcountcursor.moveToFirst(); - int childcount = childcountcursor.getInt(0); - childcountcursor.close(); - - ecRegisterClientCountView.setText(valueOf(kicount)); - kartuIbuANCRegisterClientCountView.setText(valueOf(anccount)); - kartuIbuPNCRegisterClientCountView.setText(valueOf(pnccount)); - anakRegisterClientCountView.setText(valueOf(childcount)); - kohortKbCountView.setText(valueOf(kbcount)); - } - - @Override - public boolean onCreateOptionsMenu(Menu menu) { - MenuInflater inflater = getMenuInflater(); - inflater.inflate(R.menu.menu_main, menu); - attachLogoutMenuItem(menu); - return true; - } - - @Override - public boolean onPrepareOptionsMenu(Menu menu) { - super.onPrepareOptionsMenu(menu); - updateMenuItem = menu.findItem(R.id.updateMenuItem); - remainingFormsToSyncMenuItem = menu.findItem(R.id.remainingFormsToSyncMenuItem); - - updateSyncIndicator(); - updateRemainingFormsToSyncCount(); - return true; - } - - @Override - public boolean onOptionsItemSelected(MenuItem item) { - switch (item.getItemId()) { - case R.id.updateMenuItem: - updateFromServer(); - return true; - case R.id.switchLanguageMenuItem: - String newLanguagePreference = LoginActivity.switchLanguagePreference(); - LoginActivity.setLanguage(); - Toast.makeText(this, "Language preference set to " + newLanguagePreference + ". Please restart the application.", LENGTH_SHORT).show(); - this.recreate(); - return true; - case R.id.help: - String anmID; - try { - anmID = new JSONObject(context().anmController().get()).get("anmName").toString(); - }catch (org.json.JSONException e){ - anmID = "undefined"; - } - Toast.makeText(this, String.format("%s current user = %s",context().getStringResource(R.string.app_name),anmID), LENGTH_SHORT).show(); - return true; - default: - return super.onOptionsItemSelected(item); - } - } - - public void updateFromServer() { - FlurryFacade.logEvent("clicked_update_from_server"); - UpdateActionsTask updateActionsTask = new UpdateActionsTask( - this, context().actionService(), context().formSubmissionSyncService(), - new SyncProgressIndicator(), context().allFormVersionSyncService()); - updateActionsTask.updateFromServer(new SyncAfterFetchListener()); - String locationjson = context().anmLocationController().get(); - LocationTree locationTree = EntityUtils.fromJson(locationjson, LocationTree.class); - -// Map> locationMap = -// locationTree.getLocationsHierarchy(); - - if(LoginActivity.generator.uniqueIdController().needToRefillUniqueId(LoginActivity.generator.UNIQUE_ID_LIMIT)) // unique id part - LoginActivity.generator.requestUniqueId(); // unique id part - } - - @Override - protected void onDestroy() { - super.onDestroy(); - - SYNC_STARTED.removeListener(onSyncStartListener); - SYNC_COMPLETED.removeListener(onSyncCompleteListener); - FORM_SUBMITTED.removeListener(onFormSubmittedListener); - ACTION_HANDLED.removeListener(updateANMDetailsListener); - } - - private void updateSyncIndicator() { - if (updateMenuItem != null) { - if (context().allSharedPreferences().fetchIsSyncInProgress()) { - updateMenuItem.setActionView(R.layout.progress); - } else - updateMenuItem.setActionView(null); - } - } - - private void updateRemainingFormsToSyncCount() { - if (remainingFormsToSyncMenuItem == null) { - return; - } - - long size = pendingFormSubmissionService.pendingFormSubmissionCount(); - if (size > 0) { - remainingFormsToSyncMenuItem.setTitle(valueOf(size) + " " + getString(R.string.unsynced_forms_count_message)); - remainingFormsToSyncMenuItem.setVisible(true); - } else { - remainingFormsToSyncMenuItem.setVisible(false); - } - } - - private View.OnClickListener onRegisterStartListener = new View.OnClickListener() { - - @Override - public void onClick(View view) { - switch (view.getId()) { - case R.id.btn_kartu_ibu_register: - navigationController.startECSmartRegistry(); - break; - - case R.id.btn_kohort_kb_register: - navigationController.startFPSmartRegistry(); - break; - - case R.id.btn_kartu_ibu_anc_register: - navigationController.startANCSmartRegistry(); - break; - - case R.id.btn_anak_register: - navigationController.startChildSmartRegistry(); - break; - - case R.id.btn_kartu_ibu_pnc_register: - navigationController.startPNCSmartRegistry(); - break; - } - String HomeEnd = timer.format(new Date()); - Map Home = new HashMap(); - Home.put("end", HomeEnd); - FlurryAgent.logEvent("home_dashboard",Home, true); - } - }; - - private View.OnClickListener onButtonsClickListener = new View.OnClickListener() { - - @Override - public void onClick(View view) { - switch (view.getId()) { - case R.id.btn_reporting: - navigationController.startReports(); - break; - -// case R.id.btn_videos: -// navigationController.startVideos(); -// break; - } - } - }; - - - public void helpMenu(){ - Toast.makeText(getApplicationContext(), String.valueOf(1), Toast.LENGTH_LONG).show(); - - } - -} \ No newline at end of file diff --git a/opensrp-bidan/src/main/java/org/smartregister/bidan/LoginActivity.java b/opensrp-bidan/src/main/java/org/smartregister/bidan/LoginActivity.java deleted file mode 100644 index 08a72e5..0000000 --- a/opensrp-bidan/src/main/java/org/smartregister/bidan/LoginActivity.java +++ /dev/null @@ -1,422 +0,0 @@ -package org.smartregister.bidan; - -import android.app.Activity; -import android.app.AlertDialog; -import android.app.ProgressDialog; -import android.content.DialogInterface; -import android.content.Intent; -import android.content.pm.ApplicationInfo; -import android.content.pm.PackageInfo; -import android.content.pm.PackageManager; -import android.content.res.Resources; -import android.os.Bundle; -import android.text.InputType; -import android.util.DisplayMetrics; -import android.view.KeyEvent; -import android.view.LayoutInflater; -import android.view.Menu; -import android.view.MenuItem; -import android.view.View; -import android.view.inputmethod.EditorInfo; -import android.view.inputmethod.InputMethodManager; -import android.widget.EditText; -import android.widget.ImageView; -import android.widget.TextView; - -import com.flurry.android.FlurryAgent; - -import org.smartregister.Context; -import org.smartregister.bidan.lib.ErrorReportingFacade; -import org.smartregister.bidan.utils.Config; -import org.smartregister.domain.LoginResponse; -import org.smartregister.domain.Response; -import org.smartregister.domain.ResponseStatus; -import org.smartregister.event.Listener; -import org.smartregister.repository.AllSharedPreferences; -import org.smartregister.sync.DrishtiSyncScheduler; -import org.smartregister.util.Log; -import org.smartregister.view.BackgroundAction; -import org.smartregister.view.LockingBackgroundTask; -import org.smartregister.view.ProgressIndicator; -import org.smartregister.view.activity.SettingsActivity; - -import java.io.IOException; -import java.text.SimpleDateFormat; -import java.util.Locale; -import java.util.zip.ZipEntry; -import java.util.zip.ZipFile; - -import util.uniqueIdGenerator.Generator; - -import static android.preference.PreferenceManager.getDefaultSharedPreferences; -import static android.view.inputmethod.InputMethodManager.HIDE_NOT_ALWAYS; -import static org.smartregister.domain.LoginResponse.NO_INTERNET_CONNECTIVITY; -import static org.smartregister.domain.LoginResponse.SUCCESS; -import static org.smartregister.domain.LoginResponse.UNAUTHORIZED; -import static org.smartregister.domain.LoginResponse.UNKNOWN_RESPONSE; -import static org.smartregister.util.Log.logError; -import static org.smartregister.util.Log.logVerbose; - -public class LoginActivity extends Activity { - private Context context; - private EditText userNameEditText; - private EditText passwordEditText; - private ProgressDialog progressDialog; - public static final String ENGLISH_LOCALE = "en"; - public static final String KANNADA_LOCALE = "kn"; - public static final String BENGALI_LOCALE = "bn"; - public static final String BAHASA_LOCALE = "in"; - public static final String ENGLISH_LANGUAGE = "English"; - public static final String KANNADA_LANGUAGE = "Kannada"; - public static final String Bengali_LANGUAGE = "Bengali"; - public static final String Bahasa_LANGUAGE = "Bahasa"; - - public static Generator generator; - - @Override - public void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - logVerbose("Initializing ..."); - try{ - AllSharedPreferences allSharedPreferences = new AllSharedPreferences(getDefaultSharedPreferences(this)); - String preferredLocale = allSharedPreferences.fetchLanguagePreference(); - Resources res = Context.getInstance().applicationContext().getResources(); - // Change locale settings in the app. - DisplayMetrics dm = res.getDisplayMetrics(); - android.content.res.Configuration conf = res.getConfiguration(); - conf.locale = new Locale(preferredLocale); - res.updateConfiguration(conf, dm); - }catch(Exception e){ - - } - setContentView(R.layout.login); - ImageView loginglogo = (ImageView)findViewById(R.id.login_logo); - loginglogo.setImageDrawable(getResources().getDrawable(R.drawable.login_logo_bidan)); - context = Context.getInstance().updateApplicationContext(this.getApplicationContext()); - initializeLoginFields(); - initializeBuildDetails(); - setDoneActionHandlerOnPasswordField(); - initializeProgressDialog(); - getActionBar().setTitle(""); - getActionBar().setIcon(getResources().getDrawable(org.smartregister.bidan.R.mipmap.logo)); - getActionBar().setBackgroundDrawable(getResources().getDrawable(org.smartregister.bidan.R.color.action_bar_background)); - setLanguage(); - -// debugApp(); - - } - - - @Override - public boolean onCreateOptionsMenu(Menu menu) - { - // Inflate the menu; this adds items to the action bar if it is present. - menu.add("Settings"); - return true; - } - - @Override - public boolean onOptionsItemSelected(MenuItem item) { - if(item.getTitle().toString().equalsIgnoreCase("Settings")){ - startActivity(new Intent(this,SettingsActivity.class)); - return true; - } - return super.onOptionsItemSelected(item); - } - - private void initializeBuildDetails() { - TextView buildDetailsTextView = (TextView) findViewById(R.id.login_build); - try { - buildDetailsTextView.setText("Version " + getVersion() + ", Built on: " + getBuildDate()); - } catch (Exception e) { - logError("Error fetching build details: " + e); - } - } - - @Override - protected void onResume() { - super.onResume(); - - if (!context.IsUserLoggedOut()) { - goToHome(); - } - - fillUserIfExists(); - } - - private void debugApp() { - Config config = new Config(); - String uname = null, pwd = null; - try { - uname = config.getCredential("uname", getApplicationContext()); - pwd = config.getCredential("pwd", getApplicationContext()); - } catch (IOException e) { - e.printStackTrace(); - } - - LayoutInflater layoutInflater = getLayoutInflater(); - View view = layoutInflater.inflate(R.layout.login, null); - if (context.userService().hasARegisteredUser()){ - localLogin(view, uname, pwd); - } else { - remoteLogin(view, uname, pwd); - } - } - - - public void login(final View view) { - hideKeyboard(); - view.setClickable(false); - - final String userName = userNameEditText.getText().toString(); - final String password = passwordEditText.getText().toString(); - - if (context.userService().hasARegisteredUser()) { - localLogin(view, userName, password); - } else { - remoteLogin(view, userName, password); - } - } - - private void initializeLoginFields() { - userNameEditText = ((EditText) findViewById(R.id.login_userNameText)); - userNameEditText.setRawInputType(InputType.TYPE_CLASS_TEXT); - passwordEditText = ((EditText) findViewById(R.id.login_passwordText)); - passwordEditText.setRawInputType(InputType.TYPE_CLASS_TEXT); - } - - private void setDoneActionHandlerOnPasswordField() { - passwordEditText.setOnEditorActionListener(new TextView.OnEditorActionListener() { - @Override - public boolean onEditorAction(TextView v, int actionId, KeyEvent event) { - if (actionId == EditorInfo.IME_ACTION_DONE) { - login(findViewById(R.id.login_loginButton)); - } - return false; - } - }); - } - - private void initializeProgressDialog() { - progressDialog = new ProgressDialog(this); - progressDialog.setCancelable(false); - progressDialog.setTitle(getString(R.string.loggin_in_dialog_title)); - progressDialog.setMessage(getString(R.string.loggin_in_dialog_message)); - } - - private void localLogin(View view, String userName, String password) { - if (context.userService().isValidLocalLogin(userName, password)) { - localLoginWith(userName, password); - ErrorReportingFacade.setUsername("", userName); - FlurryAgent.setUserId(userName); - } else { - showErrorDialog(getString(R.string.login_failed_dialog_message)); - view.setClickable(true); - } - } - - private void remoteLogin(final View view, final String userName, final String password) { - tryRemoteLogin(userName, password, new Listener() { - public void onEvent(LoginResponse loginResponse) { - ErrorReportingFacade.setUsername("", userName); - FlurryAgent.setUserId(userName); - if (loginResponse == SUCCESS) { - remoteLoginWith(userName, password, loginResponse.payload()); - } else { - if (loginResponse == null) { - showErrorDialog("Login failed. Unknown reason. Try Again"); - } else { - if(loginResponse == NO_INTERNET_CONNECTIVITY){ - showErrorDialog(getResources().getString(R.string.no_internet_connectivity)); - }else if (loginResponse == UNKNOWN_RESPONSE){ - showErrorDialog(getResources().getString(R.string.unknown_response)); - }else if (loginResponse == UNAUTHORIZED){ - showErrorDialog(getResources().getString(R.string.unauthorized)); - } -// showErrorDialog(loginResponse.message()); - } - view.setClickable(true); - } - } - }); - - } - - private void showErrorDialog(String message) { - AlertDialog dialog = new AlertDialog.Builder(this) - .setTitle(getString(R.string.login_failed_dialog_title)) - .setMessage(message) - .setPositiveButton("OK", new DialogInterface.OnClickListener() { - @Override - public void onClick(DialogInterface dialogInterface, int i) { - } - }) - .create(); - dialog.show(); - } - - private void getLocation() { - tryGetLocation(new Listener>() { - @Override - public void onEvent(Response data) { - if (data.status() == ResponseStatus.success) { - context.userService().saveAnmLocation(data.payload()); - } - } - }); - } - - private void tryGetLocation(final Listener> afterGet) { - LockingBackgroundTask task = new LockingBackgroundTask(new ProgressIndicator() { - @Override - public void setVisible() { } - - @Override - public void setInvisible() { Log.logInfo("Successfully get location"); } - }); - - task.doActionInBackground(new BackgroundAction>() { - @Override - public Response actionToDoInBackgroundThread() { - return context.userService().getLocationInformation(); - } - - @Override - public void postExecuteInUIThread(Response result) { - afterGet.onEvent(result); - } - }); - } - - private void tryRemoteLogin(final String userName, final String password, final Listener afterLoginCheck) { - LockingBackgroundTask task = new LockingBackgroundTask(new ProgressIndicator() { - @Override - public void setVisible() { - progressDialog.show(); - } - - @Override - public void setInvisible() { - progressDialog.dismiss(); - } - }); - - task.doActionInBackground(new BackgroundAction() { - public LoginResponse actionToDoInBackgroundThread() { - return context.userService().isValidRemoteLogin(userName, password); - } - - public void postExecuteInUIThread(LoginResponse result) { - afterLoginCheck.onEvent(result); - } - }); - } - - private void fillUserIfExists() { - if (context.userService().hasARegisteredUser()) { - userNameEditText.setText(context.allSharedPreferences().fetchRegisteredANM()); - userNameEditText.setEnabled(false); - } - } - - private void hideKeyboard() { - InputMethodManager inputManager = (InputMethodManager) getSystemService(INPUT_METHOD_SERVICE); - inputManager.hideSoftInputFromWindow(getCurrentFocus().getWindowToken(), HIDE_NOT_ALWAYS); - } - - private void localLoginWith(String userName, String password) { - context.userService().localLogin(userName, password); - LoginActivity.generator = new Generator(context,userName,password); - goToHome(); - DrishtiSyncScheduler.startOnlyIfConnectedToNetwork(getApplicationContext()); - } - - private void remoteLoginWith(String userName, String password, String userInfo) { - context.userService().remoteLogin(userName, password, userInfo); - LoginActivity.generator = new Generator(context,userName,password); - goToHome(); - DrishtiSyncScheduler.startOnlyIfConnectedToNetwork(getApplicationContext()); - } - - private void goToHome() { - startActivity(new Intent(this, BidanHomeActivity.class)); - finish(); - } - - private String getVersion() throws PackageManager.NameNotFoundException { - PackageInfo packageInfo = getPackageManager().getPackageInfo(getPackageName(), 0); - return packageInfo.versionName; - } - - private String getBuildDate() throws PackageManager.NameNotFoundException, IOException { - ApplicationInfo applicationInfo = getPackageManager().getApplicationInfo(getPackageName(), 0); - ZipFile zf = new ZipFile(applicationInfo.sourceDir); - ZipEntry ze = zf.getEntry("classes.dex"); - return new SimpleDateFormat("dd MMM yyyy", Locale.getDefault()).format(new java.util.Date(ze.getTime())); - } - - public static void setLanguage(){ - AllSharedPreferences allSharedPreferences = new AllSharedPreferences(getDefaultSharedPreferences(Context.getInstance().applicationContext())); - String preferredLocale = allSharedPreferences.fetchLanguagePreference(); - Resources res = Context.getInstance().applicationContext().getResources(); - // Change locale settings in the app. - DisplayMetrics dm = res.getDisplayMetrics(); - android.content.res.Configuration conf = res.getConfiguration(); - conf.locale = new Locale(preferredLocale); - res.updateConfiguration(conf, dm); - - } - - public static String switchLanguagePreference() { - AllSharedPreferences allSharedPreferences = new AllSharedPreferences(getDefaultSharedPreferences(Context.getInstance().applicationContext())); - - String preferredLocale = allSharedPreferences.fetchLanguagePreference(); - if (ENGLISH_LOCALE.equals(preferredLocale)) { - allSharedPreferences.saveLanguagePreference(BAHASA_LOCALE); - Resources res = Context.getInstance().applicationContext().getResources(); - // Change locale settings in the app. - DisplayMetrics dm = res.getDisplayMetrics(); - android.content.res.Configuration conf = res.getConfiguration(); - conf.locale = new Locale(BAHASA_LOCALE); - res.updateConfiguration(conf, dm); - return Bahasa_LANGUAGE; - } else { - allSharedPreferences.saveLanguagePreference(ENGLISH_LOCALE); - Resources res = Context.getInstance().applicationContext().getResources(); - // Change locale settings in the app. - DisplayMetrics dm = res.getDisplayMetrics(); - android.content.res.Configuration conf = res.getConfiguration(); - conf.locale = new Locale(ENGLISH_LOCALE); - res.updateConfiguration(conf, dm); - return ENGLISH_LANGUAGE; - } - } - - private void tryGetUniqueId(final String username, final String password, final Listener afterGetUniqueId) { - LockingBackgroundTask task = new LockingBackgroundTask(new ProgressIndicator() { - @Override - public void setVisible() { - progressDialog.show(); - } - @Override - public void setInvisible() { - progressDialog.dismiss(); - } - }); - - task.doActionInBackground(new BackgroundAction() { - @Override - public ResponseStatus actionToDoInBackgroundThread() { - LoginActivity.generator = new Generator(context,username,password); - LoginActivity.generator.uniqueIdService().syncUniqueIdFromServer(username, password); - return (LoginActivity.generator.uniqueIdService().getLastUsedId(username, password)); - } - - @Override - public void postExecuteInUIThread(ResponseStatus result) { - afterGetUniqueId.onEvent(result); - } - }); - } - -} diff --git a/opensrp-bidan/src/main/java/org/smartregister/bidan/NavigationControllerINA.java b/opensrp-bidan/src/main/java/org/smartregister/bidan/NavigationControllerINA.java deleted file mode 100644 index c6201c0..0000000 --- a/opensrp-bidan/src/main/java/org/smartregister/bidan/NavigationControllerINA.java +++ /dev/null @@ -1,69 +0,0 @@ -package org.smartregister.bidan; - -import android.app.Activity; -import android.content.Intent; -import android.content.SharedPreferences; -import android.net.Uri; - -import org.json.JSONObject; -import org.smartregister.Context; -import org.smartregister.bidan.anc.NativeKIANCSmartRegisterActivity; -import org.smartregister.bidan.child.NativeKIAnakSmartRegisterActivity; -import org.smartregister.bidan.kartu_ibu.NativeKISmartRegisterActivity; -import org.smartregister.bidan.kb.NativeKBSmartRegisterActivity; -import org.smartregister.bidan.pnc.NativeKIPNCSmartRegisterActivity; -import org.smartregister.view.controller.ANMController; - -import static android.preference.PreferenceManager.getDefaultSharedPreferences; - -public class NavigationControllerINA extends org.smartregister.view.controller.NavigationController { - private Activity activity; - private ANMController anmController; - private Context context; - - public NavigationControllerINA(Activity activity, ANMController anmController,Context context) { - super(activity,anmController); - this.activity = activity; - this.anmController = anmController; - this.context = context; - } - @Override - public void startECSmartRegistry() { - activity.startActivity(new Intent(activity, NativeKISmartRegisterActivity.class)); - SharedPreferences sharedPreferences = getDefaultSharedPreferences(this.activity); - - if(sharedPreferences.getBoolean("firstlauch",true)) { - sharedPreferences.edit().putBoolean("firstlauch",false).commit(); - } - } - @Override - public void startFPSmartRegistry() { - activity.startActivity(new Intent(activity, NativeKBSmartRegisterActivity.class)); - } - @Override - public void startANCSmartRegistry() { - activity.startActivity(new Intent(activity, NativeKIANCSmartRegisterActivity.class)); - } - @Override - public void startPNCSmartRegistry() { - activity.startActivity(new Intent(activity, NativeKIPNCSmartRegisterActivity.class)); - } - @Override - public void startChildSmartRegistry() { - activity.startActivity(new Intent(activity, NativeKIAnakSmartRegisterActivity.class)); - } - @Override - public void startReports() { - String id, pass; - try{ - id = new JSONObject(anmController.get()).get("anmName").toString(); - pass = context.allSettings().fetchANMPassword(); - }catch(org.json.JSONException ex){ - id="noname"; - pass="null"; - } - String uri = "http://"+id+":"+pass+"@kia-report.sid-indonesia.org/login/auth"; - activity.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(uri))); - } - -} diff --git a/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/BaseActivity.java b/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/BaseActivity.java new file mode 100644 index 0000000..fb57ba9 --- /dev/null +++ b/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/BaseActivity.java @@ -0,0 +1,866 @@ +package org.smartregister.bidan.activity; + +import android.app.Activity; +import android.app.ProgressDialog; +import android.content.Intent; +import android.content.SharedPreferences; +import android.graphics.drawable.ColorDrawable; +import android.graphics.drawable.Drawable; +import android.os.Build; +import android.os.Bundle; +import android.os.Looper; +import android.preference.PreferenceManager; +import android.support.annotation.StringRes; +import android.support.design.widget.NavigationView; +import android.support.design.widget.Snackbar; +import android.support.v4.view.GravityCompat; +import android.support.v4.widget.DrawerLayout; +import android.support.v7.app.ActionBarDrawerToggle; +import android.support.v7.app.AppCompatActivity; +import android.support.v7.widget.Toolbar; +import android.text.TextUtils; +import android.util.Log; +import android.view.Gravity; +import android.view.Menu; +import android.view.MenuItem; +import android.view.View; +import android.view.ViewGroup; +import android.view.animation.Animation; +import android.view.animation.AnimationUtils; +import android.widget.Button; +import android.widget.ImageButton; +import android.widget.ImageView; +import android.widget.LinearLayout; +import android.widget.TextView; + +import org.apache.commons.lang3.StringUtils; +import org.joda.time.DateTime; +import org.joda.time.Days; +import org.joda.time.Hours; +import org.joda.time.Minutes; +import org.joda.time.Seconds; +import org.opensrp.api.constants.Gender; +import org.smartregister.Context; +import org.smartregister.bidan.application.BidanApplication; +import org.smartregister.bidan.receiver.SyncStatusBroadcastReceiver; +import org.smartregister.bidan.service.intent.SyncIntentService; +import org.smartregister.bidan.toolbar.LocationSwitcherToolbar; +import org.smartregister.domain.FetchStatus; +import org.smartregister.bidan.R; +import org.smartregister.bidan.sync.ECSyncUpdater; +import org.smartregister.bidan.toolbar.BaseToolbar; +import org.smartregister.repository.AllSharedPreferences; +import org.smartregister.view.activity.DrishtiApplication; + +import java.util.ArrayList; +import java.util.Calendar; + +import util.JsonFormUtils; + +import static org.smartregister.util.Log.logError; + +/** + * Base activity class for all other PATH activity classes. Implements: + * - A uniform navigation bar that is launched by swiping from the left + * - Support for specifying which {@link BaseToolbar} to use + * + * This activity requires that the base view for any child activity be {@link DrawerLayout} + * Make sure include the navigation view as the last element in the activity's root DrawerLayout + * like this: + * + * + * + * Created by Jason Rogena - jrogena@ona.io on 16/02/2017. + */ +public abstract class BaseActivity extends AppCompatActivity + implements NavigationView.OnNavigationItemSelectedListener, SyncStatusBroadcastReceiver.SyncStatusListener { + private static final String TAG = "BaseActivity"; + private BaseToolbar toolbar; + private Menu menu; + private static final int REQUEST_CODE_GET_JSON = 3432; + private Snackbar syncStatusSnackbar; + private ProgressDialog progressDialog; + private ArrayList notifications; + private BaseActivityToggle toggle; + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(getContentView()); + toolbar = (BaseToolbar) findViewById(getToolbarId()); + setSupportActionBar(toolbar); + + DrawerLayout drawer = (DrawerLayout) findViewById(getDrawerLayoutId()); + toggle = new BaseActivityToggle( + this, drawer, toolbar, R.string.navigation_drawer_open, R.string.navigation_drawer_close); + drawer.setDrawerListener(toggle); + toggle.syncState(); + + NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view); + navigationView.setNavigationItemSelectedListener(this); + + notifications = new ArrayList<>(); + + initializeProgressDialog(); + } + + @Override + public void onSyncStart() { + refreshSyncStatusViews(null); + } + + @Override + public void onSyncComplete(FetchStatus fetchStatus) { + refreshSyncStatusViews(fetchStatus); + } + + private void registerSyncStatusBroadcastReceiver() { + SyncStatusBroadcastReceiver.getInstance().addSyncStatusListener(this); + } + + private void unregisterSyncStatusBroadcastReceiver() { + SyncStatusBroadcastReceiver.getInstance().removeSyncStatusListener(this); + } + + public BaseToolbar getBaseToolbar() { + return toolbar; + } + + + ///////////////////////////////// navigation bar with menu +// private void refreshSyncStatusViews(FetchStatus fetchStatus) { +// NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view); +// if (navigationView != null && navigationView.getMenu() != null) { +// MenuItem syncMenuItem = navigationView.getMenu().findItem(R.id.nav_sync); +// if (syncMenuItem != null) { +// if (SyncStatusBroadcastReceiver.getInstance().isSyncing()) { +// syncMenuItem.setTitle(R.string.syncing); +// ViewGroup rootView = (ViewGroup) ((ViewGroup) findViewById(android.R.id.content)).getChildAt(0); +// if (syncStatusSnackbar != null) syncStatusSnackbar.dismiss(); +// syncStatusSnackbar = Snackbar.make(rootView, R.string.syncing, +// Snackbar.LENGTH_LONG); +// syncStatusSnackbar.show(); +// } else { +// if (fetchStatus != null) { +// if (syncStatusSnackbar != null) syncStatusSnackbar.dismiss(); +// ViewGroup rootView = (ViewGroup) ((ViewGroup) findViewById(android.R.id.content)).getChildAt(0); +// if (fetchStatus.equals(FetchStatus.fetchedFailed)) { +// syncStatusSnackbar = Snackbar.make(rootView, R.string.sync_failed, Snackbar.LENGTH_INDEFINITE); +// syncStatusSnackbar.setAction(R.string.retry, new View.OnClickListener() { +// @Override +// public void onClick(View v) { +// startSync(); +// } +// }); +// } else if (fetchStatus.equals(FetchStatus.fetched) +// || fetchStatus.equals(FetchStatus.nothingFetched)) { +// syncStatusSnackbar = Snackbar.make(rootView, R.string.sync_complete, Snackbar.LENGTH_LONG); +// } +// syncStatusSnackbar.show(); +// } +// String lastSync = getLastSyncTime(); +// +// if (!TextUtils.isEmpty(lastSync)) { +// lastSync = " " + String.format(getString(R.string.last_sync), lastSync); +// } +// syncMenuItem.setTitle(String.format(getString(R.string.sync_), lastSync)); +// } +// } +// } +// } + + /////////////////////////for custom navigation ////////////////////////////////////////////////////// + private void refreshSyncStatusViews(FetchStatus fetchStatus) { + NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view); + if (navigationView != null && navigationView.getMenu() != null) { + LinearLayout syncMenuItem = (LinearLayout) navigationView.findViewById(R.id.nav_sync); + if (syncMenuItem != null) { + if (SyncStatusBroadcastReceiver.getInstance().isSyncing()) { + ViewGroup rootView = (ViewGroup) ((ViewGroup) findViewById(android.R.id.content)).getChildAt(0); + if (syncStatusSnackbar != null) syncStatusSnackbar.dismiss(); + syncStatusSnackbar = Snackbar.make(rootView, R.string.syncing, + Snackbar.LENGTH_LONG); + syncStatusSnackbar.show(); + ((TextView) syncMenuItem.findViewById(R.id.nav_synctextview)).setText(R.string.syncing); + } else { + if (fetchStatus != null) { + if (syncStatusSnackbar != null) syncStatusSnackbar.dismiss(); + ViewGroup rootView = (ViewGroup) ((ViewGroup) findViewById(android.R.id.content)).getChildAt(0); + if (fetchStatus.equals(FetchStatus.fetchedFailed)) { + syncStatusSnackbar = Snackbar.make(rootView, R.string.sync_failed, Snackbar.LENGTH_INDEFINITE); + syncStatusSnackbar.setActionTextColor(getResources().getColor(R.color.snackbar_action_color)); + syncStatusSnackbar.setAction(R.string.retry, new View.OnClickListener() { + @Override + public void onClick(View v) { + startSync(); + } + }); + } else if (fetchStatus.equals(FetchStatus.fetched) + || fetchStatus.equals(FetchStatus.nothingFetched)) { + syncStatusSnackbar = Snackbar.make(rootView, R.string.sync_complete, Snackbar.LENGTH_LONG); + } else if (fetchStatus.equals(FetchStatus.noConnection)) { + syncStatusSnackbar = Snackbar.make(rootView, R.string.sync_failed_no_internet, Snackbar.LENGTH_LONG); + } + syncStatusSnackbar.show(); + } + +//<<<<<<< HEAD +// if (!TextUtils.isEmpty(lastSync)) { +// lastSync = " " + String.format(getString(R.string.last_sync), lastSync); +// } +// ((TextView)syncMenuItem.findViewById(R.id.nav_synctextview)).setText(String.format(getString(R.string.sync_), lastSync)); +//======= + updateLastSyncText(); + } + } + } + } + + protected ActionBarDrawerToggle getDrawerToggle() { + return toggle; + } + + protected void openDrawer() { + DrawerLayout drawer = (DrawerLayout) findViewById(getDrawerLayoutId()); + drawer.openDrawer(Gravity.LEFT); + } + + private void updateLastSyncText() { + NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view); + if (navigationView != null && navigationView.getMenu() != null) { + TextView syncMenuItem = ((TextView) navigationView.findViewById(R.id.nav_synctextview)); + if (syncMenuItem != null) { + String lastSync = getLastSyncTime(); + + if (!TextUtils.isEmpty(lastSync)) { + lastSync = " " + String.format(getString(R.string.last_sync), lastSync); + } + syncMenuItem.setText(String.format(getString(R.string.sync_), lastSync)); + } + } + } + + private void initializeCustomNavbarLIsteners() { + + + final DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout); + LinearLayout syncMenuItem = (LinearLayout) drawer.findViewById(R.id.nav_sync); + syncMenuItem.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + startSync(); + drawer.closeDrawer(GravityCompat.START); + } + }); + LinearLayout addchild = (LinearLayout) drawer.findViewById(R.id.nav_register); + addchild.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + startJsonForm("child_enrollment", null); + drawer.closeDrawer(GravityCompat.START); + + } + }); + LinearLayout outofcatchment = (LinearLayout) drawer.findViewById(R.id.nav_record_vaccination_out_catchment); + outofcatchment.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + startJsonForm("out_of_catchment_service", null); + drawer.closeDrawer(GravityCompat.START); + + } + }); + LinearLayout stockregister = (LinearLayout) drawer.findViewById(R.id.stockcontrol); + stockregister.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + Intent intent = new Intent(getApplicationContext(), StockActivity.class); + startActivity(intent); + drawer.closeDrawer(GravityCompat.START); + + } + }); + LinearLayout childregister = (LinearLayout) drawer.findViewById(R.id.child_register); + childregister.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + BidanApplication.setCrashlyticsUser(BidanApplication.getInstance().context()); + Intent intent = new Intent(getApplicationContext(), ChildSmartRegisterActivity.class); + intent.putExtra(BaseRegisterActivity.IS_REMOTE_LOGIN, false); + startActivity(intent); + finish(); + drawer.closeDrawer(GravityCompat.START); + +// finish(); + } + }); + LinearLayout hia2 = (LinearLayout) drawer.findViewById(R.id.hia2reports); + hia2.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + Intent intent = new Intent(getApplicationContext(), HIA2ReportsActivity.class); + startActivity(intent); + drawer.closeDrawer(GravityCompat.START); + + } + }); + + } + + private String getLastSyncTime() { + String lastSync = ""; + long milliseconds = ECSyncUpdater.getInstance(this).getLastCheckTimeStamp(); + if (milliseconds > 0) { + DateTime lastSyncTime = new DateTime(milliseconds); + DateTime now = new DateTime(Calendar.getInstance()); + Minutes minutes = Minutes.minutesBetween(lastSyncTime, now); + if (minutes.getMinutes() < 1) { + Seconds seconds = Seconds.secondsBetween(lastSyncTime, now); + lastSync = seconds.getSeconds() + "s"; + } else if (minutes.getMinutes() >= 1 && minutes.getMinutes() < 60) { + lastSync = minutes.getMinutes() + "m"; + } else if (minutes.getMinutes() >= 60 && minutes.getMinutes() < 1440) { + Hours hours = Hours.hoursBetween(lastSyncTime, now); + lastSync = hours.getHours() + "h"; + } else { + Days days = Days.daysBetween(lastSyncTime, now); + lastSync = days.getDays() + "d"; + } + } + return lastSync; + } + + @Override + protected void onResume() { + super.onResume(); + registerSyncStatusBroadcastReceiver(); + initViews(); + } + + @Override + protected void onPause() { + super.onPause(); + unregisterSyncStatusBroadcastReceiver(); + } + + @Override + public boolean onCreateOptionsMenu(Menu menu) { + if (toolbar.getSupportedMenu() != 0) { + this.menu = menu; + getMenuInflater().inflate(toolbar.getSupportedMenu(), menu); + toolbar.prepareMenu(); + return super.onCreateOptionsMenu(menu); + } else { + toolbar.prepareMenu(); + } + + return false; + } + + @Override + public boolean onOptionsItemSelected(MenuItem item) { + return super.onOptionsItemSelected(toolbar.onMenuItemSelected(item)); + } + + @Override + public void onBackPressed() { + DrawerLayout drawer = (DrawerLayout) findViewById(getDrawerLayoutId()); + if (drawer.isDrawerOpen(GravityCompat.START)) { + drawer.closeDrawer(GravityCompat.START); + } else { + super.onBackPressed(); + } + } + + private void initViews() { + NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view); + Button logoutButton = (Button) navigationView.findViewById(R.id.logout_b); + logoutButton.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + DrishtiApplication application = (DrishtiApplication) getApplication(); + application.logoutCurrentUser(); + finish(); + } + }); + + ImageButton cancelButton = (ImageButton) navigationView.findViewById(R.id.cancel_b); + cancelButton.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + DrawerLayout drawer = (DrawerLayout) BaseActivity.this.findViewById(getDrawerLayoutId()); + if (drawer.isDrawerOpen(GravityCompat.START)) { + drawer.closeDrawer(GravityCompat.START); + } + } + }); + + TextView initialsTV = (TextView) navigationView.findViewById(R.id.initials_tv); + initialsTV.setText(getLoggedInUserInitials()); + + try { + String preferredName = getOpenSRPContext().allSharedPreferences().getANMPreferredName( + getOpenSRPContext().allSharedPreferences().fetchRegisteredANM()); + TextView nameTV = (TextView) navigationView.findViewById(R.id.name_tv); + nameTV.setText(preferredName); + + + } catch (Exception e) { + logError("Error on initView : Getting Preferences: Getting Initials"); + } + refreshSyncStatusViews(null); + initializeCustomNavbarLIsteners(); + } + + //FIXME this method conflicts with raihan's don't know what the difference is +// public void initViews() { +// NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view); +// Button logoutButton = (Button) navigationView.findViewById(R.id.logout_b); +// logoutButton.setOnClickListener(new View.OnClickListener() { +// @Override +// public void onClick(View v) { +// DrishtiApplication application = (DrishtiApplication) getApplication(); +// application.logoutCurrentUser(); +// finish(); +// } +// }); +// +// ImageButton cancelButton = (ImageButton) navigationView.findViewById(R.id.cancel_b); +// cancelButton.setOnClickListener(new View.OnClickListener() { +// @Override +// public void onClick(View v) { +// DrawerLayout drawer = (DrawerLayout) BaseActivity.this.findViewById(getDrawerLayoutId()); +// if (drawer.isDrawerOpen(GravityCompat.START)) { +// drawer.closeDrawer(GravityCompat.START); +// } +// } +// }); +// +// TextView initialsTV = (TextView) navigationView.findViewById(R.id.initials_tv); +// String preferredName = getOpenSRPContext().allSharedPreferences().getANMPreferredName( +// getOpenSRPContext().allSharedPreferences().fetchRegisteredANM()); +// if (!TextUtils.isEmpty(preferredName)) { +// String[] initialsArray = preferredName.split(" "); +// String initials = ""; +// if (initialsArray.length > 0) { +// initials = initialsArray[0].substring(0, 1); +// if (initialsArray.length > 1) { +// initials = initials + initialsArray[1].substring(0, 1); +// } +// } +// +// initialsTV.setText(initials.toUpperCase()); +// } +// +// TextView nameTV = (TextView) navigationView.findViewById(R.id.name_tv); +// nameTV.setText(preferredName); +// refreshSyncStatusViews(null); +// initializeCustomNavbarLIsteners(); +// } + protected String getLoggedInUserInitials() { + + try { + + String preferredName = getOpenSRPContext().allSharedPreferences().getANMPreferredName( + getOpenSRPContext().allSharedPreferences().fetchRegisteredANM()); + if (!TextUtils.isEmpty(preferredName)) { + String[] initialsArray = preferredName.split(" "); + String initials = ""; + if (initialsArray.length > 0) { + initials = initialsArray[0].substring(0, 1); + if (initialsArray.length > 1) { + initials = initials + initialsArray[1].substring(0, 1); + } + } + + return initials.toUpperCase(); + } + + } catch (Exception e) { + logError("Error on initView : Getting Preferences: Getting Initials"); + } + + return null; + } + + + @SuppressWarnings("StatementWithEmptyBody") + @Override + public boolean onNavigationItemSelected(MenuItem item) { + // Handle navigation view item clicks here. + int id = item.getItemId(); + + if (id == R.id.nav_register) { + startJsonForm("child_enrollment", null); + } else if (id == R.id.nav_record_vaccination_out_catchment) { + startJsonForm("out_of_catchment_service", null); + } else if (id == R.id.nav_sync) { + startSync(); + } + + DrawerLayout drawer = (DrawerLayout) findViewById(getDrawerLayoutId()); + drawer.closeDrawer(GravityCompat.START); + return true; + } + + private void startSync() { + startService(new Intent(getApplicationContext(), SyncIntentService.class)); + } + + /** + * Updates all gender affected views + * + * @param gender The gender to update the + */ + protected int[] updateGenderViews(Gender gender) { + int darkShade = R.color.gender_neutral_dark_green; + int normalShade = R.color.gender_neutral_green; + int lightSade = R.color.gender_neutral_light_green; + + if (gender.equals(Gender.FEMALE)) { + darkShade = R.color.female_dark_pink; + normalShade = R.color.female_pink; + lightSade = R.color.female_light_pink; + } else if (gender.equals(Gender.MALE)) { + darkShade = R.color.male_dark_blue; + normalShade = R.color.male_blue; + lightSade = R.color.male_light_blue; + } + + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { + getWindow().setStatusBarColor(getResources().getColor(darkShade)); + } + toolbar.setBackground(new ColorDrawable(getResources().getColor(normalShade))); + final ViewGroup viewGroup = (ViewGroup) ((ViewGroup) this + .findViewById(android.R.id.content)).getChildAt(0); + viewGroup.setBackground(new ColorDrawable(getResources().getColor(lightSade))); + + return new int[]{darkShade, normalShade, lightSade}; + } + + private void startJsonForm(String formName, String entityId) { + try { + if (toolbar instanceof LocationSwitcherToolbar) { + LocationSwitcherToolbar locationSwitcherToolbar = (LocationSwitcherToolbar) toolbar; + String locationId = JsonFormUtils.getOpenMrsLocationId(getOpenSRPContext(), + locationSwitcherToolbar.getCurrentLocation()); + + JsonFormUtils.startForm(this, getOpenSRPContext(), REQUEST_CODE_GET_JSON, + formName, entityId, null, locationId); + } + } catch (Exception e) { + Log.e(TAG, e.getMessage(), e); + } + } + + protected void showNotification(int message, int notificationIcon, int positiveButtonText, + View.OnClickListener positiveButtonClick, + int negativeButtonText, + View.OnClickListener negativeButtonClick, + Object tag) { + String posBtnText = null; + if (positiveButtonText != 0 && positiveButtonClick != null) { + posBtnText = getString(positiveButtonText); + } + + String negBtnText = null; + if (negativeButtonText != 0 && negativeButtonClick != null) { + negBtnText = getString(negativeButtonText); + } + + showNotification(getString(message), getResources().getDrawable(notificationIcon), + posBtnText, positiveButtonClick, + negBtnText, negativeButtonClick, tag); + } + + private void showNotification(String message, Drawable notificationIcon, String positiveButtonText, + View.OnClickListener positiveButtonOnClick, + String negativeButtonText, + View.OnClickListener negativeButtonOnClick, + Object tag) { + Notification notification = new Notification(message, notificationIcon, positiveButtonText, + positiveButtonOnClick, negativeButtonText, negativeButtonOnClick, tag); + + // Add the notification as the last element in the notification list + String notificationMessage = notification.message; + if (notificationMessage == null) notificationMessage = ""; + for (Notification curNotification : notifications) { + if (notificationMessage.equals(curNotification.message)) { + notifications.remove(curNotification); + } + } + notifications.add(notification); + + updateNotificationViews(notification); + } + + private void updateNotificationViews(final Notification notification) { + TextView notiMessage = (TextView) findViewById(R.id.noti_message); + notiMessage.setText(notification.message); + Button notiPositiveButton = (Button) findViewById(R.id.noti_positive_button); + notiPositiveButton.setTag(notification.tag); + if (notification.positiveButtonText != null) { + notiPositiveButton.setVisibility(View.VISIBLE); + notiPositiveButton.setText(notification.positiveButtonText); + notiPositiveButton.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + if (notifications.size() > 0) { + notifications.remove(notifications.size() - 1); + } + + if (notification.positiveButtonOnClick != null) { + notification.positiveButtonOnClick.onClick(v); + } + + // Show the second last notification + if (notifications.size() > 0) { + updateNotificationViews(notifications.get(notifications.size() - 1)); + } + } + }); + } else { + notiPositiveButton.setVisibility(View.GONE); + } + + Button notiNegativeButton = (Button) findViewById(R.id.noti_negative_button); + notiNegativeButton.setTag(notification.tag); + if (notification.negativeButtonText != null) { + notiNegativeButton.setVisibility(View.VISIBLE); + notiNegativeButton.setText(notification.negativeButtonText); + notiNegativeButton.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + if (notifications.size() > 0) { + notifications.remove(notifications.size() - 1); + } + + if (notification.negativeButtonOnClick != null) { + notification.negativeButtonOnClick.onClick(v); + } + + // Show the second last notification + if (notifications.size() > 0) { + updateNotificationViews(notifications.get(notifications.size() - 1)); + } + } + }); + } else { + notiNegativeButton.setVisibility(View.GONE); + } + + ImageView notiIcon = (ImageView) findViewById(R.id.noti_icon); + if (notification.notificationIcon != null) { + notiIcon.setVisibility(View.VISIBLE); + notiIcon.setImageDrawable(notification.notificationIcon); + } else { + notiIcon.setVisibility(View.GONE); + } + + final LinearLayout notificationLL = (LinearLayout) findViewById(R.id.notification); + + Animation slideDownAnimation = AnimationUtils.loadAnimation(this, R.anim.slide_down); + slideDownAnimation.setAnimationListener(new Animation.AnimationListener() { + @Override + public void onAnimationStart(Animation animation) { + notificationLL.setVisibility(View.VISIBLE); + } + + @Override + public void onAnimationEnd(Animation animation) { + + } + + @Override + public void onAnimationRepeat(Animation animation) { + + } + }); + notificationLL.clearAnimation(); + notificationLL.startAnimation(slideDownAnimation); + } + + protected void hideNotification() { + final LinearLayout notification = (LinearLayout) findViewById(R.id.notification); + if (notification.getVisibility() == View.VISIBLE) { + Animation slideUpAnimation = AnimationUtils.loadAnimation(this, R.anim.slide_up); + slideUpAnimation.setAnimationListener(new Animation.AnimationListener() { + @Override + public void onAnimationStart(Animation animation) { + + } + + @Override + public void onAnimationEnd(Animation animation) { + notification.setVisibility(View.GONE); + } + + @Override + public void onAnimationRepeat(Animation animation) { + + } + }); + notification.startAnimation(slideUpAnimation); + } + } + + @Override + protected void onActivityResult(int requestCode, int resultCode, Intent data) { + if (resultCode == RESULT_OK) { + String jsonString = data.getStringExtra("json"); + + SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this); + AllSharedPreferences allSharedPreferences = new AllSharedPreferences(preferences); + + JsonFormUtils.saveForm(this, getOpenSRPContext(), jsonString, allSharedPreferences.fetchRegisteredANM()); + } + super.onActivityResult(requestCode, resultCode, data); + } + + protected BaseToolbar getToolbar() { + return toolbar; + } + + /** + * The layout resource file to user for this activity + * + * @return The resource id for the layout file to use + */ + protected abstract int getContentView(); + + /** + * The id for the base {@link DrawerLayout} for the activity + * + * @return + */ + protected abstract int getDrawerLayoutId(); + + /** + * The id for the toolbar used in this activity + * + * @return The id for the toolbar used + */ + protected abstract int getToolbarId(); + + public Context getOpenSRPContext() { + return BidanApplication.getInstance().context(); + } + + public Menu getMenu() { + return menu; + } + + /** + * The activity to go back to + * + * @return + */ + protected abstract Class onBackActivity(); + + + public void processInThread(Runnable runnable) { + if (Looper.myLooper() == Looper.getMainLooper()) { + new Thread(runnable).start(); + } + } + + private void initializeProgressDialog() { + progressDialog = new ProgressDialog(this); + progressDialog.setCancelable(false); + progressDialog.setTitle(getString(R.string.saving_dialog_title)); + progressDialog.setMessage(getString(R.string.please_wait_message)); + } + + protected void showProgressDialog(String title, String message) { + if (progressDialog != null) { + if (StringUtils.isNotBlank(title)) { + progressDialog.setTitle(title); + } + + if (StringUtils.isNotBlank(message)) { + progressDialog.setMessage(message); + } + + progressDialog.show(); + } + } + + protected void showProgressDialog() { + showProgressDialog(getString(R.string.saving_dialog_title), getString(R.string.please_wait_message)); + } + + protected void hideProgressDialog() { + if (progressDialog != null) { + progressDialog.dismiss(); + } + } + + //////////////////////////////////////////////////////////////// + // Inner classes + //////////////////////////////////////////////////////////////// + + private class BaseActivityToggle extends ActionBarDrawerToggle { + + private BaseActivityToggle(Activity activity, DrawerLayout drawerLayout, Toolbar toolbar, @StringRes int openDrawerContentDescRes, @StringRes int closeDrawerContentDescRes) { + super(activity, drawerLayout, toolbar, openDrawerContentDescRes, closeDrawerContentDescRes); + } + + @Override + public void onDrawerOpened(View drawerView) { + super.onDrawerOpened(drawerView); + if (!SyncStatusBroadcastReceiver.getInstance().isSyncing()) { + updateLastSyncText(); + } + } + + @Override + public void onDrawerClosed(View drawerView) { + super.onDrawerClosed(drawerView); + } + } + + private class Notification { + public final String message; + public final Drawable notificationIcon; + public final String positiveButtonText; + public final View.OnClickListener positiveButtonOnClick; + public final String negativeButtonText; + public final View.OnClickListener negativeButtonOnClick; + public final Object tag; + + private Notification(String message, Drawable notificationIcon, String positiveButtonText, + View.OnClickListener positiveButtonOnClick, + String negativeButtonText, + View.OnClickListener negativeButtonOnClick, + Object tag) { + this.message = message; + this.notificationIcon = notificationIcon; + this.positiveButtonText = positiveButtonText; + this.positiveButtonOnClick = positiveButtonOnClick; + this.negativeButtonText = negativeButtonText; + this.negativeButtonOnClick = negativeButtonOnClick; + this.tag = tag; + } + + @Override + public boolean equals(Object o) { + if (o instanceof Notification) { + Notification notification = (Notification) o; + String message = this.message; + if (message == null) message = ""; + String positiveButtonText = this.positiveButtonText; + if (positiveButtonText == null) positiveButtonText = ""; + String negativeButtonText = this.negativeButtonText; + if (negativeButtonText == null) negativeButtonText = ""; + + if (message.equals(notification.message) + && positiveButtonText.equals(notification.positiveButtonText) + && negativeButtonText.equals(notification.negativeButtonText)) { + return true; + } + } + return false; + } + } + +} diff --git a/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/BaseRegisterActivity.java b/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/BaseRegisterActivity.java new file mode 100644 index 0000000..44a1da3 --- /dev/null +++ b/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/BaseRegisterActivity.java @@ -0,0 +1,433 @@ +package org.smartregister.bidan.activity; + +import android.app.Activity; +import android.content.Intent; +import android.os.Bundle; +import android.support.annotation.StringRes; +import android.support.design.widget.NavigationView; +import android.support.design.widget.Snackbar; +import android.support.v4.view.GravityCompat; +import android.support.v4.widget.DrawerLayout; +import android.support.v7.app.ActionBarDrawerToggle; +import android.text.TextUtils; +import android.view.MenuItem; +import android.view.View; +import android.view.ViewGroup; +import android.widget.Button; +import android.widget.ImageButton; +import android.widget.LinearLayout; +import android.widget.TextView; + +import org.joda.time.DateTime; +import org.joda.time.Days; +import org.joda.time.Hours; +import org.joda.time.Minutes; +import org.joda.time.Seconds; +import org.smartregister.Context; +import org.smartregister.bidan.application.BidanApplication; +import org.smartregister.bidan.receiver.SyncStatusBroadcastReceiver; +import org.smartregister.bidan.service.intent.SyncIntentService; +import org.smartregister.domain.FetchStatus; +import org.smartregister.bidan.R; +import org.smartregister.bidan.sync.ECSyncUpdater; +import org.smartregister.view.activity.DrishtiApplication; +import org.smartregister.view.activity.SecuredNativeSmartRegisterActivity; + +import java.util.Calendar; + +/** + * Base activity class for path regiters views + * Created by keyman. + */ +public abstract class BaseRegisterActivity extends SecuredNativeSmartRegisterActivity + implements NavigationView.OnNavigationItemSelectedListener, SyncStatusBroadcastReceiver.SyncStatusListener { + + public static final String IS_REMOTE_LOGIN = "is_remote_login"; + private Snackbar syncStatusSnackbar; + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + + DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout); + + BaseActivityToggle toggle = new BaseActivityToggle(this, drawer, + R.string.navigation_drawer_open, R.string.navigation_drawer_close) { + + public void onDrawerClosed(View view) { + super.onDrawerClosed(view); + } + + public void onDrawerOpened(View drawerView) { + super.onDrawerOpened(drawerView); + + } + }; + + drawer.setDrawerListener(toggle); + toggle.syncState(); + + NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view); + navigationView.setNavigationItemSelectedListener(this); + + Bundle extras = this.getIntent().getExtras(); + if (extras != null) { + boolean isRemote = extras.getBoolean(IS_REMOTE_LOGIN); + if (isRemote) { + updateFromServer(); + } + } + } + + @Override + public void onSyncStart() { + refreshSyncStatusViews(null); + } + + @Override + public void onSyncComplete(FetchStatus fetchStatus) { + refreshSyncStatusViews(fetchStatus); + } + + private void registerSyncStatusBroadcastReceiver() { + SyncStatusBroadcastReceiver.getInstance().addSyncStatusListener(this); + } + + private void unregisterSyncStatusBroadcastReceiver() { + SyncStatusBroadcastReceiver.getInstance().removeSyncStatusListener(this); + } + + private void updateFromServer() { + startService(new Intent(getApplicationContext(), SyncIntentService.class)); + } + + @Override + public void onBackPressed() { + DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout); + if (drawer.isDrawerOpen(GravityCompat.START)) { + drawer.closeDrawer(GravityCompat.START); + } else { + super.onBackPressed(); + } + } + + @Override + protected void onResume() { + super.onResume(); + registerSyncStatusBroadcastReceiver(); + initViews(); + } + + @Override + protected void onPause() { + super.onPause(); + unregisterSyncStatusBroadcastReceiver(); + } + + private void initViews() { + NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view); + Button logoutButton = (Button) navigationView.findViewById(R.id.logout_b); + logoutButton.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + DrishtiApplication application = (DrishtiApplication) getApplication(); + application.logoutCurrentUser(); + finish(); + } + }); + + ImageButton cancelButton = (ImageButton) navigationView.findViewById(R.id.cancel_b); + cancelButton.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + DrawerLayout drawer = (DrawerLayout) BaseRegisterActivity.this.findViewById(R.id.drawer_layout); + if (drawer.isDrawerOpen(GravityCompat.START)) { + drawer.closeDrawer(GravityCompat.START); + } + } + }); + + TextView initialsTV = (TextView) navigationView.findViewById(R.id.initials_tv); + String preferredName = context().allSharedPreferences().getANMPreferredName( + context().allSharedPreferences().fetchRegisteredANM()); + if (!TextUtils.isEmpty(preferredName)) { + String[] initialsArray = preferredName.split(" "); + String initials = ""; + if (initialsArray.length > 0) { + initials = initialsArray[0].substring(0, 1); + if (initialsArray.length > 1) { + initials = initials + initialsArray[1].substring(0, 1); + } + } + + initialsTV.setText(initials.toUpperCase()); + } + + TextView nameTV = (TextView) navigationView.findViewById(R.id.name_tv); + nameTV.setText(preferredName); + refreshSyncStatusViews(null); + initializeCustomNavbarLIsteners(); + } + + @SuppressWarnings("StatementWithEmptyBody") + @Override + public boolean onNavigationItemSelected(MenuItem item) { + // Handle navigation view item clicks here. + int id = item.getItemId(); + + if (id == R.id.nav_register) { + startFormActivity("child_enrollment", null, null); + } else if (id == R.id.nav_record_vaccination_out_catchment) { + startFormActivity("out_of_catchment_service", null, null); + } else if (id == R.id.stock) { + Intent intent = new Intent(this, StockActivity.class); + startActivity(intent); + } else if (id == R.id.nav_sync) { + startSync(); + } else if (id == R.id.nav_hia2) { + Intent intent = new Intent(this, HIA2ReportsActivity.class); + startActivity(intent); + } + + DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout); + drawer.closeDrawer(GravityCompat.START); + return true; + } + + private void startSync() { + Intent intent = new Intent(getApplicationContext(), SyncIntentService.class); + startService(intent); + + /*PathUpdateActionsTask pathUpdateActionsTask = new PathUpdateActionsTask( + this, context().actionService(), + new SyncProgressIndicator(), + context().allFormVersionSyncService()); + pathUpdateActionsTask.updateFromServer(pathAfterFetchListener);*/ + } +//////////////////////////////////for navigation menu items/////////////////////////// +// private void refreshSyncStatusViews(FetchStatus fetchStatus) { +// NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view); +// if (navigationView != null && navigationView.getMenu() != null) { +// MenuItem syncMenuItem = navigationView.getMenu().findItem(R.id.nav_sync); +// if (syncMenuItem != null) { +// if (SyncStatusBroadcastReceiver.getInstance().isSyncing()) { +// ViewGroup rootView = (ViewGroup) ((ViewGroup) findViewById(android.R.id.content)).getChildAt(0); +// if (syncStatusSnackbar != null) syncStatusSnackbar.dismiss(); +// syncStatusSnackbar = Snackbar.make(rootView, R.string.syncing, +// Snackbar.LENGTH_LONG); +// syncStatusSnackbar.show(); +// syncMenuItem.setTitle(R.string.syncing); +// } else { +// if (fetchStatus != null) { +// if (syncStatusSnackbar != null) syncStatusSnackbar.dismiss(); +// ViewGroup rootView = (ViewGroup) ((ViewGroup) findViewById(android.R.id.content)).getChildAt(0); +// if (fetchStatus.equals(FetchStatus.fetchedFailed)) { +// syncStatusSnackbar = Snackbar.make(rootView, R.string.sync_failed, Snackbar.LENGTH_INDEFINITE); +// syncStatusSnackbar.setAction(R.string.retry, new View.OnClickListener() { +// @Override +// public void onClick(View v) { +// startSync(); +// } +// }); +// } else if (fetchStatus.equals(FetchStatus.fetched) +// || fetchStatus.equals(FetchStatus.nothingFetched)) { +// syncStatusSnackbar = Snackbar.make(rootView, R.string.sync_complete, Snackbar.LENGTH_LONG); +// } +// syncStatusSnackbar.show(); +// } +// String lastSync = getLastSyncTime(); +// +// if (!TextUtils.isEmpty(lastSync)) { +// lastSync = " " + String.format(getString(R.string.last_sync), lastSync); +// } +// syncMenuItem.setTitle(String.format(getString(R.string.sync_), lastSync)); +// } +// } +// } +// } + + /////////////////////////for custom navigation ////////////////////////////////////////////////////// + private void refreshSyncStatusViews(FetchStatus fetchStatus) { + NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view); + if (navigationView != null && navigationView.getMenu() != null) { + LinearLayout syncMenuItem = (LinearLayout) navigationView.findViewById(R.id.nav_sync); + if (syncMenuItem != null) { + if (SyncStatusBroadcastReceiver.getInstance().isSyncing()) { + ViewGroup rootView = (ViewGroup) ((ViewGroup) findViewById(android.R.id.content)).getChildAt(0); + if (syncStatusSnackbar != null) syncStatusSnackbar.dismiss(); + syncStatusSnackbar = Snackbar.make(rootView, R.string.syncing, + Snackbar.LENGTH_LONG); + syncStatusSnackbar.show(); + ((TextView) syncMenuItem.findViewById(R.id.nav_synctextview)).setText(R.string.syncing); + } else { + if (fetchStatus != null) { + if (syncStatusSnackbar != null) syncStatusSnackbar.dismiss(); + ViewGroup rootView = (ViewGroup) ((ViewGroup) findViewById(android.R.id.content)).getChildAt(0); + if (fetchStatus.equals(FetchStatus.fetchedFailed)) { + syncStatusSnackbar = Snackbar.make(rootView, R.string.sync_failed, Snackbar.LENGTH_INDEFINITE); + syncStatusSnackbar.setActionTextColor(getResources().getColor(R.color.snackbar_action_color)); + syncStatusSnackbar.setAction(R.string.retry, new View.OnClickListener() { + @Override + public void onClick(View v) { + startSync(); + } + }); + } else if (fetchStatus.equals(FetchStatus.fetched) + || fetchStatus.equals(FetchStatus.nothingFetched)) { + syncStatusSnackbar = Snackbar.make(rootView, R.string.sync_complete, Snackbar.LENGTH_LONG); + } else if (fetchStatus.equals(FetchStatus.noConnection)) { + syncStatusSnackbar = Snackbar.make(rootView, R.string.sync_failed_no_internet, Snackbar.LENGTH_LONG); + } + syncStatusSnackbar.show(); + } + +//<<<<<<< HEAD +// if (!TextUtils.isEmpty(lastSync)) { +// lastSync = " " + String.format(getString(R.string.last_sync), lastSync); +// } +// ((TextView)syncMenuItem.findViewById(R.id.nav_synctextview)).setText(String.format(getString(R.string.sync_), lastSync)); +//======= + updateLastSyncText(); + } + } + } + } + + private void initializeCustomNavbarLIsteners() { + final DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout); + LinearLayout syncMenuItem = (LinearLayout) drawer.findViewById(R.id.nav_sync); + syncMenuItem.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + startSync(); + drawer.closeDrawer(GravityCompat.START); + } + }); + LinearLayout addchild = (LinearLayout) drawer.findViewById(R.id.nav_register); + addchild.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + startFormActivity("child_enrollment", null, null); + drawer.closeDrawer(GravityCompat.START); + + } + }); + LinearLayout outofcatchment = (LinearLayout) drawer.findViewById(R.id.nav_record_vaccination_out_catchment); + outofcatchment.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + startFormActivity("out_of_catchment_service", null, null); + drawer.closeDrawer(GravityCompat.START); + + } + }); + LinearLayout stockregister = (LinearLayout) drawer.findViewById(R.id.stockcontrol); + stockregister.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + Intent intent = new Intent(getApplicationContext(), StockActivity.class); + startActivity(intent); + drawer.closeDrawer(GravityCompat.START); + + } + }); + LinearLayout hia2 = (LinearLayout) drawer.findViewById(R.id.hia2reports); + hia2.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + Intent intent = new Intent(getApplicationContext(), HIA2ReportsActivity.class); + startActivity(intent); + drawer.closeDrawer(GravityCompat.START); + + } + }); + LinearLayout childregister = (LinearLayout) drawer.findViewById(R.id.child_register); + childregister.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + BidanApplication.setCrashlyticsUser(BidanApplication.getInstance().context()); + Intent intent = new Intent(getApplicationContext(), ChildSmartRegisterActivity.class); + intent.putExtra(BaseRegisterActivity.IS_REMOTE_LOGIN, false); + startActivity(intent); + drawer.closeDrawer(GravityCompat.START); + +// finish(); + } + }); + + } + + private void updateLastSyncText() { + NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view); + if (navigationView != null && navigationView.getMenu() != null) { + TextView syncMenuItem = ((TextView) navigationView.findViewById(R.id.nav_synctextview)); + if (syncMenuItem != null) { + String lastSync = getLastSyncTime(); + + if (!TextUtils.isEmpty(lastSync)) { + lastSync = " " + String.format(getString(R.string.last_sync), lastSync); + } + syncMenuItem.setText(String.format(getString(R.string.sync_), lastSync)); + } + } + } + + private String getLastSyncTime() { + String lastSync = ""; + long milliseconds = ECSyncUpdater.getInstance(this).getLastCheckTimeStamp(); + if (milliseconds > 0) { + DateTime lastSyncTime = new DateTime(milliseconds); + DateTime now = new DateTime(Calendar.getInstance()); + Minutes minutes = Minutes.minutesBetween(lastSyncTime, now); + if (minutes.getMinutes() < 1) { + Seconds seconds = Seconds.secondsBetween(lastSyncTime, now); + lastSync = seconds.getSeconds() + "s"; + } else if (minutes.getMinutes() >= 1 && minutes.getMinutes() < 60) { + lastSync = minutes.getMinutes() + "m"; + } else if (minutes.getMinutes() >= 60 && minutes.getMinutes() < 1440) { + Hours hours = Hours.hoursBetween(lastSyncTime, now); + lastSync = hours.getHours() + "h"; + } else { + Days days = Days.daysBetween(lastSyncTime, now); + lastSync = days.getDays() + "d"; + } + } + return lastSync; + } + + @Override + protected Context context() { + return BidanApplication.getInstance().context(); + } + + //////////////////////////////////////////////////////////////// + // Inner classes + //////////////////////////////////////////////////////////////// + private class BaseActivityToggle extends ActionBarDrawerToggle { + + private BaseActivityToggle(Activity activity, DrawerLayout drawerLayout, @StringRes int openDrawerContentDescRes, @StringRes int closeDrawerContentDescRes) { + super(activity, drawerLayout, openDrawerContentDescRes, closeDrawerContentDescRes); + } + + /*public BaseActivityToggle(Activity activity, DrawerLayout drawerLayout, Toolbar toolbar, @StringRes int openDrawerContentDescRes, @StringRes int closeDrawerContentDescRes) { + super(activity, drawerLayout, toolbar, openDrawerContentDescRes, closeDrawerContentDescRes); + }*/ + + @Override + public void onDrawerOpened(View drawerView) { + super.onDrawerOpened(drawerView); + if (!SyncStatusBroadcastReceiver.getInstance().isSyncing()) { + updateLastSyncText(); + } + } + + @Override + public void onDrawerClosed(View drawerView) { + super.onDrawerClosed(drawerView); + } + } + + +} + diff --git a/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/BidanHomeActivity.java b/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/BidanHomeActivity.java new file mode 100644 index 0000000..9dff00c --- /dev/null +++ b/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/BidanHomeActivity.java @@ -0,0 +1,20 @@ +package org.smartregister.bidan.activity; + +import org.smartregister.bidan.R; +import org.smartregister.view.activity.SecuredActivity; + +/** + * Created by sid-tech on 11/6/17. + */ + +public class BidanHomeActivity extends SecuredActivity { + @Override + protected void onCreation() { + setContentView(R.layout.smart_registers_home_bidan); + } + + @Override + protected void onResumption() { + + } +} diff --git a/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/ChildDetailTabbedActivity.java b/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/ChildDetailTabbedActivity.java new file mode 100644 index 0000000..d9d066e --- /dev/null +++ b/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/ChildDetailTabbedActivity.java @@ -0,0 +1,1639 @@ +package org.smartregister.bidan.activity; + +import android.app.FragmentTransaction; +import android.content.ContentValues; +import android.content.Intent; +import android.content.SharedPreferences; +import android.graphics.Color; +import android.graphics.drawable.ColorDrawable; +import android.net.Uri; +import android.os.AsyncTask; +import android.os.Bundle; +import android.os.Environment; +import android.os.Handler; +import android.os.Looper; +import android.preference.PreferenceManager; +import android.provider.MediaStore; +import android.support.design.widget.TabLayout; +import android.support.v4.app.Fragment; +import android.support.v4.app.FragmentManager; +import android.support.v4.app.FragmentPagerAdapter; +import android.support.v4.view.ViewPager; +import android.support.v7.app.AlertDialog; +import android.text.TextUtils; +import android.util.Log; +import android.util.TypedValue; +import android.view.LayoutInflater; +import android.view.Menu; +import android.view.MenuItem; +import android.view.View; +import android.widget.Button; +import android.widget.ImageView; +import android.widget.LinearLayout; +import android.widget.TextView; +import android.widget.Toast; + +import org.apache.commons.lang3.StringUtils; +import org.apache.commons.lang3.time.DateUtils; +import org.apache.commons.lang3.tuple.Triple; +import org.joda.time.DateTime; +import org.json.JSONArray; +import org.json.JSONException; +import org.json.JSONObject; +import org.opensrp.api.constants.Gender; +import org.smartregister.Context; +import org.smartregister.bidan.application.BidanApplication; +import org.smartregister.bidan.sync.PathClientProcessor; +import org.smartregister.bidan.tabfragments.ChildUnderFiveFragment; +import org.smartregister.bidan.toolbar.ChildDetailsToolbar; +import org.smartregister.bidan.view.LocationPickerView; +import org.smartregister.clientandeventmodel.Event; +import org.smartregister.commonregistry.CommonPersonObjectClient; +import org.smartregister.domain.Alert; +import org.smartregister.domain.Photo; +import org.smartregister.growthmonitoring.domain.Weight; +import org.smartregister.growthmonitoring.domain.WeightWrapper; +import org.smartregister.growthmonitoring.fragment.EditWeightDialogFragment; +import org.smartregister.growthmonitoring.listener.WeightActionListener; +import org.smartregister.growthmonitoring.repository.WeightRepository; +import org.smartregister.immunization.db.VaccineRepo; +import org.smartregister.immunization.domain.ServiceRecord; +import org.smartregister.immunization.domain.ServiceSchedule; +import org.smartregister.immunization.domain.ServiceType; +import org.smartregister.immunization.domain.ServiceWrapper; +import org.smartregister.immunization.domain.Vaccine; +import org.smartregister.immunization.domain.VaccineSchedule; +import org.smartregister.immunization.domain.VaccineWrapper; +import org.smartregister.immunization.fragment.VaccinationDialogFragment; +import org.smartregister.immunization.listener.ServiceActionListener; +import org.smartregister.immunization.listener.VaccinationActionListener; +import org.smartregister.immunization.repository.RecurringServiceRecordRepository; +import org.smartregister.immunization.repository.RecurringServiceTypeRepository; +import org.smartregister.immunization.repository.VaccineRepository; +import org.smartregister.immunization.util.RecurringServiceUtils; +import org.smartregister.immunization.util.VaccinateActionUtils; +import org.smartregister.immunization.util.VaccinatorUtils; +import org.smartregister.immunization.view.ImmunizationRowGroup; +import org.smartregister.bidan.R; +import org.smartregister.bidan.fragment.StatusEditDialogFragment; +import org.smartregister.bidan.listener.StatusChangeListener; +import org.smartregister.bidan.sync.ECSyncUpdater; +import org.smartregister.bidan.tabfragments.ChildRegistrationDataFragment; +import org.smartregister.repository.AllSharedPreferences; +import org.smartregister.repository.BaseRepository; +import org.smartregister.repository.DetailsRepository; +import org.smartregister.repository.EventClientRepository; +import org.smartregister.service.AlertService; +import org.smartregister.util.DateUtil; +import org.smartregister.util.FormUtils; +import org.smartregister.util.OpenSRPImageLoader; +import org.smartregister.util.Utils; +import org.smartregister.view.activity.DrishtiApplication; + +import java.io.File; +import java.io.IOException; +import java.io.Serializable; +import java.lang.reflect.Field; +import java.lang.reflect.Method; +import java.text.SimpleDateFormat; +import java.util.ArrayList; +import java.util.Calendar; +import java.util.Date; +import java.util.Iterator; +import java.util.List; +import java.util.Map; + +import util.ImageUtils; +import util.JsonFormUtils; +import util.PathConstants; + +import static org.smartregister.util.Utils.getName; +import static org.smartregister.util.Utils.getValue; + +/** + * Created by raihan on 1/03/2017. + */ + +public class ChildDetailTabbedActivity extends BaseActivity implements VaccinationActionListener, WeightActionListener, StatusChangeListener, ServiceActionListener { + + private Menu overflow; + private ChildDetailsToolbar detailtoolbar; + private TabLayout tabLayout; + private ViewPager viewPager; + private TextView saveButton; + private static final int REQUEST_CODE_GET_JSON = 3432; + private static final int REQUEST_TAKE_PHOTO = 1; + private static Gender gender; + ////////////////////////////////////////////////// + private static final String TAG = "ChildDetails"; + public static final String EXTRA_CHILD_DETAILS = "child_details"; + public static final String EXTRA_REGISTER_CLICKABLES = "register_clickables"; + public static final SimpleDateFormat DATE_FORMAT = new SimpleDateFormat("dd-MM-yyyy"); + private ChildRegistrationDataFragment childDataFragment; + private ChildUnderFiveFragment childUnderFiveFragment; + public static final String DIALOG_TAG = "ChildDetailActivity_DIALOG_TAG"; + + private File currentfile; + private String location_name = ""; + + private ViewPagerAdapter adapter; + + // Data + private CommonPersonObjectClient childDetails; + private Map detailmaps; + private AllSharedPreferences allSharedPreferences; + //////////////////////////////////////////////// + public DetailsRepository detailsRepository; + + private Map details; + public static final String inactive = "inactive"; + public static final String lostToFollowUp = "lost_to_follow_up"; + public static final String PMTCT_STATUS_LOWER_CASE = "pmtct_status"; + + private static final String CHILD = "child"; + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + Bundle extras = this.getIntent().getExtras(); + if (extras != null) { + Serializable serializable = extras.getSerializable(EXTRA_CHILD_DETAILS); + if (serializable != null && serializable instanceof CommonPersonObjectClient) { + childDetails = (CommonPersonObjectClient) serializable; + } + } + + + location_name = extras.getString("location_name"); + detailsRepository = detailsRepository == null ? this.getOpenSRPContext().detailsRepository() : detailsRepository; + details = detailsRepository.getAllDetailsForClient(childDetails.entityId()); + util.Utils.putAll(details, childDetails.getColumnmaps()); + + setContentView(R.layout.child_detail_activity_simple_tabs); + + childDataFragment = new ChildRegistrationDataFragment(); + + childDataFragment.setArguments(this.getIntent().getExtras()); + + childUnderFiveFragment = new ChildUnderFiveFragment(); + childUnderFiveFragment.setArguments(this.getIntent().getExtras()); + + + detailtoolbar = (ChildDetailsToolbar) findViewById(R.id.child_detail_toolbar); + + + saveButton = (TextView) detailtoolbar.findViewById(R.id.save); + saveButton.setVisibility(View.INVISIBLE); + saveButton.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + detailtoolbar.showOverflowMenu(); + invalidateOptionsMenu(); + childUnderFiveFragment.loadView(false, false, false); + + saveButton.setVisibility(View.INVISIBLE); + } + }); + + detailtoolbar.showOverflowMenu(); + + setSupportActionBar(detailtoolbar); + + getSupportActionBar().setDisplayHomeAsUpEnabled(true); + tabLayout = (TabLayout) findViewById(R.id.tabs); +// getSupportActionBar(). + initiallization(); + viewPager = (ViewPager) findViewById(R.id.viewpager); + viewPager.setOnPageChangeListener(new ViewPager.OnPageChangeListener() { + @Override + public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) { + + } + + @Override + public void onPageSelected(int position) { + if (position == 0) { + saveButton.setVisibility(View.INVISIBLE); + invalidateOptionsMenu(); + childUnderFiveFragment.loadView(false, false, false); + } + } + + @Override + public void onPageScrollStateChanged(int state) { + + } + }); + setupViewPager(viewPager); + + detailtoolbar.setNavigationOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + onBackPressed(); + } + }); + detailtoolbar.setTitle(updateActivityTitle()); + + LinearLayout statusview = (LinearLayout) findViewById(R.id.statusview); + statusview.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + FragmentTransaction ft = getFragmentManager().beginTransaction(); + android.app.Fragment prev = getFragmentManager().findFragmentByTag(DIALOG_TAG); + if (prev != null) { + ft.remove(prev); + } + StatusEditDialogFragment.newInstance(details).show(ft, DIALOG_TAG); + } + }); + + tabLayout.setupWithViewPager(viewPager); + SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this); + + allSharedPreferences = new AllSharedPreferences(preferences); + + } + + private void initiallization() { + + detailsRepository = detailsRepository == null ? this.getOpenSRPContext().detailsRepository() : detailsRepository; + detailmaps = detailsRepository.getAllDetailsForClient(childDetails.entityId()); + profileWidget(); + ((TextView) detailtoolbar.findViewById(R.id.title)).setText(updateActivityTitle()); + + } + + @Override + public boolean onCreateOptionsMenu(Menu menu) { + getMenuInflater().inflate(R.menu.menu_child_detail_settings, menu); + overflow = menu; + VaccineRepository vaccineRepository = getVaccinatorApplicationInstance().vaccineRepository(); + List vaccineList = vaccineRepository.findByEntityId(childDetails.entityId()); + + ECSyncUpdater ecUpdater = ECSyncUpdater.getInstance(ChildDetailTabbedActivity.this); + + boolean showVaccineList = false; + for (int i = 0; i < vaccineList.size(); i++) { + Vaccine vaccine = vaccineList.get(i); + boolean check = showVaccineListCheck(vaccine.getEventId(), vaccine.getFormSubmissionId()); + if (check) { + showVaccineList = true; + break; + } + } + + if (!showVaccineList) { + overflow.findItem(R.id.immunization_data).setEnabled(false); + } + + boolean showServiceList = false; + + RecurringServiceRecordRepository recurringServiceRecordRepository = getVaccinatorApplicationInstance().recurringServiceRecordRepository(); + List serviceRecordList = recurringServiceRecordRepository.findByEntityId(childDetails.entityId()); + for (ServiceRecord serviceRecord : serviceRecordList) { + boolean check = showVaccineListCheck(serviceRecord.getEventId(), serviceRecord.getFormSubmissionId()); + if (check) { + showServiceList = true; + break; + + } + } + + if (!showServiceList) { + overflow.findItem(R.id.recurring_services_data).setEnabled(false); + } + + WeightRepository wp = getVaccinatorApplicationInstance().weightRepository(); + List weightlist = wp.findLast5(childDetails.entityId()); + boolean showWeightEdit = false; + for (int i = 0; i < weightlist.size(); i++) { + Weight weight = weightlist.get(i); + org.smartregister.domain.db.Event event = null; + EventClientRepository db = BidanApplication.getInstance().eventClientRepository(); + if (weight.getEventId() != null) { + event = ecUpdater.convert(db.getEventsByEventId(weight.getEventId()), org.smartregister.domain.db.Event.class); + } else if (weight.getFormSubmissionId() != null) { + event = ecUpdater.convert(db.getEventsByFormSubmissionId(weight.getFormSubmissionId()), org.smartregister.domain.db.Event.class); + } + if (event != null) { + Date weight_create_date = event.getDateCreated().toDate(); + if (!DateUtil.checkIfDateThreeMonthsOlder(weight_create_date)) { + showWeightEdit = true; + } + } else { + showWeightEdit = true; + } + } + + if (!showWeightEdit) { + overflow.findItem(R.id.weight_data).setEnabled(false); + } + + AlertService alertService = getOpenSRPContext().alertService(); + List alertList = alertService.findByEntityIdAndAlertNames(childDetails.entityId(), + VaccinateActionUtils.allAlertNames(CHILD)); + + boolean showRecordBcg2 = showRecordBcg2(vaccineList, alertList); + if (!showRecordBcg2) { + overflow.findItem(R.id.record_bcg_2).setVisible(false); + } + + return true; + } + + @Override + public boolean onOptionsItemSelected(MenuItem item) { + super.onOptionsItemSelected(item); + switch (item.getItemId()) { + case R.id.registration_data: + String formmetadata = getmetaDataForEditForm(); + startFormActivity("child_enrollment", childDetails.entityId(), formmetadata); + // User chose the "Settings" item, show the app settings UI... + return true; + case R.id.immunization_data: + if (viewPager.getCurrentItem() != 1) { + viewPager.setCurrentItem(1); + } + childUnderFiveFragment.loadView(true, false, false); + saveButton.setVisibility(View.VISIBLE); + for (int i = 0; i < overflow.size(); i++) { + overflow.getItem(i).setVisible(false); + } + return true; + + case R.id.recurring_services_data: + if (viewPager.getCurrentItem() != 1) { + viewPager.setCurrentItem(1); + } + childUnderFiveFragment.loadView(false, true, false); + saveButton.setVisibility(View.VISIBLE); + for (int i = 0; i < overflow.size(); i++) { + overflow.getItem(i).setVisible(false); + } + return true; + case R.id.weight_data: + if (viewPager.getCurrentItem() != 1) { + viewPager.setCurrentItem(1); + } + childUnderFiveFragment.loadView(false, false, true); + saveButton.setVisibility(View.VISIBLE); + for (int i = 0; i < overflow.size(); i++) { + overflow.getItem(i).setVisible(false); + } + return true; + + case R.id.report_deceased: + String reportDeceasedMetadata = getReportDeceasedMetadata(); + startFormActivity("report_deceased", childDetails.entityId(), reportDeceasedMetadata); + return true; + case R.id.change_status: + FragmentTransaction ft = this.getFragmentManager().beginTransaction(); + android.app.Fragment prev = this.getFragmentManager().findFragmentByTag(DIALOG_TAG); + if (prev != null) { + ft.remove(prev); + } + StatusEditDialogFragment.newInstance(details).show(ft, DIALOG_TAG); + return true; + case R.id.report_adverse_event: + return launchAdverseEventForm(); + case R.id.record_bcg_2: + showBcg2DialogFragment(); + return true; + default: + // If we got here, the user's action was not recognized. + // Invoke the superclass to handle it. + return super.onOptionsItemSelected(item); + + } + } + + private boolean launchAdverseEventForm() { + LaunchAdverseEventFormTask task = new LaunchAdverseEventFormTask(); + task.execute(); + return true; + } + + private String getmetaDataForEditForm() { + Context context = getOpenSRPContext(); + try { + JSONObject form = FormUtils.getInstance(getApplicationContext()).getFormJson("child_enrollment"); + LocationPickerView lpv = new LocationPickerView(getApplicationContext()); + lpv.init(context); + JsonFormUtils.addChildRegLocHierarchyQuestions(form, context); + Log.d(TAG, "Form is " + form.toString()); + if (form != null) { + form.put(JsonFormUtils.ENTITY_ID, childDetails.entityId()); + form.put(JsonFormUtils.RELATIONAL_ID, childDetails.getColumnmaps().get("relational_id")); + form.put(JsonFormUtils.CURRENT_ZEIR_ID, getValue(childDetails.getColumnmaps(), "zeir_id", true).replace("-", "")); + + + Intent intent = new Intent(getApplicationContext(), PathJsonFormActivity.class); + //inject zeir id into the form + JSONObject stepOne = form.getJSONObject(JsonFormUtils.STEP1); + JSONArray jsonArray = stepOne.getJSONArray(JsonFormUtils.FIELDS); + for (int i = 0; i < jsonArray.length(); i++) { + JSONObject jsonObject = jsonArray.getJSONObject(i); + if (jsonObject.getString(JsonFormUtils.KEY).equalsIgnoreCase("First_Name")) { + jsonObject.put(JsonFormUtils.VALUE, getValue(childDetails.getColumnmaps(), "first_name", true)); + } + if (jsonObject.getString(JsonFormUtils.KEY).equalsIgnoreCase("Last_Name")) { + jsonObject.put(JsonFormUtils.VALUE, getValue(childDetails.getColumnmaps(), "last_name", true)); + } + if (jsonObject.getString(JsonFormUtils.KEY).equalsIgnoreCase("Sex")) { + jsonObject.put(JsonFormUtils.READ_ONLY, true); + jsonObject.put(JsonFormUtils.VALUE, getValue(childDetails.getColumnmaps(), "gender", true)); + } + if (jsonObject.getString(JsonFormUtils.KEY).equalsIgnoreCase(JsonFormUtils.ZEIR_ID)) { + jsonObject.put(JsonFormUtils.READ_ONLY, false); + jsonObject.put(JsonFormUtils.VALUE, getValue(childDetails.getColumnmaps(), "zeir_id", true).replace("-", "")); + } + if (jsonObject.getString(JsonFormUtils.KEY).equalsIgnoreCase("Child_Register_Card_Number")) { + jsonObject.put(JsonFormUtils.VALUE, getValue(detailmaps, "Child_Register_Card_Number", true)); + } + if (jsonObject.getString(JsonFormUtils.KEY).equalsIgnoreCase("Child_Birth_Certificate")) { + jsonObject.put(JsonFormUtils.READ_ONLY, true); + jsonObject.put(JsonFormUtils.VALUE, getValue(detailmaps, "Child_Birth_Certificate", true)); + } + if (jsonObject.getString(JsonFormUtils.KEY).equalsIgnoreCase("Mother_Guardian_First_Name")) { + jsonObject.put(JsonFormUtils.VALUE, getValue(childDetails.getColumnmaps(), "mother_first_name", true).isEmpty() ? getValue(childDetails.getDetails(), "mother_first_name", true) : getValue(childDetails.getColumnmaps(), "mother_first_name", true)); + + } + if (jsonObject.getString(JsonFormUtils.KEY).equalsIgnoreCase("Mother_Guardian_Last_Name")) { + jsonObject.put(JsonFormUtils.VALUE, getValue(childDetails.getColumnmaps(), "mother_last_name", true).isEmpty() ? getValue(childDetails.getDetails(), "mother_last_name", true) : getValue(childDetails.getColumnmaps(), "mother_last_name", true)); + } + if (jsonObject.getString(JsonFormUtils.KEY).equalsIgnoreCase("Mother_Guardian_Date_Birth")) { + + if (!TextUtils.isEmpty(getValue(childDetails.getColumnmaps(), "mother_dob", true))) { + try { + DateTime dateTime = new DateTime(getValue(childDetails.getColumnmaps(), "mother_dob", true)); + Date dob = dateTime.toDate(); + Date defaultDate = DATE_FORMAT.parse(JsonFormUtils.MOTHER_DEFAULT_DOB); + long timeDiff = Math.abs(dob.getTime() - defaultDate.getTime()); + if (timeDiff > 86400000) { // Mother's date of birth occurs more than a day from the default date + jsonObject.put(JsonFormUtils.VALUE, DATE_FORMAT.format(dob)); + } + } catch (Exception e) { + Log.e(TAG, Log.getStackTraceString(e)); + } + } + } + if (jsonObject.getString(JsonFormUtils.KEY).equalsIgnoreCase("Mother_Guardian_NRC")) { + jsonObject.put(JsonFormUtils.VALUE, getValue(childDetails.getColumnmaps(), "mother_nrc_number", true)); + } + if (jsonObject.getString(JsonFormUtils.KEY).equalsIgnoreCase("Mother_Guardian_Number")) { + jsonObject.put(JsonFormUtils.VALUE, getValue(detailmaps, "Mother_Guardian_Number", true)); + } + if (jsonObject.getString(JsonFormUtils.KEY).equalsIgnoreCase("Father_Guardian_Name")) { + jsonObject.put(JsonFormUtils.READ_ONLY, true); + jsonObject.put(JsonFormUtils.VALUE, getValue(detailmaps, "Father_Guardian_Name", true)); + } + if (jsonObject.getString(JsonFormUtils.KEY).equalsIgnoreCase("Father_Guardian_NRC")) { + jsonObject.put(JsonFormUtils.READ_ONLY, true); + jsonObject.put(JsonFormUtils.VALUE, getValue(detailmaps, "Father_NRC_Number", true)); + } + if (jsonObject.getString(JsonFormUtils.KEY).equalsIgnoreCase("First_Health_Facility_Contact")) { + jsonObject.put(JsonFormUtils.READ_ONLY, true); + String dateString = getValue(detailmaps, "First_Health_Facility_Contact", false); + if (!TextUtils.isEmpty(dateString)) { + Date date = JsonFormUtils.formatDate(dateString, false); + if (date != null) { + jsonObject.put(JsonFormUtils.VALUE, DATE_FORMAT.format(date)); + } + } + } + if (jsonObject.getString(JsonFormUtils.KEY).equalsIgnoreCase("Date_Birth")) { + jsonObject.put(JsonFormUtils.READ_ONLY, true); + DateTime dateTime = new DateTime(getValue(childDetails.getColumnmaps(), "dob", true)); + Date dob = dateTime.toDate(); + jsonObject.put(JsonFormUtils.VALUE, DATE_FORMAT.format(dob)); + } + if (jsonObject.getString(JsonFormUtils.KEY).equalsIgnoreCase("Birth_Weight")) { + jsonObject.put(JsonFormUtils.READ_ONLY, true); + jsonObject.put(JsonFormUtils.VALUE, getValue(detailmaps, "Birth_Weight", true)); + } + if (jsonObject.getString(JsonFormUtils.KEY).equalsIgnoreCase("Place_Birth")) { + jsonObject.put(JsonFormUtils.READ_ONLY, true); + + String placeofnearth_Choice = getValue(detailmaps, "Place_Birth", true); + if (placeofnearth_Choice.equalsIgnoreCase("Health facility")) { + placeofnearth_Choice = "Health facility"; + } + if (placeofnearth_Choice.equalsIgnoreCase("Home")) { + placeofnearth_Choice = "Home"; + } + jsonObject.put(JsonFormUtils.VALUE, placeofnearth_Choice); + +// jsonObject.put(JsonFormUtils.VALUE, getValue(detailmaps, "Place_Birth", true)); + } + if (jsonObject.getString(JsonFormUtils.KEY).equalsIgnoreCase("Birth_Facility_Name")) { + jsonObject.put(JsonFormUtils.READ_ONLY, true); + JSONArray birthFacilityHierarchy = null; + String birthFacilityName = getValue(detailmaps, "Birth_Facility_Name", false); + + if (birthFacilityName != null) { + if (birthFacilityName.equalsIgnoreCase("other")) { + birthFacilityHierarchy = new JSONArray(); + birthFacilityHierarchy.put(birthFacilityName); + } else { + birthFacilityHierarchy = JsonFormUtils.getOpenMrsLocationHierarchy( + getOpenSRPContext(), birthFacilityName); + } + } + + if (birthFacilityHierarchy != null) { + jsonObject.put(JsonFormUtils.VALUE, birthFacilityHierarchy.toString()); + } + } + if (jsonObject.getString(JsonFormUtils.KEY).equalsIgnoreCase("Birth_Facility_Name_Other")) { + jsonObject.put(JsonFormUtils.VALUE, getValue(detailmaps, "Birth_Facility_Name_Other", false)); + jsonObject.put(JsonFormUtils.READ_ONLY, true); + } + if (jsonObject.getString(JsonFormUtils.KEY).equalsIgnoreCase("Residential_Area")) { + JSONArray residentialAreaHierarchy = null; + String address3 = getValue(detailmaps, "address3", false); + if (address3 != null && address3.equalsIgnoreCase("Other")) { + residentialAreaHierarchy = new JSONArray(); + residentialAreaHierarchy.put(address3); + } else { + residentialAreaHierarchy = JsonFormUtils.getOpenMrsLocationHierarchy( + getOpenSRPContext(), address3); + } + + if (residentialAreaHierarchy != null) { + jsonObject.put(JsonFormUtils.VALUE, residentialAreaHierarchy.toString()); + } + } + if (jsonObject.getString(JsonFormUtils.KEY).equalsIgnoreCase("Residential_Area_Other")) { + jsonObject.put(JsonFormUtils.VALUE, getValue(detailmaps, "address5", true)); + } + if (jsonObject.getString(JsonFormUtils.KEY).equalsIgnoreCase("Residential_Address")) { + jsonObject.put(JsonFormUtils.VALUE, getValue(detailmaps, "address2", true)); + } + if (jsonObject.getString(JsonFormUtils.KEY).equalsIgnoreCase("Physical_Landmark")) { + jsonObject.put(JsonFormUtils.VALUE, getValue(detailmaps, "address1", true)); + } + if (jsonObject.getString(JsonFormUtils.KEY).equalsIgnoreCase("CHW_Name")) { + jsonObject.put(JsonFormUtils.VALUE, getValue(detailmaps, "CHW_Name", true)); + } + if (jsonObject.getString(JsonFormUtils.KEY).equalsIgnoreCase("CHW_Phone_Number")) { + jsonObject.put(JsonFormUtils.VALUE, getValue(detailmaps, "CHW_Phone_Number", true)); + } + if (jsonObject.getString(JsonFormUtils.KEY).equalsIgnoreCase("PMTCT_Status")) { + jsonObject.put(JsonFormUtils.READ_ONLY, true); + jsonObject.put(JsonFormUtils.VALUE, getValue(detailmaps, PMTCT_STATUS_LOWER_CASE, true)); + } + if (jsonObject.getString(JsonFormUtils.KEY).equalsIgnoreCase("Home_Facility")) { + JSONArray homeFacilityHierarchy = JsonFormUtils.getOpenMrsLocationHierarchy( + getOpenSRPContext(), getValue(detailmaps, + "Home_Facility", false)); + if (homeFacilityHierarchy != null) { + jsonObject.put(JsonFormUtils.VALUE, homeFacilityHierarchy.toString()); + } + } + + } +// intent.putExtra("json", form.toString()); +// startActivityForResult(intent, REQUEST_CODE_GET_JSON); + return form.toString(); + } + } catch (Exception e) { + Log.e(TAG, Log.getStackTraceString(e)); + } + + return ""; + } + + private void startFormActivity(String formName, String entityId, String metaData) { + + Intent intent = new Intent(getApplicationContext(), PathJsonFormActivity.class); + + intent.putExtra("json", metaData); + startActivityForResult(intent, REQUEST_CODE_GET_JSON); + + + } + + @Override + public void onBackPressed() { + finish(); + } + + @Override + protected void onActivityResult(int requestCode, int resultCode, Intent data) { + if (requestCode == REQUEST_CODE_GET_JSON && resultCode == RESULT_OK) { + try { + String jsonString = data.getStringExtra("json"); + Log.d("JSONResult", jsonString); + + SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this); + AllSharedPreferences allSharedPreferences = new AllSharedPreferences(preferences); + + JSONObject form = new JSONObject(jsonString); + if (form.getString("encounter_type").equals("Death")) { + confirmReportDeceased(jsonString, allSharedPreferences); + } else if (form.getString("encounter_type").equals("Birth Registration")) { + JsonFormUtils.editsave(this, getOpenSRPContext(), jsonString, allSharedPreferences.fetchRegisteredANM(), "Child_Photo", CHILD, "mother"); + } else if (form.getString("encounter_type").equals("AEFI")) { + JsonFormUtils.saveAdverseEvent(jsonString, location_name, + childDetails.entityId(), allSharedPreferences.fetchRegisteredANM()); + } + childDataFragment.childDetails = childDetails; + childDataFragment.loadData(); + } catch (Exception e) { + Log.e(TAG, Log.getStackTraceString(e)); + } + + } else if (requestCode == REQUEST_TAKE_PHOTO && resultCode == RESULT_OK) { + String imageLocation = currentfile.getAbsolutePath(); + SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this); + AllSharedPreferences allSharedPreferences = new AllSharedPreferences(preferences); + + JsonFormUtils.saveImage(this, allSharedPreferences.fetchRegisteredANM(), childDetails.entityId(), imageLocation); + updateProfilePicture(gender); + } + } + + private void saveReportDeceasedJson(String jsonString, AllSharedPreferences allSharedPreferences) { + + JsonFormUtils.saveReportDeceased(this, getOpenSRPContext(), jsonString, allSharedPreferences.fetchRegisteredANM(), location_name, childDetails.entityId()); + + } + + private void confirmReportDeceased(final String json, final AllSharedPreferences allSharedPreferences) { + + final AlertDialog builder = new AlertDialog.Builder(this).setCancelable(false).create(); + + LayoutInflater inflater = getLayoutInflater(); + View notificationsLayout = inflater.inflate(R.layout.notification_base, null); + notificationsLayout.setVisibility(View.VISIBLE); + + ImageView notificationIcon = (ImageView) notificationsLayout.findViewById(R.id.noti_icon); + notificationIcon.setTag("confirm_deceased_icon"); + notificationIcon.setImageResource(R.drawable.ic_deceased); + notificationIcon.getLayoutParams().height = 165; + + LinearLayout.LayoutParams params = (LinearLayout.LayoutParams) notificationIcon.getLayoutParams(); + params.setMargins(55, params.topMargin, params.rightMargin, params.bottomMargin); + notificationIcon.setLayoutParams(params); + + TextView notificationMessage = (TextView) notificationsLayout.findViewById(R.id.noti_message); + notificationMessage.setText(childDetails.getColumnmaps().get("first_name") + " " + childDetails.getColumnmaps().get("last_name") + " marked as deceased"); + notificationMessage.setTextColor(getResources().getColor(R.color.black)); + notificationMessage.setTextSize(TypedValue.COMPLEX_UNIT_SP, 25); + + Button positiveButton = (Button) notificationsLayout.findViewById(R.id.noti_positive_button); + positiveButton.setVisibility(View.VISIBLE); + positiveButton.setText(getResources().getString(R.string.undo)); + positiveButton.setTextSize(TypedValue.COMPLEX_UNIT_SP, 22); + positiveButton.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + + builder.dismiss(); + + } + }); + + Button negativeButton = (Button) notificationsLayout.findViewById(R.id.noti_negative_button); + negativeButton.setVisibility(View.VISIBLE); + negativeButton.setText(getResources().getString(R.string.confirm_button_label)); + negativeButton.setTextSize(TypedValue.COMPLEX_UNIT_SP, 22); + negativeButton.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + + saveReportDeceasedJson(json, allSharedPreferences); + builder.dismiss(); + + Intent intent = new Intent(getApplicationContext(), ChildSmartRegisterActivity.class); + intent.putExtra(BaseRegisterActivity.IS_REMOTE_LOGIN, false); + startActivity(intent); + finish(); + + } + }); + + builder.setView(notificationsLayout); + builder.show(); + } + + @Override + protected int getContentView() { + return R.layout.child_detail_activity_simple_tabs; + } + + @Override + protected int getDrawerLayoutId() { + return R.id.drawer_layout; + } + + @Override + protected int getToolbarId() { + return R.id.child_detail_toolbar; + } + + @Override + protected Class onBackActivity() { + return ChildImmunizationActivity.class; + } + + private void profileWidget() { + TextView profilename = (TextView) findViewById(R.id.name); + TextView profileZeirID = (TextView) findViewById(R.id.idforclient); + TextView profileage = (TextView) findViewById(R.id.ageforclient); + String name = ""; + String childId = ""; + String dobString = ""; + String formattedAge = ""; + if (isDataOk()) { + name = getValue(childDetails.getColumnmaps(), "first_name", true) + + " " + getValue(childDetails.getColumnmaps(), "last_name", true); + childId = getValue(childDetails.getColumnmaps(), "zeir_id", false); + if (StringUtils.isNotBlank(childId)) { + childId = childId.replace("-", ""); + } + dobString = getValue(childDetails.getColumnmaps(), "dob", false); + if (!TextUtils.isEmpty(dobString)) { + DateTime dateTime = new DateTime(dobString); + Date dob = dateTime.toDate(); + long timeDiff = Calendar.getInstance().getTimeInMillis() - dob.getTime(); + + if (timeDiff >= 0) { + formattedAge = DateUtil.getDuration(timeDiff); + } + } + } + + profileage.setText(String.format("%s: %s", getString(R.string.age), formattedAge)); + profileZeirID.setText(String.format("%s: %s", getString(R.string.label_zeir), childId)); + profilename.setText(name); + updateGenderViews(); + Gender gender = Gender.UNKNOWN; + if (isDataOk()) { + String genderString = getValue(childDetails, "gender", false); + if (genderString != null && genderString.equalsIgnoreCase(PathConstants.GENDER.FEMALE)) { + gender = Gender.FEMALE; + } else if (genderString != null && genderString.equalsIgnoreCase(PathConstants.GENDER.MALE)) { + gender = Gender.MALE; + } + } + updateProfilePicture(gender); + updateStatus(); + } + + @Override + public void updateStatus() { + ImageView statusImage = (ImageView) findViewById(R.id.statusimage); + TextView status_name = (TextView) findViewById(R.id.statusname); + TextView status = (TextView) findViewById(R.id.status); + if (details.containsKey(inactive) && details.get(inactive).equalsIgnoreCase(Boolean.TRUE.toString())) { + statusImage.clearColorFilter(); + statusImage.setColorFilter(Color.TRANSPARENT); + statusImage.setImageResource(R.drawable.ic_icon_status_inactive); + status_name.setText(R.string.inactive); + status_name.setTextColor(getResources().getColor(R.color.dark_grey)); + status_name.setVisibility(View.VISIBLE); + status.setText(R.string.status); + } else if (details.containsKey(lostToFollowUp) && details.get(lostToFollowUp).equalsIgnoreCase(Boolean.TRUE.toString())) { + statusImage.clearColorFilter(); + statusImage.setImageResource(R.drawable.ic_icon_status_losttofollowup); + statusImage.setColorFilter(Color.TRANSPARENT); + status_name.setVisibility(View.GONE); + status.setText(R.string.lost_to_follow_up_with_nl); + } + if (!((details.containsKey(lostToFollowUp) && details.get(lostToFollowUp).equalsIgnoreCase(Boolean.TRUE.toString())) || (details.containsKey(inactive) && details.get(inactive).equalsIgnoreCase(Boolean.TRUE.toString())))) { + statusImage.setImageResource(R.drawable.ic_icon_status_active); + statusImage.setColorFilter(getResources().getColor(R.color.alert_completed)); + status_name.setText(R.string.active); + status_name.setTextColor(getResources().getColor(R.color.alert_completed)); + status_name.setVisibility(View.VISIBLE); + status.setText(R.string.status); + } + } + + private String updateActivityTitle() { + String name = ""; + if (isDataOk()) { + name = getValue(childDetails.getColumnmaps(), "first_name", true) + + " " + getValue(childDetails.getColumnmaps(), "last_name", true); + } + return String.format("%s's %s", name, "Health Details"); + } + + private void updateProfilePicture(Gender gender) { + ChildDetailTabbedActivity.gender = gender; + if (isDataOk()) { + ImageView profileImageIV = (ImageView) findViewById(R.id.profile_image_iv); + + if (childDetails.entityId() != null) { //image already in local storage most likey ): + //set profile image by passing the client id.If the image doesn't exist in the image repository then download and save locally + profileImageIV.setTag(org.smartregister.R.id.entity_id, childDetails.entityId()); + DrishtiApplication.getCachedImageLoaderInstance().getImageByClientId(childDetails.entityId(), OpenSRPImageLoader.getStaticImageListener(profileImageIV, ImageUtils.profileImageResourceByGender(gender), ImageUtils.profileImageResourceByGender(gender))); + + } + profileImageIV.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + dispatchTakePictureIntent(); + } + }); + } + } + + private void setupViewPager(ViewPager viewPager) { + adapter = new ViewPagerAdapter(getSupportFragmentManager()); + + adapter.addFragment(childDataFragment, "Registration Data"); + adapter.addFragment(childUnderFiveFragment, "Under Five History"); + viewPager.setAdapter(adapter); + } + + private void dispatchTakePictureIntent() { + Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); + // Ensure that there's a camera activity to handle the intent + if (takePictureIntent.resolveActivity(getPackageManager()) != null) { + // Create the File where the photo should go + File photoFile = null; + try { + photoFile = createImageFile(); + } catch (IOException ex) { + // Error occurred while creating the File + Log.e(TAG, Log.getStackTraceString(ex)); + } + // Continue only if the File was successfully created + if (photoFile != null) { + currentfile = photoFile; + takePictureIntent.putExtra(MediaStore.EXTRA_OUTPUT, + Uri.fromFile(photoFile)); + startActivityForResult(takePictureIntent, REQUEST_TAKE_PHOTO); + } + } + } + + private File createImageFile() throws IOException { + // Create an image file name + String timeStamp = new SimpleDateFormat("yyyyMMdd_HHmmss").format(new Date()); + String imageFileName = "JPEG_" + timeStamp + "_"; + File storageDir = Environment.getExternalStoragePublicDirectory( + Environment.DIRECTORY_PICTURES); + return File.createTempFile( + imageFileName, /* prefix */ + ".jpg", /* suffix */ + storageDir /* directory */ + ); + + // Save a file: path for use with ACTION_VIEW intents +// mCurrentPhotoPath = "file:" + image.getAbsolutePath(); + } + + private void updateGenderViews() { + Gender gender = Gender.UNKNOWN; + if (isDataOk()) { + String genderString = getValue(childDetails, "gender", false); + if (genderString != null && genderString.toLowerCase().equals(PathConstants.GENDER.FEMALE)) { + gender = Gender.FEMALE; + } else if (genderString != null && genderString.toLowerCase().equals(PathConstants.GENDER.MALE)) { + gender = Gender.MALE; + } + } + int[] colors = updateGenderViews(gender); + int darkShade = colors[0]; + int normalShade = colors[1]; + int lightSade = colors[2]; + detailtoolbar.setBackground(new ColorDrawable(getResources().getColor(normalShade))); + tabLayout.setTabTextColors(getResources().getColor(R.color.dark_grey), getResources().getColor(normalShade)); +// tabLayout.setSelectedTabIndicatorColor(getResources().getColor(normalShade)); + try { + Field field = TabLayout.class.getDeclaredField("mTabStrip"); + field.setAccessible(true); + Object ob = field.get(tabLayout); + Class> c = Class.forName("android.support.design.widget.TabLayout$SlidingTabStrip"); + Method method = c.getDeclaredMethod("setSelectedIndicatorColor", int.class); + method.setAccessible(true); + method.invoke(ob, getResources().getColor(normalShade)); //now its ok + } catch (Exception e) { + Log.e(TAG, Log.getStackTraceString(e)); + } + } + + private boolean isDataOk() { + return childDetails != null && childDetails.getDetails() != null; + } + + @Override + public void onVaccinateToday(ArrayList tags, View view) { + if (tags != null && !tags.isEmpty()) { + saveVaccine(tags, view); + Utils.startAsyncTask(new UpdateOfflineAlertsTask(), null); + } + } + + @Override + public void onVaccinateEarlier(ArrayList tags, View view) { + if (tags != null && !tags.isEmpty()) { + saveVaccine(tags, view); + Utils.startAsyncTask(new UpdateOfflineAlertsTask(), null); + } + } + + @Override + public void onUndoVaccination(VaccineWrapper tag, View view) { + if (tag != null && tag.getDbKey() != null) { + final VaccineRepository vaccineRepository = BidanApplication.getInstance().vaccineRepository(); + Long dbKey = tag.getDbKey(); + vaccineRepository.deleteVaccine(dbKey); + + tag.setUpdatedVaccineDate(null, false); + tag.setDbKey(null); + + + List vaccineList = vaccineRepository.findByEntityId(childDetails.entityId()); + + ArrayList wrappers = new ArrayList<>(); + wrappers.add(tag); + updateVaccineGroupViews(view, wrappers, vaccineList, true); + + Utils.startAsyncTask(new UpdateOfflineAlertsTask(), null); + } + } + + @Override + public void onWeightTaken(WeightWrapper tag) { + if (tag != null) { + WeightRepository weightRepository = BidanApplication.getInstance().weightRepository(); + Weight weight = new Weight(); + if (tag.getDbKey() != null) { + weight = weightRepository.find(tag.getDbKey()); + } + weight.setBaseEntityId(childDetails.entityId()); + weight.setKg(tag.getWeight()); + weight.setDate(tag.getUpdatedWeightDate().toDate()); + weight.setAnmId(getOpenSRPContext().allSharedPreferences().fetchRegisteredANM()); + if (StringUtils.isNotBlank(location_name)) { + weight.setLocationId(location_name); + } + + Gender gender = Gender.UNKNOWN; + String genderString = getValue(childDetails, "gender", false); + if (genderString != null && genderString.toLowerCase().equals(PathConstants.GENDER.FEMALE)) { + gender = Gender.FEMALE; + } else if (genderString != null && genderString.toLowerCase().equals(PathConstants.GENDER.MALE)) { + gender = Gender.MALE; + } + + Date dob = null; + String dobString = getValue(childDetails.getColumnmaps(), "dob", false); + if (!TextUtils.isEmpty(dobString)) { + DateTime dateTime = new DateTime(dobString); + dob = dateTime.toDate(); + } + + if (dob != null && gender != Gender.UNKNOWN) { + weightRepository.add(dob, gender, weight); + } else { + weightRepository.add(weight); + } + + tag.setDbKey(weight.getId()); + childUnderFiveFragment.loadWeightView(true); +// updateRecordWeightView(tag); +// setLastModified(true); + } else { + childUnderFiveFragment.loadView(false, false, false); + } + } + + public void showWeightDialog(int i) { + FragmentTransaction ft = this.getFragmentManager().beginTransaction(); + android.app.Fragment prev = this.getFragmentManager().findFragmentByTag(DIALOG_TAG); + if (prev != null) { + ft.remove(prev); + } + ft.addToBackStack(null); + + + String childName = constructChildName(); + String gender = getValue(childDetails.getColumnmaps(), "gender", true); + String motherFirstName = getValue(childDetails.getColumnmaps(), "mother_first_name", true); + if (StringUtils.isBlank(childName) && StringUtils.isNotBlank(motherFirstName)) { + childName = "B/o " + motherFirstName.trim(); + } + String zeirId = getValue(childDetails.getColumnmaps(), "zeir_id", false); + String duration = ""; + String dobString = getValue(childDetails.getColumnmaps(), "dob", false); + if (StringUtils.isNotBlank(dobString)) { + DateTime dateTime = new DateTime(getValue(childDetails.getColumnmaps(), "dob", false)); + duration = DateUtil.getDuration(dateTime); + } + + Photo photo = getProfilePhotoByClient(); + + WeightWrapper weightWrapper = new WeightWrapper(); + weightWrapper.setId(childDetails.entityId()); + WeightRepository wp = getVaccinatorApplicationInstance().weightRepository(); + List weightlist = wp.findLast5(childDetails.entityId()); + if (!weightlist.isEmpty()) { + weightWrapper.setWeight(weightlist.get(i).getKg()); + weightWrapper.setUpdatedWeightDate(new DateTime(weightlist.get(i).getDate()), false); + weightWrapper.setDbKey(weightlist.get(i).getId()); + } + + weightWrapper.setGender(gender); + weightWrapper.setPatientName(childName); + weightWrapper.setPatientNumber(zeirId); + weightWrapper.setPatientAge(duration); + weightWrapper.setPhoto(photo); + weightWrapper.setPmtctStatus(getValue(childDetails.getColumnmaps(), PMTCT_STATUS_LOWER_CASE, false)); + weightWrapper.setDateOfBirth(dobString); + + EditWeightDialogFragment editWeightDialogFragment = EditWeightDialogFragment.newInstance(this, weightWrapper); + editWeightDialogFragment.show(ft, DIALOG_TAG); + + } + + protected Photo getProfilePhotoByClient() { + return ImageUtils.profilePhotoByClient(childDetails); + } + + + private String constructChildName() { + String firstName = getValue(childDetails.getColumnmaps(), "first_name", true); + String lastName = getValue(childDetails.getColumnmaps(), "last_name", true); + return getName(firstName, lastName).trim(); + } + + private void saveVaccine(List tags, final View view) { + if (tags != null && !tags.isEmpty()) { + if (tags.size() == 1) { + saveVaccine(tags.get(0)); + updateVaccineGroupViews(view); + } else { + VaccineWrapper[] arrayTags = tags.toArray(new VaccineWrapper[tags.size()]); + SaveVaccinesTask backgroundTask = new SaveVaccinesTask(); + backgroundTask.setView(view); + backgroundTask.execute(arrayTags); + } + } + } + + private void updateVaccineGroupViews(View view) { + if (view == null || !(view instanceof ImmunizationRowGroup)) { + return; + } + final ImmunizationRowGroup vaccineGroup = (ImmunizationRowGroup) view; + + if (Looper.myLooper() == Looper.getMainLooper()) { + vaccineGroup.updateViews(); + } else { + Handler handler = new Handler(Looper.getMainLooper()); + handler.post(new Runnable() { + @Override + public void run() { + vaccineGroup.updateViews(); + } + }); + } + } + + private void updateVaccineGroupViews(View view, final ArrayList wrappers, final List vaccineList, final boolean undo) { + if (view == null || !(view instanceof ImmunizationRowGroup)) { + return; + } + final ImmunizationRowGroup vaccineGroup = (ImmunizationRowGroup) view; + vaccineGroup.setModalOpen(false); + + if (Looper.myLooper() == Looper.getMainLooper()) { + if (undo) { + vaccineGroup.setVaccineList(vaccineList); + vaccineGroup.updateWrapperStatus(wrappers); + } + vaccineGroup.updateViews(wrappers); + + } else { + Handler handler = new Handler(Looper.getMainLooper()); + handler.post(new Runnable() { + @Override + public void run() { + if (undo) { + vaccineGroup.setVaccineList(vaccineList); + vaccineGroup.updateWrapperStatus(wrappers); + } + vaccineGroup.updateViews(wrappers); + } + }); + } + } + + private void saveVaccine(VaccineWrapper tag) { + VaccineRepository vaccineRepository = BidanApplication.getInstance().vaccineRepository(); + + Vaccine vaccine = new Vaccine(); + if (tag.getDbKey() != null) { + vaccine = vaccineRepository.find(tag.getDbKey()); + } + vaccine.setBaseEntityId(childDetails.entityId()); + vaccine.setName(tag.getName()); + vaccine.setDate(tag.getUpdatedVaccineDate().toDate()); + vaccine.setUpdatedAt(tag.getUpdatedVaccineDate().toDate().getTime()); + vaccine.setAnmId(getOpenSRPContext().allSharedPreferences().fetchRegisteredANM()); + if (StringUtils.isNotBlank(location_name)) { + vaccine.setLocationId(location_name); + } + + String lastChar = vaccine.getName().substring(vaccine.getName().length() - 1); + if (StringUtils.isNumeric(lastChar)) { + vaccine.setCalculation(Integer.valueOf(lastChar)); + } else { + vaccine.setCalculation(-1); + } + util.Utils.addVaccine(vaccineRepository, vaccine); + tag.setDbKey(vaccine.getId()); + + if (tag.getName().equalsIgnoreCase(VaccineRepo.Vaccine.bcg2.display())) { + invalidateOptionsMenu(); + childUnderFiveFragment.loadView(false, false, false); + } + } + + private String getReportDeceasedMetadata() { + try { + JSONObject form = FormUtils.getInstance(getApplicationContext()).getFormJson("report_deceased"); + if (form != null) { + //inject zeir id into the form + JSONObject stepOne = form.getJSONObject(JsonFormUtils.STEP1); + JSONArray jsonArray = stepOne.getJSONArray(JsonFormUtils.FIELDS); + for (int i = 0; i < jsonArray.length(); i++) { + JSONObject jsonObject = jsonArray.getJSONObject(i); + if (jsonObject.getString(JsonFormUtils.KEY).equalsIgnoreCase("Date_Birth")) { + SimpleDateFormat simpleDateFormat = new SimpleDateFormat("dd-MM-yyyy"); + DateTime dateTime = new DateTime(getValue(childDetails.getColumnmaps(), "dob", true)); + Date dob = dateTime.toDate(); + jsonObject.put(JsonFormUtils.VALUE, simpleDateFormat.format(dob)); + break; + } + } + } + return form == null ? null : form.toString(); + + } catch (Exception e) { + Log.e(TAG, Log.getStackTraceString(e)); + } + return ""; + } + + private boolean insertVaccinesGivenAsOptions(JSONObject question) throws JSONException { + VaccineRepository vaccineRepository = BidanApplication.getInstance().vaccineRepository(); + JSONObject omrsChoicesTemplate = question.getJSONObject("openmrs_choice_ids"); + JSONObject omrsChoices = new JSONObject(); + JSONArray choices = new JSONArray(); + List vaccineList = vaccineRepository.findByEntityId(childDetails.entityId()); + + boolean ok = false; + if (vaccineList != null && vaccineList.size() > 0) { + ok = true; + for (int i = vaccineList.size() - 1; i >= 0; i--) { + Vaccine curVaccine = vaccineList.get(i); + String name = VaccinatorUtils.getVaccineDisplayName(this, curVaccine.getName()) + + " (" + DATE_FORMAT.format(curVaccine.getDate()) + ")"; + choices.put(name); + + Iterator vaccineGroupNames = omrsChoicesTemplate.keys(); + while (vaccineGroupNames.hasNext()) { + String curGroupName = vaccineGroupNames.next(); + if (curVaccine.getName().toLowerCase().contains(curGroupName.toLowerCase())) { + omrsChoices.put(name, omrsChoicesTemplate.getString(curGroupName)); + break; + } + } + } + } + + question.put("values", choices); + question.put("openmrs_choice_ids", omrsChoices); + + return ok; + } + + @Override + public void updateClientAttribute(String attributeName, Object attributeValue) { + try { + Date date = new Date(); + EventClientRepository db = getVaccinatorApplicationInstance().eventClientRepository(); + ECSyncUpdater ecUpdater = ECSyncUpdater.getInstance(this); + + JSONObject client = db.getClientByBaseEntityId(childDetails.entityId()); + JSONObject attributes = client.getJSONObject(JsonFormUtils.attributes); + attributes.put(attributeName, attributeValue); + client.remove(JsonFormUtils.attributes); + client.put(JsonFormUtils.attributes, attributes); + db.addorUpdateClient(childDetails.entityId(), client); + + + detailsRepository.add(childDetails.entityId(), attributeName, attributeValue.toString(), new Date().getTime()); + ContentValues contentValues = new ContentValues(); + //Add the base_entity_id + contentValues.put(attributeName.toLowerCase(), attributeValue.toString()); + db.getWritableDatabase().update(PathConstants.CHILD_TABLE_NAME, contentValues, "base_entity_id" + "=?", new String[]{childDetails.entityId()}); + + + Event event = (Event) new Event() + .withBaseEntityId(childDetails.entityId()) + .withEventDate(new Date()) + .withEventType(JsonFormUtils.encounterType) + .withLocationId(allSharedPreferences.fetchCurrentLocality()) + .withProviderId(allSharedPreferences.fetchRegisteredANM()) + .withEntityType(PathConstants.EntityType.CHILD) + .withFormSubmissionId(JsonFormUtils.generateRandomUUIDString()) + .withDateCreated(new Date()); + + JsonFormUtils.addMetaData(this, event, date); + JSONObject eventJson = new JSONObject(JsonFormUtils.gson.toJson(event)); + db.addEvent(childDetails.entityId(), eventJson); + long lastSyncTimeStamp = allSharedPreferences.fetchLastUpdatedAtDate(0); + Date lastSyncDate = new Date(lastSyncTimeStamp); + PathClientProcessor.getInstance(this).processClient(ecUpdater.getEvents(lastSyncDate, BaseRepository.TYPE_Unsynced)); + allSharedPreferences.saveLastUpdatedAtDate(lastSyncDate.getTime()); + + //update details + details = detailsRepository.getAllDetailsForClient(childDetails.entityId()); + if (childDetails.getColumnmaps().containsKey(attributeName)) { + childDetails.getColumnmaps().put(attributeName, attributeValue.toString()); + } + util.Utils.putAll(detailmaps, childDetails.getColumnmaps()); + + + } catch (Exception e) { + Log.e(TAG, Log.getStackTraceString(e)); + } + } + + @Override + protected void onResume() { + super.onResume(); + details = detailsRepository.getAllDetailsForClient(childDetails.entityId()); + util.Utils.putAll(childDetails.getColumnmaps(), detailmaps); + updateActivityTitle(); + initiallization(); + } + + //Recurring Service + @Override + public void onGiveToday(ServiceWrapper tag, View view) { + if (tag != null) { + saveService(tag, view); + } + } + + @Override + public void onGiveEarlier(ServiceWrapper tag, View view) { + if (tag != null) { + saveService(tag, view); + } + } + + @Override + public void onUndoService(ServiceWrapper tag, View view) { + Utils.startAsyncTask(new UndoServiceTask(tag, view), null); + } + + private void saveService(ServiceWrapper tag, final View view) { + if (tag == null) { + return; + } + + ServiceWrapper[] arrayTags = {tag}; + SaveServiceTask backgroundTask = new SaveServiceTask(); + + backgroundTask.setView(view); + Utils.startAsyncTask(backgroundTask, arrayTags); + } + + private boolean showVaccineListCheck(String eventId, String formSubmissionId) { + ECSyncUpdater ecUpdater = ECSyncUpdater.getInstance(ChildDetailTabbedActivity.this); + + EventClientRepository db = BidanApplication.getInstance().eventClientRepository(); + org.smartregister.domain.db.Event event = null; + if (eventId != null) { + event = ecUpdater.convert(db.getEventsByEventId(eventId), org.smartregister.domain.db.Event.class); + } else if (formSubmissionId != null) { + event = ecUpdater.convert(db.getEventsByFormSubmissionId(formSubmissionId), org.smartregister.domain.db.Event.class); + } + if (event != null) { + Date vaccine_create_date = event.getDateCreated().toDate(); + if (!DateUtil.checkIfDateThreeMonthsOlder(vaccine_create_date)) { + return true; + } + } else { + return true; + } + + return false; + } + + + public BidanApplication getVaccinatorApplicationInstance() { + return BidanApplication.getInstance(); + } + + public CommonPersonObjectClient getChildDetails() { + return childDetails; + } + + public ViewPagerAdapter getViewPagerAdapter() { + return adapter; + } + + public DetailsRepository getDetailsRepository() { + return detailsRepository; + } + + + private boolean showRecordBcg2(List vaccineList, List alerts) { + + if (VaccinateActionUtils.hasVaccine(vaccineList, VaccineRepo.Vaccine.bcg2)) { + return false; + } + + Vaccine bcg = VaccinateActionUtils.getVaccine(vaccineList, VaccineRepo.Vaccine.bcg); + if (bcg == null) { + return false; + } + + Alert alert = VaccinateActionUtils.getAlert(alerts, VaccineRepo.Vaccine.bcg2); + if (alert == null || alert.isComplete()) { + return false; + } + + int bcgOffsetInWeeks = 12; + Calendar twelveWeeksLaterDate = Calendar.getInstance(); + twelveWeeksLaterDate.setTime(bcg.getDate()); + twelveWeeksLaterDate.add(Calendar.WEEK_OF_YEAR, bcgOffsetInWeeks); + + Calendar today = Calendar.getInstance(); + + return today.getTime().after(twelveWeeksLaterDate.getTime()) || DateUtils.isSameDay(twelveWeeksLaterDate, today); + } + + private void showBcg2DialogFragment() { + + VaccineWrapper vaccineWrapper = new VaccineWrapper(); + vaccineWrapper.setId(childDetails.entityId()); + vaccineWrapper.setGender(childDetails.getDetails().get("gender")); + vaccineWrapper.setName(VaccineRepo.Vaccine.bcg2.display()); + vaccineWrapper.setDefaultName(VaccineRepo.Vaccine.bcg2.display()); + + String dobString = getValue(childDetails.getColumnmaps(), "dob", false); + Date dob = Calendar.getInstance().getTime(); + if (!TextUtils.isEmpty(dobString)) { + DateTime dateTime = new DateTime(dobString); + dob = dateTime.toDate(); + } + + Photo photo = org.smartregister.immunization.util.ImageUtils.profilePhotoByClient(childDetails); + vaccineWrapper.setPhoto(photo); + + String zeirId = getValue(childDetails.getColumnmaps(), "zeir_id", false); + vaccineWrapper.setPatientNumber(zeirId); + + String firstName = getValue(childDetails.getColumnmaps(), "first_name", true); + String lastName = getValue(childDetails.getColumnmaps(), "last_name", true); + String childName = getName(firstName, lastName); + vaccineWrapper.setPatientName(childName.trim()); + + ArrayList vaccineWrappers = new ArrayList<>(); + vaccineWrappers.add(vaccineWrapper); + + List vaccineList = BidanApplication.getInstance().vaccineRepository() + .findByEntityId(childDetails.entityId()); + if (vaccineList == null) { + vaccineList = new ArrayList<>(); + } + + FragmentTransaction ft = this.getFragmentManager().beginTransaction(); + android.app.Fragment prev = this.getFragmentManager().findFragmentByTag(DIALOG_TAG); + if (prev != null) { + ft.remove(prev); + } + + ft.addToBackStack(null); + + VaccinationDialogFragment vaccinationDialogFragment = VaccinationDialogFragment.newInstance(dob, vaccineList, vaccineWrappers, true); + vaccinationDialogFragment.show(ft, DIALOG_TAG); + } + + + //////////////////////////////////////////////////////////////// + // Inner classes + //////////////////////////////////////////////////////////////// + public class SaveServiceTask extends AsyncTask, List, List>> { + + private View view; + + public void setView(View view) { + this.view = view; + } + + @Override + protected void onPreExecute() { + showProgressDialog(); + } + + @Override + protected void onPostExecute(Triple, List, List> triple) { + hideProgressDialog(); + RecurringServiceUtils.updateServiceGroupViews(view, triple.getLeft(), triple.getMiddle(), triple.getRight()); + } + + @Override + protected Triple, List, List> doInBackground(ServiceWrapper... params) { + + ArrayList list = new ArrayList<>(); + + for (ServiceWrapper tag : params) { + RecurringServiceUtils.saveService(tag, childDetails.entityId(), null, null); + list.add(tag); + + ServiceSchedule.updateOfflineAlerts(tag.getType(), childDetails.entityId(), Utils.dobToDateTime(childDetails)); + } + + RecurringServiceRecordRepository recurringServiceRecordRepository = BidanApplication.getInstance().recurringServiceRecordRepository(); + List serviceRecordList = recurringServiceRecordRepository.findByEntityId(childDetails.entityId()); + + RecurringServiceTypeRepository recurringServiceTypeRepository = BidanApplication.getInstance().recurringServiceTypeRepository(); + List serviceTypes = recurringServiceTypeRepository.fetchAll(); + String[] alertArray = VaccinateActionUtils.allAlertNames(serviceTypes); + + AlertService alertService = getOpenSRPContext().alertService(); + List alertList = alertService.findByEntityIdAndAlertNames(childDetails.entityId(), alertArray); + + return Triple.of(list, serviceRecordList, alertList); + + } + } + + private class SaveVaccinesTask extends AsyncTask { + + private View view; + + public void setView(View view) { + this.view = view; + } + + @Override + protected void onPreExecute() { + showProgressDialog(); + } + + @Override + protected void onPostExecute(Void aVoid) { + hideProgressDialog(); + updateVaccineGroupViews(view); + } + + @Override + protected Void doInBackground(VaccineWrapper... vaccineWrappers) { + for (VaccineWrapper tag : vaccineWrappers) { + saveVaccine(tag); + } + return null; + } + + } + + private class UpdateOfflineAlertsTask extends AsyncTask { + @Override + protected Void doInBackground(Void... params) { + DateTime birthDateTime = Utils.dobToDateTime(childDetails); + if (birthDateTime != null) { + VaccineSchedule.updateOfflineAlerts(childDetails.entityId(), birthDateTime, CHILD); + } + return null; + } + + } + + private class UndoServiceTask extends AsyncTask { + + private final View view; + private final ServiceWrapper tag; + private List serviceRecordList; + private ArrayList wrappers; + private List alertList; + + private UndoServiceTask(ServiceWrapper tag, View view) { + this.tag = tag; + this.view = view; + } + + @Override + protected void onPreExecute() { + showProgressDialog(getString(R.string.updating_dialog_title), null); + } + + @Override + protected Void doInBackground(Void... params) { + if (tag != null) { + + if (tag.getDbKey() != null) { + RecurringServiceRecordRepository recurringServiceRecordRepository = BidanApplication.getInstance().recurringServiceRecordRepository(); + Long dbKey = tag.getDbKey(); + recurringServiceRecordRepository.deleteServiceRecord(dbKey); + + serviceRecordList = recurringServiceRecordRepository.findByEntityId(childDetails.entityId()); + + wrappers = new ArrayList<>(); + wrappers.add(tag); + + ServiceSchedule.updateOfflineAlerts(tag.getType(), childDetails.entityId(), Utils.dobToDateTime(childDetails)); + + RecurringServiceTypeRepository recurringServiceTypeRepository = BidanApplication.getInstance().recurringServiceTypeRepository(); + List serviceTypes = recurringServiceTypeRepository.fetchAll(); + String[] alertArray = VaccinateActionUtils.allAlertNames(serviceTypes); + + AlertService alertService = getOpenSRPContext().alertService(); + alertList = alertService.findByEntityIdAndAlertNames(childDetails.entityId(), alertArray); + } + } + return null; + } + + @Override + protected void onPostExecute(Void params) { + super.onPostExecute(params); + hideProgressDialog(); + + tag.setUpdatedVaccineDate(null, false); + tag.setDbKey(null); + + RecurringServiceUtils.updateServiceGroupViews(view, wrappers, serviceRecordList, alertList, true); + } + } + + private class LaunchAdverseEventFormTask extends AsyncTask { + + @Override + protected String doInBackground(Void... params) { + try { + JSONObject form = FormUtils.getInstance(getApplicationContext()) + .getFormJson("adverse_event"); + if (form != null) { + JSONArray fields = form.getJSONObject("step1").getJSONArray("fields"); + for (int i = 0; i < fields.length(); i++) { + if (fields.getJSONObject(i).getString("key").equals("Reaction_Vaccine")) { + boolean result = insertVaccinesGivenAsOptions(fields.getJSONObject(i)); + if (!result) { + return null; + } + } + } + return form.toString(); + } + + } catch (Exception e) { + Log.e(TAG, Log.getStackTraceString(e)); + } + return null; + } + + @Override + protected void onPostExecute(String metaData) { + super.onPostExecute(metaData); + if (metaData != null) { + startFormActivity("adverse_event", childDetails.entityId(), metaData); + } else { + Toast.makeText(ChildDetailTabbedActivity.this, R.string.no_vaccine_record_found, + Toast.LENGTH_LONG).show(); + } + } + } + + public class ViewPagerAdapter extends FragmentPagerAdapter { + private final List mFragmentList = new ArrayList<>(); + private final List mFragmentTitleList = new ArrayList<>(); + + public ViewPagerAdapter(FragmentManager manager) { + super(manager); + } + + @Override + public Fragment getItem(int position) { + return mFragmentList.get(position); + } + + @Override + public int getCount() { + return mFragmentList.size(); + } + + public void addFragment(Fragment fragment, String title) { + mFragmentList.add(fragment); + mFragmentTitleList.add(title); + } + + + @Override + public CharSequence getPageTitle(int position) { + return mFragmentTitleList.get(position); + } + } +} diff --git a/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/ChildImmunizationActivity.java b/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/ChildImmunizationActivity.java new file mode 100644 index 0000000..d732a6a --- /dev/null +++ b/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/ChildImmunizationActivity.java @@ -0,0 +1,1678 @@ +package org.smartregister.bidan.activity; + +import android.app.Fragment; +import android.app.FragmentTransaction; +import android.content.ContentValues; +import android.content.Context; +import android.content.DialogInterface; +import android.content.Intent; +import android.graphics.drawable.ColorDrawable; +import android.os.AsyncTask; +import android.os.Bundle; +import android.os.Handler; +import android.os.Looper; +import android.text.TextUtils; +import android.util.Log; +import android.util.Pair; +import android.view.View; +import android.widget.ImageButton; +import android.widget.ImageView; +import android.widget.LinearLayout; +import android.widget.TextView; + +import org.apache.commons.lang3.StringUtils; +import org.apache.commons.lang3.time.DateUtils; +import org.apache.commons.lang3.tuple.Triple; +import org.joda.time.DateTime; +import org.json.JSONArray; +import org.json.JSONException; +import org.json.JSONObject; +import org.opensrp.api.constants.Gender; +import org.smartregister.bidan.application.BidanApplication; +import org.smartregister.bidan.toolbar.LocationSwitcherToolbar; +import org.smartregister.commonregistry.AllCommonsRepository; +import org.smartregister.commonregistry.CommonPersonObject; +import org.smartregister.commonregistry.CommonPersonObjectClient; +import org.smartregister.domain.Alert; +import org.smartregister.domain.Photo; +import org.smartregister.growthmonitoring.domain.Weight; +import org.smartregister.growthmonitoring.domain.WeightWrapper; +import org.smartregister.growthmonitoring.fragment.GrowthDialogFragment; +import org.smartregister.growthmonitoring.fragment.RecordWeightDialogFragment; +import org.smartregister.growthmonitoring.listener.WeightActionListener; +import org.smartregister.growthmonitoring.repository.WeightRepository; +import org.smartregister.immunization.db.VaccineRepo; +import org.smartregister.immunization.domain.ServiceRecord; +import org.smartregister.immunization.domain.ServiceSchedule; +import org.smartregister.immunization.domain.ServiceType; +import org.smartregister.immunization.domain.ServiceWrapper; +import org.smartregister.immunization.domain.Vaccine; +import org.smartregister.immunization.domain.VaccineSchedule; +import org.smartregister.immunization.domain.VaccineWrapper; +import org.smartregister.immunization.fragment.ServiceDialogFragment; +import org.smartregister.immunization.fragment.UndoServiceDialogFragment; +import org.smartregister.immunization.fragment.UndoVaccinationDialogFragment; +import org.smartregister.immunization.fragment.VaccinationDialogFragment; +import org.smartregister.immunization.listener.ServiceActionListener; +import org.smartregister.immunization.listener.VaccinationActionListener; +import org.smartregister.immunization.repository.RecurringServiceRecordRepository; +import org.smartregister.immunization.repository.RecurringServiceTypeRepository; +import org.smartregister.immunization.repository.VaccineRepository; +import org.smartregister.immunization.util.RecurringServiceUtils; +import org.smartregister.immunization.util.VaccinateActionUtils; +import org.smartregister.immunization.util.VaccinatorUtils; +import org.smartregister.immunization.view.ServiceGroup; +import org.smartregister.immunization.view.VaccineGroup; +import org.smartregister.bidan.R; +import org.smartregister.bidan.domain.RegisterClickables; +import org.smartregister.bidan.view.SiblingPicturesGroup; +import org.smartregister.repository.DetailsRepository; +import org.smartregister.service.AlertService; +import org.smartregister.util.DateUtil; +import org.smartregister.util.OpenSRPImageLoader; +import org.smartregister.util.Utils; +import org.smartregister.view.activity.DrishtiApplication; + +import java.io.IOException; +import java.io.InputStream; +import java.io.Serializable; +import java.text.SimpleDateFormat; +import java.util.ArrayList; +import java.util.Calendar; +import java.util.Collections; +import java.util.Date; +import java.util.HashMap; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; +import java.util.Random; +import java.util.concurrent.TimeUnit; + +import util.ImageUtils; +import util.JsonFormUtils; +import util.PathConstants; + + +/** + * Created by Jason Rogena - jrogena@ona.io on 16/02/2017. + */ + +public class ChildImmunizationActivity extends BaseActivity + implements LocationSwitcherToolbar.OnLocationChangeListener, WeightActionListener, VaccinationActionListener, ServiceActionListener { + + private static final String TAG = "ChildImmunoActivity"; + private static final String EXTRA_CHILD_DETAILS = "child_details"; + private static final String EXTRA_REGISTER_CLICKABLES = "register_clickables"; + private static final SimpleDateFormat DATE_FORMAT = new SimpleDateFormat("dd/MM/yyyy"); + private static final String DIALOG_TAG = "ChildImmunoActivity_DIALOG_TAG"; + private ArrayList vaccineGroups; + private ArrayList serviceGroups; + private static final ArrayList COMBINED_VACCINES; + private static final HashMap COMBINED_VACCINES_MAP; + private boolean bcgScarNotificationShown; + private boolean weightNotificationShown; + private final String BCG2_NOTIFICATION_DONE = "bcg2_not_done"; + private static final int RANDOM_MAX_RANGE = 4232; + private static final int RANDOM_MIN_RANGE = 213; + private static final int RECORD_WEIGHT_BUTTON_ACTIVE_MIN = 12; + + static { + COMBINED_VACCINES = new ArrayList<>(); + COMBINED_VACCINES_MAP = new HashMap<>(); + COMBINED_VACCINES.add("Measles 1"); + COMBINED_VACCINES_MAP.put("Measles 1", "Measles 1 / MR 1"); + COMBINED_VACCINES.add("MR 1"); + COMBINED_VACCINES_MAP.put("MR 1", "Measles 1 / MR 1"); + COMBINED_VACCINES.add("Measles 2"); + COMBINED_VACCINES_MAP.put("Measles 2", "Measles 2 / MR 2"); + COMBINED_VACCINES.add("MR 2"); + COMBINED_VACCINES_MAP.put("MR 2", "Measles 2 / MR 2"); + } + + // Views + private LocationSwitcherToolbar toolbar; + + // Data + private CommonPersonObjectClient childDetails; + private RegisterClickables registerClickables; + private DetailsRepository detailsRepository; + private boolean dialogOpen = false; + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + + getSupportActionBar().setDisplayHomeAsUpEnabled(true); + detailsRepository = getOpenSRPContext().detailsRepository(); + + toolbar = (LocationSwitcherToolbar) getToolbar(); + toolbar.setNavigationOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + Intent intent = new Intent(ChildImmunizationActivity.this, ChildSmartRegisterActivity.class); + intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); + startActivity(intent); + finish(); + } + }); + toolbar.setOnLocationChangeListener(this); +// View view= toolbar.findViewById(R.id.immunization_separator); +// view.setBackground(R.drawable.vertical_seperator_female); + + // Get child details from bundled data + Bundle extras = this.getIntent().getExtras(); + if (extras != null) { + Serializable serializable = extras.getSerializable(EXTRA_CHILD_DETAILS); + if (serializable != null && serializable instanceof CommonPersonObjectClient) { + childDetails = (CommonPersonObjectClient) serializable; + } + + serializable = extras.getSerializable(EXTRA_REGISTER_CLICKABLES); + if (serializable != null && serializable instanceof RegisterClickables) { + registerClickables = (RegisterClickables) serializable; + } + } + + bcgScarNotificationShown = false; + weightNotificationShown = false; + + toolbar.init(this); + setLastModified(false); + } + + @Override + protected void onSaveInstanceState(Bundle outState) { + super.onSaveInstanceState(outState); + outState.putSerializable(EXTRA_CHILD_DETAILS, childDetails); + } + + @Override + protected void onRestoreInstanceState(Bundle savedInstanceState) { + super.onRestoreInstanceState(savedInstanceState); + + Serializable serializable = savedInstanceState.getSerializable(EXTRA_CHILD_DETAILS); + if (serializable != null && serializable instanceof CommonPersonObjectClient) { + childDetails = (CommonPersonObjectClient) serializable; + } + } + + @Override + protected void onResume() { + super.onResume(); + if (vaccineGroups != null) { + LinearLayout vaccineGroupCanvasLL = (LinearLayout) findViewById(R.id.vaccine_group_canvas_ll); + vaccineGroupCanvasLL.removeAllViews(); + vaccineGroups = null; + } + + if (serviceGroups != null) { + LinearLayout serviceGroupCanvasLL = (LinearLayout) findViewById(R.id.service_group_canvas_ll); + serviceGroupCanvasLL.removeAllViews(); + serviceGroups = null; + } + updateViews(); + } + + private boolean isDataOk() { + return childDetails != null && childDetails.getDetails() != null; + } + + private void updateViews() { + findViewById(R.id.profile_name_layout).setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + launchDetailActivity(ChildImmunizationActivity.this, childDetails, null); + } + }); + + // TODO: update all views using child data + Map details = detailsRepository.getAllDetailsForClient(childDetails.entityId()); + + util.Utils.putAll(childDetails.getColumnmaps(), details); + + updateGenderViews(); + toolbar.setTitle(updateActivityTitle()); + updateAgeViews(); + updateChildIdViews(); + + WeightRepository weightRepository = BidanApplication.getInstance().weightRepository(); + + VaccineRepository vaccineRepository = BidanApplication.getInstance().vaccineRepository(); + + RecurringServiceTypeRepository recurringServiceTypeRepository = BidanApplication.getInstance().recurringServiceTypeRepository(); + + RecurringServiceRecordRepository recurringServiceRecordRepository = BidanApplication.getInstance().recurringServiceRecordRepository(); + + AlertService alertService = getOpenSRPContext().alertService(); + + UpdateViewTask updateViewTask = new UpdateViewTask(); + updateViewTask.setWeightRepository(weightRepository); + updateViewTask.setVaccineRepository(vaccineRepository); + updateViewTask.setRecurringServiceTypeRepository(recurringServiceTypeRepository); + updateViewTask.setRecurringServiceRecordRepository(recurringServiceRecordRepository); + updateViewTask.setAlertService(alertService); + Utils.startAsyncTask(updateViewTask, null); + } + + private void updateProfilePicture(Gender gender) { + if (isDataOk()) { + ImageView profileImageIV = (ImageView) findViewById(R.id.profile_image_iv); + + if (childDetails.entityId() != null) { //image already in local storage most likey ): + //set profile image by passing the client id.If the image doesn't exist in the image repository then download and save locally + profileImageIV.setTag(org.smartregister.R.id.entity_id, childDetails.entityId()); + DrishtiApplication.getCachedImageLoaderInstance().getImageByClientId(childDetails.entityId(), OpenSRPImageLoader.getStaticImageListener(profileImageIV, ImageUtils.profileImageResourceByGender(gender), ImageUtils.profileImageResourceByGender(gender))); + + } + } + } + + private void updateChildIdViews() { + String name = ""; + String childId = ""; + if (isDataOk()) { + name = constructChildName(); + childId = Utils.getValue(childDetails.getColumnmaps(), PathConstants.KEY.ZEIR_ID, false); + } + + TextView nameTV = (TextView) findViewById(R.id.name_tv); + nameTV.setText(name); + TextView childIdTV = (TextView) findViewById(R.id.child_id_tv); + childIdTV.setText(String.format("%s: %s", getString(R.string.label_zeir), childId)); + + Utils.startAsyncTask(new GetSiblingsTask(), null); + } + + private void updateAgeViews() { + String dobString = ""; + String formattedAge = ""; + String formattedDob = ""; + if (isDataOk()) { + dobString = Utils.getValue(childDetails.getColumnmaps(), PathConstants.KEY.DOB, false); + if (!TextUtils.isEmpty(dobString)) { + DateTime dateTime = new DateTime(dobString); + Date dob = dateTime.toDate(); + formattedDob = DATE_FORMAT.format(dob); + long timeDiff = Calendar.getInstance().getTimeInMillis() - dob.getTime(); + + if (timeDiff >= 0) { + formattedAge = DateUtil.getDuration(timeDiff); + } + } + } + TextView dobTV = (TextView) findViewById(R.id.dob_tv); + dobTV.setText(String.format("%s: %s", getString(R.string.birthdate), formattedDob)); + TextView ageTV = (TextView) findViewById(R.id.age_tv); + ageTV.setText(String.format("%s: %s", getString(R.string.age), formattedAge)); + } + + private void updateGenderViews() { + Gender gender = Gender.UNKNOWN; + if (isDataOk()) { + String genderString = Utils.getValue(childDetails, PathConstants.KEY.GENDER, false); + if (genderString != null && genderString.equalsIgnoreCase(PathConstants.GENDER.FEMALE)) { + gender = Gender.FEMALE; + } else if (genderString != null && genderString.equalsIgnoreCase(PathConstants.GENDER.MALE)) { + gender = Gender.MALE; + } + } + updateGenderViews(gender); + } + + @Override + protected int[] updateGenderViews(Gender gender) { + int[] selectedColor = super.updateGenderViews(gender); + + String identifier = getString(R.string.neutral_sex_id); + int toolbarResource = 0; + if (gender.equals(Gender.FEMALE)) { + toolbarResource = R.drawable.vertical_separator_female; + identifier = getString(R.string.female_sex_id); + } else if (gender.equals(Gender.MALE)) { + toolbarResource = R.drawable.vertical_separator_male; + identifier = getString(R.string.male_sex_id); + } + toolbar.updateSeparatorView(toolbarResource); + + TextView childSiblingsTV = (TextView) findViewById(R.id.child_siblings_tv); + childSiblingsTV.setText( + String.format(getString(R.string.child_siblings), identifier).toUpperCase()); + updateProfilePicture(gender); + + return selectedColor; + } + + private void updateServiceViews(Map> serviceTypeMap, List serviceRecordList, List alerts) { + + Map> foundServiceTypeMap = new LinkedHashMap<>(); + if (serviceGroups == null) { + for (String type : serviceTypeMap.keySet()) { + if (foundServiceTypeMap.containsKey(type)) { + continue; + } + + for (ServiceRecord serviceRecord : serviceRecordList) { + if (serviceRecord.getSyncStatus().equals(RecurringServiceTypeRepository.TYPE_Unsynced) && serviceRecord.getType().equals(type)) { + foundServiceTypeMap.put(type, serviceTypeMap.get(type)); + break; + } + } + + if (foundServiceTypeMap.containsKey(type)) { + continue; + } + + for (Alert a : alerts) { + if (StringUtils.containsIgnoreCase(a.scheduleName(), type) + || StringUtils.containsIgnoreCase(a.visitCode(), type)) { + foundServiceTypeMap.put(type, serviceTypeMap.get(type)); + break; + } + } + + } + + if (foundServiceTypeMap.isEmpty()) { + return; + } + + + serviceGroups = new ArrayList<>(); + LinearLayout serviceGroupCanvasLL = (LinearLayout) findViewById(R.id.service_group_canvas_ll); + + ServiceGroup curGroup = new ServiceGroup(this); + curGroup.setData(childDetails, foundServiceTypeMap, serviceRecordList, alerts); + curGroup.setOnServiceClickedListener(new ServiceGroup.OnServiceClickedListener() { + @Override + public void onClick(ServiceGroup serviceGroup, ServiceWrapper + serviceWrapper) { + if (dialogOpen) { + return; + } + dialogOpen = true; + addServiceDialogFragment(serviceWrapper, serviceGroup); + } + }); + curGroup.setOnServiceUndoClickListener(new ServiceGroup.OnServiceUndoClickListener() { + @Override + public void onUndoClick(ServiceGroup serviceGroup, ServiceWrapper serviceWrapper) { + if (dialogOpen) { + return; + } + dialogOpen = true; + addServiceUndoDialogFragment(serviceGroup, serviceWrapper); + } + }); + serviceGroupCanvasLL.addView(curGroup); + serviceGroups.add(curGroup); + } + + } + + private void updateVaccinationViews(List vaccineList, List alerts) { + + if (vaccineGroups == null) { + vaccineGroups = new ArrayList<>(); + String supportedVaccinesString = VaccinatorUtils.getSupportedVaccines(this); + + try { + JSONArray supportedVaccines = new JSONArray(supportedVaccinesString); + + for (int i = 0; i < supportedVaccines.length(); i++) { + JSONObject vaccineGroupObject = supportedVaccines.getJSONObject(i); + addVaccineGroup(-1, vaccineGroupObject, vaccineList, alerts); + } + } catch (JSONException e) { + Log.e(TAG, Log.getStackTraceString(e)); + } + } + + showVaccineNotifications(vaccineList, alerts); + } + + private void showVaccineNotifications(List vaccineList, List alerts) { + + DetailsRepository detailsRepository = BidanApplication.getInstance().context().detailsRepository(); + Map details = detailsRepository.getAllDetailsForClient(childDetails.entityId()); + + if (details.containsKey(BCG2_NOTIFICATION_DONE)) { + return; + } + + if (VaccinateActionUtils.hasVaccine(vaccineList, VaccineRepo.Vaccine.bcg2)) { + return; + } + + Vaccine bcg = VaccinateActionUtils.getVaccine(vaccineList, VaccineRepo.Vaccine.bcg); + if (bcg == null) { + return; + } + + Alert alert = VaccinateActionUtils.getAlert(alerts, VaccineRepo.Vaccine.bcg2); + if (alert == null || alert.isComplete()) { + return; + } + + int bcgOffsetInWeeks = 12; + Calendar twelveWeeksLaterDate = Calendar.getInstance(); + twelveWeeksLaterDate.setTime(bcg.getDate()); + twelveWeeksLaterDate.add(Calendar.WEEK_OF_YEAR, bcgOffsetInWeeks); + + Calendar today = Calendar.getInstance(); + + if (today.getTime().after(twelveWeeksLaterDate.getTime()) || DateUtils.isSameDay(twelveWeeksLaterDate, today)) { + showCheckBcgScarNotification(alert); + } + } + + private void addVaccineGroup(int canvasId, JSONObject vaccineGroupData, List vaccineList, List alerts) { + LinearLayout vaccineGroupCanvasLL = (LinearLayout) findViewById(R.id.vaccine_group_canvas_ll); + VaccineGroup curGroup = new VaccineGroup(this); + curGroup.setData(vaccineGroupData, childDetails, vaccineList, alerts); + curGroup.setOnRecordAllClickListener(new VaccineGroup.OnRecordAllClickListener() { + @Override + public void onClick(VaccineGroup vaccineGroup, ArrayList dueVaccines) { + if (dialogOpen) { + return; + } + dialogOpen = true; + addVaccinationDialogFragment(dueVaccines, vaccineGroup); + } + }); + curGroup.setOnVaccineClickedListener(new VaccineGroup.OnVaccineClickedListener() { + @Override + public void onClick(VaccineGroup vaccineGroup, VaccineWrapper vaccine) { + if (dialogOpen) { + return; + } + dialogOpen = true; + ArrayList vaccineWrappers = new ArrayList<>(); + vaccineWrappers.add(vaccine); + addVaccinationDialogFragment(vaccineWrappers, vaccineGroup); + } + }); + curGroup.setOnVaccineUndoClickListener(new VaccineGroup.OnVaccineUndoClickListener() { + @Override + public void onUndoClick(VaccineGroup vaccineGroup, VaccineWrapper vaccine) { + if (dialogOpen) { + return; + } + + dialogOpen = true; + addVaccineUndoDialogFragment(vaccineGroup, vaccine); + } + }); + + LinearLayout parent; + int groupParentId = canvasId; + if (groupParentId == -1) { + Random r = new Random(); + groupParentId = r.nextInt(RANDOM_MAX_RANGE - RANDOM_MIN_RANGE) + RANDOM_MIN_RANGE; + parent = new LinearLayout(this); + parent.setId(groupParentId); + vaccineGroupCanvasLL.addView(parent); + } else { + parent = (LinearLayout) findViewById(groupParentId); + parent.removeAllViews(); + } + parent.addView(curGroup); + curGroup.setTag(R.id.vaccine_group_vaccine_data, vaccineGroupData.toString()); + curGroup.setTag(R.id.vaccine_group_parent_id, String.valueOf(groupParentId)); + vaccineGroups.add(curGroup); + } + + private void addVaccineUndoDialogFragment(VaccineGroup vaccineGroup, VaccineWrapper vaccineWrapper) { + FragmentTransaction ft = getFragmentManager().beginTransaction(); + Fragment prev = getFragmentManager().findFragmentByTag(DIALOG_TAG); + if (prev != null) { + ft.remove(prev); + } + + ft.addToBackStack(null); + vaccineGroup.setModalOpen(true); + + UndoVaccinationDialogFragment undoVaccinationDialogFragment = UndoVaccinationDialogFragment.newInstance(vaccineWrapper); + undoVaccinationDialogFragment.show(ft, DIALOG_TAG); + undoVaccinationDialogFragment.setOnDismissListener(new DialogInterface.OnDismissListener() { + @Override + public void onDismiss(DialogInterface dialog) { + dialogOpen = false; + } + }); + } + + private void addServiceUndoDialogFragment(ServiceGroup serviceGroup, ServiceWrapper serviceWrapper) { + FragmentTransaction ft = getFragmentManager().beginTransaction(); + Fragment prev = getFragmentManager().findFragmentByTag(DIALOG_TAG); + if (prev != null) { + ft.remove(prev); + } + + ft.addToBackStack(null); + serviceGroup.setModalOpen(true); + + UndoServiceDialogFragment undoServiceDialogFragment = UndoServiceDialogFragment.newInstance(serviceWrapper); + undoServiceDialogFragment.show(ft, DIALOG_TAG); + undoServiceDialogFragment.setOnDismissListener(new DialogInterface.OnDismissListener() { + @Override + public void onDismiss(DialogInterface dialog) { + dialogOpen = false; + } + }); + } + + private void updateWeightViews(Weight lastUnsyncedWeight) { + + String childName = constructChildName(); + String gender = Utils.getValue(childDetails.getColumnmaps(), PathConstants.KEY.GENDER, true); + String motherFirstName = Utils.getValue(childDetails.getColumnmaps(), PathConstants.KEY.MOTHER_FIRST_NAME, true); + if (StringUtils.isBlank(childName) && StringUtils.isNotBlank(motherFirstName)) { + childName = "B/o " + motherFirstName.trim(); + } + + String zeirId = Utils.getValue(childDetails.getColumnmaps(), PathConstants.KEY.ZEIR_ID, false); + String duration = ""; + String dobString = Utils.getValue(childDetails.getColumnmaps(), PathConstants.KEY.DOB, false); + if (StringUtils.isNotBlank(dobString)) { + DateTime dateTime = new DateTime(Utils.getValue(childDetails.getColumnmaps(), PathConstants.KEY.DOB, false)); + duration = DateUtil.getDuration(dateTime); + } + + Photo photo = ImageUtils.profilePhotoByClient(childDetails); + + WeightWrapper weightWrapper = new WeightWrapper(); + weightWrapper.setId(childDetails.entityId()); + weightWrapper.setGender(gender); + weightWrapper.setPatientName(childName); + weightWrapper.setPatientNumber(zeirId); + weightWrapper.setPatientAge(duration); + weightWrapper.setPhoto(photo); + weightWrapper.setPmtctStatus(Utils.getValue(childDetails.getColumnmaps(), PathConstants.KEY.PMTCT_STATUS, false)); + weightWrapper.setDateOfBirth(dobString); + + if (lastUnsyncedWeight != null) { + weightWrapper.setWeight(lastUnsyncedWeight.getKg()); + weightWrapper.setDbKey(lastUnsyncedWeight.getId()); + weightWrapper.setUpdatedWeightDate(new DateTime(lastUnsyncedWeight.getDate()), false); + } + + updateRecordWeightViews(weightWrapper); + + ImageButton growthChartButton = (ImageButton) findViewById(R.id.growth_chart_button); + growthChartButton.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + Utils.startAsyncTask(new ShowGrowthChartTask(), null); + } + }); + } + + private void updateRecordWeightViews(WeightWrapper weightWrapper) { + View recordWeight = findViewById(R.id.record_weight); + recordWeight.setClickable(true); + recordWeight.setBackground(getResources().getDrawable(R.drawable.record_weight_bg)); + + TextView recordWeightText = (TextView) findViewById(R.id.record_weight_text); + recordWeightText.setText(R.string.record_weight); + + ImageView recordWeightCheck = (ImageView) findViewById(R.id.record_weight_check); + recordWeightCheck.setVisibility(View.GONE); + recordWeight.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + showWeightDialog(view); + } + }); + + if (weightWrapper.getDbKey() != null && weightWrapper.getWeight() != null) { + recordWeightText.setText(Utils.kgStringSuffix(weightWrapper.getWeight())); + recordWeightCheck.setVisibility(View.VISIBLE); + + if (weightWrapper.getUpdatedWeightDate() != null) { + long timeDiff = Calendar.getInstance().getTimeInMillis() - weightWrapper.getUpdatedWeightDate().getMillis(); + + if (timeDiff <= TimeUnit.MILLISECONDS.convert(RECORD_WEIGHT_BUTTON_ACTIVE_MIN, TimeUnit.HOURS)) { + //disable the button + recordWeight.setClickable(false); + recordWeight.setBackground(new ColorDrawable(getResources() + .getColor(android.R.color.transparent))); + } else { + //reset state + weightWrapper.setWeight(null); + weightWrapper.setDbKey(null); + recordWeight.setClickable(true); + recordWeight.setBackground(getResources().getDrawable(R.drawable.record_weight_bg)); + recordWeightText.setText(R.string.record_weight); + recordWeightCheck.setVisibility(View.GONE); + } + } + } + + recordWeight.setTag(weightWrapper); + + } + + private void showWeightDialog(View view) { + FragmentTransaction ft = this.getFragmentManager().beginTransaction(); + Fragment prev = this.getFragmentManager().findFragmentByTag(DIALOG_TAG); + if (prev != null) { + ft.remove(prev); + } + ft.addToBackStack(null); + WeightWrapper weightWrapper = (WeightWrapper) view.getTag(); + RecordWeightDialogFragment recordWeightDialogFragment = RecordWeightDialogFragment.newInstance(weightWrapper); + recordWeightDialogFragment.show(ft, DIALOG_TAG); + + } + + private String readAssetContents(String path) { + String fileContents = null; + try { + InputStream is = getAssets().open(path); + int size = is.available(); + byte[] buffer = new byte[size]; + is.read(buffer); + is.close(); + fileContents = new String(buffer, "UTF-8"); + } catch (IOException ex) { + Log.e(TAG, ex.toString(), ex); + } + + return fileContents; + } + + public static void launchActivity(Context fromContext, CommonPersonObjectClient childDetails, RegisterClickables registerClickables) { + Intent intent = new Intent(fromContext, ChildImmunizationActivity.class); + Bundle bundle = new Bundle(); + bundle.putSerializable(EXTRA_CHILD_DETAILS, childDetails); + bundle.putSerializable(EXTRA_REGISTER_CLICKABLES, registerClickables); + intent.putExtras(bundle); + + fromContext.startActivity(intent); + } + + private void launchDetailActivity(Context fromContext, CommonPersonObjectClient childDetails, RegisterClickables registerClickables) { + Intent intent = new Intent(fromContext, ChildDetailTabbedActivity.class); + Bundle bundle = new Bundle(); + try { + bundle.putString(PathConstants.KEY.LOCATION_NAME, JsonFormUtils.getOpenMrsLocationId(getOpenSRPContext(), toolbar.getCurrentLocation())); + } catch (JSONException e) { + e.printStackTrace(); + } + bundle.putSerializable(EXTRA_CHILD_DETAILS, childDetails); + bundle.putSerializable(EXTRA_REGISTER_CLICKABLES, registerClickables); + intent.putExtras(bundle); + + fromContext.startActivity(intent); + } + + private String updateActivityTitle() { + String name = ""; + if (isDataOk()) { + name = constructChildName(); + } + return String.format("%s > %s", getString(R.string.app_name), name.trim()); + } + + @Override + public void onLocationChanged(final String newLocation) { + // TODO: Do whatever needs to be done when the location is changed + } + + @Override + protected int getContentView() { + return R.layout.activity_child_immunization; + } + + @Override + protected int getDrawerLayoutId() { + return R.id.drawer_layout; + } + + @Override + protected int getToolbarId() { + return LocationSwitcherToolbar.TOOLBAR_ID; + } + + @Override + protected Class onBackActivity() { + return ChildSmartRegisterActivity.class; + } + + @Override + public void onWeightTaken(WeightWrapper tag) { + if (tag != null) { + final WeightRepository weightRepository = BidanApplication.getInstance().weightRepository(); + Weight weight = new Weight(); + if (tag.getDbKey() != null) { + weight = weightRepository.find(tag.getDbKey()); + } + weight.setBaseEntityId(childDetails.entityId()); + weight.setKg(tag.getWeight()); + weight.setDate(tag.getUpdatedWeightDate().toDate()); + weight.setAnmId(getOpenSRPContext().allSharedPreferences().fetchRegisteredANM()); + try { + weight.setLocationId(JsonFormUtils.getOpenMrsLocationId(getOpenSRPContext(), + toolbar.getCurrentLocation())); + } catch (JSONException e) { + e.printStackTrace(); + } + + Gender gender = Gender.UNKNOWN; + String genderString = Utils.getValue(childDetails, PathConstants.KEY.GENDER, false); + if (genderString != null && genderString.toLowerCase().equals(PathConstants.GENDER.FEMALE)) { + gender = Gender.FEMALE; + } else if (genderString != null && genderString.toLowerCase().equals(PathConstants.GENDER.MALE)) { + gender = Gender.MALE; + } + + Date dob = null; + String dobString = Utils.getValue(childDetails.getColumnmaps(), PathConstants.KEY.DOB, false); + if (!TextUtils.isEmpty(dobString)) { + DateTime dateTime = new DateTime(dobString); + dob = dateTime.toDate(); + } + + if (dob != null && gender != Gender.UNKNOWN) { + weightRepository.add(dob, gender, weight); + } else { + weightRepository.add(weight); + } + + tag.setDbKey(weight.getId()); + tag.setDateOfBirth(dobString); + updateRecordWeightViews(tag); + setLastModified(true); + } + } + + @Override + public void onVaccinateToday(ArrayList tags, View v) { + if (tags != null && !tags.isEmpty()) { + View view = getLastOpenedView(); + saveVaccine(tags, view); + } + } + + @Override + public void onVaccinateEarlier(ArrayList tags, View v) { + if (tags != null && !tags.isEmpty()) { + View view = getLastOpenedView(); + saveVaccine(tags, view); + } + } + + @Override + public void onUndoVaccination(VaccineWrapper tag, View v) { + Utils.startAsyncTask(new UndoVaccineTask(tag, v), null); + } + + private void addVaccinationDialogFragment(ArrayList vaccineWrappers, VaccineGroup vaccineGroup) { + + FragmentTransaction ft = this.getFragmentManager().beginTransaction(); + Fragment prev = this.getFragmentManager().findFragmentByTag(DIALOG_TAG); + if (prev != null) { + ft.remove(prev); + } + + ft.addToBackStack(null); + vaccineGroup.setModalOpen(true); + String dobString = Utils.getValue(childDetails.getColumnmaps(), PathConstants.KEY.DOB, false); + Date dob = Calendar.getInstance().getTime(); + if (!TextUtils.isEmpty(dobString)) { + DateTime dateTime = new DateTime(dobString); + dob = dateTime.toDate(); + } + + List vaccineList = BidanApplication.getInstance().vaccineRepository() + .findByEntityId(childDetails.entityId()); + if (vaccineList == null) vaccineList = new ArrayList<>(); + + VaccinationDialogFragment vaccinationDialogFragment = VaccinationDialogFragment.newInstance(dob, vaccineList, vaccineWrappers, true); + vaccinationDialogFragment.show(ft, DIALOG_TAG); + vaccinationDialogFragment.setOnDismissListener(new DialogInterface.OnDismissListener() { + @Override + public void onDismiss(DialogInterface dialog) { + dialogOpen = false; + } + }); + + } + + private void addServiceDialogFragment(ServiceWrapper serviceWrapper, ServiceGroup serviceGroup) { + + FragmentTransaction ft = this.getFragmentManager().beginTransaction(); + Fragment prev = this.getFragmentManager().findFragmentByTag(DIALOG_TAG); + if (prev != null) { + ft.remove(prev); + } + + ft.addToBackStack(null); + serviceGroup.setModalOpen(true); + String dobString = Utils.getValue(childDetails.getColumnmaps(), PathConstants.KEY.DOB, false); + DateTime dob = DateTime.now(); + if (!TextUtils.isEmpty(dobString)) { + dob = new DateTime(dobString); + } + + List serviceRecordList = BidanApplication.getInstance().recurringServiceRecordRepository() + .findByEntityId(childDetails.entityId()); + + ServiceDialogFragment serviceDialogFragment = ServiceDialogFragment.newInstance(dob, serviceRecordList, serviceWrapper, true); + serviceDialogFragment.show(ft, DIALOG_TAG); + serviceDialogFragment.setOnDismissListener(new DialogInterface.OnDismissListener() { + @Override + public void onDismiss(DialogInterface dialog) { + dialogOpen = false; + } + }); + } + + private void performRegisterActions() { + if (registerClickables != null) { + if (registerClickables.isRecordWeight()) { + final View recordWeight = findViewById(R.id.record_weight); + recordWeight.post(new Runnable() { + @Override + public void run() { + recordWeight.performClick(); + } + }); + } else if (registerClickables.isRecordAll()) { + performRecordAllClick(0); + } + + //Reset register actions + registerClickables.setRecordAll(false); + registerClickables.setRecordWeight(false); + } + } + + private void performRecordAllClick(final int index) { + if (vaccineGroups != null && vaccineGroups.size() > index) { + final VaccineGroup vaccineGroup = vaccineGroups.get(index); + vaccineGroup.post(new Runnable() { + @Override + public void run() { + ArrayList vaccineWrappers = vaccineGroup.getDueVaccines(); + if (!vaccineWrappers.isEmpty()) { + final TextView recordAllTV = (TextView) vaccineGroup.findViewById(R.id.record_all_tv); + recordAllTV.post(new Runnable() { + @Override + public void run() { + recordAllTV.performClick(); + } + }); + } else { + performRecordAllClick(index + 1); + } + } + }); + } + } + + private void saveVaccine(ArrayList tags, final View view) { + if (tags.isEmpty()) { + return; + } + + VaccineRepository vaccineRepository = BidanApplication.getInstance().vaccineRepository(); + + VaccineWrapper[] arrayTags = tags.toArray(new VaccineWrapper[tags.size()]); + SaveVaccinesTask backgroundTask = new SaveVaccinesTask(); + backgroundTask.setVaccineRepository(vaccineRepository); + backgroundTask.setView(view); + Utils.startAsyncTask(backgroundTask, arrayTags); + + } + + private void saveVaccine(VaccineRepository vaccineRepository, VaccineWrapper tag) { + if (tag.getUpdatedVaccineDate() == null) { + return; + } + + + Vaccine vaccine = new Vaccine(); + if (tag.getDbKey() != null) { + vaccine = vaccineRepository.find(tag.getDbKey()); + } + vaccine.setBaseEntityId(childDetails.entityId()); + vaccine.setName(tag.getName()); + vaccine.setDate(tag.getUpdatedVaccineDate().toDate()); + vaccine.setAnmId(getOpenSRPContext().allSharedPreferences().fetchRegisteredANM()); + try { + vaccine.setLocationId(JsonFormUtils.getOpenMrsLocationId(getOpenSRPContext(), + toolbar.getCurrentLocation())); + } catch (JSONException e) { + e.printStackTrace(); + } + + String lastChar = vaccine.getName().substring(vaccine.getName().length() - 1); + if (StringUtils.isNumeric(lastChar)) { + vaccine.setCalculation(Integer.valueOf(lastChar)); + } else { + vaccine.setCalculation(-1); + } + util.Utils.addVaccine(vaccineRepository, vaccine); + tag.setDbKey(vaccine.getId()); + setLastModified(true); + } + + private void updateVaccineGroupViews(View view, final ArrayList wrappers, List vaccineList) { + updateVaccineGroupViews(view, wrappers, vaccineList, false); + } + + private void updateVaccineGroupViews(View view, final ArrayList wrappers, final List vaccineList, final boolean undo) { + if (view == null || !(view instanceof VaccineGroup)) { + return; + } + final VaccineGroup vaccineGroup = (VaccineGroup) view; + vaccineGroup.setModalOpen(false); + + if (Looper.myLooper() == Looper.getMainLooper()) { + if (undo) { + vaccineGroup.setVaccineList(vaccineList); + vaccineGroup.updateWrapperStatus(wrappers); + } + vaccineGroup.updateViews(wrappers); + + } else { + Handler handler = new Handler(Looper.getMainLooper()); + handler.post(new Runnable() { + @Override + public void run() { + if (undo) { + vaccineGroup.setVaccineList(vaccineList); + vaccineGroup.updateWrapperStatus(wrappers); + } + vaccineGroup.updateViews(wrappers); + } + }); + } + } + + private void showRecordWeightNotification() { + if (!weightNotificationShown) { + weightNotificationShown = true; + showNotification(R.string.record_weight_notification, R.drawable.ic_weight_notification, + R.string.record_weight, + new View.OnClickListener() { + @Override + public void onClick(View v) { + View recordWeight = findViewById(R.id.record_weight); + showWeightDialog(recordWeight); + hideNotification(); + } + }, R.string.cancel, new View.OnClickListener() { + @Override + public void onClick(View v) { + hideNotification(); + } + }, null); + } + } + + private void showCheckBcgScarNotification(Alert alert) { + if (!bcgScarNotificationShown) { + bcgScarNotificationShown = true; + showNotification(R.string.check_child_bcg_scar, R.drawable.ic_check_bcg_scar, + R.string.ok_button_label, new View.OnClickListener() { + @Override + public void onClick(View v) { + hideNotification(); + Alert alert = (Alert) v.getTag(); + if (alert != null) { + Utils.startAsyncTask(new MarkBcgTwoAsDoneTask(), null); + } + } + }, 0, null, alert); + } + } + + private String constructChildName() { + String firstName = Utils.getValue(childDetails.getColumnmaps(), PathConstants.KEY.FIRST_NAME, true); + String lastName = Utils.getValue(childDetails.getColumnmaps(), PathConstants.KEY.LAST_NAME, true); + return Utils.getName(firstName, lastName).trim(); + } + + @Override + public void finish() { + if (isLastModified()) { + String tableName = PathConstants.CHILD_TABLE_NAME; + AllCommonsRepository allCommonsRepository = getOpenSRPContext().allCommonsRepositoryobjects(tableName); + ContentValues contentValues = new ContentValues(); + contentValues.put(PathConstants.KEY.LAST_INTERACTED_WITH, (new Date()).getTime()); + allCommonsRepository.update(tableName, contentValues, childDetails.entityId()); + allCommonsRepository.updateSearch(childDetails.entityId()); + } + super.finish(); + } + + private boolean isLastModified() { + BidanApplication application = (BidanApplication) getApplication(); + return application.isLastModified(); + } + + private void setLastModified(boolean lastModified) { + BidanApplication application = (BidanApplication) getApplication(); + if (lastModified != application.isLastModified()) { + application.setLastModified(lastModified); + } + } + + private VaccineGroup getLastOpenedView() { + if (vaccineGroups == null) { + return null; + } + + for (VaccineGroup vaccineGroup : vaccineGroups) { + if (vaccineGroup.isModalOpen()) { + return vaccineGroup; + } + } + + return null; + } + + private void updateVaccineGroupsUsingAlerts(List affectedVaccines, List vaccineList, List alerts) { + if (affectedVaccines != null && vaccineList != null) { + // Update all other affected vaccine groups + HashMap> affectedGroups = new HashMap<>(); + for (String curAffectedVaccineName : affectedVaccines) { + boolean viewFound = false; + // Check what group it is in + for (VaccineGroup curGroup : vaccineGroups) { + ArrayList groupWrappers = curGroup.getAllVaccineWrappers(); + if (groupWrappers == null) groupWrappers = new ArrayList<>(); + for (VaccineWrapper curWrapper : groupWrappers) { + String curWrapperName = curWrapper.getName(); + + // Check if current wrapper is one of the combined vaccines + if (COMBINED_VACCINES.contains(curWrapperName)) { + // Check if any of the sister vaccines is currAffectedVaccineName + String[] allSisters = COMBINED_VACCINES_MAP.get(curWrapperName).split(" / "); + for (String allSister : allSisters) { + if (allSister.replace(" ", "").equalsIgnoreCase(curAffectedVaccineName.replace(" ", ""))) { + curWrapperName = allSister; + break; + } + } + } + + if (curWrapperName.replace(" ", "").toLowerCase() + .contains(curAffectedVaccineName.replace(" ", "").toLowerCase())) { + if (!affectedGroups.containsKey(curGroup)) { + affectedGroups.put(curGroup, new ArrayList()); + } + + affectedGroups.get(curGroup).add(curWrapper); + viewFound = true; + } + + if (viewFound) break; + } + + if (viewFound) break; + } + } + + for (VaccineGroup curGroup : affectedGroups.keySet()) { + try { + vaccineGroups.remove(curGroup); + addVaccineGroup(Integer.valueOf((String) curGroup.getTag(R.id.vaccine_group_parent_id)), + new JSONObject((String) curGroup.getTag(R.id.vaccine_group_vaccine_data)), + vaccineList, alerts); + } catch (Exception e) { + Log.e(TAG, Log.getStackTraceString(e)); + } + } + } + } + + //Recurring Service + @Override + public void onGiveToday(ServiceWrapper tag, View v) { + if (tag != null) { + View view = RecurringServiceUtils.getLastOpenedServiceView(serviceGroups); + saveService(tag, view); + } + } + + @Override + public void onGiveEarlier(ServiceWrapper tag, View v) { + if (tag != null) { + View view = RecurringServiceUtils.getLastOpenedServiceView(serviceGroups); + saveService(tag, view); + } + } + + @Override + public void onUndoService(ServiceWrapper tag, View v) { + Utils.startAsyncTask(new UndoServiceTask(tag), null); + } + + private void saveService(ServiceWrapper tag, final View view) { + if (tag == null) { + return; + } + + ServiceWrapper[] arrayTags = {tag}; + SaveServiceTask backgroundTask = new SaveServiceTask(); + String providerId = getOpenSRPContext().allSharedPreferences().fetchRegisteredANM(); + String locationId = null; + + try { + locationId = JsonFormUtils.getOpenMrsLocationId(getOpenSRPContext(), + toolbar.getCurrentLocation()); + } catch (JSONException e) { + e.printStackTrace(); + } + + backgroundTask.setProviderId(providerId); + backgroundTask.setLocationId(locationId); + backgroundTask.setView(view); + Utils.startAsyncTask(backgroundTask, arrayTags); + } + + + //////////////////////////////////////////////////////////////// + // Inner classes + //////////////////////////////////////////////////////////////// + + private class UpdateViewTask extends AsyncTask>> { + + private VaccineRepository vaccineRepository; + private WeightRepository weightRepository; + private RecurringServiceTypeRepository recurringServiceTypeRepository; + private RecurringServiceRecordRepository recurringServiceRecordRepository; + private AlertService alertService; + + public void setVaccineRepository(VaccineRepository vaccineRepository) { + this.vaccineRepository = vaccineRepository; + } + + public void setWeightRepository(WeightRepository weightRepository) { + this.weightRepository = weightRepository; + } + + public void setRecurringServiceTypeRepository(RecurringServiceTypeRepository recurringServiceTypeRepository) { + this.recurringServiceTypeRepository = recurringServiceTypeRepository; + } + + public void setRecurringServiceRecordRepository(RecurringServiceRecordRepository recurringServiceRecordRepository) { + this.recurringServiceRecordRepository = recurringServiceRecordRepository; + } + + public void setAlertService(AlertService alertService) { + this.alertService = alertService; + } + + + @Override + protected void onPreExecute() { + showProgressDialog(getString(R.string.updating_dialog_title), null); + } + + @SuppressWarnings("unchecked") + @Override + protected void onPostExecute(Map> map) { + hideProgressDialog(); + + List vaccineList = new ArrayList<>(); + Weight weight = null; + + Map> serviceTypeMap = new LinkedHashMap<>(); + List serviceRecords = new ArrayList<>(); + + List alertList = new ArrayList<>(); + + if (map.containsKey(Weight.class.getName())) { + NamedObject> namedObject = map.get(Weight.class.getName()); + if (namedObject != null) { + weight = (Weight) namedObject.object; + } + + } + + if (map.containsKey(Vaccine.class.getName())) { + NamedObject> namedObject = map.get(Vaccine.class.getName()); + if (namedObject != null) { + vaccineList = (List) namedObject.object; + } + + } + + if (map.containsKey(ServiceType.class.getName())) { + NamedObject> namedObject = map.get(ServiceType.class.getName()); + if (namedObject != null) { + serviceTypeMap = (Map>) namedObject.object; + } + + } + + if (map.containsKey(ServiceRecord.class.getName())) { + NamedObject> namedObject = map.get(ServiceRecord.class.getName()); + if (namedObject != null) { + serviceRecords = (List) namedObject.object; + } + + } + + if (map.containsKey(Alert.class.getName())) { + NamedObject> namedObject = map.get(Alert.class.getName()); + if (namedObject != null) { + alertList = (List) namedObject.object; + } + + } + + updateWeightViews(weight); + updateServiceViews(serviceTypeMap, serviceRecords, alertList); + updateVaccinationViews(vaccineList, alertList); + performRegisterActions(); + } + + @Override + protected Map> doInBackground(Void... voids) { + String dobString = Utils.getValue(childDetails.getColumnmaps(), PathConstants.KEY.DOB, false); + if (!TextUtils.isEmpty(dobString)) { + DateTime dateTime = new DateTime(dobString); + VaccineSchedule.updateOfflineAlerts(childDetails.entityId(), dateTime, PathConstants.KEY.CHILD); + } + + List vaccineList = new ArrayList<>(); + Weight weight = null; + + Map> serviceTypeMap = new LinkedHashMap<>(); + List serviceRecords = new ArrayList<>(); + + List alertList = new ArrayList<>(); + if (vaccineRepository != null) { + vaccineList = vaccineRepository.findByEntityId(childDetails.entityId()); + + } + if (weightRepository != null) { + weight = weightRepository.findUnSyncedByEntityId(childDetails.entityId()); + } + + if (recurringServiceRecordRepository != null) { + serviceRecords = recurringServiceRecordRepository.findByEntityId(childDetails.entityId()); + } + + if (recurringServiceTypeRepository != null) { + List types = recurringServiceTypeRepository.fetchTypes(); + for (String type : types) { + List subTypes = recurringServiceTypeRepository.findByType(type); + serviceTypeMap.put(type, subTypes); + } + } + + if (alertService != null) { + alertList = alertService.findByEntityId(childDetails.entityId()); + } + + Map> map = new HashMap<>(); + + NamedObject> vaccineNamedObject = new NamedObject<>(Vaccine.class.getName(), vaccineList); + map.put(vaccineNamedObject.name, vaccineNamedObject); + + NamedObject weightNamedObject = new NamedObject<>(Weight.class.getName(), weight); + map.put(weightNamedObject.name, weightNamedObject); + + NamedObject>> serviceTypeNamedObject = new NamedObject<>(ServiceType.class.getName(), serviceTypeMap); + map.put(serviceTypeNamedObject.name, serviceTypeNamedObject); + + NamedObject> serviceRecordNamedObject = new NamedObject<>(ServiceRecord.class.getName(), serviceRecords); + map.put(serviceRecordNamedObject.name, serviceRecordNamedObject); + + NamedObject> alertsNamedObject = new NamedObject<>(Alert.class.getName(), alertList); + map.put(alertsNamedObject.name, alertsNamedObject); + + return map; + } + } + + public class SaveServiceTask extends AsyncTask, List, List>> { + + private View view; + private String providerId; + private String locationId; + + public void setView(View view) { + this.view = view; + } + + public void setProviderId(String providerId) { + this.providerId = providerId; + } + + public void setLocationId(String locationId) { + this.locationId = locationId; + } + + @Override + protected void onPreExecute() { + showProgressDialog(); + } + + @Override + protected void onPostExecute(Triple, List, List> triple) { + hideProgressDialog(); + RecurringServiceUtils.updateServiceGroupViews(view, triple.getLeft(), triple.getMiddle(), triple.getRight()); + } + + @Override + protected Triple, List, List> doInBackground(ServiceWrapper... params) { + + ArrayList list = new ArrayList<>(); + + for (ServiceWrapper tag : params) { + RecurringServiceUtils.saveService(tag, childDetails.entityId(), providerId, locationId); + setLastModified(true); + list.add(tag); + + + ServiceSchedule.updateOfflineAlerts(tag.getType(), childDetails.entityId(), Utils.dobToDateTime(childDetails)); + } + + RecurringServiceRecordRepository recurringServiceRecordRepository = BidanApplication.getInstance().recurringServiceRecordRepository(); + List serviceRecordList = recurringServiceRecordRepository.findByEntityId(childDetails.entityId()); + + RecurringServiceTypeRepository recurringServiceTypeRepository = BidanApplication.getInstance().recurringServiceTypeRepository(); + List serviceTypes = recurringServiceTypeRepository.fetchAll(); + String[] alertArray = VaccinateActionUtils.allAlertNames(serviceTypes); + + AlertService alertService = getOpenSRPContext().alertService(); + List alertList = alertService.findByEntityIdAndAlertNames(childDetails.entityId(), alertArray); + + return Triple.of(list, serviceRecordList, alertList); + + } + } + + private class UndoServiceTask extends AsyncTask { + + private final View view; + private final ServiceWrapper tag; + private List serviceRecordList; + private ArrayList wrappers; + private List alertList; + + public UndoServiceTask(ServiceWrapper tag) { + this.tag = tag; + this.view = RecurringServiceUtils.getLastOpenedServiceView(serviceGroups); + } + + @Override + protected void onPreExecute() { + showProgressDialog(getString(R.string.updating_dialog_title), null); + } + + @Override + protected Void doInBackground(Void... params) { + if (tag != null && tag.getDbKey() != null) { + RecurringServiceRecordRepository recurringServiceRecordRepository = BidanApplication.getInstance().recurringServiceRecordRepository(); + Long dbKey = tag.getDbKey(); + recurringServiceRecordRepository.deleteServiceRecord(dbKey); + + serviceRecordList = recurringServiceRecordRepository.findByEntityId(childDetails.entityId()); + + wrappers = new ArrayList<>(); + wrappers.add(tag); + + ServiceSchedule.updateOfflineAlerts(tag.getType(), childDetails.entityId(), Utils.dobToDateTime(childDetails)); + + RecurringServiceTypeRepository recurringServiceTypeRepository = BidanApplication.getInstance().recurringServiceTypeRepository(); + List serviceTypes = recurringServiceTypeRepository.fetchAll(); + String[] alertArray = VaccinateActionUtils.allAlertNames(serviceTypes); + + AlertService alertService = getOpenSRPContext().alertService(); + alertList = alertService.findByEntityIdAndAlertNames(childDetails.entityId(), alertArray); + + } + return null; + } + + @Override + protected void onPostExecute(Void params) { + super.onPostExecute(params); + hideProgressDialog(); + + tag.setUpdatedVaccineDate(null, false); + tag.setDbKey(null); + + RecurringServiceUtils.updateServiceGroupViews(view, wrappers, serviceRecordList, alertList, true); + } + } + + private class ShowGrowthChartTask extends AsyncTask> { + @Override + protected void onPreExecute() { + super.onPreExecute(); + showProgressDialog(); + } + + @Override + protected List doInBackground(Void... params) { + WeightRepository weightRepository = BidanApplication.getInstance().weightRepository(); + List allWeights = weightRepository.findByEntityId(childDetails.entityId()); + try { + String dobString = Utils.getValue(childDetails.getColumnmaps(), PathConstants.KEY.DOB, false); + if (!TextUtils.isEmpty(Utils.getValue(childDetails.getColumnmaps(), PathConstants.KEY.BIRTH_WEIGHT, false)) + && !TextUtils.isEmpty(dobString)) { + DateTime dateTime = new DateTime(dobString); + Double birthWeight = Double.valueOf(Utils.getValue(childDetails.getColumnmaps(), PathConstants.KEY.BIRTH_WEIGHT, false)); + + Weight weight = new Weight(-1l, null, (float) birthWeight.doubleValue(), dateTime.toDate(), null, null, null, Calendar.getInstance().getTimeInMillis(), null, null, 0); + allWeights.add(weight); + } + } catch (Exception e) { + Log.e(TAG, Log.getStackTraceString(e)); + } + + return allWeights; + } + + @Override + protected void onPostExecute(List allWeights) { + super.onPostExecute(allWeights); + hideProgressDialog(); + FragmentTransaction ft = ChildImmunizationActivity.this.getFragmentManager().beginTransaction(); + Fragment prev = ChildImmunizationActivity.this.getFragmentManager().findFragmentByTag(DIALOG_TAG); + if (prev != null) { + ft.remove(prev); + } + ft.addToBackStack(null); + + + GrowthDialogFragment growthDialogFragment = GrowthDialogFragment.newInstance(childDetails, allWeights); + growthDialogFragment.show(ft, DIALOG_TAG); + } + } + + private class MarkBcgTwoAsDoneTask extends AsyncTask { + @Override + protected Void doInBackground(Void... params) { + DetailsRepository detailsRepository = BidanApplication.getInstance().context().detailsRepository(); + detailsRepository.add(childDetails.entityId(), BCG2_NOTIFICATION_DONE, Boolean.TRUE.toString(), new Date().getTime()); + return null; + } + + } + + private class SaveVaccinesTask extends AsyncTask, List>> { + + private View view; + private VaccineRepository vaccineRepository; + private AlertService alertService; + private List affectedVaccines; + private List vaccineList; + private List alertList; + + public void setView(View view) { + this.view = view; + } + + public void setVaccineRepository(VaccineRepository vaccineRepository) { + this.vaccineRepository = vaccineRepository; + alertService = getOpenSRPContext().alertService(); + affectedVaccines = new ArrayList<>(); + } + + @Override + protected void onPreExecute() { + showProgressDialog(); + } + + @Override + protected void onPostExecute(Pair, List> pair) { + hideProgressDialog(); + updateVaccineGroupViews(view, pair.first, pair.second); + View recordWeight = findViewById(R.id.record_weight); + WeightWrapper weightWrapper = (WeightWrapper) recordWeight.getTag(); + if (weightWrapper == null || weightWrapper.getWeight() == null) { + showRecordWeightNotification(); + } + + updateVaccineGroupsUsingAlerts(affectedVaccines, vaccineList, alertList); + showVaccineNotifications(vaccineList, alertList); + } + + @Override + protected Pair, List> doInBackground(VaccineWrapper... vaccineWrappers) { + + ArrayList list = new ArrayList<>(); + if (vaccineRepository != null) { + for (VaccineWrapper tag : vaccineWrappers) { + saveVaccine(vaccineRepository, tag); + list.add(tag); + } + } + + Pair, List> pair = new Pair<>(list, vaccineList); + String dobString = Utils.getValue(childDetails.getColumnmaps(), PathConstants.KEY.DOB, false); + if (!TextUtils.isEmpty(dobString)) { + DateTime dateTime = new DateTime(dobString); + affectedVaccines = VaccineSchedule.updateOfflineAlerts(childDetails.entityId(), dateTime, PathConstants.KEY.CHILD); + } + vaccineList = vaccineRepository.findByEntityId(childDetails.entityId()); + alertList = alertService.findByEntityIdAndAlertNames(childDetails.entityId(), + VaccinateActionUtils.allAlertNames(PathConstants.KEY.CHILD)); + + return pair; + } + } + + + private class UndoVaccineTask extends AsyncTask { + + private final VaccineWrapper tag; + private final View v; + private final VaccineRepository vaccineRepository; + private final AlertService alertService; + private List vaccineList; + private List alertList; + private List affectedVaccines; + + public UndoVaccineTask(VaccineWrapper tag, View v) { + this.tag = tag; + this.v = v; + vaccineRepository = BidanApplication.getInstance().vaccineRepository(); + alertService = getOpenSRPContext().alertService(); + } + + @Override + protected void onPreExecute() { + showProgressDialog(getString(R.string.updating_dialog_title), null); + } + + @Override + protected Void doInBackground(Void... params) { + if (tag != null) { + + if (tag.getDbKey() != null) { + Long dbKey = tag.getDbKey(); + vaccineRepository.deleteVaccine(dbKey); + String dobString = Utils.getValue(childDetails.getColumnmaps(), PathConstants.KEY.DOB, false); + if (!TextUtils.isEmpty(dobString)) { + DateTime dateTime = new DateTime(dobString); + affectedVaccines = VaccineSchedule.updateOfflineAlerts(childDetails.entityId(), dateTime, PathConstants.KEY.CHILD); + vaccineList = vaccineRepository.findByEntityId(childDetails.entityId()); + alertList = alertService.findByEntityIdAndAlertNames(childDetails.entityId(), + VaccinateActionUtils.allAlertNames(PathConstants.KEY.CHILD)); + } + } + } + return null; + } + + @Override + protected void onPostExecute(Void params) { + hideProgressDialog(); + super.onPostExecute(params); + + // Refresh the vaccine group with the updated vaccine + tag.setUpdatedVaccineDate(null, false); + tag.setDbKey(null); + + View view = getLastOpenedView(); + + ArrayList wrappers = new ArrayList<>(); + wrappers.add(tag); + updateVaccineGroupViews(view, wrappers, vaccineList, true); + updateVaccineGroupsUsingAlerts(affectedVaccines, vaccineList, alertList); + showVaccineNotifications(vaccineList, alertList); + } + } + + private class GetSiblingsTask extends AsyncTask> { + + @Override + protected ArrayList doInBackground(Void... params) { + String baseEntityId = childDetails.entityId(); + String motherBaseEntityId = Utils.getValue(childDetails.getColumnmaps(), PathConstants.KEY.RELATIONAL_ID, false); + if (!TextUtils.isEmpty(motherBaseEntityId) && !TextUtils.isEmpty(baseEntityId)) { + List children = getOpenSRPContext().commonrepository(PathConstants.CHILD_TABLE_NAME) + .findByRelational_IDs(motherBaseEntityId); + + if (children != null) { + ArrayList baseEntityIds = new ArrayList<>(); + for (CommonPersonObject curChild : children) { + if (!baseEntityId.equals(curChild.getCaseId())) { + baseEntityIds.add(curChild.getCaseId()); + } + } + + return baseEntityIds; + } + } + return null; + } + + @Override + protected void onPostExecute(ArrayList baseEntityIds) { + super.onPostExecute(baseEntityIds); + ArrayList ids = new ArrayList<>(); + if (baseEntityIds != null) { + ids = baseEntityIds; + } + + Collections.reverse(ids); + + SiblingPicturesGroup siblingPicturesGroup = (SiblingPicturesGroup) ChildImmunizationActivity.this.findViewById(R.id.sibling_pictures); + siblingPicturesGroup.setSiblingBaseEntityIds(ChildImmunizationActivity.this, ids); + } + } + + + private class NamedObject { + public final String name; + public final T object; + + public NamedObject(String name, T object) { + this.name = name; + this.object = object; + } + } + +} diff --git a/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/ChildSmartRegisterActivity.java b/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/ChildSmartRegisterActivity.java new file mode 100644 index 0000000..ed1ddfc --- /dev/null +++ b/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/ChildSmartRegisterActivity.java @@ -0,0 +1,381 @@ +package org.smartregister.bidan.activity; + +import android.app.ProgressDialog; +import android.content.DialogInterface; +import android.content.Intent; +import android.content.SharedPreferences; +import android.content.pm.ActivityInfo; +import android.os.Bundle; +import android.os.Handler; +import android.os.Looper; +import android.preference.PreferenceManager; +import android.support.v4.app.Fragment; +import android.support.v4.app.FragmentPagerAdapter; +import android.support.v4.view.ViewPager; +import android.support.v4.widget.DrawerLayout; +import android.support.v7.app.AlertDialog; +import android.util.Log; +import android.view.inputmethod.InputMethodManager; +import android.widget.LinearLayout; + +import org.apache.commons.lang3.StringUtils; +import org.json.JSONObject; +import org.smartregister.adapter.SmartRegisterPaginatedAdapter; +import org.smartregister.bidan.adapter.PathRegisterActivityPagerAdapter; +import org.smartregister.bidan.fragment.AdvancedSearchFragment; +import org.smartregister.bidan.fragment.ChildSmartRegisterFragment; +import org.smartregister.domain.FetchStatus; +import org.smartregister.domain.form.FormSubmission; +import org.smartregister.event.Event; +import org.smartregister.event.Listener; +import org.smartregister.bidan.R; +import org.smartregister.bidan.fragment.BaseSmartRegisterFragment; +import org.smartregister.bidan.view.LocationPickerView; +import org.smartregister.provider.SmartRegisterClientsProvider; +import org.smartregister.repository.AllSharedPreferences; +import org.smartregister.service.FormSubmissionService; +import org.smartregister.service.ZiggyService; +import org.smartregister.util.FormUtils; +import org.smartregister.view.dialog.DialogOptionModel; +import org.smartregister.view.viewpager.OpenSRPViewPager; + +import butterknife.Bind; +import butterknife.ButterKnife; +import util.JsonFormUtils; +import util.barcode.Barcode; +import util.barcode.BarcodeIntentIntegrator; +import util.barcode.BarcodeIntentResult; + +import static android.view.inputmethod.InputMethodManager.HIDE_NOT_ALWAYS; + +/** + * Created by Ahmed on 13-Oct-15. + */ +public class ChildSmartRegisterActivity extends BaseRegisterActivity { + private static final String TAG = ChildSmartRegisterActivity.class.getCanonicalName(); + + @Bind(R.id.view_pager) + protected OpenSRPViewPager mPager; + private FragmentPagerAdapter mPagerAdapter; + private static final int REQUEST_CODE_GET_JSON = 3432; + private int currentPage; + public static final int ADVANCED_SEARCH_POSITION = 1; + private ProgressDialog progressDialog; + + private android.support.v4.app.Fragment mBaseFragment = null; + + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + + ButterKnife.bind(this); + + setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); + + mBaseFragment = new ChildSmartRegisterFragment(); + Fragment[] otherFragments = {new AdvancedSearchFragment()}; + + // Instantiate a ViewPager and a PagerAdapter. + mPagerAdapter = new PathRegisterActivityPagerAdapter(getSupportFragmentManager(), mBaseFragment, otherFragments); + mPager.setOffscreenPageLimit(otherFragments.length); + mPager.setAdapter(mPagerAdapter); + mPager.setOnPageChangeListener(new ViewPager.SimpleOnPageChangeListener() { + @Override + public void onPageSelected(int position) { + currentPage = position; + } + }); + + Event.ON_DATA_FETCHED.addListener(onDataFetchedListener); + initializeProgressDialog(); + } + + @Override + protected void onDestroy() { + super.onDestroy(); + Event.ON_DATA_FETCHED.removeListener(onDataFetchedListener); + } + + @Override + protected SmartRegisterPaginatedAdapter adapter() { + return new SmartRegisterPaginatedAdapter(clientsProvider()); + } + + @Override + protected DefaultOptionsProvider getDefaultOptionsProvider() { + return null; + } + + @Override + protected void setupViews() { + } + + @Override + protected void onResumption() { + final DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout); + LinearLayout childregister = (LinearLayout) drawer.findViewById(R.id.child_register); + childregister.setBackgroundColor(getResources().getColor(R.color.tintcolor)); + + } + + @Override + protected NavBarOptionsProvider getNavBarOptionsProvider() { + return null; + } + + @Override + protected SmartRegisterClientsProvider clientsProvider() { + return null; + } + + @Override + protected void onInitialization() { + } + + @Override + public void startRegistration() { + } + + @Override + public void showFragmentDialog(DialogOptionModel dialogOptionModel, Object tag) { + try { + LoginActivity.setLanguage(); + } catch (Exception e) { + Log.e(getClass().getCanonicalName(), e.getMessage()); + } + super.showFragmentDialog(dialogOptionModel, tag); + } + + @Override + public void startFormActivity(String formName, String entityId, String metaData) { + try { + if (mBaseFragment instanceof ChildSmartRegisterFragment) { + LocationPickerView locationPickerView = ((ChildSmartRegisterFragment) mBaseFragment).getLocationPickerView(); + String locationId = JsonFormUtils.getOpenMrsLocationId(context(), locationPickerView.getSelectedItem()); + JsonFormUtils.startForm(this, context(), REQUEST_CODE_GET_JSON, formName, entityId, + metaData, locationId); + } + } catch (Exception e) { + Log.e(TAG, Log.getStackTraceString(e)); + } + + } + + public void startAdvancedSearch() { + try { + mPager.setCurrentItem(ADVANCED_SEARCH_POSITION, false); + } catch (Exception e) { + e.printStackTrace(); + } + + } + + public void updateAdvancedSearchFilterCount(int count) { + AdvancedSearchFragment advancedSearchFragment = (AdvancedSearchFragment) findFragmentByPosition(ADVANCED_SEARCH_POSITION); + if (advancedSearchFragment != null) { + advancedSearchFragment.updateFilterCount(count); + } + } + + @Override + protected void onActivityResult(int requestCode, int resultCode, Intent data) { + if (requestCode == REQUEST_CODE_GET_JSON) { + if (resultCode == RESULT_OK) { + + String jsonString = data.getStringExtra("json"); + Log.d("JSONResult", jsonString); + + SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this); + AllSharedPreferences allSharedPreferences = new AllSharedPreferences(preferences); + + JsonFormUtils.saveForm(this, context(), jsonString, allSharedPreferences.fetchRegisteredANM()); + } + } else if (requestCode == BarcodeIntentIntegrator.REQUEST_CODE && resultCode == RESULT_OK) { + BarcodeIntentResult res = BarcodeIntentIntegrator.parseActivityResult(requestCode, resultCode, data); + if (StringUtils.isNotBlank(res.getContents())) { + onQRCodeSucessfullyScanned(res.getContents()); + } else Log.i("", "NO RESULT FOR QR CODE"); + } + } + + @Override + public void saveFormSubmission(String formSubmission, String id, String formName, JSONObject fieldOverrides) { + // save the form + try { + FormUtils formUtils = FormUtils.getInstance(getApplicationContext()); + FormSubmission submission = formUtils.generateFormSubmisionFromXMLString(id, formSubmission, formName, fieldOverrides); + + org.smartregister.Context context = context(); + ZiggyService ziggyService = context.ziggyService(); + ziggyService.saveForm(getParams(submission), submission.instance()); + + FormSubmissionService formSubmissionService = context.formSubmissionService(); + formSubmissionService.updateFTSsearch(submission); + + Log.v("we are here", "hhregister"); + //switch to forms list fragmentstregi + switchToBaseFragment(formSubmission); // Unnecessary!! passing on data + + } catch (Exception e) { + Log.e(TAG, e.getMessage(), e); + } + } + + public void switchToBaseFragment(final String data) { + Log.v("we are here", "switchtobasegragment"); + final int prevPageIndex = currentPage; + runOnUiThread(new Runnable() { + @Override + public void run() { + mPager.setCurrentItem(0, false); + refreshList(data); + } + }); + } + + @Override + public void onBackPressed() { + BaseSmartRegisterFragment registerFragment = (BaseSmartRegisterFragment) findFragmentByPosition(currentPage); + if (registerFragment.onBackPressed()) { + return; + } + if (currentPage != 0) { + new AlertDialog.Builder(this, R.style.PathAlertDialog) + .setMessage(org.smartregister.bidan.R.string.form_back_confirm_dialog_message) + .setTitle(org.smartregister.bidan.R.string.form_back_confirm_dialog_title) + .setCancelable(false) + .setPositiveButton(org.smartregister.bidan.R.string.no_button_label, + new DialogInterface.OnClickListener() { + public void onClick(DialogInterface dialog, int whichButton) { + + } + }) + .setNegativeButton(org.smartregister.bidan.R.string.yes_button_label, + new DialogInterface.OnClickListener() { + public void onClick(DialogInterface dialog, int whichButton) { + switchToBaseFragment(null); + } + }) + .show(); + } else if (currentPage == 0) { + super.onBackPressed(); // allow back key only if we are + } + } + + public android.support.v4.app.Fragment findFragmentByPosition(int position) { + FragmentPagerAdapter fragmentPagerAdapter = mPagerAdapter; + return getSupportFragmentManager().findFragmentByTag("android:switcher:" + mPager.getId() + ":" + fragmentPagerAdapter.getItemId(position)); + } + + private boolean currentActivityIsShowingForm() { + return currentPage != 0; + } + + @Override + protected void onPause() { + super.onPause(); + } + + public void startQrCodeScanner() { + BarcodeIntentIntegrator integ = new BarcodeIntentIntegrator(this); + integ.addExtra(Barcode.SCAN_MODE, Barcode.QR_MODE); + integ.initiateScan(); + } + + public void filterSelection() { + if (currentPage != 0) { + switchToBaseFragment(null); + BaseSmartRegisterFragment registerFragment = (BaseSmartRegisterFragment) findFragmentByPosition(0); + if (registerFragment != null && registerFragment instanceof ChildSmartRegisterFragment) { + ((ChildSmartRegisterFragment) registerFragment).triggerFilterSelection(); + } + } + } + + private void onQRCodeSucessfullyScanned(String qrCode) { + Log.i(getClass().getName(), "QR code: " + qrCode); + if (StringUtils.isNotBlank(qrCode)) { + filterList(qrCode.replace("-", "")); + } + } + + private final Listener onDataFetchedListener = new Listener() { + @Override + public void onEvent(FetchStatus fetchStatus) { + refreshList(fetchStatus); + } + }; + + public void refreshList(final FetchStatus fetchStatus) { + if (Looper.myLooper() == Looper.getMainLooper()) { + BaseSmartRegisterFragment registerFragment = (BaseSmartRegisterFragment) findFragmentByPosition(0); + if (registerFragment != null && fetchStatus.equals(FetchStatus.fetched)) { + registerFragment.refreshListView(); + } + } else { + Handler handler = new android.os.Handler(Looper.getMainLooper()); + handler.post(new Runnable() { + @Override + public void run() { + BaseSmartRegisterFragment registerFragment = (BaseSmartRegisterFragment) findFragmentByPosition(0); + if (registerFragment != null && fetchStatus.equals(FetchStatus.fetched)) { + registerFragment.refreshListView(); + } + } + }); + } + + } + + private void refreshList(String data) { + BaseSmartRegisterFragment registerFragment = (BaseSmartRegisterFragment) findFragmentByPosition(0); + if (registerFragment != null && data != null) { + registerFragment.refreshListView(); + } + + } + + private void filterList(String filterString) { + BaseSmartRegisterFragment registerFragment = (BaseSmartRegisterFragment) findFragmentByPosition(0); + if (registerFragment != null) { + registerFragment.openVaccineCard(filterString); + } + } + + public void hideKeyboard() { + InputMethodManager inputManager = (InputMethodManager) getSystemService(INPUT_METHOD_SERVICE); + inputManager.hideSoftInputFromWindow(getCurrentFocus().getWindowToken(), HIDE_NOT_ALWAYS); + } + + private void initializeProgressDialog() { + progressDialog = new ProgressDialog(this); + progressDialog.setCancelable(false); + progressDialog.setTitle(getString(R.string.saving_dialog_title)); + progressDialog.setMessage(getString(R.string.please_wait_message)); + } + + public void showProgressDialog(String title, String message) { + if (progressDialog != null) { + if (StringUtils.isNotBlank(title)) { + progressDialog.setTitle(title); + } + + if (StringUtils.isNotBlank(message)) { + progressDialog.setMessage(message); + } + + progressDialog.show(); + } + } + + public void showProgressDialog() { + showProgressDialog(getString(R.string.saving_dialog_title), getString(R.string.please_wait_message)); + } + + public void hideProgressDialog() { + if (progressDialog != null) { + progressDialog.dismiss(); + } + } +} diff --git a/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/HIA2ReportsActivity.java b/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/HIA2ReportsActivity.java new file mode 100644 index 0000000..e883b8a --- /dev/null +++ b/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/HIA2ReportsActivity.java @@ -0,0 +1,536 @@ +package org.smartregister.bidan.activity; + +import android.app.FragmentTransaction; +import android.app.ProgressDialog; +import android.content.Intent; +import android.os.AsyncTask; +import android.os.Bundle; +import android.support.design.widget.Snackbar; +import android.support.design.widget.TabLayout; +import android.support.v4.app.Fragment; +import android.support.v4.app.FragmentManager; +import android.support.v4.app.FragmentPagerAdapter; +import android.support.v4.view.ViewPager; +import android.support.v4.widget.DrawerLayout; +import android.support.v7.app.ActionBarDrawerToggle; +import android.util.Log; +import android.view.View; +import android.widget.LinearLayout; +import android.widget.TextView; + +import com.vijay.jsonwizard.constants.JsonFormConstants; + +import org.json.JSONArray; +import org.json.JSONException; +import org.json.JSONObject; +import org.smartregister.bidan.application.BidanApplication; +import org.smartregister.bidan.repository.HIA2IndicatorsRepository; +import org.smartregister.domain.FetchStatus; +import org.smartregister.bidan.R; +import org.smartregister.bidan.domain.Hia2Indicator; +import org.smartregister.bidan.domain.MonthlyTally; +import org.smartregister.bidan.fragment.DailyTalliesFragment; +import org.smartregister.bidan.fragment.DraftMonthlyFragment; +import org.smartregister.bidan.fragment.SendMonthlyDraftDialogFragment; +import org.smartregister.bidan.fragment.SentMonthlyFragment; +import org.smartregister.bidan.repository.DailyTalliesRepository; +import org.smartregister.bidan.repository.MonthlyTalliesRepository; +import org.smartregister.bidan.service.HIA2Service; +import org.smartregister.bidan.service.intent.HIA2IntentService; +import org.smartregister.bidan.toolbar.LocationSwitcherToolbar; +import org.smartregister.util.FormUtils; +import org.smartregister.util.Utils; + +import java.text.ParseException; +import java.text.SimpleDateFormat; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Calendar; +import java.util.Date; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; + +import util.JsonFormUtils; +import util.PathConstants; + +/** + * Created by coder on 6/7/17. + */ +public class HIA2ReportsActivity extends BaseActivity { + private static final String TAG = HIA2ReportsActivity.class.getCanonicalName(); + private static final int REQUEST_CODE_GET_JSON = 3432; + public static final int MONTH_SUGGESTION_LIMIT = 3; + private static final String FORM_KEY_CONFIRM = "confirm"; + private static final List readOnlyList = new ArrayList<>(Arrays.asList(HIA2Service.CHN1_011, HIA2Service.CHN1_021, HIA2Service.CHN1_025, HIA2Service.CHN2_015, HIA2Service.CHN2_030, HIA2Service.CHN2_041, HIA2Service.CHN2_051, HIA2Service.CHN2_061)); + + /** + * The {@link android.support.v4.view.PagerAdapter} that will provide + * fragments for each of the sections. We use a + * {@link FragmentPagerAdapter} derivative, which will keep every + * loaded fragment in memory. If this becomes too memory intensive, it + * may be best to switch to a + * {@link android.support.v4.app.FragmentStatePagerAdapter}. + */ + private SectionsPagerAdapter mSectionsPagerAdapter; + + /** + * The {@link ViewPager} that will host the section contents. + */ + private ViewPager mViewPager; + private TabLayout tabLayout; + private ProgressDialog progressDialog; + private boolean showFragment = false; + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + ActionBarDrawerToggle toggle = getDrawerToggle(); + toggle.setDrawerIndicatorEnabled(false); + toggle.setHomeAsUpIndicator(null); + + LocationSwitcherToolbar toolbar = (LocationSwitcherToolbar) getToolbar(); + toolbar.setTitle(getString(R.string.side_nav_hia2)); + + tabLayout = (TabLayout) findViewById(R.id.tabs); + + // Create the adapter that will return a fragment for each of the three + // primary sections of the activity. + mSectionsPagerAdapter = new SectionsPagerAdapter(getSupportFragmentManager()); + + // Set up the ViewPager with the sections adapter. + mViewPager = (ViewPager) findViewById(R.id.container); + mViewPager.setAdapter(mSectionsPagerAdapter); + + tabLayout.setupWithViewPager(mViewPager); + + TextView initialsTV = (TextView) findViewById(R.id.name_inits); + initialsTV.setText(getLoggedInUserInitials()); + initialsTV.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + openDrawer(); + } + }); + + // Update Draft Monthly Title + refreshDraftMonthlyTitle(); + } + + @Override + public void onSyncStart() { + super.onSyncStart(); + } + + @Override + public void onResume() { + super.onResume(); + final DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout); + // TODO: This should go to the base class? + LinearLayout hia2 = (LinearLayout) drawer.findViewById(R.id.hia2reports); + hia2.setBackgroundColor(getResources().getColor(R.color.tintcolor)); + } + + @Override + public void onSyncComplete(FetchStatus fetchStatus) { + super.onSyncComplete(fetchStatus); + } + + private Fragment currentFragment() { + if (mViewPager == null || mSectionsPagerAdapter == null) { + return null; + } + + return mSectionsPagerAdapter.getItem(mViewPager.getCurrentItem()); + } + + public void startMonthlyReportForm(String formName, Date date, boolean firstTimeEdit) { + try { + Fragment currentFragment = currentFragment(); + if (currentFragment instanceof DraftMonthlyFragment) { + Utils.startAsyncTask( + new StartDraftMonthlyFormTask(this, date, formName, firstTimeEdit), null); + } + } catch (Exception e) { + Log.e(TAG, Log.getStackTraceString(e)); + } + + } + + @Override + protected void onActivityResult(int requestCode, int resultCode, Intent data) { + if (requestCode == REQUEST_CODE_GET_JSON && resultCode == RESULT_OK) { + try { + showFragment = true; + String jsonString = data.getStringExtra("json"); + boolean skipValidationSet = data.getBooleanExtra(JsonFormConstants.SKIP_VALIDATION, false); + JSONObject form = new JSONObject(jsonString); + String monthString = form.getString("report_month"); + Date month = HIA2Service.dfyymmdd.parse(monthString); + + JSONObject monthlyDraftForm = new JSONObject(jsonString); + Map result = JsonFormUtils.sectionFields(monthlyDraftForm); + boolean saveClicked; + if (result.containsKey(FORM_KEY_CONFIRM)) { + saveClicked = Boolean.valueOf(result.get(FORM_KEY_CONFIRM)); + result.remove(FORM_KEY_CONFIRM); + if (skipValidationSet) { + Snackbar.make(tabLayout, R.string.all_changes_saved, Snackbar.LENGTH_LONG).show(); + } + } else { + saveClicked = false; + } + BidanApplication.getInstance().monthlyTalliesRepository().save(result, month); + if (saveClicked && !skipValidationSet) { + sendReport(month); + } + } catch (JSONException e) { + Log.e(TAG, e.getMessage()); + } catch (ParseException e) { + Log.e(TAG, e.getMessage()); + } + } + } + + @Override + protected void onResumeFragments() { + super.onResumeFragments(); + showFragment = false; + } + + private void sendReport(final Date month) { + if (month != null) { + FragmentTransaction ft = getFragmentManager() + .beginTransaction(); + android.app.Fragment prev = getFragmentManager() + .findFragmentByTag("SendMonthlyDraftDialogFragment"); + if (prev != null) { + ft.remove(prev); + } + + String monthString = new SimpleDateFormat("MMM yyyy").format(month); + // Create and show the dialog. + SendMonthlyDraftDialogFragment newFragment = SendMonthlyDraftDialogFragment + .newInstance(monthString, + MonthlyTalliesRepository.DF_DDMMYY.format(Calendar.getInstance().getTime()), + new View.OnClickListener() { + @Override + public void onClick(View view) { + Intent intent = new Intent(HIA2ReportsActivity.this, + HIA2IntentService.class); + intent.putExtra(HIA2IntentService.GENERATE_REPORT, true); + intent.putExtra(HIA2IntentService.REPORT_MONTH, + HIA2Service.dfyymm.format(month)); + startService(intent); + } + }); + ft.add(newFragment, "SendMonthlyDraftDialogFragment"); + ft.commitAllowingStateLoss(); + } + } + + @Override + protected int getContentView() { + return R.layout.activity_hia2_reports; + } + + @Override + protected int getDrawerLayoutId() { + return R.id.drawer_layout; + } + + @Override + protected int getToolbarId() { + return LocationSwitcherToolbar.TOOLBAR_ID; + } + + @Override + protected Class onBackActivity() { + return null; + } + + public void refreshDraftMonthlyTitle() { + Utils.startAsyncTask(new FetchEditedMonthlyTalliesTask(new FetchEditedMonthlyTalliesTask.TaskListener() { + @Override + public void onPostExecute(final List monthlyTallies) { + tabLayout.post(new Runnable() { + @Override + public void run() { + for (int i = 0; i < mSectionsPagerAdapter.getCount(); i++) { + TabLayout.Tab tab = tabLayout.getTabAt(i); + if (tab != null && tab.getText() != null && tab.getText().toString() + .contains(getString(R.string.hia2_draft_monthly))) { + tab.setText(String.format( + getString(R.string.hia2_draft_monthly_with_count), + monthlyTallies == null ? 0 : monthlyTallies.size())); + } + } + } + }); + } + }), null); + } + + private static String retrieveValue(List monthlyTallies, Hia2Indicator hia2Indicator) { + String defaultValue = "0"; + if (hia2Indicator == null || monthlyTallies == null) { + return defaultValue; + } + + for (MonthlyTally monthlyTally : monthlyTallies) { + if (monthlyTally.getIndicator() != null && monthlyTally.getIndicator().getIndicatorCode() + .equalsIgnoreCase(hia2Indicator.getIndicatorCode())) { + return monthlyTally.getValue(); + } + } + + return defaultValue; + } + + + private void initializeProgressDialog() { + progressDialog = new ProgressDialog(this); + progressDialog.setCancelable(false); + progressDialog.setTitle(getString(R.string.loading)); + progressDialog.setMessage(getString(R.string.please_wait_message)); + } + + protected void showProgressDialog() { + if (progressDialog == null) { + initializeProgressDialog(); + } + + progressDialog.show(); + } + + protected void hideProgressDialog() { + if (progressDialog != null) { + progressDialog.dismiss(); + } + } + + + //////////////////////////////////////////////////////////////// + // Inner classes + //////////////////////////////////////////////////////////////// + + public static class StartDraftMonthlyFormTask extends AsyncTask { + private final HIA2ReportsActivity baseActivity; + private final Date date; + private final String formName; + private final boolean firstTimeEdit; + + public StartDraftMonthlyFormTask(HIA2ReportsActivity baseActivity, + Date date, String formName, boolean firstTimeEdit) { + this.baseActivity = baseActivity; + this.date = date; + this.formName = formName; + this.firstTimeEdit = firstTimeEdit; + } + + @Override + protected void onPreExecute() { + super.onPreExecute(); + baseActivity.showProgressDialog(); + } + + @Override + protected Intent doInBackground(Void... params) { + try { + MonthlyTalliesRepository monthlyTalliesRepository = BidanApplication.getInstance().monthlyTalliesRepository(); + List monthlyTallies = monthlyTalliesRepository.findDrafts(MonthlyTalliesRepository.DF_YYYYMM.format(date)); + + HIA2IndicatorsRepository hIA2IndicatorsRepository = BidanApplication.getInstance().hIA2IndicatorsRepository(); + List hia2Indicators = hIA2IndicatorsRepository.fetchAll(); + if (hia2Indicators == null || hia2Indicators.isEmpty()) { + return null; + } + + JSONObject form = FormUtils.getInstance(baseActivity).getFormJson(formName); + JSONObject step1 = form.getJSONObject("step1"); + String title = MonthlyTalliesRepository.DF_YYYYMM.format(date).concat(" Draft"); + step1.put(PathConstants.KEY.TITLE, title); + + JSONArray sections = step1.getJSONArray(JsonFormConstants.SECTIONS); + + String indicatorCategory = ""; + // This map holds each category as key and all the fields for that category as the + // value (jsonarray) + LinkedHashMap fieldsMap = new LinkedHashMap<>(); + for (Hia2Indicator hia2Indicator : hia2Indicators) { + JSONObject jsonObject = new JSONObject(); + if (hia2Indicator.getLabel() == null) { + hia2Indicator.setLabel(""); + } + String label = hia2Indicator.getIndicatorCode() + ": " + hia2Indicator.getLabel() + " *"; + + JSONObject vRequired = new JSONObject(); + vRequired.put(JsonFormConstants.VALUE, "true"); + vRequired.put(JsonFormConstants.ERR, "Specify: " + hia2Indicator.getLabel()); + JSONObject vNumeric = new JSONObject(); + vNumeric.put(JsonFormConstants.VALUE, "true"); + vNumeric.put(JsonFormConstants.ERR, "Value should be numeric"); + + jsonObject.put(JsonFormConstants.KEY, hia2Indicator.getId()); + jsonObject.put(JsonFormConstants.TYPE, "edit_text"); + jsonObject.put(JsonFormConstants.READ_ONLY, readOnlyList.contains(hia2Indicator.getIndicatorCode())); + jsonObject.put(JsonFormConstants.HINT, label); + jsonObject.put(JsonFormConstants.VALUE, retrieveValue(monthlyTallies, hia2Indicator)); + if (DailyTalliesRepository.IGNORED_INDICATOR_CODES + .contains(hia2Indicator.getIndicatorCode()) && firstTimeEdit) { + jsonObject.put(JsonFormConstants.VALUE, ""); + } + jsonObject.put(JsonFormConstants.V_REQUIRED, vRequired); + jsonObject.put(JsonFormConstants.V_NUMERIC, vNumeric); + jsonObject.put(JsonFormConstants.OPENMRS_ENTITY_PARENT, ""); + jsonObject.put(JsonFormConstants.OPENMRS_ENTITY, ""); + jsonObject.put(JsonFormConstants.OPENMRS_ENTITY_ID, ""); + jsonObject.put(PathConstants.KEY.HIA_2_INDICATOR, hia2Indicator.getIndicatorCode()); + indicatorCategory = hia2Indicator.getCategory(); + JSONArray fields = null; + if (fieldsMap.containsKey(indicatorCategory)) { + fields = fieldsMap.get(indicatorCategory); + } else { + fields = new JSONArray(); + } + fields.put(jsonObject); + fieldsMap.put(indicatorCategory, fields); + } + + // Build sections in the form based on categories, each key is a category + for (String key : fieldsMap.keySet()) { + JSONObject section = new JSONObject(); + section.put(JsonFormConstants.NAME, key); + section.put(JsonFormConstants.FIELDS, fieldsMap.get(key)); + sections.put(section); + } + + // Add the confirm button + JSONObject buttonObject = new JSONObject(); + buttonObject.put(JsonFormConstants.KEY, FORM_KEY_CONFIRM); + buttonObject.put(JsonFormConstants.VALUE, "false"); + buttonObject.put(JsonFormConstants.TYPE, "button"); + buttonObject.put(JsonFormConstants.HINT, "Confirm"); + buttonObject.put(JsonFormConstants.OPENMRS_ENTITY_PARENT, ""); + buttonObject.put(JsonFormConstants.OPENMRS_ENTITY, ""); + buttonObject.put(JsonFormConstants.OPENMRS_ENTITY_ID, ""); + JSONObject action = new JSONObject(); + action.put(JsonFormConstants.BEHAVIOUR, "finish_form"); + buttonObject.put(JsonFormConstants.ACTION, action); + + JSONArray confirmSectionFields = new JSONArray(); + confirmSectionFields.put(buttonObject); + JSONObject confirmSection = new JSONObject(); + confirmSection.put(JsonFormConstants.FIELDS, confirmSectionFields); + sections.put(confirmSection); + + form.put(JsonFormConstants.REPORT_MONTH, HIA2Service.dfyymmdd.format(date)); + form.put("identifier", "HIA2ReportForm"); + + Intent intent = new Intent(baseActivity, PathJsonFormActivity.class); + intent.putExtra("json", form.toString()); + intent.putExtra(JsonFormConstants.SKIP_VALIDATION, true); + + return intent; + } catch (Exception e) { + Log.e(TAG, Log.getStackTraceString(e)); + } + + return null; + } + + @Override + protected void onPostExecute(Intent intent) { + super.onPostExecute(intent); + baseActivity.hideProgressDialog(); + if (intent != null) { + baseActivity.startActivityForResult(intent, REQUEST_CODE_GET_JSON); + } + } + } + + public static class FetchEditedMonthlyTalliesTask extends AsyncTask> { + private final TaskListener taskListener; + + public FetchEditedMonthlyTalliesTask(TaskListener taskListener) { + this.taskListener = taskListener; + } + + @Override + protected void onPreExecute() { + super.onPreExecute(); + } + + @Override + protected List doInBackground(Void... params) { + MonthlyTalliesRepository monthlyTalliesRepository = BidanApplication.getInstance().monthlyTalliesRepository(); + Calendar endDate = Calendar.getInstance(); + endDate.set(Calendar.DAY_OF_MONTH, 1); // Set date to first day of this month + endDate.set(Calendar.HOUR_OF_DAY, 23); + endDate.set(Calendar.MINUTE, 59); + endDate.set(Calendar.SECOND, 59); + endDate.set(Calendar.MILLISECOND, 999); + endDate.add(Calendar.DATE, -1); // Move the date to last day of last month + + return monthlyTalliesRepository.findEditedDraftMonths(null, endDate.getTime()); + } + + @Override + protected void onPostExecute(List monthlyTallies) { + super.onPostExecute(monthlyTallies); + taskListener.onPostExecute(monthlyTallies); + } + + public interface TaskListener { + void onPostExecute(List monthlyTallies); + } + } + + /** + * A {@link FragmentPagerAdapter} that returns a fragment corresponding to + * one of the sections/tabs/pages. + */ + public class SectionsPagerAdapter extends FragmentPagerAdapter { + + public SectionsPagerAdapter(FragmentManager fm) { + super(fm); + } + + @Override + public Fragment getItem(int position) { + // getItem is called to instantiate the fragment for the given page. + // Return a PlaceholderFragment (defined as a static inner class below). + switch (position) { + case 0: + return DailyTalliesFragment.newInstance(); + case 1: + return DraftMonthlyFragment.newInstance(); + case 2: + return SentMonthlyFragment.newInstance(); + default: + break; + } + return null; + } + + @Override + public int getCount() { + return 3; + } + + @Override + public CharSequence getPageTitle(int position) { + switch (position) { + case 0: + return getString(R.string.hia2_daily_tallies); + case 1: + return getString(R.string.hia2_draft_monthly); + case 2: + return getString(R.string.hia2_sent_monthly); + default: + break; + } + return null; + } + } +} diff --git a/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/LoginActivity.java b/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/LoginActivity.java new file mode 100644 index 0000000..f7faa2a --- /dev/null +++ b/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/LoginActivity.java @@ -0,0 +1,596 @@ +package org.smartregister.bidan.activity; + +import android.app.AlertDialog; +import android.app.ProgressDialog; +import android.content.DialogInterface; +import android.content.Intent; +import android.content.pm.ApplicationInfo; +import android.content.pm.PackageInfo; +import android.content.pm.PackageManager; +import android.content.res.Configuration; +import android.content.res.Resources; +import android.graphics.drawable.ColorDrawable; +import android.os.AsyncTask; +import android.os.Build; +import android.os.Bundle; +import android.support.v7.app.AppCompatActivity; +import android.text.TextUtils; +import android.util.DisplayMetrics; +import android.view.KeyEvent; +import android.view.LayoutInflater; +import android.view.Menu; +import android.view.MenuItem; +import android.view.View; +import android.view.ViewTreeObserver; +import android.view.inputmethod.EditorInfo; +import android.view.inputmethod.InputMethodManager; +import android.widget.EditText; +import android.widget.LinearLayout; +import android.widget.RelativeLayout; +import android.widget.ScrollView; +import android.widget.TextView; + +import org.apache.commons.lang3.StringUtils; +import org.joda.time.DateTime; +import org.json.JSONException; +import org.json.JSONObject; +import org.smartregister.Context; +import org.smartregister.bidan.application.BidanApplication; +import org.smartregister.bidan.view.LocationPickerView; +import org.smartregister.domain.LoginResponse; +import org.smartregister.domain.Response; +import org.smartregister.domain.ResponseStatus; +import org.smartregister.domain.TimeStatus; +import org.smartregister.event.Listener; +import org.smartregister.growthmonitoring.service.intent.ZScoreRefreshIntentService; +import org.smartregister.immunization.util.IMDatabaseUtils; +import org.smartregister.bidan.R; +import org.smartregister.bidan.service.intent.PullUniqueIdsIntentService; +import org.smartregister.repository.AllSharedPreferences; +import org.smartregister.sync.DrishtiSyncScheduler; +import org.smartregister.util.Log; +import org.smartregister.util.Utils; +import org.smartregister.view.BackgroundAction; +import org.smartregister.view.LockingBackgroundTask; +import org.smartregister.view.ProgressIndicator; +import org.smartregister.view.activity.SmartRegisterActivity; + +import java.io.IOException; +import java.text.SimpleDateFormat; +import java.util.ArrayList; +import java.util.Iterator; +import java.util.Locale; +import java.util.TimeZone; +import java.util.zip.ZipEntry; +import java.util.zip.ZipFile; + +import util.Config; +import util.PathConstants; + +import static android.preference.PreferenceManager.getDefaultSharedPreferences; +import static android.view.inputmethod.InputMethodManager.HIDE_NOT_ALWAYS; +import static org.smartregister.domain.LoginResponse.NO_INTERNET_CONNECTIVITY; +import static org.smartregister.domain.LoginResponse.SUCCESS; +import static org.smartregister.domain.LoginResponse.UNAUTHORIZED; +import static org.smartregister.domain.LoginResponse.UNKNOWN_RESPONSE; +import static org.smartregister.util.Log.logError; +import static org.smartregister.util.Log.logVerbose; + +public class LoginActivity extends AppCompatActivity { + private EditText userNameEditText; + private EditText passwordEditText; + private ProgressDialog progressDialog; + public static final String ENGLISH_LOCALE = "en"; + private static final String URDU_LOCALE = "ur"; + private static final String ENGLISH_LANGUAGE = "English"; + private static final String URDU_LANGUAGE = "Urdu"; + private android.content.Context appContext; + private RemoteLoginTask remoteLoginTask; + + @Override + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + logVerbose("Initializing ..."); + try { + AllSharedPreferences allSharedPreferences = new AllSharedPreferences(getDefaultSharedPreferences(this)); + String preferredLocale = allSharedPreferences.fetchLanguagePreference(); + Resources res = getOpenSRPContext().applicationContext().getResources(); + // Change locale settings in the app. + DisplayMetrics dm = res.getDisplayMetrics(); + Configuration conf = res.getConfiguration(); + conf.locale = new Locale(preferredLocale); + res.updateConfiguration(conf, dm); + } catch (Exception e) { + logError("Error onCreate: " + e); + + } + + setContentView(R.layout.login); + + getSupportActionBar().setDisplayShowTitleEnabled(false); + getSupportActionBar().setBackgroundDrawable(new ColorDrawable(getResources().getColor(android.R.color.black))); + + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { + getWindow().setStatusBarColor(getResources().getColor(android.R.color.black)); + } + appContext = this; + positionViews(); + initializeLoginFields(); + initializeBuildDetails(); + setDoneActionHandlerOnPasswordField(); + initializeProgressDialog(); + + setLanguage(); + + debugApp(); + + } + + @Override + public boolean onCreateOptionsMenu(Menu menu) { + // Inflate the menu; this adds items to the action bar if it is present. + menu.add("Settings"); + return true; + } + + @Override + public boolean onOptionsItemSelected(MenuItem item) { + if (item.getTitle().toString().equalsIgnoreCase("Settings")) { + startActivity(new Intent(this, SettingsActivity.class)); + return true; + } + return super.onOptionsItemSelected(item); + } + + private void debugApp() { + Config config = new Config(); + String uname = null, pwd = null; + try { + uname = config.getCredential("uname", getApplicationContext()); + pwd = config.getCredential("pwd", getApplicationContext()); + } catch (IOException e) { + e.printStackTrace(); + } + + LayoutInflater layoutInflater = getLayoutInflater(); + View view = layoutInflater.inflate(R.layout.login, null); + if (BidanApplication.getInstance().context().userService().hasARegisteredUser()){ + localLogin(view, uname, pwd); + } else { + remoteLogin(view, uname, pwd); + } + } + + private void initializeBuildDetails() { + TextView buildDetailsTextView = (TextView) findViewById(org.smartregister.R.id.login_build); + try { + buildDetailsTextView.setText("Version " + getVersion() + ", Built on: " + getBuildDate()); + } catch (Exception e) { + logError("Error fetching build details: " + e); + } + } + + @Override + protected void onResume() { + super.onResume(); + + if (!getOpenSRPContext().IsUserLoggedOut()) { + goToHome(false); + } + } + + public void login(final View view) { + login(view, !getOpenSRPContext().allSharedPreferences().fetchForceRemoteLogin()); + } + + private void login(final View view, boolean localLogin) { + android.util.Log.i(getClass().getName(), "Hiding Keyboard " + DateTime.now().toString()); + hideKeyboard(); + view.setClickable(false); + + final String userName = userNameEditText.getText().toString().trim(); + final String password = passwordEditText.getText().toString().trim(); + + if (!TextUtils.isEmpty(userName) && !TextUtils.isEmpty(password)) { + if (localLogin) { + localLogin(view, userName, password); + } else { + remoteLogin(view, userName, password); + } + } else { + showErrorDialog(getResources().getString(R.string.unauthorized)); + view.setClickable(true); + } + + android.util.Log.i(getClass().getName(), "Login result finished " + DateTime.now().toString()); + } + + private void initializeLoginFields() { + userNameEditText = (EditText) findViewById(org.smartregister.R.id.login_userNameText); + passwordEditText = (EditText) findViewById(org.smartregister.R.id.login_passwordText); + } + + private void setDoneActionHandlerOnPasswordField() { + passwordEditText.setOnEditorActionListener(new TextView.OnEditorActionListener() { + @Override + public boolean onEditorAction(TextView v, int actionId, KeyEvent event) { + if (actionId == EditorInfo.IME_ACTION_DONE) { + login(findViewById(org.smartregister.R.id.login_loginButton)); + } + return false; + } + }); + } + + private void initializeProgressDialog() { + progressDialog = new ProgressDialog(this); + progressDialog.setCancelable(false); + progressDialog.setTitle(getString(org.smartregister.R.string.loggin_in_dialog_title)); + progressDialog.setMessage(getString(org.smartregister.R.string.loggin_in_dialog_message)); + } + + private void localLogin(View view, String userName, String password) { + view.setClickable(true); + if (getOpenSRPContext().userService().isUserInValidGroup(userName, password) + && (!PathConstants.TIME_CHECK || TimeStatus.OK.equals(getOpenSRPContext().userService().validateStoredServerTimeZone()))) { + localLoginWith(userName, password); + } else { + + login(findViewById(org.smartregister.R.id.login_loginButton), false); + } + } + + + private void remoteLogin(final View view, final String userName, final String password) { + + if (!getOpenSRPContext().allSharedPreferences().fetchBaseURL("").isEmpty()) { + tryRemoteLogin(userName, password, new Listener() { + public void onEvent(LoginResponse loginResponse) { + view.setClickable(true); + if (loginResponse == SUCCESS) { + if (getOpenSRPContext().userService().isUserInPioneerGroup(userName)) { + TimeStatus timeStatus = getOpenSRPContext().userService().validateDeviceTime( + loginResponse.payload(), PathConstants.MAX_SERVER_TIME_DIFFERENCE); + if (!PathConstants.TIME_CHECK || timeStatus.equals(TimeStatus.OK)) { + remoteLoginWith(userName, password, loginResponse.payload()); + Intent intent = new Intent(appContext, PullUniqueIdsIntentService.class); + appContext.startService(intent); + } else { + if (timeStatus.equals(TimeStatus.TIMEZONE_MISMATCH)) { + TimeZone serverTimeZone = getOpenSRPContext().userService() + .getServerTimeZone(loginResponse.payload()); + showErrorDialog(getString(timeStatus.getMessage(), + serverTimeZone.getDisplayName())); + } else { + showErrorDialog(getString(timeStatus.getMessage())); + } + } + } else { // Valid user from wrong group trying to log in + showErrorDialog(getResources().getString(R.string.unauthorized_group)); + } + } else { + if (loginResponse == null) { + showErrorDialog("Sorry, your login failed. Please try again."); + } else { + if (loginResponse == NO_INTERNET_CONNECTIVITY) { + showErrorDialog(getResources().getString(R.string.no_internet_connectivity)); + } else if (loginResponse == UNKNOWN_RESPONSE) { + showErrorDialog(getResources().getString(R.string.unknown_response)); + } else if (loginResponse == UNAUTHORIZED) { + showErrorDialog(getResources().getString(R.string.unauthorized)); + } +// showErrorDialog(loginResponse.message()); + } + } + } + }); + + } else { + view.setClickable(true); + showErrorDialog("OpenSRP Base URL is missing. Please add it in Settings and try again"); + + } + } + + private void showErrorDialog(String message) { + AlertDialog dialog = new AlertDialog.Builder(this) + .setTitle(getString(org.smartregister.R.string.login_failed_dialog_title)) + .setMessage(message) + .setPositiveButton("OK", new DialogInterface.OnClickListener() { + @Override + public void onClick(DialogInterface dialogInterface, int i) { + } + }) + .create(); + dialog.show(); + } + + private void showMessageDialog(String message, DialogInterface.OnClickListener ok, DialogInterface.OnClickListener cancel) { + AlertDialog dialog = new AlertDialog.Builder(this) + .setTitle(getString(org.smartregister.R.string.login_failed_dialog_title)) + .setMessage(message) + .setPositiveButton("OK", ok) + .setNegativeButton("Cancel", cancel) + .create(); + + dialog.show(); + } + + private void getLocation() { + tryGetLocation(new Listener>() { + @Override + public void onEvent(Response data) { + if (data.status() == ResponseStatus.success) { + getOpenSRPContext().userService().saveAnmLocation(data.payload()); + } + } + }); + } + + private void tryGetLocation(final Listener> afterGet) { + LockingBackgroundTask task = new LockingBackgroundTask(new ProgressIndicator() { + @Override + public void setVisible() { + } + + @Override + public void setInvisible() { + Log.logInfo("Successfully get location"); + } + }); + + task.doActionInBackground(new BackgroundAction>() { + @Override + public Response actionToDoInBackgroundThread() { + return getOpenSRPContext().userService().getLocationInformation(); + } + + @Override + public void postExecuteInUIThread(Response result) { + afterGet.onEvent(result); + } + }); + } + + private void tryRemoteLogin(final String userName, final String password, final Listener afterLoginCheck) { + if (remoteLoginTask != null && !remoteLoginTask.isCancelled()) { + remoteLoginTask.cancel(true); + } + + remoteLoginTask = new RemoteLoginTask(userName, password, afterLoginCheck); + remoteLoginTask.execute(); + } + + private void fillUserIfExists() { + if (getOpenSRPContext().userService().hasARegisteredUser()) { + userNameEditText.setText(getOpenSRPContext().allSharedPreferences().fetchRegisteredANM()); + userNameEditText.setEnabled(false); + } + } + + private void hideKeyboard() { + try { + InputMethodManager inputManager = (InputMethodManager) getSystemService(INPUT_METHOD_SERVICE); + inputManager.hideSoftInputFromWindow(getCurrentFocus().getWindowToken(), HIDE_NOT_ALWAYS); + } catch (Exception e) { + logError("Error hideKeyboard: " + e); + } + } + + private void localLoginWith(String userName, String password) { + getOpenSRPContext().userService().localLogin(userName, password); + goToHome(false); + startZScoreIntentService(); + new Thread(new Runnable() { + @Override + public void run() { + android.util.Log.i(getClass().getName(), "Starting DrishtiSyncScheduler " + DateTime.now().toString()); + DrishtiSyncScheduler.startOnlyIfConnectedToNetwork(getApplicationContext()); + android.util.Log.i(getClass().getName(), "Started DrishtiSyncScheduler " + DateTime.now().toString()); + } + }).start(); + } + + private void startZScoreIntentService() { + Intent intent = new Intent(this, ZScoreRefreshIntentService.class); + startService(intent); + } + + private void remoteLoginWith(String userName, String password, String userInfo) { + getOpenSRPContext().userService().remoteLogin(userName, password, userInfo); + goToHome(true); + DrishtiSyncScheduler.startOnlyIfConnectedToNetwork(getApplicationContext()); + } + + private void goToHome(boolean remote) { + if (!remote) { + startZScoreIntentService(); + } else { + Utils.startAsyncTask(new SaveTeamLocationsTask(), null); + } + BidanApplication.setCrashlyticsUser(getOpenSRPContext()); +// Intent intent = new Intent(this, ChildSmartRegisterActivity.class); + Intent intent = new Intent(this, BidanHomeActivity.class); + intent.putExtra(BaseRegisterActivity.IS_REMOTE_LOGIN, remote); + startActivity(intent); + IMDatabaseUtils.accessAssetsAndFillDataBaseForVaccineTypes(this, null); + + finish(); + } + + private String getVersion() throws PackageManager.NameNotFoundException { + PackageInfo packageInfo = getPackageManager().getPackageInfo(getPackageName(), 0); + return packageInfo.versionName; + } + + private String getBuildDate() throws PackageManager.NameNotFoundException, IOException { + ApplicationInfo applicationInfo = getPackageManager().getApplicationInfo(getPackageName(), 0); + ZipFile zf = new ZipFile(applicationInfo.sourceDir); + ZipEntry ze = zf.getEntry("classes.dex"); + return new SimpleDateFormat("dd MMM yyyy", Locale.getDefault()).format(new java.util.Date(ze.getTime())); + } + + public static void setLanguage() { + AllSharedPreferences allSharedPreferences = new AllSharedPreferences(getDefaultSharedPreferences(getOpenSRPContext().applicationContext())); + String preferredLocale = allSharedPreferences.fetchLanguagePreference(); + Resources res = getOpenSRPContext().applicationContext().getResources(); + // Change locale settings in the app. + DisplayMetrics dm = res.getDisplayMetrics(); + Configuration conf = res.getConfiguration(); + conf.locale = new Locale(preferredLocale); + res.updateConfiguration(conf, dm); + + } + + public static String switchLanguagePreference() { + AllSharedPreferences allSharedPreferences = new AllSharedPreferences(getDefaultSharedPreferences(getOpenSRPContext().applicationContext())); + + String preferredLocale = allSharedPreferences.fetchLanguagePreference(); + if (URDU_LOCALE.equals(preferredLocale)) { + allSharedPreferences.saveLanguagePreference(URDU_LOCALE); + Resources res = getOpenSRPContext().applicationContext().getResources(); + // Change locale settings in the app. + DisplayMetrics dm = res.getDisplayMetrics(); + android.content.res.Configuration conf = res.getConfiguration(); + conf.locale = new Locale(URDU_LOCALE); + res.updateConfiguration(conf, dm); + return URDU_LANGUAGE; + } else { + allSharedPreferences.saveLanguagePreference(ENGLISH_LOCALE); + Resources res = getOpenSRPContext().applicationContext().getResources(); + // Change locale settings in the app. + DisplayMetrics dm = res.getDisplayMetrics(); + android.content.res.Configuration conf = res.getConfiguration(); + conf.locale = new Locale(ENGLISH_LOCALE); + res.updateConfiguration(conf, dm); + return ENGLISH_LANGUAGE; + } + } + + private void positionViews() { + final ScrollView canvasSV = (ScrollView) findViewById(R.id.canvasSV); + if (canvasSV == null) { + return; + } + + final RelativeLayout canvasRL = (RelativeLayout) findViewById(R.id.canvasRL); + final LinearLayout logoCanvasLL = (LinearLayout) findViewById(R.id.logoCanvasLL); + final LinearLayout credentialsCanvasLL = (LinearLayout) findViewById(R.id.credentialsCanvasLL); + + canvasSV.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() { + + @Override + public void onGlobalLayout() { + canvasSV.getViewTreeObserver().removeOnGlobalLayoutListener(this); + + int windowHeight = canvasSV.getHeight(); + int topMargin = (windowHeight / 2) + - (credentialsCanvasLL.getHeight() / 2) + - logoCanvasLL.getHeight(); + topMargin = topMargin / 2; + + RelativeLayout.LayoutParams logoCanvasLP = (RelativeLayout.LayoutParams) logoCanvasLL.getLayoutParams(); + logoCanvasLP.setMargins(0, topMargin, 0, 0); + logoCanvasLL.setLayoutParams(logoCanvasLP); + + canvasRL.setMinimumHeight(windowHeight); + } + }); + } + + public static Context getOpenSRPContext() { + return BidanApplication.getInstance().context(); + } + + private void extractLocations(ArrayList locationList, JSONObject rawLocationData) + throws JSONException { + final String NODE = "node"; + final String CHILDREN = "children"; + String name = rawLocationData.getJSONObject(NODE).getString("locationId"); + String level = rawLocationData.getJSONObject(NODE).getJSONArray("tags").getString(0); + + if (LocationPickerView.ALLOWED_LEVELS.contains(level)) { + locationList.add(name); + } + if (rawLocationData.has(CHILDREN)) { + Iterator childIterator = rawLocationData.getJSONObject(CHILDREN).keys(); + while (childIterator.hasNext()) { + String curChildKey = childIterator.next(); + extractLocations(locationList, rawLocationData.getJSONObject(CHILDREN).getJSONObject(curChildKey)); + } + } + + } + + //////////////////////////////////////////////////////////////// +// Inner classes +//////////////////////////////////////////////////////////////// + private class RemoteLoginTask extends AsyncTask { + private final String userName; + private final String password; + private final Listener afterLoginCheck; + + private RemoteLoginTask(String userName, String password, Listener afterLoginCheck) { + this.userName = userName; + this.password = password; + this.afterLoginCheck = afterLoginCheck; + } + + @Override + protected void onPreExecute() { + super.onPreExecute(); + progressDialog.show(); + } + + @Override + protected LoginResponse doInBackground(Void... params) { + return getOpenSRPContext().userService().isValidRemoteLogin(userName, password); + } + + @Override + protected void onPostExecute(LoginResponse loginResponse) { + super.onPostExecute(loginResponse); + if (!isDestroyed()) { + progressDialog.dismiss(); + afterLoginCheck.onEvent(loginResponse); + } + } + } + + private class SaveTeamLocationsTask extends AsyncTask { + + @Override + protected Void doInBackground(Void... params) { + ArrayList locationsCSV = locationsCSV(); + + if (locationsCSV.isEmpty()) { + return null; + } + + Utils.writePreference(BidanApplication.getInstance().getApplicationContext(), LocationPickerView.PREF_TEAM_LOCATIONS, StringUtils.join(locationsCSV, ",")); + return null; + } + + public ArrayList locationsCSV() { + final String LOCATIONS_HIERARCHY = "locationsHierarchy"; + final String MAP = "map"; + JSONObject locationData; + ArrayList locations = new ArrayList<>(); + try { + locationData = new JSONObject(BidanApplication.getInstance().context().anmLocationController().get()); + if (locationData.has(LOCATIONS_HIERARCHY) && locationData.getJSONObject(LOCATIONS_HIERARCHY).has(MAP)) { + JSONObject map = locationData.getJSONObject(LOCATIONS_HIERARCHY).getJSONObject(MAP); + Iterator keys = map.keys(); + while (keys.hasNext()) { + String curKey = keys.next(); + extractLocations(locations, map.getJSONObject(curKey)); + } + } + } catch (Exception e) { + android.util.Log.e(getClass().getCanonicalName(), android.util.Log.getStackTraceString(e)); + } + return locations; + } + } + +} diff --git a/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/PathJsonFormActivity.java b/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/PathJsonFormActivity.java new file mode 100644 index 0000000..717859a --- /dev/null +++ b/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/PathJsonFormActivity.java @@ -0,0 +1,639 @@ +package org.smartregister.bidan.activity; + +import android.graphics.Color; +import android.graphics.Typeface; +import android.os.Bundle; +import android.view.View; + +import com.rengwuxian.materialedittext.MaterialEditText; +import com.vijay.jsonwizard.activities.JsonFormActivity; +import com.vijay.jsonwizard.constants.JsonFormConstants; + +import org.apache.commons.lang3.StringUtils; +import org.json.JSONArray; +import org.json.JSONException; +import org.json.JSONObject; +import org.smartregister.bidan.application.BidanApplication; +import org.smartregister.bidan.repository.StockRepository; +import org.smartregister.immunization.repository.VaccineTypeRepository; +import org.smartregister.bidan.fragment.PathJsonFormFragment; + +import java.util.ArrayList; +import java.util.Date; + +import util.JsonFormUtils; + +/** + * Created by keyman on 11/04/2017. + */ +public class PathJsonFormActivity extends JsonFormActivity { + + private int generatedId = -1; + private MaterialEditText balancetextview; + private PathJsonFormFragment pathJsonFormFragment; + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + } + + @Override + public void initializeFormFragment() { + pathJsonFormFragment = PathJsonFormFragment.getFormFragment(JsonFormConstants.FIRST_STEP_NAME); + getSupportFragmentManager().beginTransaction() + .add(com.vijay.jsonwizard.R.id.container, pathJsonFormFragment).commit(); + } + + @Override + public void writeValue(String stepName, String key, String value, String openMrsEntityParent, String openMrsEntity, String openMrsEntityId) throws JSONException { + super.writeValue(stepName, key, value, openMrsEntityParent, openMrsEntity, openMrsEntityId); + refreshCalculateLogic(key, value); + + } + + @Override + public void onFormFinish() { + super.onFormFinish(); + } + + private void refreshCalculateLogic(String key, String value) { + stockVialsenteredinReceivedForm(key, value); + stockDateEnteredinReceivedForm(key, value); + stockDateEnteredinIssuedForm(key, value); + stockVialsEnteredinIssuedForm(key, value); + stockWastedVialsEnteredinIssuedForm(key, value); + stockDateEnteredinAdjustmentForm(key, value); + stockVialsenteredinAdjustmentForm(key, value); + } + + private void stockDateEnteredinIssuedForm(String key, String value) { + JSONObject object = getStep("step1"); + try { + if (object.getString("title").contains("Stock Issued")) { + StockRepository str = BidanApplication.getInstance().stockRepository(); + if (key.equalsIgnoreCase("Date_Stock_Issued") && value != null && !value.equalsIgnoreCase("")) { + if (balancetextview == null) { + ArrayList views = getFormDataViews(); + for (int i = 0; i < views.size(); i++) { + if (views.get(i) instanceof MaterialEditText) { + if (((String) views.get(i).getTag(com.vijay.jsonwizard.R.id.key)).equalsIgnoreCase("Vials_Issued")) { + balancetextview = (MaterialEditText) views.get(i); + } + } + } + } + String label = ""; + int currentBalance = 0; + int displaybalance = 0; + int existingbalance = 0; + int newBalance = 0; + Date encounterDate = new Date(); + String vialsvalue = ""; + String wastedvials = "0"; + String vaccineName = object.getString("title").replace("Stock Issued", "").trim(); + JSONArray fields = object.getJSONArray("fields"); + for (int i = 0; i < fields.length(); i++) { + JSONObject questions = fields.getJSONObject(i); + if (questions.has("key")) { + if (questions.getString("key").equalsIgnoreCase("Date_Stock_Issued")) { + if (questions.has("value")) { + label = questions.getString("value"); + if (label != null && StringUtils.isNotBlank(label)) { + Date dateTime = JsonFormUtils.formatDate(label, false); + if (dateTime != null) { + encounterDate = dateTime; + } + } + + currentBalance = str.getVaccineUsedToday(encounterDate.getTime(), checkifmeasles(vaccineName.toLowerCase())); + } + } + + if (questions.getString("key").equalsIgnoreCase("Vials_Wasted")) { + if (questions.has("value")) { + if (!StringUtils.isBlank(questions.getString("value"))) { + wastedvials = questions.getString("value"); + } + } else { + wastedvials = "0"; + } + } + if (questions.getString("key").equalsIgnoreCase("Vials_Issued")) { + if (questions.has("value")) { + if (!StringUtils.isBlank(questions.getString("value"))) { + vialsvalue = questions.getString("value"); + } + } else { + pathJsonFormFragment.getLabelViewFromTag("Balance", ""); + } + } + + } + } + if (!StringUtils.isBlank(vialsvalue) && StringUtils.isNumeric(vialsvalue) && StringUtils.isNumeric(wastedvials)) { + newBalance = str.getBalanceFromNameAndDate(vaccineName, encounterDate.getTime()) - Integer.parseInt(vialsvalue) - Integer.parseInt(wastedvials); + pathJsonFormFragment.getLabelViewFromTag("Balance", "New balance: " + newBalance); + } + + int DosesPerVial = 0; + int vialsused = 0; + VaccineTypeRepository vaccineTypeRepository = BidanApplication.getInstance().vaccineTypeRepository(); + int dosesPerVial = vaccineTypeRepository.getDosesPerVial(vaccineName); + if (currentBalance % dosesPerVial == 0) { + vialsused = currentBalance / dosesPerVial; + } else if (currentBalance != 0) { + vialsused = (currentBalance / dosesPerVial) + 1; + } + initializeBalanceTextView(currentBalance, vialsused, balancetextview); + } + } + } catch (JSONException e) { + e.printStackTrace(); + } + } + + private void initializeBalanceTextView(int currentBalance, int vialsUsed, MaterialEditText balanceTextView) { + if (balanceTextView != null) { + balanceTextView.setErrorColor(Color.BLACK); + if (currentBalance != 0) { + Typeface typeFace = Typeface.create(balanceTextView.getTypeface(), Typeface.ITALIC); + balanceTextView.setAccentTypeface(typeFace); + balanceTextView.setError(currentBalance + " child(ren) vaccinated today. Assuming " + vialsUsed + " vial(s) used."); + } else { + balanceTextView.setError(""); + } + } + } + + private void stockVialsEnteredinIssuedForm(String key, String value) { + JSONObject object = getStep("step1"); + try { + if (object.getString("title").contains("Stock Issued")) { + StockRepository str = BidanApplication.getInstance().stockRepository(); + if (key.equalsIgnoreCase("Vials_Issued")) { + if (balancetextview == null) { + ArrayList views = getFormDataViews(); + for (int i = 0; i < views.size(); i++) { + if (views.get(i) instanceof MaterialEditText) { + if (((String) views.get(i).getTag(com.vijay.jsonwizard.R.id.key)).equalsIgnoreCase("Vials_Issued")) { + balancetextview = (MaterialEditText) views.get(i); + } + } + } + } + String label = ""; + int currentBalanceVaccineUsed = 0; + int displaybalance = 0; + int newBalance = 0; + Date encounterDate = new Date(); + String vialsvalue = ""; + String wastedvials = "0"; + String vaccineName = object.getString("title").replace("Stock Issued", "").trim(); + int existingbalance = str.getBalanceFromNameAndDate(vaccineName, encounterDate.getTime()); + JSONArray fields = object.getJSONArray("fields"); + for (int i = 0; i < fields.length(); i++) { + JSONObject questions = fields.getJSONObject(i); + if (questions.has("key")) { + if (questions.getString("key").equalsIgnoreCase("Date_Stock_Issued")) { + if (questions.has("value")) { + label = questions.getString("value"); + if (label != null && StringUtils.isNotBlank(label)) { + Date dateTime = JsonFormUtils.formatDate(label, false); + if (dateTime != null) { + encounterDate = dateTime; + } + } + existingbalance = str.getBalanceFromNameAndDate(vaccineName, encounterDate.getTime()); + currentBalanceVaccineUsed = str.getVaccineUsedToday(encounterDate.getTime(), checkifmeasles(vaccineName.toLowerCase())); + + } + } + + if (questions.getString("key").equalsIgnoreCase("Vials_Wasted")) { + + if (questions.has("value")) { + if (!StringUtils.isBlank(questions.getString("value")) && StringUtils.isNumeric(questions.getString("value"))) { + wastedvials = questions.getString("value"); + } + } else { + wastedvials = "0"; + } + } + + } + } + pathJsonFormFragment.getLabelViewFromTag("Balance", ""); + + if (value != null && !StringUtils.isBlank(value) && StringUtils.isNumeric(value) && StringUtils.isNumeric(wastedvials)) { + + newBalance = existingbalance - Integer.parseInt(value) - Integer.parseInt(wastedvials); + pathJsonFormFragment.getLabelViewFromTag("Balance", "New balance: " + newBalance); + } else { + pathJsonFormFragment.getLabelViewFromTag("Balance", ""); + } + int DosesPerVial = 0; + int vialsused = 0; + VaccineTypeRepository vaccineTypeRepository = BidanApplication.getInstance().vaccineTypeRepository(); + int dosesPerVial = vaccineTypeRepository.getDosesPerVial(vaccineName); + if (currentBalanceVaccineUsed % dosesPerVial == 0) { + vialsused = currentBalanceVaccineUsed / dosesPerVial; + } else if (currentBalanceVaccineUsed != 0) { + vialsused = (currentBalanceVaccineUsed / dosesPerVial) + 1; + } + initializeBalanceTextView(currentBalanceVaccineUsed, vialsused, balancetextview); + } + } + } catch (JSONException e) { + e.printStackTrace(); + } + } + + private void stockWastedVialsEnteredinIssuedForm(String key, String value) { + JSONObject object = getStep("step1"); + try { + if (object.getString("title").contains("Stock Issued")) { + StockRepository str = BidanApplication.getInstance().stockRepository(); + if (key.equalsIgnoreCase("Vials_Wasted")) { + if (balancetextview == null) { + ArrayList views = getFormDataViews(); + for (int i = 0; i < views.size(); i++) { + if (views.get(i) instanceof MaterialEditText) { + if (((String) views.get(i).getTag(com.vijay.jsonwizard.R.id.key)).equalsIgnoreCase("Vials_Issued")) { + balancetextview = (MaterialEditText) views.get(i); + } + } + } + } + String label = ""; + int currentBalanceVaccineUsed = 0; + int displaybalance = 0; + int newBalance = 0; + Date encounterDate = new Date(); + String vialsvalue = ""; + String wastedvials = value; + String vaccineName = object.getString("title").replace("Stock Issued", "").trim(); + int existingbalance = str.getBalanceFromNameAndDate(vaccineName, encounterDate.getTime()); + + JSONArray fields = object.getJSONArray("fields"); + for (int i = 0; i < fields.length(); i++) { + JSONObject questions = fields.getJSONObject(i); + if (questions.has("key")) { + if (questions.getString("key").equalsIgnoreCase("Date_Stock_Issued") && questions.has("value")) { + label = questions.getString("value"); + if (label != null && StringUtils.isNotBlank(label)) { + Date dateTime = JsonFormUtils.formatDate(label, false); + if (dateTime != null) { + encounterDate = dateTime; + } + } + + existingbalance = str.getBalanceFromNameAndDate(vaccineName, encounterDate.getTime()); + currentBalanceVaccineUsed = str.getVaccineUsedToday(encounterDate.getTime(), checkifmeasles(vaccineName.toLowerCase())); + } + + if (questions.getString("key").equalsIgnoreCase("Vials_Issued")) { + + if (questions.has("value")) { + if (!StringUtils.isBlank(questions.getString("value")) && StringUtils.isNumeric(questions.getString("value"))) { + vialsvalue = questions.getString("value"); + } + } else { + vialsvalue = "0"; + } + } + } + } + pathJsonFormFragment.getLabelViewFromTag("Balance", ""); + if (wastedvials == null || StringUtils.isBlank(wastedvials)) { + wastedvials = "0"; + } + if (vialsvalue != null && !StringUtils.isBlank(vialsvalue) && StringUtils.isNumeric(wastedvials)) { + + newBalance = existingbalance - Integer.parseInt(vialsvalue) - Integer.parseInt(wastedvials); + pathJsonFormFragment.getLabelViewFromTag("Balance", "New balance: " + newBalance); + } else { + pathJsonFormFragment.getLabelViewFromTag("Balance", ""); + } + int DosesPerVial = 0; + int vialsused = 0; + VaccineTypeRepository vaccine_typesRepository = BidanApplication.getInstance().vaccineTypeRepository(); + int dosesPerVial = vaccine_typesRepository.getDosesPerVial(vaccineName); + if (currentBalanceVaccineUsed % dosesPerVial == 0) { + vialsused = currentBalanceVaccineUsed / dosesPerVial; + } else if (currentBalanceVaccineUsed != 0) { + vialsused = (currentBalanceVaccineUsed / dosesPerVial) + 1; + } + initializeBalanceTextView(currentBalanceVaccineUsed, vialsused, balancetextview); + } + } + } catch (JSONException e) { + e.printStackTrace(); + } + } + + private void stockDateEnteredinReceivedForm(String key, String value) { + JSONObject object = getStep("step1"); + try { + if (object.getString("title").contains("Stock Received")) { + if (key.equalsIgnoreCase("Date_Stock_Received") && value != null && !value.equalsIgnoreCase("")) { +// if(balancetextview == null) { +// ArrayList views = getFormDataViews(); +// for (int i = 0; i < views.size(); i++) { +// if (views.get(i) instanceof MaterialEditText) { +// if (((String) views.get(i).getTag(com.vijay.jsonwizard.R.id.key)).equalsIgnoreCase("Vials_Received")) { +// balancetextview = (MaterialEditText) views.get(i); +// } +// } +// } +// } + String label = ""; + int currentBalance = 0; + int displaybalance = 0; + String vialsvalue = ""; + JSONArray fields = object.getJSONArray("fields"); + for (int i = 0; i < fields.length(); i++) { + JSONObject questions = fields.getJSONObject(i); + if (questions.has("key")) { + if (questions.getString("key").equalsIgnoreCase("Date_Stock_Received")) { + if (questions.has("value")) { + Date encounterDate = new Date(); + label = questions.getString("value"); + if (label != null && StringUtils.isNotBlank(label)) { + Date dateTime = JsonFormUtils.formatDate(label, false); + if (dateTime != null) { + encounterDate = dateTime; + } + } + + String vaccineName = object.getString("title").replace("Stock Received", "").trim(); + StockRepository str = BidanApplication.getInstance().stockRepository(); + currentBalance = str.getBalanceFromNameAndDate(vaccineName, encounterDate.getTime()); + } + } + if (questions.getString("key").equalsIgnoreCase("Vials_Received")) { + if (questions.has("value")) { + label = questions.getString("value"); + vialsvalue = label; + } + } + if (vialsvalue != null && !vialsvalue.equalsIgnoreCase("") && StringUtils.isNumeric(vialsvalue)) { + displaybalance = currentBalance + Integer.parseInt(vialsvalue); +// if (balancetextview != null) { +// balancetextview.setErrorColor(getResources().getColor(R.color.dark_grey)); +// balancetextview.setError("New balance : " + displaybalance); +// } + pathJsonFormFragment.getLabelViewFromTag("Balance", "New balance: " + displaybalance); + + } else { + pathJsonFormFragment.getLabelViewFromTag("Balance", ""); + + } + } + } + } + } + } catch (JSONException e) { + e.printStackTrace(); + } + + } + + private void stockVialsenteredinReceivedForm(String key, String value) { + JSONObject object = getStep("step1"); + try { + if (object.getString("title").contains("Stock Received")) { + if (key.equalsIgnoreCase("Vials_Received") && value != null && !value.equalsIgnoreCase("")) { +// if(balancetextview == null) { +// ArrayList views = getFormDataViews(); +// for (int i = 0; i < views.size(); i++) { +// if (views.get(i) instanceof MaterialEditText) { +// if (((String) views.get(i).getTag(com.vijay.jsonwizard.R.id.key)).equalsIgnoreCase(key)) { +// balancetextview = (MaterialEditText) views.get(i); +// } +// } +// } +// } + String label = ""; + int currentBalance = 0; + int displaybalance = 0; + JSONArray fields = object.getJSONArray("fields"); + for (int i = 0; i < fields.length(); i++) { + JSONObject questions = fields.getJSONObject(i); + if (questions.has("key")) { + if (questions.getString("key").equalsIgnoreCase("Date_Stock_Received")) { + if (questions.has("value")) { + Date encounterDate = new Date(); + label = questions.getString("value"); + if (label != null && StringUtils.isNotBlank(label)) { + Date dateTime = JsonFormUtils.formatDate(label, false); + if (dateTime != null) { + encounterDate = dateTime; + } + } + + String vaccineName = object.getString("title").replace("Stock Received", "").trim(); + StockRepository str = BidanApplication.getInstance().stockRepository(); + currentBalance = str.getBalanceFromNameAndDate(vaccineName, encounterDate.getTime()); + } + } + + if (StringUtils.isNotBlank(value) && StringUtils.isNumeric(value)) { + displaybalance = currentBalance + Integer.parseInt(value); + pathJsonFormFragment.getLabelViewFromTag("Balance", "New balance: " + displaybalance); + + } else { + pathJsonFormFragment.getLabelViewFromTag("Balance", ""); + } + } + } + } else { + pathJsonFormFragment.getLabelViewFromTag("Balance", ""); + } + } + } catch ( + JSONException e + ) + + { + e.printStackTrace(); + } + + } + + private void stockDateEnteredinAdjustmentForm(String key, String value) { + JSONObject object = getStep("step1"); + try { + if (object.getString("title").contains("Stock Loss/Adjustment")) { + if (key.equalsIgnoreCase("Date_Stock_loss_adjustment") && value != null && !value.equalsIgnoreCase("")) { +// if(balancetextview == null) { +// ArrayList views = getFormDataViews(); +// for (int i = 0; i < views.size(); i++) { +// if (views.get(i) instanceof MaterialEditText) { +// if (((String) views.get(i).getTag(com.vijay.jsonwizard.R.id.key)).equalsIgnoreCase("Vials_Received")) { +// balancetextview = (MaterialEditText) views.get(i); +// } +// } +// } +// } + String label = ""; + int currentBalance = 0; + int displaybalance = 0; + String vialsvalue = ""; + JSONArray fields = object.getJSONArray("fields"); + for (int i = 0; i < fields.length(); i++) { + JSONObject questions = fields.getJSONObject(i); + if (questions.has("key")) { + if (questions.getString("key").equalsIgnoreCase("Date_Stock_loss_adjustment")) { + if (questions.has("value")) { + Date encounterDate = new Date(); + label = questions.getString("value"); + if (label != null && StringUtils.isNotBlank(label)) { + Date dateTime = JsonFormUtils.formatDate(label, false); + if (dateTime != null) { + encounterDate = dateTime; + } + } + + String vaccineName = object.getString("title").replace("Stock Loss/Adjustment", "").trim(); + StockRepository str = BidanApplication.getInstance().stockRepository(); + currentBalance = str.getBalanceFromNameAndDate(vaccineName, encounterDate.getTime()); + } + } + if (questions.getString("key").equalsIgnoreCase("Vials_Adjustment")) { + if (questions.has("value")) { + label = questions.getString("value"); + vialsvalue = label; + } + } + if (vialsvalue != null && !vialsvalue.equalsIgnoreCase("") && StringUtils.isNumeric(vialsvalue)) { + displaybalance = currentBalance + Integer.parseInt(vialsvalue); +// if (balancetextview != null) { +// balancetextview.setErrorColor(getResources().getColor(R.color.dark_grey)); +// balancetextview.setError("New balance : " + displaybalance); +// } + pathJsonFormFragment.getLabelViewFromTag("Balance", "New balance: " + displaybalance); + + } else { + pathJsonFormFragment.getLabelViewFromTag("Balance", ""); + + } + } + } + } + } + } catch (JSONException e) { + e.printStackTrace(); + } + } + + private void stockVialsenteredinAdjustmentForm(String key, String value) { + JSONObject object = getStep("step1"); + try { + if (object.getString("title").contains("Stock Loss/Adjustment")) { + if (key.equalsIgnoreCase("Vials_Adjustment") && value != null && !value.equalsIgnoreCase("")) { +// if(balancetextview == null) { +// ArrayList views = getFormDataViews(); +// for (int i = 0; i < views.size(); i++) { +// if (views.get(i) instanceof MaterialEditText) { +// if (((String) views.get(i).getTag(com.vijay.jsonwizard.R.id.key)).equalsIgnoreCase(key)) { +// balancetextview = (MaterialEditText) views.get(i); +// } +// } +// } +// } + String label = ""; + int currentBalance = 0; + int displaybalance = 0; + JSONArray fields = object.getJSONArray("fields"); + for (int i = 0; i < fields.length(); i++) { + JSONObject questions = fields.getJSONObject(i); + if (questions.has("key")) { + if (questions.getString("key").equalsIgnoreCase("Date_Stock_loss_adjustment")) { + if (questions.has("value")) { + Date encounterDate = new Date(); + label = questions.getString("value"); + if (label != null && StringUtils.isNotBlank(label)) { + Date dateTime = JsonFormUtils.formatDate(label, false); + if (dateTime != null) { + encounterDate = dateTime; + } + } + + String vaccineName = object.getString("title").replace("Stock Loss/Adjustment", "").trim(); + StockRepository str = BidanApplication.getInstance().stockRepository(); + currentBalance = str.getBalanceFromNameAndDate(vaccineName, encounterDate.getTime()); + } + } + if (StringUtils.isNotBlank(value) && !value.equalsIgnoreCase("-") && StringUtils.isNumeric(value)) { + displaybalance = currentBalance + Integer.parseInt(value); +// if (balancetextview != null) { +// balancetextview.setErrorColor(Color.BLACK); +// balancetextview.setError("New balance : " + displaybalance); +// } + pathJsonFormFragment.getLabelViewFromTag("Balance", "New balance: " + displaybalance); + + } else { + pathJsonFormFragment.getLabelViewFromTag("Balance", ""); + } + } + } + } else { + pathJsonFormFragment.getLabelViewFromTag("Balance", ""); + } + } + } catch (JSONException e) { + e.printStackTrace(); + } + } + + private String checkifmeasles(String vaccineName) { + if (vaccineName.equalsIgnoreCase("M/MR")) { + return "measles"; + } + return vaccineName; + } + + public boolean checkIfBalanceNegative() { + boolean balancecheck = true; + String balancestring = pathJsonFormFragment.getRelevantTextViewString("Balance"); + + if (balancestring.contains("New balance") && StringUtils.isNumeric(balancestring)) { + int balance = Integer.parseInt(balancestring.replace("New balance:", "").trim()); + if (balance < 0) { + balancecheck = false; + } + } + + return balancecheck; + } + + public boolean checkIfAtLeastOneServiceGiven() { + JSONObject object = getStep("step1"); + try { + if (object.getString("title").contains("Record out of catchment area service")) { + JSONArray fields = object.getJSONArray("fields"); + for (int i = 0; i < fields.length(); i++) { + JSONObject vaccineGroup = fields.getJSONObject(i); + if (vaccineGroup.has("key") && vaccineGroup.has("is_vaccine_group")) { + if (vaccineGroup.getBoolean("is_vaccine_group") && vaccineGroup.has("options")) { + JSONArray vaccineOptions = vaccineGroup.getJSONArray("options"); + for (int j = 0; j < vaccineOptions.length(); j++) { + JSONObject vaccineOption = vaccineOptions.getJSONObject(j); + if (vaccineOption.has("value") && vaccineOption.getBoolean("value")) { + return true; + } + } + } + } else if (vaccineGroup.has("key") && vaccineGroup.getString("key").equals("Weight_Kg") && vaccineGroup.has("value") && vaccineGroup.getString("value").length() > 0) { + return true; + } + } + } + } catch (JSONException e) { + e.printStackTrace(); + } + + return false; + } +} + diff --git a/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/ProviderProfileActivity.java b/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/ProviderProfileActivity.java new file mode 100644 index 0000000..7542746 --- /dev/null +++ b/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/ProviderProfileActivity.java @@ -0,0 +1,76 @@ +package org.smartregister.bidan.activity; + +import android.app.Activity; +import android.os.Bundle; +import android.view.Window; +import android.widget.TableLayout; +import android.widget.TextView; + +import org.smartregister.Context; +import org.smartregister.immunization.util.VaccinatorUtils; +import org.smartregister.bidan.R; +import org.smartregister.bidan.application.BidanApplication; +import org.smartregister.view.activity.DrishtiApplication; + +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.HashMap; + +import static org.smartregister.util.Utils.convertDateFormat; +import static org.smartregister.util.Utils.getValue; +import static org.smartregister.util.Utils.nonEmptyValue; +import static util.Utils.getDataRow; + +public class ProviderProfileActivity extends Activity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + requestWindowFeature(Window.FEATURE_NO_TITLE); + super.onCreate(savedInstanceState); + + if (context().IsUserLoggedOut()) { + DrishtiApplication application = (DrishtiApplication) getApplication(); + application.logoutCurrentUser(); + return; + } + + setContentView(R.layout.provider_profile); + + HashMap providerdt = VaccinatorUtils.providerDetails(); + + ((TextView) findViewById(R.id.detail_heading)).setText("Provider Details"); + + String programId = nonEmptyValue(providerdt, true, false, "provider_id"); + ((TextView) findViewById(R.id.details_id_label)).setText(programId); + + ((TextView) findViewById(R.id.detail_today)).setText(convertDateFormat(new SimpleDateFormat("yyyy-MM-dd").format(new Date()), true)); + + //BASIC INFORMATION + TableLayout dt = (TableLayout) findViewById(R.id.report_detail_info_table1); + + dt.addView(getDataRow(this, "ID", programId, null)); + dt.addView(getDataRow(this, "Name", getValue(providerdt, "provider_name", true), null)); + dt.addView(getDataRow(this, "Team Identifier", getValue(providerdt, "provider_identifier", false), null)); + dt.addView(getDataRow(this, "Team", getValue(providerdt, "provider_team", true), null)); + + dt.addView(getDataRow(this, "Province", getValue(providerdt, "provider_province", true), null)); + dt.addView(getDataRow(this, "City", getValue(providerdt, "provider_city", true), null)); + dt.addView(getDataRow(this, "Town", getValue(providerdt, "provider_town", true), null)); + dt.addView(getDataRow(this, "UC", getValue(providerdt, "provider_uc", true), null)); + dt.addView(getDataRow(this, "Center", getValue(providerdt, "provider_location_id", true), null)); + } + + @Override + protected void onResume() { + super.onResume(); + if (context().IsUserLoggedOut()) { + DrishtiApplication application = (DrishtiApplication) getApplication(); + application.logoutCurrentUser(); + } + + } + + private Context context() { + return BidanApplication.getInstance().context(); + } +} diff --git a/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/ReportSummaryActivity.java b/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/ReportSummaryActivity.java new file mode 100644 index 0000000..0f9c470 --- /dev/null +++ b/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/ReportSummaryActivity.java @@ -0,0 +1,144 @@ +package org.smartregister.bidan.activity; + +import android.graphics.drawable.ColorDrawable; +import android.os.Bundle; +import android.text.TextUtils; +import android.view.View; +import android.widget.LinearLayout; + +import org.smartregister.bidan.domain.Tally; +import org.smartregister.bidan.R; +import org.smartregister.bidan.toolbar.SimpleToolbar; +import org.smartregister.bidan.view.IndicatorCategoryView; +import org.smartregister.view.customcontrols.CustomFontTextView; + +import java.io.Serializable; +import java.util.ArrayList; +import java.util.Collections; +import java.util.Comparator; +import java.util.LinkedHashMap; + +public class ReportSummaryActivity extends BaseActivity { + public static final String EXTRA_TALLIES = "tallies"; + public static final String EXTRA_SUB_TITLE = "sub_title"; + public static final String EXTRA_TITLE = "title"; + private LinkedHashMap> tallies; + private String subTitle; + + @SuppressWarnings("unchecked") + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + + getSupportActionBar().setDisplayHomeAsUpEnabled(true); + + SimpleToolbar toolbar = (SimpleToolbar) getToolbar(); + toolbar.setNavigationOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + finish(); + } + }); + toolbar.setBackground(new ColorDrawable(getResources().getColor(R.color.toolbar_grey))); + + Bundle extras = this.getIntent().getExtras(); + if (extras != null) { + Serializable talliesSerializable = extras.getSerializable(EXTRA_TALLIES); + if (talliesSerializable != null && talliesSerializable instanceof ArrayList) { + ArrayList tallies = (ArrayList) talliesSerializable; + setTallies(tallies, false); + } + + Serializable submittedBySerializable = extras.getSerializable(EXTRA_SUB_TITLE); + if (submittedBySerializable != null && submittedBySerializable instanceof String) { + subTitle = (String) submittedBySerializable; + } + + Serializable titleSerializable = extras.getSerializable(EXTRA_TITLE); + if (titleSerializable != null && titleSerializable instanceof String) { + toolbar.setTitle((String) titleSerializable); + } + } + } + + @Override + protected void onResume() { + super.onResume(); + CustomFontTextView submittedBy = (CustomFontTextView) findViewById(R.id.submitted_by); + if (!TextUtils.isEmpty(this.subTitle)) { + submittedBy.setVisibility(View.VISIBLE); + submittedBy.setText(this.subTitle); + } else { + submittedBy.setVisibility(View.GONE); + } + refreshIndicatorViews(); + } + + @Override + protected int getContentView() { + return R.layout.activity_report_summary; + } + + @Override + protected int getDrawerLayoutId() { + return R.id.drawer_layout; + } + + @Override + protected int getToolbarId() { + return SimpleToolbar.TOOLBAR_ID; + } + + @Override + protected Class onBackActivity() { + return null; + } + + public void setTallies(ArrayList tallies) { + setTallies(tallies, true); + } + + private void setTallies(ArrayList tallies, boolean refreshViews) { + this.tallies = new LinkedHashMap<>(); + Collections.sort(tallies, new Comparator() { + @Override + public int compare(Tally lhs, Tally rhs) { + long lhsId = lhs.getIndicator().getId(); + long rhsId = rhs.getIndicator().getId(); + return (int) (lhsId - rhsId); + } + }); + + for (Tally curTally : tallies) { + if (curTally != null && !TextUtils.isEmpty(curTally.getIndicator().getCategory())) { + if (!this.tallies.containsKey(curTally.getIndicator().getCategory()) + || this.tallies.get(curTally.getIndicator().getCategory()) == null) { + this.tallies.put(curTally.getIndicator().getCategory(), new ArrayList()); + } + + this.tallies.get(curTally.getIndicator().getCategory()).add(curTally); + } + } + + if (refreshViews) refreshIndicatorViews(); + } + + private void refreshIndicatorViews() { + LinearLayout indicatorCanvas = (LinearLayout) findViewById(R.id.indicator_canvas); + indicatorCanvas.removeAllViews(); + + if (tallies != null) { + boolean firstExpanded = false; + for (String curCategoryName : tallies.keySet()) { + IndicatorCategoryView curCategoryView = new IndicatorCategoryView(this); + curCategoryView.setTallies(curCategoryName, tallies.get(curCategoryName)); + indicatorCanvas.addView(curCategoryView); + if (!firstExpanded) { + firstExpanded = true; + curCategoryView.setExpanded(true); + } + } + } + } + +} diff --git a/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/SettingsActivity.java b/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/SettingsActivity.java new file mode 100644 index 0000000..4f90687 --- /dev/null +++ b/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/SettingsActivity.java @@ -0,0 +1,103 @@ +package org.smartregister.bidan.activity; + +import android.app.AlertDialog; +import android.app.Dialog; +import android.content.DialogInterface; +import android.content.SharedPreferences; +import android.os.Bundle; +import android.preference.EditTextPreference; +import android.preference.Preference; +import android.preference.PreferenceActivity; +import android.preference.PreferenceFragment; +import android.preference.PreferenceManager; +import android.view.View; +import android.widget.Toast; + +import org.apache.commons.validator.routines.UrlValidator; +import org.smartregister.bidan.R; +import org.smartregister.repository.AllSharedPreferences; + +import java.net.MalformedURLException; +import java.net.URL; + +import static org.smartregister.util.Log.logError; +import static org.smartregister.util.Log.logInfo; + +public class SettingsActivity extends PreferenceActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + + getFragmentManager().beginTransaction().replace(android.R.id.content, new MyPreferenceFragment()).commit(); + } + + + public static class MyPreferenceFragment extends PreferenceFragment { + @Override + public void onCreate(final Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + addPreferencesFromResource(R.xml.preferences); + + Preference baseUrlPreference = findPreference("DRISHTI_BASE_URL"); + if (baseUrlPreference != null) { + final EditTextPreference baseUrlEditTextPreference = (EditTextPreference) baseUrlPreference; + baseUrlEditTextPreference.setOnPreferenceChangeListener(new Preference.OnPreferenceChangeListener() { + @Override + public boolean onPreferenceChange(Preference preference, Object newValue) { + if (newValue != null) { + updateUrl(newValue.toString()); + } + return true; + } + }); + + + baseUrlEditTextPreference.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() { + @Override + public boolean onPreferenceClick(Preference preference) { + final Dialog dialog = baseUrlEditTextPreference.getDialog(); + ((AlertDialog) dialog).getButton(DialogInterface.BUTTON_POSITIVE).setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + String newValue = baseUrlEditTextPreference.getEditText().getText().toString(); + UrlValidator urlValidator = new UrlValidator(new String[]{"http", "https"}); + if (newValue != null && urlValidator.isValid(newValue)) { + baseUrlEditTextPreference.onClick(null, DialogInterface.BUTTON_POSITIVE); + dialog.dismiss(); + } else { + Toast.makeText(getActivity(), "Please enter a valid url!", Toast.LENGTH_SHORT).show(); + } + } + }); + return false; + } + }); + } + } + + private void updateUrl(String baseUrl) { + try { + SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(getActivity()); + AllSharedPreferences allSharedPreferences = new AllSharedPreferences(preferences); + + URL url = new URL(baseUrl); + + String base = url.getProtocol() + "://" + url.getHost(); + int port = url.getPort(); + + logInfo("Base URL: " + base); + logInfo("Port: " + port); + + allSharedPreferences.saveHost(base); + allSharedPreferences.savePort(port); + + logInfo("Saved URL: " + allSharedPreferences.fetchHost("")); + logInfo("Port: " + allSharedPreferences.fetchPort(0)); + } catch (MalformedURLException e) { + logError("Malformed Url: " + baseUrl); + } + } + } + +} diff --git a/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/StockActivity.java b/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/StockActivity.java new file mode 100644 index 0000000..47b012a --- /dev/null +++ b/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/StockActivity.java @@ -0,0 +1,229 @@ +package org.smartregister.bidan.activity; + +import android.content.Context; +import android.content.Intent; +import android.os.Bundle; +import android.support.v4.view.GravityCompat; +import android.support.v4.widget.DrawerLayout; +import android.support.v7.app.ActionBarDrawerToggle; +import android.view.LayoutInflater; +import android.view.MenuItem; +import android.view.View; +import android.view.ViewGroup; +import android.widget.BaseAdapter; +import android.widget.GridView; +import android.widget.LinearLayout; +import android.widget.TextView; + +import org.smartregister.bidan.application.BidanApplication; +import org.smartregister.bidan.repository.StockRepository; +import org.smartregister.bidan.toolbar.LocationSwitcherToolbar; +import org.smartregister.immunization.domain.VaccineType; +import org.smartregister.bidan.R; +import org.smartregister.repository.AllSharedPreferences; + +import java.util.ArrayList; + +/** + * Created by raihan on 5/23/17. + */ +public class StockActivity extends BaseActivity { + private GridView stockGrid; + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(getContentView()); + + + LocationSwitcherToolbar toolbar = (LocationSwitcherToolbar) getToolbar(); + toolbar.setNavigationOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + Intent intent = new Intent(StockActivity.this, ChildSmartRegisterActivity.class); + intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); + startActivity(intent); + finish(); + } + }); + DrawerLayout drawer = (DrawerLayout) findViewById(getDrawerLayoutId()); + final ActionBarDrawerToggle toggle = new ActionBarDrawerToggle( + this, drawer, toolbar, R.string.navigation_drawer_open, R.string.navigation_drawer_close); + drawer.setDrawerListener(toggle); + toggle.syncState(); + int toolbarResource = R.drawable.vertical_separator_male; + toolbar.updateSeparatorView(toolbarResource); + toolbar.init(this); + setSupportActionBar(toolbar); + toolbar.setTitle("Stock Control"); + + getSupportActionBar().setDisplayHomeAsUpEnabled(true); + + TextView nameInitials = (TextView) findViewById(R.id.name_inits); + nameInitials.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout); + if (!drawer.isDrawerOpen(GravityCompat.START)) { + drawer.openDrawer(GravityCompat.START); + } + } + }); + + + AllSharedPreferences allSharedPreferences = getOpenSRPContext().allSharedPreferences(); + String preferredName = allSharedPreferences.getANMPreferredName(allSharedPreferences.fetchRegisteredANM()); + if (!preferredName.isEmpty()) { + String[] preferredNameArray = preferredName.split(" "); + String initials = ""; + if (preferredNameArray.length > 1) { + initials = String.valueOf(preferredNameArray[0].charAt(0)) + String.valueOf(preferredNameArray[1].charAt(0)); + } else if (preferredNameArray.length == 1) { + initials = String.valueOf(preferredNameArray[0].charAt(0)); + } + nameInitials.setText(initials); + } + +// toolbar.setOnLocationChangeListener(this); +// + + + stockGrid = (GridView) findViewById(R.id.stockgrid); + } + + @SuppressWarnings("unchecked") + private void refreshadapter() { + ArrayList allVaccineTypes = (ArrayList) BidanApplication.getInstance().vaccineTypeRepository().getAllVaccineTypes(null); + VaccineType[] allVaccineTypesarray = allVaccineTypes.toArray(new VaccineType[allVaccineTypes.size()]); + stockGridAdapter adapter = new stockGridAdapter(this, allVaccineTypesarray); + stockGrid.setAdapter(adapter); + adapter.notifyDataSetChanged(); + } + + @Override + protected void onResume() { + super.onResume(); + refreshadapter(); + final DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout); + LinearLayout stockregister = (LinearLayout) drawer.findViewById(R.id.stockcontrol); + stockregister.setBackgroundColor(getResources().getColor(R.color.tintcolor)); + } + + @Override + protected int getContentView() { + return R.layout.activity_stock; + } + + @Override + public boolean onNavigationItemSelected(MenuItem item) { + // Handle navigation view item clicks here. +// int id = item.getItemId(); +// +// if (id == R.id.nav_register) { +//// startFormActivity("child_enrollment", null, null); +// } else if (id == R.id.nav_record_vaccination_out_catchment) { +//// startFormActivity("out_of_catchment_service", null, null); +// } else if (id == R.id.stock) { +// Intent intent = new Intent(this, StockActivity.class); +// startActivity(intent); +// } else if (id == R.id.nav_sync) { +//// startSync(); +// } +// +// DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout); +// drawer.closeDrawer(GravityCompat.START); + return true; + } + + + @Override + protected int getDrawerLayoutId() { + return R.id.drawer_layout; + } + + @Override + protected int getToolbarId() { + return LocationSwitcherToolbar.TOOLBAR_ID; + } + + @Override + protected Class onBackActivity() { + return ChildSmartRegisterActivity.class; + } + + class stockGridAdapter extends BaseAdapter { + private final Context context; + private final VaccineType[] vaccineTypes; + + public stockGridAdapter(Context context, VaccineType[] vaccineTypes) { + this.context = context; + this.vaccineTypes = vaccineTypes; + } + + public View getView(int position, View convertView, ViewGroup parent) { + + final LayoutInflater inflater = (LayoutInflater) context + .getSystemService(Context.LAYOUT_INFLATER_SERVICE); + + View gridView; + + if (convertView == null) { + + gridView = new View(context); + + // get layout from mobile.xml + gridView = inflater.inflate(R.layout.stock_grid_block, null); + + // set value into textview + TextView name = (TextView) gridView + .findViewById(R.id.vaccine_type_name); + TextView doses = (TextView) gridView + .findViewById(R.id.doses); + TextView vials = (TextView) gridView + .findViewById(R.id.vials); + + // set image based on selected text + + + final VaccineType vaccineType = vaccineTypes[position]; + StockRepository stockRepository = BidanApplication.getInstance().stockRepository(); + int currentvials = stockRepository.getBalanceFromNameAndDate(vaccineType.getName(), System.currentTimeMillis()); + name.setText(vaccineType.getName()); + + doses.setText("" + currentvials * vaccineType.getDoses() + " doses"); + + vials.setText("" + currentvials + " vials"); + + gridView.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + Intent intent = new Intent(StockActivity.this, StockControlActivity.class); + intent.putExtra("vaccine_type", vaccineType); + startActivity(intent); + } + }); + + } else { + gridView = convertView; + } + + return gridView; + } + + @Override + public int getCount() { + return vaccineTypes.length; + } + + @Override + public Object getItem(int position) { + return null; + } + + @Override + public long getItemId(int position) { + return 0; + } + + } +} diff --git a/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/StockControlActivity.java b/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/StockControlActivity.java new file mode 100644 index 0000000..6180cd5 --- /dev/null +++ b/opensrp-bidan/src/main/java/org/smartregister/bidan/activity/StockControlActivity.java @@ -0,0 +1,308 @@ +package org.smartregister.bidan.activity; + +import android.content.Intent; +import android.database.Cursor; +import android.os.Bundle; +import android.support.design.widget.NavigationView; +import android.support.design.widget.TabLayout; +import android.support.v4.app.Fragment; +import android.support.v4.app.FragmentManager; +import android.support.v4.app.FragmentPagerAdapter; +import android.support.v4.view.GravityCompat; +import android.support.v4.view.ViewPager; +import android.support.v4.widget.DrawerLayout; +import android.support.v7.app.AppCompatActivity; +import android.support.v7.widget.Toolbar; +import android.text.TextUtils; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.widget.Button; +import android.widget.ImageButton; +import android.widget.LinearLayout; +import android.widget.TextView; + +import org.apache.commons.lang3.StringUtils; +import org.joda.time.DateTime; +import org.smartregister.bidan.application.BidanApplication; +import org.smartregister.bidan.repository.StockRepository; +import org.smartregister.bidan.tabfragments.CurrentStock; +import org.smartregister.bidan.tabfragments.PlanningStockFragment; +import org.smartregister.immunization.domain.VaccineType; +import org.smartregister.bidan.R; +import org.smartregister.repository.AllSharedPreferences; +import org.smartregister.view.activity.DrishtiApplication; + +public class StockControlActivity extends AppCompatActivity { + + /** + * The {@link ViewPager} that will host the section contents. + */ + public VaccineType vaccineType; + public PlanningStockFragment planningStockFragment; + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_stock_control); + vaccineType = (VaccineType) getIntent().getSerializableExtra("vaccine_type"); + Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); + setSupportActionBar(toolbar); + TabLayout tabLayout = (TabLayout) findViewById(R.id.tabs); + toolbar.setTitle(""); + setTitle(""); + + ((TextView) toolbar.findViewById(R.id.title)).setText("Stock Control > " + vaccineType.getName()); + + + // Create the adapter that will return a fragment for each of the three + // primary sections of the activity. + SectionsPagerAdapter mSectionsPagerAdapter = new SectionsPagerAdapter(getSupportFragmentManager()); + + // Set up the ViewPager with the sections adapter. + ViewPager mViewPager = (ViewPager) findViewById(R.id.container); + mViewPager.setAdapter(mSectionsPagerAdapter); + + tabLayout.setupWithViewPager(mViewPager); + TextView nameInitials = (TextView) findViewById(R.id.name_inits); + nameInitials.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout); + if (!drawer.isDrawerOpen(GravityCompat.START)) { + drawer.openDrawer(GravityCompat.START); + } + } + }); + + AllSharedPreferences allSharedPreferences = BidanApplication.getInstance().context().allSharedPreferences(); + String preferredName = allSharedPreferences.getANMPreferredName(allSharedPreferences.fetchRegisteredANM()); + if (!preferredName.isEmpty()) { + String[] preferredNameArray = preferredName.split(" "); + String initials = ""; + if (preferredNameArray.length > 1) { + initials = String.valueOf(preferredNameArray[0].charAt(0)) + String.valueOf(preferredNameArray[1].charAt(0)); + } else if (preferredNameArray.length == 1) { + initials = String.valueOf(preferredNameArray[0].charAt(0)); + } + nameInitials.setText(initials); + } + + initializeCustomNavbarLIsteners(); + + } + + private void initializeCustomNavbarLIsteners() { + NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view); + final DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout); + Button logoutButton = (Button) navigationView.findViewById(R.id.logout_b); + logoutButton.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + DrishtiApplication application = (DrishtiApplication) getApplication(); + application.logoutCurrentUser(); + finish(); + } + }); + + ImageButton cancelButton = (ImageButton) navigationView.findViewById(R.id.cancel_b); + cancelButton.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + + if (drawer.isDrawerOpen(GravityCompat.START)) { + drawer.closeDrawer(GravityCompat.START); + } + } + }); + + TextView initialsTV = (TextView) navigationView.findViewById(R.id.initials_tv); + String preferredName = BidanApplication.getInstance().context().allSharedPreferences().getANMPreferredName( + BidanApplication.getInstance().context().allSharedPreferences().fetchRegisteredANM()); + if (!TextUtils.isEmpty(preferredName)) { + String[] initialsArray = preferredName.split(" "); + String initials = ""; + if (initialsArray.length > 0) { + initials = initialsArray[0].substring(0, 1); + if (initialsArray.length > 1) { + initials = initials + initialsArray[1].substring(0, 1); + } + } + + initialsTV.setText(initials.toUpperCase()); + } + + TextView nameTV = (TextView) navigationView.findViewById(R.id.name_tv); + nameTV.setText(preferredName); + + + LinearLayout syncMenuItem = (LinearLayout) drawer.findViewById(R.id.nav_sync); + syncMenuItem.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { +// startSync(); + drawer.closeDrawer(GravityCompat.START); + } + }); + LinearLayout addchild = (LinearLayout) drawer.findViewById(R.id.nav_register); + addchild.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { +// startJsonForm("child_enrollment", null); + drawer.closeDrawer(GravityCompat.START); + + } + }); + LinearLayout outofcatchment = (LinearLayout) drawer.findViewById(R.id.nav_record_vaccination_out_catchment); + outofcatchment.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { +// startJsonForm("out_of_catchment_service", null); + drawer.closeDrawer(GravityCompat.START); + + } + }); + LinearLayout stockregister = (LinearLayout) drawer.findViewById(R.id.stockcontrol); + stockregister.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + Intent intent = new Intent(getApplicationContext(), StockActivity.class); + startActivity(intent); + drawer.closeDrawer(GravityCompat.START); + + } + }); + LinearLayout childregister = (LinearLayout) drawer.findViewById(R.id.child_register); + childregister.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + BidanApplication.setCrashlyticsUser(BidanApplication.getInstance().context()); + Intent intent = new Intent(getApplicationContext(), ChildSmartRegisterActivity.class); + intent.putExtra(BaseRegisterActivity.IS_REMOTE_LOGIN, false); + startActivity(intent); + finish(); + drawer.closeDrawer(GravityCompat.START); + +// finish(); + } + }); + stockregister.setBackgroundColor(getResources().getColor(R.color.tintcolor)); + + } + + +// @Override +// public boolean onCreateOptionsMenu(Menu menu) { +// // Inflate the menu; this adds items to the action bar if it is present. +//// getMenuInflater().inflate(R.menu.menu_stock_control, menu); +// return true; +// } +// +// @Override +// public boolean onOptionsItemSelected(MenuItem item) { +// // Handle action bar item clicks here. The action bar will +// // automatically handle clicks on the Home/Up button, so long +// // as you specify a parent activity in AndroidManifest.xml. +// int id = item.getItemId(); +// +// //noinspection SimplifiableIfStatement +// if (id == R.id.action_settings) { +// return true; +// } +// +// return super.onOptionsItemSelected(item); +// } + + public int getcurrentVialNumber() { + net.sqlcipher.database.SQLiteDatabase db = BidanApplication.getInstance().getRepository().getReadableDatabase(); + Cursor c = db.rawQuery("Select sum(value) from Stocks where " + StockRepository.DATE_CREATED + " <= " + new DateTime(System.currentTimeMillis()).toDate().getTime() + " and " + StockRepository.VACCINE_TYPE_ID + " = " + vaccineType.getId(), null); + String stockvalue = "0"; + if (c.getCount() > 0) { + c.moveToFirst(); + if (c.getString(0) != null && !StringUtils.isBlank(c.getString(0))) { + stockvalue = c.getString(0); + } + c.close(); + } else { + c.close(); + } + return Integer.parseInt(stockvalue); + } + + /** + * A placeholder fragment containing a simple view. + */ + public static class PlaceholderFragment extends Fragment { + /** + * The fragment argument representing the section number for this + * fragment. + */ + private static final String ARG_SECTION_NUMBER = "section_number"; + + public PlaceholderFragment() { + } + + /** + * Returns a new instance of this fragment for the given section + * number. + */ + public static PlaceholderFragment newInstance(int sectionNumber) { + PlaceholderFragment fragment = new PlaceholderFragment(); + Bundle args = new Bundle(); + args.putInt(ARG_SECTION_NUMBER, sectionNumber); + fragment.setArguments(args); + return fragment; + } + + @Override + public View onCreateView(LayoutInflater inflater, ViewGroup container, + Bundle savedInstanceState) { + View rootView = inflater.inflate(R.layout.fragment_stock_control, container, false); + TextView textView = (TextView) rootView.findViewById(R.id.section_label); + textView.setText(getString(R.string.section_format, getArguments().getInt(ARG_SECTION_NUMBER))); + return rootView; + } + } + + /** + * A {@link FragmentPagerAdapter} that returns a fragment corresponding to + * one of the sections/tabs/pages. + */ + public class SectionsPagerAdapter extends FragmentPagerAdapter { + + public SectionsPagerAdapter(FragmentManager fm) { + super(fm); + } + + @Override + public Fragment getItem(int position) { + // getItem is called to instantiate the fragment for the given page. + // Return a PlaceholderFragment (defined as a static inner class below). + switch (position) { + case 0: + return CurrentStock.newInstance("", ""); + case 1: + planningStockFragment = PlanningStockFragment.newInstance("", ""); + return planningStockFragment; + } + return null; + } + + @Override + public int getCount() { + // Show 3 total pages. + return 2; + } + + @Override + public CharSequence getPageTitle(int position) { + switch (position) { + case 0: + return "Current Stock"; + case 1: + return "Stock Planning"; + } + return null; + } + } +} diff --git a/opensrp-bidan/src/main/java/org/smartregister/bidan/adapter/AdvancedSearchPaginatedCursorAdapter.java b/opensrp-bidan/src/main/java/org/smartregister/bidan/adapter/AdvancedSearchPaginatedCursorAdapter.java new file mode 100644 index 0000000..479863e --- /dev/null +++ b/opensrp-bidan/src/main/java/org/smartregister/bidan/adapter/AdvancedSearchPaginatedCursorAdapter.java @@ -0,0 +1,90 @@ +package org.smartregister.bidan.adapter; + +import android.content.Context; +import android.database.Cursor; +import android.view.View; +import android.view.ViewGroup; +import android.widget.TextView; + +import com.twotoasters.sectioncursoradapter.SectionCursorAdapter; + +import org.apache.commons.lang3.StringUtils; +import org.smartregister.commonregistry.CommonPersonObject; +import org.smartregister.commonregistry.CommonPersonObjectClient; +import org.smartregister.commonregistry.CommonRepository; +import org.smartregister.bidan.R; +import org.smartregister.bidan.provider.AdvancedSearchClientsProvider; + +/** + * Created by keyman on 4/5/17. + */ +public class AdvancedSearchPaginatedCursorAdapter extends SectionCursorAdapter { + private final AdvancedSearchClientsProvider listItemProvider; + private final CommonRepository commonRepository; + + public AdvancedSearchPaginatedCursorAdapter(Context context, Cursor c, AdvancedSearchClientsProvider listItemProvider, CommonRepository commonRepository) { + super(context, c); + this.listItemProvider = listItemProvider; + this.commonRepository = commonRepository; + } + + @Override + public View newItemView(Context context, Cursor cursor, ViewGroup parent) { + return listItemProvider.inflatelayoutForCursorAdapter(); + } + + @Override + public void bindItemView(View view, Context context, Cursor cursor) { + CommonPersonObject personinlist = commonRepository.readAllcommonforCursorAdapter(cursor); + CommonPersonObjectClient pClient = new CommonPersonObjectClient(personinlist.getCaseId(), personinlist.getDetails(), personinlist.getDetails().get("FWHOHFNAME")); + pClient.setColumnmaps(personinlist.getColumnmaps()); + listItemProvider.getView(cursor, pClient, view); + } + + @Override + protected Object getSectionFromCursor(Cursor cursor) { + + if (cursor != null && cursor.getCount() > 0) { + String inactive = ""; + int index = cursor.getColumnIndex("inactive"); + if (index != -1) { + inactive = cursor.getString(index); + } + + if (StringUtils.isNotBlank(inactive) && inactive.equals(Boolean.TRUE.toString())) { + return "INACTIVE OR LOST TO FOLLOW-UP"; + } + + String lostToFollowUp = ""; + index = cursor.getColumnIndex("lost_to_follow_up"); + if (index != -1) { + lostToFollowUp = cursor.getString(index); + } + + if (StringUtils.isNotBlank(lostToFollowUp) && lostToFollowUp.equals(Boolean.TRUE.toString())) { + return "INACTIVE OR LOST TO FOLLOW-UP"; + } + } + return "ACTIVE"; + } + + @Override + protected View newSectionView(Context context, Object item, ViewGroup parent) { + return getLayoutInflater().inflate(R.layout.advanced_search_section, parent, false); + } + + @Override + protected void bindSectionView(View convertView, Context context, int position, Object item) { + ((TextView) convertView).setText((String) item); + } + + @Override + public Cursor swapCursor(Cursor newCursor) { + return super.swapCursor(newCursor); + } + + @Override + public int getViewTypeCount() { + return 2; + } +} diff --git a/opensrp-bidan/src/main/java/org/smartregister/bidan/adapter/ExpandedListAdapter.java b/opensrp-bidan/src/main/java/org/smartregister/bidan/adapter/ExpandedListAdapter.java new file mode 100644 index 0000000..3662084 --- /dev/null +++ b/opensrp-bidan/src/main/java/org/smartregister/bidan/adapter/ExpandedListAdapter.java @@ -0,0 +1,179 @@ +package org.smartregister.bidan.adapter; + +import android.content.Context; +import android.util.Pair; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.widget.BaseExpandableListAdapter; +import android.widget.ExpandableListView; +import android.widget.TextView; + +import org.smartregister.bidan.R; + +import java.util.ArrayList; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; + +/** + * Created by keyman on 12/06/2017. + */ +public class ExpandedListAdapter extends BaseExpandableListAdapter { + + private final Context context; + private LinkedHashMap>> map = new LinkedHashMap<>(); + private final List headers = new ArrayList<>(); + private final int headerLayout; + private final int childLayout; + + + public ExpandedListAdapter(Context context, LinkedHashMap>> map, int headerLayout, int childLayout) { + this.context = context; + if (map != null && !map.isEmpty()) { + this.map = map; + for (Map.Entry>> entry : map.entrySet()) { + this.headers.add(entry.getKey()); + } + } + + this.headerLayout = headerLayout; + this.childLayout = childLayout; + + + } + + @Override + public ItemData getChild(int groupPosition, int childPosititon) { + return map.get(headers.get(groupPosition)).get(childPosititon); + } + + @Override + public long getChildId(int groupPosition, int childPosition) { + return childPosition; + } + + @SuppressWarnings("unchecked") + @Override + public View getChildView(int groupPosition, final int childPosition, + boolean isLastChild, View convertView, ViewGroup parent) { + + ItemData childObject = getChild(groupPosition, childPosition); + if (convertView == null) { + LayoutInflater inflater = LayoutInflater.from(context); + convertView = inflater.inflate(childLayout, null); + convertView.setTag(R.id.item_data, childObject.getTagData()); + } + + String text = null; + String details = null; + + if (childObject != null) { + if (childObject.getLabelData() instanceof String) { + text = (String) getChild(groupPosition, childPosition).getLabelData(); + + } else if (childObject.getLabelData() instanceof Pair) { + Pair pair = (Pair) getChild(groupPosition, childPosition).getLabelData(); + text = pair.first; + details = pair.second; + } + + View tvView = convertView.findViewById(R.id.tv); + if (tvView != null && text != null) { + TextView tv = (TextView) tvView; + tv.setText(text); + convertView.setTag(text); + } + + View detailView = convertView.findViewById(R.id.details); + if (detailView != null && details != null) { + TextView detailTextView = (TextView) detailView; + detailTextView.setText(details); + } + } + + boolean lastChild = (getChildrenCount(groupPosition) - 1) == childPosition; + View dividerBottom = convertView.findViewById(R.id.adapter_divider_bottom); + if (lastChild) { + dividerBottom.setVisibility(View.VISIBLE); + } else { + dividerBottom.setVisibility(View.GONE); + } + + + return convertView; + } + + @Override + public int getChildrenCount(int groupPosition) { + return map.get(headers.get(groupPosition)) + .size(); + } + + @Override + public Object getGroup(int groupPosition) { + return headers.get(groupPosition); + } + + @Override + public int getGroupCount() { + return headers.size(); + } + + @Override + public long getGroupId(int groupPosition) { + return groupPosition; + } + + @Override + public View getGroupView(int groupPosition, boolean isExpanded, + View convertView, ViewGroup parent) { + + if (convertView == null) { + LayoutInflater inflater = LayoutInflater.from(context); + convertView = inflater.inflate(headerLayout, null); + } + + View tvView = convertView.findViewById(R.id.tv); + if (tvView != null) { + TextView tv = (TextView) tvView; + String text = (String) getGroup(groupPosition); + tv.setText(text); + + convertView.setTag(text); + } + + ExpandableListView mExpandableListView = (ExpandableListView) parent; + mExpandableListView.expandGroup(groupPosition); + + return convertView; + } + + @Override + public boolean hasStableIds() { + return false; + } + + @Override + public boolean isChildSelectable(int groupPosition, int childPosition) { + return true; + } + + public static class ItemData { + private final L labelData; + private final T tagData; + + public ItemData(L labelData, T tagData) { + this.labelData = labelData; + this.tagData = tagData; + } + + public L getLabelData() { + return labelData; + } + + public T getTagData() { + return tagData; + } + } +} diff --git a/opensrp-bidan/src/main/java/org/smartregister/bidan/adapter/PathRegisterActivityPagerAdapter.java b/opensrp-bidan/src/main/java/org/smartregister/bidan/adapter/PathRegisterActivityPagerAdapter.java new file mode 100644 index 0000000..b708a5f --- /dev/null +++ b/opensrp-bidan/src/main/java/org/smartregister/bidan/adapter/PathRegisterActivityPagerAdapter.java @@ -0,0 +1,48 @@ +package org.smartregister.bidan.adapter; + +import android.os.Bundle; +import android.support.v4.app.Fragment; +import android.support.v4.app.FragmentManager; +import android.support.v4.app.FragmentPagerAdapter; + +/** + * Created by keyman on 24-Mar-17. + */ +public class PathRegisterActivityPagerAdapter extends FragmentPagerAdapter { + private static final String ARG_PAGE = "page"; + private final Fragment mBaseFragment; + private final FragmentManager fragmentManager; + private final Fragment[] fragments; + + public PathRegisterActivityPagerAdapter(FragmentManager fragmentManager, Fragment baseFragment, Fragment[] fragments) { + super(fragmentManager); + this.fragmentManager = fragmentManager; + this.mBaseFragment = baseFragment; + this.fragments = fragments; + } + + @Override + public Fragment getItem(int position) { + Fragment fragment = null; + switch (position) { + case 0: + fragment = mBaseFragment; + break; + default: + fragment = fragments[position - 1]; + break; + } + + Bundle args = new Bundle(); + args.putInt(ARG_PAGE, position); + if (fragment != null) { + fragment.setArguments(args); + } + return fragment; + } + + @Override + public int getCount() { + return fragments == null ? 1 : fragments.length + 1; + } +} diff --git a/opensrp-bidan/src/main/java/org/smartregister/bidan/adapter/ServiceLocationsAdapter.java b/opensrp-bidan/src/main/java/org/smartregister/bidan/adapter/ServiceLocationsAdapter.java new file mode 100644 index 0000000..dcf3109 --- /dev/null +++ b/opensrp-bidan/src/main/java/org/smartregister/bidan/adapter/ServiceLocationsAdapter.java @@ -0,0 +1,96 @@ +package org.smartregister.bidan.adapter; + +import android.content.Context; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.widget.BaseAdapter; +import android.widget.ImageView; +import android.widget.TextView; + +import org.smartregister.bidan.R; + +import java.util.ArrayList; +import java.util.HashMap; + +import util.JsonFormUtils; + +/** + * @author Jason Rogena - jrogena@ona.io + * @since 03/03/2017 + */ +public class ServiceLocationsAdapter extends BaseAdapter { + private String selectedLocation; + private final ArrayList locationNames; + private final HashMap views; + private final Context context; + + public ServiceLocationsAdapter(Context context, ArrayList locationNames, String selectedLocation) { + this.context = context; + this.locationNames = locationNames == null ? new ArrayList() : locationNames; + this.views = new HashMap<>(); + } + + @Override + public int getCount() { + return locationNames.size(); + } + + @Override + public Object getItem(int position) { + return views.get(locationNames.get(position)); + } + + @Override + public long getItemId(int position) { + return position + 2321; + } + + @Override + public View getView(int position, View convertView, ViewGroup parent) { + if (!views.containsKey(locationNames.get(position))) { + LayoutInflater inflater = (LayoutInflater) context.getSystemService( + Context.LAYOUT_INFLATER_SERVICE); + + View view = inflater.inflate(R.layout.location_picker_dropdown_item, null); + view.setId(position + 2321); + + TextView text1 = (TextView) view.findViewById(android.R.id.text1); + text1.setText(JsonFormUtils.getOpenMrsReadableName(locationNames.get(position))); + views.put(locationNames.get(position), view); + } + + refreshView(views.get(locationNames.get(position)), + locationNames.get(position).equals(selectedLocation)); + + return views.get(locationNames.get(position)); + } + + public void setSelectedLocation(final String locationName) { + selectedLocation = locationName; + if (locationName != null + && locationNames.contains(locationName) + && views.containsKey(locationName)) { + for (String curLocation : locationNames) { + View view = views.get(curLocation); + refreshView(view, curLocation.equals(locationName)); + } + } + } + + private void refreshView(View view, boolean selected) { + if (selected) { + //view.setBackgroundColor(context.getResources().getColor(R.color.primary_background)); + ImageView checkbox = (ImageView) view.findViewById(R.id.checkbox); + checkbox.setVisibility(View.VISIBLE); + } else { + //view.setBackgroundColor(context.getResources().getColor(android.R.color.transparent)); + ImageView checkbox = (ImageView) view.findViewById(R.id.checkbox); + checkbox.setVisibility(View.INVISIBLE); + } + } + + public String getLocationAt(int position) { + return locationNames.get(position); + } +} diff --git a/opensrp-bidan/src/main/java/org/smartregister/bidan/adapter/SiblingPictureAdapter.java b/opensrp-bidan/src/main/java/org/smartregister/bidan/adapter/SiblingPictureAdapter.java new file mode 100644 index 0000000..9303d34 --- /dev/null +++ b/opensrp-bidan/src/main/java/org/smartregister/bidan/adapter/SiblingPictureAdapter.java @@ -0,0 +1,52 @@ +package org.smartregister.bidan.adapter; + +import android.support.v7.widget.RecyclerView; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; + +import org.smartregister.bidan.activity.BaseActivity; +import org.smartregister.bidan.view.SiblingPicture; +import org.smartregister.bidan.R; + +import java.util.ArrayList; + +/** + * Created by Jason Rogena - jrogena@ona.io on 09/05/2017. + */ + +public class SiblingPictureAdapter extends RecyclerView.Adapter { + + private final BaseActivity baseActivity; + private final ArrayList siblingIds; + + public SiblingPictureAdapter(BaseActivity baseActivity, ArrayList siblingIds) { + this.baseActivity = baseActivity; + this.siblingIds = siblingIds; + } + + @Override + public SiblingPicture onCreateViewHolder(ViewGroup parent, int viewType) { + View view = LayoutInflater.from(baseActivity) + .inflate(R.layout.view_sibling_picture, parent, false); + return new SiblingPicture(view); + } + + @Override + public void onBindViewHolder(SiblingPicture siblingPicture, int position) { + if (siblingIds.size() > position) { + siblingPicture.setChildBaseEntityId(baseActivity, siblingIds.get(position)); + } + } + + @Override + public long getItemId(int position) { + return 4223 + position; + } + + @Override + public int getItemCount() { + return siblingIds.size(); + } + +} diff --git a/opensrp-bidan/src/main/java/org/smartregister/bidan/adapter/StockPaginatedCursorAdapter.java b/opensrp-bidan/src/main/java/org/smartregister/bidan/adapter/StockPaginatedCursorAdapter.java new file mode 100644 index 0000000..054d932 --- /dev/null +++ b/opensrp-bidan/src/main/java/org/smartregister/bidan/adapter/StockPaginatedCursorAdapter.java @@ -0,0 +1,43 @@ +package org.smartregister.bidan.adapter; + +import android.content.Context; +import android.database.Cursor; +import android.view.View; +import android.view.ViewGroup; +import android.widget.CursorAdapter; + +import org.smartregister.bidan.domain.Stock; +import org.smartregister.bidan.repository.StockRepository; + +/** + * Created by raihan on 3/9/16. + */ +public class StockPaginatedCursorAdapter extends CursorAdapter { + private final StockProviderForCursorAdapter listItemProvider; + private final StockRepository stockRepository; + + public StockPaginatedCursorAdapter(Context context, Cursor c, StockProviderForCursorAdapter listItemProvider, StockRepository stockRepository) { + super(context, c); + this.listItemProvider = listItemProvider; + this.stockRepository = stockRepository; + } + + @Override + public View newView(Context context, Cursor cursor, ViewGroup parent) { + return listItemProvider.inflatelayoutForCursorAdapter(); +// return null; + } + + @Override + public void bindView(View view, Context context, Cursor cursor) { + Stock personinlist = stockRepository.readAllStockforCursorAdapter(cursor); + + listItemProvider.getView(personinlist, view); + + } + + @Override + public Cursor swapCursor(Cursor newCursor) { + return super.swapCursor(newCursor); + } +} diff --git a/opensrp-bidan/src/main/java/org/smartregister/bidan/adapter/StockProviderForCursorAdapter.java b/opensrp-bidan/src/main/java/org/smartregister/bidan/adapter/StockProviderForCursorAdapter.java new file mode 100644 index 0000000..d1be479 --- /dev/null +++ b/opensrp-bidan/src/main/java/org/smartregister/bidan/adapter/StockProviderForCursorAdapter.java @@ -0,0 +1,29 @@ +package org.smartregister.bidan.adapter; + +import android.view.LayoutInflater; +import android.view.View; + +import org.smartregister.bidan.domain.Stock; +import org.smartregister.view.contract.SmartRegisterClients; +import org.smartregister.view.dialog.FilterOption; +import org.smartregister.view.dialog.ServiceModeOption; +import org.smartregister.view.dialog.SortOption; +import org.smartregister.view.viewholder.OnClickFormLauncher; + +/** + * Created by raihan on 3/9/16. + */ +public interface StockProviderForCursorAdapter { + void getView(Stock stock, View view); + + SmartRegisterClients updateClients(FilterOption villageFilter, ServiceModeOption serviceModeOption, + FilterOption searchFilter, SortOption sortOption); + + void onServiceModeSelected(ServiceModeOption serviceModeOption); + + OnClickFormLauncher newFormLauncher(String formName, String entityId, String metaData); + + LayoutInflater inflater(); + + View inflatelayoutForCursorAdapter(); +} diff --git a/opensrp-bidan/src/main/java/org/smartregister/bidan/anc/ANCDetailActivity.java b/opensrp-bidan/src/main/java/org/smartregister/bidan/anc/ANCDetailActivity.java deleted file mode 100644 index 04ae731..0000000 --- a/opensrp-bidan/src/main/java/org/smartregister/bidan/anc/ANCDetailActivity.java +++ /dev/null @@ -1,459 +0,0 @@ -package org.smartregister.bidan.anc; - -import android.app.Activity; -import android.content.Intent; -import android.os.Bundle; -import android.telephony.TelephonyManager; -import android.util.Log; -import android.view.View; -import android.widget.ImageButton; -import android.widget.ImageView; -import android.widget.TextView; - -import com.flurry.android.FlurryAgent; - -import org.json.JSONObject; -import org.smartregister.Context; -import org.smartregister.bidan.R; -import org.smartregister.bidan.kartu_ibu.KIDetailActivity; -import org.smartregister.bidan.lib.FlurryFacade; -import org.smartregister.commonregistry.CommonPersonObjectClient; -import org.smartregister.repository.DetailsRepository; -import org.smartregister.util.FormUtils; -import org.smartregister.view.activity.DrishtiApplication; - -import java.io.File; -import java.text.DateFormat; -import java.text.SimpleDateFormat; -import java.util.Calendar; -import java.util.Date; -import java.util.HashMap; -import java.util.Locale; -import java.util.Map; -import java.util.UUID; - -import static org.smartregister.util.StringUtil.humanize; -import static org.smartregister.util.StringUtil.humanizeAndDoUPPERCASE; - -/** - * Created by Iq on 07/09/16. - */ -public class ANCDetailActivity extends Activity { - - private static final String TAG = ANCDetailActivity.class.getSimpleName(); - - SimpleDateFormat timer = new SimpleDateFormat("hh:mm:ss"); - - public static CommonPersonObjectClient ancclient; - SimpleDateFormat bpm_timer; - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - Context context = Context.getInstance(); - setContentView(R.layout.anc_detail_activity); - - String DetailStart = timer.format(new Date()); - Map Detail = new HashMap(); - Detail.put("start", DetailStart); - FlurryAgent.logEvent("ANC_detail_view",Detail, true ); - - final ImageView kiview = (ImageView)findViewById(R.id.motherdetailprofileview); - //header - TextView today = (TextView) findViewById(R.id.detail_today); - - //profile - TextView nama = (TextView) findViewById(R.id.txt_wife_name); - TextView nik = (TextView) findViewById(R.id.txt_nik); - TextView husband_name = (TextView) findViewById(R.id.txt_husband_name); - TextView dob = (TextView) findViewById(R.id.txt_dob); - TextView phone = (TextView) findViewById(R.id.txt_contact_phone_number); - TextView risk1 = (TextView) findViewById(R.id.txt_risk1); - TextView risk2 = (TextView) findViewById(R.id.txt_risk2); - TextView risk3 = (TextView) findViewById(R.id.txt_risk3); - TextView risk4 = (TextView) findViewById(R.id.txt_risk4); - final TextView show_risk = (TextView) findViewById(R.id.show_more); - final TextView show_detail = (TextView) findViewById(R.id.show_more_detail); - - - TextView details = (TextView) findViewById(R.id.child_detail_information); - TextView risk = (TextView) findViewById(R.id.detail_today); - TextView plan = (TextView) findViewById(R.id.detail_l); - - - TextView mother_summary = (TextView) findViewById(R.id.mother_summary); - // birth plan - TextView txt_b_edd = (TextView) findViewById(R.id.txt_b_edd); - TextView txt_b_lastvisit = (TextView) findViewById(R.id.txt_b_lastvisit); - TextView txt_b_location = (TextView) findViewById(R.id.txt_b_location); - - TextView txt_b_edd2 = (TextView) findViewById(R.id.txt_b_edd2); - TextView txt_b_attend = (TextView) findViewById(R.id.txt_b_attend); - TextView txt_b_place = (TextView) findViewById(R.id.txt_b_place); - TextView txt_b_person = (TextView) findViewById(R.id.txt_b_person); - TextView txt_b_transport = (TextView) findViewById(R.id.txt_b_transport); - TextView txt_b_blood = (TextView) findViewById(R.id.txt_b_blood); - TextView txt_b_houser = (TextView) findViewById(R.id.txt_b_houser); - TextView txt_b_stock = (TextView) findViewById(R.id.txt_b_stock); - - //detail data - TextView Keterangan_k1k4 = (TextView) findViewById(R.id.txt_Keterangan_k1k4); - TextView ancDate = (TextView) findViewById(R.id.txt_ancDate); - TextView tanggalHPHT = (TextView) findViewById(R.id.txt_tanggalHPHT); - TextView usiaKlinis = (TextView) findViewById(R.id.txt_usiaKlinis); - TextView trimesterKe = (TextView) findViewById(R.id.txt_trimesterKe); - TextView kunjunganKe = (TextView) findViewById(R.id.txt_kunjunganKe); - TextView ancKe = (TextView) findViewById(R.id.txt_ancKe); - TextView bbKg = (TextView) findViewById(R.id.txt_bbKg); - TextView tandaVitalTDSistolik = (TextView) findViewById(R.id.txt_tandaVitalTDSistolik); - TextView tandaVitalTDDiastolik = (TextView) findViewById(R.id.txt_tandaVitalTDDiastolik); - TextView hasilPemeriksaanLILA = (TextView) findViewById(R.id.txt_hasilPemeriksaanLILA); - TextView statusGiziibu = (TextView) findViewById(R.id.txt_statusGiziibu); - TextView tfu = (TextView) findViewById(R.id.txt_tfu); - TextView refleksPatelaIbu = (TextView) findViewById(R.id.txt_refleksPatelaIbu); - TextView djj = (TextView) findViewById(R.id.txt_djj); - TextView kepalaJaninTerhadapPAP = (TextView) findViewById(R.id.txt_kepalaJaninTerhadapPAP); - TextView taksiranBeratJanin = (TextView) findViewById(R.id.txt_taksiranBeratJanin); - TextView persentasiJanin = (TextView) findViewById(R.id.txt_persentasiJanin); - TextView jumlahJanin = (TextView) findViewById(R.id.txt_jumlahJanin); - - - TextView statusImunisasitt = (TextView) findViewById(R.id.txt_statusImunisasitt); - TextView pelayananfe = (TextView) findViewById(R.id.txt_pelayananfe); - TextView komplikasidalamKehamilan = (TextView) findViewById(R.id.txt_komplikasidalamKehamilan); - - TextView integrasiProgrampmtctvct = (TextView) findViewById(R.id.txt_integrasiProgrampmtctvct); - TextView integrasiProgrampmtctPeriksaDarah = (TextView) findViewById(R.id.txt_integrasiProgrampmtctPeriksaDarah); - TextView integrasiProgrampmtctSerologi = (TextView) findViewById(R.id.txt_integrasiProgrampmtctSerologi); - TextView integrasiProgrampmtctarvProfilaksis = (TextView) findViewById(R.id.txt_integrasiProgrampmtctarvProfilaksis); - TextView integrasiProgramMalariaPeriksaDarah = (TextView) findViewById(R.id.txt_integrasiProgramMalariaPeriksaDarah); - TextView integrasiProgramMalariaObat = (TextView) findViewById(R.id.txt_integrasiProgramMalariaObat); - TextView integrasiProgramMalariaKelambuBerinsektisida = (TextView) findViewById(R.id.txt_integrasiProgramMalariaKelambuBerinsektisida); - TextView integrasiProgramtbDahak = (TextView) findViewById(R.id.txt_integrasiProgramtbDahak); - TextView integrasiProgramtbObat = (TextView) findViewById(R.id.txt_integrasiProgramtbObat); - - TextView laboratoriumPeriksaHbHasil = (TextView) findViewById(R.id.txt_laboratoriumPeriksaHbHasil); - TextView laboratoriumPeriksaHbAnemia = (TextView) findViewById(R.id.txt_laboratoriumPeriksaHbAnemia); - TextView laboratoriumProteinUria = (TextView) findViewById(R.id.txt_laboratoriumProteinUria); - TextView laboratoriumGulaDarah = (TextView) findViewById(R.id.txt_laboratoriumGulaDarah); - TextView laboratoriumThalasemia = (TextView) findViewById(R.id.txt_laboratoriumThalasemia); - TextView laboratoriumSifilis = (TextView) findViewById(R.id.txt_laboratoriumSifilis); - TextView laboratoriumHbsAg = (TextView) findViewById(R.id.txt_laboratoriumHbsAg); - - - //detail RISK - TextView highRiskSTIBBVs = (TextView) findViewById(R.id.txt_highRiskSTIBBVs); - TextView highRiskEctopicPregnancy = (TextView) findViewById(R.id.txt_highRiskEctopicPregnancy); - TextView highRiskCardiovascularDiseaseRecord = (TextView) findViewById(R.id.txt_highRiskCardiovascularDiseaseRecord); - TextView highRiskDidneyDisorder = (TextView) findViewById(R.id.txt_highRiskDidneyDisorder); - TextView highRiskHeartDisorder = (TextView) findViewById(R.id.txt_highRiskHeartDisorder); - TextView highRiskAsthma = (TextView) findViewById(R.id.txt_highRiskAsthma); - TextView highRiskTuberculosis = (TextView) findViewById(R.id.txt_highRiskTuberculosis); - TextView highRiskMalaria = (TextView) findViewById(R.id.txt_highRiskMalaria); - TextView highRiskPregnancyPIH = (TextView) findViewById(R.id.txt_highRiskPregnancyPIH); - TextView highRiskPregnancyProteinEnergyMalnutrition = (TextView) findViewById(R.id.txt_highRiskPregnancyProteinEnergyMalnutrition); - - TextView txt_highRiskLabourTBRisk = (TextView) findViewById(R.id.txt_highRiskLabourTBRisk); - TextView txt_HighRiskLabourSectionCesareaRecord = (TextView) findViewById(R.id.txt_HighRiskLabourSectionCesareaRecord); - TextView txt_highRisklabourFetusNumber = (TextView) findViewById(R.id.txt_highRisklabourFetusNumber); - TextView txt_highRiskLabourFetusSize = (TextView) findViewById(R.id.txt_highRiskLabourFetusSize); - TextView txt_lbl_highRiskLabourFetusMalpresentation = (TextView) findViewById(R.id.txt_lbl_highRiskLabourFetusMalpresentation); - TextView txt_highRiskPregnancyAnemia = (TextView) findViewById(R.id.txt_highRiskPregnancyAnemia); - TextView txt_highRiskPregnancyDiabetes = (TextView) findViewById(R.id.txt_highRiskPregnancyDiabetes); - TextView HighRiskPregnancyTooManyChildren = (TextView) findViewById(R.id.txt_HighRiskPregnancyTooManyChildren); - TextView highRiskPostPartumSectioCaesaria = (TextView) findViewById(R.id.txt_highRiskPostPartumSectioCaesaria); - TextView highRiskPostPartumForceps = (TextView) findViewById(R.id.txt_highRiskPostPartumForceps); - TextView highRiskPostPartumVacum = (TextView) findViewById(R.id.txt_highRiskPostPartumVacum); - TextView highRiskPostPartumPreEclampsiaEclampsia = (TextView) findViewById(R.id.txt_highRiskPostPartumPreEclampsiaEclampsia); - TextView highRiskPostPartumMaternalSepsis = (TextView) findViewById(R.id.txt_highRiskPostPartumMaternalSepsis); - TextView highRiskPostPartumInfection = (TextView) findViewById(R.id.txt_highRiskPostPartumInfection); - TextView highRiskPostPartumHemorrhage = (TextView) findViewById(R.id.txt_highRiskPostPartumHemorrhage); - - TextView highRiskPostPartumPIH = (TextView) findViewById(R.id.txt_highRiskPostPartumPIH); - TextView highRiskPostPartumDistosia = (TextView) findViewById(R.id.txt_highRiskPostPartumDistosia); - TextView txt_highRiskHIVAIDS = (TextView) findViewById(R.id.txt_highRiskHIVAIDS); - - ImageView heart_bpm = (ImageView) findViewById(R.id.icon_device); - heart_bpm.setVisibility(View.VISIBLE); - - ImageButton back = (ImageButton) findViewById(R.id.btn_back_to_home); - back.setOnClickListener(new View.OnClickListener() { - @Override - public void onClick(View v) { - finish(); - startActivity(new Intent(ANCDetailActivity.this, NativeKIANCSmartRegisterActivity.class)); - overridePendingTransition(0, 0); - String DetailEnd = timer.format(new Date()); - Map Detail = new HashMap<>(); - Detail.put("end", DetailEnd); - FlurryAgent.logEvent("ANC_detail_view", Detail, true); - } - }); - - ImageView device = (ImageView) findViewById(R.id.icon_device); - device.setOnClickListener(bpmListener); - - DetailsRepository detailsRepository = org.smartregister.Context.getInstance().detailsRepository(); - detailsRepository.updateDetails(ancclient); - - Keterangan_k1k4.setText(String.format(": %s", humanize(ancclient.getDetails().get("Keterangan_k1k4") != null ? ancclient.getDetails().get("Keterangan_k1k4") : "-"))); - tanggalHPHT.setText(String.format(": %s", humanize(ancclient.getDetails().get("tanggalHPHT") != null ? ancclient.getDetails().get("tanggalHPHT") : "-"))); - usiaKlinis.setText(String.format(": %s", humanize(ancclient.getDetails().get("usiaKlinis") != null ? ancclient.getDetails().get("usiaKlinis") : "-"))); - trimesterKe.setText(String.format(": %s", humanize(ancclient.getDetails().get("trimesterKe") != null ? ancclient.getDetails().get("trimesterKe") : "-"))); - kunjunganKe.setText(String.format(": %s", humanize(ancclient.getDetails().get("kunjunganKe") != null ? ancclient.getDetails().get("kunjunganKe") : "-"))); - bbKg.setText(String.format(": %s", humanize(ancclient.getDetails().get("bbKg") != null ? ancclient.getDetails().get("bbKg") : "-"))); - tandaVitalTDSistolik.setText(String.format(": %s", humanize(ancclient.getDetails().get("tandaVitalTDSistolik") != null ? ancclient.getDetails().get("tandaVitalTDSistolik") : "-"))); - tandaVitalTDDiastolik.setText(String.format(": %s", humanize(ancclient.getDetails().get("tandaVitalTDDiastolik") != null ? ancclient.getDetails().get("tandaVitalTDDiastolik") : "-"))); - hasilPemeriksaanLILA.setText(String.format(": %s", humanize(ancclient.getDetails().get("hasilPemeriksaanLILA") != null ? ancclient.getDetails().get("hasilPemeriksaanLILA") : "-"))); - statusGiziibu.setText(String.format(": %s", humanize(ancclient.getDetails().get("statusGiziibu") != null ? ancclient.getDetails().get("statusGiziibu") : "-"))); - tfu.setText(String.format(": %s", humanize(ancclient.getDetails().get("tfu") != null ? ancclient.getDetails().get("tfu") : "-"))); - refleksPatelaIbu.setText(String.format(": %s", humanize(ancclient.getDetails().get("refleksPatelaIbu") != null ? ancclient.getDetails().get("refleksPatelaIbu") : "-"))); - djj.setText(String.format(": %s", humanize(ancclient.getDetails().get("djj") != null ? ancclient.getDetails().get("djj") : "-"))); - kepalaJaninTerhadapPAP.setText(String.format(": %s", humanize(ancclient.getDetails().get("kepalaJaninTerhadapPAP") != null ? ancclient.getDetails().get("kepalaJaninTerhadapPAP") : "-"))); - taksiranBeratJanin.setText(String.format(": %s", humanize(ancclient.getDetails().get("taksiranBeratJanin") != null ? ancclient.getDetails().get("taksiranBeratJanin") : "-"))); - persentasiJanin.setText(String.format(": %s", humanize(ancclient.getDetails().get("persentasiJanin") != null ? ancclient.getDetails().get("persentasiJanin") : "-"))); - jumlahJanin.setText(String.format(": %s", humanize(ancclient.getDetails().get("jumlahJanin") != null ? ancclient.getDetails().get("jumlahJanin") : "-"))); - - - statusImunisasitt.setText(String.format(": %s", humanizeAndDoUPPERCASE(ancclient.getDetails().get("statusImunisasitt") != null ? ancclient.getDetails().get("statusImunisasitt") : "-"))); - pelayananfe.setText(String.format(": %s", humanize(ancclient.getDetails().get("pelayananfe") != null ? ancclient.getDetails().get("pelayananfe") : "-"))); - komplikasidalamKehamilan.setText(String.format(": %s", humanize(ancclient.getDetails().get("komplikasidalamKehamilan") != null ? ancclient.getDetails().get("komplikasidalamKehamilan") : "-"))); - integrasiProgrampmtctvct.setText(String.format(": %s", humanize(ancclient.getDetails().get("integrasiProgrampmtctvct") != null ? ancclient.getDetails().get("integrasiProgrampmtctvct") : "-"))); - integrasiProgrampmtctPeriksaDarah.setText(String.format(": %s", humanize(ancclient.getDetails().get("integrasiProgrampmtctPeriksaDarah") != null ? ancclient.getDetails().get("integrasiProgrampmtctPeriksaDarah") : "-"))); - integrasiProgrampmtctSerologi.setText(String.format(": %s", humanize(ancclient.getDetails().get("integrasiProgrampmtctSerologi") != null ? ancclient.getDetails().get("integrasiProgrampmtctSerologi") : "-"))); - integrasiProgrampmtctarvProfilaksis.setText(String.format(": %s", humanize(ancclient.getDetails().get("integrasiProgrampmtctarvProfilaksis") != null ? ancclient.getDetails().get("integrasiProgrampmtctarvProfilaksis") : "-"))); - integrasiProgramMalariaPeriksaDarah.setText(String.format(": %s", humanize(ancclient.getDetails().get("integrasiProgramMalariaPeriksaDarah") != null ? ancclient.getDetails().get("integrasiProgramMalariaPeriksaDarah") : "-"))); - integrasiProgramMalariaObat.setText(String.format(": %s", humanize(ancclient.getDetails().get("integrasiProgramMalariaObat") != null ? ancclient.getDetails().get("integrasiProgramMalariaObat") : "-"))); - integrasiProgramMalariaKelambuBerinsektisida.setText(String.format(": %s", ancclient.getDetails().get("integrasiProgramMalariaKelambuBerinsektisida") != null ? ancclient.getDetails().get("integrasiProgramMalariaKelambuBerinsektisida") : "-")); - integrasiProgramtbDahak.setText(String.format(": %s", humanize(ancclient.getDetails().get("integrasiProgramtbDahak") != null ? ancclient.getDetails().get("integrasiProgramtbDahak") : "-"))); - integrasiProgramtbObat.setText(String.format(": %s", humanize(ancclient.getDetails().get("integrasiProgramtbObat") != null ? ancclient.getDetails().get("integrasiProgramtbObat") : "-"))); - laboratoriumPeriksaHbHasil.setText(String.format(": %s", humanize(ancclient.getDetails().get("laboratoriumPeriksaHbHasil") != null ? ancclient.getDetails().get("laboratoriumPeriksaHbHasil") : "-"))); - laboratoriumPeriksaHbAnemia.setText(String.format(": %s", humanize(ancclient.getDetails().get("laboratoriumPeriksaHbAnemia") != null ? ancclient.getDetails().get("laboratoriumPeriksaHbAnemia") : "-"))); - laboratoriumProteinUria.setText(String.format(": %s", humanize(ancclient.getDetails().get("laboratoriumProteinUria") != null ? ancclient.getDetails().get("laboratoriumProteinUria") : "-"))); - laboratoriumGulaDarah.setText(String.format(": %s", humanize(ancclient.getDetails().get("laboratoriumGulaDarah") != null ? ancclient.getDetails().get("laboratoriumGulaDarah") : "-"))); - laboratoriumThalasemia.setText(String.format(": %s", humanize(ancclient.getDetails().get("laboratoriumThalasemia") != null ? ancclient.getDetails().get("laboratoriumThalasemia") : "-"))); - laboratoriumSifilis.setText(String.format(": %s", humanize(ancclient.getDetails().get("laboratoriumSifilis") != null ? ancclient.getDetails().get("laboratoriumSifilis") : "-"))); - laboratoriumHbsAg.setText(String.format(": %s", humanize(ancclient.getDetails().get("laboratoriumHbsAg") != null ? ancclient.getDetails().get("laboratoriumHbsAg") : "-"))); - - //risk detail - txt_lbl_highRiskLabourFetusMalpresentation.setText(humanize(ancclient.getDetails().get("highRiskLabourFetusMalpresentation") != null ? ancclient.getDetails().get("highRiskLabourFetusMalpresentation") : "-")); - txt_highRisklabourFetusNumber.setText(humanize(ancclient.getDetails().get("highRisklabourFetusNumber") != null ? ancclient.getDetails().get("highRisklabourFetusNumber") : "-")); - txt_highRiskLabourFetusSize.setText(humanize(ancclient.getDetails().get("highRiskLabourFetusSize") != null ? ancclient.getDetails().get("highRiskLabourFetusSize") : "-")); - highRiskPregnancyProteinEnergyMalnutrition.setText(humanize(ancclient.getDetails().get("highRiskPregnancyProteinEnergyMalnutrition") != null ? ancclient.getDetails().get("highRiskPregnancyProteinEnergyMalnutrition") : "-")); - highRiskPregnancyPIH.setText(humanize(ancclient.getDetails().get("highRiskPregnancyPIH") != null ? ancclient.getDetails().get("highRiskPregnancyPIH") : "-")); - txt_highRiskPregnancyDiabetes.setText(humanize(ancclient.getDetails().get("highRiskPregnancyDiabetes") != null ? ancclient.getDetails().get("highRiskPregnancyDiabetes") : "-")); - txt_highRiskPregnancyAnemia.setText(humanize(ancclient.getDetails().get("highRiskPregnancyAnemia") != null ? ancclient.getDetails().get("highRiskPregnancyAnemia") : "-")); - - highRiskPostPartumSectioCaesaria.setText(humanize(ancclient.getDetails().get("highRiskPostPartumSectioCaesaria") != null ? ancclient.getDetails().get("highRiskPostPartumSectioCaesaria") : "-")); - highRiskPostPartumForceps.setText(humanize(ancclient.getDetails().get("highRiskPostPartumForceps") != null ? ancclient.getDetails().get("highRiskPostPartumForceps") : "-")); - highRiskPostPartumVacum.setText(humanize(ancclient.getDetails().get("highRiskPostPartumVacum") != null ? ancclient.getDetails().get("highRiskPostPartumVacum") : "-")); - highRiskPostPartumPreEclampsiaEclampsia.setText(humanize(ancclient.getDetails().get("highRiskPostPartumPreEclampsiaEclampsia") != null ? ancclient.getDetails().get("highRiskPostPartumPreEclampsiaEclampsia") : "-")); - highRiskPostPartumMaternalSepsis.setText(humanize(ancclient.getDetails().get("highRiskPostPartumMaternalSepsis") != null ? ancclient.getDetails().get("highRiskPostPartumMaternalSepsis") : "-")); - highRiskPostPartumInfection.setText(humanize(ancclient.getDetails().get("highRiskPostPartumInfection") != null ? ancclient.getDetails().get("highRiskPostPartumInfection") : "-")); - highRiskPostPartumHemorrhage.setText(humanize(ancclient.getDetails().get("highRiskPostPartumHemorrhage") != null ? ancclient.getDetails().get("highRiskPostPartumHemorrhage") : "-")); - highRiskPostPartumPIH.setText(humanize(ancclient.getDetails().get("highRiskPostPartumPIH") != null ? ancclient.getDetails().get("highRiskPostPartumPIH") : "-")); - highRiskPostPartumDistosia.setText(humanize(ancclient.getDetails().get("highRiskPostPartumDistosia") != null ? ancclient.getDetails().get("highRiskPostPartumDistosia") : "-")); - - ancKe.setText(String.format(": %s", ancclient.getDetails().get("ancKe") != null ? ancclient.getDetails().get("ancKe") : "-")); - - ancDate.setText(String.format(": %s", ancclient.getDetails().get("ancDate") != null ? ancclient.getDetails().get("ancDate") : "-")); - - if(ancclient.getCaseId()!=null){//image already in local storage most likey ): - //set profile image by passing the client id.If the image doesn't exist in the image repository then download and save locally - KIDetailActivity.setImagetoHolderFromUri(this, - DrishtiApplication.getAppDir() + File.separator + ancclient.getDetails().get("base_entity_id") + ".JPEG", - kiview, R.mipmap.woman_placeholder); - } - - nama.setText(String.format("%s%s", getResources().getString(R.string.name), ancclient.getColumnmaps().get("namalengkap") != null ? ancclient.getColumnmaps().get("namalengkap") : "-")); - nik.setText(String.format("%s%s", getResources().getString(R.string.nik), ancclient.getDetails().get("nik") != null ? ancclient.getDetails().get("nik") : "-")); - husband_name.setText(String.format("%s%s", getResources().getString(R.string.husband_name), ancclient.getColumnmaps().get("namaSuami") != null ? ancclient.getColumnmaps().get("namaSuami") : "-")); - String tgl = ancclient.getDetails().get("tanggalLahir") != null ? ancclient.getDetails().get("tanggalLahir") : "-"; - String tgl_lahir = tgl.substring(0, tgl.indexOf("T")); - dob.setText(String.format("%s%s", getResources().getString(R.string.dob), tgl_lahir)); - - // dob.setText(getResources().getString(R.string.dob)+ (ancclient.getDetails().get("tanggalLahir") != null ? ancclient.getDetails().get("tanggalLahir") : "-")); - phone.setText(String.format("No HP: %s", ancclient.getDetails().get("NomorTelponHp") != null ? ancclient.getDetails().get("NomorTelponHp") : "-")); - - //risk - if(ancclient.getDetails().get("highRiskPregnancyYoungMaternalAge") != null ){ - risk1.setText(String.format("%s%s", getResources().getString(R.string.highRiskPregnancyYoungMaternalAge), humanize(ancclient.getDetails().get("highRiskPregnancyYoungMaternalAge")))); - } - if(ancclient.getDetails().get("highRiskPregnancyOldMaternalAge") != null ){ - risk1.setText(String.format("%s%s", getResources().getString(R.string.highRiskPregnancyOldMaternalAge), humanize(ancclient.getDetails().get("highRiskPregnancyYoungMaternalAge")))); - } - if(ancclient.getDetails().get("highRiskPregnancyProteinEnergyMalnutrition") != null - || ancclient.getDetails().get("HighRiskPregnancyAbortus") != null - || ancclient.getDetails().get("HighRiskLabourSectionCesareaRecord" ) != null - ){ - risk2.setText(String.format("%s%s", getResources().getString(R.string.highRiskPregnancyProteinEnergyMalnutrition), humanize(ancclient.getDetails().get("highRiskPregnancyProteinEnergyMalnutrition")))); - risk3.setText(String.format("%s%s", getResources().getString(R.string.HighRiskPregnancyAbortus), humanize(ancclient.getDetails().get("HighRiskPregnancyAbortus")))); - risk4.setText(String.format("%s%s", getResources().getString(R.string.HighRiskLabourSectionCesareaRecord), humanize(ancclient.getDetails().get("HighRiskLabourSectionCesareaRecord")))); - - } - txt_highRiskLabourTBRisk.setText(humanize(ancclient.getDetails().get("highRiskLabourTBRisk") != null ? ancclient.getDetails().get("highRiskLabourTBRisk") : "-")); - - highRiskSTIBBVs.setText(humanize(ancclient.getDetails().get("highRiskSTIBBVs") != null ? ancclient.getDetails().get("highRiskSTIBBVs") : "-")); - highRiskEctopicPregnancy.setText(humanize (ancclient.getDetails().get("highRiskEctopicPregnancy") != null ? ancclient.getDetails().get("highRiskEctopicPregnancy") : "-")); - highRiskCardiovascularDiseaseRecord.setText(humanize(ancclient.getDetails().get("highRiskCardiovascularDiseaseRecord") != null ? ancclient.getDetails().get("highRiskCardiovascularDiseaseRecord") : "-")); - highRiskDidneyDisorder.setText(humanize(ancclient.getDetails().get("highRiskDidneyDisorder") != null ? ancclient.getDetails().get("highRiskDidneyDisorder") : "-")); - highRiskHeartDisorder.setText(humanize(ancclient.getDetails().get("highRiskHeartDisorder") != null ? ancclient.getDetails().get("highRiskHeartDisorder") : "-")); - highRiskAsthma.setText(humanize(ancclient.getDetails().get("highRiskAsthma") != null ? ancclient.getDetails().get("highRiskAsthma") : "-")); - highRiskTuberculosis.setText(humanize(ancclient.getDetails().get("highRiskTuberculosis") != null ? ancclient.getDetails().get("highRiskTuberculosis") : "-")); - highRiskMalaria.setText(humanize(ancclient.getDetails().get("highRiskMalaria") != null ? ancclient.getDetails().get("highRiskMalaria") : "-")); - - txt_HighRiskLabourSectionCesareaRecord.setText(humanize(ancclient.getDetails().get("HighRiskLabourSectionCesareaRecord") != null ? ancclient.getDetails().get("HighRiskLabourSectionCesareaRecord") : "-")); - HighRiskPregnancyTooManyChildren.setText(humanize(ancclient.getDetails().get("HighRiskPregnancyTooManyChildren") != null ? ancclient.getDetails().get("HighRiskPregnancyTooManyChildren") : "-")); - - txt_highRiskHIVAIDS.setText(humanize(ancclient.getDetails().get("highRiskHIVAIDS") != null ? ancclient.getDetails().get("highRiskHIVAIDS") : "-")); - - show_risk.setVisibility(View.GONE); - show_detail.setVisibility(View.GONE); - - // TextView details = (TextView) findViewById(R.id.child_detail_information); - // TextView risk = (TextView) findViewById(R.id.detail_today); - // TextView plan = (TextView) findViewById(R.id.detail_l); - // birth plan - txt_b_edd.setText(humanize(ancclient.getDetails().get("htp") != null ? ancclient.getDetails().get("htp") : "-")); - txt_b_lastvisit.setText(humanize(ancclient.getDetails().get("tanggalKunjunganRencanaPersalinan") != null ? ancclient.getDetails().get("tanggalKunjunganRencanaPersalinan") : "-")); - txt_b_location.setText(humanize(ancclient.getDetails().get("lokasiPeriksa") != null ? ancclient.getDetails().get("lokasiPeriksa") : "-")); - - txt_b_edd2.setText(humanize(ancclient.getDetails().get("htp") != null ? ancclient.getDetails().get("htp") : "-")); - txt_b_attend.setText(humanize(ancclient.getDetails().get("rencanaPenolongPersalinan") != null ? ancclient.getDetails().get("rencanaPenolongPersalinan") : "-")); - txt_b_place.setText(humanize(ancclient.getDetails().get("tempatRencanaPersalinan") != null ? ancclient.getDetails().get("tempatRencanaPersalinan") : "-")); - txt_b_person.setText(humanize(ancclient.getDetails().get("rencanaPendampingPersalinan") != null ? ancclient.getDetails().get("rencanaPendampingPersalinan") : "-")); - txt_b_transport.setText(humanize(ancclient.getDetails().get("transportasi") != null ? ancclient.getDetails().get("transportasi") : "-")); - txt_b_blood.setText(humanize(ancclient.getDetails().get("pendonor") != null ? ancclient.getDetails().get("pendonor") : "-")); - txt_b_houser.setText(humanize(ancclient.getDetails().get("kondisiRumah") != null ? ancclient.getDetails().get("kondisiRumah") : "-")); - txt_b_stock.setText(humanize(ancclient.getDetails().get("persediaanPerlengkapanPersalinan") != null ? ancclient.getDetails().get("persediaanPerlengkapanPersalinan") : "-")); - - - risk.setOnClickListener(new View.OnClickListener() { - @Override - public void onClick(View v) { - FlurryFacade.logEvent("click_risk_detail"); - findViewById(R.id.id1).setVisibility(View.GONE); - findViewById(R.id.id2).setVisibility(View.VISIBLE); - findViewById(R.id.id3).setVisibility(View.VISIBLE); - // findViewById(R.id.show_more_detail).setVisibility(View.VISIBLE); - // findViewById(R.id.show_more).setVisibility(View.GONE); - } - }); - - details.setOnClickListener(new View.OnClickListener() { - @Override - public void onClick(View v) { - findViewById(R.id.id1).setVisibility(View.VISIBLE); - findViewById(R.id.id2).setVisibility(View.GONE); - findViewById(R.id.id3).setVisibility(View.VISIBLE); - // findViewById(R.id.show_more).setVisibility(View.VISIBLE); - // findViewById(R.id.show_more_detail).setVisibility(View.GONE); - } - }); - - plan.setOnClickListener(new View.OnClickListener() { - @Override - public void onClick(View v) { - findViewById(R.id.id1).setVisibility(View.GONE); - findViewById(R.id.id2).setVisibility(View.GONE); - findViewById(R.id.id3).setVisibility(View.VISIBLE); - // mother_summary.setText("Birth Plan Summary"); - } - }); - - tandaVitalTDDiastolik.setOnClickListener(bpmListener); - tandaVitalTDSistolik.setOnClickListener(bpmListener); - - } - - @Override - public void onBackPressed() { - finish(); - startActivity(new Intent(this, NativeKIANCSmartRegisterActivity.class)); - overridePendingTransition(0, 0); - } - - private View.OnClickListener bpmListener = new View.OnClickListener() { - @Override - public void onClick(View v) { - bpmAction(); - } - }; - - private void bpmAction() { -// Intent i = new Intent(ANCDetailActivity.this, MainBPM.class); -// bpm_timer = new SimpleDateFormat("hh:mm:ss.SS", Locale.ENGLISH); -// startActivityForResult(i, 2); - } - - @Override - protected void onActivityResult(int requestCode, int resultCode, Intent data){ - super.onActivityResult(requestCode, resultCode, data); - String imei = ((TelephonyManager) getSystemService(android.content.Context.TELEPHONY_SERVICE)).getDeviceId(); - - DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd"); - Calendar cal = Calendar.getInstance(); -// System.out.println(dateFormat.format(cal.getTime())); - - if (requestCode == 2 && resultCode!=RESULT_CANCELED ){ - DetailsRepository detailsRepository = org.smartregister.Context.getInstance().detailsRepository(); - Long tsLong = System.currentTimeMillis()/1000; - detailsRepository.add(ancclient.entityId(), "tandaVitalTDSistolik", data.getStringExtra("HIGH"), tsLong); - detailsRepository.add(ancclient.entityId(), "tandaVitalTDDiastolik", data.getStringExtra("LOW"), tsLong); - detailsRepository.add(ancclient.entityId(), "tandaVitalPulse", data.getStringExtra("PULSE"), tsLong); - try{ - Log.i(TAG, "onActivityResult: saveToserver" ); - SimpleDateFormat sdf; - Date date = new Date(); - - sdf = new SimpleDateFormat("hh:mm:ss.SS", Locale.ENGLISH); - System.out.println(sdf.format(date)); - sdf = new SimpleDateFormat("dd MMM yyyy hh:mm:ss zzz"); - FormUtils formUtils = FormUtils.getInstance(getApplicationContext()); - String formSubmission = - "" + - ""+ UUID.randomUUID().toString() +"\n" + - ""+bpm_timer+"" + - ""+ dateFormat.format(cal.getTime()) +"" + - ""+ imei +"" + - "no simserial property in enketo" + - "no phonenumber property in enketo" + - ""+ ancclient.getDetails().get("stateProvince") +"" + - ""+ ancclient.getDetails().get("countyDistrict") +"" + - ""+ ancclient.getDetails().get("countyDistrict") +"" + - ""+ancclient.getDetails().get("countyDistrict")+"" + - ""+ ancclient.getDetails().get("countyDistrict") +"." + - ""+ancclient.getDetails().get("cityVillage")+"" + - ""+ ancclient.getDetails().get("stateProvince") +"" + - ""+ ancclient.getDetails().get("countyDistrict") +"" + - ""+ ancclient.getDetails().get("countyDistrict") +"" + - ""+ ancclient.getDetails().get("countyDistrict") +"" + - ""+ ancclient.getDetails().get("countyDistrict") +"" + - ""+ data.getStringExtra("HIGH")+"" + - ""+data.getStringExtra("LOW")+"" + - ""+data.getStringExtra("PULSE")+"" + - ""+data.getStringExtra("AHR")+"\n" + - "2017-05-08T17:21:47.000+08:00" + - "" + - "uuid:"+UUID.randomUUID().toString()+"" + - "" + - "" + - ""; - - formUtils.generateFormSubmisionFromXMLString(ancclient.entityId(), formSubmission, "blood_test", new JSONObject()); - - }catch (Exception e){ - // TODO: show error dialog on the formfragment if the submission fails - e.printStackTrace(); - } - } else{ - Log.e(TAG, "onActivityResult: Cancel " ); - } - - finish(); - startActivity(getIntent()); - } - - - -} diff --git a/opensrp-bidan/src/main/java/org/smartregister/bidan/anc/KIANCClientsProvider.java b/opensrp-bidan/src/main/java/org/smartregister/bidan/anc/KIANCClientsProvider.java deleted file mode 100644 index 4e325d0..0000000 --- a/opensrp-bidan/src/main/java/org/smartregister/bidan/anc/KIANCClientsProvider.java +++ /dev/null @@ -1,455 +0,0 @@ -package org.smartregister.bidan.anc; - -import android.app.Activity; -import android.content.Context; -import android.database.Cursor; -import android.graphics.drawable.Drawable; -import android.view.LayoutInflater; -import android.view.View; -import android.widget.AbsListView; -import android.widget.Button; -import android.widget.ImageButton; -import android.widget.ImageView; -import android.widget.LinearLayout; -import android.widget.RelativeLayout; -import android.widget.TextView; - -import org.apache.commons.lang3.StringUtils; -import org.joda.time.LocalDate; -import org.joda.time.Months; -import org.joda.time.format.DateTimeFormat; -import org.joda.time.format.DateTimeFormatter; -import org.smartregister.bidan.AllConstantsINA; -import org.smartregister.bidan.R; -import org.smartregister.bidan.application.BidanApplication; -import org.smartregister.bidan.kartu_ibu.KIDetailActivity; -import org.smartregister.commonregistry.AllCommonsRepository; -import org.smartregister.commonregistry.CommonPersonObject; -import org.smartregister.commonregistry.CommonPersonObjectClient; -import org.smartregister.commonregistry.CommonPersonObjectController; -import org.smartregister.cursoradapter.SmartRegisterCLientsProviderForCursorAdapter; -import org.smartregister.domain.Alert; -import org.smartregister.repository.DetailsRepository; -import org.smartregister.service.AlertService; -import org.smartregister.util.OpenSRPImageLoader; -import org.smartregister.view.activity.DrishtiApplication; -import org.smartregister.view.contract.SmartRegisterClient; -import org.smartregister.view.contract.SmartRegisterClients; -import org.smartregister.view.dialog.FilterOption; -import org.smartregister.view.dialog.ServiceModeOption; -import org.smartregister.view.dialog.SortOption; -import org.smartregister.view.viewholder.OnClickFormLauncher; - -import java.io.File; -import java.util.List; -import java.util.Map; - -import static android.view.ViewGroup.LayoutParams.MATCH_PARENT; -import static org.joda.time.LocalDateTime.parse; - -/** - * Created by Dimas Ciputra on 3/4/15. - */ -public class KIANCClientsProvider implements SmartRegisterCLientsProviderForCursorAdapter { - - private static final String TAG = KIANCClientsProvider.class.getSimpleName(); - private final LayoutInflater inflater; - private final Context context; - private final View.OnClickListener onClickListener; - private final OpenSRPImageLoader mImageLoader; - private final int txtColorBlack; - private final AbsListView.LayoutParams clientViewLayoutParams; - protected CommonPersonObjectController controller; - AlertService alertService; - private Drawable iconPencilDrawable; - - public KIANCClientsProvider(Context context, View.OnClickListener onClickListener, AlertService alertService) { - this.onClickListener = onClickListener; - this.context = context; - this.alertService = alertService; - this.inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); - - clientViewLayoutParams = new AbsListView.LayoutParams(MATCH_PARENT, (int) context.getResources().getDimension(R.dimen.list_item_height)); - txtColorBlack = context.getResources().getColor(R.color.text_black); - mImageLoader = BidanApplication.getInstance().getCachedImageLoaderInstance(); - - - } - - public void getView(SmartRegisterClient smartRegisterClient, View convertView) { - - ViewHolder viewHolder; - if (convertView.getTag() == null || !(convertView.getTag() instanceof ViewHolder)) { - viewHolder = new ViewHolder(); - viewHolder.profilelayout = (LinearLayout) convertView.findViewById(R.id.profile_info_layout); - - viewHolder.wife_name = (TextView) convertView.findViewById(R.id.wife_name); - viewHolder.husband_name = (TextView) convertView.findViewById(R.id.txt_husband_name); - viewHolder.village_name = (TextView) convertView.findViewById(R.id.txt_village_name); - viewHolder.wife_age = (TextView) convertView.findViewById(R.id.wife_age); - viewHolder.no_ibu = (TextView) convertView.findViewById(R.id.no_ibu); - viewHolder.unique_id = (TextView) convertView.findViewById(R.id.unique_id); - - viewHolder.hr_badge = (ImageView) convertView.findViewById(R.id.img_hr_badge); - viewHolder.img_hrl_badge = (ImageView) convertView.findViewById(R.id.img_hrl_badge); - viewHolder.bpl_badge = (ImageView) convertView.findViewById(R.id.img_bpl_badge); - viewHolder.hrp_badge = (ImageView) convertView.findViewById(R.id.img_hrp_badge); - viewHolder.hrpp_badge = (ImageView) convertView.findViewById(R.id.img_hrpp_badge); - // ViewHolder.img_hp_badge = ImageView.Set; img_hrl_badge img_bpl_badge img_hrp_badge img_hrpp_badge - viewHolder.usia_klinis = (TextView) convertView.findViewById(R.id.txt_usia_klinis); - viewHolder.htpt = (TextView) convertView.findViewById(R.id.txt_htpt); - viewHolder.edd_due = (TextView) convertView.findViewById(R.id.txt_edd_due); - viewHolder.ki_lila_bb = (TextView) convertView.findViewById(R.id.txt_ki_lila_bb); - viewHolder.beratbadan_tb = (TextView) convertView.findViewById(R.id.txt_ki_beratbadan_tb); - viewHolder.tanggal_kunjungan_anc = (TextView) convertView.findViewById(R.id.txt_tanggal_kunjungan_anc); - viewHolder.anc_number = (TextView) convertView.findViewById(R.id.txt_anc_number); - viewHolder.kunjugan_ke = (TextView) convertView.findViewById(R.id.txt_kunjugan_ke); - - viewHolder.status_layout = (RelativeLayout) convertView.findViewById(R.id.anc_status_layout); - viewHolder.status_type = (TextView) convertView.findViewById(R.id.txt_status_type); - viewHolder.status_date = (TextView) convertView.findViewById(R.id.txt_status_date_anc); - viewHolder.alert_status = (TextView) convertView.findViewById(R.id.txt_alert_status); - - viewHolder.profilepic = (ImageView) convertView.findViewById(R.id.img_profile); - viewHolder.follow_up = (ImageButton) convertView.findViewById(R.id.btn_edit); - convertView.setTag(viewHolder); - - } else { - viewHolder = (ViewHolder) convertView.getTag(); - } - - viewHolder.profilepic.setImageDrawable(context.getResources().getDrawable(R.mipmap.woman_placeholder)); - - viewHolder.follow_up.setOnClickListener(onClickListener); - viewHolder.follow_up.setTag(smartRegisterClient); - viewHolder.follow_up.setImageDrawable(iconPencilDrawable); - - viewHolder.profilelayout.setOnClickListener(onClickListener); - viewHolder.profilelayout.setTag(smartRegisterClient); - - CommonPersonObjectClient pc = (CommonPersonObjectClient) smartRegisterClient; - if (iconPencilDrawable == null) { - iconPencilDrawable = context.getResources().getDrawable(R.drawable.ic_pencil); - } - - //set image - AllCommonsRepository allancRepository = org.smartregister.Context.getInstance().allCommonsRepositoryobjects("ec_ibu"); - CommonPersonObject ancobject = allancRepository.findByCaseID(pc.entityId()); - - DetailsRepository detailsRepository = org.smartregister.Context.getInstance().detailsRepository(); - Map details = detailsRepository.getAllDetailsForClient(pc.entityId()); - details.putAll(ancobject.getColumnmaps()); - - if (pc.getDetails() != null) { - pc.getDetails().putAll(details); - } else { - pc.setDetails(details); - } - - viewHolder.hr_badge.setVisibility(View.INVISIBLE); - viewHolder.hrp_badge.setVisibility(View.INVISIBLE); - viewHolder.img_hrl_badge.setVisibility(View.INVISIBLE); - - //Risk flag - risk(pc.getDetails().get("highRiskSTIBBVs"), pc.getDetails().get("highRiskEctopicPregnancy"), pc.getDetails().get("highRiskCardiovascularDiseaseRecord"), - pc.getDetails().get("highRiskDidneyDisorder"), pc.getDetails().get("highRiskHeartDisorder"), pc.getDetails().get("highRiskAsthma"), - pc.getDetails().get("highRiskTuberculosis"), pc.getDetails().get("highRiskMalaria"), pc.getDetails().get("highRiskPregnancyYoungMaternalAge"), - pc.getDetails().get("highRiskPregnancyOldMaternalAge"), viewHolder.hr_badge); - - risk(pc.getDetails().get("highRiskPregnancyPIH"), pc.getDetails().get("highRiskPregnancyProteinEnergyMalnutrition"), - pc.getDetails().get("HighRiskPregnancyTooManyChildren"), - pc.getDetails().get("highRiskPregnancyDiabetes"), pc.getDetails().get("highRiskPregnancyAnemia"), null, null, null, null, null, viewHolder.hrp_badge); - - risk(pc.getDetails().get("highRiskLabourFetusMalpresentation"), pc.getDetails().get("highRiskLabourFetusSize"), - pc.getDetails().get("highRisklabourFetusNumber"), pc.getDetails().get("HighRiskLabourSectionCesareaRecord"), - pc.getDetails().get("highRiskLabourTBRisk"), null, null, null, null, null, viewHolder.img_hrl_badge); - -// final ImageView kiview = (ImageView)convertView.findViewById(R.id.img_profile); - //start profile image - viewHolder.profilepic.setTag(R.id.entity_id, pc.getColumnmaps().get("_id"));//required when saving file to disk - -// if(pc.getColumnmaps().get("_id")!=null){//image already in local storage most likey ): -// Log.e(TAG, "getView: "+pc.getColumnmaps().get("_id") ); - //set profile image by passing the client id.If the image doesn't exist in the image repository then download and save locally -// DrishtiApplication.getCachedImageLoaderInstance().getImageByClientId(pc.getColumnmaps().get("_id"), OpenSRPImageLoader.getStaticImageListener(viewHolder.profilepic, R.drawable.woman_placeholder, R.drawable.woman_placeholder)); -// } - KIDetailActivity.setImagetoHolderFromUri((Activity) context, - DrishtiApplication.getAppDir() + File.separator + pc.getDetails().get("base_entity_id") + ".JPEG", - viewHolder.profilepic, R.mipmap.woman_placeholder); - //end profile image - - viewHolder.wife_name.setText(pc.getColumnmaps().get("namalengkap") != null ? pc.getColumnmaps().get("namalengkap") : ""); - viewHolder.husband_name.setText(pc.getColumnmaps().get("namaSuami") != null ? pc.getColumnmaps().get("namaSuami") : ""); - viewHolder.village_name.setText(pc.getDetails().get("address1") != null ? pc.getDetails().get("address1") : ""); - viewHolder.wife_age.setText(pc.getDetails().get("umur") != null ? pc.getDetails().get("umur") : ""); - viewHolder.no_ibu.setText(pc.getDetails().get("noIbu") != null ? pc.getDetails().get("noIbu") : ""); - viewHolder.unique_id.setText(pc.getDetails().get(AllConstantsINA.CommonFormFields.UNIQUE_ID) != null ? pc.getDetails().get(AllConstantsINA.CommonFormFields.UNIQUE_ID) : ""); - - viewHolder.usia_klinis.setText(pc.getDetails().get("usiaKlinis") != null ? context.getString(R.string.usia) + pc.getDetails().get("usiaKlinis") + context.getString(R.string.str_weeks) : "-"); - viewHolder.htpt.setText(pc.getDetails().get("htp") != null ? pc.getDetails().get("htp") : "-"); - - String edd = pc.getDetails().get("htp"); - if (StringUtils.isNotBlank(pc.getDetails().get("htp"))) { - String _edd = edd; - String _dueEdd = ""; - DateTimeFormatter formatter = DateTimeFormat.forPattern("yyyy-MM-dd"); - LocalDate date = parse(_edd, formatter).toLocalDate(); - LocalDate dateNow = LocalDate.now(); - date = date.withDayOfMonth(1); - dateNow = dateNow.withDayOfMonth(1); - int months = Months.monthsBetween(dateNow, date).getMonths(); - if (months >= 1) { - viewHolder.edd_due.setTextColor(context.getResources().getColor(R.color.alert_in_progress_blue)); - _dueEdd = "" + months + " " + context.getString(R.string.months_away); - } else if (months == 0) { - viewHolder.edd_due.setTextColor(context.getResources().getColor(R.color.light_blue)); - _dueEdd = context.getString(R.string.this_month); - } else if (months < 0) { - viewHolder.edd_due.setTextColor(context.getResources().getColor(R.color.alert_urgent_red)); - _dueEdd = context.getString(R.string.edd_passed); - } - - viewHolder.edd_due.setText(_dueEdd); - - } else { - viewHolder.edd_due.setText("-"); - } - - - viewHolder.ki_lila_bb.setText(pc.getDetails().get("hasilPemeriksaanLILA") != null ? pc.getDetails().get("hasilPemeriksaanLILA") : "-"); - - viewHolder.beratbadan_tb.setText(pc.getDetails().get("bbKg") != null ? pc.getDetails().get("bbKg") : "-"); - - String AncDate = pc.getDetails().get("ancDate") != null ? pc.getDetails().get("ancDate") : "-"; - String AncKe = pc.getDetails().get("ancKe") != null ? pc.getDetails().get("ancKe") : "-"; - String KunjunganKe = pc.getDetails().get("kunjunganKe") != null ? pc.getDetails().get("kunjunganKe") : "-"; - - viewHolder.tanggal_kunjungan_anc.setText(context.getString(R.string.last_visit_date) + AncDate); - viewHolder.anc_number.setText(context.getString(R.string.anc_ke) + AncKe); - viewHolder.kunjugan_ke.setText(context.getString(R.string.visit_number) + KunjunganKe); - - viewHolder.status_type.setText(""); - viewHolder.status_date.setText(""); - viewHolder.status_layout.setBackgroundColor(context.getResources().getColor(R.color.status_bar_text_almost_white)); - viewHolder.alert_status.setText(""); - - if (AncKe.equals("-") || AncKe.equals("")) { - viewHolder.status_type.setText("ANC"); - } - if (AncKe.equals("1")) { - viewHolder.status_type.setText("ANC 2"); - List alertlist_for_client = alertService.findByEntityIdAndAlertNames(pc.entityId(), "ANC 2"); - //alertlist_for_client.get(i). - if (alertlist_for_client.size() == 0) { - // viewHolder.due_visit_date.setText("Not Synced to Server"); - viewHolder.status_layout.setBackgroundColor(context.getResources().getColor(R.color.status_bar_text_almost_white)); - } - for (int i = 0; i < alertlist_for_client.size(); i++) { - - // viewHolder.status_date.setText(alertlist_for_client.get(i).startDate()); - if (alertlist_for_client.get(i).status().value().equalsIgnoreCase("normal")) { - viewHolder.status_date.setText(alertlist_for_client.get(i).startDate()); - viewHolder.status_layout.setBackgroundColor(context.getResources().getColor(R.color.alert_upcoming_light_blue)); - viewHolder.alert_status.setText(alertlist_for_client.get(i).status().value()); - } - if (alertlist_for_client.get(i).status().value().equalsIgnoreCase("upcoming")) { - viewHolder.status_date.setText(alertlist_for_client.get(i).startDate()); - viewHolder.status_layout.setBackgroundColor(context.getResources().getColor(R.color.alert_upcoming_light_blue)); - viewHolder.alert_status.setText(alertlist_for_client.get(i).status().value()); - - } - if (alertlist_for_client.get(i).status().value().equalsIgnoreCase("urgent")) { - viewHolder.status_date.setText(alertlist_for_client.get(i).startDate()); - viewHolder.status_layout.setBackgroundColor(context.getResources().getColor(R.color.alert_urgent_red)); - viewHolder.alert_status.setText(alertlist_for_client.get(i).status().value()); - - } - if (alertlist_for_client.get(i).status().value().equalsIgnoreCase("expired")) { - viewHolder.status_date.setText(alertlist_for_client.get(i).startDate()); - viewHolder.status_layout.setBackgroundColor(context.getResources().getColor(R.color.client_list_header_dark_grey)); - viewHolder.alert_status.setText(alertlist_for_client.get(i).status().value()); - } - if (alertlist_for_client.get(i).isComplete()) { - viewHolder.status_date.setText(alertlist_for_client.get(i).startDate()); - viewHolder.status_layout.setBackgroundColor(context.getResources().getColor(R.color.status_bar_text_almost_white)); - viewHolder.alert_status.setText(alertlist_for_client.get(i).status().value()); - } - } - } - - if (AncKe.equals("2")) { - viewHolder.status_type.setText("ANC 3"); - List alertlist_for_client = alertService.findByEntityIdAndAlertNames(pc.entityId(), "ANC 3"); - //alertlist_for_client.get(i). - if (alertlist_for_client.size() == 0) { - // viewHolder.due_visit_date.setText("Not Synced to Server"); - viewHolder.status_layout.setBackgroundColor(context.getResources().getColor(R.color.status_bar_text_almost_white)); - } - for (int i = 0; i < alertlist_for_client.size(); i++) { - - // viewHolder.status_date.setText(alertlist_for_client.get(i).startDate()); - if (alertlist_for_client.get(i).status().value().equalsIgnoreCase("normal")) { - viewHolder.status_date.setText(alertlist_for_client.get(i).startDate()); - viewHolder.status_layout.setBackgroundColor(context.getResources().getColor(R.color.alert_upcoming_light_blue)); - viewHolder.alert_status.setText(alertlist_for_client.get(i).status().value()); - } - if (alertlist_for_client.get(i).status().value().equalsIgnoreCase("upcoming")) { - viewHolder.status_date.setText(alertlist_for_client.get(i).startDate()); - viewHolder.status_layout.setBackgroundColor(context.getResources().getColor(R.color.alert_upcoming_light_blue)); - viewHolder.alert_status.setText(alertlist_for_client.get(i).status().value()); - - } - if (alertlist_for_client.get(i).status().value().equalsIgnoreCase("urgent")) { - viewHolder.status_date.setText(alertlist_for_client.get(i).startDate()); - viewHolder.status_layout.setBackgroundColor(context.getResources().getColor(R.color.alert_urgent_red)); - viewHolder.alert_status.setText(alertlist_for_client.get(i).status().value()); - - } - if (alertlist_for_client.get(i).status().value().equalsIgnoreCase("expired")) { - viewHolder.status_date.setText(alertlist_for_client.get(i).startDate()); - viewHolder.status_layout.setBackgroundColor(context.getResources().getColor(R.color.client_list_header_dark_grey)); - viewHolder.alert_status.setText(alertlist_for_client.get(i).status().value()); - } - if (alertlist_for_client.get(i).isComplete()) { - viewHolder.status_date.setText(alertlist_for_client.get(i).startDate()); - viewHolder.status_layout.setBackgroundColor(context.getResources().getColor(R.color.status_bar_text_almost_white)); - viewHolder.alert_status.setText(alertlist_for_client.get(i).status().value()); - } - } - } - if (AncKe.equals("3")) { - viewHolder.status_type.setText("ANC 4"); - List alertlist_for_client = alertService.findByEntityIdAndAlertNames(pc.entityId(), "ANC 4"); - //alertlist_for_client.get(i). - if (alertlist_for_client.size() == 0) { - // viewHolder.due_visit_date.setText("Not Synced to Server"); - viewHolder.status_layout.setBackgroundColor(context.getResources().getColor(R.color.status_bar_text_almost_white)); - } - for (int i = 0; i < alertlist_for_client.size(); i++) { - - // viewHolder.status_date.setText(alertlist_for_client.get(i).startDate()); - if (alertlist_for_client.get(i).status().value().equalsIgnoreCase("normal")) { - viewHolder.status_date.setText(alertlist_for_client.get(i).startDate()); - viewHolder.status_layout.setBackgroundColor(context.getResources().getColor(R.color.alert_upcoming_light_blue)); - viewHolder.alert_status.setText(alertlist_for_client.get(i).status().value()); - } - if (alertlist_for_client.get(i).status().value().equalsIgnoreCase("upcoming")) { - viewHolder.status_date.setText(alertlist_for_client.get(i).startDate()); - viewHolder.status_layout.setBackgroundColor(context.getResources().getColor(R.color.alert_upcoming_light_blue)); - viewHolder.alert_status.setText(alertlist_for_client.get(i).status().value()); - - } - if (alertlist_for_client.get(i).status().value().equalsIgnoreCase("urgent")) { - viewHolder.status_date.setText(alertlist_for_client.get(i).startDate()); - viewHolder.status_layout.setBackgroundColor(context.getResources().getColor(R.color.alert_urgent_red)); - viewHolder.alert_status.setText(alertlist_for_client.get(i).status().value()); - - } - if (alertlist_for_client.get(i).status().value().equalsIgnoreCase("expired")) { - viewHolder.status_date.setText(alertlist_for_client.get(i).startDate()); - viewHolder.status_layout.setBackgroundColor(context.getResources().getColor(R.color.client_list_header_dark_grey)); - viewHolder.alert_status.setText(alertlist_for_client.get(i).status().value()); - } - if (alertlist_for_client.get(i).isComplete()) { - viewHolder.status_date.setText(alertlist_for_client.get(i).startDate()); - viewHolder.status_layout.setBackgroundColor(context.getResources().getColor(R.color.status_bar_text_almost_white)); - viewHolder.alert_status.setText(alertlist_for_client.get(i).status().value()); - } - } - } - - convertView.setLayoutParams(clientViewLayoutParams); - } - - public SmartRegisterClients getClients() { - return controller.getClients(); - } - - @Override - public void getView(Cursor cursor, SmartRegisterClient smartRegisterClient, View view) { - - } - - @Override - public SmartRegisterClients updateClients(FilterOption villageFilter, ServiceModeOption serviceModeOption, - FilterOption searchFilter, SortOption sortOption) { - return getClients().applyFilter(villageFilter, serviceModeOption, searchFilter, sortOption); - } - - @Override - public void onServiceModeSelected(ServiceModeOption serviceModeOption) { - // do nothing. - } - - @Override - public OnClickFormLauncher newFormLauncher(String s, String s1, String s2) { - return null; - } - - public LayoutInflater inflater() { - return inflater; - } - - @Override - public View inflatelayoutForCursorAdapter() { - View View = inflater().inflate(R.layout.smart_register_ki_anc_client, null); - return View; - } - - public void risk(String risk1, String risk2, String risk3, String risk4, String risk5, String risk6, String risk7, String risk8, String risk9, String risk10, ImageView riskview) { - if (risk1 != null && risk1.equals("yes") - || risk2 != null && risk2.equals("yes") - || risk3 != null && risk3.equals("yes") - || risk4 != null && risk4.equals("yes") - || risk5 != null && risk5.equals("yes") - || risk6 != null && risk6.equals("yes") - || risk7 != null && risk7.equals("yes") - || risk8 != null && risk8.equals("yes") - || risk9 != null && risk9.equals("yes") - || risk10 != null && risk10.equals("yes")) { - - riskview.setVisibility(View.VISIBLE); - } - - } - - class ViewHolder { - - TextView wife_name; - TextView husband_name; - TextView village_name; - TextView wife_age; - LinearLayout profilelayout; - ImageView profilepic; - TextView gravida; - Button warnbutton; - ImageButton follow_up; - TextView parity; - TextView number_of_abortus; - TextView number_of_alive; - TextView no_ibu; - TextView unique_id; - TextView kb_method; - TextView usia_klinis; - TextView htpt; - TextView ki_lila_bb; - TextView beratbadan_tb; - TextView anc_penyakit_kronis; - TextView status_type; - TextView status_date; - TextView alert_status; - RelativeLayout status_layout; - TextView tanggal_kunjungan_anc; - TextView anc_number; - TextView kunjugan_ke; - ImageView hr_badge; - ImageView hp_badge; - ImageView hrpp_badge; - ImageView bpl_badge; - ImageView hrp_badge; - ImageView img_hrl_badge; - TextView edd_due; - } - - -} \ No newline at end of file diff --git a/opensrp-bidan/src/main/java/org/smartregister/bidan/anc/KIANCOverviewServiceMode.java b/opensrp-bidan/src/main/java/org/smartregister/bidan/anc/KIANCOverviewServiceMode.java deleted file mode 100644 index dab9736..0000000 --- a/opensrp-bidan/src/main/java/org/smartregister/bidan/anc/KIANCOverviewServiceMode.java +++ /dev/null @@ -1,49 +0,0 @@ -package org.smartregister.bidan.anc; - -import org.smartregister.Context; -import org.smartregister.bidan.R; -import org.smartregister.provider.SmartRegisterClientsProvider; -import org.smartregister.view.dialog.ServiceModeOption; - -import static org.smartregister.view.activity.SecuredNativeSmartRegisterActivity.ClientsHeaderProvider; - -public class KIANCOverviewServiceMode extends ServiceModeOption { - - public KIANCOverviewServiceMode(SmartRegisterClientsProvider provider) { - super(provider); - } - - @Override - public String name() { - return Context.getInstance().getStringResource(R.string.kb_selection); - } - - @Override - public ClientsHeaderProvider getHeaderProvider() { - return new ClientsHeaderProvider() { - @Override - public int count() { - return 7; - } - - @Override - public int weightSum() { - return 1000; - } - - @Override - public int[] weights() { - return new int[]{244, 90, 140, 120, 170, 135, 95}; - } - - @Override - public int[] headerTextResourceIds() { - return new int[]{ - R.string.header_name, R.string.header_id, R.string.header_klinis, - R.string.header_pemeriksaan, R.string.header_history_anc, - R.string.header_status, R.string.header_edit}; - } - }; - } - -} diff --git a/opensrp-bidan/src/main/java/org/smartregister/bidan/anc/NativeKIANCSmartRegisterActivity.java b/opensrp-bidan/src/main/java/org/smartregister/bidan/anc/NativeKIANCSmartRegisterActivity.java deleted file mode 100644 index 8396442..0000000 --- a/opensrp-bidan/src/main/java/org/smartregister/bidan/anc/NativeKIANCSmartRegisterActivity.java +++ /dev/null @@ -1,371 +0,0 @@ -package org.smartregister.bidan.anc; - -import android.app.AlertDialog; -import android.content.DialogInterface; -import android.content.Intent; -import android.content.pm.ActivityInfo; -import android.os.Bundle; -import android.support.v4.app.FragmentPagerAdapter; -import android.support.v4.view.ViewPager; -import android.util.Log; -import android.widget.Toast; - -import com.flurry.android.FlurryAgent; - -import org.json.JSONObject; -import org.smartregister.bidan.LoginActivity; -import org.smartregister.bidan.R; -import org.smartregister.bidan.fragment.NativeKIANCSmartRegisterFragment; -import org.smartregister.bidan.pageradapter.BaseRegisterActivityPagerAdapter; -import org.smartregister.domain.form.FormSubmission; -import org.smartregister.provider.SmartRegisterClientsProvider; -import org.smartregister.service.ZiggyService; -import org.smartregister.sync.ClientProcessor; -import org.smartregister.util.FormUtils; -import org.smartregister.view.activity.SecuredNativeSmartRegisterActivity; -import org.smartregister.view.dialog.DialogOption; -import org.smartregister.view.dialog.OpenFormOption; -import org.smartregister.view.fragment.SecuredNativeSmartRegisterFragment; -import org.smartregister.view.viewpager.OpenSRPViewPager; - -import java.text.SimpleDateFormat; -import java.util.ArrayList; -import java.util.Date; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import butterknife.Bind; -import butterknife.ButterKnife; -import util.formula.Support; - -import static org.smartregister.bidan.AllConstantsINA.FormNames.KARTU_IBU_ANC_CLOSE; -import static org.smartregister.bidan.AllConstantsINA.FormNames.KARTU_IBU_ANC_RENCANA_PERSALINAN; -import static org.smartregister.bidan.AllConstantsINA.FormNames.KARTU_IBU_ANC_VISIT; -import static org.smartregister.bidan.AllConstantsINA.FormNames.KARTU_IBU_ANC_VISIT_INTEGRASI; -import static org.smartregister.bidan.AllConstantsINA.FormNames.KARTU_IBU_ANC_VISIT_LABTEST; -import static org.smartregister.bidan.AllConstantsINA.FormNames.KARTU_IBU_PNC_REGISTRATION; - -/** - * Created by Dimas Ciputra on 3/5/15. - */ -public class NativeKIANCSmartRegisterActivity extends SecuredNativeSmartRegisterActivity { - SimpleDateFormat timer = new SimpleDateFormat("hh:mm:ss"); - public static final String TAG = "ANCActivity"; - @Bind(R.id.view_pager) - OpenSRPViewPager mPager; - private FragmentPagerAdapter mPagerAdapter; - private int currentPage; - - private String[] formNames = new String[]{}; - private android.support.v4.app.Fragment mBaseFragment = null; - - ZiggyService ziggyService; - - NativeKIANCSmartRegisterFragment nf = new NativeKIANCSmartRegisterFragment(); - - Map FS = new HashMap<>(); - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - ButterKnife.bind(this); - - setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); - - String KIStart = timer.format(new Date()); - Map KI = new HashMap(); - KI.put("start", KIStart); - FlurryAgent.logEvent("ANC_dashboard", KI, true); - formNames = this.buildFormNameList(); - - // WD - Bundle extras = getIntent().getExtras(); - if (extras != null){ - boolean mode_face = extras.getBoolean("org.smartregister.bidan.face.face_mode"); - String base_id = extras.getString("org.smartregister.bidan.face.base_id"); - double proc_time = extras.getDouble("org.smartregister.bidan.face.proc_time"); -// Log.e(TAG, "onCreate: "+proc_time ); - - if (mode_face){ - nf.setCriteria(base_id); - mBaseFragment = new NativeKIANCSmartRegisterFragment(); - - Log.e(TAG, "onCreate: " + base_id); - AlertDialog.Builder builder= new AlertDialog.Builder(this); - builder.setTitle("Is it Right Clients ?"); - builder.setMessage("Process Time : " + proc_time + " s"); - builder.setNegativeButton( "CANCEL", listener ); - builder.setPositiveButton( "YES", listener ); - builder.show(); - } - } else { - mBaseFragment = new NativeKIANCSmartRegisterFragment(); - } - - mBaseFragment = new NativeKIANCSmartRegisterFragment(); - - // Instantiate a ViewPager and a PagerAdapter. - mPagerAdapter = new BaseRegisterActivityPagerAdapter(getSupportFragmentManager(), formNames, mBaseFragment); - mPager.setOffscreenPageLimit(formNames.length); - mPager.setAdapter(mPagerAdapter); - mPager.setOnPageChangeListener(new ViewPager.SimpleOnPageChangeListener() { - @Override - public void onPageSelected(int position) { - currentPage = position; - onPageChanged(position); - } - }); - - ziggyService = context().ziggyService(); - - Log.e(TAG, "onCreate: REFRESH" ); - - } - public void onPageChanged(int page){ - setRequestedOrientation(page == 0 ? ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE : ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); - LoginActivity.setLanguage(); - } - - @Override - protected DefaultOptionsProvider getDefaultOptionsProvider() {return null;} - - @Override - protected void setupViews() { - } - - @Override - protected void onResumption(){} - - @Override - protected NavBarOptionsProvider getNavBarOptionsProvider() {return null;} - - @Override - protected SmartRegisterClientsProvider clientsProvider() {return null;} - - @Override - protected void onInitialization() {} - - @Override - public void startRegistration() { - } - - public DialogOption[] getEditOptions() { - return new DialogOption[]{ - new OpenFormOption(getString(R.string.str_register_anc_visit_form), KARTU_IBU_ANC_VISIT, formController), - new OpenFormOption(getString(R.string.anc_visit_integrasi), KARTU_IBU_ANC_VISIT_INTEGRASI, formController), - new OpenFormOption(getString(R.string.anc_visit_labtest), KARTU_IBU_ANC_VISIT_LABTEST, formController), - new OpenFormOption(getString(R.string.str_rencana_persalinan_anc_form), KARTU_IBU_ANC_RENCANA_PERSALINAN, formController), - new OpenFormOption(getString(R.string.str_register_pnc_form), KARTU_IBU_PNC_REGISTRATION, formController), - // new OpenFormOption("Edit ANC ", KARTU_IBU_ANC_EDIT, formController), - new OpenFormOption(getString(R.string.str_register_anc_close_form), KARTU_IBU_ANC_CLOSE, formController), - }; - } - - @Override - public void saveFormSubmission(String formSubmission, String id, String formName, JSONObject fieldOverrides){ - Log.v("fieldoverride", fieldOverrides.toString()); - // save the form - try{ - FormUtils formUtils = FormUtils.getInstance(getApplicationContext()); - FormSubmission submission = formUtils.generateFormSubmisionFromXMLString(id, formSubmission, formName, fieldOverrides); - if(formName.equalsIgnoreCase(KARTU_IBU_PNC_REGISTRATION)) { - //do nothing - } - else{ - ziggyService.saveForm(getParams(submission), submission.instance()); - } - ClientProcessor.getInstance(getApplicationContext()).processClient(); - - context().formSubmissionService().updateFTSsearch(submission); - context().formSubmissionRouter().handleSubmission(submission, formName); - - //switch to forms list fragment - switchToBaseFragment(formSubmission); // Unnecessary!! passing on data - - }catch (Exception e){ - // TODO: show error dialog on the formfragment if the submission fails - // Enketo Display error form -// DisplayFormFragment displayFormFragment = getDisplayFormFragmentAtIndex(currentPage); -// if (displayFormFragment != null) { -// displayFormFragment.hideTranslucentProgressDialog(); -// } - e.printStackTrace(); - } - //end capture flurry log for FS - String end = timer.format(new Date()); - Map FS = new HashMap(); - FS.put("end", end); - FlurryAgent.logEvent(formName,FS, true); - } - - /*@Override - public void startFormActivity(String formName, String entityId, String metaData) { - FlurryFacade.logEvent(formName); -// Log.v("fieldoverride", metaData); - try { - int formIndex = FormUtils.getIndexForFormName(formName, formNames) + 1; // add the offset - if (entityId != null || metaData != null){ - String data = null; - //check if there is previously saved data for the form - data = getPreviouslySavedDataForForm(formName, metaData, entityId); - if (data == null){ - data = FormUtils.getInstance(getApplicationContext()).generateXMLInputForFormWithEntityId(entityId, formName, metaData); - } - - DisplayFormFragment displayFormFragment = getDisplayFormFragmentAtIndex(formIndex); - if (displayFormFragment != null) { - displayFormFragment.setFormData(data); - displayFormFragment.setRecordId(entityId); - displayFormFragment.setFieldOverides(metaData); - } - } - - mPager.setCurrentItem(formIndex, false); //Don't animate the view on orientation change the view disapears - - }catch (Exception e){ - e.printStackTrace(); - } - - }*/ - - @Override - public void startFormActivity(String formName, String entityId, String metaData) { -// Log.v("fieldoverride", metaData); - // FlurryFacade.logEvent(formName); - if(Support.ONSYNC) { - Toast.makeText(this, "Data still Synchronizing, please wait", Toast.LENGTH_SHORT).show(); - return; - } - String start = timer.format(new Date()); - Map FS = new HashMap(); - FS.put("start", start); - FlurryAgent.logEvent(formName,FS, true ); - try { - int formIndex = FormUtils.getIndexForFormName(formName, formNames) + 1; // add the offset - if (entityId != null || metaData != null){ - String data = null; - //check if there is previously saved data for the form - // data = getPreviouslySavedDataForForm(formName, metaData, entityId); - if (data == null){ - data = FormUtils.getInstance(getApplicationContext()).generateXMLInputForFormWithEntityId(entityId, formName, metaData); - } - - DisplayFormFragment displayFormFragment = getDisplayFormFragmentAtIndex(formIndex); - if (displayFormFragment != null) { - displayFormFragment.setFormData(data); - displayFormFragment.setRecordId(entityId); - displayFormFragment.setFieldOverides(metaData); - } - } - - mPager.setCurrentItem(formIndex, false); //Don't animate the view on orientation change the view disapears - - }catch (Exception e){ - e.printStackTrace(); - } - - } - - public void switchToBaseFragment(final String data){ - final int prevPageIndex = currentPage; - runOnUiThread(new Runnable() { - @Override - public void run() { - mPager.setCurrentItem(0, false); - SecuredNativeSmartRegisterFragment registerFragment = (SecuredNativeSmartRegisterFragment) findFragmentByPosition(0); - if (registerFragment != null && data != null) { - registerFragment.refreshListView(); - } - - //hack reset the form - DisplayFormFragment displayFormFragment = getDisplayFormFragmentAtIndex(prevPageIndex); - if (displayFormFragment != null) { - displayFormFragment.hideTranslucentProgressDialog(); - displayFormFragment.setFormData(null); - } - - displayFormFragment.setRecordId(null); - } - }); - - } - - public android.support.v4.app.Fragment findFragmentByPosition(int position) { - FragmentPagerAdapter fragmentPagerAdapter = mPagerAdapter; - return getSupportFragmentManager().findFragmentByTag("android:switcher:" + mPager.getId() + ":" + fragmentPagerAdapter.getItemId(position)); - } - - public DisplayFormFragment getDisplayFormFragmentAtIndex(int index) { - return (DisplayFormFragment)findFragmentByPosition(index); - } - - @Override - public void onBackPressed() { - if (currentPage != 0) { - switchToBaseFragment(null); - } else if (currentPage == 0) { - super.onBackPressed(); // allow back key only if we are - } - } - - private String[] buildFormNameList(){ - List formNames = new ArrayList